"Open In Terminal" action in Nautilus in Ubuntu 14.04? [duplicate]
Solution 1:
You have to install the nautilus-open-terminal package from the universe repositories for Ubuntu versions up to Ubuntu 15.04:
sudo apt-get install nautilus-open-terminal
If you want to install it with apturl, use this URL: apt://nautilus-open-terminal
Then:
nautilus -q
In order to restart Nautilus
In Ubuntu 15.10, the functionality is already included in nautilus
!
Solution 2:
nautilus-open-terminal
and nautilus-actions
packages are available in Universe repository of Ubuntu 14.04. So run the below commands to enable universe repository and also to install above mentioned packages.
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install nautilus-open-terminal
sudo apt-get install nautilus-actions
Finally run nautilus -q
command to quit nautilus.Now you can be able to see Open in terminal
option on right-clicking.
Solution 3:
Here is my script to open terminal in the current directory,
I built my own after the open-terminal plugin stopped working for me
#!/bin/bash
##################################
# A nautilus script to open gnome-terminal in the current directory
# place in ~/.gnome2/nautilus-scripts
##################################
# Remove file:// from CURRENT_URI
gnome-terminal --working-directory=`echo "$NAUTILUS_SCRIPT_CURRENT_URI" | cut -c 8-`
PS: Here is some bonus info
Assigning a shortcut to the script
- Add executable script to ~/.gnome2/nautilus-scripts
- Wait some time - nautilus regenerates accels file
Edit file ~/.gnome2/accels/nautilus
Find line similar to this one:
; (gtk_accel_path "<Actions>/ScriptsGroup/script_file:\\s\\s\\shome\\sgautam\\s.gnome2\\snautilus-scripts\\sopen-terminal" "")
- Remove comment (semicolon) and specify shortcut like this:
(gtk_accel_path "<Actions>/ScriptsGroup/script_file:\\s\\s\\shome\\sgautam\\s.gnome2\\snautilus-scripts\\sopen-terminal" "<Primary><Shift>t")
- Save file.
- Logout - login.
Solution 4:
Just use:
sudo apt-get install nautilus-extension-gnome-terminal
and Logout/Login or reboot.
Solution 5:
I have just installed Ubuntu 14.04 Desktop edition today 07-18-2014, and all I had to do to get the command line option in Nautilus was the following in a terminal:
sudo apt-get install nautilus-open-terminal
nautilus -q