Difference between revisions of "Useful ubuntu commands"

From Applied Optics Wiki
Jump to: navigation, search
(Created page with "This is quick list of useful ubuntu related commands to fix certain problems ===Display issues=== Getting <code> Gtk-WARNING **: cannot open display: </code> Enter <code>DI...")
 
Line 5: Line 5:
 
Getting <code> Gtk-WARNING **: cannot open display: </code>
 
Getting <code> Gtk-WARNING **: cannot open display: </code>
  
Enter <code>DISPLAY=:0.0 ; export DISPLAY; xhost +</code>
+
Enter <code>xhost +</code>
 +
 
 +
Happens when root programs (e.g. software managers) are trying to use your session
 +
 
 +
===x2go on Ubuntu Mate===
 +
 
 +
Big problems here, but it does work with fiddling (Jun 2017) - not sure how much of this is require;
 +
 
 +
* First add this (and create) to your ~/.profile
 +
<pre>
 +
export GSETTINGS_SCHEMA_DIR=/usr/share/gconf/schemas/:/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
 +
export XDG_DATA_DIRS=/usr/share/gconf/schemas/:/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
 +
</pre>
 +
 
 +
* I then had to create a new custom session for me to log in locally and use Mate for x2go - I did this by creating a .xinitrc file, linking to .xsessions and creating a new custom file in xsessions folder

Revision as of 11:53, 1 June 2017

This is quick list of useful ubuntu related commands to fix certain problems

Display issues

Getting Gtk-WARNING **: cannot open display:

Enter xhost +

Happens when root programs (e.g. software managers) are trying to use your session

x2go on Ubuntu Mate

Big problems here, but it does work with fiddling (Jun 2017) - not sure how much of this is require;

  • First add this (and create) to your ~/.profile
export GSETTINGS_SCHEMA_DIR=/usr/share/gconf/schemas/:/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop 
export XDG_DATA_DIRS=/usr/share/gconf/schemas/:/usr/share/mate:/usr/share/mate:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
  • I then had to create a new custom session for me to log in locally and use Mate for x2go - I did this by creating a .xinitrc file, linking to .xsessions and creating a new custom file in xsessions folder