Ubuntu - Don't Use .bash_profile

Well, this annoyed me a little. I am used to putting my keychain (ssh-agent) startup in ~/.bash_profile, so it will be sourced at login either at desktop or remotely. Unfortunately, Ubuntu has taken away this functionality, and replaced it with.... well, we have no idea, since it is not written in the file itself, or anywhere except by google finding.

The proper place (it seems, and I may be doing this totally wrong...) is in ~/.xprofile.

Any comments/better ways of doing this?

Comments

erm not really

Ubuntu uses ~/.profile. you can create your .bash_profile in ubunut but then .profile would not be read.
#cat ~/.profile
output
====================
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
............
..............
.............

====================

hope that helped

Thanks a lot

That really helped ........new to linux!!!! Thanks for the help

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options


Check out Gangster Politics Montreal.