Message boards : Server programs : Could anyone tell me where is PYTHONPATH in ubuntu?
Message board moderation
Author | Message |
---|---|
Send message Joined: 3 Jun 08 Posts: 40 |
I screwed up with the previous ubuntu server and is trying on a new one. The first problem for me is to set up 'PYTHONPATH' correctly according to my mate. I search online and found PYTHONPATH should be in './bashsrc' , which I don't have in /etc but another similar 'bash.bashsrc'. Could anyone tell me is this 'bash.bashsrc' the one I need? It's an emergency for me and I really appreciate any help from you guys. |
Send message Joined: 5 Jun 08 Posts: 2 |
It's okay if ~/.bashrc doesn't already exist. Open it in a text editor like this: $ gedit ~/.bashrc [or use vi, or emacs, or nano, or whatever] and add this line [to the end, if there's something in it]: export PYTHONPATH="/the/path/you/need" |
Send message Joined: 3 Jun 08 Posts: 40 |
It's okay if ~/.bashrc doesn't already exist. Open it in a text editor like this: Thank you. It works. when I run 'gedit ~/bashrc', I found the file actually exits.. which I can't see using 'ls'. Also I am a little confused about I m doing: I login a workstation in ubuntu and use the terminal to ssh the remote server installed ubuntu too. Whenever I type 'ls' inside the terminal, it shows the files in the original workstation, but I did successfully login in the remote server (I can tell from the prefix username@machinename). I am totally new to Linux system and I don't know why. Is that normal? All I do must be in the server, hope I am right now. Thanks. |
Send message Joined: 5 Jun 08 Posts: 2 |
Files whose name begins with a dot are hidden by default as they are "clutter". You can see dotfiles by using "ls -a" As for your second question, I'd make extra sure you're a) typing in the same terminal you use ssh in, and b) it's maybe just a coincidence that the two computers have the same set of files in their directories (very likely if they're both fresh installs) |
Send message Joined: 3 Jun 08 Posts: 40 |
Files whose name begins with a dot are hidden by default as they are "clutter". You can see dotfiles by using "ls -a" wow..thank you for your instant reply. Do you have any idea for the second problem? I first login a machine with username@while: and then ssh -X url -p [port] to ssh the remote server. Then the prefix becomre username@lobo, After that I fun svn ** something like that to get boinc resource but now it seems I download it in the @while machine for so long.. How could I get that in the server? I mean the prefix is username@lobo and I run everything after that, really don't know why it downloaded to the @while machine.. |
Send message Joined: 19 Jan 07 Posts: 1179 |
It's an emergency for me and I really appreciate any help from you guys. http://www.catb.org/~esr/faqs/smart-questions.html#urgent ;) |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.