2

How can I copy-paste following command:

rm -r ~/.gconf/apps/gnome-terminal
gconftools --recursive-unset /apps/gnome-terminal

into a virtual-terminal?

Pabi
  • 7,401
  • 3
  • 40
  • 49
user124456
  • 41
  • 6
  • 1
    Why can't you use a terminal window in your desktop environment? – guntbert Jul 28 '14 at 17:01
  • I cannot use the terminal normally,because after a command and my password the output of the terminal is" sudo: apt-get: command not found". I have tried to remove and re-install the terminal using synaptic package manager,but no change in the output. Hence I want to try the abovementioned method. – user124456 Jul 29 '14 at 16:05
  • So you tried to reinstall gnome-terminal and something went wrong , right ? There's also xterm. Ubuntu comes with two GUI terminal emulators by default – Sergiy Kolodyazhnyy Jun 18 '15 at 15:53
  • And you can use Shift + Insert to paste copied stuff. But copy line by line, because if you try to put two commands together, it wont work. OR you can do. rm -r ~/.gconf/apps/gnome-terminal; gconftools --recursive-unset /apps/gnome-terminal As one line. See the semicolon ? – Sergiy Kolodyazhnyy Jun 18 '15 at 15:55

2 Answers2

1

If you can't use the standard terminal:

...I cannot use the terminal normally ...

start your installed packet manager Synaptic and install an other terminal xterm.

Use Alt+F2 and type xterm and Return

Now you can copy and paste:

  • mark the command with the left mouse button
  • paste the command with the middle mouse button

Alternatively write a short script and start the script in the virtual terminal:

  • Start gedit and add the lines below:

    #!/bin/bash
    rm -r ~/.gconf/apps/gnome-terminal
    gconftools --recursive-unset /apps/gnome-terminal
    
  • Save the file as foo in your home folder and switch to tty.

  • Login and make the script executable

    chmod +x ~/foo
    
  • Start the script

    ./foo
    
A.B.
  • 90,397
0

As far as I know, there is no way to access a desktop clipboard from a virtual terminal.

The easiest thing to do in this case is to save and run these commands as a script.

Brian Z
  • 663
  • 6
  • 17