A script executed as part of the logon process

learn more… | top users | synonyms

0
votes
1answer
27 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
111 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
55 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
51 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 ...
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 ...
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
votes
1answer
364 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
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 ...
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
0answers
145 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
211 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
2answers
26 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
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
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
234 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
346 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.
1
vote
1answer
263 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
95 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 ...
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 ...
0
votes
1answer
156 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
176 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. ...
3
votes
1answer
160 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
260 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
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 ...
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
594 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 ...
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 ...
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 ...
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
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
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 ....
0
votes
1answer
627 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 JRE_HOME=/usr/local/java/...
1
vote
1answer
1k 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: ...
16
votes
3answers
38k 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
84 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 ...
1
vote
1answer
603 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 ...
3
votes
1answer
14k 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
182 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 ...
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 ...