这期内容当中小编将会给大家带来有关Debian装机脚本代码怎么写,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。代码如下:#!/bin/bashSUCCESS=0 function checkInst(){
这期内容当中小编将会给大家带来有关Debian装机脚本代码怎么写,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。
代码如下:
#!/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
上述就是小编为大家分享的Debian装机脚本代码怎么写了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注编程网精选频道。
--结束END--
本文标题: Debian装机脚本代码怎么写
本文链接: https://lsjlt.com/news/265664.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0