Advertisement
Guest User

Arch Install script helmuthdu-aui-f79961c

a guest
Feb 15th, 2012
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 82.84 KB | None | 0 0
  1. #!/bin/bash
  2. #-------------------------------------------------------------------------------
  3. #Created by helmuthdu mailto: helmuthdu[at]gmail[dot]com
  4. #Inspired by Andreas Freitag, aka nexxx script
  5. #-------------------------------------------------------------------------------
  6. #This program is free software: you can redistribute it and/or modify
  7. #it under the terms of the GNU General Public License as published by
  8. #the Free Software Foundation, either version 3 of the License, or
  9. #(at your option) any later version.
  10. #
  11. #This program is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #GNU General Public License for more details.
  15. #
  16. #You should have received a copy of the GNU General Public License
  17. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18. #-------------------------------------------------------------------------------
  19. # Run this script after your first boot with archlinux (as root)
  20.  
  21. KDE=0
  22. LXDE=0
  23. XFCE=0
  24. GNOME=0
  25. OPENBOX=0
  26.  
  27. YAOURT=0
  28. PACKER=0
  29.  
  30. BASICSETUP=0
  31. DESKTOPENVIRONMENT=0
  32. DEVELOPMENTAPPS=0
  33. OFFICEAPPS=0
  34. SYSTEMAPPS=0
  35. GRAPHICSAPPS=0
  36. INTERNETAPPS=0
  37. AUDIOAPPS=0
  38. VIDEOAPPS=0
  39. LAMP=0
  40. GAMES=0
  41. FONTS=0
  42. FONTSCONFIG=0
  43. CLEANPACKAGES=0
  44.  
  45. ARCHI=`uname -m`
  46.  
  47. # Automatically detects the system language based on your rc.conf#{{{
  48. LOCATION=`cat /etc/rc.conf | sed -n '/LOCALE=/p' | sed '1!d' | cut -c9-13`
  49. #KDE #{{{
  50.     if [ $LOCATION = "pt_BR" ] || [ $LOCATION = "en_GB" ] || [ $LOCATION = "zh_CN" ]; then
  51.         LOCATION_KDE=`echo $LOCATION | tr '[:upper:]' '[:lower:]'`
  52.     elif [ $LOCATION = "en_US" ]; then
  53.         LOCATION_KDE="en_gb"
  54.     else
  55.         LOCATION_KDE=`echo $LOCATION | cut -d\_ -f1`
  56.     fi
  57. #}}}
  58. #FIREFOX #{{{
  59.     if [ $LOCATION = "pt_BR" ] || [ $LOCATION = "pt_PT" ] || [ $LOCATION = "en_GB" ] || [ $LOCATION = "es_AR" ] || [ $LOCATION = "es_ES" ] || [ $LOCATION = "zh_CN" ]; then
  60.         LOCATION_FF=`echo $LOCATION | tr '[:upper:]' '[:lower:]' | sed 's/_/-/'`
  61.     elif [ $LOCATION = "en_US" ]; then
  62.         LOCATION_FF="en-gb"
  63.     else
  64.         LOCATION_FF=`echo $LOCATION | cut -d\_ -f1`
  65.     fi
  66. #}}}
  67. #HUNSPELL #{{{
  68.     if [ $LOCATION = "pt_BR" ]; then
  69.         LOCATION_HS=`echo $LOCATION | tr '[:upper:]' '[:lower:]' | sed 's/_/-/'`
  70.     elif [ $LOCATION = "pt_PT" ]; then
  71.         LOCATION_HS="pt_pt"
  72.     else
  73.         LOCATION_HS=`echo $LOCATION | cut -d\_ -f1`
  74.     fi
  75. #}}}
  76. #LIBREOFFICE #{{{
  77.     if [ $LOCATION = "pt_BR" ] || [ $LOCATION = "en_GB" ] || [ $LOCATION = "en_US" ] || [ $LOCATION = "zh_CN" ]; then
  78.         LOCATION_LO=`echo $LOCATION | sed 's/_/-/'`
  79.     else
  80.         LOCATION_LO=`echo $LOCATION | cut -d\_ -f1`
  81.     fi
  82. #}}}
  83. #}}}
  84.  
  85. function question_for_answer(){ #{{{
  86.     read -p "$1 [y][N]: " OPTION
  87.     OPTION=`echo "$OPTION" | tr '[:upper:]' '[:lower:]'`
  88.     echo ""
  89. } #}}}
  90. function print_line(){ #{{{
  91.     printf "%$(tput cols)s\n"|tr ' ' '-'
  92. } #}}}
  93. function print_title (){ #{{{
  94.     clear
  95.     print_line
  96.     echo -e "# $1"
  97.     print_line
  98.     echo ""
  99. } #}}}
  100. function checkbox(){ #{{{
  101.     if [[ $1 -eq 1 ]]; then
  102.         echo "[X]"
  103.     else
  104.         echo "[ ]"
  105.     fi
  106. } #}}}
  107. function add_daemon(){ #{{{
  108.     remove_daemon "$1"
  109.     sed -i '/DAEMONS[=]/s/\(.*\)\>/& '"$1"'/' /etc/rc.conf
  110. } #}}}
  111. function remove_daemon(){ #{{{
  112.     sed -i '/DAEMONS[=]/s/'"$1"' //' /etc/rc.conf
  113. } #}}}
  114. function add_module(){ #{{{
  115.     remove_module "$1"
  116.     sed -i '/MODULES[=]/s/\(.*\)\>/& '"$1"'/' /etc/rc.conf
  117.     #sed -i '/MODULES[=]/s/^[^ ]*\>/& '"$1"'/' /etc/rc.conf
  118. } #}}}
  119. function remove_module(){ #{{{
  120.     sed -i '/MODULES[=]/s/'"$1"' //' /etc/rc.conf
  121. } #}}}
  122. function aurhelper_install(){ #{{{
  123.     for PACKAGE in $1; do
  124.         if !(pacman -Q $PACKAGE &>/dev/null) ; then
  125.             if [ "$YAOURT" -eq 1 ]; then
  126.                 su -l $USERNAME --command="yaourt -S --noconfirm $PACKAGE"
  127.             else
  128.                 su -l $USERNAME --command="packer -S --noconfirm $PACKAGE"
  129.             fi
  130.         else
  131.             echo -e "Package $PACKAGE already installed"
  132.         fi
  133.     done
  134.     for PACKAGE in $1; do
  135.         if !(pacman -Q $PACKAGE &>/dev/null) ; then
  136.             question_for_answer "Package $PACKAGE not installed, try install again?"
  137.             if [ $OPTION = "y" ]; then
  138.                 if [ "$YAOURT" -eq 1 ]; then
  139.                     su -l $USERNAME --command="yaourt -S $PACKAGE"
  140.                 else
  141.                     su -l $USERNAME --command="packer -S $PACKAGE"
  142.                 fi
  143.             fi
  144.         fi
  145.     done
  146. } #}}}
  147. function install_status(){ #{{{
  148.     if [ $? -ne 0 ] ; then
  149.         CURRENT_STATUS=-1
  150.     else
  151.         CURRENT_STATUS=1
  152.     fi
  153. } #}}}
  154. function pause_function(){ #{{{
  155.     print_line
  156.     read -e -sn 1 -p "Press any key to continue..."
  157. } #}}}
  158. function sumary(){ #{{{
  159.     case $CURRENT_STATUS in
  160.         0)
  161.             print_line
  162.             echo "$1 not successfull (Canceled)"
  163.             ;;
  164.         -1)
  165.             print_line
  166.             echo "$1 not successfull (Error)"
  167.             ;;
  168.         1)
  169.             print_line
  170.             echo "$1 successfull"
  171.             ;;
  172.         *)
  173.             print_line
  174.             echo "WRONG ARG GIVEN"
  175.             ;;
  176.     esac
  177. } #}}}
  178. function reboot_now(){ #{{{
  179.     question_for_answer "Reboot now?"
  180.     case "$OPTION" in
  181.         "y")
  182.             echo "Thanks for using the Archlinux Ultimate Install script by helmuthdu"
  183.             echo "Your Computer will now restart"
  184.             pause_function
  185.             reboot
  186.             exit 0
  187.             ;;
  188.         *)
  189.             ;;
  190.     esac
  191. } #}}}
  192.  
  193. #WELCOME {{{
  194. function welcome(){
  195.     clear
  196.     echo "Welcome to the Archlinux Ultimate install script by helmuthdu"
  197.     print_line
  198.     echo "Requirements:"
  199.     echo "-> Archlinux installation"
  200.     echo "-> Run script as root user"
  201.     echo "-> Working internet connection"
  202.     print_line
  203.     echo "Script can be canceled all the time with CTRL+C"
  204.     print_line
  205.     echo "it's highly recommended you read this script before use it"
  206.     echo "This version is still in BETA. Send bugreports to: "
  207.     echo "helmuthdu at gmail dot com"
  208.     pause_function
  209.  
  210. }
  211. #}}}
  212. #CHECK ROOT {{{
  213. function check_root() {
  214.     CURRENTUSER="$(whoami)"
  215.     if [ $CURRENTUSER != "root" ]; then
  216.         echo "Current user is NOT 'root'. EXIT now"
  217.         pause_function
  218.         exit 1
  219.     fi
  220. }
  221. #}}}
  222. #LANGUAGE SELECTOR {{{
  223. function language_selector(){
  224.     print_title "LANGUAGE - https://wiki.archlinux.org/index.php/Locale"
  225.     question_for_answer "Default system language: \"$LOCATION\""
  226.     case "$OPTION" in
  227.         "n")
  228.             read -p "New system language [ex: en_US]: " LOCATION
  229.             #KDE #{{{
  230.             if [ $LOCATION = "pt_BR" ] || [ $LOCATION = "en_GB" ] || [ $LOCATION = "zh_CN" ]; then
  231.                 LOCATION_KDE=`echo $LOCATION | tr '[:upper:]' '[:lower:]'`
  232.             elif [ $LOCATION = "en_US" ]; then
  233.                 LOCATION_KDE="en_gb"
  234.             else
  235.                 LOCATION_KDE=`echo $LOCATION | cut -d\_ -f1`
  236.             fi
  237.             #}}}
  238.             #FIREFOX #{{{
  239.             if [ $LOCATION = "pt_BR" ] || [ $LOCATION = "pt_PT" ] || [ $LOCATION = "en_GB" ] || [ $LOCATION = "es_AR" ] || [ $LOCATION = "es_ES" ] || [ $LOCATION = "zh_CN" ]; then
  240.                 LOCATION_FF=`echo $LOCATION | tr '[:upper:]' '[:lower:]' | sed 's/_/-/'`
  241.             elif [ $LOCATION = "en_US" ]; then
  242.                 LOCATION_FF="en-gb"
  243.             else
  244.                 LOCATION_FF=`echo $LOCATION | cut -d\_ -f1`
  245.             fi
  246.             #}}}
  247.             #HUNSPELL #{{{
  248.             if [ $LOCATION = "pt_BR" ]; then
  249.                 LOCATION_HS=`echo $LOCATION | tr '[:upper:]' '[:lower:]' | sed 's/_/-/'`
  250.             elif [ $LOCATION = "pt_PT" ]; then
  251.                 LOCATION_HS="pt_pt"
  252.             else
  253.                 LOCATION_HS=`echo $LOCATION | cut -d\_ -f1`
  254.             fi
  255.             #}}}
  256.             #LIBREOFFICE #{{{
  257.             if [ $LOCATION = "pt_BR" ] || [ $LOCATION = "en_GB" ] || [ $LOCATION = "en_US" ] || [ $LOCATION = "zh_CN" ]; then
  258.                 LOCATION_LO=`echo $LOCATION | sed 's/_/-/'`
  259.             else
  260.                 LOCATION_LO=`echo $LOCATION | cut -d\_ -f1`
  261.             fi
  262.             #}}}
  263.             ;;
  264.         *)
  265.             ;;
  266.     esac
  267.     pause_function
  268. }
  269. #}}}
  270. #CUSTOM REPOSITORIES {{{
  271. function custom_repositories(){
  272.     print_title "CUSTOM REPOSITORIES - https://wiki.archlinux.org/index.php/Unofficial_User_Repositories"
  273.     question_for_answer "Add custom repositories"
  274.     case "$OPTION" in
  275.         "y")
  276.         #CUSTOM REPOSITORIES {{{
  277.             LOOP=1
  278.             while [ "$LOOP" -ne 0 ]
  279.             do
  280.                 print_title "CUSTOM REPOSITORIES - https://wiki.archlinux.org/index.php/Unofficial_User_Repositories"
  281.                 echo " 1) Ayatana"
  282.                 echo " 2) Archlinuxfr"
  283.                 if [ "$ARCHI" = "x86_64" ]; then echo " 3) Multilib"; fi
  284.                 echo ""
  285.                 echo " a) \"Add Custom\""
  286.                 echo ""
  287.                 echo " d) DONE"
  288.                 echo ""
  289.                 read -p "Option: " OPTION
  290.                 case "$OPTION" in
  291.                     1)
  292.                         echo -e '\n[ayatana]\nServer = http://repo.ayatana.info/' >> /etc/pacman.conf
  293.                         pause_function
  294.                         ;;
  295.                     2)
  296.                         echo -e '\n[archlinuxfr]\nServer = http://repo.archlinux.fr/$arch' >> /etc/pacman.conf
  297.                         pause_function
  298.                         ;;
  299.                     3)
  300.                         echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
  301.                         pause_function
  302.                         ;;
  303.                     "a")
  304.                         read -p "Repository Name [ex: custom]: " REPONAME
  305.                         read -p "Repository Address [ex: file:///media/backup/Archlinux/]: " REPOADDRESS
  306.                         echo -e '\n['"$REPONAME"']\nServer = '"$REPOADDRESS"'$arch' >> /etc/pacman.conf
  307.                         pause_function
  308.                         ;;
  309.                     *)
  310.                         LOOP=0
  311.                         ;;
  312.                 esac
  313.             done
  314.             pacman -Sy
  315.             install_status
  316.             ;;
  317.         #}}}
  318.         *)
  319.             CURRENT_STATUS=0
  320.             ;;
  321.     esac
  322.     sumary "Custom repositories installation"
  323.     pause_function
  324. }
  325. #}}}
  326. #RANKMIRROR {{{
  327. function rankmirror(){
  328.     print_title "RANKMIRROR - https://wiki.archlinux.org/index.php/Improve_Pacman_Performance"
  329.     question_for_answer "Choosing the fastest mirror using rankmirror (this can take a while)"
  330.     case "$OPTION" in
  331.         "y")
  332.             cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
  333.             sed -i '/^#\S/ s|#||' /etc/pacman.d/mirrorlist.backup
  334.             rankmirrors -n 5 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
  335.             install_status
  336.             ;;
  337.         *)
  338.             CURRENT_STATUS=0
  339.             ;;
  340.     esac
  341.     sumary "New mirrorlist creation"
  342.     pause_function
  343. }
  344. #}}}
  345. #SYSTEM UPDATE {{{
  346. function system_upgrade(){
  347.     print_title "UPDATING YOUR SYSTEM"
  348.     pacman -Syuf
  349.     reboot_now
  350. }
  351. #}}}
  352. #CREATE A NEW USER {{{
  353. function create_user(){
  354.     print_title "CREATE USER ACCOUNT - https://wiki.archlinux.org/index.php/Users_and_Groups"
  355.     read -p "New username: " USERNAME
  356.     useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power,scanner,network -s /bin/bash $USERNAME
  357.     passwd $USERNAME
  358.     #SET USER AS SUDO #{{{
  359.         print_title "SUDO - https://wiki.archlinux.org/index.php/Sudo"
  360.         pacman -S --noconfirm --needed sudo
  361.         ## Uncomment to allow members of group wheel to execute any command
  362.         sed -i '/%wheel ALL=(ALL) ALL/s/^#//' /etc/sudoers
  363.         ## Same thing without a password (not secure)
  364.         #sed -i '/%wheel ALL=(ALL) NOPASSWD: ALL/s/^#//' /etc/sudoers
  365.     #}}}
  366. }
  367. #}}}
  368. #AUR HELPER {{{
  369. function choose_aurhelper(){
  370.     LOOP=1
  371.     while [ "$LOOP" -ne 0 ]
  372.     do
  373.         print_title "AUR HELPER - https://wiki.archlinux.org/index.php/AUR_Helpers"
  374.         echo "Choose your default AUR helper to install"
  375.         echo " 1) Yaourt"
  376.         echo " 2) Packer"
  377.         echo ""
  378.         read -p "Option: " OPTION
  379.         case "$OPTION" in
  380.             1)
  381.                 if !(pacman -Q yaourt &>/dev/null) ; then
  382.                     pacman -S --noconfirm --needed base-devel yajl
  383.                     su -l $USERNAME --command="
  384.                        wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz;
  385.                        tar zxvf package-query.tar.gz;
  386.                        cd package-query;
  387.                        makepkg -si --noconfirm;
  388.                        cd ..;
  389.                        rm -fr package-query*
  390.                    "
  391.                     su -l $USERNAME --command="
  392.                        wget http://aur.archlinux.org/packages/yaourt/yaourt.tar.gz;
  393.                        tar zxvf yaourt.tar.gz;
  394.                        cd yaourt;
  395.                        makepkg -si --noconfirm;
  396.                        cd ..;
  397.                        rm -fr yaourt*
  398.                    "
  399.                     if !(pacman -Q yaourt &>/dev/null) ; then
  400.                         echo "Yaourt not installed. EXIT now"
  401.                         pause_function
  402.                         exit 0
  403.                     fi
  404.                 fi
  405.                 install_status
  406.                 YAOURT=1
  407.                 LOOP=0
  408.                 ;;
  409.             2)
  410.                 if !(pacman -Q packer &>/dev/null) ; then
  411.                     pacman -S --noconfirm --needed git jshon curl
  412.                     su -l $USERNAME --command="
  413.                        wget http://aur.archlinux.org/packages/pa/packer/packer.tar.gz;
  414.                        tar zxvf packer.tar.gz;
  415.                        cd packer;
  416.                        makepkg -si --noconfirm;
  417.                        cd ..;
  418.                        rm -fr packer*
  419.                    "
  420.                     if !(pacman -Q packer &>/dev/null) ; then
  421.                         echo "Packer not installed. EXIT now"
  422.                         pause_function
  423.                         exit 0
  424.                     fi
  425.                 fi
  426.                 install_status
  427.                 PACKER=1
  428.                 LOOP=0
  429.                 ;;
  430.             *)
  431.                 echo "Wrong option"
  432.                 pause_function
  433.                 LOOP=1
  434.                 ;;
  435.         esac
  436.     done
  437.     sumary "AUR Helper installation"
  438.     pause_function
  439. }
  440. #}}}
  441. #PACKMAN PACKAGE SIGNING {{{
  442. function pacman_package_signing(){
  443.     print_title "PACMAN PACKAGE SIGNING - https://wiki.archlinux.org/index.php/Pacman-key"
  444.     question_for_answer "Automatically configure pacman package signing"
  445.     case "$OPTION" in
  446.         "y")
  447.             pacman -S --noconfirm --needed base-devel
  448.             aurhelper_install "rng-tools"
  449.             sed -i '/timeout/s/0/10/' /etc/conf.d/rngd
  450.             rngd -f -r /dev/urandom &
  451.             pacman-key --init
  452.             killall rngd
  453.             pacman -Rns --noconfirm rng-tools
  454.             #DEVELOPER AND TU KEYS {{{
  455.             curl https://www.archlinux.org/{developers,trustedusers}/ |
  456.             awk -F\" '(/pgp.mit.edu/) {sub(/.*search=0x/,"");print $1}' |
  457.             xargs pacman-key --recv-keys
  458.             #}}}
  459.             sed -i '/SigLevel\ [=]\ Optional\ TrustAll/s/^#//' /etc/pacman.conf
  460.             sed -i '/SigLevel\ [=]\ Never/s/^/#/' /etc/pacman.conf
  461.             install_status
  462.             ;;
  463.         *)
  464.             CURRENT_STATUS=0
  465.             ;;
  466.     esac
  467.     sumary "Pacman signing configuration"
  468.     pause_function
  469. }
  470. #}}}
  471. #BASIC SETUP{{{
  472. function install_basic_setup(){
  473.     print_title "BASH TOOLS - https://wiki.archlinux.org/index.php/Bash"
  474.     pacman -S --noconfirm --needed curl bc rsync mlocate bash-completion vim net-tools
  475.     print_title "(UN)COMPRESS TOOLS - https://wiki.archlinux.org/index.php/P7zip"
  476.     pacman -S --noconfirm --needed zip unzip unrar p7zip
  477.     aurhelper_install "rar"
  478.     print_title "DBUS - https://wiki.archlinux.org/index.php/D-Bus"
  479.     pacman -S --noconfirm --needed dbus
  480.     add_daemon "dbus"
  481.     rc.d start dbus
  482.     print_title "ACPI - https://wiki.archlinux.org/index.php/ACPI_modules"
  483.     pacman -S --noconfirm --needed acpi acpid
  484.     add_daemon "acpid"
  485.     print_title "NTFS/FAT - https://wiki.archlinux.org/index.php/Ntfs"
  486.     pacman -S --noconfirm --needed ntfs-3g ntfsprogs dosfstools
  487.     print_title "SSH - https://wiki.archlinux.org/index.php/Ssh"
  488.     pacman -S --noconfirm --needed rssh openssh
  489.     add_daemon "@sshd"
  490.     #CONFIGURE SSH #{{{
  491.         echo -e "sshd: ALL\n# End of file" > /etc/hosts.allow
  492.         echo -e "ALL: ALL: DENY\n# End of file" > /etc/hosts.deny
  493.         #SSHD_CONF #{{{
  494.             sed -i '/ListenAddress/s/^#//' /etc/ssh/sshd_config
  495.             sed -i '/SyslogFacility/s/^#//' /etc/ssh/sshd_config
  496.             sed -i '/LogLevel/s/^#//' /etc/ssh/sshd_config
  497.             sed -i '/LoginGraceTime/s/^#//' /etc/ssh/sshd_config
  498.             sed -i '/PermitRootLogin/s/^#//' /etc/ssh/sshd_config
  499.             sed -i '/StrictModes/s/^#//' /etc/ssh/sshd_config
  500.             sed -i '/RSAAuthentication/s/^#//' /etc/ssh/sshd_config
  501.             sed -i '/PubkeyAuthentication/s/^#//' /etc/ssh/sshd_config
  502.             sed -i '/IgnoreRhosts/s/^#//' /etc/ssh/sshd_config
  503.             sed -i '/PermitEmptyPasswords/s/^#//' /etc/ssh/sshd_config
  504.             sed -i '/X11Forwarding/s/^#//' /etc/ssh/sshd_config
  505.             sed -i '/X11Forwarding/s/no/yes/' /etc/ssh/sshd_config
  506.             sed -i '/X11DisplayOffset/s/^#//' /etc/ssh/sshd_config
  507.             sed -i '/X11UseLocalhost/s/^#//' /etc/ssh/sshd_config
  508.             sed -i '/PrintMotd/s/^#//' /etc/ssh/sshd_config
  509.             sed -i '/PrintMotd/s/yes/no/' /etc/ssh/sshd_config
  510.             sed -i '/PrintLastLog/s/^#//' /etc/ssh/sshd_config
  511.             sed -i '/TCPKeepAlive/s/^#//' /etc/ssh/sshd_config
  512.             sed -i '/the setting of/s/^/#/' /etc/ssh/sshd_config
  513.             sed -i '/RhostsRSAAuthentication and HostbasedAuthentication/s/^/#/' /etc/ssh/sshd_config
  514.             sed -i '/ListenAddress\ ::/s/^/#/' /etc/ssh/sshd_config
  515.         #}}}
  516.     #}}}
  517.     print_title "SAMBA - https://wiki.archlinux.org/index.php/Samba"
  518.     pacman -S --noconfirm --needed samba
  519.     cp /etc/samba/smb.conf.default /etc/samba/smb.conf
  520.     add_daemon "@samba"
  521.     print_title "ALSA - https://wiki.archlinux.org/index.php/Alsa"
  522.     pacman -S --noconfirm --needed alsa-utils alsa-plugins
  523.     sed -i '/MODULES[=]/s/snd-usb-audio//' /etc/rc.conf
  524.     sed -i '/MODULES[=]/s/MODULES[=](/&snd-usb-audio/' /etc/rc.conf
  525.     add_daemon "@alsa"
  526. }
  527. #}}}
  528. #TLP #{{{
  529. function install_tlp(){
  530.     print_title "TLP - https://wiki.archlinux.org/index.php/TLP"
  531.     question_for_answer "Install TLP (great battery improvement on laptops)"
  532.     case "$OPTION" in
  533.         "y")
  534.             aurhelper_install "tlp"
  535.             pacman -S --noconfirm --needed upower
  536.             add_daemon "@tlp"
  537.             install_status
  538.             ;;
  539.         *)
  540.             CURRENT_STATUS=0
  541.             ;;
  542.     esac
  543.     sumary "TLP installation"
  544.     pause_function
  545. }
  546. #}}}
  547. #XORG {{{
  548. function install_xorg(){
  549.     print_title "XORG - https://wiki.archlinux.org/index.php/Xorg"
  550.     echo "Installing X-Server (req. for Desktopenvironment, GPU Drivers, Keyboardlayout,...)"
  551.     pacman -S --noconfirm --needed xorg-server xorg-xinit xorg-xkill
  552.     pacman -S --noconfirm --needed xf86-input-synaptics xf86-input-mouse xf86-input-keyboard
  553.     pacman -S --noconfirm --needed mesa
  554.     pacman -S --noconfirm --needed gamin
  555. }
  556. #}}}
  557. #VIDEO CARDS {{{
  558. function install_video_cards(){
  559.     print_title "VIDEO CARD"
  560.     echo "Select your GPU:"
  561.     echo " 1) Intel"
  562.     echo " 2) ATI"
  563.     echo " 3) nVidia"
  564.     echo " 4) Nouveau"
  565.     echo " 5) Virtualbox"
  566.     echo " 6) Vesa"
  567.     echo ""
  568.     echo " s) SKIP"
  569.     echo ""
  570.     read -p "Option: " OPTION
  571.     case "$OPTION" in
  572.         1)
  573.             pacman -S --noconfirm --needed libgl xf86-video-intel
  574.             install_status
  575.             sumary "Intel GPU driver installation"
  576.             ;;
  577.         2)
  578.             aurhelper_install "catalyst catalyst-utils"
  579.             install_status
  580.             sumary "ATI GPU driver installation"
  581.             ;;
  582.         3)
  583.             pacman -Rdd --noconfirm libgl
  584.             pacman -S --noconfirm --needed nvidia nvidia-utils
  585.             install_status
  586.             sumary "nVidia GPU driver installation"
  587.             ;;
  588.         4)
  589.             pacman -S --noconfirm --needed libgl xf86-video-nouveau nouveau-dri
  590.             modprobe nouveau
  591.             add_module "nouveau"
  592.             install_status
  593.             sumary "Nouveau GPU driver installation"
  594.             ;;
  595.         5)
  596.             pacman -S --noconfirm --needed virtualbox-archlinux-additions
  597.             modprobe -a vboxguest vboxsf vboxvideo
  598.             add_module "vboxguest vboxsf vboxvideo"
  599.             groupadd vboxsf
  600.             gpasswd -a $USERNAME vboxsf
  601.             install_status
  602.             sumary "Virtualbox guest additions (incl. video drivers) installation"
  603.             ;;
  604.         6)
  605.             pacman -S --noconfirm --needed xf86-video-vesa
  606.             install_status
  607.             sumary "Vesa GPU driver installation"
  608.             ;;
  609.         *)
  610.             CURRENT_STATUS=0
  611.             sumary "GPU drivers installation"
  612.             ;;
  613.     esac
  614.     pause_function
  615. }
  616. #}}}
  617. #CUPS {{{
  618. function install_cups(){
  619.     print_title "CUPS - https://wiki.archlinux.org/index.php/Cups"
  620.     pacman -S --noconfirm --needed cups ghostscript gsfonts
  621.     pacman -S --noconfirm --needed gutenprint foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters hplip splix cups-pdf
  622.     add_daemon "@cupsd"
  623. }
  624. #}}}
  625. #ADDITIONAL FIRMWARE {{{
  626. function install_additional_firmwares(){
  627.     print_title "INSTALL ADDITIONAL FIRMWARES"
  628.     question_for_answer "Install additional firmwares [Wireless,Bluetooth]"
  629.     case "$OPTION" in
  630.         "y")
  631.         #ADDITIONAL FIRMWARE {{{
  632.             LOOP=1
  633.             while [ "$LOOP" -ne 0 ]
  634.             do
  635.                 print_title "INSTALL ADDITIONAL FIRMWARES"
  636.                 echo " 1) ipw2100"
  637.                 echo " 2) ipw2200"
  638.                 echo " 3) b43"
  639.                 echo " 4) b43legacy"
  640.                 echo " 5) broadcom-wl"
  641.                 echo " 6) bluez-firmware"
  642.                 echo " 7) Wireless Tools"
  643.                 echo ""
  644.                 echo " d) DONE"
  645.                 echo ""
  646.                 read -p "Option: " OPTION
  647.                 case "$OPTION" in
  648.                     1)
  649.                         aurhelper_install "ipw2100-fw"
  650.                         pause_function
  651.                         ;;
  652.                     2)
  653.                         aurhelper_install "ipw2200-fw"
  654.                         pause_function
  655.                         ;;
  656.                     3)
  657.                         aurhelper_install "b43-firmware"
  658.                         pause_function
  659.                         ;;
  660.                     4)
  661.                         aurhelper_install "b43-firmware-legacy"
  662.                         pause_function
  663.                         ;;
  664.                     5)
  665.                         aurhelper_install "broadcom-wl"
  666.                         pause_function
  667.                         ;;
  668.                     6)
  669.                         aurhelper_install "bluez-firmware"
  670.                         pause_function
  671.                         ;;
  672.                     7)
  673.                         aurhelper_install "wireless-regdb rfkill crda wpa_supplicant"
  674.                         pause_function
  675.                         ;;
  676.                     *)
  677.                         LOOP=0
  678.                         ;;
  679.                 esac
  680.             done
  681.             install_status
  682.             ;;
  683.         #}}}
  684.         *)
  685.             CURRENT_STATUS=0
  686.             ;;
  687.     esac
  688.     sumary "Additional Firmware"
  689.     pause_function
  690. }
  691. #}}}
  692. #GIT ACCESS THRU A FIREWALL {{{
  693. function install_git_tor(){
  694.     print_title "GIT-TOR - https://wiki.archlinux.org/index.php/Tor"
  695.     question_for_answer "Ensuring access to GIT through a firewall (bypass college firewall)"
  696.     case "$OPTION" in
  697.         "y")
  698.             aurhelper_install "gtk-doc openbsd-netcat vidalia privoxy git"
  699.             if [ ! -f /usr/bin/proxy-wrapper ]; then
  700.                 echo 'forward-socks5   /               127.0.0.1:9050 .' >> /etc/privoxy/config
  701.                 echo -e '#!/bin/bash\nnc.openbsd -xlocalhost:9050 -X5 $*' > /usr/bin/proxy-wrapper
  702.                 chmod +x /usr/bin/proxy-wrapper
  703.                 echo -e '\nexport GIT_PROXY_COMMAND="/usr/bin/proxy-wrapper"' >> /etc/bash.bashrc
  704.                 export GIT_PROXY_COMMAND="/usr/bin/proxy-wrapper"
  705.                 su -l $USERNAME --command="export GIT_PROXY_COMMAND=\"/usr/bin/proxy-wrapper\""
  706.             fi
  707.             groupadd -g 42 privoxy
  708.             useradd -u 42 -g privoxy -s /bin/false -d /etc/privoxy privoxy
  709.             pacman -S --noconfirm tor privoxy
  710.             rc.d start tor privoxy
  711.             su -l $USERNAME --command="sudo /etc/rc.d/tor restart"
  712.             su -l $USERNAME --command="sudo /etc/rc.d/privoxy restart"
  713.             add_daemon "@tor @privoxy"
  714.             install_status
  715.             ;;
  716.         *)
  717.             CURRENT_STATUS=0
  718.             ;;
  719.     esac
  720.     sumary "GIT-TOR installation"
  721.     pause_function
  722. }
  723. #}}}
  724. #DESKTOP ENVIRONMENT {{{
  725. function install_desktop_environment(){
  726.     print_title "DESKTOP ENVIRONMENT - https://wiki.archlinux.org/index.php/Desktop_Environment"
  727.     echo "Choose your desktop-environment:"
  728.     echo " 1) GNOME"
  729.     echo " 2) KDE"
  730.     echo " 3) XFCE"
  731.     echo " 4) LXDE"
  732.     echo " 5) OpenBox"
  733.     echo ""
  734.     echo " b) BACK"
  735.     read -p "Option: " OPTION
  736.     case "$OPTION" in
  737.         1)
  738.             #GNOME {{{
  739.             print_title "GNOME - https://wiki.archlinux.org/index.php/GNOME"
  740.             pacman -S --noconfirm --needed gnome gnome-extra
  741.             gpasswd -a $USERNAME camera
  742.             pacman -S --noconfirm --needed gedit-plugins gnome-tweak-tool
  743.             pacman -S --noconfirm --needed gksu gvfs-smb xdg-user-dirs
  744.             pacman -S --noconfirm --needed pulseaudio-gnome telepathy deja-dup
  745.             pacman -S --noconfirm --needed system-config-printer-gnome
  746.             aurhelper_install "zeitgeist libzeitgeist zeitgeist-datahub"
  747.             aurhelper_install "automounter nautilus-open-terminal gnome-defaults-list"
  748.             #FAVORITE GNOME APPS {{{
  749.             LOOP=1
  750.             while [ "$LOOP" -ne 0 ]
  751.             do
  752.                 print_title "FAVORITE GNOME APPS"
  753.                 echo " 1) Cairo Dock"
  754.                 echo " 2) Conky + CONKY-colors"
  755.                 echo " 3) Gnome Icons [Faience, Faenza, Elementary]"
  756.                 echo " 4) Gnome Themes [Zukitwo, Orion, eGTK, Light, Aldabra]"
  757.                 echo " 5) GnomeShell Extensions"
  758.                 echo " 6) GnomeShell Themes [eOS, Nord, Faience, Dark Shine]"
  759.                 echo " 7) Gnome Activity Journal "
  760.                 echo " 8) Packagekit"
  761.                 echo " 9) Shutter"
  762.                 echo "10) Synapse"
  763.                 echo "11) Terminator"
  764.                 echo ""
  765.                 echo " a) ALL"
  766.                 echo " d) DONE"
  767.                 echo ""
  768.                 read -p "Option: " OPTION
  769.                 case "$OPTION" in
  770.                     1)
  771.                         aurhelper_install "cairo-dock-bzr cairo-dock-plugins-bzr"
  772.                         ;;
  773.                     2)
  774.                         aurhelper_install "conky conky-colors"
  775.                         add_module "coretemp it87 acpi-cpufreq"
  776.                         ;;
  777.                     3)
  778.                         aurhelper_install "faenza-icon-theme faience-icon-theme faenza-cupertino-icon-theme elementary-icons"
  779.                         ;;
  780.                     4)
  781.                         aurhelper_install "egtk-bzr"
  782.                         aurhelper_install "zukitwo-themes orion-gtk-theme light-themes gtk-theme-aldabra"
  783.                         ;;
  784.                     5)
  785.                         aurhelper_install "libkeybinder3"
  786.                         aurhelper_install "gpaste gnome-shell-system-monitor-applet-git gnome-shell-extension-noa11y-git gnome-shell-extension-weather-git gnome-shell-extension-user-theme gnome-shell-extension-pomodoro gnome-shell-extension-mediaplayer-git gnome-shell-extension-gtile-git"
  787.                         ;;
  788.                     6)
  789.                         aurhelper_install "gnome-shell-theme-faience gnome-shell-theme-nord gnome-shell-theme-eos gnome-shell-theme-dark-shine"
  790.                         ;;
  791.                     7)
  792.                         aurhelper_install "gnome-activity-journal"
  793.                         ;;
  794.                     8)
  795.                         pacman -S --noconfirm --needed gnome-packagekit gnome-settings-daemon-updates
  796.                         ;;
  797.                     9)
  798.                         aurhelper_install "shutter"
  799.                         ;;
  800.                     10)
  801.                         aurhelper_install "synapse"
  802.                         ;;
  803.                     11)
  804.                         aurhelper_install "python-keybinder"
  805.                         pacman -S --noconfirm --needed terminator
  806.                         ;;
  807.                     "a")
  808.                         pacman -S --noconfirm --needed gnome-packagekit gnome-settings-daemon-updates
  809.                         pacman -S --noconfirm --needed terminator
  810.                         aurhelper_install "cairo-dock-bzr cairo-dock-plugins-bzr"
  811.                         aurhelper_install "conky conky-colors"
  812.                         aurhelper_install "faenza-icon-theme faience-icon-theme faenza-cupertino-icon-theme elementary-icons"
  813.                         aurhelper_install "gnome-activity-journal"
  814.                         aurhelper_install "gnome-shell-theme-faience gnome-shell-theme-nord gnome-shell-theme-eos"
  815.                         aurhelper_install "libkeybinder3"
  816.                         aurhelper_install "gpaste gnome-shell-system-monitor-applet-git gnome-shell-extension-noa11y-git gnome-shell-extension-weather-git gnome-shell-extension-user-theme gnome-shell-extension-pomodoro gnome-shell-extension-mediaplayer-git gnome-shell-extension-gtile-git"
  817.                         aurhelper_install "python-keybinder"
  818.                         aurhelper_install "shutter"
  819.                         aurhelper_install "synapse"
  820.                         aurhelper_install "egtk-bzr"
  821.                         aurhelper_install "zukitwo-themes orion-gtk-theme light-themes gtk-theme-aldabra"
  822.                         add_module "coretemp it87 acpi-cpufreq"
  823.                         LOOP=0
  824.                         ;;
  825.                     *)
  826.                         LOOP=0
  827.                         ;;
  828.                 esac
  829.                 pause_function
  830.             done
  831.             #}}}
  832.             add_daemon "gdm"
  833.             install_status
  834.             GNOME=1
  835.             ;;
  836.             #}}}
  837.         2)
  838.             #KDE {{{
  839.             print_title "KDE - https://wiki.archlinux.org/index.php/KDE"
  840.             pacman -S --noconfirm --needed kde kde-l10n-$LOCATION_KDE kipi-plugins
  841.             pacman -Rcsn kdemultimedia-kscd kdemultimedia-juk kdemultimedia-dragonplayer
  842.             pacman -S --noconfirm --needed kdeadmin-system-config-printer-kde xdg-user-dirs
  843.             aurhelper_install "kde-gtk-config-git"
  844.             aurhelper_install "oxygen-gtk2 oxygen-gtk3 qtcurve-gtk2 qtcurve-kde4 bespin-svn"
  845.             #FAVORITE KDE APPS {{{
  846.             LOOP=1
  847.             while [ "$LOOP" -ne 0 ]
  848.             do
  849.                 print_title "FAVORITE KDE APPS"
  850.                 echo " 1) Apper"
  851.                 echo " 2) Bangarang"
  852.                 echo " 3) Choqok"
  853.                 echo " 4) Digikam"
  854.                 echo " 5) K3b"
  855.                 echo " 6) KDE Icons [KFaenza]"
  856.                 echo " 7) Minitube"
  857.                 echo " 8) Musique"
  858.                 echo " 9) Plasma Themes [Caledonia, Produkt]"
  859.                 echo "10) QtCurve Themes [Kawai, Sweet]"
  860.                 echo "11) Speedcrunch"
  861.                 echo "12) Yakuake"
  862.                 echo ""
  863.                 echo " a) ALL"
  864.                 echo " d) DONE"
  865.                 echo ""
  866.                 read -p "Option: " OPTION
  867.                 case "$OPTION" in
  868.                     1)
  869.                         aurhelper_install "apper"
  870.                         ;;
  871.                     2)
  872.                         aurhelper_install "bangarang"
  873.                         ;;
  874.                     3)
  875.                         pacman -S --noconfirm --needed choqok
  876.                         ;;
  877.                     4)
  878.                         pacman -S --noconfirm --needed digikam
  879.                         ;;
  880.                     5)
  881.                         pacman -S --noconfirm --needed k3b dvd+rw-tools
  882.                         ;;
  883.                     6)
  884.                         aurhelper_install "kfaenza-icon-theme"
  885.                         ;;
  886.                     7)
  887.                         aurhelper_install "minitube"
  888.                         ;;
  889.                     8)
  890.                         aurhelper_install "musique"
  891.                         ;;
  892.                     9)
  893.                         aurhelper_install "caledonia-bundle plasma-theme-produkt"
  894.                         ;;
  895.                     10)
  896.                         #QtCurve Themes #{{{
  897.                         wget http://kde-look.org/CONTENT/content-files/144205-Sweet.tar.gz
  898.                         wget http://kde-look.org/CONTENT/content-files/141920-Kawai.tar.gz
  899.                         tar zxvf 144205-Sweet.tar.gz
  900.                         tar zxvf 141920-Kawai.tar.gz
  901.                         rm 144205-Sweet.tar.gz
  902.                         rm 141920-Kawai.tar.gz
  903.                         mkdir -p /home/$USERNAME/.kde4/share/apps/color-schemes
  904.                         mv Sweet/Sweet.colors /home/$USERNAME/.kde4/share/apps/color-schemes
  905.                         mv Kawai/Kawai.colors /home/$USERNAME/.kde4/share/apps/color-schemes
  906.                         mkdir -p /home/$USERNAME/.kde4/share/apps/QtCurve
  907.                         mv Sweet/Sweet.qtcurve /home/$USERNAME/.kde4/share/apps/QtCurve
  908.                         mv Kawai/Kawai.qtcurve /home/$USERNAME/.kde4/share/apps/QtCurve
  909.                         chown -R $USERNAME:users /home/$USERNAME/.kde4
  910.                         rm -fr Kawai Sweet
  911.                         #}}}
  912.                         ;;
  913.                     11)
  914.                         aurhelper_install "speedcrunch"
  915.                         ;;
  916.                     12)
  917.                         pacman -S --noconfirm --needed yakuake
  918.                         aurhelper_install "yakuake-skin-plasma-oxygen-panel"
  919.                         ;;
  920.                     "a")
  921.                         pacman -S --noconfirm --needed choqok
  922.                         pacman -S --noconfirm --needed digikam
  923.                         pacman -S --noconfirm --needed k3b dvd+rw-tools
  924.                         pacman -S --noconfirm --needed yakuake
  925.                         aurhelper_install "apper"
  926.                         aurhelper_install "bangarang"
  927.                         aurhelper_install "caledonia-bundle plasma-theme-produkt"
  928.                         aurhelper_install "kfaenza-icon-theme"
  929.                         aurhelper_install "minitube"
  930.                         aurhelper_install "musique"
  931.                         aurhelper_install "speedcrunch"
  932.                         aurhelper_install "yakuake-skin-plasma-oxygen-panel"
  933.                         #QTCURVE THEMES #{{{
  934.                         wget http://kde-look.org/CONTENT/content-files/144205-Sweet.tar.gz
  935.                         wget http://kde-look.org/CONTENT/content-files/141920-Kawai.tar.gz
  936.                         tar zxvf 144205-Sweet.tar.gz
  937.                         tar zxvf 141920-Kawai.tar.gz
  938.                         rm 144205-Sweet.tar.gz
  939.                         rm 141920-Kawai.tar.gz
  940.                         mkdir -p /home/$USERNAME/.kde4/share/apps/color-schemes
  941.                         mv Sweet/Sweet.colors /home/$USERNAME/.kde4/share/apps/color-schemes
  942.                         mv Kawai/Kawai.colors /home/$USERNAME/.kde4/share/apps/color-schemes
  943.                         mkdir -p /home/$USERNAME/.kde4/share/apps/QtCurve
  944.                         mv Sweet/Sweet.qtcurve /home/$USERNAME/.kde4/share/apps/QtCurve
  945.                         mv Kawai/Kawai.qtcurve /home/$USERNAME/.kde4/share/apps/QtCurve
  946.                         chown -R $USERNAME:users /home/$USERNAME/.kde4
  947.                         rm -fr Kawai Sweet
  948.                         #}}}
  949.                         LOOP=0
  950.                         ;;
  951.                     *)
  952.                         LOOP=0
  953.                         ;;
  954.                 esac
  955.                 pause_function
  956.             done
  957.             #}}}
  958.             add_daemon "kdm"
  959.             install_status
  960.             KDE=1
  961.             ;;
  962.             #}}}
  963.         3)
  964.             #XFCE {{{
  965.             print_title "XFCE - https://wiki.archlinux.org/index.php/Xfce"
  966.             pacman -S --noconfirm --needed xfce4 xfce4-goodies
  967.             pacman -S --noconfirm --needed polkit-gnome gvfs-smb xdg-user-dirs
  968.             aurhelper_install "automounter"
  969.             aurhelper_install "gnome-defaults-list"
  970.             #FAVORITE XFCE APPS {{{
  971.             LOOP=1
  972.             while [ "$LOOP" -ne 0 ]
  973.             do
  974.                 print_title "FAVORITE GNOME APPS"
  975.                 echo " 1) Cairo Dock"
  976.                 echo " 2) Conky + CONKY-colors"
  977.                 echo " 3) Icons [Faience, Faenza, Elementary]"
  978.                 echo " 4) Kupfer"
  979.                 echo " 5) Shutter"
  980.                 echo " 6) Terminator"
  981.                 echo " 7) Themes [Zukitwo]"
  982.                 echo ""
  983.                 echo " d) DONE"
  984.                 echo ""
  985.                 read -p "Option: " OPTION
  986.                 case "$OPTION" in
  987.                     1)
  988.                         aurhelper_install "cairo-dock-bzr cairo-dock-plugins-bzr"
  989.                         ;;
  990.                     2)
  991.                         aurhelper_install "conky conky-colors"
  992.                         add_module "coretemp it87 acpi-cpufreq"
  993.                         ;;
  994.                     3)
  995.                         aurhelper_install "faenza-icon-theme faience-icon-theme faenza-cupertino-icon-theme elementary-icons"
  996.                         ;;
  997.                     4)
  998.                         aurhelper_install "kupfer"
  999.                         ;;
  1000.                     5)
  1001.                         aurhelper_install "shutter"
  1002.                         ;;
  1003.                     6)
  1004.                         pacman -S --noconfirm --needed terminator
  1005.                         aurhelper_install "python-keybinder"
  1006.                         ;;
  1007.                     7)
  1008.                         aurhelper_install "zukitwo-themes"
  1009.                         ;;
  1010.                     *)
  1011.                         LOOP=0
  1012.                         ;;
  1013.                 esac
  1014.                 pause_function
  1015.             done
  1016.             #}}}
  1017.             install_status
  1018.             XFCE=1
  1019.             ;;
  1020.             #}}}
  1021.         4)
  1022.             #LXDE {{{
  1023.             print_title "LXDE - http://wiki.archlinux.org/index.php/lxde"
  1024.             pacman -S --noconfirm --needed lxde obconf
  1025.             pacman -S --noconfirm --needed leafpad xarchiver epdfview
  1026.             pacman -S --noconfirm --needed pm-utils upower
  1027.             pacman -S --noconfirm --needed polkit-gnome gvfs gvfs-smb xdg-user-dirs
  1028.             aurhelper_install "gnome-defaults-list"
  1029.             #FAVORITE LXDE APPS {{{
  1030.             LOOP=1
  1031.             while [ "$LOOP" -ne 0 ]
  1032.             do
  1033.                 print_title "FAVORITE LXDE APPS"
  1034.                 echo " 1) Conky + CONKY-colors"
  1035.                 echo " 2) Galculator"
  1036.                 echo " 3) Icons [Faience, Faenza, Elementary]"
  1037.                 echo " 4) Irssi"
  1038.                 echo " 5) Kupfer"
  1039.                 echo " 6) Shutter"
  1040.                 echo " 7) Terminator"
  1041.                 echo " 8) Xfburn"
  1042.                 echo ""
  1043.                 echo " d) DONE"
  1044.                 echo ""
  1045.                 read -p "Option: " OPTION
  1046.                 case "$OPTION" in
  1047.                     1)
  1048.                         aurhelper_install "conky conky-colors"
  1049.                         add_module "coretemp it87 acpi-cpufreq"
  1050.                         ;;
  1051.                     2)
  1052.                         pacman -S --noconfirm --needed galculator
  1053.                         ;;
  1054.                     3)
  1055.                         aurhelper_install "faenza-icon-theme faience-icon-theme faenza-cupertino-icon-theme elementary-icons"
  1056.                         ;;
  1057.                     4)
  1058.                         pacman -S --noconfirm --needed irssi
  1059.                         ;;
  1060.                     5)
  1061.                         aurhelper_install "kupfer"
  1062.                         ;;
  1063.                     6)
  1064.                         aurhelper_install "shutter"
  1065.                         ;;
  1066.                     7)
  1067.                         pacman -S --noconfirm --needed terminator
  1068.                         aurhelper_install "python-keybinder"
  1069.                         ;;
  1070.                     8)
  1071.                         pacman -S --noconfirm --needed xfburn
  1072.                         ;;
  1073.                     *)
  1074.                         LOOP=0
  1075.                         ;;
  1076.                 esac
  1077.                 pause_function
  1078.             done
  1079.             #}}}
  1080.             add_daemon "lxdm"
  1081.             install_status
  1082.             LXDE=1
  1083.             ;;
  1084.             #}}}
  1085.         5)
  1086.             #OPENBOX {{{
  1087.             print_title "OPENBOX - http://wiki.archlinux.org/index.php/Openbox"
  1088.             pacman -S --noconfirm --needed openbox obconf obmenu menumaker
  1089.             pacman -S --noconfirm --needed lxappearance consolekit
  1090.             pacman -S --noconfirm --needed xdg-user-dirs
  1091.             pacman -S --noconfirm --needed leafpad xarchiver epdfview nitrogen
  1092.             aurhelper_install "gnome-defaults-list"
  1093.             mkdir -p /home/$USERNAME/.config/openbox/
  1094.             cp /etc/xdg/openbox/rc.xml /home/$USERNAME/.config/openbox/
  1095.             cp /etc/xdg/openbox/menu.xml /home/$USERNAME/.config/openbox/
  1096.             cp /etc/xdg/openbox/autostart /home/$USERNAME/.config/openbox/
  1097.             echo -e 'exec ck-launch-session dbus-launch openbox-session' >> /home/$USERNAME/.xinitrc
  1098.             chown -R $USERNAME:users /home/$USERNAME/.config
  1099.             chown $USERNAME:users /home/$USERNAME/.xinitrc
  1100.             #FAVORITE OPENBOX APPS {{{
  1101.             LOOP=1
  1102.             while [ "$LOOP" -ne 0 ]
  1103.             do
  1104.                 print_title "FAVORITE OPENBOX APPS"
  1105.                 echo " 1) Conky + CONKY-colors"
  1106.                 echo " 2) Galculator"
  1107.                 echo " 3) Gthumb"
  1108.                 echo " 4) Icons [Faience, Faenza, Elementary]"
  1109.                 echo " 5) Irssi"
  1110.                 echo " 6) Kupfer"
  1111.                 echo " 7) Shutter"
  1112.                 echo " 8) Terminator"
  1113.                 echo " 9) Thunar"
  1114.                 echo "10) Tint2"
  1115.                 echo "11) Volwheel"
  1116.                 echo "12) Xfburn"
  1117.                 echo ""
  1118.                 echo " d) DONE"
  1119.                 echo ""
  1120.                 read -p "Option: " OPTION
  1121.                 case "$OPTION" in
  1122.                     1)
  1123.                         aurhelper_install "conky conky-colors"
  1124.                         add_module "coretemp it87 acpi-cpufreq"
  1125.                         ;;
  1126.                     2)
  1127.                         pacman -S --noconfirm --needed galculator
  1128.                         ;;
  1129.                     3)
  1130.                         pacman -S --noconfirm --needed gthumb
  1131.                         ;;
  1132.                     4)
  1133.                         aurhelper_install "faenza-icon-theme faience-icon-theme faenza-cupertino-icon-theme elementary-icons"
  1134.                         ;;
  1135.                     5)
  1136.                         pacman -S --noconfirm --needed irssi
  1137.                         ;;
  1138.                     6)
  1139.                         aurhelper_install "kupfer"
  1140.                         ;;
  1141.                     7)
  1142.                         aurhelper_install "shutter"
  1143.                         ;;
  1144.                     8)
  1145.                         pacman -S --noconfirm --needed terminator
  1146.                         aurhelper_install "python-keybinder"
  1147.                         ;;
  1148.                     9)
  1149.                         pacman -S --noconfirm --needed polkit-gnome gvfs-smb thunar
  1150.                         ;;
  1151.                     10)
  1152.                         pacman -S --noconfirm --needed tint2
  1153.                         ;;
  1154.                     11)
  1155.                         pacman -S --noconfirm --needed volwheel
  1156.                         ;;
  1157.                     12)
  1158.                         pacman -S --noconfirm --needed xfburn
  1159.                         ;;
  1160.                     *)
  1161.                         LOOP=0
  1162.                         ;;
  1163.                 esac
  1164.                 pause_function
  1165.             done
  1166.             #}}}
  1167.             install_status
  1168.             XFCE=1
  1169.             ;;
  1170.             #}}}
  1171.         *)
  1172.             CURRENT_STATUS=0
  1173.             ;;
  1174.     esac
  1175.     sumary "Desktop Environment Installation"
  1176.     pause_function
  1177. }
  1178. #}}}
  1179. #NETWORKMANAGER/WICD {{{
  1180. function install_nm_wicd(){
  1181.     print_title "NETWORK CONNECTION MANAGER"
  1182.     echo " 1) Networkmanager"
  1183.     echo " 2) Wicd"
  1184.     echo ""
  1185.     echo " s) SKIP"
  1186.     echo ""
  1187.     read -p "Option: " OPTION
  1188.     case "$OPTION" in
  1189.         1)
  1190.             print_title "NETWORKMANAGER - https://wiki.archlinux.org/index.php/Networkmanager"
  1191.             if [ "$GNOME" -eq 1 ] || [ "$XFCE" -eq 1 ] || [ "$LXDE" -eq 1 ]; then
  1192.                 pacman -S --noconfirm --needed networkmanager network-manager-applet
  1193.             elif [ "$KDE" -eq 1 ]; then
  1194.                 pacman -S --noconfirm --needed networkmanager kdeplasma-applets-networkmanagement
  1195.             else
  1196.                 pacman -S --noconfirm --needed networkmanager
  1197.             fi
  1198.             groupadd networkmanager
  1199.             gpasswd -a $USERNAME networkmanager
  1200.             remove_daemon "network"
  1201.             add_daemon "@networkmanager"
  1202.             install_status
  1203.             ;;
  1204.         2)
  1205.             print_title "WICD - https://wiki.archlinux.org/index.php/Wicd"
  1206.             if [ "$GNOME" -eq 1 ] || [ "$XFCE" -eq 1 ] || [ "$LXDE" -eq 1 ]; then
  1207.                 pacman -S --noconfirm --needed wicd wicd-gtk
  1208.             elif [ "$KDE" -eq 1 ]; then
  1209.                 aurhelper_install "wicd wicd-kde"
  1210.             else
  1211.                 pacman -S --noconfirm --needed wicd
  1212.             fi
  1213.             remove_daemon "network"
  1214.             add_daemon "@wicd"
  1215.             install_status
  1216.             ;;
  1217.         *)
  1218.             CURRENT_STATUS=0
  1219.             ;;
  1220.     esac
  1221.     sumary "Network Connection Manager installation"
  1222.     pause_function
  1223. }
  1224. #}}}
  1225. #DEVELOPEMENT {{{
  1226. function install_development_apps(){
  1227. LOOP=1
  1228. while [ "$LOOP" -ne 0 ]
  1229. do
  1230.     print_title "DEVELOPMENT APPS"
  1231.     echo " 1) Aptana Studio"
  1232.     echo " 2) Eclipse"
  1233.     echo " 3) Emacs"
  1234.     echo " 4) Gvim"
  1235.     echo " 5) IntelliJ IDEA"
  1236.     echo " 6) Netbeans"
  1237.     echo " 7) Oracle Java"
  1238.     echo " 8) QT Creator"
  1239.     echo " 9) Sublime Text 2"
  1240.     echo "10) Debugger Tools [Valgrind, Gdb, Splint, Tidyhtml, Pyflakes, Jsl]"
  1241.     echo "11) MySQL Workbench"
  1242.     echo "12) Meld"
  1243.     echo ""
  1244.     echo " b) BACK"
  1245.     echo ""
  1246.     read -p "Option: " OPTION
  1247.     case "$OPTION" in
  1248.         1)
  1249.             aurhelper_install "aptana-studio"
  1250.             pause_function
  1251.             ;;
  1252.         2)
  1253.             #ECLIPSE {{{
  1254.             while [ "$LOOP" -ne 0 ]
  1255.             do
  1256.                 print_title "ECLIPSE - https://wiki.archlinux.org/index.php/Eclipse"
  1257.                 echo " 1) Eclipse Classic"
  1258.                 echo " 2) Eclipse IDE for C/C++ Developers "
  1259.                 echo " 3) Android Development Tools for Eclipse"
  1260.                 echo " 4) Web Development Tools for Eclipse"
  1261.                 echo " 5) PHP Development Tools for Eclipse"
  1262.                 echo " 6) Python Development Tools for Eclipse"
  1263.                 echo " 7) Aptana Studio plugin for Eclipse"
  1264.                 echo " 8) Vim-like editing plugin for Eclipse"
  1265.                 echo " 9) Git support plugin for Eclipse"
  1266.                 echo ""
  1267.                 echo " b) BACK"
  1268.                 echo ""
  1269.                 read -p "Option: " OPTION
  1270.                 case "$OPTION" in
  1271.                     1)
  1272.                         pacman -S --noconfirm --needed eclipse
  1273.                         pause_function
  1274.                         ;;
  1275.                     2)
  1276.                         pacman -S --noconfirm --needed eclipse-cdt
  1277.                         pause_function
  1278.                         ;;
  1279.                     3)
  1280.                         aurhelper_install "eclipse-android android-apktool android-sdk android-sdk-platform-tools android-udev"
  1281.                         pause_function
  1282.                         ;;
  1283.                     4)
  1284.                         aurhelper_install "eclipse-wtp-wst"
  1285.                         pause_function
  1286.                         ;;
  1287.                     5)
  1288.                         aurhelper_install "eclipse-pdt"
  1289.                         pause_function
  1290.                         ;;
  1291.                     6)
  1292.                         aurhelper_install "eclipse-pydev"
  1293.                         pause_function
  1294.                         ;;
  1295.                     7)
  1296.                         aurhelper_install "eclipse-aptana"
  1297.                         pause_function
  1298.                         ;;
  1299.                     8)
  1300.                         aurhelper_install "eclipse-vrapper"
  1301.                         pause_function
  1302.                         ;;
  1303.                     9)
  1304.                         aurhelper_install "eclipse-egit"
  1305.                         pause_function
  1306.                         ;;
  1307.                     *)
  1308.                         LOOP=0
  1309.                         ;;
  1310.                 esac
  1311.             done
  1312.             LOOP=1
  1313.             #}}}
  1314.             ;;
  1315.         3)
  1316.             pacman -S --noconfirm --needed emacs
  1317.             pause_function
  1318.             ;;
  1319.         4)
  1320.             pacman -Rdd --noconfirm vim
  1321.             pacman -S --noconfirm --needed gvim wmctrl ctags
  1322.             aurhelper_install "discount"
  1323.             #HELMUTHDU'S VIMRC {{{
  1324.                 pacman -S --noconfirm --needed git
  1325.                 git clone git://github.com/helmuthdu/vim.git
  1326.                 mv vim /home/$USERNAME/.vim
  1327.                 git clone http://github.com/gmarik/vundle.git /home/$USERNAME/.vim/bundle/vundle
  1328.                 ln -sf /home/$USERNAME/.vim/vimrc /home/$USERNAME/.vimrc
  1329.                 chown -R $USERNAME:users /home/$USERNAME/.vim
  1330.                 chown $USERNAME:users /home/$USERNAME/.vimrc
  1331.             #}}}
  1332.             pause_function
  1333.             ;;
  1334.         5)
  1335.             pacman -S --noconfirm --needed intellij-idea-community-edition
  1336.             pause_function
  1337.             ;;
  1338.         6)
  1339.             pacman -S --noconfirm --needed netbeans
  1340.             pause_function
  1341.             ;;
  1342.         7)
  1343.             pacman -Rdd --noconfirm jre7-openjdk
  1344.             pacman -Rdd --noconfirm jdk7-openjdk
  1345.             aurhelper_install "jdk"
  1346.             pause_function
  1347.             ;;
  1348.         8)
  1349.             pacman -S --noconfirm --needed qtcreator qt-doc
  1350.             mkdir -p /home/$USERNAME/.config/Nokia/qtcreator/styles
  1351.             wget http://angrycoding.googlecode.com/svn/branches/qt-creator-monokai-theme/monokai.xml
  1352.             mv monokai.xml /home/$USERNAME/.config/Nokia/qtcreator/styles/
  1353.             chown -R $USERNAME:users /home/$USERNAME/.config
  1354.             pause_function
  1355.             ;;
  1356.         9)
  1357.             aurhelper_install "sublime-text"
  1358.             pause_function
  1359.             ;;
  1360.         10)
  1361.             pacman -S --noconfirm --needed valgrind gdb splint tidyhtml pyflakes
  1362.             aurhelper_install "jsl"
  1363.             pause_function
  1364.             ;;
  1365.         11)
  1366.             aurhelper_install "mysql-workbench"
  1367.             pause_function
  1368.             ;;
  1369.         12)
  1370.             pacman -S --noconfirm --needed meld
  1371.             pause_function
  1372.             ;;
  1373.         *)
  1374.             LOOP=0
  1375.             ;;
  1376.     esac
  1377. done
  1378. }
  1379. #}}}
  1380. #OFFICE {{{
  1381. function install_office_apps(){
  1382. LOOP=1
  1383. while [ "$LOOP" -ne 0 ]
  1384. do
  1385.     print_title "OFFICE APPS"
  1386.     echo " 1) LibreOffice"
  1387.     echo " 2) GnomeOffice [Abiword, Gnumeric]"
  1388.     echo " 3) Latex"
  1389.     if [ "$KDE" -eq 1 ]; then echo " 4) Kchmviewer"; else echo " 4) Chmsee"; fi
  1390.     echo " 5) GCStar"
  1391.     echo " 6) Wunderlist"
  1392.     echo " 7) Xmind"
  1393.     echo " 8) Zathura"
  1394.     echo " 9) Impressive"
  1395.     echo ""
  1396.     echo " b) BACK"
  1397.     echo ""
  1398.     read -p "Option: " OPTION
  1399.     case "$OPTION" in
  1400.         1)
  1401.             pacman -S --noconfirm --needed libreoffice-$LOCATION_LO libreoffice-{base,calc,draw,impress,math,writer} libreoffice-extension-presenter-screen libreoffice-extension-pdfimport libreoffice-extension-diagram
  1402.             aurhelper_install "hunspell-$LOCATION_HS"
  1403.             if [ "$KDE" -eq 1 ]; then
  1404.                 pacman -S --noconfirm --needed libreoffice-kde4
  1405.             else
  1406.                 pacman -S --noconfirm --needed libreoffice-gnome
  1407.             fi
  1408.             pause_function
  1409.             ;;
  1410.         2)
  1411.             pacman -S --noconfirm --needed gnumeric abiword abiword-plugins
  1412.             pause_function
  1413.             ;;
  1414.         3)
  1415.             pacman -S --noconfirm --needed texlive-latexextra texlive-langextra
  1416.             aurhelper_install "texmaker"
  1417.             aurhelper_install "latex-template-springer latex-template-ieee latex-beamer"
  1418.             if [ $LOCATION = "pt_BR" ]; then
  1419.                 aurhelper_install "abntex"
  1420.             fi
  1421.             pause_function
  1422.             ;;
  1423.         4)
  1424.             if [ "$KDE" -eq 1 ]; then
  1425.                 pacman -S --noconfirm --needed kchmviewer
  1426.             else
  1427.                 pacman -S --noconfirm --needed chmsee
  1428.             fi
  1429.             pause_function
  1430.             ;;
  1431.         5)
  1432.             pacman -S --noconfirm --needed gcstar
  1433.             pause_function
  1434.             ;;
  1435.         6)
  1436.             aurhelper_install "wunderlist"
  1437.             pause_function
  1438.             ;;
  1439.         7)
  1440.             aurhelper_install "xmind"
  1441.             pause_function
  1442.             ;;
  1443.         8)
  1444.             pacman -S --noconfirm --needed zathura
  1445.             pause_function
  1446.             ;;
  1447.         9)
  1448.             pacman -S --noconfirm --needed impressive
  1449.             pause_function
  1450.             ;;
  1451.         *)
  1452.             LOOP=0
  1453.             ;;
  1454.     esac
  1455. done
  1456. }
  1457. #}}}
  1458. #SYSTEM TOOLS {{{
  1459. function install_system_apps(){
  1460. LOOP=1
  1461. while [ "$LOOP" -ne 0 ]
  1462. do
  1463.     print_title "SYSTEM TOOLS APPS"
  1464.     echo " 1) Grsync"
  1465.     echo " 2) Htop"
  1466.     echo " 3) Virtualbox"
  1467.     echo " 4) Wine"
  1468.     echo ""
  1469.     echo " b) BACK"
  1470.     echo ""
  1471.     read -p "Option: " OPTION
  1472.     case "$OPTION" in
  1473.         1)
  1474.             pacman -S --noconfirm --needed grsync
  1475.             pause_function
  1476.             ;;
  1477.         2)
  1478.             pacman -S --noconfirm --needed htop
  1479.             pause_function
  1480.             ;;
  1481.         3)
  1482.             pacman -S --noconfirm --needed virtualbox virtualbox-additions
  1483.             aurhelper_install "virtualbox-ext-oracle"
  1484.             modprobe vboxdrv
  1485.             groupadd vboxusers
  1486.             gpasswd -a $USERNAME vboxusers
  1487.             add_module "vboxdrv"
  1488.             pause_function
  1489.             ;;
  1490.         4)
  1491.             pacman -S --noconfirm --needed wine wine_gecko winetricks
  1492.             pause_function
  1493.             ;;
  1494.         *)
  1495.             LOOP=0
  1496.             ;;
  1497.     esac
  1498. done
  1499. }
  1500. #}}}
  1501. #GRAPHICS {{{
  1502. function install_graphics_apps(){
  1503. LOOP=1
  1504. while [ "$LOOP" -ne 0 ]
  1505. do
  1506.     print_title "GRAPHICS APPS"
  1507.     echo " 1) Blender"
  1508.     echo " 2) Gimp"
  1509.     echo " 3) Gimp-plugins"
  1510.     echo " 4) Inkscape"
  1511.     echo " 5) MComix"
  1512.     echo " 6) Shotwell"
  1513.     echo ""
  1514.     echo " b) BACK"
  1515.     echo ""
  1516.     read -p "Option: " OPTION
  1517.     case "$OPTION" in
  1518.         1)
  1519.             pacman -S --noconfirm --needed blender
  1520.             pause_function
  1521.             ;;
  1522.         2)
  1523.             pacman -S --noconfirm --needed gimp
  1524.             pause_function
  1525.             ;;
  1526.         3)
  1527.             aurhelper_install "gimp-paint-studio gimp-resynth gimpfx-foundry gimp-plugin-pandora gimp-plugin-saveforweb"
  1528.             pause_function
  1529.             ;;
  1530.         4)
  1531.             pacman -S --noconfirm --needed inkscape uniconvertor python2-numpy python-lxml
  1532.             aurhelper_install "sozi"
  1533.             pause_function
  1534.             ;;
  1535.         5)
  1536.             pacman -S --noconfirm --needed mcomix
  1537.             pause_function
  1538.             ;;
  1539.         6)
  1540.             pacman -S --noconfirm --needed shotwell
  1541.             pause_function
  1542.             ;;
  1543.         *)
  1544.             LOOP=0
  1545.             ;;
  1546.     esac
  1547. done
  1548. }
  1549. #}}}
  1550. #INTERNET {{{
  1551. function install_internet_apps(){
  1552. LOOP=1
  1553. while [ "$LOOP" -ne 0 ]
  1554. do
  1555.     print_title "INTERNET APPS"
  1556.     echo " 1) Dropbox"
  1557.     echo " 2) Google Earth"
  1558.     echo " 3) Google Chrome"
  1559.     echo " 4) Jdownloader"
  1560.     echo " 5) Mozilla Firefox"
  1561.     echo " 6) Mozilla Thunderbird"
  1562.     echo " 7) Pidgin"
  1563.     echo " 8) Skype"
  1564.     echo " 9) TeamSpeak"
  1565.     echo "10) Teamviewer"
  1566.     echo "11) Trasmission"
  1567.     if [ "$KDE" -eq 1 ]; then echo "12) Konversation"; else echo "12) X-Chat"; fi
  1568.     echo ""
  1569.     echo " b) BACK"
  1570.     echo ""
  1571.     read -p "Option: " OPTION
  1572.     case "$OPTION" in
  1573.         1)
  1574.             aurhelper_install "dropbox"
  1575.             if [ "$GNOME" -eq 1 ]; then
  1576.                 aurhelper_install "nautilus-dropbox"
  1577.             elif [ "$XFCE" -eq 1 ]; then
  1578.                 aurhelper_install "thunar-dropbox"
  1579.             elif [ "$KDE" -eq 1 ]; then
  1580.                 aurhelper_install "kfilebox"
  1581.             else
  1582.                 aurhelper_install "dropbox-cli"
  1583.             fi
  1584.             pause_function
  1585.             ;;
  1586.         2)
  1587.             aurhelper_install "google-earth"
  1588.             pause_function
  1589.             ;;
  1590.         3)
  1591.             pacman -S --noconfirm --needed flashplugin
  1592.             aurhelper_install "google-chrome"
  1593.             pause_function
  1594.             ;;
  1595.         4)
  1596.             aurhelper_install "jdownloader"
  1597.             pause_function
  1598.             ;;
  1599.         5)
  1600.             pacman -S --noconfirm --needed firefox flashplugin firefox-i18n-$LOCATION_FF
  1601.             pause_function
  1602.             ;;
  1603.         6)
  1604.             pacman -S --noconfirm --needed thunderbird thunderbird-i18n-$LOCATION_FF
  1605.             pause_function
  1606.             ;;
  1607.         7)
  1608.             pacman -S --noconfirm --needed pidgin
  1609.             pause_function
  1610.             ;;
  1611.         8)
  1612.             pacman -S --noconfirm --needed skype
  1613.             pause_function
  1614.             ;;
  1615.         9)
  1616.             aurhelper_install "teamspeak3"
  1617.             pause_function
  1618.             ;;
  1619.         10)
  1620.             aurhelper_install "teamviewer"
  1621.             pause_function
  1622.             ;;
  1623.         11)
  1624.             if [ "$KDE" -eq 1 ]; then
  1625.                 aurhelper_install "transmission-qt"
  1626.             else
  1627.                 aurhelper_install "transmission-gtk"
  1628.             fi
  1629.             pause_function
  1630.             ;;
  1631.         12)
  1632.             if [ "$KDE" -eq 1 ]; then
  1633.                 pacman -S --noconfirm --needed konversation
  1634.             else
  1635.                 pacman -S --noconfirm --needed xchat
  1636.             fi
  1637.             pause_function
  1638.             ;;
  1639.         *)
  1640.             LOOP=0
  1641.             ;;
  1642.     esac
  1643. done
  1644. }
  1645. #}}}
  1646. #LAMP #{{{
  1647. function install_lamp(){
  1648.     print_title "LAMP SERVER - APACHE, MYSQL & PHP + ADMINER\n# https://wiki.archlinux.org/index.php/LAMP"
  1649.     question_for_answer "Install LAMP"
  1650.     case "$OPTION" in
  1651.         "y")
  1652.             pacman -S --noconfirm --needed apache mysql php php-apache php-mcrypt php-gd
  1653.             if !(pacman -Q adminer &>/dev/null) ; then
  1654.                 aurhelper_install "adminer"
  1655.                 rc.d start httpd mysqld
  1656.                 #CONFIGURE LAMP SERVER {{{
  1657.                 /usr/bin/mysql_secure_installation
  1658.                 echo -e '\n# adminer configuration\nInclude conf/extra/httpd-adminer.conf' >> /etc/httpd/conf/httpd.conf
  1659.                 echo -e 'application/x-httpd-php        php' >> /etc/httpd/conf/mime.types
  1660.                 sed -i '/LoadModule dir_module modules\/mod_dir.so/a\LoadModule php5_module modules\/libphp5.so' /etc/httpd/conf/httpd.conf
  1661.                 echo -e '\n# Use for PHP 5.x:\nInclude conf/extra/php5_module.conf\nAddHandler php5-script php' >> /etc/httpd/conf/httpd.conf
  1662.                 sed -i 's/DirectoryIndex\ index.html/DirectoryIndex\ index.html\ index.php/g' /etc/httpd/conf/httpd.conf
  1663.                 sed -i 's/public_html/Sites/g' /etc/httpd/conf/extra/httpd-userdir.conf
  1664.                 sed -i '/mysqli.so/s/^;//' /etc/php/php.ini
  1665.                 sed -i '/mysql.so/s/^;//' /etc/php/php.ini
  1666.                 sed -i '/mcrypt.so/s/^;//' /etc/php/php.ini
  1667.                 sed -i '/gd.so/s/^;//' /etc/php/php.ini
  1668.                 sed -i '/display_errors[=]/s/off/on/' /etc/php/php.ini
  1669.                 sed -i '/skip-networking/s/^/#/' /etc/mysql/my.cnf
  1670.                 #}}}
  1671.             fi
  1672.             su -l $USERNAME --command="mkdir -p ~/Sites"
  1673.             su -l $USERNAME --command="chmod o+x ~/ && chmod -R g+xr-w ~/Sites"
  1674.             rc.d restart httpd mysqld
  1675.             add_daemon "httpd @mysqld"
  1676.             install_status
  1677.             print_line
  1678.             echo "The folder \"Sites\" has been created in your home"
  1679.             echo "You can access your projects at \"http://localhost/~username\""
  1680.             ;;
  1681.         *)
  1682.             CURRENT_STATUS=0
  1683.             ;;
  1684.     esac
  1685.     sumary "LAMP installation"
  1686. }
  1687. #}}}
  1688. #AUDIO {{{
  1689. function install_audio_apps(){
  1690. LOOP=1
  1691. while [ "$LOOP" -ne 0 ]
  1692. do
  1693.     print_title "AUDIO APPS "
  1694.     echo " 1) Amarok"
  1695.     echo " 2) Banshee"
  1696.     echo " 3) Beatbox"
  1697.     echo " 4) Clementine"
  1698.     echo " 5) Decibel"
  1699.     echo " 6) Exaile"
  1700.     echo " 7) Gmusicbrowser"
  1701.     echo " 8) Nuvola"
  1702.     echo " 9) Rhythmbox"
  1703.     echo "10) Puddletag"
  1704.     echo "11) MIDI"
  1705.     echo "12) Codecs"
  1706.     echo "13) Audacity"
  1707.     echo ""
  1708.     echo " b) BACK"
  1709.     echo ""
  1710.     read -p "Option: " OPTION
  1711.     case "$OPTION" in
  1712.         1)
  1713.             pacman -S --noconfirm --needed amarok
  1714.             pause_function
  1715.             ;;
  1716.         2)
  1717.             pacman -S --noconfirm --needed banshee
  1718.             pause_function
  1719.             ;;
  1720.         3)
  1721.             aurhelper_install "beatbox-bzr"
  1722.             pause_function
  1723.             ;;
  1724.         4)
  1725.             pacman -S --noconfirm --needed clementine
  1726.             pause_function
  1727.             ;;
  1728.         5)
  1729.             aurhelper_install "decibel-audio-player2"
  1730.             pause_function
  1731.             ;;
  1732.         6)
  1733.             aurhelper_install "exaile"
  1734.             pause_function
  1735.             ;;
  1736.         7)
  1737.             aurhelper_install "gmusicbrowser-development"
  1738.             pause_function
  1739.             ;;
  1740.         8)
  1741.             aurhelper_install "nuvola-bzr-stable"
  1742.             pause_function
  1743.             ;;
  1744.         9)
  1745.             pacman -S --noconfirm --needed rhythmbox
  1746.             pause_function
  1747.             ;;
  1748.         10)
  1749.             aurhelper_install "puddletag"
  1750.             pause_function
  1751.             ;;
  1752.         11)
  1753.             aurhelper_install "timidity++ fluidr3"
  1754.             echo -e 'soundfont /usr/share/soundfonts/fluidr3/FluidR3GM.SF2' >> /etc/timidity++/timidity.cfg
  1755.             pause_function
  1756.             ;;
  1757.         12)
  1758.             pacman -S --noconfirm --needed gstreamer0.10-plugins
  1759.             pause_function
  1760.             ;;
  1761.         13)
  1762.             pacman -S --noconfirm --needed audacity
  1763.             pause_function
  1764.             ;;
  1765.         *)
  1766.             LOOP=0
  1767.             ;;
  1768.     esac
  1769. done
  1770. }
  1771. #}}}
  1772. #VIDEO {{{
  1773. function install_video_apps(){
  1774. LOOP=1
  1775. while [ "$LOOP" -ne 0 ]
  1776. do
  1777.     print_title "VIDEO APPS "
  1778.     echo " 1) Gnome Mplayer"
  1779.     echo " 2) Parole"
  1780.     echo " 3) Rosa Media Player"
  1781.     echo " 4) SMplayer"
  1782.     echo " 5) VLC"
  1783.     echo " 6) XBMC"
  1784.     echo " 7) Arista"
  1785.     echo " 8) Transmageddon"
  1786.     echo " 9) Codecs"
  1787.     echo "10) Kdenlive"
  1788.     echo "11) Openshot"
  1789.     echo "12) Pitivi"
  1790.     echo "13) Kazam"
  1791.     echo ""
  1792.     echo " b) BACK"
  1793.     echo ""
  1794.     read -p "Option: " OPTION
  1795.     case "$OPTION" in
  1796.         1)
  1797.             pacman -S --noconfirm --needed gnome-mplayer
  1798.             pause_function
  1799.             ;;
  1800.         2)
  1801.             pacman -S --noconfirm --needed parole
  1802.             pause_function
  1803.             ;;
  1804.         3)
  1805.             aurhelper_install "rosa-media-player-bin"
  1806.             pause_function
  1807.             ;;
  1808.         4)
  1809.             pacman -S --noconfirm --needed smplayer smplayer-themes
  1810.             pause_function
  1811.             ;;
  1812.         5)
  1813.             pacman -S --noconfirm --needed vlc
  1814.             if [ "$KDE" -eq 1 ]; then
  1815.                 pacman -S --noconfirm --needed phonon-vlc
  1816.             fi
  1817.             pause_function
  1818.             ;;
  1819.         6)
  1820.             pacman -S --noconfirm --needed xbmc
  1821.             pause_function
  1822.             ;;
  1823.         7)
  1824.             aurhelper_install "arista-transcoder"
  1825.             pause_function
  1826.             ;;
  1827.         8)
  1828.             aurhelper_install "transmageddon"
  1829.             pause_function
  1830.             ;;
  1831.         9)
  1832.             aurhelper_install "libquicktime libdvdread libdvdnav libdvdcss cdrdao"
  1833.             if [ "$ARCHI" = "i686" ]; then
  1834.                 aurhelper_install "codecs"
  1835.             else
  1836.                 aurhelper_install "codecs64"
  1837.             fi
  1838.             pause_function
  1839.             ;;
  1840.         10)
  1841.             pacman -S --noconfirm --needed kdenlive
  1842.             pause_function
  1843.             ;;
  1844.         11)
  1845.             pacman -S --noconfirm --needed openshot
  1846.             pause_function
  1847.             ;;
  1848.         12)
  1849.             pacman -S --noconfirm --needed pitivi
  1850.             pause_function
  1851.             ;;
  1852.         13)
  1853.             pacman -S --noconfirm --needed python-rsvg
  1854.             aurhelper_install "kazam-bzr"
  1855.             pause_function
  1856.             ;;
  1857.         *)
  1858.             LOOP=0
  1859.             ;;
  1860.     esac
  1861. done
  1862. }
  1863. #}}}
  1864. #GAMES {{{
  1865. function install_games(){
  1866. LOOP=1
  1867. while [ "$LOOP" -ne 0 ]
  1868. do
  1869.     print_title "GAMES - https://wiki.archlinux.org/index.php/Games"
  1870.     echo " 1) Action/Adventure"
  1871.     echo " 2) Arcade/Platformer"
  1872.     echo " 3) Dungeon"
  1873.     echo " 4) Emulators"
  1874.     echo " 5) FPS"
  1875.     echo " 6) MMO"
  1876.     echo " 7) Puzzle"
  1877.     echo " 8) RPG"
  1878.     echo " 9) Racing"
  1879.     echo "10) Simulation"
  1880.     echo "11) Strategy"
  1881.     echo ""
  1882.     echo " b) BACK"
  1883.     echo ""
  1884.     read -p "Option: " OPTION
  1885.     case "$OPTION" in
  1886.         1)
  1887.         #ACTION/ADVENTURE {{{
  1888.         while [ "$LOOP" -ne 0 ]
  1889.         do
  1890.             print_title "ACTION AND ADVENTURE"
  1891.             echo " 1) Astromenace"
  1892.             echo " 2) OpenTyrian"
  1893.             echo " 3) M.A.R.S."
  1894.             echo " 4) Yo Frankie!"
  1895.             echo " 5) Counter-Strike 2D"
  1896.             echo ""
  1897.             echo " b) BACK"
  1898.             echo ""
  1899.             read -p "Option: " OPTION
  1900.             case "$OPTION" in
  1901.                 1)
  1902.                     aurhelper_install "astromenace"
  1903.                     pause_function
  1904.                     ;;
  1905.                 2)
  1906.                     aurhelper_install "opentyrian-hg"
  1907.                     pause_function
  1908.                     ;;
  1909.                 3)
  1910.                     aurhelper_install "mars-shooter"
  1911.                     pause_function
  1912.                     ;;
  1913.                 4)
  1914.                     aurhelper_install "yofrankie"
  1915.                     pause_function
  1916.                     ;;
  1917.                 5)
  1918.                     aurhelper_install "counter-strike-2d"
  1919.                     pause_function
  1920.                     ;;
  1921.                 *)
  1922.                     LOOP=0
  1923.                     ;;
  1924.             esac
  1925.         done
  1926.         LOOP=1
  1927.         ;;
  1928.         #}}}
  1929.         2)
  1930.         #ARCADE/PLATFORMER {{{
  1931.         while [ "$LOOP" -ne 0 ]
  1932.         do
  1933.             print_title "ARCADE AND PLATFORMER"
  1934.             echo " 1) Opensonic"
  1935.             echo " 2) Frogatto"
  1936.             echo " 3) Bomberclone"
  1937.             echo " 4) Goonies"
  1938.             echo " 5) Neverball"
  1939.             echo " 6) Super Mario Chronicles"
  1940.             echo " 7) X-Moto"
  1941.             echo ""
  1942.             echo " b) BACK"
  1943.             echo ""
  1944.             read -p "Option: " OPTION
  1945.             case "$OPTION" in
  1946.                 1)
  1947.                     aurhelper_install "opensonic"
  1948.                     pause_function
  1949.                     ;;
  1950.                 2)
  1951.                     pacman -S --noconfirm --needed frogatto
  1952.                     pause_function
  1953.                     ;;
  1954.                 3)
  1955.                     pacman -S --noconfirm --needed bomberclone
  1956.                     pause_function
  1957.                     ;;
  1958.                 4)
  1959.                     aurhelper_install "goonies"
  1960.                     pause_function
  1961.                     ;;
  1962.                 5)
  1963.                     pacman -S --noconfirm --needed neverball
  1964.                     pause_function
  1965.                     ;;
  1966.                 6)
  1967.                     pacman -S --noconfirm --needed smc
  1968.                     pause_function
  1969.                     ;;
  1970.                 7)
  1971.                     pacman -S --noconfirm --needed xmoto
  1972.                     pause_function
  1973.                     ;;
  1974.                 *)
  1975.                     LOOP=0
  1976.                     ;;
  1977.             esac
  1978.         done
  1979.         LOOP=1
  1980.         ;;
  1981.         #}}}
  1982.         3)
  1983.         #DUNGEON {{{
  1984.         while [ "$LOOP" -ne 0 ]
  1985.         do
  1986.             print_title "DUNGEON"
  1987.             echo " 1) Tales of Maj'Eyal"
  1988.             echo " 2) Lost Labyrinth"
  1989.             echo " 3) S.C.O.U.R.G.E."
  1990.             echo ""
  1991.             echo " b) BACK"
  1992.             echo ""
  1993.             read -p "Option: " OPTION
  1994.             case "$OPTION" in
  1995.                 1)
  1996.                     aurhelper_install "tome4"
  1997.                     pause_function
  1998.                     ;;
  1999.                 2)
  2000.                     aurhelper_install "lostlabyrinth"
  2001.                     pause_function
  2002.                     ;;
  2003.                 3)
  2004.                     aurhelper_install "scourge"
  2005.                     pause_function
  2006.                     ;;
  2007.                 *)
  2008.                     LOOP=0
  2009.                     ;;
  2010.             esac
  2011.         done
  2012.         LOOP=1
  2013.         ;;
  2014.         #}}}
  2015.         4)
  2016.         #EMULATORS {{{
  2017.         while [ "$LOOP" -ne 0 ]
  2018.         do
  2019.             print_title "EMULATORS"
  2020.             echo " 1) ZSNES"
  2021.             echo ""
  2022.             echo " b) BACK"
  2023.             echo ""
  2024.             read -p "Option: " OPTION
  2025.             case "$OPTION" in
  2026.                 1)
  2027.                     pacman -S --noconfirm --needed zsnes
  2028.                     pause_function
  2029.                     ;;
  2030.                 *)
  2031.                     LOOP=0
  2032.                     ;;
  2033.             esac
  2034.         done
  2035.         LOOP=1
  2036.         ;;
  2037.         #}}}
  2038.         5)
  2039.         #FPS {{{
  2040.         while [ "$LOOP" -ne 0 ]
  2041.         do
  2042.             print_title "FPS"
  2043.             echo " 1) World of Padman"
  2044.             echo " 2) Warsow"
  2045.             echo ""
  2046.             echo " b) BACK"
  2047.             echo ""
  2048.             read -p "Option: " OPTION
  2049.             case "$OPTION" in
  2050.                 1)
  2051.                     aurhelper_install "worldofpadman"
  2052.                     pause_function
  2053.                     ;;
  2054.                 2)
  2055.                     pacman -S --noconfirm --needed warsow
  2056.                     pause_function
  2057.                     ;;
  2058.                 3)
  2059.                     pacman -S --noconfirm --needed alienarena
  2060.                     pause_function
  2061.                     ;;
  2062.                 *)
  2063.                     LOOP=0
  2064.                     ;;
  2065.             esac
  2066.         done
  2067.         LOOP=1
  2068.         ;;
  2069.         #}}}
  2070.         6)
  2071.         #MMO {{{
  2072.         while [ "$LOOP" -ne 0 ]
  2073.         do
  2074.             print_title "MMO"
  2075.             echo " 1) Heroes of Newerth"
  2076.             echo " 2) Spiral Knights"
  2077.             echo ""
  2078.             echo " b) BACK"
  2079.             echo ""
  2080.             read -p "Option: " OPTION
  2081.             case "$OPTION" in
  2082.                 1)
  2083.                     aurhelper_install "hon"
  2084.                     pause_function
  2085.                     ;;
  2086.                 2)
  2087.                     aurhelper_install "spiral-knights"
  2088.                     pause_function
  2089.                     ;;
  2090.                 *)
  2091.                     LOOP=0
  2092.                     ;;
  2093.             esac
  2094.         done
  2095.         LOOP=1
  2096.         ;;
  2097.         #}}}
  2098.         7)
  2099.         #PUZZLE {{{
  2100.         while [ "$LOOP" -ne 0 ]
  2101.         do
  2102.             print_title "PUZZLE"
  2103.             echo " 1) Numptyphysics"
  2104.             echo ""
  2105.             echo " b) BACK"
  2106.             echo ""
  2107.             read -p "Option: " OPTION
  2108.             case "$OPTION" in
  2109.                 1)
  2110.                     aurhelper_install "numptyphysics-svn"
  2111.                     pause_function
  2112.                     ;;
  2113.                 *)
  2114.                     LOOP=0
  2115.                     ;;
  2116.             esac
  2117.         done
  2118.         LOOP=1
  2119.         ;;
  2120.         #}}}
  2121.         8)
  2122.         #RPG {{{
  2123.         while [ "$LOOP" -ne 0 ]
  2124.         do
  2125.             print_title "RPG"
  2126.             echo " 1) Ardentryst"
  2127.             echo ""
  2128.             echo " b) BACK"
  2129.             echo ""
  2130.             read -p "Option: " OPTION
  2131.             case "$OPTION" in
  2132.                 1)
  2133.                     aurhelper_install "ardentryst"
  2134.                     pause_function
  2135.                     ;;
  2136.                 *)
  2137.                     LOOP=0
  2138.                     ;;
  2139.             esac
  2140.         done
  2141.         LOOP=1
  2142.         ;;
  2143.         #}}}
  2144.         9)
  2145.         #RACING {{{
  2146.         while [ "$LOOP" -ne 0 ]
  2147.         do
  2148.             print_title "RACING"
  2149.             echo " 1) Maniadrive"
  2150.             echo " 2) Death Rally"
  2151.             echo " 3) SupertuxKart"
  2152.             echo " 4) Speed Dreams"
  2153.             echo ""
  2154.             echo " b) BACK"
  2155.             echo ""
  2156.             read -p "Option: " OPTION
  2157.             case "$OPTION" in
  2158.                 1)
  2159.                     aurhelper_install "maniadrive"
  2160.                     pause_function
  2161.                     ;;
  2162.                 2)
  2163.                     aurhelper_install "death-rally"
  2164.                     pause_function
  2165.                     ;;
  2166.                 3)
  2167.                     pacman -S --noconfirm --needed supertuxkart
  2168.                     pause_function
  2169.                     ;;
  2170.                 4)
  2171.                     pacman -S --noconfirm --needed speed-dreams
  2172.                     pause_function
  2173.                     ;;
  2174.                 *)
  2175.                     LOOP=0
  2176.                     ;;
  2177.             esac
  2178.         done
  2179.         LOOP=1
  2180.         ;;
  2181.         #}}}
  2182.         10)
  2183.         #SIMULATION {{{
  2184.         while [ "$LOOP" -ne 0 ]
  2185.         do
  2186.             print_title "SIMULATION"
  2187.             echo " 1) Simultrans"
  2188.             echo " 2) Theme Hospital"
  2189.             echo " 3) OpenTTD"
  2190.             echo ""
  2191.             echo " b) BACK"
  2192.             echo ""
  2193.             read -p "Option: " OPTION
  2194.             case "$OPTION" in
  2195.                 1)
  2196.                     aurhelper_install "simutrans"
  2197.                     pause_function
  2198.                     ;;
  2199.                 2)
  2200.                     aurhelper_install "corsix-th"
  2201.                     pause_function
  2202.                     ;;
  2203.                 3)
  2204.                     pacman -S --noconfirm --needed openttd
  2205.                     pause_function
  2206.                     ;;
  2207.                 *)
  2208.                     LOOP=0
  2209.                     ;;
  2210.             esac
  2211.         done
  2212.         LOOP=1
  2213.         ;;
  2214.         #}}}
  2215.         11)
  2216.         #STRATEGY {{{
  2217.         while [ "$LOOP" -ne 0 ]
  2218.         do
  2219.             print_title "STRATEGY"
  2220.             echo " 1) Wesnoth"
  2221.             echo " 3) 0ad"
  2222.             echo " 4) Hedgewars"
  2223.             echo " 5) Warzone 2100"
  2224.             echo " 6) MegaGlest"
  2225.             echo " 7) Zod"
  2226.             echo ""
  2227.             echo " b) BACK"
  2228.             echo ""
  2229.             read -p "Option: " OPTION
  2230.             case "$OPTION" in
  2231.                 1)
  2232.                     pacman -S --noconfirm --needed wesnoth
  2233.                     pause_function
  2234.                     ;;
  2235.                 3)
  2236.                     aurhelper_install "0ad"
  2237.                     pause_function
  2238.                     ;;
  2239.                 4)
  2240.                     pacman -S --noconfirm --needed hedgewars
  2241.                     pause_function
  2242.                     ;;
  2243.                 5)
  2244.                     pacman -S --noconfirm --needed warzone2100
  2245.                     pause_function
  2246.                     ;;
  2247.                 6)
  2248.                     pacman -S --noconfirm --needed megaglest
  2249.                     pause_function
  2250.                     ;;
  2251.                 7)
  2252.                     aurhelper_install "commander-zod"
  2253.                     pause_function
  2254.                     ;;
  2255.                 *)
  2256.                     LOOP=0
  2257.                     ;;
  2258.             esac
  2259.         done
  2260.         LOOP=1
  2261.         ;;
  2262.         #}}}
  2263.         *)
  2264.         LOOP=0
  2265.         ;;
  2266.     esac
  2267. done
  2268. }
  2269. #}}}
  2270. #FONTS {{{
  2271. function install_fonts(){
  2272. LOOP=1
  2273. while [ "$LOOP" -ne 0 ]
  2274. do
  2275.     print_title "FONTS - https://wiki.archlinux.org/index.php/Fonts"
  2276.     echo " 1) ttf-dejavu"
  2277.     echo " 2) ttf-google-webfonts"
  2278.     echo " 3) ttf-kochi-substitute (Japanese Support)"
  2279.     echo " 4) ttf-liberation"
  2280.     echo " 5) ttf-ms-fonts"
  2281.     echo " 6) ttf-roboto"
  2282.     echo " 7) ttf-vista-fonts"
  2283.     echo ""
  2284.     echo " a) ALL"
  2285.     echo " b) BACK"
  2286.     echo ""
  2287.     read -p "Option: " OPTION
  2288.     case "$OPTION" in
  2289.         1)
  2290.             pacman -S --noconfirm --needed ttf-dejavu
  2291.             pause_function
  2292.             ;;
  2293.         2)
  2294.             pacman -Rdd --noconfirm ttf-droid
  2295.             pacman -Rdd --noconfirm ttf-ubuntu-font-family
  2296.             aurhelper_install "ttf-google-webfonts"
  2297.             pause_function
  2298.             ;;
  2299.         3)
  2300.             aurhelper_install "ttf-kochi-substitute"
  2301.             pause_function
  2302.             ;;
  2303.         4)
  2304.             pacman -S --noconfirm --needed ttf-liberation
  2305.             pause_function
  2306.             ;;
  2307.         5)
  2308.             aurhelper_install "ttf-ms-fonts"
  2309.             pause_function
  2310.             ;;
  2311.         6)
  2312.             aurhelper_install "ttf-roboto"
  2313.             pause_function
  2314.             ;;
  2315.         7)
  2316.             aurhelper_install "ttf-vista-fonts"
  2317.             pause_function
  2318.             ;;
  2319.         "a")
  2320.             pacman -Rdd --noconfirm ttf-droid
  2321.             pacman -Rdd --noconfirm ttf-ubuntu-font-family
  2322.             aurhelper_install "ttf-ms-fonts ttf-dejavu ttf-liberation ttf-kochi-substitute ttf-roboto ttf-google-webfonts ttf-vista-fonts"
  2323.             pause_function
  2324.             LOOP=0
  2325.             ;;
  2326.         *)
  2327.             LOOP=0
  2328.             ;;
  2329.     esac
  2330. done
  2331. }
  2332. #}}}
  2333. #FONTS CONFIGURATION {{{
  2334. function configure_fonts(){
  2335.     print_title "FONTS CONFIGURATION - https://wiki.archlinux.org/index.php/Font_Configuration"
  2336.     echo " 1) Ubuntu patched packages"
  2337.     echo " 2) Cleartype patched packages"
  2338.     echo ""
  2339.     echo " b) BACK"
  2340.     echo ""
  2341.     read -p "Option: " OPTION
  2342.     case "$OPTION" in
  2343.         1)
  2344.             pacman -Rdd --noconfirm cairo fontconfig freetype2 libxft
  2345.             aurhelper_install "cairo-ubuntu fontconfig-ubuntu freetype2-ubuntu"
  2346.             install_status
  2347.             ;;
  2348.         2)
  2349.             pacman -Rdd --noconfirm cairo fontconfig freetype2 libxft
  2350.             aurhelper_install "freetype2-cleartype libxft-cleartype cairo-cleartype fontconfig-cleartype"
  2351.             install_status
  2352.             ;;
  2353.         *)
  2354.             CURRENT_STATUS=0
  2355.             ;;
  2356.     esac
  2357.     sumary "Patched Fonts Configuration installation"
  2358. }
  2359. #}}}
  2360. #CLEAN ORPHAN PACKAGES {{{
  2361. function clean_orphan_packages(){
  2362.     print_title "CLEAN ORPHAN PACKAGES"
  2363.     pacman -Rsc --noconfirm $(pacman -Qqdt)
  2364.     #pacman -Sc --noconfirm
  2365.     pacman-optimize
  2366. }
  2367. #}}}
  2368. #FINISH {{{
  2369. function finish(){
  2370.     print_title "INSTALL COMPLETED"
  2371.     reboot_now
  2372.     echo "Thanks for using the Archlinux Ultimate Install script by helmuthdu"
  2373.     exit 0
  2374. }
  2375. #}}}
  2376.  
  2377. #MAIN {{{
  2378. welcome
  2379. check_root
  2380. language_selector
  2381. system_upgrade
  2382. create_user
  2383. choose_aurhelper
  2384.  
  2385. MAINLOOP=1
  2386. while [ "$MAINLOOP" -ne 0 ]
  2387. do
  2388.     print_title "ARCHLINUX ULTIMATE INSTALL - https://github.com/helmuthdu/aui"
  2389.     echo " 1) `checkbox "$BASICSETUP"` Basic Setup"
  2390.     echo " 2) `checkbox "$DESKTOPENVIRONMENT"` Desktop Environment"
  2391.     echo " 3) `checkbox "$DEVELOPMENTAPPS"` Development Apps"
  2392.     echo " 4) `checkbox "$OFFICEAPPS"` Office Apps"
  2393.     echo " 5) `checkbox "$SYSTEMAPPS"` System Apps"
  2394.     echo " 6) `checkbox "$GRAPHICSAPPS"` Graphics Apps"
  2395.     echo " 7) `checkbox "$INTERNETAPPS"` Internet Apps"
  2396.     echo " 8) `checkbox "$AUDIOAPPS"` Audio Apps"
  2397.     echo " 9) `checkbox "$VIDEOAPPS"` Video Apps"
  2398.     echo "10) `checkbox "$LAMP"` LAMP"
  2399.     echo "11) `checkbox "$GAMES"` Games"
  2400.     echo "12) `checkbox "$FONTS"` Fonts"
  2401.     echo "13) `checkbox "$FONTCONFIG"` Fonts Configuration"
  2402.     echo "14) `checkbox "$CLEANPACKAGES"` Clean Orphan Packages"
  2403.     echo ""
  2404.     echo " q) Quit"
  2405.     echo ""
  2406.     read -p "Option: " OPTION
  2407.     case "$OPTION" in
  2408.         1)
  2409.             rankmirror
  2410.             pacman_package_signing
  2411.             install_basic_setup
  2412.             install_tlp
  2413.             install_xorg
  2414.             install_video_cards
  2415.             install_cups
  2416.             install_additional_firmwares
  2417.             install_git_tor
  2418.             install_status
  2419.             sumary "Basic setup installation"
  2420.             pause_function
  2421.             BASICSETUP=1
  2422.             ;;
  2423.         2)
  2424.             if [ $BASICSETUP -eq 0 ] && !(pacman -Q xorg-server &>/dev/null); then
  2425.                 echo -e "\nWARNING: YOU MUST RUN THE BASIC SETUP FIRST"
  2426.                 pause_function
  2427.                 continue
  2428.             fi
  2429.             install_desktop_environment
  2430.             install_nm_wicd
  2431.             DESKTOPENVIRONMENT=1
  2432.             ;;
  2433.         3)
  2434.             install_development_apps
  2435.             DEVELOPMENTAPPS=1
  2436.             ;;
  2437.         4)
  2438.             install_office_apps
  2439.             OFFICEAPPS=1
  2440.             ;;
  2441.         5)
  2442.             install_system_apps
  2443.             SYSTEMAPPS=1
  2444.             ;;
  2445.         6)
  2446.             install_graphics_apps
  2447.             GRAPHICSAPPS=1
  2448.             ;;
  2449.         7)
  2450.             install_internet_apps
  2451.             INTERNETAPPS=1
  2452.             ;;
  2453.         8)
  2454.             install_audio_apps
  2455.             AUDIOAPPS=1
  2456.             ;;
  2457.         9)
  2458.             install_video_apps
  2459.             VIDEOAPPS=1
  2460.             ;;
  2461.         10)
  2462.             install_lamp
  2463.             LAMP=1
  2464.             ;;
  2465.         11)
  2466.             install_games
  2467.             GAMES=1
  2468.             ;;
  2469.         12)
  2470.             install_fonts
  2471.             FONTS=1
  2472.             ;;
  2473.         13)
  2474.             configure_fonts
  2475.             FONTSCONFIG=1
  2476.             ;;
  2477.         14)
  2478.             clean_orphan_packages
  2479.             CLEANPACKAGES=1
  2480.             ;;
  2481.         "q")
  2482.             finish
  2483.             ;;
  2484.         *)
  2485.             print_line
  2486.             echo "WRONG OPTION"
  2487.             pause_function
  2488.             ;;
  2489.     esac
  2490. done
  2491. #}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement