Operating System - HP-UX
1836527 Members
3959 Online
110101 Solutions
New Discussion

How to set the proper TERM use in Single User Mode

 
Vyn Ng Soon Chye
New Member

How to set the proper TERM use in Single User Mode

What is the proper TERM use in Single user mode when i use vi editor.

Problem: When i try to change the network address of a HP WS. When booting to single user mode, try to modify the /etc/rc.config.d/netconf file. I can't set to the correct TERM.

Do you have any solution for this.

Or alternatives, do you have any other correct method to modify the network address (Ip address, subnet mask, gateway).

I also have try SAM, but failed too.

Pls. advise for a better solution for this case, thanks.

Regards
VN
8 REPLIES 8
Leif Halvarsson_2
Honored Contributor

Re: How to set the proper TERM use in Single User Mode

Hi,

Have you tried TERM=hp ?
And, why not edit the file at the ordinary run level and reboot. I use this method regulary.
Robert-Jan Goossens
Honored Contributor

Re: How to set the proper TERM use in Single User Mode

Hi,

# set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
or initial (for entire initial boot-time dialog sequence)

Or change the netconf file in the /etc/rc.config.d and reboot your server.

Best regards,
Robert-Jan
Vyn Ng Soon Chye
New Member

Re: How to set the proper TERM use in Single User Mode

I have tried TERM=hp, dtterm, ITE_y1024x768, vt100, vt220 and etc, but failed.

I cannot boot to CDE environment, therefore i have no choice but to go to single user mode to modify the netconf file.

Regards
Vyn Ng
Fred Ruffet
Honored Contributor

Re: How to set the proper TERM use in Single User Mode

Have you used tset after exporting TERM variable ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Vyn Ng Soon Chye
New Member

Re: How to set the proper TERM use in Single User Mode

This is how i do:
For example:
#TERM=hp
#export TERM

Pls. advise, thanks.

regards
VN
Fred Ruffet
Honored Contributor

Re: How to set the proper TERM use in Single User Mode

just add tset command :
# export TERM=hp
# tset

If it doesn't work, then try with vt100 (but it should)

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Vyn Ng Soon Chye
New Member

Re: How to set the proper TERM use in Single User Mode

Hi Fred,

Thanks, finally it work.

Regards
Vyn Ng
Sundar_7
Honored Contributor

Re: How to set the proper TERM use in Single User Mode

Hi VN,

There is a binary that can automatically detect the terminal type.

# eval `/usr/sbin/ttytype -s -a`

This should automatically determine the terminal type.

- Sundar.
Learn What to do ,How to do and more importantly When to do ?