Operating System - HP-UX
1821546 Members
2175 Online
109633 Solutions
New Discussion юеВ

Re: Trying to start X windows on the console

 
Brendan McDonald
Frequent Advisor

Trying to start X windows on the console

Hi, I'm trying to start X windows on my console. I'm running a HPUX 11i rp2470 A class server. I have a graphics card installed -

root@ovo02:/etc>ioscan -funC graphics
Class I H/W Path Driver S/W State H/W Type Description
====================================================================
graphics 0 0/6/0/0 graph3 CLAIMED INTERFACE PCI Display (103c108b)

I also have a usb port (x2) in which i'm assuming I can connect a USB mouse and USB keyboard -

root@ovo02:/etc>ioscan -funC usb
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
usb 1 0/2/0/0 hcd CLAIMED INTERFACE OPTi USB Interface

When I connect my monitor, I get serial terminal like figures on the screen. Is there a way of redirecting X windows to my terminal ???
11 REPLIES 11
Muthukumar_5
Honored Contributor

Re: Trying to start X windows on the console

Yes. Install any of the X windows client tools like XManager, IRQ applications.

export DISPLAY in server machine as,

# export DISPLAY=:0.0

start application in server with same session where you set DISPLAY environment variable.

# application &

Now application will be started in your client terminal itself.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Trying to start X windows on the console

To setup DISPLAY variable on every startup with your client ip-address then,

edit /etc/profile as,

export DISPLAY=$(getip `who -mu | awk '{ print $NF }'`):0.0

and save it.

Execution of application in server side will use client side x-windows application.

hth.
Easy to suggest when don't know about the problem!
Radhakrishnan Venkatara
Trusted Contributor

Re: Trying to start X windows on the console

Your trying open X-windows on Console or in your local PC monitor ? If you start X-windows on your console. Monitor type should be supported and should get detected and configured while POST. If you want to use X-windows on your local pc monitor there are lot of applications such as omni-x, reflection-x, keal-x,exceed.

Regards
Radhakrishnan
Negative thinking is a highest form of Intelligence
Brendan McDonald
Frequent Advisor

Re: Trying to start X windows on the console

I'm ok getting X windows on on tty ports (I can get sam working etc, my $DISPLAY variable is set in my profile), it's just the console (when I connect a monitor to my graphics card).

There must be a setting somewhere that says my console (graphics card) is set to a terminal device. I need to change this to be a hpterm etc..

root@ovo02:/etc>echo $DISPLAY
10.12.68.37:10.0
root@ovo02:/etc>echo $TERM
xterm
RAC_1
Honored Contributor

Re: Trying to start X windows on the console

Log onto console. export TERM=hpterm
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Trying to start X windows on the console

That needs to be done on Console. Login to Console and export it as, # export TERM=hpterm

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Trying to start X windows on the console

Go to /etc/profile and,

export TERM=hpterm

and save it. It will start to work.

hth.
Easy to suggest when don't know about the problem!
AwadheshPandey
Honored Contributor

Re: Trying to start X windows on the console

ur console may be set as serial set the console to graphics for x.
run dr_dt and check results.
Awadhesh
It's kind of fun to do the impossible
Alex Glennie
Honored Contributor

Re: Trying to start X windows on the console

cp /usr/dt/config/Xservers -> /etc/dt/config/Xservers

vi last line and remove any #'s at the beginning:

* Local local@console /usr/bin/X11/X :0

wq!

/usr/sbin/init 2
/usr/sbin/init 3

result ?
Borislav Perkov
Respected Contributor

Re: Trying to start X windows on the console

Hi Brendan,

You have to do what Alex said. Also you have to configure your Display. Start SAM, then go to Display -> Monitor Configuration.
Select appropriate connector and then Action ->Modify monitor type and choose the proposed values. You can test it currently on the Display with Test monitor type.

Notice that on restart or start up of the server the Monitor and mouse should be connected to the server. If the server finds that they are missing it puts # at the beginig of the last line in /etc/dt/config/Xservers,
* Local local@console /usr/bin/X11/X :0

Regards,
Borislav
Brendan McDonald
Frequent Advisor

Re: Trying to start X windows on the console

Thanks for all the input. I'm not going to go through with this one.

Thanks.