Problem setting environment variables in Mint 13

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Problem setting environment variables in Mint 13

Postby atg51 on Tue Jun 05, 2012 11:17 am

On my main computer, Mint 12 (32 bit) works very happily with my environment variables and modified PATH set up in ~/.profile.

My laptop (HP Pavilion) worked happily on the same basis on Mint 12, but after a clean install of Mint 13 (32 bit, Mate version) setting up environment variables with (for example) export GROOVY_PATH = /home/myname/Groovy and PATH=$PATH:$GROOVY_PATH resulted in subsequent boots failing after 10 seconds. I do not have ~/bash_profile or ~/.bash_login in my home directory (which would have prevented .profile from operating. I had to do a reinstallation.

It would seem that the setup for configuring environment variables has changed between Mint 12 and Mint 13. I have hunted in /etc/profile .d and /etc/.profile without success. Could someone please tell me where the environment variables and PATH are set up in Mint 13?
atg51
Level 1
Level 1
 
Posts: 4
Joined: Sun Jun 03, 2012 4:15 am

Linux Mint is funded by ads and donations.
 

Re: Problem setting environment variables in Mint 13

Postby jon.armstrong on Sat Jun 30, 2012 9:35 am

I'm sure you've probably solved this by now, but for anyone else, Mint 13 only seems to read ~/.bashrc by default (I was trying to use ~/.bash_profile and couldn't figure out why none of my settings were taking effect). So move ~/.profile to ~/.bashrc and you should be good to go.
jon.armstrong
Level 1
Level 1
 
Posts: 1
Joined: Sat Jun 30, 2012 9:31 am

Re: Problem setting environment variables in Mint 13

Postby atg51 on Sun Jul 01, 2012 10:09 am

Many thanks Jon! :D

Setting up an environment variable GROOVY_HOME by adding it into ~/.bashrc works perfectly for me. An alternative, following a helpful post by Dushan Basnayake on 1 June at
http://dushan888.wordpress.com/2012/06/ ... inux-mint/
is to add the environment variable to /etc/bash.bashrc in superuser mode, which also works.

Personally I like to have separate partitions for root and my home folder, in the hope that when updating to later operating system versions the variables and PATH I have set up may not have to be changed, so I prefer your solution of using ~/.bashrc . Thanks for your help.

Incidentally, for anyone treading the same paths, pay no attention to the instruction in ~/.profile which says "see /usr/share/doc/bash/examples/startup-files for examples", as that directory doesn't exist!
atg51
Level 1
Level 1
 
Posts: 4
Joined: Sun Jun 03, 2012 4:15 am

Re: Problem setting environment variables in Mint 13

Postby deepaknr on Mon Jul 02, 2012 12:20 am

Hi John,

Sorry, I am new to mint and linux. How to move ~/.profile to ~/.bashrc ? I am also having the same issue as others.

thanks
deepak
deepaknr
Level 1
Level 1
 
Posts: 2
Joined: Mon Jul 02, 2012 12:18 am

Re: Problem setting environment variables in Mint 13

Postby atg51 on Fri Jul 06, 2012 5:27 am

Hi deepak

For Mint 13 just set up the environment variables and PATH in ~/.bashrc instead of in ~/.profile.
atg51
Level 1
Level 1
 
Posts: 4
Joined: Sun Jun 03, 2012 4:15 am


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 21 guests