Use login shell in Xubuntu 14.04
6,407
You can get your Terminator to run Bash as a login shell by checking the "Run a special command instead of my shell".
- Open Terminator
- Right click on the window and select "preferences"
- Go to Profiles
- Command tab
- Make sure you have only the "Run a special command instead of my shell" checked.
- In the command box enter
/bin/bash --login
- For the option labelled "When command exits" select "Hold terminal open"
- Close Terminator, then re-open Terminator
This should have you running Bash in a login shell. To Verify, in Terminator enter:
shopt login_shell
It should return "yes" and you know you are running a login shell.
Related videos on Youtube
![ElderMael](https://i.stack.imgur.com/Nqr6L.jpg?s=256&g=1)
Author by
ElderMael
Code Neuromancer, Hardware Trickster, Software Engineer. Opinions are my own. Host of @PirateDevRadio . Ex-@ThoughtWorks
Updated on September 18, 2022Comments
-
ElderMael almost 2 years
I installed a fresh vm of Xubuntu 14.04 and installed the Ruby Version Manager (rvm).
While trying to install the SASS gem I get the following error:
$ rvm use 2.0 RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use `/bin/bash --login` as the command. Please visit https://rvm.io/integration/gnome-terminal/ for a example.
I checked this StackOverflow question and used configured terminator to use a login shell:
Unfortunately, after doing this new terminals won't show the prompt:
Any ideas why this is not working?
-
RCF about 10 yearsTry using Terminal instead of Terminator. Also, checking the website posted in your error message, you need to be sure that you ~/.bash_profile has an entry to source the RVM script noted in their explanation. After starting Terminal, type "/bin/bash --login" then retry your original command. This starts bash as a login shell, when finished type 'exit' and you should see logout.
-
RCF about 10 yearsAfter installing Terminator, I cannot duplicate your issue. Tick the box labelled "Run a custom command instead of my shell" Then make this entry in the "Custom command" box /bin/bash --login.
-
ElderMael almost 10 years@RCF-U14.04 I just tried using the default console and I get the same result. Even if I use the "/bin/bash --login" command.
-
RCF almost 10 yearsLet's try this approach and see if we can get some results. Uninstall gnome-terminal "sudo apt-get remove gnome-terminal" Also, Unistall Terminator, "sudo apt-get autoremove Terminator" Then re-install "sudo apt-get install gnome-terminal".
-
RCF almost 10 yearsAre you using Virtualbox or VMware?
-
ElderMael almost 10 yearsI'm using VMWare player. I tried uninstalling and also purged the install. No luck D:
-