Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Installing and configuring X
- pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils xterm
- #Install ALSA
- Install Sound/Video Drivers (Alsa, Xorg)
- $ sudo pacman -S alsa-firmware alsa-utils alsa-oss
- #Install Xorg, pre-requisite for GUI apps:
- $ sudo pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils
- #Sound Setup
- alsamixer
- #Install audio + video codec's
- pacman -S gstreamer0.10-plugins
- #Install your Graficcard driver
- #For Nvidia Cards
- pacman -S nvidia lib32-nvidia-utils lib32-nvidia-libgl
- #For Intel Cards
- Intel Graphics
- pacman -S xf86-video-intel lib32-intel-dri
- #For AMD Catalyst Cards
- pacman -S catalyst-dkms lib32-catalyst-utils
- #For other Cards
- pacman -S xf86-video-vesa
- #First Xserver test
- xinit
- --------------------------------------------------------------------------------------------
- #Install Xfce
- pacman -S xfce4 xfce4-goodies gamin tumbler
- #Copy the File .xinitrc to your Home Directory
- cp /etc/skel/.xinitrc ~/.xinitrc
- #and add the following line:
- exec startxfce4
- #Now start xfce with
- startx
- ---------------------------------------------------OR----------------------------------------
- Install the window manager Openbox and terminal Xterm
- Install Openbox & config utilities
- $ sudo pacman -S openbox obconf obmenu lxappearance obapps tint2
- Make initial configuration files for your Openbox user:
- $ mkdir -p ~/.config/openbox/
- $ cp /etc/xdg/openbox/menu.xml ~/.config/openbox
- $ cp /etc/xdg/openbox/rc.xml ~/.config/openbox
- Create/Modify user's /home/username/.xinitrc file
- $ nano ~/.xinitrc
- Add the following line to this file:
- exec ck-launch-session dbus-launch openbox-session
- Before starting Openbox for the first time, let's install a terminal Xterm:
- $ sudo pacman -S xterm
- Check to see if Openbox works now:
- $ startx
- -------------------------install.sh-------------------------------
- # confirm you can access the internet
- if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then
- echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue."
- read
- fi
- # make 2 partitions on the disk.
- parted -s /dev/sda mktable msdos
- parted -s /dev/sda mkpart primary 0% 100m
- parted -s /dev/sda mkpart primary 100m 100%
- # make filesystems
- # /boot
- mkfs.ext2 /dev/sda1
- # /
- mkfs.btrfs /dev/sda2
- # set up /mnt
- mount /dev/sda2 /mnt
- mkdir /mnt/boot
- mount /dev/sda1 /mnt/boot
- # rankmirrors to make this faster (though it takes a while)
- mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig
- rankmirrors -n 6 /etc/pacman.d/mirrorlist.orig >/etc/pacman.d/mirrorlist
- pacman -Syy
- # install base packages (take a coffee break if you have slow internet)
- pacstrap /mnt base base-devel
- # install syslinux
- arch-chroot /mnt pacman -S syslinux --noconfirm
- # copy ranked mirrorlist over
- cp /etc/pacman.d/mirrorlist* /mnt/etc/pacman.d
- # generate fstab
- genfstab -U -p /mnt >>/mnt/etc/fstab
- # chroot
- arch-chroot /mnt /bin/bash <<EOF
- # set initial hostname
- echo "vb-ghost" >/etc/hostname
- # set initial timezone to America/Los_Angeles
- ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
- # set initial locale
- locale >/etc/locale.conf
- echo "en_US.UTF-8 UTF-8" >>/etc/locale.gen
- echo "en_US ISO-8859-1" >>/etc/locale.gen
- locale-gen
- # Set LANG
- echo 'LANG=en_US.UTF-8' >>/etc/locale.conf
- # no modifications to mkinitcpio.conf should be needed
- mkinitcpio -p linux
- # install syslinux bootloader
- syslinux-install_update -i -a -m
- # update syslinux config with correct root disk
- sed 's/root=.*/root=\/dev\/sda2 ro/' < /boot/syslinux/syslinux.cfg > /boot/syslinux/syslinux.cfg.new
- mv /boot/syslinux/syslinux.cfg.new /boot/syslinux/syslinux.cfg
- # set root password to "root"
- echo root:root | chpasswd
- # end section sent to chroot
- EOF
- # unmount
- umount /mnt/{boot,}
- echo "Done! Unmount the CD image from the VM, then type 'reboot'."
- ------------------------end--------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement