-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Klaus Kappel edited this page May 12, 2021
·
20 revisions
- Plain Vanilla Ubuntu Server 20.4
- Python 3.8.5 (default, Jan 27 2021, 15:41:15)
- >= 30GB HD
- > 2 GB RAM
- > 2 Core
User Jim ist der erste User; als user Jim dann folgende Befehle ausführen:
sudo apt install python3-minimal build-essential python3-setuptools mc emacs-nox
wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
export LC_ALL=C.UTF-8
sudo python3 install.py --production --version 13 --python 3.8 --user jim --without-erpnext
frappe Produktion müsste bereits auf Port 80 laufen
apt install python3-minimal build-essential python3-setuptools mc emacs-nox
wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
export LC_ALL=C.UTF-8
sudo python3 install.py --develop --version 13 --python 3.8 --user jim --without-erpnext
cd frappe-bench
bench start
Install debian 10, 64bit, Netinstall, nur ssh-server als Task ausgewählt
# Pakete installieren
apt update
apt upgrade
apt install sudo
apt install build-essential -y
apt install software-properties-common -y
apt install dirmngr -y
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8 # ???
apt install curl -y
apt install mariadb-client mariadb-server -y
apt install emacs-nox mc
mysql -u root
exit
mysql_secure_installation
mysqladmin -uroot password 'rasputin'
mysql -uroot -prasputin -Bse "GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.%.%' IDENTIFIED BY 'rasputin' WITH GRANT OPTION;"
mysql -uroot -prasputin -Bse "GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.%.%.%' IDENTIFIED BY 'rasputin' WITH GRANT OPTION;"
mysql -uroot -prasputin -Bse "GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'rasputin' WITH GRANT OPTION;"
apt install nginx -y
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
apt install yarn -y
apt install nodejs -y
# Test nodejs and npm
node -v && npm -v
apt install redis-server -y
# Test redis
redis-server -v
# wkhtmltox
apt-get install xvfb fontconfig libxrender1 xfonts-75dpi
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
dpkg --install wkhtmltox_0.12.5-1.stretch_amd64.deb
# Python und git
apt install git-core -y
apt install python-pip -y
apt install python3-pip -y
apt install libssl-dev -y
pip install mysqlclient
apt install supervisor -y
cat <<EOF > /etc/mysql/mariadb.conf.d/60-frappe.cnf
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=512M
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=128M
innodb_log_buffer_size=64M
# the default here is 4MB, or maybe (16MB?? in more recent versions)
# which sometimes allows for disconnects in the middle of transactions
max_allowed_packet=64M
#
[mysql]
default-character-set = utf8mb4
# You can improve performance by indexing.
# Also check innodb_buffer_pool_size, should be 50-60% of your memory
# https://discuss.erpnext.com/t/erpnext-running-slow/14302/5
# https://discuss.erpnext.com/t/very-slow-and-very-bad-performance-v7/30040
#
EOF
adduser jim
usermod -aG sudo jim
reboot
login as jim oder su jim
cd ~
git clone https://github.com/frappe/bench bench-repo
sudo pip3 install -e bench-repo
# pip oder pip3???
#pip3 install -U frappe-bench
#export PATH=/home/frappe/.local/bin:$PATH
#echo "export PATH=/home/frappe/.local/bin:$PATH" >> ~/.bashrc
bench init frappe-bench --frappe-branch version-13
cd frappe-bench
bench new-site site1.local
bench start