|
|
发表于 2009-9-23 14:58:44
|
显示全部楼层
Post by rem1x;2029228
@jiuny0209 我现在也是这么打算的,可否分享你的脚本?
愕!我只是把安裝過程的指令一個一個打上去而已,讓你見笑了
執行make restore 把設定檔取回到./source
執行make sync 安裝系統
- cfg=./source
- gg=./ggsource
- home=$$HOME
- pkg=./repopkg
- #(修補設定的取回&設定) (1:1的同步安裝系統)
- install : instconfig
- restore : resconfig
- sync : syncpkg syncrepo syncmodule
- #設定所有的設定
- instconfig :
- #安裝目錄(只有軟體的,與系統規劃無關,系統規劃的寫在~/.profile)
- -mkdir -p $(home)/.config/awesome $(home)/.config/Terminal $(home)/.centerim $(home)/.irssi $(home)/.config/Thunar $(home)/.mldonkey $(home)/.aria2
- #kernel主要的
- -cp $(cfg)/sysctl.conf /etc/sysctl.conf -v
- #BSD主要的
- -cp $(cfg)/rc.conf /etc/rc.conf -v
- -cp $(cfg)/rc.local /etc/rc.local -v
- -cp $(cfg)/gpm /etc/conf.d/gpm -v
- #cron主要的
- -crontab $(cfg)/root
- -cp $(cfg)/syncdb /etc/cron.d/syncdb -v
- -cp $(cfg)/abs /etc/cron.d/abs -v
- -cp $(cfg)/update /etc/cron.d/update -v
- -cp $(cfg)/trash /etc/cron.d/trash -v
- -cp $(cfg)/scavenge /etc/cron.d/scavenge -v
- -cp $(cfg)/ntpdate /etc/cron.daily/ntpdate -v
- #at主要的
- -rsync -azcvP --delete $(cfg)/atd /var/spool
- #網路主要的
- -cp $(cfg)/hosts /etc/hosts -v
- -cp $(cfg)/pacman.conf /etc/pacman.conf -v
- -cp $(cfg)/mirrorlist /etc/pacman.d/mirrorlist -v
- -cp $(cfg)/makepkg.conf /etc/makepkg.conf -v
- -cp $(cfg)/abs.conf /etc/abs.conf -v
- #xorg主要的
- -cp $(cfg)/xorg.conf /etc/X11/xorg.conf -v
- -cp $(cfg)/.Xmodmap $(home)/.Xmodmap -v
- -cp $(cfg)/config.scim $(home)/.scim/config -v
- -cp $(cfg)/.xbindkeysrc $(home)/.xbindkeysrc -v
- -cp $(cfg)/44-wqy-zenhei.conf /etc/fonts/conf.d/44-wqy-zenhei.conf -v
- -cp $(cfg)/rc.lua $(home)/.config/awesome/rc.lua -v
- -cp $(cfg)/.xinitrc $(home)/.xinitrc -v
- -cp $(cfg)/.Xdefaults $(home)/.Xdefaults -v
- -cp $(cfg)/.gtkrc.mine $(home)/.gtkrc.mine -v
- -cp $(cfg)/.gtkrc-2.0 $(home)/.gtkrc-2.0 -v
- #applications主要的
- -rsync -azcvP --delete $(cfg)/applications $(home)/.local/share
- #shell主要的
- -cp $(cfg)/.profile $(home)/.profile -v
- -cp $(cfg)/.bashrc $(home)/.bashrc -v
- -cp $(cfg)/.inputrc $(home)/.inputrc -v
- -cp $(cfg)/.screenrc $(home)/.screenrc -v
- -cp $(cfg)/.pythonstartup $(home)/.pythonstartup -v
- -cp $(cfg)/ipythonrc $(home)/.ipython/ipythonrc -v
- -cp $(cfg)/.irbrc $(home)/.irbrc -v
- -cp $(cfg)/.octaverc $(home)/.octaverc -v
- #vim主要的
- -cp $(cfg)/.vimrc $(home)/.vimrc -v
- -cp $(cfg)/.aspell.conf $(home)/.aspell.conf -v
- #pdf主要的
- -cp $(cfg)/.apvlvrc $(home)/.apvlvrc -v
- -cp $(cfg)/ev-metadata.xml $(home)/.gnome2/evince/ev-metadata.xml -v
- #html主要的
- -cp $(cfg)/prefs.js $(home)/.mozilla/firefox/????????.default/prefs.js -v
- -cp $(cfg)/key3.db $(home)/.mozilla/firefox/????????.default/key3.db -v
- -cp $(cfg)/signons.sqlite $(home)/.mozilla/firefox/????????.default/signons.sqlite -v
- -cp $(cfg)/formhistory.sqlite $(home)/.mozilla/firefox/????????.default/formhistory.sqlite -v
- -cp $(cfg)/permissions.sqlite $(home)/.mozilla/firefox/????????.default/permissions.sqlite -v
- #其它
- -cp $(cfg)/fstab /etc/fstab -v
- #這個檔案,人工拷貝
- # -cp $(cfg)/downloads.ini $(home)/.mldonkey/downloads.ini -v
- -cp $(cfg)/file_completed_cmd $(home)/.mldonkey/file_completed_cmd -v
- -cp $(cfg)/aria2.conf $(home)/.aria2/aria2.conf -v
- -cp $(cfg)/mplayer.conf /etc/mplayer/mplayer.conf -v
- -cp $(cfg)/config.centerim $(home)/.centerim/config -v
- -cp $(cfg)/config.irssi $(home)/.irssi/config -v
- -cp $(cfg)/.lftprc $(home)/.lftprc -v
- -cp $(cfg)/.surfraw.conf $(home)/.surfraw.conf -v
- -cp $(cfg)/terminalrc $(home)/.config/Terminal/terminalrc -v
- -cp $(cfg)/thunarrc $(home)/.config/Thunar/thunarrc -v
- -cp $(cfg)/.reminders $(home)/.reminders -v
- -cp $(cfg)/.wyrdrc $(home)/.wyrdrc -v
- #取回所有的設定
- resconfig :
- #kernel主要的
- cp /etc/sysctl.conf $(cfg)/sysctl.conf -v
- #BSD主要的
- cp /etc/rc.conf $(cfg)/rc.conf -v
- cp /etc/rc.local $(cfg)/rc.local -v
- cp /etc/conf.d/gpm $(cfg)/gpm -v
- #cron主要的
- cp /var/spool/cron/root $(cfg)/root -v
- cp /etc/cron.d/syncdb $(cfg)/syncdb -v
- cp /etc/cron.d/abs $(cfg)/abs -v
- cp /etc/cron.d/update $(cfg)/update -v
- cp /etc/cron.d/trash $(cfg)/trash -v
- cp /etc/cron.d/scavenge $(cfg)/scavenge -v
- cp /etc/cron.daily/ntpdate $(cfg)/ntpdate -v
- #at主要的
- rsync -azcvP --delete /var/spool/atd $(cfg)
- #網路主要的
- cp /etc/hosts $(cfg)/hosts -v
- cp /etc/pacman.conf $(cfg)/pacman.conf -v
- cp /etc/pacman.d/mirrorlist $(cfg)/mirrorlist -v
- cp /etc/makepkg.conf $(cfg)/makepkg.conf -v
- cp /etc/abs.conf $(cfg)/abs.conf -v
- #xorg主要的
- cp /etc/X11/xorg.conf $(cfg)/xorg.conf -v
- cp $(home)/.Xmodmap $(cfg)/.Xmodmap -v
- cp $(home)/.scim/config $(cfg)/config.scim -v
- cp $(home)/.xbindkeysrc $(cfg)/.xbindkeysrc -v
- cp /etc/fonts/conf.d/44-wqy-zenhei.conf $(cfg)/44-wqy-zenhei.conf -v
- cp $(home)/.config/awesome/rc.lua $(cfg)/rc.lua -v
- cp $(home)/.xinitrc $(cfg)/.xinitrc -v
- cp $(home)/.Xdefaults $(cfg)/.Xdefaults -v
- cp $(home)/.gtkrc.mine $(cfg)/.gtkrc.mine -v
- cp $(home)/.gtkrc-2.0 $(cfg)/.gtkrc-2.0 -v
- #applications主要的
- rsync -azcvP --delete $(home)/.local/share/applications $(cfg)
- #shell主要的
- cp $(home)/.profile $(cfg)/.profile -v
- cp $(home)/.bashrc $(cfg)/.bashrc -v
- cp $(home)/.inputrc $(cfg)/.inputrc -v
- cp $(home)/.screenrc $(cfg)/.screenrc -v
- cp $(home)/.pythonstartup $(cfg)/.pythonstartup -v
- cp $(home)/.ipython/ipythonrc $(cfg)/ipythonrc -v
- cp $(home)/.irbrc $(cfg)/.irbrc -v
- cp $(home)/.octaverc $(cfg)/.octaverc -v
- #vim主要的
- cp $(home)/.vimrc $(cfg)/.vimrc -v
- cp $(home)/.aspell.conf $(cfg)/.aspell.conf -v
- #pdf主要的
- cp $(home)/.apvlvrc $(cfg)/.apvlvrc -v
- cp $(home)/.gnome2/evince/ev-metadata.xml $(cfg)/ev-metadata.xml -v
- #html主要的
- cp $(home)/.mozilla/firefox/????????.default/prefs.js $(cfg)/prefs.js -v
- cp $(home)/.mozilla/firefox/????????.default/key3.db $(cfg)/key3.db -v
- cp $(home)/.mozilla/firefox/????????.default/signons.sqlite $(cfg)/signons.sqlite -v
- cp $(home)/.mozilla/firefox/????????.default/formhistory.sqlite $(cfg)/formhistory.sqlite -v
- cp $(home)/.mozilla/firefox/????????.default/permissions.sqlite $(cfg)/permissions.sqlite -v
- #其它
- cp /etc/fstab $(cfg)/fstab -v
- #這個檔案,人工拷貝
- # cp $(home)/.mldonkey/downloads.ini $(cfg)/downloads.ini -v
- cp $(home)/.mldonkey/file_completed_cmd $(cfg)/file_completed_cmd -v
- cp $(home)/.aria2/aria2.conf $(cfg)/aria2.conf -v
- cp /etc/mplayer/mplayer.conf $(cfg)/mplayer.conf -v
- cp $(home)/.centerim/config $(cfg)/config.centerim -v
- cp $(home)/.irssi/config $(cfg)/config.irssi -v
- cp $(home)/.lftprc $(cfg)/.lftprc -v
- cp $(home)/.surfraw.conf $(cfg)/.surfraw.conf -v
- cp $(home)/.config/Terminal/terminalrc $(cfg)/terminalrc -v
- cp $(home)/.config/Thunar/thunarrc $(cfg)/thunarrc -v
- cp $(home)/.reminders $(cfg)/.reminders -v
- cp $(home)/.wyrdrc $(cfg)/.wyrdrc -v
- #安裝所有軟體 (不重裝,不重新下載,不給提示)
- syncpkg :
- #先加快pacman,增加倉庫,修改下載方式
- cp $(cfg)/mirrorlist /etc/pacman.d/mirrorlist -v
- cp $(cfg)/pacman.conf /etc/pacman.conf -v
- #把aur的資源倉庫也收為己用
- -yes | pacman -U -f ./repo/aurbuild/aurbuild-1.8.8-1-any.pkg.tar.gz
- #更新系統 (不更新nvidia-96xx裝不了)
- -yes | pacman -Syu
- #安裝對時原子鐘
- -yes | pacman -S --needed ntp
- #安裝時間管理
- -yes | pacman -S --needed anacron
- -yes | pacman -S --needed at
- #安裝消息通知,硬體抽象(不裝這個某些應用程式不能用)
- -yes | pacman -S --needed dbus hal
- #安裝Xorg
- -yes | pacman -S --needed xorg xorg-input-drivers nvidia-96xx
- -depmod -a
- #安裝字型
- -yes | pacman -S --needed ttf-ms-fonts ttf-dejavu ttf-bitstream-vera wqy-zenhei wqy-bitmapfont
- #安裝輸入法
- -yes | pacman -S --needed scim scim-chewing
- #安裝圖形庫(缺少主題設定,thunar眼睛看得很吃力,很難分辨,就像沒有語法加亮)
- -yes | pacman -S --needed gtk gtk2 qt
- -yes | pacman -S --needed tango-icon-theme
- #安裝磚塊視窗管理
- -yes | pacman -S --needed awesome
- #安裝剪貼版
- -yes | pacman -S --needed parcellite
- #安裝視窗管理控制
- -yes | pacman -S --needed wmctrl
- #安裝按鍵綁定
- -yes | pacman -S --needed xbindkeys
- #安裝按鍵模擬
- -yes | pacman -S --needed xvkbd
- #安裝虛擬終端機
- -yes | pacmans-S --needed rxvt-unicode
- -yes | pacman -S --needed terminal
- #安裝分頁終端機
- -yes | pacman -S --needed screen
- #安裝檔案管理
- -yes | pacman -S --needed thunar gamin
- #安裝寫程式文書處理
- -yes | pacman -S --needed vim gvim
- #安裝拼寫檢查
- -yes | pacman -S --needed aspell aspell-en
- #安裝字典
- -yes | pacman -S --needed stardict
- -yes | aurbuild -ns --auto -o "-s" sdcv
- #安裝查東西
- -yes | pacman -S --needed surfraw
- #安裝本地搜索
- -yes | pacman -S --needed recoll
- #安裝看網頁
- -yes | pacman -S --needed flashplugin firefox firefox-i18n
- #安裝p2p的下載
- -yes | pacman -S --needed mldonkey
- #安裝多線程支持metalink的下載工具
- -yes | pacman -S --needed aria2
- #安裝解壓縮
- -yes | pacman -S --needed p7zip
- #安裝影片
- -yes | pacman -S --needed mplayer
- #安裝網路連鎖
- -yes | pacman -S --needed netcat
- #安裝開發腳本語言
- -yes | pacman -S --needed perl python ruby ipython
- -yes | pacman -S --needed bc expect xdialog plan9port gxmessage
- #安裝執行java .net
- -yes | pacman -S --needed jre mono
- #安裝版本控制系統
- -yes | pacman -S --needed cvs subversion git
- #安裝研究論文
- -yes | pacman -S --needed texlive-bin texlive-core texlive-langcjk texlive-fontsextra
- #安裝手冊語法加亮
- -yes | pacman -S --needed most
- #安裝本文行處理圖片(很多程序用到這個當圖形顯示的程序)
- -yes | pacman -S --needed imagemagick imagemagick-doc
- #安裝看圖
- -yes | pacman -S --needed gqview
- #安裝計算機
- -yes | pacman -S --needed octave gnuplot
- #安裝自動排程
- -yes | pacman -S --needed remind wyrd
- #安裝理財
- -yes | pacman -S --needed gnucash
- #安裝上ftp
- -yes | pacman -S --needed lftp
- #安裝上irc
- -yes | pacman -S --needed irssi
- #安裝上www
- -yes | pacman -S --needed w3m
- #安裝上mail
- # -yes | pacman -S --needed offlineimap msmtp mutt
- #安裝上im
- -yes | pacman -S --needed centerim
- #安裝上usenet
- -yes | pacman -S --needed tin
- #安裝上rsync
- -yes | pacman -S --needed rsync
- #安裝讀電子書(xpdf那包是CMap文件, 文本编码, 和其他各种配置信息)(指沒內含中文字的pdf)
- -yes | pacman -S --needed xpdf xpdf-chinese-simplified xpdf-chinese-traditional
- #安裝讀電子書(另一套pdf's rendering,poppler)
- -yes | pacman -S --needed poppler poppler-data apvlv evince kdegraphics-okular
- #安裝讀電子書(另一套pdf's rendering,acroread)
- -aurbuild -s --auto acroread
- #安裝abs
- -yes | pacman -S --needed abs
- #安裝包裝管理工具
- -yes | pacman -S --needed pacman-contrib
- #安裝abs的srcpac(目前不能用)
- -yes | pacman -S --needed srcpac
- #安裝查包
- -yes | pacman -S --needed pkgtools
- #安裝包裝語法分析
- -yes | pacman -S --needed namcap
- #安裝抽取tar.gz(fr的repo)
- -yes | pacman -S --needed repacman
- #安裝改善pacman(fr的repo)
- -yes | pacman -S --needed pacman-cage
- #安裝查模組
- -yes | pacman -S --needed hwdetect
- #安裝查硬碟
- -yes | pacman -S --needed hdparm
- #安裝查看系統吞吐量
- -yes | pacman -S --needed sysstat
- #安裝查看提供的服務器
- -yes | pacman -S --needed nmap
- #安裝查看系統資訊
- -yes | pacman -S --needed lshw
- #安裝查看溫度電壓資訊
- -yes | pacman -S --needed lm_sensors
- #安裝xfrun4
- -yes | pacman -S --needed xfce-utils
- #安裝顯示進度
- -yes | pacman -S --needed pv
- #暫時丟在這裡
- -yes | pacman -S --needed net-snmp
- -yes | aurbuild -ns --auto -o "-s" octave-forge
- #清除快取裡舊版的包
- -yes | pacman -Sc
- #安裝自己打得包的軟體,或者是別人打得
- syncrepo :
- #安裝有hinting的微軟雅黑
- -yes | pacman -U -f $(pkg)/ms-yahei-6.0-1-i686.pkg.tar.gz
- #安裝codecs
- -yes | pacman -U -f $(pkg)/all-20071007-1-i686.pkg.tar.gz
- #安裝字典
- -yes | pacman -U -f $(pkg)/stardict-langdao-ec-big5-2.4.2-1-i686.pkg.tar.gz
- -yes | pacman -U -f $(pkg)/stardict-langdao-ce-big5-2.4.2-1-i686.pkg.tar.gz
- # -yes | pacman -U -f $(pkg)/stardict-oxford-gb-formated-2.4.2-1-i686.pkg.tar.gz
- #安裝膠水語言的modules
- syncmodule :
- #下載最新的archlinux's 安裝影像檔
- getimg :
- echo -e "lcd ./img\ncd /iso/latest\nglob pget -c archlinux-*.*-core-i686.img" | lftp ftp://ftp.archlinux.org
复制代码 |
|