• Arch - How to setup GUI ? (LXDE)
    19 replies, posted
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
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: [url]https://wiki.archlinux.org/index.php/LXDE[/url] ?
[QUOTE=Boris-B;36238206]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: [url]https://wiki.archlinux.org/index.php/LXDE[/url] ?[/QUOTE] Hi, yes this was the guide i was following. The part where I got stuck is in the wiki when it says [QUOTE]After the installation finishes, copy three files to ~/.config/openbox as instructed by pacman:[/QUOTE] I have installed lxde [QUOTE]# pacman -S lxde[/QUOTE] I am also quite sure I installed xorg. Please could you tell me what I should be doing now Thankyou Whi
[quote=The arch wiki][code] mkdir -p ~/.config/openbox cp /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/autostart ~/.config/openbox [/code][/quote]
[QUOTE=Boris-B;36238792][/QUOTE] 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
You'll probably want to use this. Just replace 'file' with whatever you want to edit. [code]nano -w file[/code]
The autostart file shold be there. Run the following commands and paste the results here [code] ls /etc/xdg/openbox ls ~/.config/openbox [/code] 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>[/code] Nano's controls are displayed at the bottom of the screen ^ stands for Ctrl So ^X mean Ctrl+x.
[QUOTE=Niteshifter;36239188]You'll probably want to use this. Just replace 'file' with whatever you want to edit. [code]nano -w file[/code][/QUOTE] 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
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 /
Guess who's back! I stuck master i stuck! [QUOTE].xinitrc which is found in ~/.xinitrc[/QUOTE] 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
[b]FOR FUCK'S SAKE.[/b] /home/<your username>/.xinitrc Any directory that has the "~/" in it is in your [b]HOME FOLDER.[/b] Stop asking rhetorical questions and take a WAY closer look at the Wiki. And about editing it, USE THE FUCKING [b]NANO[/b].
[QUOTE=Foxconn;36276957][b]FOR FUCK'S SAKE.[/b] /home/<your username>/.xinitrc Any directory that has the "~/" in it is in your [b]HOME FOLDER.[/b] Stop asking rhetorical questions and take a WAY closer look at the Wiki. And about editing it, USE THE FUCKING [b]NANO[/b].[/QUOTE] This guy :quagmire: Thanks [editline]10th June 2012[/editline] 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 [B][U]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.[/U][/B]
Cool thing about Linux is that we can just give you a bunch of terminal commands to do it for you: [B]Step0:[/B] 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)[/code] [B]Step1:[/B] Be root [code]su[/code] [B]Step2:[/B] Install lxde [code]pacman -S lxde[/code] If it prompts for something, just press enter to select the default. [B]Step3:[/B] 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[/code] [B]Step4:[/B] 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[/code] [B]Step5:[/B] Make sure consolekit is installed [code]pacman -S consolekit[/code] [B]Step6:[/B] Install required X packages [code]pacman -S xorg-server xorg-xinit xorg-server-utils mesa xf86-input-keyboard xf86-input-mouse[/code] [B]Step7:[/B] 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[/code] [B]Step8:[/B] Prepare system to start x, and become a normal user [code]init 5 ; exit[/code] [B]Step9:[/B] Create ~/.xinitrc [code]echo 'exec ck-launch-session dbus-launch startlxde' > ~/.xinitrc[/code] [B]Step10:[/B] Start X! [code]startx[/code] 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.
[QUOTE=deathrune3.0;36277147]This guy :quagmire: Thanks [editline]10th June 2012[/editline] 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 [B][U]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.[/U][/B][/QUOTE] 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.
[QUOTE=deathrune3.0;36277147] Linux appears to have freedom and give you the ability to do what you want. This comes at a price of reading. [/QUOTE] This comes with everything in life. If you aren't going to read, you aren't willing to learn.
[QUOTE=Naelstrom;36278102]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.[/QUOTE] 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. [PHP]-bash: startx: command not found[/PHP] Wait a minute, I missed something out in the inittab cannot execute /usr/bin/xdm
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[/code] Then try to run startx
[QUOTE=Boris-B;36279183]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[/code] Then try to run startx[/QUOTE] 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
[QUOTE=deathrune3.0;36278866] Wait a minute, I missed something out in the inittab cannot execute /usr/bin/xdm[/QUOTE] 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.
[QUOTE=deathrune3.0;36279273]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[/QUOTE] 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.
Sorry, you need to Log In to post a reply to this thread.