Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- szyzln
- 帖子: 910
- 注册时间: 2008-10-31 15:28
- 来自: 中国上海
- 联系:
Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
以前用Ubuntu8.04时使用终端方便多了。不知道为什么Ubuntu9.04将"终端"从桌面右键菜单取消了。
哪位高手透露下如何添加上去,小弟不胜感激。
哪位高手透露下如何添加上去,小弟不胜感激。
上次由 szyzln 在 2009-05-21 8:13,总共编辑 2 次。
家乡:湖南张家界
- wowoto
- 帖子: 3050
- 注册时间: 2009-04-11 12:17
- 系统: windows7
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单
sudo apt-get install nautilus-open-terminal
没安装的话,怎么会有呢?804 似乎也没有呢..
没安装的话,怎么会有呢?804 似乎也没有呢..
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
-
- 帖子: 2
- 注册时间: 2009-05-15 9:27
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
我刚装了个9.04,找了半天也不知道怎么打开终端,只会用ctrl+alt+f(1-6),在网上找了半天,最终结论是有两种方式在右键添加“打开终端”,第一种方式楼上的大哥已经说了,还有一种是(以下内容来自忘了叫什么的网站,版权归那个忘了叫什么的作者所有):
进入主目录的.gnome2/nautilus-scripts目录。新建一个文件,文件名任意(这个文件名会显示在右键菜单里,最好是通俗易懂的,比如“打开终端”或“open-terminal”),文件内容如下:
#!/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."
exit 1
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."
exit 1
fi
cd "$destination"
exec x-terminal-emulator
添加完后,把此文件加上可执行的权限chmod +x 文件。
第二种方法有很大的扩展性,如果能自己写脚本,可以实现很多自定义的功能,比如发送到邮件/修改文件权限等等实用的功能。这两种方法是可以并存的,如果不嫌麻烦的话,推荐两个都安装,实现并存。
进入主目录的.gnome2/nautilus-scripts目录。新建一个文件,文件名任意(这个文件名会显示在右键菜单里,最好是通俗易懂的,比如“打开终端”或“open-terminal”),文件内容如下:
#!/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."
exit 1
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."
exit 1
fi
cd "$destination"
exec x-terminal-emulator
添加完后,把此文件加上可执行的权限chmod +x 文件。
第二种方法有很大的扩展性,如果能自己写脚本,可以实现很多自定义的功能,比如发送到邮件/修改文件权限等等实用的功能。这两种方法是可以并存的,如果不嫌麻烦的话,推荐两个都安装,实现并存。
- wowoto
- 帖子: 3050
- 注册时间: 2009-04-11 12:17
- 系统: windows7
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
我刚装了个9.04,找了半天也不知道怎么打开终端,+++++++不是吧?我用904一个多月都有用终端的...附件里面就有,即使是右键终端也能用呀?
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
- 速腾1994
- 论坛版主
- 帖子: 17379
- 注册时间: 2008-11-01 20:43
- 系统: Arch+gnome
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
是不是 右键-在终端中打开?
一直不知道这个有什么用,sudo nautilus 很好,很强大!
一直不知道这个有什么用,sudo nautilus 很好,很强大!
-
- 帖子: 1
- 注册时间: 2009-07-02 3:29
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
你直接在 “应用程序”--“附件”---“终端” 在“终端此处点击右键 将它发送到面板”,这样也就很方便了,不一定非要搞到 桌面--右键
-
- 帖子: 47
- 注册时间: 2008-10-26 8:58
-
- 帖子: 43
- 注册时间: 2009-11-07 21:25
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
脚本很强大啊。。。。
-
- 帖子: 645
- 注册时间: 2009-08-01 9:50
- 来自: 泰安人在青岛
-
- 帖子: 3
- 注册时间: 2009-06-02 22:37
Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]
新手能不能说详细点好