A script executed as part of the logon process

learn more… | top users | synonyms

2
votes
1answer
50 views

How do I get Ubuntu to use Anaconda's python instead of the standard /usr/lib/python…?

I installed Anaconda using instructions provided on the main website, which are similar to those that can be seen here: Installing Anaconda python on ubuntu However, I found that I had to manually ...
12
votes
3answers
16k 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 ...
1
vote
1answer
16 views

Diffrence among environment/profile/bash files

I know the difference among ~/.bash, ~/.profile vs. /etc/profile. I know (please correct me if I am wrong) configuration in ~/.bash is applicable for a specific user and terminal only.Configuration in ...
0
votes
2answers
49 views

What is the best practice of customizing the Bash prompt (aka the PS1 environment variable)?

I am trying to add Git branch name to my Bash prompt by changing the PS1 variable like this: PS1=`echo "$PS1" | sed 's/\\\\\$ $/\$(__git_ps1)\\\\\$ /'` And if I understand correctly, it is not ...
0
votes
2answers
381 views

error when loading .profile

This is my bashrc # LD_LIBRARY_PATH OTCL_LIB=/home/shabeer/ns-allinone-2.35/otcl-1.14 NS2_LIB=/home/shabeer/ns-allinone-2.35/lib X11_LIB=/usr/X11R6/lib USR_LOCAL_LIB=/usr/local/lib export ...
0
votes
0answers
10 views

Equivalent of logname for profile

I'm getting an error when entering my session because I'm using logname in my .profile, and apparently Ubuntu doesn't like it. It says something along the lines of logname: login name not found I ...
0
votes
1answer
110 views

Export: command not found

I have just upgraded my ubuntu. After booting ubuntu 14.04 LTS I get this message: /etc/profile :line 33 Export command not found. This relates to the FORTRAN compiler. Can anyone help me? I attach ...
1
vote
1answer
26 views

Why I cant see password prompt when .profile executes?

I want to use keychain for SSH cron jobs. I've found this good answer. I've add command keychain --nogui id_rsa in .profile And when I reboot and login I have to enter password. But I don't see any ...
37
votes
2answers
20k 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 ...
2
votes
1answer
88 views

Ubuntu / Bash recognising “export PATH=$PATH:~/…” but not “export PATH=$PATH:/home/…”

So I've been using ubuntu since 09.04 but have limited experience with sys admin. I now want to get into web development and as part of installing the Play Framework, I had to add the activator path ...
2
votes
1answer
187 views

Why isn't .profile sourced when opening a terminal?

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...
0
votes
0answers
19 views

/etc/profile gets defaulted regularly

I need to add several scripts in /etc/profile for the server with ubuntu 12.04.5 server installed. However, it regularly gets defaulted (i.e., the new input gets wiped out). Is there anyway to find ...
1
vote
1answer
53 views

Can I log in without loading my .profile?

I recently inserted an error into my .profile file and now logging in just presents me back to the log in page, much like in this question. I've booted into recovery mode and recovered my encrypted ...
0
votes
1answer
38 views

User processes continue to run after logout

I have put the following code in my .profile ps cax | grep jackd > /dev/null if [ $? -eq 0 ]; then echo "Jack is aready running." fi if [ "$SESSION_TYPE" != "remote/ssh" ] && [ ...
0
votes
0answers
66 views

My desktop profile reset after modifying $PATH

I'm using Ubuntu 14.10 with standard Unity desktop. I was trying to change env variables using /etc/profile (I realise this was a mistake now and should have used ~/.profile) I had problems with my ...
2
votes
2answers
3k 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 ...
2
votes
1answer
728 views

How to set environment without sourcing .bash_profile myself every time? [duplicate]

When I restart Ubuntu 14.04, environment variables are set back to default and I have to run source .bash_profile every time which is very annoying. I generally keep my environment vars in ...
9
votes
1answer
663 views

Sequence of scripts sourced upon login

I would like to concentrate all my login config in my ~/.bash_profile. There was a ~/.bashrc there by default but I replaced it with a ~/.bash_profile. However, when I log in, something before my ...
0
votes
1answer
179 views

In the process of installing Java and Hadoop, my user profile has disappeared?

So I added the following code to the bottom of profile after: sudo gedit etc/profile Code added to profile: JAVA_HOME=/usr/local/java/jdk1.8.0_20 PATH=$PATH:$JAVA_HOME/bin ...
1
vote
1answer
512 views

14.04 - Old Firefox Version won't install, can't use profile manager

I'm new to Ubuntu. (14.04) Firefox comes default as version 31.x, but I need to use 29.0.1. I've tried following multiple instructions, whereby copying an old firefox (old v29) to the usr/bin ...
0
votes
0answers
71 views

disable all hotkeys with dconf-editor

I'm building a deb package that will create a kiosk user account. When you login to this account, the browser automatically starts and navigates to a pre-given website. Also all the hotkeys should be ...
1
vote
1answer
422 views

`TERM` environment variable not exported from `.profile`?

I have this in my .profile (I'm running Ubuntu 12.04): export TERM="xterm-256color" The variable seems not exported or be invariably later overwritten as TERM="xterm". A test with Gnome Terminal: ...
6
votes
3answers
7k views

I can not find .bash_profile in ubuntu

I can't find .bash_profile in Ubuntu 14.04 in my /home/user directory. I use ls -a command to see the .bash_profile, but there isn't such a file.
1
vote
2answers
44 views

How to skip StartUp and/or .profile on log-in?

Is there a login option to skip processing the .profile and Startup Applications? I basically have a script in there that's hanging the system upon log-in. The filesystem is encrypted and I don't have ...
0
votes
1answer
1k views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
0
votes
1answer
99 views

Change my keyboard layout for my profile only

We are using ubuntu-server 14.04 , I want to change the keboard layout to querty only for my login , i want the other users remain having azerty , I know that I have to put a command line in some ...
0
votes
0answers
767 views

Unable to login into Ubuntu 12.04 LTS, bounces back to login screen

I do understand this is a common problem. I have read and tried most of the suggestions but have not found a good solutions. Thus I am posting my question. Enter the correct password, the computer ...
0
votes
1answer
392 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 ...
22
votes
1answer
10k 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 ...
0
votes
0answers
31 views

Environment variable spoiled

In ~/.profile I have this: . "$HOME/projects/devenv.sh" In $HOME/projects/devenv.sh I have: BASEDIR=$(dirname $0) export APILIB_CONFIG="$BASEDIR/apilib.conf" echo "$APILIB_CONFIG" When I open a ...
0
votes
0answers
139 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
101 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 ...
12
votes
2answers
2k 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 ...
4
votes
1answer
200 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 ...
0
votes
2answers
6k 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 ...
1
vote
1answer
65 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 ...
1
vote
1answer
519 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
2answers
109 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 ...
1
vote
1answer
219 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 ...
2
votes
1answer
437 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
2k 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
1k 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
99 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
683 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
224 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
202 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
564 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
214 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 ...
2
votes
3answers
2k 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
2answers
710 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 ...