Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1833802
  • 博文数量: 286
  • 博客积分: 3713
  • 博客等级: 少校
  • 技术积分: 2275
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-11 09:47
个人简介

http://blog.chinaunix.net/uid/16979052.html

文章分类

全部博文(286)

文章存档

2018年(1)

2017年(16)

2016年(9)

2015年(17)

2014年(15)

2013年(112)

2012年(116)

分类: LINUX

2012-07-06 14:16:57

#!/bin/bash

SUCCESS=0 
function checkInst()
{
#apt-get -y --force-yes install 
for item in $1 
do
echo "install =========================== " ${item} " =============================="
#printf "hello %.5s\n" message
apt-get -y --force-yes install ${item}
if [ "$?" -ne $SUCCESS ]
then
echo "ERROR Install " ${item}
read line1
fi
done
}

tools="ftp telnet nmap tftp ntpdate screen lsof manpages manpages-dev manpages-posix manpages-posix-dev strace ltrace chkconfig"
xdesktop="xserver-xorg-core xfce4 xfce4-terminal xfburn thunar-archive-plugin gdm "
editor="galculator vim vim-gtk medit rdesktop xvnc4viewer filezilla claws-mail claws-mail-i18n claws-mail-tnef-parser claws-mail-html2-viewer"
xtools="ristretto fbreader p7zip-full arj zip mscompress file-roller stardict-gtk iptux"
chineseinput="fcitx"
mediatools="alsa-base alsa-utils mplayer mencoder smplayer ffmpeg"
develops="astyle ctags cxref ccache gettext poedit gdb cppcheck build-essential graphviz intltool valgrind"
fssupport="fusesmb smbclient smbfs ntfs-3g sshfs openssh-client openssh-server"
nettools="ethtool wireless-tools wicd mtools dosfstools pppoe"
sniffer="wireshark"
desk3d="compiz compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-fusion-bcop compizconfig-settings-manager cairo-dock-compiz-icon-plugin"
others="rpm qbittorrent"
curlpkg="aria2 axel curl mpg321 easymp3gain-gtk jp2a nmon arping conky libnotify-bin inotify-tools dia dnsutils"


checkInst "${tools}"

checkInst "${xdesktop}"

checkInst "${editor}"

checkInst "${xtools}"

checkInst "${chineseinput}"

checkInst "${mediatools}"

checkInst "${develops}"

checkInst "${fssupport}"

checkInst "${sniffer}"

checkInst "${nettools}"

checkInst "${others}"

checkInst "${desk3d}"

checkInst "${curlpkg}"
apt-get install firmware-realtek firmware-linux-nonfree firmware-linux-free libqt4-opengl

apt-get -y --force-yes remove vim-tiny nano tasksel tasksel-data jfbterm zhcon --purge
apt-get -y --force-yes remove aumix ttf-arphic-ukai ttf-arphic-uming iceweasel --purge
apt-get autoremove --purge -y --force-yes
apt-get upgrade -y --force-yes

阅读(1613) | 评论(1) | 转发(0) |
0

上一篇:HipHop for PHP

下一篇:收集服务器信息,LTP

给主人留下些什么吧!~~

sometimeixpub2013-03-20 09:08:38

claws-mail-fancy-plugin代替了claws-mail-html2-viewer。
network-manager-gnome代替了wicd

#network-manager use this group
usermod -a -G netdev johnyin
sed -e 's/any>no/any>yes/' -e 's/auth_admin_keep/yes/' -e 's/auth_admin/yes/' -i /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
#anyone can modify network config
sed -e 's/ResultAny=no/ResultAny=y