A script executed as part of the logon process

learn more… | top users | synonyms

0
votes
0answers
23 views

.profile recovery

I desperately need help. I added a line at the end of my .profile and now I can't login. I have tried to solve it through a Live CD, following these instructions. However, I get this message opening ...
0
votes
0answers
21 views

Reload profile with java version

.profile has export JAVA_HOME=$DEV_HOME/tools/jdk1.6.0_45 # export JAVA_HOME=$DEV_HOME/tools/jdk1.7.0_51 # export JAVA_HOME=$DEV_HOME/tools/jdk1.8.0 export PATH=$PATH:$JAVA_HOME/bin I work with ...
10
votes
1answer
307 views

Scripts in /etc/profile.d Being Ignored?

I'm new to Ubuntu. I'm running 13.10 Desktop. I wanted to set some system wide aliases and a custom prompt for bash. I found this article: https://help.ubuntu.com/community/EnvironmentVariables ...
4
votes
1answer
32 views

Can't login after adding script to /etc/profile.d

I have created a little script to add bookmarks in Nautilus to redirect users to network share. If I run the script manually, it works brillantly but as soon as I try to add it in /etc/profile.d, I ...
7
votes
2answers
107 views

Why does Ubuntu's default ~/.profile source ~/.bashrc?

These are the contents of the stock ~/.profile that came with my 13.10 (commented lines removed): if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi ...
1
vote
1answer
28 views

Unable to login after modifying .profile

I am a fairly new Ubuntu user. A few days ago I edited my ~/.profile and have spotted a syntax error in it. Now, when I try to log on, it sends me back to the 'greeting screen' after some errors. I do ...
0
votes
2answers
34 views

Trying to get /etc/profile working [duplicate]

I have Ubuntu on Linode VPS. I intstalled latest Golang as instructed on this page (http://golang.org/doc/install) - steps taken are wget http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz tar ...
0
votes
0answers
111 views

Thunderbird on dual boot - profile inaccessible

I'm a first-time Ubuntu user - I've just put 13.10 on my XP system as a dual boot. I used Thunderbird portable on the XP machine (easy to recover every time you need a rebuild!), and I understand ...
1
vote
1answer
143 views

Node.js NVM causes Xubuntu login loop with ~/.profile line

There are various posts on the Xubuntu login loop, but none of them address NVM (Node Version Manager). I have installed NodeJS via NVM on my Xubuntu VM and it works fine, however after rebooting, I ...
1
vote
1answer
106 views

how to reset ~/.profile to default

I have been playing around with the ~/.profile file trying to add something permanently to my $PATH variable and it seems i have done some damage. I can't log into ubuntu now. When I enter my ...
0
votes
1answer
374 views

Konsole does not execute .profile or .bash_profile [duplicate]

When I open Konsole the settings in .profile are not executed, and it means the ~/bin is not added to the PATH. Is there a way to get Konsole to do that? PS. Is there a way to tell whether Konsole ...
0
votes
2answers
173 views

How to run .profile from .bashrc file?

I have a file name .test with a echo statement. Now I want to run this file from .bashrc file. What I have done so far is: My .test file contains: echo "hello everyone" My .bashrc file contains: ...
1
vote
1answer
65 views

How to login Desktop without being interrupted by ctrl+c?

I made a ubuntu system from ubuntu server by adding xong and openbox on it. I also edited .profile to auto login X, so I can power on and wait a few seconds , then it's in the openbox desktop. But ...
1
vote
1answer
225 views

Why's this PCManFM command line not working?

PCManFM doesn't remember view-mode for specific folders. The pcmanfm.conf file in: /home/user/.config/pcmanfm/default saves view_mode=[0,1,2,3] for all folders. Default being 0 (icon view), I chose ...
1
vote
1answer
98 views

emacs when run from the Applications menu (via. desktop setting) doesn't load environment variables

So when I invoke emacs from the terminal, all my environment variables are loaded correctly from .bashrc. However, when I load emacs from the Ubuntu Application menu (by invoking the ...
4
votes
2answers
160 views

Something wrong with my `.profile`

I recently installed a few softwares and needed to add their bin/ directories to my PATH. Nothing abnormal so far. But I decided to be smart about it, and rewrote a part of my .profile so I didn't ...
1
vote
1answer
320 views

Why this .pam_environment setting prevents me from logging in? [duplicate]

I'm trying to move things from my .bashrc to .pam_enviroment because of this. I've put the following into my .pam_environment but this prevents me from logging in because there should be some mistake. ...
0
votes
1answer
92 views

Thunderbird does not load profile

I'm having a serious problem with Thunderbird. Recently I started the program, but it did not load my profile. He opened asking to configure the e-mail as if it were the first time I was using the ...
1
vote
2answers
348 views

Problem in .bashrc

I try to edit .bashrc to view the C-compilers that I installed before. But after opening the new terminal I am stuck with strange error. I am unable to ls the files/directories and nothing works. It ...
1
vote
2answers
136 views

Where are the pristine, untouched contents of a 12.04 .profile file?

Several files in my home directory have been disappearing. E.g. .bashrc, .bash_profile, authorized_keys and now .profile. I would like to reconstruct .profile. Where can I find the .profile contents ...
1
vote
1answer
248 views

deleting a file from an user account when only the guest account is accessible

I was trying stuff and my cousin (owning applestuff) sent me a bash_profile file. I replaced it with my old profile file (the one you find in home, .profile) - I backed up the existing one as ...
0
votes
1answer
195 views

Does placing a symbolic link in the path work the same as creating a symbolic link of an executable in the path?

As the title says, I'm about to do an install of an executable. Normally I would either 1. install the executable to somewhere in my path i.e. HOME/bin/ or if that wasn't feasible 2. would add the ...
1
vote
2answers
472 views

JAVA_HOME : .bashrc or .profile

I need to set some variables such as JAVA_HOME and add them to the PATH. Can I somehow define them in .profile, and have them pulled into .bashrc? Or maybe add them to a 3rd file, and have that file ...
1
vote
3answers
655 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
1answer
60 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
104 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
114 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
314 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 ...
6
votes
2answers
1k 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
203 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
1k 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
150 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 ...
1
vote
1answer
541 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 ...
7
votes
4answers
2k 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
131 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
39 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. ...
2
votes
1answer
1k 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
2k 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
148 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
1k 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
2answers
4k 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 ...
24
votes
1answer
12k 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 ...
4
votes
1answer
2k 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
376 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 ...
11
votes
1answer
11k 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 ...
36
votes
4answers
44k 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
1k 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
476 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
204 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
4k 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.