Solved

Virtual Solaris Guest and Windows XP Host Part 1

Posted on 2006-06-15
2
311 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java core in Solaris 10 1 295
Move nodes from one TSM to another. 3 87
Log File Creation with Header and Footer 17 124
insert flat files in to tables based upon first character 1 16
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

808 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