命令:xrandr
当该命令不带参数时:
xrandr 可以查看当前屏幕分辨率和刷新频率
当该命令带参数时,详细用法如下:
xrandr --output VGA --same-as LVDS --auto 打开外接显示器(最高分辨率),与笔记本液晶屏幕显示同样内容(克隆)
xrandr --output VGA --same-as LVDS --mode 1024x768 打开外接显示器(分辨率为1024x768),与笔记本液晶屏幕显示同样内容(克隆)
xrandr --output VGA --right-of LVDS --auto 打开外接显示器(最高分辨率),设置为右侧扩展屏幕
xrandr --output VGA --off 关闭外接显示器
xrandr --output VGA --auto --output LVDS --off 打开外接显示器,同时关闭笔记本液晶屏幕(只用外接显示器工作)
xrandr --output VGA --off --output LVDS --auto 关闭外接显示器,同时打开笔记本液晶屏幕 (只用笔记本液晶屏)
(最后两种情况请小心操作,不要误把两个屏幕都关掉了....)
添加Windows 7启动:sudo gedit /boot/grub/menu.lst
title Windows Seven
root (hd0,0)
makeactive
chainloader +1
更改计算机名称:
sudo gedit /etc/hosts
sudo gedit /etc/hostname
reboot
安装与配置vim:sudo apt-get install vim-gtk vim-doc cscope
更新软件源:sudo gedit /etc/apt/sources.list
#搜弧源
deb http://mirrors.sohu.com/ubuntu/ jaunty main restricted
deb-src http://mirrors.sohu.com/ubuntu/ jaunty main restricted
deb http://mirrors.sohu.com/ubuntu/ jaunty-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ jaunty-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ jaunty universe
deb-src http://mirrors.sohu.com/ubuntu/ jaunty universe
deb http://mirrors.sohu.com/ubuntu/ jaunty-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ jaunty-updates universe
deb http://mirrors.sohu.com/ubuntu/ jaunty multiverse
deb-src http://mirrors.sohu.com/ubuntu/ jaunty multiverse
deb http://mirrors.sohu.com/ubuntu/ jaunty-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ jaunty-updates multiver
#网易源
deb http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
#台湾官方源
deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
命令:xrandr
当该命令不带参数时:
xrandr 可以查看当前屏幕分辨率和刷新频率
当该命令带参数时,详细用法如下:
xrandr --output VGA --same-as LVDS --auto 打开外接显示器(最高分辨率),与笔记本液晶屏幕显示同样内容(克隆)
xrandr --output VGA --same-as LVDS --mode 1024x768 打开外接显示器(分辨率为1024x768),与笔记本液晶屏幕显示同样内容(克隆)
xrandr --output VGA --right-of LVDS --auto 打开外接显示器(最高分辨率),设置为右侧扩展屏幕
xrandr --output VGA --off 关闭外接显示器
xrandr --output VGA --auto --output LVDS --off 打开外接显示器,同时关闭笔记本液晶屏幕(只用外接显示器工作)
xrandr --output VGA --off --output LVDS --auto 关闭外接显示器,同时打开笔记本液晶屏幕 (只用笔记本液晶屏)
(最后两种情况请小心操作,不要误把两个屏幕都关掉了....)
添加Windows 7启动 <适用于Windows 7 下硬盘安装ubuntu 9.04>
在终端中输入命令:sudo gedit /boot/grub/menu.lst,然后将以下内容添加进去:
title Windows Seven
root (hd0,0)
makeactive
chainloader +1
更改计算机名称:
sudo gedit /etc/hosts
sudo gedit /etc/hostnamereboot
安装与配置vim:
sudo apt-get install vim-gtk vim-doc cscope
更新软件源:
sudo gedit /etc/apt/sources.list
#搜弧源
deb http://mirrors.sohu.com/ubuntu/ jaunty main restricted
deb-src http://mirrors.sohu.com/ubuntu/ jaunty main restricted
deb http://mirrors.sohu.com/ubuntu/ jaunty-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ jaunty-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ jaunty universe
deb-src http://mirrors.sohu.com/ubuntu/ jaunty universe
deb http://mirrors.sohu.com/ubuntu/ jaunty-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ jaunty-updates universe
deb http://mirrors.sohu.com/ubuntu/ jaunty multiverse
deb-src http://mirrors.sohu.com/ubuntu/ jaunty multiverse
deb http://mirrors.sohu.com/ubuntu/ jaunty-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ jaunty-updates multiver
#网易源
deb http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
#台湾官方源
deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse