Operating System - HP-UX
1832570 Members
4427 Online
110043 Solutions
New Discussion

Re: Pls, help. vi Not Found

 
SOLVED
Go to solution

Pls, help. vi Not Found

I need edit nfsconf.
Boot pc.
BO
hpux -is
vi /etc/rc.config.d/nfsconfig
Result:
#vi /etc/rc.config.d/nfsconfig
sh:vi not found
All commands = not found,e.q. man, netstat,etc.
Only pwd, cd, ls are ok.
Sorry for of my English.

9 REPLIES 9
Asif Sharif
Honored Contributor

Re: Pls, help. vi Not Found

This happens when filesystem is not mounted,mount "/usr", "/var" etc. filesystem in single user mode.

Regards,
Asif Sharif
Regards,
Asif Sharif
Matti_Kurkela
Honored Contributor
Solution

Re: Pls, help. vi Not Found

Run "mountall". It's simpler than trying to mount all the filesystems manually.

MK
MK

Re: Pls, help. vi Not Found

Thanks for help, but after command "mountall" will disappear "#" and don't go set instructions.
Matti_Kurkela
Honored Contributor

Re: Pls, help. vi Not Found

Ah, I understand. Some of the filesystems "mountall" tries to mount are probably on NFS.

So... let's try it another way.

The order of the lines in nfsconf should not matter. This is fortunate, so we can use some very simple shell tricks to add/remove one line at a time. This may look ugly in the nfsconf file, but it should work.

After "hpux -is":

mount -o remount,rw /
cd /etc/rc.config.d
cp nfsconf nfsconf.backup

To remove one line from nfsconf:
grep -v "line you wish to remove" nfsconf >nfsconf.new
mv nfsconf.new nfsconf

To add one line to nfsconf:
echo "line you wish to add" >>nfsconf

After making the changes:
cat nfsconf (to verify that your changes are good)
mount -o remount,ro /
sync
sync
sync
reboot

If you make a mistake:
cp nfsconf.backup nfsconf
and try again.

After you get the system to start up normally, you can use vi to rearrange the lines of /etc/rc.config.d/nfsconf in a "nice" way, if you wish.

(By the way, you posted this HP-UX question into a forum section that is reserved for Linux questions. I'll ask the moderators to move it to the proper place... see http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1245248 )

MK
MK

Re: Pls, help. vi Not Found

Solved.
But I've got other problem. When the pc started, so on monitor will display :
DIGITAL OUT OF RANGE 73,8kHz/60Hz.
I have got LG FLATRON L1953HR. How and where change setting graphic cards?
Thank you.
Dennis Handly
Acclaimed Contributor

Re: Pls, help. vi Not Found

>When the pc started,

This is not a PC. This is either an HP-UX workstation or server (you didn't mention which). What does "model" and "uname -a" show?

Re: Pls, help. vi Not Found

Sorry. I know, that the it is not PC. Is it workstation HP C3700 for CAD and 3D data.

Re: Pls, help. vi Not Found

uname -a
HP-UX unknown B.11.11 U 9000/785
Steven Schweda
Honored Contributor

Re: Pls, help. vi Not Found

I know nothing, but "man X" suggests looking
at "man Xserver", then "man Xhp" (or Xf86).
I'm too lazy to read all that, but there may
be a command-line option or config file in
there somewhere with stuff like resolution
and sweep frequencies. Possible values may
depend on the graphics hardware, of course.