Peppermint | Linux OS Community Forum
 
It is currently Sat Aug 24, 2019 7:22 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: PATH (SOLVED)
PostPosted: Mon Mar 17, 2014 4:05 am 
Offline
User avatar

Joined: Thu Feb 13, 2014 5:20 am
Posts: 8
Location: Burton upon Trent, UK
Hi,
How can I set the path at system startup?
ditto for terminal.
tried setting it setting it in .profile, .bash_profile & .bash_login, all in my home directory.
Cheers.


Last edited by Walrus on Mon Mar 17, 2014 7:14 am, edited 1 time in total.

Top
 Profile  
 
 

 Post subject: Re: PATH
PostPosted: Mon Mar 17, 2014 5:54 am 
Offline
User avatar

Joined: Wed Jan 01, 2014 7:40 pm
Posts: 116
Location: Amsterdam
Hi Walrus, how's it going? Try this. First make a small shell script. Open a new terminal:
Quote:
Ctrl+Alt+t
Copy and paste the following into the terminal:
Code:
gedit ~/.config/autostart/lxterminal-autostart-20sec-delay.sh
Hit enter and when gedit opens, copy and paste the following into the empty file:
Code:
#!/bin/bash
sleep 20
display=:0.0 lxterminal
Save the file.
Quote:
Ctrl+s
Now you must make the file executable. Copy and paste the following into the terminal window:
Code:
chmod +x ~/.config/autostart/lxterminal-autostart-20sec-delay.sh
Hit enter.

NB: I have set the delay to a generic 20secs. It gives any other start up items a chance to settle down. You may have to adjust this to suit your machine.

Now open a new terminal window:
Quote:
Ctrl+Alt+t
Copy and paste the following into the terminal:
Code:
gedit ~/.config/autostart/lxterminal-autostart.desktop
Hit enter and when gedit opens, copy and paste the following into the empty file:
Code:
[Desktop Entry]
Name=LXterminal Autostart
Comment=Run LXterminal delay script
Exec=/home/andy/.config/autostart/lxterminal-autostart-20sec-delay.sh
Terminal=false
Save the file:
Quote:
Ctrl+s


You just need run a test by either logging out or do a reboot. Your LXterminal should automatically open after a 20sec delay :D . I hope this helps you out. Have a great week and have fun ;) !!

_________________
Backup! Backup! Backup! If you're missing any of these, you ain't Backed Up!


Top
 Profile  
 
 Post subject: Re: PATH
PostPosted: Mon Mar 17, 2014 6:37 am 
Offline
User avatar

Joined: Thu Feb 13, 2014 5:20 am
Posts: 8
Location: Burton upon Trent, UK
Hi Bipolarbear. love the Nick.

You reply didn't exactly cover what I was asking, What I want to do is the system PATH variable at startup. I also want it to be set for Bash scripts. Sorry if my query was badly phrased.

Cheers Walrus.


Top
 Profile  
 
 Post subject: Re: PATH
PostPosted: Mon Mar 17, 2014 6:47 am 
Offline
User avatar

Joined: Wed Jan 01, 2014 7:40 pm
Posts: 116
Location: Amsterdam
No probs, I'm with you now :) . I'm sure our resident guru will jump on this one when he sees it. Good luck.

_________________
Backup! Backup! Backup! If you're missing any of these, you ain't Backed Up!


Top
 Profile  
 
 Post subject: Re: PATH
PostPosted: Mon Mar 17, 2014 7:09 am 
Offline
User avatar

Joined: Thu Feb 13, 2014 5:20 am
Posts: 8
Location: Burton upon Trent, UK
Hi Bipolar,

Worked it out and sorted at least for terminal. Thanks for time.

Cheers Walrus


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL