post-install.sh 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. #! /bin/bash
  2. # COLORS {{{
  3. Bold=$(tput bold)
  4. Underline=$(tput sgr 0 1)
  5. Reset=$(tput sgr0)
  6. # Regular Colors
  7. Red=$(tput setaf 1)
  8. Green=$(tput setaf 2)
  9. Yellow=$(tput setaf 3)
  10. Blue=$(tput setaf 4)
  11. Purple=$(tput setaf 5)
  12. Cyan=$(tput setaf 6)
  13. White=$(tput setaf 7)
  14. # Bold
  15. BRed=${Bold}$(tput setaf 1)
  16. BGreen=${Bold}$(tput setaf 2)
  17. BYellow=${Bold}$(tput setaf 3)
  18. BBlue=${Bold}$(tput setaf 4)
  19. BPurple=${Bold}$(tput setaf 5)
  20. BCyan=${Bold}$(tput setaf 6)
  21. BWhite=${Bold}$(tput setaf 7)
  22. print_line() {
  23. printf "%$(tput cols)s\n"|tr ' ' '-'
  24. }
  25. print_title() {
  26. #clear
  27. print_line
  28. echo -e "# ${BPurple}$1${Reset}"
  29. print_line
  30. echo ""
  31. }
  32. print_question(){
  33. T_COLS=`tput cols`
  34. echo -n "${BBlue}$1${Reset}"
  35. }
  36. print_msg(){
  37. T_COLS=`tput cols`
  38. echo -e "${BGreen}$1${Reset}"
  39. sleep 2
  40. }
  41. print_info() {
  42. #Console width number
  43. T_COLS=`tput cols`
  44. echo -e "${Bold}$1${Reset}\n" | fold -sw $(( $T_COLS - 18 )) | sed 's/^/\t /'
  45. }
  46. print_warning() {
  47. T_COLS=`tput cols`
  48. echo -e "${BYellow}$1${Reset}\n" | fold -sw $(( $T_COLS - 1 ))
  49. sleep 4
  50. }
  51. print_title 'Arch Linux Postinstall'
  52. _cwd="$(pwd)"
  53. alpi_user(){
  54. print_title "User"
  55. print_question "Create new user? [Y|n]"
  56. read yn
  57. yn=${yn:-y}
  58. if [ "$yn" == "y" ]; then
  59. print_question "Enter user name:"
  60. read username
  61. useradd -m -g users -G wheel,sys -s /bin/bash ${username}
  62. chfn ${username}
  63. passwd ${username}
  64. print_msg "user $username created"
  65. pacman -S --needed --no-confirm sudo
  66. echo "$username ALL=(ALL) ALL" >> /etc/sudoers
  67. print_msg "$username added to sudoers"
  68. print_question "switch now to $username? you'll have to restart the script [Y|n]"
  69. read yn
  70. yn=${yn:-y}
  71. if [ "$yn" == "y" ]; then
  72. su ${username}
  73. fi
  74. fi
  75. }
  76. alpi_avahi(){
  77. print_msg "install avahi"
  78. sudo pacman -S --needed --noconfirm -q avahi nss-mdns
  79. print_msg "configure avahi"
  80. sudo systemctl enable avahi-daemon
  81. sudo systemctl start avahi-deamon
  82. sed -i.back 's/hosts: files dns myhostname/hosts: files mdns_minimal [NOTFOUND=return] dns myhostname/' /etc/nsswitch.conf
  83. }
  84. alpi_basics(){
  85. print_title "basic packages install"
  86. print_question "install basic pkgs? [Y|n]"
  87. read yn
  88. yn=${yn:-y}
  89. if [ "$yn" == "y" ]; then
  90. sudo pacman -S --needed --noconfirm -q vim rsync acpi parted imagemagick lynx wget alsa-utils tmux git openssh knockd bluez-utils htop
  91. print_msg 'securing ssh'
  92. sudo sed -i.back 's/^#PermitEmptyPasswords.*/PermitEmptyPasswords no/' /etc/ssh/sshd_config
  93. sudo sed -i.back 's/^#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
  94. sudo systemctl enable sshd
  95. sudo systemctl start sshd
  96. alpi_avahi
  97. print_msg "basic packages installed"
  98. fi
  99. }
  100. alpi_cosmetics(){
  101. print_title "apply pacman, bash, vim and git config (needs basic pkgs install)"
  102. alpi_basics
  103. # vim
  104. print_msg 'vim configuration'
  105. sudo pacman -S --needed --noconfirm -q vim-{spell-fr,spell-en,nerdtree,supertab,systemd}
  106. cp -r $_cwp/assets/vim /home/$USER/.vim
  107. cp $_cwd/assets/vimrc /home/$USER/.vimrc
  108. sudo cp $_cwd/assets/vim /root/.vim
  109. sudo cp $_cwd/assets/vimrc /root/.vimrc
  110. print_msg 'Git Completion'
  111. sudo pacman -S --needed --noconfirm -q bash-completion
  112. sudo mkdir /etc/bash_completion.d
  113. sudo wget -O /etc/bash_completion.d/git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
  114. # bash & prompt
  115. print_msg 'Bash and Prompt (liquidprompt)'
  116. git clone https://github.com/nojhan/liquidprompt.git -o github /home/$USER/.liquidprompt
  117. cp $_cwd/assets/bash_profile /home/$USER/.bash_profile
  118. cp $_cwd/assets/bashrc /home/$USER/.bashrc
  119. mkdir /home/$USER/.config
  120. cp $_cwd/assets/config/liquidpromptrc /home/$USER/.config/
  121. # sudo pacman -S --needed --noconfirm -q bash-completion
  122. source /home/$USER/.bashrc
  123. touch /home/$USER/.inputrc
  124. echo 'set show-all-if-ambiguous on' >> /home/$USER/.inputrc
  125. echo 'set completion-ignore-case on' >> /home/$USER/.inputrc
  126. print_msg 'ILoveCandy (pacman)'
  127. sudo sed -i.back 's/.*\[options\].*/&\nILoveCandy/' /etc/pacman.conf
  128. sudo sed -i.back 's/^#Color$/Color/' /etc/pacman.conf
  129. print_msg 'Config and Cosmetics done'
  130. }
  131. # GPG
  132. alpi_gnupg(){
  133. print_title 'Setup a gpg encripting'
  134. print_msg 'see https://wiki.archlinux.org/index.php/GnuPG'
  135. print_question "create your gpg encrypting key? [Y|n] "
  136. read yn
  137. yn=${yn:-y}
  138. if [ "$yn" == "y" ]; then
  139. gpg --full-gen-key
  140. fi
  141. print_msg 'Gnupg done!'
  142. }
  143. alpi_secure(){
  144. print_title 'Basic securing system'
  145. print_msg 'remove root autologin'
  146. sudo sed -i.back 's/--autologin root //' /etc/systemd/system/getty@tty1.service.d/autologin.conf
  147. print_msg 'remove root login'
  148. sudo sed -i.back 's/#auth\srequired\spam_wheel.so\suse_uid/auth required spam_wheel.so use_uid/' /etc/pam.d/su
  149. sudo sed -i.back 's/#auth\srequired\spam_wheel.so\suse_uid/auth required spam_wheel.so use_uid/' /etc/pam.d/su-l
  150. print_msg 'restrict log access to root'
  151. sudo touch /etc/sysctl.d/50-dmesg-restrict.conf
  152. sudo sh -c "echo 'kernel.dmesg_restrict = 1' >> /etc/sysctl.d/50-dmesg-restrict.conf"
  153. sudo touch /etc/sysctl.d/50-kptr-restrict.con
  154. sudo sh -c "echo 'kernel.kptr_restrict = 1' >> /etc/sysctl.d/50-kptr-restrict.conf"
  155. print_msg 'basics secure done'
  156. }
  157. # Display Manager
  158. alpi_xserver(){
  159. print_title "install Graphical Display Part 1 : Xorg server"
  160. print_msg "you will have to reboot at the end of part 1"
  161. print_question "install xorg server? [Y|n] "
  162. read yn
  163. yn=${yn:-y}
  164. if [ "$yn" == "y" ]; then
  165. # touch pad
  166. sudo pacman -S --needed --noconfirm -q xf86-input-libinput
  167. # integred gpu
  168. sudo pacman -S --needed --noconfirm -q xf86-input-libinput xf86-video-intel
  169. # discret gpu
  170. sudo pacman -S --needed --noconfirm -q bbswitch bumblebee primus
  171. sudo pacman -S --needed --noconfirm -q nvidia nvidia-utils
  172. # xorg server
  173. sudo pacman -S --needed --noconfirm -q xorg-xinit xorg-server-devel xorg-xrandr
  174. sudo pacman -S --needed --noconfirm -q mesa mesa-demos
  175. # config
  176. sudo gpasswd -a $USER bumblebee
  177. sudo systemctl enable bumblebeed
  178. print_warning "xorg install complete, after reboot, please run part 2 : Desktop manager Plasma5"
  179. print_warning "press enter to reboot"
  180. read x
  181. sudo reboot
  182. fi
  183. }
  184. alpi_plasma5(){
  185. print_title "install Graphical Display Part 2 : Desktop Manager Plasma 5"
  186. print_question "install Kde Plasma 5? [Y|n] "
  187. read yn
  188. yn=${yn:-y}
  189. if [ "$yn" == "y" ]; then
  190. sudo pacman -S --needed --noconfirm -q --force plasma-meta
  191. sudo pacman -S --needed --noconfirm -q ttf-{dejavu,liberation,droid,ubuntu-font-family}
  192. # network & Bluetooth
  193. sudo pacman -S --needed --noconfirm -q networkmanager-openvpn pulseaudio-alsa rfkill systemd-kcm bluedevil
  194. sudo systemctl enable NetworkManager
  195. sudo systemctl start NetworkManager
  196. sudo systemctl enable bluetooth
  197. sudo systemctl start bluetooth
  198. touch /home/$USER/.xinitrc
  199. echo 'exec startkde' > /home/$USER/.xinitrc
  200. print_msg "Plasma 5 install complete!"
  201. print_msg 'run "startx" to start x server with kde plasma 5'
  202. fi
  203. }
  204. # Yaourt
  205. alpi_yaourt(){
  206. print_title "AUR helper : Yaourt"
  207. print_question "install Yaourt [Y|n] "
  208. read yaourt
  209. yaourt=${yaourt:-y}
  210. if [ "$yaourt" == "y" ]; then
  211. sudo pacman -S --needed base-devel
  212. mkdir -p /home/$USER/Developer/Linux/build-repos
  213. wget -O /home/$USER/Developer/Linux/build-repos/package-query.tar.gz https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
  214. wget -O /home/$USER/Developer/Linux/build-repos/yaourt.tar.gz https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
  215. cd /home/$USER/Developer/Linux/build-repos
  216. tar -xvf package-query.tar.gz
  217. tar -xvf yaourt.tar.gz
  218. cd package-query
  219. makepkg -sri
  220. cd ../yaourt
  221. makepkg -sri
  222. echo 'ask for editing config file before build'
  223. echo "EDITFILES=1" >> ~/.yaourtrc
  224. print_msg "Yaourt install complete!"
  225. fi
  226. }
  227. alpi_cups(){
  228. print_title 'CUPS (for printing)'
  229. print_question "install cups [Y|n] "
  230. read yn
  231. yn=${yn:-y}
  232. if [ "$yn" == "y" ]; then
  233. sudo pacman -S --needed --noconfirm -q cups cups-filters libcups ghostscript gsfonts
  234. sudo pacman -S --needed --noconfirm -q gutenprint splix cups-pdf
  235. sudo pacman -S --needed --noconfirm -q print-manager
  236. alpi_avahi
  237. sudo systemctl enable org.cups.cupsd
  238. sudo systemctl start org.cups.cupsd
  239. sudo systemctl enable cups-browsed
  240. sudo systemctl start cups-browsed
  241. print_msg "CUPS install complete!"
  242. print_warning "add your user to the sys group if you want to be able to add printers"
  243. fi
  244. }
  245. # kernel LTS
  246. alpi_kernellts(){
  247. print_title "Long Term Support Kernel"
  248. print_question "install kernel-lts)? [Y|n]"
  249. read yn
  250. yn=${yn:-y}
  251. if [ "$yn" == "y" ]; then
  252. sudo pacman -S linux-lts linux-lts-headers nvidia-lts bbswitch-lts
  253. # TODO : add entrie for lts kernel on /boot/loader/entries
  254. print_msg "kernel LTS install complete!"
  255. fi
  256. }
  257. alpi_mysql(){
  258. print_msg "installe mysql"
  259. sudo pacman -S --needed --noconfirm -q mariadb
  260. print_msg "configure mysql"
  261. sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  262. mysql_secure_installation
  263. sudo sed -i.back 's/^log-bin=mysql-bin$/#&/' /etc/mysql/my.cnf
  264. sudo sed -i.back 's/^max_allowed_packet.*$/max_allowed_packet = 16M/' /etc/mysql/my.cnf
  265. }
  266. # Packages
  267. alpi_defaultpkgs(){
  268. print_title "Day to day software"
  269. print_question "install day to day packages? [Y|n]"
  270. read yn
  271. yn=${yn:-y}
  272. if [ "$yn" == "y" ]; then
  273. print_msg "file explorer : Dolphin"
  274. sudo pacman -S --needed --noconfirm -q dolphin dolphin-plugins
  275. print_msg 'Pim softwares : mail, calendar, contact, etc'
  276. sudo pacman -S --needed --noconfirm -q kmail korganizer kaddressbook kdeconnect kleopatra pidgin
  277. sudo pacman -S --needed --noconfirm -q spamassassin razor
  278. sudo sa-update
  279. print_question "Install regular mysql support for akonadi? [Y|n] "
  280. read ako
  281. ako=${ako:-y}
  282. if [ "$ako" == "y" ]; then
  283. print_question "Should we install and configure mysql (if not already done)? [y|N] "
  284. read sql
  285. sql=${sql:-n}
  286. if [ "$sql" == "y" ]; then
  287. alpi_mysql
  288. fi
  289. # https://forum.kde.org/viewtopic.php?t=84478#p140762
  290. print_question "please type your root mysql password :"
  291. read -s -p Password: pswd
  292. mysql -u root -p$pswd -e "create database akonadi;"
  293. mysql -u root -p$pswd -e "create user 'akonadi'@'localhost' identified by 'akonadi';"
  294. mysql -u root -p$pswd -e "grant all privileges on akonadi.* to 'akonadi'@'localhost';"
  295. mysql -u root -p$pswd -e "flush privileges;"
  296. mkdir -p /home/$USER/.config/akonadi
  297. mv /home/$USER/.config/akonadi/akonadiserverrc /home/$USER/.config/akonadi/akonadiserverrc.back
  298. cp $_cwd/assets/akonadiserverrc /home/$USER/.config/akonadi/
  299. print_msg "Akonadi configured to use system wide sql server!"
  300. fi
  301. print_msg "web browser, terminal emulator, disk tool, password tool"
  302. sudo pacman -S --needed --noconfirm -q chromium terminator gparted keepass
  303. print_msg 'install office softwares'
  304. sudo pacman -S --needed --noconfirm -q gwenview kimageformats kdegraphics-okular kipi-plugins libreoffice-fresh hunspell-{fr,en}
  305. print_msg 'install media softwares'
  306. sudo pacman -S --needed --noconfirm -q digikam darktable vlc lua-socket ktorrent banshee
  307. print_msg 'install graphic softwares'
  308. sudo pacman -S --needed --noconfirm -q inkscape gimp scribus fontforge blender
  309. print_msg 'web dev softwares'
  310. sudo pacman -S --needed --noconfirm -q firefox filezilla gulp
  311. print_msg 'install cloud softwares'
  312. sudo pacman -S --needed --noconfirm -q owncloud-client syncthing syncthing-gtk syncthing-inotify
  313. print_msg 'increase inotify watch limit'
  314. sleep 3
  315. sudo cp $_cwd/assets/90-inotify.conf /etc/sysctl.d/
  316. if [ -f /usr/bin/yaourt ];
  317. then
  318. yaourt -S downgrade
  319. yaourt -S atom-editor
  320. yaourt -S pulseaudio-dlna
  321. else
  322. print_warning "some packages can't be installed because you don't have yaourt installed"
  323. fi
  324. fi
  325. }
  326. # LAMP
  327. alpi_lamp(){
  328. # https://wiki.archlinux.org/index.php/Apache_HTTP_Server
  329. print_title "Web Server (apache, php, mysql)"
  330. print_question "Install apache php mysql? [Y|n] "
  331. read yn
  332. yn=${yn:-y}
  333. if [ "$yn" == "y" ]; then
  334. sudo pacman -S --needed --noconfirm -q apache php php-apache phpmyadmin php-mcrypt php-gd
  335. print_question "Should we install and configure mysql (if not already done)? [y|N] "
  336. read sql
  337. sql=${sql:-n}
  338. if [ "$sql" == "y" ]; then
  339. alpi_mysql
  340. fi
  341. print_msg "configure apache"
  342. sudo sed -i.back 's/^LoadModule mpm_event_module modules\/mod_mpm_event\.so$/#&/' /etc/httpd/conf/httpd.conf
  343. sudo sed -i.back 's/^#LoadModule mpm_prefork_module modules\/mod_mpm_prefork\.so$/LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/' /etc/httpd/conf/httpd.conf
  344. sudo sed -i.back 's/^#LoadModule rewrite_module modules\/mod_rewrite\.so$/LoadModule rewrite_module modules\/mod_rewrite.so/' /etc/httpd/conf/httpd.conf
  345. print-msg "configure vhosts folder"
  346. sudo mkdir /etc/httpd/conf/vhosts
  347. sudo sed -i.back 's/^#Include conf\/extra\/httpd-vhosts\.conf$/&\nInclude conf\/vhosts\/*.conf/' /etc/httpd/conf/httpd.conf
  348. print_msg "configure apache for php"
  349. sudo sed -i.back 's/^LoadModule dir_module modules\/mod_dir\.so$/&\nLoadModule php5_module modules\/libphp5.so/' /etc/httpd/conf/httpd.conf
  350. sudo sh -c "echo 'Include conf/extra/php5_module.conf' >> /etc/httpd/conf/httpd.conf"
  351. print_msg "configure php"
  352. sudo sed -i.back 's/^memory_limit.*$/memory_limit = 512M/' /etc/php/php.ini
  353. sudo sed -i.back 's/^error_reporting.*$/error_reporting = E_ALL \& ~E_NOTICE/' /etc/php/php.ini
  354. sudo sed -i.back 's/;extension=gd\.so/extension=gd.so/' /etc/php/php.ini
  355. print_question "Should we configure custom basedir folder for php? [Y|n] "
  356. read bd
  357. sql=${bd:-y}
  358. if [ "$bd" == "y" ]; then
  359. print_question "Please enter the basedir path"
  360. read basedir
  361. sudo sed -i.back "s/^open_basedir = .*$/&:${basedir}/" /etc/php/php.ini
  362. fi
  363. print_msg "configure php for mysql"
  364. sudo sed -i.back 's/;extension=pdo_mysql\.so/extension=pdo_mysql.so/' /etc/php/php.ini
  365. print_msg "configure phpmyadmin"
  366. sudo sed -i.back 's/;extension=mysqli\.so/extension=mysqli.so/' /etc/php/php.ini
  367. sudo sed -i.back 's/;extension=mcrypt\.so/extension=mcrypt.so/' /etc/php/php.ini
  368. sudo sed -i.back 's/;extension=bz2\.so/extension=bz2.so/' /etc/php/php.ini
  369. sudo sed -i.back 's/;extension=zip\.so/extension=zip.so/' /etc/php/php.ini
  370. sudo sed -i.back 's/^open_basedir = .*$/&:\/etc\/webapps\//' /etc/php/php.ini
  371. # TODO : instal drush
  372. fi
  373. }
  374. alpi_bumblebee(){
  375. # https://wiki.archlinux.org/index.php/Bumblebee
  376. print_title "Bumblebee"
  377. print_question "Install Bumblebee? [Y|n] "
  378. read yn
  379. yn=${yn:-y}
  380. if [ "$yn" == "y" ]; then
  381. sudo pacman -S --needed --no-confirm bumblebee nvidia
  382. sudo gpasswd -a $USER bumblebee
  383. sudo systemctl enable bumblebeed
  384. sudo systemctl start bumblebeed
  385. sudo pacman -S --needed --no-confirm mesa-demo
  386. print_msg "run optirun glxgears --info to test your install"
  387. print_msg "Install primus bridge for better performances"
  388. sudo pacman -S --needed --no-confirm primus lib32-primus
  389. sudo sed -i.back 's/^Bridge=auto$/Bridge=primus/' /etc/bumblebee/bumblebee.conf
  390. print_msg "Install bbswitch to turn on and off discret card automatically (only for laptops)"
  391. sudo pacman -S --needed --no-confirm bbswitch
  392. fi
  393. }
  394. alpi_steam(){
  395. # https://wiki.archlinux.org/index.php/Steam
  396. print_title "Steam"
  397. print_question "Install steam? [Y|n] "
  398. read yn
  399. yn=${yn:-y}
  400. if [ "$yn" == "y" ]; then
  401. alpi_bumblebee
  402. print_msg "Enable Multilib repository package"
  403. sudo sed -i.back 's/^#[multilib]$/[multilib]/' /etc/pacman.conf
  404. sudo sed -i.back 's/^#Include = \/etc/pacman\.d\/mirrorlist$/Include = /etc/pacman.d/mirrorlis/' /etc/pacman.conf
  405. sudo pacman -Syy
  406. sudo pacman -S --needed --no-confirm lib32-virtualgl lib32-mesa-libgl lib32-nvidia-utils lib32-alsa-plugins ttf-liberation lib32-curl
  407. sudo pacman -S --needed --no-confirm steam
  408. fi
  409. }
  410. # END
  411. alpi_end(){
  412. print_question "Reboot now? [Y|n] "
  413. read yn
  414. yn=${yn:-y}
  415. if [ "$yn" != "y" ]; then
  416. print_warning "depending on what you've done you may need to reboot"
  417. exit
  418. fi
  419. print_msg "Rebooting in 5sec"
  420. sleep 3
  421. reboot
  422. }
  423. alpi_menu(){
  424. while true
  425. do
  426. print_question "choose an action (preferably in proposed order)"
  427. echo
  428. action_list=("create user" "install basics" "cosmetics" "create gnupgp key" "secure the system" "install Xorg Server" "install Plasma 5 (kde)" "yaourt" "cups (printers)" "switch to LTS kernel" "install default packages" "install lamp" "install bumblebee" "install steam" "end");
  429. select action in "${action_list[@]}"; do
  430. case "$REPLY" in
  431. 1)
  432. alpi_user
  433. ;;
  434. 2)
  435. alpi_basics
  436. ;;
  437. 3)
  438. alpi_cosmetics
  439. ;;
  440. 4)
  441. alpi_gnupg
  442. ;;
  443. 5)
  444. alpi_secure
  445. ;;
  446. 6)
  447. alpi_xserver
  448. ;;
  449. 7)
  450. alpi_plasma5
  451. ;;
  452. 8)
  453. alpi_yaourt
  454. ;;
  455. 9)
  456. alpi_cups
  457. ;;
  458. 10)
  459. alpi_kernellts
  460. ;;
  461. 11)
  462. alpi_defaultpkgs
  463. ;;
  464. 12)
  465. alpi_lamp
  466. ;;
  467. 13)
  468. alpi_bumblebee
  469. ;;
  470. 14)
  471. alpi_steam
  472. ;;
  473. 15)
  474. alpi_end
  475. ;;
  476. *)
  477. print_warning "dommage, essaye encore"
  478. ;;
  479. esac
  480. [[ -n $OPT ]] && break
  481. done
  482. done
  483. }
  484. alpi_menu