LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-10-2006, 01:34 PM   #1
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Rep: Reputation: 15
bash path won't stick, and alsa won't save.


Well, "man bash" says that it runs .bash_profile at startup (the file itself does too), but for some reason it doesn't use my line about modifying the PATH. I know the line isn't wrong because when I type it manually it does work:

daniel@compy:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
daniel@compy:~$ PATH=/home/daniel/bin:"${PATH}"
daniel@compy:~$ export PATH
daniel@compy:~$ echo $PATH
/home/daniel/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

the full contents of my .bash_profile is as follows:

Code:
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# the rest of this file is commented out.

# set PATH so it includes user's private bin
PATH=/home/daniel/bin:"${PATH}"
export PATH

# do the same with MANPATH
MANPATH=~/man${MANPATH:-:}
export MANPATH
~~Secondly~~:
Alsa doesn't stay configured when I reboot. I've had this problem in the past, but all people ever say is "use 'alsactl store' to save the settings", but that never actually seems to help. Not a huge issue, but I figured it doesn't hurt to mention it in the same post.

Last edited by Lokathor; 06-10-2006 at 01:42 PM.
 
Old 06-10-2006, 01:38 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Not sure if this is the problem, but in your .bash_profile, you don't need those double quotes or those curly brackets; it should just work with

PATH=/home/daniel/bin:$PATH
export PATH.

Edit: also, are you running source after making the change to the file?

$ source .bash_profile

Last edited by Nylex; 06-10-2006 at 01:40 PM.
 
Old 06-10-2006, 02:05 PM   #3
MarkoSan
Member
 
Registered: Jun 2006
Location: Ljubljana
Distribution: KUbuntu
Posts: 61

Rep: Reputation: 1
Add path into .bashrc file and it will work!
 
Old 06-13-2006, 12:35 PM   #4
Lokathor
Member
 
Registered: Oct 2005
Location: Boise, ID
Distribution: Debian testing
Posts: 99

Original Poster
Rep: Reputation: 15
thanks all, it works now.
 
  


Reply



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
Path issue in Bash gd2shoe Linux - Software 2 08-28-2005 10:18 PM
Editiing my PATH for a bash shell??? lemay_jeff Linux - Newbie 3 07-06-2004 02:45 PM
BASH search path problem neilcpp Programming 4 02-07-2004 02:04 PM
java path in bash matador Mandriva 2 12-03-2003 08:51 AM
Compiling Kernel (specifying Bash path) ugenn Linux - Software 5 04-02-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:40 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
Open Source Consulting | Domain Registration