LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04: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, 04:39 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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, 04: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, 04: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:19 PM
Adding Java to my path in the .bash_profile file .... jmax24 Linux - General 5 04-20-2004 02:14 PM
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 02:27 PM
Editing path permanently...but I don't have .bashrc or .profile shock_ez Linux - Newbie 6 07-02-2003 06:16 PM
/etc/profile and include path Tom9K Linux From Scratch 2 05-13-2002 02:57 PM


All times are GMT -5. The time now is 05:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration