Make Debian Lxc Containers More Comfortable to Use

Make Debian/Ubuntu LXC containers more comfortable to use

By Albin / 2020-01-26


I’ve been playing around with Proxmox and LXC containers lately and this is something I do with every container I create for it to be more user-friendly.


1. Enable colors in the terminal

echo "PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '" >> ~/.bashrc

2. Enable tab completion

echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc

3. Fix locale problems

echo "LC_ALL=en_US.UTF-8" >> /etc/environment
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen en_US.UTF-8

4. Set up automatic package downloads with cron-apt

Install cron-apt:

Read More

Wordpress on Debian 10 Nginx

How to install WordPress on Debian 10 with NGINX (LEMP)

By Albin / 2020-01-26


This is mostly a guide for myself so I can remember how to install a WordPress-site – but if somebody else finds it helpful that’s great.


1. Install dependencies

apt install nginx mariadb-server php

Install and configure the firewall:

apt install ufw
ufw enable
ufw allow 80/tcp
ufw allow 443/tcp

2. Secure MySQL and create DB/user

mysql_secure_installation

mysql -u root -p

Inside MySQL:

Read More