Operating System - HP-UX
1830940 Members
1791 Online
110017 Solutions
New Discussion

Re: Difference between a console and terminal in CDE

 
yc_2
Regular Advisor

Difference between a console and terminal in CDE

Hi,

I know there is a difference between console and terminal in CDE of Solaris. What about HP-UX CDE ?


Rgds,
YC
7 REPLIES 7
Ravi_8
Honored Contributor

Re: Difference between a console and terminal in CDE

Hi,

It is also same in HP.

Actual console can't be accessed using CDE(from desktop), it can be accessed unsing Web console, Lan console, or by directly connecting to machine.

If your machine has graphics card then console itself will be in CDE
never give up
T G Manikandan
Honored Contributor

Re: Difference between a console and terminal in CDE

If you are directly working on the terminal of the server then it is a console.

CDE is common Desktop Environment.
You can have the CDE on your console if it has a graphical card.

Even you can access CDE on your remote machines by installing the X-windows software like
Exceed,ReflectionX and ManageX.

The CDE on Solaris and Hpux is the same.
All the files are located on the same path,it has similar features.

Thanks
yc_2
Regular Advisor

Re: Difference between a console and terminal in CDE

Hi,

I don't know how to launch the console in HP-UX CDE, could you advice ?



Rgds,
YC
Ravi_8
Honored Contributor

Re: Difference between a console and terminal in CDE

Hi,

In CDE, at the down bar you can see a monitor, just above that there is atriangle shaped button, click that button, where u can see a console. by clicking on console you get a screen, which is the console.
never give up
yc_2
Regular Advisor

Re: Difference between a console and terminal in CDE

Hi ravi,

Thanks but that is not a console, it is a terminal. I actually referring to console that able to display warning messages in CDE which CDE of Solaris is able to do it.



Rgds,
YC
Bill Hassell
Honored Contributor

Re: Difference between a console and terminal in CDE

A true console is an RS-232 terminal connected to the console port of a server. Since you are running CDE, you probably have nothing connected to the serial port so the graphics display screen is providing both. You see the console on bootup (it is black with white text, but once CDE starts runing, this console is 'behind' the CDE desktop.

The way to specify that a terminal window will act as a console is to start hpterm (xterm will work but has lots of limitations) using the -C option. In an open terminal window, start the console with:

hpterm -C -xrm '*loginShell: true' &

You may want to also have all your terminal windows actually login (they bypass normal logins by default). Do this by creating (or appending to) a .Xdefaults file in your $HOME directory:

*loginShell: true
*scrollBar: true
*saveLines: 10s
HPterm*background: navy
HPterm*foreground: white
Xterm*background: darkslateblue
Xterm*foreground: white

The first line causes dtterm, hpterm and xterm to all login (that is, run /etc/profile and then .profile). The other options are nice-to-have options. The color changes make it easier to identify what type of terminal emulator you are running.

Note that the default is to bypass 'normal' login steps due to customizations in /etc/profile and .profile that do not provide proper Xwindow inheritance, typically setting the $TERM value. You can (and should) escape these features with a conditional test in /etc/profile and/or .profile:

set -u

UNSET=IamNOTset
DT=${DT:-$UNSET}
VUE=${VUE:-$UNSET}

if [ "$VUE" = $UNSET -o "$DT" = $UNSET ]
then

.. do 'normal' login stuff like ttytype or tset

fi

[ $DT = $UNSET ] && unset DT
[ $VUE = $UNSET ] && unset VUE

The reason for the UNSET variable is to use set -u to prevent bad scripting (actually, spelling) errors from making big mistakes. DT and VUE ARE not defined if you aren't running these processes and set -u would cause an error in the if [ ... ] statement. This way, they become defined for testing and then are set back to their original value at the end of the script.


Bill Hassell, sysadmin
Shannon Petry
Honored Contributor

Re: Difference between a console and terminal in CDE

There is a terminal console in HP CDE, accessed manually :( for the equivalent to a Sun console, from any shell prompt in CDE type either xterm or hpterm with the following args.
-C -title Console -n Console -iconic &

There may be still a real dtterm console under the application manager, but I can not say absolutely. You can also edit your dtwmrc file and add the entry manually so that you can launch in right-click on back ground like in solaris.

Regards,
Shannon
Microsoft. When do you want a virus today?