手机
当前位置:查字典教程网 >操作系统 >Ubuntu/Debian >一个Debian装机脚本代码
一个Debian装机脚本代码
摘要:#!/bin/bashSUCCESS=0functioncheckInst(){#apt-get-y--force-yesinstallfo...

#!/bin/bash

SUCCESS=0

function checkInst()

{

#apt-get -y --force-yes install

for item in $1

do

echo "install =========== " ${item} " =========="

#printf "hello %.5sn" 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

【一个Debian装机脚本代码】相关文章:

debian修改主机名的一些注意事项

把ubuntu的默认编辑器修改为vim的方法

linux下hadoop配置过程

管理Ubuntu系统的开机启动项的教程

Debian下载安装操作详细教程

Ubuntu Touch 音乐应用显示 可适用于不同的设备

ubuntu下source、sh、bash、./执行脚本的区别详细介绍

在Ubuntu系统下删除无用的Linux内核的方法

为Ubuntu系统装上Mac OS的主题

ubuntu 11.10输入法图标不显示的解决方法(图文教程)

精品推荐
分类导航