A script executed as part of the logon process

learn more… | top users | synonyms

0
votes
1answer
25 views

How to start a gnome-terminal without loading profile (like bash --noprofile --norc)

Can I start a gnome-terminal without loading profile? (just like bash --noprofile --norc) Sometime I made mistake in writing .bashrc and find no way (except ssh from another machine) to access that ....
2
votes
1answer
109 views

Terminal closes immediately after opening. (After upgrade to Ubuntu 16.04 LTS)

I upgraded my ubuntu from 14.04 LTS to 16.04 LTS after that whenever I open gnome-terminal with Ctrl+Alt+T or xterm or uxterm it closes immediately. I tried all the solutions on Terminal immediately ...
0
votes
2answers
53 views

Messed with my /etc/profile and now an error pops up every time I log in

I am fairly new to Ubuntu, and did a little more messing around than I should have. I was reading a guide on downloading the Oracle 8 JDK and it said to change the last few lines of the /etc/profile ...
0
votes
0answers
19 views

Does Ubuntu handle 'bash_profile' differently from OS X in subshells? [duplicate]

On my OS X system, when I use a subshell (for example with screen), the settings in my .bash_profile are inherited, but on Ubuntu, they are not, and in order to get the same behavior I have on OS X I ...
0
votes
1answer
48 views

repair ~./profile file

I just messed up with ~/.profile, tried to add something to PATH, but looks like there was a syntax error in my code and now the login screen functionality won't work and I can use ctrl+shift+f1 tty ...
1
vote
3answers
2k 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 ...
15
votes
4answers
24k 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 ...
0
votes
0answers
47 views

Display managers, aliases and dot-files

I am trying to set my system up to use the notion (ion3 fork) window manager, I logging in through the mdm display manager. Notion provides a a textual launcher that is activated by the F3 key. The ...
-1
votes
1answer
360 views

Explaining the contents of the ~/.profile file

# ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/share/doc/bash/examples/startup-files ...
0
votes
1answer
33 views

What is causing a script to run when I change to a certain user?

I have a certain user account on a box I'm working on. Whenever I log into or su to that user, a script comes up that restricts my usage of the server. This is intended and I wanted to modify it but ...
1
vote
1answer
37 views

What files are ran when I log into the desktop?

I don't know how to phrase this to be clear. I'm not talking about terminals or shells, I know what the difference between login and non-login shells are. What I want to know is when I start up my ...
2
votes
2answers
11k 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 ...
0
votes
1answer
66 views

Help me understand .profile, .bashrc, etc [duplicate]

My current understanding is that commands added to these two files are run every time a new terminal is open. Is that correct? Because in a lot of places I see suggestions to put there commands I want ...
0
votes
0answers
24 views

How can I modify my .profile, to can use g++ and gnatmake?

Because when I write export PATH=/usr/local/gnat/bin:$PATH the previous definition isn't working, which is export GHC_DOT_APP="/Applications/ghc-7.8.4.app" if [ -d "$GHC_DOT_APP" ]; then export ...
2
votes
0answers
143 views

Error found when loading /home/[myusername]/.profile

I get this error each time after logging on: Error found when loading /home/[myusername]/.profile: stty: standard input: Inappropriate ioctl for device As a result the session will not be ...
2
votes
1answer
210 views

How to undo changes in .profile?

I changed my ~/.profile and now I can't login. I'm new to Linux and I was trying to add adb/fastboot (android development tools) to my PATH by editing PATH in .profile. I had done a different method ...
0
votes
1answer
65 views

Ubuntu 14.04 Login Loop when .profile includes .bashrc

I have seen multiple versions of questions asking how to solve the 'Login Loop' problem. I too had this problem and was able to solve it by moving my ~/.profile file to an unreconized file name and ...
0
votes
1answer
38 views

Customizing terminal not affecting after restart through ~/.profile [duplicate]

Any welcome text, modifying PS1, aliases not working after restart. I have to put "source ~/.profile" every new terminal i open. Wishing for complete fix for these all to effect everytime on ...
0
votes
2answers
25 views

Need help with error found in home/superuser/.profile line 23

During start up, just after I log into my account, I get an error message that says: Error found when loading /home/superuser/.profile: /home/superuser/.profile line 23: export: '=': not a valid ...
0
votes
1answer
40 views

Error on loading after upgrade to 14.04LTS

I have recently upgraded my system to 14.04LTS from 12.04LTS. After the kubuntu display, I received this message Error found when loading /home/username/.profile :\n\nstdin is not a tty\n\n As a ...
2
votes
2answers
231 views

Where is my PATH variable being set?

I'm trying to set my path variable to look like this: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jgrande/android-sdk-linux/platform-tools:/usr/lib/...
2
votes
0answers
341 views

Why is neither /root/.bashrc nor /root/.profile executed after sudo -i?

I have export PATH="$PATH:/opt/local/bin" in /root/.bashrc and /root/.profile (nothing else in /root/.profile) and /bin/bash is the login shell for root in /etc/passwd. Yet invoking sudo -i (which ...
0
votes
0answers
31 views

Why does Terminal not start in “interactive” mode when I click the icon?

Also, is there a way to make that the default behavior? I know it is nit because I have echo statements in my .bashrc and .bash_profile to indicate which is being run and only .bashrc is.
14
votes
1answer
4k 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 ~/....
29
votes
1answer
28k 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 ...
1
vote
1answer
262 views

'/home/ron/.npm/bin' not a valid identifier

Last night I searched for ways to upgrade node and npm. I copied and pasted some suggestions and upgraded to their stable versions. I also installed NVM as a forum-user suggested to do. But this ...
1
vote
1answer
94 views

Help with a messed up /etc/profile file? [duplicate]

I altered my /etc/profile and now its showing off some errors whenever i startup my system saying that there's some end of file or something like that missing and the session wont be configured ...
1
vote
2answers
4k 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
0answers
39 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
96
votes
4answers
139k 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 ~/....
0
votes
1answer
154 views

Add executable to Path

I know this question has been asked a hundred times but for some reason all the answers aren't working on my system. I'm using Ubuntu 14.04 I'm trying to add the file activator to my PATH so that I ...
2
votes
3answers
2k views

bash: /home/rathin/.profile:: No such file or directory while trying to reload it via “source ~/.profile” after editing it through “vi ~/.profile”

After I edited my ~/.profile via vi command, couldn't get out of it successfully. So I closed the terminal and when I tried it again after reopening terminal, it showed duplicate file named ~/....
0
votes
1answer
174 views

Problem with adding path using zsh

I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh. ...
0
votes
2answers
440 views

Why 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 ...
3
votes
1answer
156 views

Is .profile read upon GUI login

In this question, it is mentioned that there is no standard behavior in terms of whether .profile is read or not when a user logs in from the GUI in today's Linux and Unix systems. So for Ubuntu, is ....
1
vote
1answer
2k views

~/.profile error upon Startup

I'm getting this message upon startup, just after I login as a user. I recently installed nodejs, realized I should have researched it more and installed it LOCALLY, and subsequently went through file ...
1
vote
2answers
258 views

What environment variable should I use to set a default web browser?

I'm trying to set my default web browser as google chromium inside of either my .bashrc or .profile. What Environment Variable do I need to set in order to achieve this? Edit: Here's some more ...
2
votes
1answer
38 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 ...
2
votes
2answers
589 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
2k 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 ...
1
vote
0answers
53 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
2k 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
76 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 ...
51
votes
2answers
32k 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 ...
1
vote
1answer
2k 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 ...
5
votes
1answer
5k 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 ...
1
vote
1answer
154 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
73 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" ] && [ "$...
2
votes
2answers
4k 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
5k 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 ....