I hereby claim:
- I am whinee on github.
- I am whinyaan (https://keybase.io/whinyaan) on keybase.
- I have a public key ASCsD3xtIOIkKjx-dVSpSoa_PKRvNkEbdouOoeDDlch6Cwo To claim this, I am signing this object:
{
"body": {
"key": {
I hereby claim:
{
"body": {
"key": {
Running Frappe's ERPNext using a Docker Compose .yaml file is a confusing and, for me, a frustrating endeavour.
What I hope this gist will acheive is to enlighten others as well on how to run said wonderful software in their own servers.
In this example, we will be using Portainer to run the docker compose file, and store Frappe's data in the base directory /root/data-program/frappe
.
This method requires running a bit of shell script, which is risky. But the script is easily readable and is only a few short lines. Feel free to poke around though, as it is highly encouraged, for your own sake as well.
sudo sed -i -e "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/" /etc/ssh/sshd_config | |
sudo chattr -f +i /etc/ssh/sshd_config | |
sudo systemctl restart sshd | |
mkdir -p /home/lyra/.config/systemd/user/ | |
cat <<EOM >/opt/startup.sh | |
#!/bin/sh | |
sudo systemctl restart sshd | |
EOM | |
sudo chmod u+x /opt/startup.sh | |
sudo cat <<EOM >/etc/systemd/system/startup.service |
# Mount partitions | |
sudo mount /dev/nvme0n1p5 /mnt | |
sudo mount /dev/nvme0n1p1 /mnt/boot/efi | |
# Mount virtual filesystems | |
sudo mount -o bind /dev /mnt/dev | |
sudo mount -o bind /proc /mnt/proc | |
sudo mount -o bind /sys /mnt/sys | |
sudo mount -o bind /run /mnt/run | |
sudo mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars | |
# chroot into system |
echo "hello world!" |
The inevitable has come yet again. I have destroyed my system, cuz' pamac's a bitch.
This gist exist as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations.
This init script almost do not need user interactions except for other programs that do not have an option to not prompt the user.
This gist exists as I reinstall Arch Linux every so often, and I want an easy way to install applications and set configurations.
This install script almost do not need user interactions except for other programs that do not have an option to not prompt the user.
Needed to be run at root account.
Tested on Arch Linux 5.14.11-arch1-1.