LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2003, 03:27 PM   #1
zzzt
LQ Newbie
 
Registered: Oct 2003
Location: Kansas City
Distribution: Mandrake 9.2
Posts: 26

Rep: Reputation: 15
Adding a file to the path in etc/profile


Running Mandrake 9.1 on a newer custom system.

I just installed the newest winex CVS. I can only run wine by typing the path to wine and then the *.exe

Example:

wine install.exe Won't work

/usr/lib/cvswinex/bin/wine install.exe Does work.

I know that I have to add wine to the path, kind of like path=---/---/xx.exe in autoexec.bat from the DOS days.

I found that if I type PATH=$PATH:/usr/lib/cvswinex/bin/
wine will run from any directory so long as I don't close the terminal I ran the PATH statement in.

I think I need to edit /etc/profile, but I'm not sure quite how. I tried adding the PATH statement from above without any results.

Here's a copy of my etc/profile:

# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin"
fi

if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then
export PATH=$PATH:/usr/games
fi

umask 022


USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HISTCONTROL=ignoredups
HOSTNAME=`/bin/hostname`
HISTSIZE=1000


if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

# some old programs still use it (eg: "man"), and it is also
# required for level1 compliance for LI18NUX2000
NLSPATH=/usr/share/locale/%l/%N

export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL HISTSIZE

for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done

unset i


Any ideas?
 
Old 10-24-2003, 03:39 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Probably just before that export PATH PS1 USER.... line, you need to add your PATH=$PATH:/usr/lib/cvswinex/bin/ line. Just make sure it isn't in an if statement.
 
Old 10-24-2003, 03:47 PM   #3
zzzt
LQ Newbie
 
Registered: Oct 2003
Location: Kansas City
Distribution: Mandrake 9.2
Posts: 26

Original Poster
Rep: Reputation: 15
I'll give it a try right now, and I'll tell you how it goes.
 
Old 10-24-2003, 03:53 PM   #4
zzzt
LQ Newbie
 
Registered: Oct 2003
Location: Kansas City
Distribution: Mandrake 9.2
Posts: 26

Original Poster
Rep: Reputation: 15
That was it! Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Fedoras PATH in profile Lawful Linux - Newbie 1 04-30-2004 08:19 PM
Adding Java to my path in the .bash_profile file .... jmax24 Linux - General 5 04-20-2004 01:14 PM
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 01:27 PM
Editing path permanently...but I don't have .bashrc or .profile shock_ez Linux - Newbie 6 07-02-2003 05:16 PM
/etc/profile and include path Tom9K Linux From Scratch 2 05-13-2002 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration