When I provision a new CloudBolt server, I find myself needing to launch shell_plus. I find it slow to have to type out “/opt/cloudbolt/manage.py shell_plus” every time I want to launch shell_plus. This article will go over some simple steps to achieve this with just one command.
SSH into your CloudBolt server with this command:
Enter you CloudBolt ssh password. Out of the box it is
Once you do that you are going to want to navigate to the home directory like this:
From there you are going to want to edit the
.bashrcfile with this command:
Then, you are going to want to press the
ikey to enter “Insert” mode to be able to type.
You should see a couple different lines with the word
aliasin it. After those lines you are going to want to add the line that looks like this:
alias sp='/opt/cloudbolt/manage.py shell_plus'
Once that is done, you can hit the
escbutton to exit “Insert” mode, and then enter this:
:wqand hit enter to exit the vi editor.
After all those steps are done you can enter this command:
source .bashrcto apply the changes, and then all you need to do to open shell_plus from now on is type
spand hit enter!