Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

Virtual Solaris Guest and Windows XP Host Part 1

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
troublesome
Asked:
troublesome
1 Solution
 
yuzhCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now