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 46.101.41.149
GLOBAL RANK
Alexa Reach
Page length
Alexa Rank Country N/A
Daily Unique Visitors
Monthly Unique Visitors
United States
13,112
Indonesia
10,255
Taiwan
3,335
United Kingdom
2,961
Brazil
2,679
Nigeria
2,342
Egypt
1,968
Hong Kong
1,857
Canada
1,857
Australia
1,618
Philippines
1,159
India
1,128
Malaysia
1,110
Spain
919
Germany
895
Mexico
858
France
809
Italy
748
Turkey
687
Iraq
625
Thailand
613
Netherlands
588
Israel
582
Cambodia
484
Algeria
374
Ireland
337
Romania
325
Jordan
300
Poland
288
Ghana
276
Argentina
264
South Africa
239
Belgium
215
Czechia
196
Ukraine
184
Japan
184
Morocco
178
South Korea
172
Lebanon
166
Saudi Arabia
159
Austria
153
Hungary
147
Sweden
141
Singapore
135
Pakistan
129
Bangladesh
123
Denmark
116
Greece
110
Title | Tips | ||
Description | Tips | ||
Keywords | Tips | ||
Viewport | Tips | ||
Icon | |||
UTF-8 |
Host | Type | Class | TTL | Extra |
IP | 46.101.41.149 |
Domain infomation | Domain Name: AFRICANDEFENCE.NET
Registry Domain ID: 1808332633_DOMAIN_NET-VRSN Registrar WHOIS Server: whois.godaddy.com Registrar URL: http://www.godaddy.com Updated Date: 2024-06-15T11:08:23Z Creation Date: 2013-06-14T08:28:12Z Registry Expiry Date: 2025-06-14T08:28:12Z Registrar: GoDaddy.com, LLC Registrar IANA ID: 146 Registrar Abuse Contact Email: [email protected] Registrar Abuse Contact Phone: 480-624-2505 Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited Name Server: NS1.DIGITALOCEAN.COM Name Server: NS2.DIGITALOCEAN.COM DNSSEC: unsigned URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/ >>> Last update of whois database: 2025-04-18T19:44:46Z <<< For more information on Whois status codes, please visit https://icann.org/epp NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring registrar. Users may consult the sponsoring registrar's Whois database to view the registrar's reported date of expiration for this registration. TERMS OF USE: You are not authorized to access or query our Whois database through the use of electronic processes that are high-volume and automated except as reasonably necessary to register domain names or modify existing registrations; the Data in VeriSign Global Registry Services' ("VeriSign") Whois database is provided by VeriSign for information purposes only, and to assist persons in obtaining information about or related to a domain name registration record. VeriSign does not guarantee its accuracy. By submitting a Whois query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to VeriSign (or its computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars. |