I have a new install yesterday with physical server using CentOS 7. After the ERPNext prodction installation my terminal prompt changes from “[root@server1 ~]#” to “HEY! USE SCREEN -bash-4.2#”. I love to use screen but I am not used that my prompt is yelling at me.
I parsed the install.py and setup_frappe.sh but I cannot find where this code was embedded. My thanks to anyone knows how to disable this.
This is an annoying bash setting…
The short answer is: $ sudo nano /etc/profile.d/bashrc.sh
Add the line below export PS1="\u@\h:\w$:”
save / exit file
$ exit
close terminal window and ssh in again and all should look good.
Sorry… Yes its a bash issue. Is also caused by loads of other random things too… Not a new issue either… Possibly set off by frappe install script… But may just bad linux update?
Yes It might be caused by root/sudo install of frappe script. Using easy install under a user account with sudo I found that sometimes the script crashed shortly after creating a new frappe user (something like error frappe user already exists). So its quite possible that account preferences get crushed in the process.
Also more importantly,
Does anybody here know how to change the frappe easy install script to avoid the million and one possible crashes that it invokes? Would it minimise issues if before running the easy install script it was expected there was a wheel user “frappe” already created?
Are we asking too much of an easy install script to create a new user as well as install all dependencies?
User frappe is the target user for easy install so no need to create it in advance. During CentOS7 O/S install you have the option to create a user i.e. admin with sudo access, the one that belongs to group wheel. After the O/S installation, work from that user to install the python script for bench.
If you have change to view closely the bench installation, you can glimpse: TASK: SCREEN WALL. I think that is where this screen configuration was installed. But it is not a functional issue. I just don’t used to it.
The bench installation hangs towards the middle of the script. This is more bigger issue. That issue is related to nginx linux package not installed.
$ sudo yum install nginx
Restart bench python installation script. It successfully completes the installation for me. Yours may vary.
I had a similar situation on an Arch Linux install. I didn’t see the SCREEN WALL message, but the install wouldn’t complete.
After adding nginx every completed smoothly