Skip to content

Instantly share code, notes, and snippets.

@rubemlrm
Created December 8, 2011 11:21
Show Gist options
  • Select an option

  • Save rubemlrm/1446751 to your computer and use it in GitHub Desktop.

Select an option

Save rubemlrm/1446751 to your computer and use it in GitHub Desktop.
archlinux setup script
#!/bin/sh
echo "Scripting to do a clean install and openbox install for archlinux"
while :
do
clear
echo "Choose a option"
echo "1-Setup the basic functions like adduser / install sound/video drivers"
echo "2-Setup keyboard layout / install dbus / drivers/ xterm and test X"
echo "3-Final Setup"
echo -n "Enter option: "
read opt
if [ "$?" != "1" ]
then
case $opt in
1)dhcpcd eth0; pacman -Syu; useradd -m -g users -G audio,lp,optical,storage,video,games,power,scanner -s /bin/bash rubem; pacman -S alsa-utils alsa-plugins; echo "add alsa module to file"; nano /etc/rc.conf; pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils; pacman -S mesa; pacman -S mesa-demos; pacman -S nvidia nvidia-utils; echo "System it will reboot" reboot;;
2)pacman -S xf86-input-synaptics
echo " Option "XkbLayout" "pt""
nano /etc/X11/xorg.conf.d/10-evdev.conf
pacman -S xorg-twm xorg-xclock xterm
pacman -S dbus
rc.d start dbus
echo "add dbus to modules"
nano /etc/rc.conf
su rubem
startx
su root
echo "System it will reboot"
reboot;;
3)pacman -S ttf-dejavu
pacman -S openbox
su rubem
mkdir -p ~/.config/openbox
cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart,environment} ~/.config/openbox
echo exec openbox-session >> ~/.xinitrc
echo tint2 & >> ~/.xinitrc
mv ~/.config/autostart ~/.config/autostart-bak
su root
pacman -S obconf
pacman -S menumaker
su rubem
mmaker -v OpenBox3 # Will not overwrite an existing menu file.
mmaker -vf OpenBox3 # Force option permits overwriting the menu file.
mmaker --help # See the full set of options for MenuMaker.
su root
pacman -S obmenu
pacman -S openbox-themes
pacman -S pidgin banshee vlc zip unzip rar unrar tint2 conky pacman -S wicd libreoffice thunar thunar-volman
rc.d stop network
rc.d stop dhcpcd
rc.d stop networkmanager
echo "Add wicd to file and disable network"
reboot ;;
esac
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment