These are the instructions for setting up an Arch Linux box the way I like it. This setup includes X windows using xmonad, mpd, zsh, vim, screen, and cups.
-
Choose core-local packages and vi as editor.
-
Set the time and zone.
-
Use the default partition.
-
Choose grub as the bootloader.
-
Add base-dev to the selected packages with the SPACE bar.
-
Add the following packages:
- openssh
- openssl
- pacman-mirrorlist
- sudo
- Choose install Packages, BE PATIENT
- Config:
- uncomment US mirrors (not fit)
- in rc.d:
- set interface=eth0
- set hostname
- remove myhost from fstab
- Install Grub.
- Reboot (take out CD)
Get ready for pacman update:
mv /usr/bin/tzselect /tmp/us.bin.tzselect
mv /usr/sbin/zdump /tmp/us.sbin.zdump
mv /usr/sbin/zic /tmp/us.sbin.zic
mv /etc/profile.d/locale.sh /tmp/etc.profile.d.locale.sh
mv /var/run /tmp/var.run
Update system. pacman -Syu
Thia will prompt to first update pacman. After that will prompt for updating the key database.
pacman-key --init; pacman-key --populate archlinux
This requires a lot of entropy, something a new system doesnt have much of. Open another TTY and do:
pacman -Syu --ignore filesystem && pacman -S filesystem --force
pacman -Syu
You may need to wait for the key population finishes in the 1st tty.
pcaman -S screen zsh git vim most
useradd -m -g users -G \
audio,lp,optical,storage,video,wheel,games,power,scanner,log \
-s /bin/zsh no
Allow wheel users to use sudo visudo
Now log in as that new user in another tty.
After this, most things will be scripted.
mkdir -p ~/src/gists
cd ~/src/gists
git clone git://gist.github.com/3050547.git arch-config
Here we are going to configure git to use our name and email. We will install "dots" files, vim configuration, and my private configuration backups.
~/src/gists/arch-config/install-dots.sh
For this we will install X, copy over our backed-up monitor config, and set up Xmonad.
~/src/gists/arch-config/install-X.sh
Install yaourt, dropbox, cdm
~/src/gists/arch-config/install-yaourt.sh
My favorite xterm from suckless.org
~/src/gists/arch-config/install-st.sh
Now reboot the computer and start in X
~/src/gists/arch-config/build-ssh-key.sh
Then upload ~/.ssh/id_rsa.pub to Github
The following need to be done after the ssh key has been uploaded to github.
~/src/gists/arch-config/install-bin-scripts.sh
Remove the /media directory, install packages, and create the mount point sudo rm -r /media pacman -S cifs-utils samba sudo mkdir /mnt/okeanos
Now over the samba line from ~/src/conf/kronos/etc/fstab to /etc/fstab
sudo pacman -S alsa-utils
alsamixer
The label MM below a channel indicates that the channel is muted, and 00 indicates that it is open. Alsa does not start muted no matter what the arch wiki page says.
aplay /usr/share/sounds/alsa/Front_Center.wav
add @alsa to rc.conf DAEMONS array
sudo cp ~/src/conf/kronos/etc/hosts /etc/hosts
~/src/gists/arch-config/install-mpd.sh
add @mpd to rc.conf DAEMONS array
Install other software that I use
audacity - sound editing tig - curses git viewer firefox - zipping utils - p7z rar zip zathura - pdf viewer
~/src/gists/arch-config/install-other-software.sh
sudo pacman -S cups cups-filters ghostscript gsfonts hplip
sudo cp ~/src/conf/kronos/etc/cups/cupsd.conf /etc/cups/
- add @cupsd to rc.conf DAEMONS ARRAY
- http://localhost:631
- choose AppSocket/HP JetDirect
- socket://orpheus:9100
- hp printer
- HP Photosmart 7510 Series hpijs, 3.12.6 (en)
- set as server default
- print test page
mount a remote dir on iceland for easy file transfer
ssh-agent
For Proxying to proxies
Host internalmachine.mynet.com
ProxyCommand ssh gateway.mynet.com exec nc %h %p
proxy