A script executed as part of the logon process
1
vote
2answers
18 views
Why won't environment variables added to .profile show up in screen
I'm running Ubuntu 12.04
I added
export LD_LIBRARY_PATH=/home/dspies/workspace/hdf5-1.8.11-linux-shared/lib
to .profile
but when I log in and open terminal and put echo $LD_LIBRARY_PATH there's ...
1
vote
0answers
13 views
architecture-independent performance monitor tool
I got to know "perf" tool in "linux-tools-3.2.0-43" for Ubuntu 12.04 which can monitor the performance counts for some micro-architectures, however, the tool is dependent to the cpu architecture and ...
1
vote
1answer
35 views
what is .profile~ (not .profile)
I was trying to uninstall NVM, and saw I have a .profile~ file as well .profile - both have different content.
what is the different between them? thanks.
2
votes
0answers
38 views
Ensuring .profile gets executed when using nX
The $PATH I have when I run terminal in an nX session is different to that I have when I run terminal after logging on physically.
The former is
...
0
votes
5answers
122 views
Is deleting my entire home folder contents like resetting everything to where it was during install?
Or does Kubuntus install process generates something in there that is not generated like it is now after I deleted everything.
Sidequestion that led me to this is. Does 13.04 don't have the ...
5
votes
2answers
113 views
Why .profile (and not .bashrc) appends ~/bin to path?
Since .bashrc is more "generic" (in the sense that .profile sources it), why "include ~/bin to path" procedure is not inside .bashrc? Why the user would not want it in a non-login shell? (Especially ...
0
votes
1answer
66 views
.profile file not getting updated in Ubuntu 12.04, trouble installing mysql
I'm trying to install mysql in ubuntu to run ruby on rails. I was going through the tutorial at Lynda. I have successfully installed ruby, gem & rails.
ruby -v
ruby 1.8.7 (2011-06-30 patchlevel ...
0
votes
2answers
79 views
Why is setting alias in .profile not working?
I have this as the last line in my .profile:
alias gl="cd /home/jrenner/glances/glances"
yet even after reboot I get command not found when typing gl. What is happening? I am logged in as the ...
3
votes
2answers
61 views
Can't login (unexpected EOF in .profile)
I am having a problem with login. Its in a cycle login with password correct - > login -> login with password correct -> login.
I've seen a few threads about this matter but none helped.
I do ...
2
votes
1answer
101 views
How can I specify the languages that apt-get uses?
At some point in my installation, I must've selected several languages as default. When I run sudo apt-get update, I got output similar to the following.
Ign http://ppa.launchpad.net quantal/main ...
6
votes
4answers
418 views
/etc/profile vs ~/.profile
I run ubuntu 12.04.1 LTS. And I can't get what is the order/priority for loading profile files. When I start the system and login using GUI which file is loaded? And why? What if run login-shell? Will ...
3
votes
1answer
71 views
Function inside .profile results in no log-in
I've created a custom function in my .profile, and I've added right at the bottom, after my custom aliases :
# custom functions
function eclipse-gtk {
cd ~/development/eclipse-juno
...
1
vote
1answer
25 views
Software to track application profile
I am developing a software for number theory investigation, and I am suspicious that is leaking memory.
It would be very nice to log the CPU, and RAM usage of this program through some application. ...
1
vote
1answer
323 views
What can cause my .profile file to not be loaded when a new terminal shell is initialized?
There are no errors in xsession and I don't have a .bash_login or .bash_profile file, so I'm 100% certain neither of those is loaded and thus cancels .profile loading.
When I rename the .profile to ...
2
votes
1answer
782 views
Can't Set Environment Variables in ~/.profile
All, I need to set environment variables in my ~/.profile since I am running a program (QtCreator) that doesn't start a bash shell.
I cannot for the life of me get it to work though. QtCreator will ...
1
vote
2answers
81 views
Where to place local executables
Where is the correct place to store user-local executable files?
echo $PATH gives
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
It doesn't include eg. $HOME/bin
Would ...
1
vote
1answer
288 views
How do I source a shell script for Node Version Manager?
Hi and thanks for looking!
I am new to Linux/Ubuntu, but I have set up an Ubuntu box on which to run Node.js.
I have had moderate success, but now I need to be able to easily upgrade my version of ...
0
votes
1answer
1k views
Source .profile using bash?
I am unable to source my ~/.profile using a bash script.
I tried:
source ~/.profile
By the way this is the script I am using
#!/bin/bash
echo Enter the shortcut, or alias, you want to use:
read ...
10
votes
1answer
3k views
What are login and non-login shells?
It is said that settings for non login shell to go into .bashrc file and login shell settings to go into .profile file.
What is really meant by login and non-login shells?
Please explain without ...
3
votes
1answer
1k views
Ubuntu 12.04 doesn't seem to execute my .profile file
(I'm kinna n00bish)
1: I had ubuntu 11.10 installed, then upgraded to 12.04.
2: I had a script in my .profile file to turn off my laptop's touchpad (it worked, and was executed on login)
3: Now it ...
1
vote
2answers
239 views
How to organize scripts and tools under ~/bin in directories, but have them in $PATH?
I always have ~/bin added to the $PATH in my ~/.profile. As is default in Ubuntu.
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
...
6
votes
1answer
5k views
Configure gnome-terminal to start bash as a login shell, doesn't read .bashrc
I'm trying to integrate RVM with gnome-terminal.
Per default, gnome-terminal does not start bash as a login shell. I enabled run command as a login shell as suggested in this answer about the same ...
21
votes
3answers
13k views
Why ~/.bash_profile is not getting sourced when opening a terminal?
Problem
I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows
sudo apt-get install openjdk-6-jdk
Added the following entries to ...
3
votes
1answer
357 views
run .profile function as cron job
In the .profile file of the root user I have defined a function, e.g.
function printDate() {
date
}
I want to run this function every minute and append the output to cron.log. I tried adding the ...
0
votes
1answer
325 views
how to modify another user's .profile from the recovery console?
Pretty much everything is in the title, really! ;)
I installed a few components to compile go programs, and the last step was to add the go directory to the path.
Being a total ubuntu noob, I added ...
2
votes
1answer
160 views
.profile ran into an infinite loop
I changed my .profile to run a script at startup. That scripts loops through all the files in a folder and sets it as the background image. It sleeps for 10 seconds before it sets the next one as the ...
0
votes
1answer
2k views
Where is the default bash profile file kept?
Under Ubuntu 11.10, where is the default bash profile file for new users kept? I want to edit the default file so that new users get a preconfigured .bash_profile file.
2
votes
2answers
140 views
How can I set up different startup profiles?
I'm fairly sure this is a basic question, nevertheless I'm having some problems with solving this.
I'm trying to set up different startup profiles set specifically to different activities... like ...
5
votes
3answers
700 views
Can I ssh into my account without invoking .profile?
I want to ssh into my account, but I don't want the current version of my .profile login script to be executed. Is there a way to log in without running .profile?
(Disclaimer: I found a work-around ...
2
votes
2answers
117 views
How do I finish the installation of a program from source?
I compiled sqlite3 from source code, version 3.6.16. I used --prefix=/usr/bin as my only compiling option.
The binaries compiled and installed correctly, but at the directory /usr/bin/sqlite3/bin. So ...
1
vote
1answer
1k views
Path not setting up for a setup
I am unable to add path of my omnet bin directory for the installation.
During the installation i go to the omnet directory and enter ./configure which gives me the following errors
WARNING: your ...
4
votes
1answer
170 views
App installed in ~/usr launches from terminal but not Applications menu (or why does setting ld_library_path in .profile not work as it should)
I have built and installed an application under a directory of my choosing, let's say under /home/jim/usr, so files have been put in three-four folders, all under this $HOME/usr folder (e.g., bin, ...
1
vote
2answers
932 views
“$MAKEOPTS” ignored, why?
I have defined
export MAKEOPTS="-j4"
in my ~/.profile file.
But when I do a compilation with make, this option is ignored.
I've consulted the GNU Make manual but it says nothing about this ...
3
votes
3answers
956 views
How to log in after wrongly modifying path
I wanted to add a path so that the system could find some manually installed executable. However, instead of typing PATH=xxx:$PATH;export PATH at the end of ~/.profile where xxx is the directory in ...
5
votes
1answer
507 views
Is there one file that all Desktop Managers (GNOME, KDE, XFCE and etc) are required to read/execute when users login?
I use GNOME and it first executes commands from /etc/profile and then from ~/.profile. This I have found by putting statements like echo 'something' > test in all files that i could think of like ...

