Skip to main content

Using Sublime Text or gedit when logging as User

For me I used xhost + and it solved the problem.
You can use it when you are working in a  remote instance and you wanna use gedit.
By default, and for security reasons, the only user that interacts with X-server is the logged-in user. Meaning, You can not initiate a connection to x-server as a different user or in your case as root, unless you have overridden the default setting to allow different users/hosts to connect to x-server. So the error message you are getting is related to x-server since any other user can't connect to it. In order to get around it, you have various fixes you can apply. What I normally do when ever I need to run an X-app as root is as follows.
  • From normal user terminal, I run xhost + to grant access to all user temporarily
  • Then I log in as root from a different terminal and execute the X-app ie gedit tester.php
To make it permanent (which I don't suggest), edit /etc/profile and add the following line:
export XAUTHORITY=/root/.Xauthority

Comments

Popular posts from this blog

NOCOPY Parameter Hint in PL/SQL

Before we get to understanding the NOCOPY parameter hint in PL/SQL, it would help to first look at PL/SQL parameter modes and the ways in which they pass values in and out of a subprogram. PL/SQL subprograms have three parameter modes: IN parameter mode is used to send values into the subprogram from the calling program. An IN parameter can only be read, its value cannot be modified inside the subprogram. OUT parameter mode is used to return values from the subprogram to the calling program. IN OUT parameter mode is a hybrid of IN and OUT. It is used to send values into the subprogram, and its value can be modified within the subprogram. On exit, the subprogram returns the updated value of the IN OUT parameter to the calling program.  Continue reading at Source :  NOCOPY Parameter Hint in PL/SQL

Paradoxes

1 What runs but has no legs? Your nose a river a comb your word a bottle ________________________________________ 2 What runs but has no legs? A tap a river a comb your word a bottle ________________________________________ 3 What can stay in the same corner but, at the same time, travel around the world? A tap a stamp a comb your word a bottle ________________________________________ 4 What has a mouth but does not speak? A towel a river a comb a book a bottle ________________________________________ 5 What is black when it is clean and white when it is dirty? A tap a stamp a blackboard your word a bottle ________________________________________ 6 What has a bed but does not sleep? A towel a river a comb a book a bottle ________________________________________ 7 What has teeth but cannot bite? a towel a river a comb a book a bottle ________________________________________ 8 What has a neck but no head? a towel a river a comb your word a bo