这个脚本是我自己一直在用的。昨天突然翻出来了,看了下,没有什么技术含量。
稍微修改了一下部分的地方。让它更加完善点。源是我的服务器上的。
准备改写 成 perl,先发出来吧.
#!/bin/bash ##############set PATH############# #set source.list /usr/bin/wget http://xxx.xxx.xxx.xxx/source.list.tar.gz /bin/tar xvf source.list.tar.gz /bin/cat sources.list > /etc/apt/sources.list #update source.list /usr/bin/apt-get update #install terminator /usr/bin/apt-get install terminator -y #install tint2 /usr/bin/apt-get install tint2 -y #install conkry /usr/bin/apt-get install conkry -y #install scim /usr/bin/apt-get install scim scim-sunpinyin -y #set source.list 2 /bin/cat sources.list2 > /etc/apt/sources.list #update source.list /usr/bin/apt-get update #install virtualbox #/usr/bin/apt-get install virtualbox -y #install network-manager /usr/bin/apt-get install wicd -y #install openbox & xorg /usr/bin/apt-get install openbox xorg -y #install xfce4-power /usr/bin/apt-get install xfce4-power-manager -y #install xfonts-wqy /usr/bin/apt-get install xfonts-wqy -y #install language /usr/bin/apt-get install language-pack-zh-hant -y #install sound /usr/bin/apt-get install alsa -y /usr/bin/dpkg -i ob.deb /usr/bin/apt-get -f install -y /usr/bin/dpkg -i ob.deb /usr/bin/apt-get install alsamixergui -y # install firefox /usr/bin/apt-get install firefox -y # install conky /usr/bin/apt-get install conky -y ######################## # # system or config # ########################## /bin/touch ~/.xinitrc /bin/chmod 777 ~/.xinitrc echo "exec openbox-session" > ~/.xinitrc /bin/mkdir -p ~/.config/openbox/ /bin/cp -R /etc/X11/openbox/* ~/.config/openbox/ /bin/mv libflashplayer.so /usr/lib/firefox/plugins/ echo "tint2 &" >> ~/.config/openbox/autostart echo "wicd-gtk --tray &" >> ~/.config/openbox/autostart echo "xfce4-power-manager &" >> ~/.config/openbox/autostart echo "obmixer &" >> ~/.config/openbox/autostart echo "scim -d &" >> ~/.config/openbox/autostart /bin/touch /etc/X11/Xsession.d/95input /bin/chmod 777 /etc/X11/Xsession.d/95input echo "/usr/bin/scim -d" >> /etc/X11/Xsession.d/95input echo 'XMODIFIERS="@im=SCIM"' >> /etc/X11/Xsession.d/95input echo "export XMODIFIERS" >> /etc/X11/Xsession.d/95input echo "export GTK_IM_MODULE=scim" >>/etc/X11/Xsession.d/95input echo 'LANG="zh_CN.UTF-8"' >> /etc/environment echo 'LANGUAGE="zh_CN:zh:en_US:en"' >> /etc/environment echo 'LANG="zh_CN.UTF-8"' >> /root/.bashrc /usr/sbin/locale-gen zh_CN.UTF-8 /usr/sbin/dpkg-reconfigure locales /bin/cat locale.text > /etc/default/locale /bin/cat local.text > /var/lib/locales/supported.d/local /usr/sbin/locale-gen /sbin/reboot