北海亭

一个Debian装机脚本代码

电脑办公  2025-11-04 00:37:43  热度:16℃

复制代码代码如下:

#!/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

最近更新

  • Pi 币最新消息:技术指标显示多头正在准备卷土重来

    Pi 币最新消息:技术指标显示多头正在准备卷土重来

    2025-11-1090阅读

  • Solana 接近 180 美元——分析师预测上涨空间 80%,RSI 信号表明深度下跌

    Solana 接近 180 美元——分析师预测上涨空间 80%,RSI 信号表明深度下跌

    2025-11-1084阅读

  • 分析师称,目前最值得投资的加密货币是这款 0.035 美元的 DeFi 代币,而不是以太坊 (ETH),原因如下

    分析师称,目前最值得投资的加密货币是这款 0.035 美元的 DeFi 代币,而不是以太坊 (ETH),原因如下

    2025-11-1075阅读

  • XRP 鲸鱼活动与机构积累趋势:链上信号作为价格周期的领先指标

    XRP 鲸鱼活动与机构积累趋势:链上信号作为价格周期的领先指标

    2025-11-1091阅读

  • 加密货币市场暴跌——谁在崛起

    加密货币市场暴跌——谁在崛起

    2025-11-1092阅读

  • 神秘鲸鱼活动引发对 Ethena 和主要代币的猜测

    神秘鲸鱼活动引发对 Ethena 和主要代币的猜测

    2025-11-1073阅读

  • Memecoin 崩盘重创柴犬!SHIB 的回归之路可能就此终结

    Memecoin 崩盘重创柴犬!SHIB 的回归之路可能就此终结

    2025-11-1049阅读

  • PUMP 价格上涨,多头能否维持趋势还是前方有阻力?

    PUMP 价格上涨,多头能否维持趋势还是前方有阻力?

    2025-11-1062阅读

  • 加密货币市场中异常的鲸鱼活动:以太坊和主要代币波动背景下散户投资者的战略切入点

    加密货币市场中异常的鲸鱼活动:以太坊和主要代币波动背景下散户投资者的战略切入点

    2025-11-1075阅读

  • 十月市场震荡后,Tether 发行 10 亿美元 USDT

    十月市场震荡后,Tether 发行 10 亿美元 USDT

    2025-11-1065阅读

  • 精选专题