Few hints regarding Arch Linux configurations for beginners

Default featured post

Previously I posted one basic guideline regarding Arch Linux and its configurations here. This article is the second part of that post and in this post more areas are covered. More articles regarding Arch Linux configurations will be posted later.

 For adding new user to system,

# useradd kixz

For assigning password to that user,

# passwd kixz

After that a home folder should be created for the user manually,

# mkdir /home/kixz

Then permission to read/write and modify should be give,

# chown -R kixz /home/kixz

In order to add user to a specific group,

# gpasswd -a kixz [GROUP NAME]

Group names could be find in the links section at the end of this post.

In order to give authority to the user to run sudo command do the following process,

1- Add user to group which is called wheel (in Arch) or admin (in Debian, Ubuntu).

# gpasswd -a kixz wheel

2- The file at the /etc/sudoers should be edited

# nano /etc/sudoers

3- The below section should be either added or uncommented,

%wheel ALL=(ALL) ALL

4- Finally, the user should add one line above the mentioned comment,

kixz ALL=(ALL) ALL

5- Save the file and run sudo to test whether it is working or not.

Arch does not have ifconfig command, instead it has ipaddr command which is quire the same.

In order to avoid typing dhcpcd each time to setup your network or in my case setting the network up to access to the net, following command is quite useful. Matter of fact it makes service automatic.

# systemctl enable [email protected]

Keep in mind that eth0 is name of your network card and it is variable for different devices.

To setup specific network except the default one, use the following command,

# systemctl start [email protected]

For automatic startx at login time refer to the link section at the end of the post.

Sometimes when you want to install a package it gives 404 error regarding that the package cannot be retrieved from various repositories. In order to overcome with that issue you should synchronize the repositories again with the following command,

# pacman -Syu

If you run Arch as the guest OS on Virtualbox you also need to install Guest additions package to enable network, adjust resolution and many other things. For installing Virtualbox guest additions by contrast of other Oses you should install the package from official Arch repository with the following command,

# pacman -S virtualbox-guest-utils

After installing the above command just reboot your system to see the effects.

For running PKGBUILD file after downloading and saving it type the following command,

$ makepkg

Keep in your mind that no to run makepkg with root or sudo.

By default Arch does not have Adobe Flash player installed, for Chromium and Chrome you can follow the below instructions,

1- Download .tar.gz file from the links section which contains a stable version of Flash for Chromium and Chrome.

2- Extract the package with the following command

$ tar -xvzf PackageNam.tar.gz

3- Cd to the package folder

$ cd PackageFolder

4- Run makepkg to make Arch package version

$ makepkg

5- Lastly, install the created package with the following command

# pacman -U PackageName

 For more information please refer to the following links,