| Article Index |
|---|
| Arch Linux Installation Guide |
| Page 2 |
| Page 3 |
| Page 4 |
| Page 5 |
| Page 6 |
| Page 7 |
| Page 8 |
| Page 9 |
| Page 10 |
| Page 11 |
| Page 12 |
| Page 13 |
| Page 14 |
| Page 15 |
| Page 16 |
| Page 17 |
| Page 18 |
| Page 19 |
| Page 20 |
| All Pages |
18. First Login
Now we are in our fresh Arch installation.
Login as root.
From now on and till we have a running desktop be careful since root may destroy the system if anything wrong happens.
Remember to use the Tab button since it auto completes folders and file names.
Type:
cd / clear
19. Users and Groups Configuration
First we create our user which we will normally use in our system. Use only small latin letters with no spaces.
Let’s say it will be called nioubis. Type the following:
useradd -m -G users,wheel,audio,video,optical,storage,camera,floppy -s /bin/bash nioubis
Now we must select a password for our user:
passwd nioubis
Be carefull. Do not use spaces. The password should be difficult for other to be found. Of course you shouldn’t forget it!
20. Testing Local Repository
Here we are going to test if the local repository we previously created works fine. Type:
pacman -Sy update-local-repo custom <αρχιτεκτονική> pacman -Sy
If you will get a message that a new version of pacman has be found, when prompted answer YES to update pacman first. When it’s installed type:
pacman -Su
Hopefully you won't have done something wrong and everything should be ok.
Then open:
nano /etc/makepkg.conf
And search for the line:
export MAKEFLAGS="-j2"
Here you can see a number after j at the end. You should change this number to the number of your system CPU cores plus one. If you have a system with an Intel HyperThreading processor you should double this number before adding 1.
For example if your computer is a server with 8 Opteron cores you should use 8+1=9.
MAKEOPTS="-j9"
Save and exit nano.
Press Ctrl+Alt+F2. Now login again.
This time we will login not as root but as a user.
So in the login prompt type the user’s name you have created before as well as his password.
Next type:
cd ~ nano .bashrc
Add the following line to this file:
alias nicepac="nice -n 19 makepkg" alias manualpac="nice -n 19 makepkg -d"
Save and exit nano.
Type:
exit
Press Ctrl+Alt+F1 to get back to the previous login.
If you want to use your Arch installation as a server you should also install the following applications.
pacman -S nano screen openssh
Go to:
cd /etc/ssh cp sshd_config sshd-config-backup
And type:
nano /etc/ssh/sshd_config
Here we are intrested in the following lines:
PermitRootLogin yes RSAAuthentication yes PubkeyAuthentication yes #IgnoreRhosts yes RhostsRSAAuthentication no HostbasedAuthentication no #IgnoreUserKnownHosts no PermitEmptyPasswords no ChallengeResponseAuthentication no #PasswordAuthentication yes UsePAM no
Be careful here. Some lines may already exist, some others may have a
different value (yes or no) and others might be commented or not.
Save and exit nano.
cp sshd_config sshd-config-root-login cd /
Then:
nano /etc/rc.conf
We are intrested for the line DEAMONS=:
We had left it like this:
DAEMONS=(syslog-ng network netfs @crond)
We will make it like this:
DAEMONS=(syslog-ng network netfs @crond @sshd)
Save and exit nano.
Moreover open those two files with nano and make sure that all the lines are commented, they should start with a "#".
- /etc/hosts.allow
- /etc/hosts.deny
Save and exit nano.
Finally type:
/etc/rc.d/sshd start
Now go to your other pc and make sure it is connected in your lan. You may access your server like this:
For Windows NT-Class open PuTTY and type:
root@neo
Give your root password and press Enter.
For *nix-like type:
ssh root@neo
Give your root password and press Enter.
Answer yes that you "trust" neo.
Finally type:
screen -i