"xxadmin" user: No protocol specified 错误
2015-04-23 11:45
363 查看
1 查看DISPLAY是否设置:env| grep DISPLAY
如未设置则,export DISPLAY=192.168.0.9:0.0 (斜体字修改为自己的服务器的ip)
2 root用户执行 xhost +
3 切换到oracle用户安装即可
-------------------------------------
https://wiki.archlinux.org/index.php/Running_X_apps_as_root
kdesu (included with KDE)
gksu (included with GNOME)
bashrun (in community)
sudo (must be installed and properly configured with
sux (wrapper around su which will transfer your X credentials)
These are the preferred methods, because they automatically exit when the application exits, negating any security risks quite completely.
Temporarily allow root access
xhost
will temporarily allow root, or anyone to connect your X server. Likewise,
will disallow this function afterward.
Some users also use:
(Your X server must be configured to listen to TCP connections for
Permanently allow root access
Method 1: Add the line
to
Method 2: Globally in
Add the following to
This will permanently allow root to connect to a non-root user's X server.
Or, merely specify a particular app:
(to allow root to access kwrite, for instance.)
Category:
X Server
如未设置则,export DISPLAY=192.168.0.9:0.0 (斜体字修改为自己的服务器的ip)
2 root用户执行 xhost +
3 切换到oracle用户安装即可
-------------------------------------
https://wiki.archlinux.org/index.php/Running_X_apps_as_root
Running X apps as root
By default, and for security reasons, root will be unable to connect to a non-root user's X server. There are multiple ways of allowing root to do so, if it is necessary.The most secure methods
The most secure methods are simple. They include:kdesu (included with KDE)
$ kdesu name-of-app
gksu (included with GNOME)
$ gksu name-of-app
bashrun (in community)
$ bashrun --su name-of-app
sudo (must be installed and properly configured with
visudo)
$ sudo name-of-app
sux (wrapper around su which will transfer your X credentials)
$ sux root name-of-app
These are the preferred methods, because they automatically exit when the application exits, negating any security risks quite completely.
Alternate methods
These methods will allow root to connect to a non-root user's X server, but present varying levels of security risks, especially if you run ssh. If you are behind a firewall, you may consider them to be safe enough for your requirements.Temporarily allow root access
xhost
$ xhost +
will temporarily allow root, or anyone to connect your X server. Likewise,
$ xhost -
will disallow this function afterward.
Some users also use:
$ xhost + localhost
(Your X server must be configured to listen to TCP connections for
xhost + localhostto work).
Permanently allow root access
Method 1: Add the line
session optional pam_xauth.so
to
/etc/pam.d/suand
/etc/pam.d/su-l. Then switch to your root user using 'su' or 'su -'.
Method 2: Globally in
/etc/profile
Add the following to
/etc/profile
export XAUTHORITY=/home/non-root-usersname/.Xauthority
This will permanently allow root to connect to a non-root user's X server.
Or, merely specify a particular app:
export XAUTHORITY=/home/usersname/.Xauthority kwrite
(to allow root to access kwrite, for instance.)
Category:
X Server
相关文章推荐
- Xlib: connection to ":0.0" refused by server, Xlib: No protocol specified, Xlib: No protocol specifi
- SMTP Protocol Returned a Transient Error" 和"SMTP Protocol Returned a Permanent Error"错误
- Xlib: connection to ":0.0" refused by server, Xlib: No protocol specified, Xlib: No protocol specified 解决方法
- Cannot find protocol declaration for "XXDelegate" 找不到协议错误
- Delphi TMediaPlayer播放音乐出现"no MCI device open"的错误的解决方法;循环播放
- "fatal: protocol error: bad line length character: No s"原因
- "No provider for smtp"错误的处理
- 解决Ubuntu11.10提示的"no rxtxSerial in java.library.path"错误
- Undefined symbols for architecture i386: "_OBJC_CLASS_$_XX" 错误解决方法
- (转)cvsNT 2.5.03添加用户后出现"no such user"错误的解决方法
- ActiveReport使用心得(五):"No Report Specified"错误的可能原因(轉)
- "No provider for smtp"错误的处理
- rails出现No route matches [POST] "/user/register"错误
- 学习git遇到create to"c:/user/xxx/xxx/xx"错误
- "No previous prototype for function" warning警告错误解决
- #Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
- 虚拟机启动时出现"No permission to access this virtual machine. Configuration file: x:\xx\xxx.vmx."
- "No Report Specified"错误的可能…
- Delphi中TMediaPlayer播放音乐出现"no MCI device open"的错误的解决方法
- no argument specified with option "/LIBPATH:"错误的解决