Author Topic: problem with .profile  (Read 2697 times)

prun769

  • Newbie
  • *
  • Posts: 24
    • View Profile
problem with .profile
« on: January 08, 2004, 10:33:34 pm »
I am having a problem getting my changes to my .profile to work.  I am trying to add an environment variable to my .profile (in /home/root), but my changes are never reflected when a I re-run terminal (even after a reboot).

I have an SL 5500 with v. 2.38 of the Sharp ROM.

Regards

soycap

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://www.tekprosystems.com/zaurus
problem with .profile
« Reply #1 on: January 08, 2004, 11:55:37 pm »
Post the code for the entire file and let us know which lines you added or changed.  We can start there.

I run OZ and was able to edit the system wide profile \"/etc/profile\", I didn\'t try it with user profiles.

prun769

  • Newbie
  • *
  • Posts: 24
    • View Profile
problem with .profile
« Reply #2 on: January 09, 2004, 12:34:52 am »
I apologize, it\'s been a couple of years since I have a touched a unix-style OS.  Where is the system-wide .profile stored on the Sharp ROM?  That could solve my problem just as well.  The variable I am trying to add is CLASSPATH for compiling Java source.

Here is my .profile from /home/root:

# %ENV;

HISTFILE=/home/root/.bash_history
HOME=/home/root
QTDIR=/home/QtPalmtop
QPEDIR=/home/QtPalmtop
PATH=/root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:$QPEDIR/bin
LD_LIBRARY_PATH=$QTDIR/lib
PS1=\"# \"
OPERA_DIR=$QPEDIR/opera
CLASSPATH=/usr/local/java/rt.jar

export HISTFILE HOME QTDIR QPEDIR PATH LD_LIBRARY_PATH PS1
export OPERA_DIR CLASSPATH

Regards,

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
problem with .profile
« Reply #3 on: January 09, 2004, 10:05:54 am »
You could try sticking your changes in ~/.bashrc and see whether that works.

Otherwise /opt/QtPalmtop/qpe.sh always used to work for altering the PATH & LD_LIBRARY_PATH vars.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

prun769

  • Newbie
  • *
  • Posts: 24
    • View Profile
problem with .profile
« Reply #4 on: January 09, 2004, 08:35:57 pm »
Thanks for the help - the ~/.bashrc worked great.