Solved

Virtual Solaris Guest and Windows XP Host Part 1

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…

746 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

10 Experts available now in Live!

Get 1:1 Help Now