In Laptop, steps to install bench v15, v14, v13 and v12 side by side - ashish-greycube/help GitHub Wiki
Go to boot menu: restart & F12
install ubuntu (create user) login
Update OS from Software Updater
go to terminal:
usermod -aG sudo
sudo apt install git
git clone https://github.com/flexcomng/erpnext_quick_install.git
cd erpnext_quick_install
chmod +x erpnext_install.sh
source erpnext_install.sh
=========== for v15-bench ===========
select option 3 (version-15)
In Production Setup Question,
Would you like to continue with production install? (yes/no) --> no
bench setup requirments
Now run,
bench start
if throws error : No such file or directory: 'yarn'
then run below command :
sudo apt-get update \
&& sudo apt-get install npm \
&& sudo npm install -g yarn
=========== for v12-bench ===========
install python 3.8 and venv (refer wiki --> https://github.com/ashish-greycube/help/wiki/V12-bench-on-system-having-v14)
install and use required node version (12.19.0)
v12-bench created successfully
while creation new site it throws mariadb error
sol :
change code in frappe/frappe/database/mariadb/setup_db.py (line 111 --> return True)
create new site
get-app erpnext
install app in site ---> if throws error of numpy:
sol :
source env/bin/activate
pip install numpy==1.21.6
deactivate
=========== for v14-bench ===========
install python 3.10 and venv (use same command as for v12)
node version: 14.19.0
bench created successfully
get-app erpnext
bench new-site demo14 --db-name demo14 --install-app erpnext
=========== for v13-bench ===========
create bench using python 3.8 and node version: 14.19.0
==================================
App list :
Zoho
Slack
dbeaver
Visual Studio Code
Google chrome
Sublime text
Postman (from app store snap)
Kazam
VLC (from app store snap)
Flameshot (from app store debian)
Asbru
to fix Flameshot issue :
Now, navigate to /etc/gdm3/custom.conf
Remove the comment on #WaylandEnable=false
If You want to change bench name
Bench Name is frappe-bench so if you want to change bench name, (e.g v15-bench), run below commands one by one and replace bench name.
replace frappe-bench to v15-bench
sudo nano redis_queue.conf
sudo nano redis_cache.conf
bench setup requirments
Now run,
bench start
If You want to change MariaDB Root Password
Run Below command one by one :
mysql -u root -p
USE mysql;
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘newpassword’;
FLUSH PRIVILEGES;
EXIT;
Now run below commands one by one
sudo systemctl restart mysql
sudo supervisorctl start all
sudo systemctl start nginx
Note
If you know current root password of mariadb then only you can use above commands.