Solved

Virtual Solaris Guest and Windows XP Host Part 1

Posted on 2006-06-15
2
309 Views
Last Modified: 2013-12-27
Hi,
I have successfully installed VMWare Workstation 5.5 on Dell Latitude X300 running Windows XP Professional but have 2 problems. I have unmounted automount by killing the process and commented out:
/etc/auto_home
/etc/auto_master

Running as root.

In /home/root created file .profile as below:
TERM=vt220
export TERM

export PATH=:/usr/sbin:/usr/bin:.:$PATH

ENV=$HOME/.kshrc
export ENV

# Set up prompt
MC=`uuname -l`
PS1=\<'$PWD'\>
export MC PS1

umask 000
clear

EDITOR=/usr/bin/vi
export EDITOR
set -o vi

alias dir="ls -lt |grep ^d"        # All directories in current directory
alias dif="ls -lt |grep ^-"        # All nonlinked files in curr directory
alias dil="ls -lt |grep ^l"        # All Linked files in current directory
alias cls="clear"

Now when I run the profile get following message:
.profile: not found

Next created a test file with read/write permissions in dir abc
cd /abc
touch test.ksh
chmod 755 test.ksh

vi test.ksh

#!/usr/bin/ksh

echo Hello

exit

When running script as ./test.ksh get following:
Hello

When running script as test.ksh get following:
ksh: test.ksh:  not found

echo $PATH
/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb:

I have to keep running ksh -o vi to activate history. I also ran kdmconfig to fix the keyboard mapping problem as it was set to English US so change to UK. Thats working ok now.

Thanks in advance


0
Comment
Question by:troublesome
2 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 125 total points
ID: 16916973
1) Check your /etc/password file to make sure that the root's home is /home/root

2) >>When running script as test.ksh get following:
ksh: test.ksh:  not found

since test.ksh is in /abc and it is NOT in your PATH, it can not locate it

if you want to run scripts by name like the unix commands, you can put
them in /usr/local/bin or /usr/local/script or  /home/root/bin

and add them to the PATH in your .profile, eg:

PATH=$PATH:/usr/local/bin     # installed utilities
PATH=$PATH:/usr/local/script     # script
PATH=$PATH:/home/root/bin     # script for root

export PATH
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now