Tritec-klima.de - 13.10 - Why do I need to run "/bin/bash --login" - Ask Ubuntu
2 Answers 2 2 Answers 2 16 It sounds like the environment necessary for the system to find the installed ruby components is specified in a file that only gets read for login shells. The bash manual page has this to say about the difference between login shells and non-login shells: INVOCATION A login shell is one whose first character of argument zero is a -, or one started with the --login option. and When bash is invoked as an interactive login shell, or as a non-inter‐ active shell with the --login option, it first reads and executes com‐ mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. whereas When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist. Hence if the ruby environment variables are in /home/rails/.profile or /etc/profile for example, they will be added to the shell environment by explicitly invoking a login shell using su -l rails or su --login rails or the shorthand su - rails when user rails logs in via SSH by starting a subshell as bash --login after login If you want the ruby environment to be set regardless of how you switch to user rails, you could move the relevant variable definitions to the user's ~/.bashrc instead. Follow answered Apr 8 '14 at 14:43 steeldriver 116k1717 gold badges203203 silver badges292292 bronze badges 1 Hmmm, ok, i think i need an example of the last part. I'm new to linux and ubuntu. What are the relevant variable definitions? In what file are they written now? could you give me an example? This is a bit to theoretical. – Apr 8 '14 at 19:27 | 7 I know that this question was asked 2 years ago, but in case if somebody (like me) still facing it: @steeldriver is right -- you are missing something in your bashrc which you do have in one of those 3 files. In my case I just needed to add this line into mine ~/.bashrc: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" Follow answered Jul 7 '16 at 15:00 PepeHands 31744 silver badges1515 bronze badges | Not the answer you're looking for? Browse other questions tagged 13.10 bash login ruby rvm or ask your own question. Not the answer you're looking for? Browse other questions tagged or .
List of domain same IP 188.94.253.13
Keywords on this domain
Search Results related to tritec-klima.de on Search Engine
Alexa Rank

GLOBAL RANK

Alexa Reach

Page length

Alexa Rank Country N/A

Daily Unique Visitors

Monthly Unique Visitors
Vistor via Country
United States
9,925
Indonesia
7,763
Taiwan
2,524
United Kingdom
2,241
Brazil
2,028
Nigeria
1,772
Egypt
1,489
Hong Kong
1,406
Canada
1,406
Australia
1,225
Philippines
877
India
854
Malaysia
840
Spain
696
Germany
677
Mexico
650
France
612
Italy
566
Turkey
520
Iraq
473
Thailand
464
Netherlands
445
Israel
441
Cambodia
367
Algeria
283
Ireland
255
Romania
246
Jordan
227
Poland
218
Ghana
209
Argentina
200
South Africa
181
Belgium
162
Czechia
148
Ukraine
139
Japan
139
Morocco
135
South Korea
130
Lebanon
125
Saudi Arabia
121
Austria
116
Hungary
111
Sweden
107
Singapore
102
Pakistan
97
Bangladesh
93
Denmark
88
Greece
84
Alexa Traffic Graph
SEOquake Zone
Title | Tips | ||
Description | Tips | ||
Keywords | Tips | ||
Viewport | Tips | ||
Icon | |||
UTF-8 |
Mini site formation by Alexa Rank
DNS Record
Host | Type | Class | TTL | Extra |
Hosting and Whois Zone
IP | 188.94.253.13 |
Domain infomation | % Restricted rights. % % Terms and Conditions of Use % % The above data may only be used within the scope of technical or % administrative necessities of Internet operation or to remedy legal % problems. % The use for other purposes, in particular for advertising, is not permitted. % % The DENIC whois service on port 43 doesn't disclose any information concerning % the domain holder, general request and abuse contact. % This information can be obtained through use of our web-based whois service % available at the DENIC website: % http://www.denic.de/en/domains/whois-service/web-whois.html % % Domain: tritec-klima.de Nserver: ns73.domaincontrol.com Nserver: ns74.domaincontrol.com Status: connect Changed: 2022-12-27T11:47:20+01:00 |