作者 Huahua [actionscript] 2006-11-14 19:27 (点击下载) (原始帖子: klaus 在 2006-11-14 19:25 被修改)) (显示不同)

  1. #/bin/bash
  2. # Copyright (c) 2006 klaus zuo
  3. # License: GPLv2
  4. # Author: klaus zuo
  5. # Blog: http://feeds.feedburner.com/klauszuo
  6.  
  7. echo -e "\n\nDo not run this with sudo! Passwords will be asked for when needed.\n\n"
  8. [ $USER = root ] && exit 0
  9.  
  10. sources="/etc/apt/sources.list"
  11.  
  12. echo "Backup old repositories..."
  13. sudo cp $sources /etc/apt/sources.list.`date +%Y-%m-%d-%H-%M-%S`
  14.  
  15. echo -n "Are you using china telecom ? (yes / no)"
  16. read option
  17. case $option in
  18. yes|y)
  19. echo "Replace Repositories..."
  20. wget -c http://files.myopera.com/klauszuo/linux/sources-cn99.list
  21. sudo mv sources-cn99.list /etc/apt/sources.list
  22. ;;
  23. *)
  24. echo "Replace Repositories..."
  25. wget -c http://files.myopera.com/klauszuo/linux/sources.list
  26. sudo mv sources.list /etc/apt/sources.list
  27. ;;
  28. esac
  29.  
  30. echo "Update system..."
  31. sudo apt-get update
  32. sudo apt-get dist-upgrade -y --force-yes
  33.  
  34. echo "Install media-support..."
  35. sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse w32codecs libxine-extracodecs libdvdcss2 libdvdnav4 libdvdplay0 libdvdread3 -y --force-yes
  36.  
  37. echo -n "Will you want to chat with googletalk via voice? (yes / no) "
  38. read option
  39. case $option in
  40. yes|y)
  41. sudo apt-get install tapioca0.3 tapiocaui0.3 -y --force-yes
  42. echo "ok."
  43. ;;
  44. *)
  45. echo "skip.."
  46. ;;
  47. esac
  48.  
  49. echo -n "Are you using kubuntu? (yes / no) "
  50. read option
  51. case $option in
  52. yes|y)
  53. echo "Install and set up chinese support and videoplayer.... "
  54. sudo apt-get install language-pack-kde-zh language-pack-zh kchmviewer mplayer kmplayer -y --force-yes
  55. ln -s /usr/share/fonts/truetype/arphic/uming.ttf ~/.mplayer/subfont.ttf
  56.  
  57. echo "Install some tools....."
  58. sudo apt-get install kget -y --force-yes
  59. ;;
  60. *)
  61. echo "Install and set up chinese support and videoplayer.... "
  62. sudo apt-get install language-pack-gnome-zh language-pack-zh chmviewer mplayer -y --force-yes
  63.  
  64. echo "Install some tools....."
  65. sudo apt-get install gwget -y --force-yes
  66. ;;
  67. esac
  68.  
  69. echo "uninstall mozilla..."
  70. sudo apt-get remove mozilla-firefox mozilla-thunderbird
  71. echo "success uninstalled."
  72.  
  73. echo -n "will you install programm from source? (yes / no) "
  74. read option
  75. case $option in
  76. yes|y)
  77. echo "install build-essential"
  78. sudo apt-get install build-essential -y --force-yes
  79. ;;
  80. *)
  81. echo "skip..."
  82. ;;
  83. esac
  84.  
  85. echo "install sth. useful..."
  86. sudo apt-get install opera gimp amule p7zip unrar -y --force-yes
  87.  
  88. im-switch -s scim_xim
  89.  
  90. echo -e "done\nrecommand to reboot your computer now\n\n"
  91. echo -n "do you wanna reboot your computer now? (yes / no) "
  92. read option
  93. case $option in
  94. yes|y)
  95. echo "now reboot"
  96. sudo reboot
  97. ;;
  98. *)
  99. echo "make reboot yourself..."
  100. ;;
  101. esac

提交下面的校正或者修改. (点击这里开始一个新的帖子)
姓名: 在 cookie 中记住我的名字

屏幕抓图:(jpeg 或 png)