Saminnet-Search Article Wiki Forum Piwigo SNS Cloud vtiger Sugar
Arch XFCE

Arch XFCE

How to install Arch Linux with XFCE Desktop

This tutorial will give you the detailed step by step instructions to install the leightweight OS Arch Linux with XFCE Desktop on your computer. I have skipped all the optional content making it as short and simple as possible. I didn't use "cdisk" beacuse it has its own complications so i preferred using "fdisk" instead. Any queries feel free to commment I'll sort it out.

Download Arch Linux

You can download the Arch Linux installation iso fromhere. After the download mount the .iso file within your machine or burn it to media as you wish. Start your machine after the mount and you will have this screen.

Select the first option and hit ENTER. And it will start the live boot from the .iso or your media. You will be logged in as root by default.

root@archiso ~ #

After being logged in as root you will have to check your internet conection.

ping google.com


If you get a reply back its fine, or else type in:

dhcpcd


After typing the above command you will see something like this:

Now go ahead and ping once again. You should be able to get back a relpy from your ping and make sure to press "CTRL + C" to stop your ping or it will go on.

Assuming you have eshtabblished your internet connection, we will proceed with the disk partioning. I'm using "fdisk" for partioning you can use anything you like. Basicallyツfdiskツis used to create DOS partitions, you might useツcgdiskツto createツGPTツpartitions and others as per your wish. Type in the following command :

fdisk /dev/sda


Hit ENTER and you will get a screen like this:

As you see in the above image we used fdisk to create a MBR partion on the drive. Typeツo, hit ENTER then. Typeツn -ツthis will create a new partition andツpツis for making it the primary prartition. Followed by chosing the partition number and setting the partition sizeツ+xGツwhere"G = gigabyte". Then format. To create a non MBR partition check the following image.

Now after creating the partitions successfully, we are going to create filesystem:

mkfs.ext4 /dev/sda1


Do the same thing on your other partitions too. Just change the last number to the number of your drive.

Preparing for the base install.


We will be mounting all partions to the directories. So type in the following commands:

Now you have mounted your patitions, now its time to install your base system. Type in the following:

pacstrap /mnt base base-devel


In the above command theツbaseツwill insall base andツbase-develツwill install other utilities. Hit ENTER and there you go. Your installation will look like this at some point. Even if it doesn't, don't worry. This is how it could look like:

After completing the download, we are going to create theツfstabツfile:

genfstab /mnt >> /mnt/etc/fstab


Now to verify your file just type in:

nano /mnt/etc/fstab


It will look like this

Make sure you got the read and write permission of the partitions. Then going into the system type in:

arch-chroot /mnt


After getting to this point, set the password for root and install BIOS.ツ

Type in the above underlined commands will update your passsword and install BIOS. Then go ahead and install grub on to your HDD.

grub-install /dev/sda


It should be like this :

mkconfig -o /boot/grub/grub.cfg


Type the above to update your GRUB. Change your hostname by typing:

echo vbox > /etc/hostname


Now do the following to unmount the partitionsツ

So basically you have installed your Arch Linux system now. Restart your system - go ahead and select the optionツBoot from Existing OSツfrom your live iso boot menu.ツ
Start with enabling the inernet connection by default, by which it will start with the system startup.

systemctl enable dhcpcd

shutdown -P -h now


The above commands will enableツdhcpcdツand shut down your system.
Befor restarting again, make sure you remove all the installation media this time. Log in with yourツrootツuser and ENTER the password you created earlier. Just go ahead andツpingツto make sureツdhcpcdツservices are working.

How to install Arch Linux with XFCE Desktop - Page 2

Now here is something for 64-bit user only, enter:

nano /etc/pacman.conf


And uncomment the two uderlined lines.ツ

Save the changes. Update it byt typing :

pacman -Syy


That's quite good.

Graphical installation


We are going to start with sound manager, lets install the alsa mixer.

pacman -S alsa-utils


After the installation you can just go ahead and adjust your volumes by typing :

alsamixer


You will have a screen like this :-ツ

Use the arrow keys to change and increase the volumes. If done with it you can check the sound for yourself:

speaker-test -c2


The above command here means the speaker test for 2 channels.
To install your X.org type in:

pacman -S xorg-server xorg-server-utils xorg-xinit


Continue by installing the guest-additions :

pacman -S virtualbox-guest-utlis


Install the clock, window and the xterm by typing:

pacman -S xorg-twm xorg-xclock xterm


After comppleting the above installation go ahead and type :

startx


And here it is:

Add a User


We will have to make some adjustment. To give the new user the root access type in:

EDITOR=nano visudo


After doing this, uncommment the following line:

Save the above changes and move ahead to create a new user.

useradd -m -g users -G stroage,power,wheel -s /bin/bash "username"


It should look like this:

Change the password of your own user:

passwd "username"


Just update your mirror list and type:

sudo pacman -Syy


Updating it shouldn't take much time.
Now its time to install your Desktop Environment. I'm going with XFCE4, you may go ahead and try something different if you want to.

sudo pacman -S xfce4


Press ENTER for all it asks. After the installation check if you have aツ.xinitrcツfile in the directory:

ls -la


You see you got it there.
Just make sure that you have xfce4 working by typing in:

nano .xinitrc

Uncomment the line to start xfce4. Make it executable (just for the tutotrial my image above already is executable):

chmod +x .xinitrc

Let's install the goodies of xfce4:-

sudo pacman -S xfce4-goodies


Once done, start your desktop:-

startx


This is your desktop afterツstartx.ツUse the default config or you can make any changes you feel like. Like adding the time or anything. You will have to manually create all the folders since it comes just with theツhomeツfolder.ツ

Type in the above command and then go ahead and install firefox :

Once you have a browser, browse the internet and install stuff, downoad stuff - do whatever you feel like.

Comments   

 
0 #1 Guest 2020-06-09 09:40
Glad to be one of the visitors on this awing site :D.

my web page; resetting bios
Quote
 

Articles by Date

Category Database

TweetTweet Share on LinkedInShare on LinkedIn Share on Google+Google+ Submit to RedditReddit Publish on WordPress WordPress Send emailSend email