Home » Server Options » RAC & Failsafe » showing linux GUI applications using xshell from windows (10g clusterware linux redhat 4)
showing linux GUI applications using xshell from windows [message #430847] Thu, 12 November 2009 09:04 Go to next message
samiraly
Messages: 48
Registered: June 2009
Member

Hi
iam connected remotly to linux server using xshell (ssh)
and i am trying to confegure the OCFS2 using ocfs2console application which supposed to be GUI application , i got the following error
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r:unconfined_t
[root@rac1 ~]# ocfs2console
ERROR: ocfs2console needs an X11 display.
Make sure a proper setup for your display environment exists.

[root@rac1 ~]# 


the quistion is "is Xshell able to show GUI linux applications ?"
if yes how to acheeve this goal ?, if no what program other than xshell can be use for this purpose?
thanks
Re: showing linux GUI applications using xshell from windows [message #430871 is a reply to message #430847] Thu, 12 November 2009 13:32 Go to previous messageGo to next message
BlackSwan
Messages: 22837
Registered: January 2009
Senior Member
ssh -X Enables X11 forwarding.

post results from following

env | sort
Re: showing linux GUI applications using xshell from windows [message #431005 is a reply to message #430847] Fri, 13 November 2009 11:11 Go to previous messageGo to next message
samiraly
Messages: 48
Registered: June 2009
Member

Hi
here is output from the host itself

ot@rac1 ~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r:unconfined_t
[root@rac1 ~]# env | sort
_=/bin/env
COLORTERM=gnome-terminal
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bMVU4q8TKn
DESKTOP_SESSION=default
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
GDMSESSION=default
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-H4vFlM/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
HISTSIZE=1000
HOME=/root
HOSTNAME=rac1
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
PWD=/root
SESSION_MANAGER=local/rac1:/tmp/.ICE-unix/4884
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=4942
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-CHemHM4884/agent.4884
TERM=xterm
USER=root
WINDOWID=31457359
XAUTHORITY=/root/.Xauthority
[root@rac1 ~]#
Re: showing linux GUI applications using xshell from windows [message #431049 is a reply to message #431005] Fri, 13 November 2009 17:40 Go to previous messageGo to next message
BlackSwan
Messages: 22837
Registered: January 2009
Senior Member
ORACLE_HOME is/was not set.
PATH did not include $ORACLE_HOME/bin
Re: showing linux GUI applications using xshell from windows [message #431053 is a reply to message #430847] Sat, 14 November 2009 00:41 Go to previous messageGo to next message
samiraly
Messages: 48
Registered: June 2009
Member

Hi
ORACLE_HOME not defined because i was using root user not oracle user , here is output as oracle user
CLASSPATH=/u01/app/oracle/product/10.2.0/db_1/JRE:/u01/app/oracle/product/10.2.0/db_1/jlib:/u01/app/oracle/product/10.2.0/db_1/rdbms/jlib:/u01/app/oracle/product/10.2.0/db_1/network/jlib
COLORTERM=gnome-terminal
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-pXvIPmI9xJ
DESKTOP_SESSION=default
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
GDMSESSION=default
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-LOh34F/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/u01/app/oracle/.gtkrc-1.2-gnome2
HISTSIZE=1000
HOME=/u01/app/oracle
HOSTNAME=rac1
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_PATH=/u01/app/oracle/common/oracle/sql:.:/u01/app/oracle/product/10.2.0/db_1/rdbms/admin
ORACLE_SID=orcl1
ORACLE_TERM=xterm
ORA_CRS_HOME=/u01/app/oracle/product/crs
ORA_NLS10=/u01/app/oracle/product/10.2.0/db_1/nls/data
PATH=.:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/u01/app/oracle/bin:/u01/app/oracle/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/u01/app/oracle/common/oracle/bin
PWD=/u01/app/oracle
SESSION_MANAGER=local/rac1:/tmp/.ICE-unix/5972
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=6024
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-spkArH5972/agent.5972
TEMP=/tmp
TERM=xterm
THREADS_FLAG=native
TNS_ADMIN=/u01/app/oracle/product/10.2.0/db_1/network/admin
USERNAME=oracle
USER=oracle
_=/usr/bin/env
WINDOWID=37748815
XAUTHORITY=/u01/app/oracle/.Xauthority

Re: showing linux GUI applications using xshell from windows [message #431089 is a reply to message #431053] Sat, 14 November 2009 15:33 Go to previous messageGo to next message
samiraly
Messages: 48
Registered: June 2009
Member

any clue?
Re: showing linux GUI applications using xshell from windows [message #431090 is a reply to message #431089] Sat, 14 November 2009 17:52 Go to previous messageGo to next message
BlackSwan
Messages: 22837
Registered: January 2009
Senior Member
1) This is not really an Oracle issue.
2) if xclock works, then Oracle's GUI will work.

I do know X11 forwarding must be used.
I never got X-windows to work when using sudo, su, or any virtualization.

Good Luck!
Re: showing linux GUI applications using xshell from windows [message #431113 is a reply to message #431090] Sun, 15 November 2009 02:06 Go to previous message
samiraly
Messages: 48
Registered: June 2009
Member

Issue resolved
thank you for your support , after research i founf that i need to install a program called xming on my windows machine and it is now ok i can see linux GUI from my windows thanks alot
Previous Topic: Transparent Application Failover issue
Next Topic: taking backup of control file
Goto Forum:
  


Current Time: Tue Sep 30 02:32:44 CDT 2014

Total time taken to generate the page: 0.15370 seconds