How to install Arch Linux + KDE or LXDE

Two blog readers (Edward2 y Kitty) I have been asked to write an installation guide for the distro I use, Arch LinuxLet's not get carried away by many of the things that are said about this distribution, it is not an easy distro to install, but it is not difficult either. It is a long process.

Arch Linux installation is divided into two parts:

  1. Base system
  2. Configuration

1: Base installation

Being a common step for all environments I leave a link to the companion guide elav <º Linux

2: Configuration

Once we have installed our Arch Linux we see that a console opens for us, that is because we have not installed anything apart from the base system.

We go into root mode and put our password.

We select the mirrors if we have not done so

nano /etc/pacman.d/mirrorlist

We choose the ones we want, but not because they are from our country they will be faster, personally I have the first two from Brazil

The next step is to update our system, for this we write the following

pacman -Syu

After updating I always clean the useless packages and the unused repositories with the following command

pacman -Scc

Once we have done this we configure our files in case we have not configured them

nano /etc/rc.conf

For those who are from Spain, the file has to be like this

LOCALE="es_ES.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Madrid"
KEYMAP="es-cp850"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

The next file to configure will be the pacman.conf

nano /etc/pacman.conf

core, extra and community are activated by default and we add the following repository

[archlinuxfr] Server = http://repo.archlinux.fr/i686

this repository will allow us to install Yaourt.

The next step will be to create our user, we will create it as follows

adduser

we follow the steps for the configuration of the new user

Now we must add our user to the groups audio, power, wheel, storage, video, optical, floppy and lp as follows

gpasswd -a usuario audio

in each group we change «audio» for the corresponding

The next thing will be to install the sound

pacman -S alsa-utils alsa-oss

We add the demon Alsa

nano /etc/rc.conf

DAEMONS=(syslog-ng network netfs crond alsa gdm dbus ibus)

We install X.Org

pacman -S xorg

Now we install our graphical environment

Where

pacman -S kdebase kde-l10n-es

O well

pacman -S kde kde-l10n-es

I recommend the Kdebase option more, so we mount it as we want

Lxde

pacman -S lxde

The following will be our login screen, personally I use Gdm

pacman -S gdm

for Kde users the Kdm is installed together with the environment either Kde or Kdebase

We change the bootloader

nano /etc/inittab

now we leave the following line like this

# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

It depends on the manager we use we will leave the following line one way or another

gdm

#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

kdm

#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

xdm

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

Slim

#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

If we want our system to work we add the dbus daemon

nano /etc/rc.conf

DAEMONS=(syslog-ng network netfs crond alsa gdm dbus ibus)

We install Yaourt

pacman -S yaourt

Ready, we already have our Arch Linux installed


25 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Josh said

    Very good tutorial, I already have the documented steps to do the installation, but I don't know what daemons to add to mount usb and disk with ntfs partitions I think it is ntfs-3g. But I am missing some can tell me if it is hal, fam or gamin.

    1.    Courage said

      Hal and fam are specific to Gnome I think, that's why I haven't put them, I specifically don't have either one and it suits me perfectly

      1.    Josh said

        Thanks for your help.

    2.    Edward2 said

      To mount usb and ntfs partitioned disks i believe and correct me if i am wrong it is handled by udev now. In my Arch + gnome3 installation, the only daemon I put was dbus and the only module was fuse. and everything ok and without problems, I can read the partition that Winbug 7 has and mount usb's without even having done any configuration or installing something that was not dependency on the desktop or the base.

      I think that with kde it is the same, so you have to add only the demons that they tell you in the wiki.

  2.   ren said

    excellent tutorial courage thanks, but I have a question, pacman mirrors is fine if I add more than one mirror.

    1.    Edward2 said

      If it's ok you can actually uncomment all mirrors and use the rankmirrors script to choose the best ones.

      To uncomment the mirrors, edit your /etc/pacman.d/mirrorlist file

      # nano /etc/pacman.d/mirrorlist

      for this you install curl with: (and python if you haven't installed it)

      # pacman -S curl python

      and then change to the /etc/pacman.d directory with:

      # cd /etc/pacman.d

      backup your mirrorlist file

      # cp mirrorlist mirrorlist.backup

      then it's time to rank (the more mirrors you uncomment, the longer it takes to find the best ones)

      # rankmirrors -n 6 mirrorlist.backup> mirrorlist

      this looks for the 6 best mirrors in the mirrorlist.backup file and when finished saves them in mirrorlist if you want them to be the best 8 "-n 8" and if you want more use common sense.

      after that it remains to synchronize pacman with the new mirrors with:

      #pacman-Syy

      1.    ren said

        Thank you very much, I will take it into account to install my file. Regards.

  3.   Oscar said

    Courage, I would like to know if possible why you use LXDE and what are the pros and cons. A few months ago I installed it from the Debian testing CD but the file manager had a bug and did not open by any means, therefore I proceeded to uninstall it and I was left without testing it.

    1.    from said

      Oscar, try Lubuntu and you will see that it is faster than lightning!

      1.    Courage said

        In my case it yields more because Arch uses KISS, those distros are very loaded (the * buntu)

        1.    Hades said

          But your installation is useless if you don't have internet. If you are going to tell me that I download them from a cyber internet, I better download a distro like opensuse or kubuntu.

    2.    Courage said

      I request permission from administrators to open an article about LXDE

      1.    KZKG ^ Gaara <"Linux said

        Come on ... stop the nonsense HAHAHA, of course you can ... LOL

        1.    Courage said

          Let's see, in theory I take care of something else (although it's half dead) that's why I ask

          1.    KZKG ^ Gaara <"Linux said

            You write what you want, that has no problem 😀
            Just try to write something that is not repeated, for example if we already wrote a tutorial on how to install Debian + KDE, it doesn't make sense for you to do one of "Install KDE on Debian" 😉

  4.   nestor said

    If someone has installed arch linux in virtualbox and cannot update the repositories as it happened to me, the solution is:

    In the etc / rc.conf, you only need to put in networking:
    eth0 = »dhcp»
    INTERFACES = (eth0)

    And then pacman -Syu.

  5.   Alf said

    In the etc / rc.conf, you only need to put in networking:
    eth0 = "dhcp"
    INTERFACES = (eth0)

    No, it doesn't work, at least it didn't work for me.

  6.   Alf said

    I have 3 days without being able to make arch work, it is definitely not for me.

  7.   Girl said

    Hi, I followed the guide installing kdebase and everything seemed quite simple to me, but when entering kde it was stuck in the splash and when double-clicking the screen blackened (gradually, as if it were a screensaver) and it has not the desktop appeared. Could it be something from the drivers?

    And by the way, I cannot enter any other tty since giant stripes appear in the middle of the screen (?) And, entering in safe mode (failsafe), it does not ask for login in any of them.

    1.    Girl said

      Well, I already solved it. I had to reinstall everything and this time install the graphics drivers, before installing kde.

      But I finally have my first Arch !! 🙂

      1.    Courage said

        Sure, the drivers go before

      2.    KZKG ^ Gaara said

        haha at good time, enjoy it 😀

  8.   verbellon said

    With the arrival of "systemd" in ArchLinux (current ISO Dec 2012), there is no point talking about rc.conf.

    I think this post should be updated. Do not take it bad.

    Greetings…..

    1.    xykyz said

      This post is more than a year old, gentleman, you cannot update every past post, but write new updated post if it is considered appropriate ...

  9.   pedro said

    useradd -m -g users -G audio, video, wheel, power, storage, optical, lp, games -s / bin / bash pedro
    passwd pedro
    and it tells me authentication failure can someone help me on this