全部博文(56)
分类: LINUX
2012-01-13 17:40:16
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc
更新软件源
sudo apt-get update && sudo apt-get upgrade
系统清理
apt-get install下载的软件放在/var/cache/apt/archives/下
sudo dpkg -i *.deb
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
安装ubuntu-restricted-extras
sudo apt-get install ubuntu-restricted-extras
安装ssh
sudo apt-get install openssh-server openssh-client
安装samba
sudo apt-get install samba
sudo apt-get install smbfs smbclient
sudo vim /etc/samba/smb.conf
#======================= Global Settings =======================
[global]
workgroup = workgroup
; server string = samba 3.5.8
username map = /etc/samba/smbusers
security = user
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
[root directory]
path = /home/cheney
writeable = yes
; browseable = yes
valid users = cheney
sudo smbpasswd –a cheney
/etc/init.d/smbd restart
安装NFSsudo apt-get install nfs-kernel-server
修改启动次序sudo vim /boot/grub/grub.cfg
修改hostnamesudo vim /etc/hostname
修改windows启动次序电脑属性-》高级系统属性-》高级-》启动和故障恢复