Ubuntu查看版本:lsb_release -a
Ubuntu版本更新
sudo apt-get install update-manager-core
- If and only if upgrading from an LTS release, then edit /etc/update-manager/release-upgrades and set Prompt=lts
- do-release-upgrade 或者试试do-release-upgrade -d
安装 subversion
sudo apt-get install subversion subversion-tools
创建一个新的储存库:
svnadmin create /svn/repository
svnserve -d -r /svn/repository
匿名不能使用:
修改svnserve.conf 添加 anon-access = none
安装 tomcat6
apt-get install sun-java6-jdk aptinstall tomcat6 tomcat6-admin tomcat6-webapps /etc/init.d/tomcat6 restart 安装更新 sudo apt-get install unattended-upgrades sudo apt-get update && sudo apt-get upgrade 更新提醒 sudo apt-get install apticron
Once the package is installed edit /etc/apticron/apticron.conf
, to set the email address and other options:
EMAIL="root@example.com" 修改时区 dpkg-reconfigure tzdata 通过网络更新时间 ntpdate ntp.ubuntu.com 禁用屏保
/etc/kbd/config
BLANK_TIME=0
BLANK_DPMS=off
设置root密码
sudo passwd root
禁用root用户:sudo passwd -l root
Ubuntu添加删除软件源
sudo add-apt-repository ppa:user/ppa-name添加源
sudo apt-get update 从源更新列表
sudo add-apt-repository --remove ppa:user/ppa-name 删除源
apt-get install software-name 安装
apt-cache search software-name 搜索
设置网络 sudo nano /etc/network/interfaces auto lo eth0iface lo inet loopbackiface eth0 inet staticaddress xxx.xxx.xxx.xxx(enter your ip here)netmask xxx.xxx.xxx.xxxgateway xxx.xxx.xxx.xxx(enter gateway ip here) 设置完后重启sudo /etc/init.d/networking restart 安装ssh sudo apt-get install openssh-server 启动service sshd start 管理员操作时不提示输入密码
sudo visudo添加
用户名 ALL=NOPASSWD: ALL
安装Xfce sudo apt-get update && sudo apt-get install xubuntu-desktop
How To: Fix “Unknown keyword in configuration file.” Ubuntu USB Boot