Operating System - HP-UX
1850221 Members
2878 Online
104050 Solutions
New Discussion

Re: vi on HP 2335 in single user mode

 
SOLVED
Go to solution
Dean M. Durant
Occasional Advisor

vi on HP 2335 in single user mode

Hello, we have C8000 workstations running hpux 11.11 with 24" flat panel hp 2335 displays. When we boot into single user mode, we cannot use vi because hpux doesn't know what kind of TERM is in use. I tried set TERM=vt100; export TERM but that did not work. I know I need to check my syntax. But does anyone know of an official solution? Thanks, Dean
8 REPLIES 8
Piergiacomo Perini
Trusted Contributor
Solution

Re: vi on HP 2335 in single user mode

Hi Dean,

try with
TERM=hp; export TERM

regards
Sivakumar TS
Honored Contributor

Re: vi on HP 2335 in single user mode


Dear Dean,

Any of the following should work,

#export TERM=vt100

or

#export TERM=hp

With Regards,

Siva.
Nothing is Impossible !
Thummalu
Frequent Advisor

Re: vi on HP 2335 in single user mode

use export TERM=vt100 instead set...

br
Thummalu
Dean M. Durant
Occasional Advisor

Re: vi on HP 2335 in single user mode

Well, everyone is saying the same thing. I will not be able to try it for a while but everyone seems pretty confident. Thanks!
Steve Post
Trusted Contributor

Re: vi on HP 2335 in single user mode

something different for you. You said in your title "vi in single user mode".

Vi will bomb out while in single user mode if it's default temp area is not available. Mount the /tmp filesystem before using it.

And if you are stuck without vi? If you need to make a simple change, you could try ex. It's much more primitive. But it might work. For me? I've had to make a file mod without vi or ex in single user mode. I used: cat, sed and mv. It was enough to get the job done.
Ted Buis
Honored Contributor

Re: vi on HP 2335 in single user mode

Do a mount on /var and make sure /var/tmp is there. My guess is that the ITE (internal terminal emulator) for the graphics card would be doing hp, so I would do TERM=hp ; export TERM, but make sure that you first mount /var.
Mom 6
Ted Buis
Honored Contributor

Re: vi on HP 2335 in single user mode

If you can't mount /var, then go under the mount point and just make the tmp directory there. "mkdir /var/tmp" should do it. I had the situation recently where /var was lost and I had to do this to get vi going.
Mom 6
Dean M. Durant
Occasional Advisor

Re: vi on HP 2335 in single user mode

Some of this is a little surprising. I really appreciate the feedback, but on the j6700s and j6750s, we don't have any of these problems with with /var/tmp or anything like that. In fact, if we put an older monitor on the C8000, I'm sure it would work. It seems more like the monitor is too new for the version of HPUX (11.11).

I would anticipate everything working perfectly with the new monitor with a recent version of X86 based linux, for example.