I repartitioned my Latitude e6430s laptop after removing Windows 10 and now gnome-terminal does not open. Nothing happens when I press the terminal icon from the icon tray or with Ctrl+Alt+Del when gnome-terminal is set as default using  $ sudo update-alternatives --config x-terminal-emulator There are 5 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).    Selection    Path                             Priority   Status ------------------------------------------------------------   0            /usr/bin/gnome-terminal.wrapper   40        auto mode * 1            /usr/bin/gnome-terminal.wrapper   40        manual mode   2            /usr/bin/koi8rxterm               20        manual mode   3            /usr/bin/lxterm                   30        manual mode   4            /usr/bin/uxterm                   20        manual mode   5            /usr/bin/xterm                    20        manual mode  Press &lt;enter&gt; to keep the current choice[*], or type selection number: 0   Xterm and Visual Studio terminal work.  I can open gnome-terminal from the file explorer by right clicking and opening folders in the terminal.  Reinstalled python3 and GNOME terminal.  Another thread said to use this to diagnose:  $ sudo apt-get build-dep gnome-terminal Reading package lists... Done E: You must put some 'source' URIs in your sources.list   After uncommenting the dev-src lines in my sources.list file I get this message, but the GNOME terminal still doesn't open.  $ sudo apt-get build-dep gnome-terminal Reading package lists... Done Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   Here are the logs:  $ gnome-terminal Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in &lt;module&gt;     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &lt;module&gt;     from . import _gi ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py) Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in &lt;module&gt;     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in &lt;module&gt;     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &lt;module&gt;     from . import _gi ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)   $ ls -l /usr/bin/python3 lrwxrwxrwx 1 root root 25 Sep 19 19:08 /usr/bin/python3 -&gt; /etc/alternatives/python3
12346
I just tried to install python 3.6 on my Ubuntu 16.04 system, and now I can't run the terminal from the launcher or from Ctrl + Alt + T. I tried to run gnome-terminal from XTerm and got the following message:  Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in &lt;module&gt;     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &lt;module&gt;     from . import _gi ImportError: cannot import name '_gi' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in &lt;module&gt;     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in &lt;module&gt;     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &lt;module&gt;     from . import _gi ImportError: cannot import name '_gi'   How can I fix this error?  It should also be noted that:   My gnome-terminal file is now a python script. The gnome-terminal.real file will open the terminal as expected. python3.5 gnome-terminal will open the terminal as expected.
68051
I have noticed that if I press  F10 when on a terminal, Ubuntu or the terminal opens the File Menu.  Is there any way to unbind this?   I don't see any entries with F10 on System settings -> Keyboard shortcuts  I want to use function keys in Emacs to debug my code (e.g. F10 triggering gud-step, etc.) when running Emacs within a terminal ( emacs -nw) but at the moment the terminal seems to be capturing my keys.  Update 1:  If I go to Edit -> Keyboard Shortcuts I can disable the option "Enable the menu short key (F10 by default)".  So I disabled it. However , the key F10 is still bound to the menu!!  Is there a way to unbind this key other than through the Edit-> Keyboard shortcuts menu? Perhaps there is a configuration text file under etc where I can activate/deactivate keyboard shortcuts?  Update 2:  I also followed all the tricks  and they didn't work. F10 still behaves as an accelerator in the terminal.   This is all on Ubuntu 11.10  Update 3:  Following the suggestions in  I also tried:  3.1 Adding the following code to  ~/.gtkrc-2.0  binding "NoKeyboardNavigation" {         unbind "&lt;shift&gt;F10" }  class * binding "NoKeyboardNavigation"   3.2 Adding the following code to ~/.config/gtk-3.0/gtk.css  @binding-set NoKeyboardNavigation {     unbind "&lt;shift&gt;F10" }  * {     gtk-key-bindings: NoKeyboardNavigation }   and the problem still persists.
89507
I had a nice GUI for changing startup applications (after logging in) on GNOME 2. How can I start that application on GNOME 3?   Where can I download it? What is the package name? What command is used to launch it? I have Pidgin still launching on start, but I have converted back to Empathy, so I would like to know how I can remove Pidgin and start Empathy instead.
1192
In Ubuntu 20.04, on the desktop, there is a number of actions I wish I could do, such as, by order of importance :  use keyboard shortcuts such as select all, copy / paste. use drag &amp; drop with icons deactivate the &quot;mouse over&quot; highlight, and restrict the clicking area to only the icon, not the surrounding square  To put it simply, I'd like to have the exact same features as offered by the desktop of Ubuntu 18.04 (probably related to a specific version of GNOME, and not Ubuntu itself). Am I missing something obvious here? I actually see no reason why those actions are removed or deactivated on the desktop, since they all work in any Nautilus window.
77081
I downloaded the eclipse from its site. And extracted in home folder. For the first time when I opened it, it worked fine. Then I locked it to launcher. Now it's not starting when I click on launcher icon in eclipse but it starts when I start it from the folder where I extracted it. Please tell some way to keep it in launchcer and open it from t here only.  Thanks.  [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Java - SnapdealOMS/src/main/java/com/snapdeal/oms/admin/web/controller/ReloadCacheController.java - Eclipse  Icon=eclipse.png Path=/home/nakulkumar/Downloads/eclipse Exec=/usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -data /home/nakulkumar/Snapdeal_workspace -os linux -ws gtk -arch x86_64 -showsplash /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925-0400/splash.bmp -launcher /home/nakulkumar/Downloads/eclipse/eclipse -name Eclipse --launcher.library /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so -startup /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendVmargs -exitdata 34000f -product org.eclipse.epp.package.java.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar StartupNotify=false StartupWMClass=Eclipse OnlyShowIn=Unity; X-UnityGenerated=true
63329
I just upgraded my System to 14.04.  After restarting when the update was finished I did not see any menu bars or panels.   Right clicking and opening a terminal via ctrl+alt+t is not possible. However I can access the terminal via alt+F1. I already tried out installing the unity-desktop again but it didn't change anything .  Do you have any suggestions?
113030
On linux distributions one can simply press the following keys in order to access the shell:   Ctrl+Alt+F2 Ctrl+Alt+F7 to exit and return to the GUI.   Is there a similar capability in OS X that would let me access a terminal when my interactive desktop session is no longer responsive?  If anyone wants to know why, read below  I have a reason for needing this, and mainly because I killed the wrong process id, which in term ended the launchd daemon.  As now I couldn't run Terminal.app, or type in my existing shells I needed to gain access of the main shell (my session is running in) which was active because Spotify still worked!  In order to start-up that daemon again to rectify my problem - annoyingly I had to restart which for Unix operating system is ridiculous - ONLY time a linux/unix system need be rebooted is after kernel updates are installed, otherwise it doesn't need to be.
38316
A while ago I upgraded from Ubuntu 17.04 to Ubuntu 17.10 and everything is working fine except for the fact that the icon in the window title bar of my Terminal seems to be stretched out to some ridiculous size.    This only seems to happen in the Terminal window. The Nautilus icon is completely fine.    The problem seems to go away if I login into an Xorg session instead of a Wayland one. I've looked around and didn't find any immediate solution to this. Any help would be greatly appreciated.
9256
Keyboard shortcuts in gnome-terminal (Ctrl+Tab and Ctrl+Shift+Tab) in 12.04 don't seem to be working. Is there a setting that I dont know of?
119675
I am using Ubuntu 16.04 and Nautilus 3.14.3 (default version).  There is an open terminal context menu when right- clicking on the desktop. It opens the terminal with ~ as working directory, but I'd like it to open in ~/Desktop.  I think there was a dconf option to change this behavior, but I cannot find anything related under /org/gnome/nautilus.
21857
I faced the problem when terminal do not start. I have look at related issue when locale do not supported. I have tried to update it, regenerate it - nothing help. Finally I have found next error message in /var/log/syslog  Dec 31 00:45:43 kes-X751SA console-kit-daemon[2215]: (process:3545): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Dec 31 00:45:48 kes-X751SA org.gnome.Terminal[2464]: Locale not supported. Dec 31 00:45:57 kes-X751SA console-kit-daemon[2215]: (process:3562): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed   Here is not clear. If I have wrong locale which locale is not supported?? How to check which locales are supported? How to apply supported locale?
111721
Possible Duplicate:          I upgraded from Ubuntu 11.10 (with Gnome 3.2 I think), to Ubuntu 12.04 with Gnome 3.4.1, and my custom shortcuts have stopped working.  Opening up the All Settings -> Keyboard -> Shortcuts, I can see that my shortcuts are still there.  All of the shortcuts that I didn't change are working, and my shortcuts in the custom section are working (eg Ctrl+Alt+G to open gedit), its just that the shortcuts I had customised before the upgrade no longer work.  Under Launchers, I had changed "Launch Terminal" to Ctrl+Alt+T, and under Navigation I had changed move to workspace above/below to Shift+Ctrl+Up/Down.   Investigating further, it looks like the default shortcuts for these actions work (Ctrl+Alt+Up/ Down moves me up and down workspaces), so I'm guessing that there is some discrepancy between what I am seeing on the Keyboard Settings and what my computer is reading from.  Any help would be appreciated.
553
I just installed 11.10 and found that once I minimize the terminal window, I can't bring it back. All other Windows are getting minimized to the Unity launcher and I can relaunch them from there. If I go to the launcher and click on terminal a new terminal session is created and the old one is lost completely. This is the first time I am facing such a problem and all my previous installations of 11. 10 didn't throw up any such behaviors. Any suggestions?
103350
What command(s) can I use in the terminal that's equivalent to the PrtSc (Print Screen) button?  I am running Ubuntu GNOME.
66418
The problem I had was to get the .bashrc and .bash_profile and/or .profile scripts to execute by default when using the native Gnome terminal application.  I found a number of references which told me in order to get these to "run" you needed to have an interactive session with login but none of the threads I found explained how to do this with the native terminal application.  So my question is how do you get the .bashrc and .bash_profile scripts to run on Centos every time you use the Terminal Application on the Gnome desktop?
114964
I am attempting to run nautilus as root but when I run "sudo nautilus" from the terminal, I get the following error:     error: XDG_RUNTIME_DIR not set in the environment.      (nautilus:9341): Gtk-WARNING **: cannot open display:   The issue does not occur when I attempt to run nautilus as non-root. I am using ubuntu 14.04. Does anyone know how I can fix this?
33969
I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should execute this command "in a script that starts with your X session":  xinput set-int-prop "3M 3M USB Touchscreen - EX II" "Evdev Axis Calibration" 32 14410 2146 14574 2115  So I tried ~/.xinitrc, ~/.xsession and ~/.xsessionrc, all of which did not exist. So I created them and the exact content was this command. The first two files made my logins fail (after I login, I fall back to the login screen).  With the last file, the calibration was functional, but only after logging in...  I need that command to run before the login dialog shows up. I thought of adding this command to the end of /etc/X11/xinit/xinitrc with no result (nothing changed). Also, I tried to add it to the end of /etc/X11/Xsession.d/40x11-common_xsessionrc (after inspecting some of the files), but the result was exactly the same as adding it to ~/.xsessionrc.  How can I make this command run before the login screen shows (is this before the window manager starts, or before the X session starts)?  (I am running Kubuntu with the default window manager, if that matters)  UPDATE As I am using Kubuntu, my display manager is kdm. As the accepted answer suggests, I edited the file /etc/kde4/kdm/Xsetup, and as mentioned  I added the command before the command that is there by default. And it works like a charm :)