Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
szyzln
帖子: 910
注册时间: 2008-10-31 15:28
来自: 中国上海
联系:

Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#1

帖子 szyzln » 2009-05-20 18:26

以前用Ubuntu8.04时使用终端方便多了。不知道为什么Ubuntu9.04将"终端"从桌面右键菜单取消了。
哪位高手透露下如何添加上去,小弟不胜感激。
上次由 szyzln 在 2009-05-21 8:13,总共编辑 2 次。
家乡:湖南张家界
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单

#2

帖子 wowoto » 2009-05-20 18:26

sudo apt-get install nautilus-open-terminal

没安装的话,怎么会有呢?804 似乎也没有呢..
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
wuhongyu
帖子: 2
注册时间: 2009-05-15 9:27

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#3

帖子 wuhongyu » 2009-05-21 13:29

我刚装了个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 文件。

第二种方法有很大的扩展性,如果能自己写脚本,可以实现很多自定义的功能,比如发送到邮件/修改文件权限等等实用的功能。这两种方法是可以并存的,如果不嫌麻烦的话,推荐两个都安装,实现并存。
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#4

帖子 wowoto » 2009-05-21 13:31

我刚装了个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如何将"终端"加入到桌面右键菜单[已解决]

#5

帖子 速腾1994 » 2009-05-21 14:13

是不是 右键-在终端中打开?
一直不知道这个有什么用,sudo nautilus 很好,很强大! :em04
HEIaA
帖子: 1
注册时间: 2009-07-02 3:29

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#6

帖子 HEIaA » 2009-07-04 23:47

你直接在 “应用程序”--“附件”---“终端” 在“终端此处点击右键 将它发送到面板”,这样也就很方便了,不一定非要搞到 桌面--右键 :em01
行走天下
帖子: 47
注册时间: 2008-10-26 8:58

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#7

帖子 行走天下 » 2009-07-06 10:31

学习了,谢谢!
fp862
帖子: 43
注册时间: 2009-11-07 21:25

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#8

帖子 fp862 » 2009-11-11 0:02

脚本很强大啊。。。。
人到暮年
帖子: 645
注册时间: 2009-08-01 9:50
来自: 泰安人在青岛

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#9

帖子 人到暮年 » 2009-11-11 9:25

学习一下
不能养成臭毛病.
470012521
帖子: 3
注册时间: 2009-06-02 22:37

Re: Ubuntu9.04如何将"终端"加入到桌面右键菜单[已解决]

#10

帖子 470012521 » 2011-04-05 13:35

新手能不能说详细点好
回复