deb http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse deb-src http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse deb http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted
#网易 Ubuntu 11.04 源(速度很快)
deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin
deb http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse deb-src http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse deb http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted deb-src http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted deb http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted deb http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted deb-src http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted deb http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted deb-src http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
#中国科技大学
deb http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ natty-backports restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse deb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
#北京理工大学
deb http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe deb http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
#兰州大学
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty main multiverse restricted universe deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe
#上海交通大学
deb http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
cd ~/.gnome2/nautilus-scriptssudo gedit open-terminal //此处可以任意命名
将下面代码拷贝进去,ctrl + s保存。
#!/bin/bash # # This script opens a gnome-terminal in the directory you select. # # Distributed under the terms of GNU GPL version 2 or later # # Install in ~/.gnome2/nautilus-scripts or ~/Nautilus/scripts # You need to be running Nautilus 1.0.3+ to use scripts.
# When a directory is selected, go there. Otherwise go to current # directory. If more than one directory is selected, show error. if [ -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then set $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS if [ $# -eq 1 ]; then destination="$1" # Go to file's directory if it's a file if [ ! -d "$destination" ]; then destination="`dirname "$destination"`" fi else zenity --error --title="Error - Open terminal here" \ --text="You can only select one directory." exit1 fi else destination="`echo "$NAUTILUS_SCRIPT_CURRENT_URI" | sed 's/^file:\/\///'`" fi
# It's only possible to go to local directories if [ -n "`echo "$destination" | grep '^[a-zA-Z0-9]\+:'`" ]; then zenity --error --title="Error - Open terminal here" \ --text="Only local directories can be used." exit1 fi