Solved

Virtual Solaris Guest and Windows XP Host Part 1

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nodeip 9 80
Linux "time" command output redirection 16 148
unix solaris snoop command 6 100
Using sort and uniq to pare down large syslog 5 26
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

803 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