1. Post #1
    deathrune3.0's Avatar
    May 2012
    91 Posts
    Hello.
    I am trying to install LXDE gui on my Arch linux. This is a new install on a virtual machine.

    I have downloaded it, what do i do from here?
    I have read through the wiki but it is hard to understand.
    The part which is confusing is when it says I have to edit the inittab or what ever it is.

    Please help me fellow linux users.
    Many thanks in advance
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  2. Post #2
    Boris-B's Avatar
    July 2009
    1,244 Posts
    You need to give us some more information.

    You said you downloaded LXDE, but that can mean a ridiculous number of things.

    What guide have you been following if you've followed any?

    Are you going to use a display/login manager to start LXDE?

    If so, which one? and have you installed said display/login manager?

    Have you taken a look at this: https://wiki.archlinux.org/index.php/LXDE ?

  3. Post #3
    deathrune3.0's Avatar
    May 2012
    91 Posts
    You need to give us some more information.

    You said you downloaded LXDE, but that can mean a ridiculous number of things.

    What guide have you been following if you've followed any?

    Are you going to use a display/login manager to start LXDE?

    If so, which one? and have you installed said display/login manager?

    Have you taken a look at this: https://wiki.archlinux.org/index.php/LXDE ?
    Hi, yes this was the guide i was following.
    The part where I got stuck is in the wiki when it says

    After the installation finishes, copy three files to ~/.config/openbox as instructed by pacman:
    I have installed lxde
    # pacman -S lxde
    I am also quite sure I installed xorg.
    Please could you tell me what I should be doing now

    Thankyou

    Whi
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  4. Post #4
    Boris-B's Avatar
    July 2009
    1,244 Posts
    The arch wiki posted:
    Code:
    mkdir -p ~/.config/openbox
    cp /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/autostart ~/.config/openbox

  5. Post #5
    deathrune3.0's Avatar
    May 2012
    91 Posts
    Thankyou. I managed to move those files, accept the autostart - "No such file or directory".
    It could of already been moved.

    But I'm trying to install the display manager, so I installed quingy.

    The recurring problem is editing inittab file.
    I'm sure you think this is easy but I can't find any commands or help on google so I ask you.
    How to open and edit text files such as inittab and xintric

    thanks
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  6. Post #6
    Gold Member
    Niteshifter's Avatar
    May 2008
    1,982 Posts
    You'll probably want to use this. Just replace 'file' with whatever you want to edit.
    Code:
    nano -w file
    Reply With Quote Edit / Delete Reply Linux Canada Show Events Useful Useful x 1 (list)

  7. Post #7
    Boris-B's Avatar
    July 2009
    1,244 Posts
    The autostart file shold be there.

    Run the following commands and paste the results here

    Code:
    ls /etc/xdg/openbox
    ls ~/.config/openbox
    You can post a screenshot of the results since copying from console isn't the easiest thing to do.

    To edit files you'll need a file editor. Since you don't have a GUI one you'll need to use a console one. Arch should come with nano. To edit files simply do:
    Code:
    nano <filename>
    Nano's controls are displayed at the bottom of the screen ^ stands for Ctrl So ^X mean Ctrl+x.

  8. Post #8
    deathrune3.0's Avatar
    May 2012
    91 Posts
    You'll probably want to use this. Just replace 'file' with whatever you want to edit.
    Code:
    nano -w file
    Thanks, but it opens it in a black doccument, is this people I have the wrong directory of files?
    I try nano -w usr/bin/xinit and other files.

    But I try to Replace *getty with qingy
    by nano -w /etc/inittab
    Only a black doccument

    I don't know what to do.

    How do I open the full document to edit?

    Thanks

  9. Post #9
    Boris-B's Avatar
    July 2009
    1,244 Posts
    Two things to start off.

    /usr/bin/xinit is a binary or a script. You shouldn't attempt to edit it. The file you probably will need to edit is .xinitrc which is found in ~/.xinitrc

    When you specify usr/bin/xinit you are refering to usr/bin/xinit relative to what directory you're in.
    So if you're in /that/one/directory and you specify usr/bin/xinit it is understood that you want /that/one/directory/usr/bin/xinit Absolute paths start with a /

  10. Post #10
    deathrune3.0's Avatar
    May 2012
    91 Posts
    Guess who's back!
    I stuck master i stuck!

    .xinitrc which is found in ~/.xinitrc
    This doesnt make sense for noobs and the wiki page doesnt help either.
    Where exactly is .xinitrc?
    Please, what is the full command to edit .xinitrc?

    Thankyou very much
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  11. Post #11
    Dennab
    August 2011
    2,159 Posts
    FOR FUCK'S SAKE.

    /home/<your username>/.xinitrc

    Any directory that has the "~/" in it is in your HOME FOLDER.

    Stop asking rhetorical questions and take a WAY closer look at the Wiki.

    And about editing it,

    USE THE FUCKING NANO.

  12. Post #12
    deathrune3.0's Avatar
    May 2012
    91 Posts
    FOR FUCK'S SAKE.

    /home/<your username>/.xinitrc

    Any directory that has the "~/" in it is in your HOME FOLDER.

    Stop asking rhetorical questions and take a WAY closer look at the Wiki.

    And about editing it,

    USE THE FUCKING NANO.
    This guy

    Thanks

    Edited:

    I still stuck, its like each step there is something ridiculous that I dont know, its only about knowing the commands and the wiki doesnt give you them clearly. Its like this with all linux distros, each distro has an entire new set of terminal commands so its very annoying.

    Linux appears to have freedom and give you the ability to do what you want. This comes at a price of reading.

    I just want a small size distro with large support for wine. Most distros dont have good wikis to support them.

    So now I give Archbang a try

    Unless someone please tell me how to install lxde. Ive downloaded it and all i just dont know how to run it and configure it. Ive installed Arch a while ago with xde not lxde.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  13. Post #13
    Naelstrom's Avatar
    June 2010
    1,957 Posts
    Cool thing about Linux is that we can just give you a bunch of terminal commands to do it for you:

    Step0: Ensure you have a normal user created and that you're logged in as him!
    Code:
    useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power,scanner -s /bin/bash username
    passwd username
    logout
    (then login as username using virtual console)
    Step1: Be root
    Code:
    su
    Step2: Install lxde
    Code:
    pacman -S lxde
    If it prompts for something, just press enter to select the default.

    Step3: Ensure you have dbus listed in your daemons.
    Code:
    echo '#
    # /etc/rc.conf - Main Configuration for Arch Linux
    #
    # See 'man 5 rc.conf' for more details
    #
    
    # LOCALIZATION
    # ------------
    HARDWARECLOCK="UTC"
    TIMEZONE=
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="yes"
    USECOLOR="yes"
    
    # HARDWARE
    # --------
    MODULES=()
    USEDMRAID="no"
    USEBTRFS="no"
    USELVM="no"
    
    # NETWORKING
    # ----------
    HOSTNAME="myhost"
    
    interface=
    address=
    netmask=
    broadcast=
    gateway=
    
    NETWORK_PERSIST="no"
    
    # DAEMONS
    # -------
    #
    DAEMONS=(syslog-ng network crond dbus) #!!!!' > /etc/rc.conf
    Step4: Ensure your system boots into X11 mode, and disable any login managers (because we don't have any!)
    Code:
    echo '#
    # /etc/inittab
    #
    
    #  Runlevels:
    #    0    Halt
    #    1(S)   Single-user
    #    2    Not used
    #    3    Multi-user
    #    4    Not used
    #    5    X11
    #    6    Reboot
    
    ## Only one of the following two lines can be uncommented!
    # Boot to console
    #id:3:initdefault: !!!!!!!!!!!
    # Boot to X11 vvv!!
    id:5:initdefault:
    
    rc::sysinit:/etc/rc.sysinit
    rs:S1:wait:/etc/rc.single
    rm:2345:wait:/etc/rc.multi
    rh:06:wait:/etc/rc.shutdown
    su:S:wait:/sbin/sulogin -p
    
    # -8 options fixes umlauts problem on login
    c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
    c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
    c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
    #c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
    #c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
    #c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
    
    # Serial Virtual Console for KVM and others VMs
    #s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
    
    # Hypervisor Virtual Console for Xen and KVM
    #h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
    
    ca::ctrlaltdel:/sbin/shutdown -t3 -r now
    
    # Example lines for starting a login manager
    #x:5:respawn:/usr/bin/xdm -nodaemon !!!!!!!!!!!!!!!!!!!!!
    #x:5:respawn:/usr/sbin/gdm -nodaemon
    #x:5:respawn:/usr/bin/kdm -nodaemon
    #x:5:respawn:/usr/bin/slim >/dev/null 2>&1
    
    # End of file' > /etc/inittab
    Step5: Make sure consolekit is installed
    Code:
    pacman -S consolekit
    Step6: Install required X packages
    Code:
    pacman -S xorg-server xorg-xinit xorg-server-utils mesa xf86-input-keyboard xf86-input-mouse
    Step7: Install video drivers (You can just install the major opensource ones and be fine, or you can figure out what videocard you really have and install proper proprietary ones)
    Code:
    pacman -S xf86-video-nouveau xf86-video-ati xf86-video-intel
    Step8: Prepare system to start x, and become a normal user
    Code:
    init 5 ; exit
    Step9: Create ~/.xinitrc
    Code:
    echo 'exec ck-launch-session dbus-launch startlxde' > ~/.xinitrc
    Step10: Start X!
    Code:
    startx
    I may have forgotten something, not all systems are the same so this tutorial might not work perfectly for you. Feel free to ask me if something doesn't work or you don't understand something.

    I tried to add exclamation points on important lines that you should pay attention to.
    Reply With Quote Edit / Delete Reply Linux United States Show Events Winner Winner x 1 (list)

  14. Post #14
    This title has been removed due to a copyright claim from Viacom Inc.
    neos300's Avatar
    July 2008
    3,403 Posts
    This guy

    Thanks

    Edited:

    I still stuck, its like each step there is something ridiculous that I dont know, its only about knowing the commands and the wiki doesnt give you them clearly. Its like this with all linux distros, each distro has an entire new set of terminal commands so its very annoying.

    Linux appears to have freedom and give you the ability to do what you want. This comes at a price of reading.

    I just want a small size distro with large support for wine. Most distros dont have good wikis to support them.

    So now I give Archbang a try

    Unless someone please tell me how to install lxde. Ive downloaded it and all i just dont know how to run it and configure it. Ive installed Arch a while ago with xde not lxde.
    I think you should go back to Ubuntu (or even windows), you have proven yourself to not be competent enough to read instructions, Arch has a great wiki.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 1 (list)

  15. Post #15
    Gold Member
    Niteshifter's Avatar
    May 2008
    1,982 Posts
    Linux appears to have freedom and give you the ability to do what you want. This comes at a price of reading.
    This comes with everything in life. If you aren't going to read, you aren't willing to learn.
    Reply With Quote Edit / Delete Reply Linux Canada Show Events Agree Agree x 2 (list)

  16. Post #16
    deathrune3.0's Avatar
    May 2012
    91 Posts
    Cool thing about Linux is that we can just give you a bunch of terminal commands to do it for.
    I tried to add exclamation points on important lines that you should pay attention to.
    This was very helpful, though I think it made Arch crash at the end with echo 'exec ck-launch-session dbus-launch startlxde' > ~/.xinitrc

    Wait sorry, I made the .xinitrc now. In ~/.xinitrc
    But startx / start x doesnt seam to work.
    -bash: startx: command not found

    Wait a minute, I missed something out in the inittab
    cannot execute /usr/bin/xdm

  17. Post #17
    Boris-B's Avatar
    July 2009
    1,244 Posts
    If startx doesn't exist as a command it means that you're missing 1 or a few packages.

    You need to install xorg-xinit
    Code:
    pacman -S xorg-xinit
    Then try to run startx
    Reply With Quote Edit / Delete Reply Linux Canada Show Events Informative Informative x 1 (list)

  18. Post #18
    deathrune3.0's Avatar
    May 2012
    91 Posts
    If startx doesn't exist as a command it means that you're missing 1 or a few packages.

    You need to install xorg-xinit
    Code:
    pacman -S xorg-xinit
    Then try to run startx
    Thanks but wait a minute, I understand how to use Arch now. So I can stop asking noob questions. I understand I have to configure .xinitrc and add the window manager and such but before that I need to make it with the skeliton

  19. Post #19
    Naelstrom's Avatar
    June 2010
    1,957 Posts
    Wait a minute, I missed something out in the inittab
    cannot execute /usr/bin/xdm
    This is because you forgot to comment out the login manager in /etc/inittab. Look at my inittab carefully, I've placed exclamation points on lines of interest.

  20. Post #20
    Boris-B's Avatar
    July 2009
    1,244 Posts
    Thanks but wait a minute, I understand how to use Arch now. So I can stop asking noob questions. I understand I have to configure .xinitrc and add the window manager and such but before that I need to make it with the skeliton
    Adding it to the skeleton is not necessary. It's only useful if you are going to have multiple users on the system using X at once and you'll be adding more users. In your case I don't think you need to set up the skeleton.

    On a side note. You should go through the beginner's guide again making sure you setup everything correctly.