After posting the latest Arch Installation tutorial, I realized I should probably post a list of the commands I used, and what some of them do, so here you go!
Check network connection:
ping -c 3 www.google.com #see if you're connected
ifconfig -a #make sure you have an IP address
dhcpcd eth0 #request a DHCP IP address for eth0
nano /etc/rc.conf #check ethernet settings
Check mirrors: (note: reflector is gone now, see https://bbs.archlinux.org/viewtopic.php?id=115660 for more information — instead of using reflector here, try uncommenting mirrors close to you)
pacman -S reflector curl #install reflector to get best mirrors, curl as a dependency
cd /etc/pacman.d #move to mirrorlist directory
cp mirrorlist mirrorlist.backup #back up your mirrorlist
reflector -c %own% -f 6 > mirrorlist #return the fastest 6 repos in your country, pipe output to mirrorlist file
nano mirrorlist #make sure mirrorlist looks right
pacman -Syy #force mirrors to update
pacman -Syu #update the system
Add multilib to your system: (optional, if you are on 64-bit and want some 32-bit native apps)
nano /etc/pacman.conf
Uncomment these lines in the file (or add it, if it's not already there):
[multilib]
Include = /etc/pacman.d/mirrorlist
Add a user to the system
useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power -s /bin/bash USERNAME
passwd USERNAME
pacman -S sudo #if you didn't install it earlier
EDITOR=nano visudo #add "wheel" to the sudoers group
uncomment the line "%wheel ALL=(ALL) ALL" #remove the # symbol
From here on, things are entirely up to you…
Install pulseaudio:
pacman -S pulseaudio
pacman -S alsa-plugins
Install Xorg and drivers:
pacman -S xorg
lspci | grep VGA #to find out what graphics card you're running
startx #test out X, to see if it works
Install fonts:
pacman -S ttf-dejavu #makes fonts a little prettier
Install Gnome:
pacman -S gnome gnome-extra gnome-system-tools
xinit /usr/bin/gnome-session #test running gnome
nano /etc/rc.conf, add "dbus" and "gdm" to DAEMONS line (make sure gdm is the very last one)
Update Pulseaudio for Gnome:
pacman -S pulseaudio-gnome
Reboot and log in as your user account.
Install Firefox:
sudo pacman -S firefox
Install codecs and plugins:
sudo pacman -S mplayer gecko-mediaplayer xine-lib xine-ui libdvdread libdvdcss alsa-oss jre #add flashplugin if you're on 32-bit, or if you want to use the 32-bit one wrapped up on 64-bit
That’s about it, really!
Twitter
RSS Feed
Posted in 
Pingback: Arch Linux Installation Tutorial Part 2: Setting up Xorg, Gnome and Pulseaudio | This Week In Linux