Where is mint 13's .bashrc file?

Questions about applications and software
Forum rules
Before you post please read this

Where is mint 13's .bashrc file?

Postby robert-e on Tue Oct 08, 2013 3:09 pm

I have installed gnuradio, and it instructs me as such:

Code: Select all
To run the examples you may need to set PYTHONPATH.  Note that the
prefix and python version number in the path needs to match your
installed version of python.

  $ export PYTHONPATH=/usr/local/lib/python2.7/dist-packages

You may want to add this to your shell init file (~/.bash_profile if
you use bash).


I have searched the hard drive for .bashrc, but it does not exit. If it does
not exist in mint 13, in which file should I add this line?

Note; I know virtually nothing about python programming, and even less
about bash.

Thank you
Bob
robert-e
Level 3
Level 3
 
Posts: 141
Joined: Fri Nov 27, 2009 1:38 am

Linux Mint is funded by ads and donations.
 

Re: Where is mint 13's .bashrc file?

Postby xenopeek on Tue Oct 08, 2013 3:21 pm

You can add that line instead to your .profile file, which serves these same purpose as .bash_profile. Ctrl+H in your file manager to show hidden files.

When in doubt about things related to bash, just type "man bash" on the terminal to get its manpage (documentation). If you're not familiar with manpages, start with "man man" to learn about the man command :) The INVOCATION section of the manpage covers initialization files. GNU also have a manual online with the same info: http://www.gnu.org/software/bash/manual ... rtup-Files
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14561
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Where is mint 13's .bashrc file?

Postby robert-e on Tue Oct 08, 2013 3:37 pm

Thank you zenopeek;
Most of the bash init information/docs seemed to be attributed to OS such as fedora and debian; hence I went looking for .bashrc. Now I know that mint does some things in slightly different ways compared to the other OS's, and rather than screw things up (as I have done many times in the past), I thought I had better ask. I could have barged on ahead, and tried some things, and if it went to the perverbial handbasket, just clonezilla back. OTOH, the gnuradio took nearly 3 hours to compile and I don't want to have to do that again.
Again, thanks for your detailed reply.

Best regards,
Bob
robert-e
Level 3
Level 3
 
Posts: 141
Joined: Fri Nov 27, 2009 1:38 am

Re: Where is mint 13's .bashrc file?

Postby xenopeek on Tue Oct 08, 2013 3:59 pm

Sorry, you were searching for .bashrc but the information you shared instead mentioned .bash_profile:
Code: Select all
You may want to add this to your shell init file (~/.bash_profile if
you use bash).

You can also add it to .bashrc, by creating that file. By default Linux Mint's .profile is set up to also load the .bashrc file (it is normally only loaded for non-login shells, so only when you open a terminal).
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14561
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Where is mint 13's .bashrc file?

Postby robert-e on Thu Oct 10, 2013 4:36 pm

Hi zenopeek,
I did do more reading/homework on PYTHONPATH et al, and was also able to append the HOME/bin path.

#added for gnuradio
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages/grc_gnuradio/:$HOME/bin

It worked, and now gnuradio (and multimode) play nicely. The only problem left is that using pulse audio as an audio sink results in very low audio. Mind you, I have had much issues with pulse audio and amateur radio applications over the past years. However, that is not for this thread.

Thanks for all your pointers.

Best regards,
Bob
robert-e
Level 3
Level 3
 
Posts: 141
Joined: Fri Nov 27, 2009 1:38 am


Return to Software & Applications

Who is online

Users browsing this forum: nomko and 14 guests