Couple of small problems.
Firstly could someone tell me how to add a location to my path every time that I boot. I need to know which configuration file buried somewhere in /etc I presume and what I need to add to it. Like adding a statement to the autoexec.bat file in dos (sorry I know it's a taboo word).
I think file holding the path variable is /etc/profile but I'm unsure how to add to it. The file has the line PATH="$PATH:/usr/X11R6/bin" is this my path or an addition to it? In dos each location in the path is separated by semicolons i.e.
path=c:;c:\dos;c:\windows;c:\windows\system ... etc.
How do I do this in Linux?
Secondly I want to create a launcher icon on the panel in Gnome to launch StarOffice, this launches from a script which can be achieved in a terminal window by ./<nameofscript>. What do I need for the properties of the launcher, like how do I specify a path for the script? I tried just entering the path of the script in but it doesn't work although double clicking the script in Gnome File Manager works a treat.
Cheers,
BJ
Cheers
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
On Mon, Jul 26, 1999 at 04:45:41PM +0100, John Woodard wrote:
Firstly could someone tell me how to add a location to my path every time
If you use bourne shells (bash, sh), you need to add things to /etc/profile. The PATH is a colon-separated list of directories, eg PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
Secondly I want to create a launcher icon on the panel in Gnome to launch
Don't know Gnome, I'm afraid. Anyone else?
MJR
----- Original Message ----- From: MJ Ray h089@mth.uea.ac.uk To: alug@stu.uea.ac.uk Sent: Tuesday, July 27, 1999 12:49 AM Subject: Re: [alug] Path and Gnome launching
If you use bourne shells (bash, sh), you need to add things to /etc/profile. The PATH is a colon-separated list of directories, eg PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
Thanks that will do the trick, funny how little things like this are so hard to find in the documentation.
Don't know Gnome, I'm afraid. Anyone else?
How about starting the script from a symlink then, what parameters do I need for that?
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
On Tue, 27 Jul 1999, MJ Ray wrote:
On Mon, Jul 26, 1999 at 04:45:41PM +0100, John Woodard wrote:
Secondly I want to create a launcher icon on the panel in Gnome to launch
Don't know Gnome, I'm afraid. Anyone else?
Right click panel, "Add new launcher", follow dialog instructions.
Who said this thing was intuitive..?
James.
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
----- Original Message ----- From: James Green jg@cyberstorm.demon.co.uk To: alug@stu.uea.ac.uk Sent: Tuesday, July 27, 1999 8:01 PM Subject: Re: [alug] Path and Gnome launching
On Tue, 27 Jul 1999, MJ Ray wrote:
On Mon, Jul 26, 1999 at 04:45:41PM +0100, John Woodard wrote:
Secondly I want to create a launcher icon on the panel in Gnome to
launch
Don't know Gnome, I'm afraid. Anyone else?
Right click panel, "Add new launcher", follow dialog instructions.
Who said this thing was intuitive..?
Doh! Got that bit but what do I put in the box? Thew command from the terminal is
cd /<the path> ./<therrunscript>
How do I transfer that to a panel launcher?
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
On Tue, 27 Jul 1999, you wrote:
cd /<the path> ./<therrunscript>
How do I transfer that to a panel launcher?
Generally, you wont have to cd into the program directory before you run a program, so you can just have /full/path/to/thescript in the command box. In the rare instance that you do have to be in the script directory for it to work, you can put multiple commands on one line by seperating them with a semi-colon (this applies to the shell too, usefull when you have three commands to run that you know are going to take half an hour each), so you could put cd /the/path;./thescript (you will generally only need the ./ when you are root, it means 'the current directory')
Malc
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]