Advertisement
Guest User

marshviperX

a guest
Dec 23rd, 2009
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. #!/bin/bash
  2. #marshviperX
  3.  
  4. setterm -blank 0
  5.  
  6. echo "Welcome to the botnet."
  7. echo "What do you want your username to be?"
  8. echo ""
  9. read -p "> "
  10. while [[ -z "$REPLY" ]]; do
  11. echo "No username entered"
  12. read -p "> "
  13. done
  14. USERNAME=$REPLY
  15. useradd -m -G users,audio,lp,optical,storage,video,wheel,power -s /bin/bash $USERNAME
  16. clear
  17. echo "What do you want your password to be?"
  18. passwd $USERNAME
  19. clear
  20.  
  21. sleep 3
  22.  
  23. pacman -Syu --noconfirm
  24.  
  25. clear
  26. echo "options snd-pcsp index=2" >> /etc/modprobe.d/modprobe.conf
  27. pacman -S alsa-utils alsa-oss --noconfirm
  28. clear
  29. echo "Press enter to adjust sound settings."
  30. echo ""
  31. read -p "> "
  32. clear
  33. su $USERNAME -c alsamixer
  34. alsactl store
  35. clear
  36.  
  37. pacman -S xorg xf86-video-vesa xf86-input-keyboard xf86-input-mouse --noconfirm
  38. clear
  39. echo "Configuring xorg."
  40. sleep 5
  41. clear
  42. Xorg -configure
  43. cp /root/xorg.conf.new /etc/X11/xorg.conf
  44. clear
  45.  
  46. echo "Setting up hotplugging."
  47. sleep 3
  48. pacman -S hal dbus xf86-input-evdev fam --noconfirm
  49. /etc/rc.d/hal start
  50. /etc/rc.d/fam start
  51. clear
  52.  
  53. echo "Installing Openbox."
  54. sleep 3
  55. pacman -S openbox obconf obmenu firefox --noconfirm
  56. echo "exec ck-launch-session dbus-launch --exit-with-session openbox-session" >> /home/$USERNAME/.xinitrc
  57. chown $USERNAME /home/$USERNAME/.xinitrc
  58. mkdir -p /home/$USERNAME/.config/openbox/
  59. cp /etc/xdg/openbox/rc.xml /home/$USERNAME/.config/openbox/
  60. cp /etc/xdg/openbox/autostart.sh /home/$USERNAME/.config/openbox/
  61. chown $USERNAME /home/$USERNAME/.config/
  62. chown $USERNAME /home/$USERNAME/.config/openbox/
  63. chown $USERNAME /home/$USERNAME/.config/openbox/autostart.sh
  64. chown $USERNAME /home/$USERNAME/.config/openbox/rc.xml
  65. clear
  66.  
  67. echo "Installing login manager."
  68. sleep 3
  69. pacman -S slim archlinux-themes-slim --noconfirm
  70. sed -i 's/current_theme default/current_theme archlinux-darch-grey/g' /etc/slim.conf
  71. sed -i '/logfile/ d' /etc/slim.conf
  72. echo "logfile /dev/null" >> /etc/slim.conf
  73.  
  74. sed -i '/DAEMONS/ d' /etc/rc.conf
  75. echo "DAEMONS=(syslog-ng network crond alsa hal fam slim)" >> /etc/rc.conf
  76. clear
  77.  
  78. echo "Setting up themes/fonts."
  79. sleep 3
  80. pacman -S tango-icon-theme archlinux-wallpaper ttf-ms-fonts ttf-dejavu ttf-bitstream-vera gnome-themes-extras openbox-themes --noconfirm
  81. echo "gtk-theme-name=\"Darklooks\"" >> /home/$USERNAME/.gtkrc-2.0
  82. echo "gtk-icon-theme-name=\"Tango\"" >> /home/$USERNAME/.gtkrc-2.0
  83. chown $USERNAME /home/$USERNAME/.gtkrc-2.0
  84. cp /home/$USERNAME/.gtkrc-2.0 /root/.gtkrc-2.0
  85. sed -i 's/Clearlooks/TropicBomb/g' /home/$USERNAME/.config/openbox/rc.xml
  86. mkdir /home/$USERNAME/.config/nitrogen/
  87. chown $USERNAME /home/$USERNAME/.config/nitrogen/
  88. echo "
  89. [:0.0]
  90. file=/usr/share/archlinux/wallpaper/archlinux-simplyblack.png
  91. mode=4
  92. bgcolor=# 0 0 0" >> /home/$USERNAME/.config/nitrogen/bg-saved.cfg
  93. chown $USERNAME /home/$USERNAME/.config/nitrogen/bg-saved.cfg
  94. clear
  95.  
  96. echo "Do you want Flash Player, media codecs etc?"
  97. echo ""
  98. read -p "y/n";
  99. if [[ "$REPLY" =~ ^[yY] ]]; then
  100. clear;
  101. else
  102. clear
  103. echo "All done. Rebooting in 3..."
  104. sleep 3
  105. reboot;
  106. fi
  107. echo "Do you want codecs?"
  108. echo ""
  109. read -p "y/n";
  110. if [[ "$REPLY" =~ ^[yY] ]]; then
  111. pacman -S gstreamer0.10-{{good,ugly,base}{,-plugins},ffmpeg} --noconfirm
  112. clear;
  113. else
  114. clear;
  115. fi
  116. echo "Do you want Flash Player?"
  117. echo ""
  118. read -p "y/n";
  119. if [[ "$REPLY" =~ ^[yY] ]]; then
  120. if [ $(uname -m) == 'x86_64' ]; then
  121. wget $(wget -q http://labs.adobe.com/downloads/flashplayer10_64bit.html -O- | grep 'http\(.*\)\.so\.tar\.gz' -o)
  122. tar xzvf libflashplayer*.tar.gz
  123. mkdir -p /home/$USERNAME/.mozilla/plugins/
  124. mv libflashplayer.so /home/$USERNAME/.mozilla/plugins/
  125. chown $USERNAME /home/$USERNAME/.mozilla/
  126. chown $USERNAME /home/$USERNAME/.mozilla/plugins/
  127. chown $USERNAME /home/$USERNAME/.mozilla/plugins/libflashplayer.so
  128. rm libflashplayer*.tar.gz
  129. clear;
  130. else
  131. pacman -S flashplugin --noconfirm
  132. clear;
  133. fi
  134. else
  135. clear;
  136. fi
  137. echo "Do you want DVD decryption?"
  138. echo ""
  139. read -p "y/n";
  140. if [[ "$REPLY" =~ ^[yY] ]]; then
  141. pacman -S libdvdread libdvdcss libdvdnav --noconfirm
  142. clear;
  143. else
  144. clear;
  145. fi
  146.  
  147. clear
  148. echo "All done. Rebooting in 3..."
  149. sleep 3
  150. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement