lxc

LXC is Linux Container, allows you to run lightweight virtual servers on your computer. It is better use LXD instead of LXC. LXD provides a much easier-to-use interface to LXC. Where LXC Container files stored? Create lxc container with lxc-create lxc error Unable to fetch GPG key from keyserver LXC container networking not working Static … Read more

Create lxc container with lxc-create

lxc-create is used to create lxc container. To create a container, run lxc-create -t download -n CONTAINER_NAME_HERE This will list all available containers. You can select the OS you want to use. To specify OS, you can use the following examples lxc-create -t download -n mycontainer-1 — -d ubuntu -r focal -a amd64 lxc-create -t … Read more

install ShadowSocks client in Ubuntu 18.04

shadowsocks firefox settings

ShadowSocks client is part of shadowsocks package. This include both client and server. If you are looking to install server, see Install ShadowSocks server on Debian 10 To install ShadowSocks, run apt install -y shadowsocks ShadowSocks client is called sslocal, get installed in /usr/bin/sslocal. On Ubuntu, no start up script provided with this package, so … Read more

Ubuntu remove SSH welcome message

Ubuntu welcome message

When you login to an Ubuntu server using SSH, you get welcome message like On most Linux systems, this is generated by /etc/motd. On Ubuntu, MOTD (message of the day) generated dynamically with some scripts. I don’t want to see all the marketing message from Ubuntu everyday. To disable MOTD on Ubuntu, just delete the … Read more

nmtui

nmtui allow you to configure network interface if you are using network manager. On Debian/Ubuntu, it is part of network-manager package apt install network-manager

Install Linux Kernel 5.0 on Ubuntu 18.04 LTS

Ubuntu 18.04 was released with Linux kernel 4.15 root@DUS-147022:~# hostnamectl Static hostname: DUS-147022.op-net.com Icon name: computer-desktop Chassis: desktop Machine ID: 1fcb383ac03e4299a3b994dca4c51a10 Boot ID: 66d616e9b11145c38387d71f9c48a4bd Operating System: Ubuntu 18.04.3 LTS Kernel: Linux 4.15.0-58-generic Architecture: x86-64 root@DUS-147022:~# On 8 Aug 2019, Cannonical released Ubuntu 18.04.3 LTS with Linux Kernel 5.0. If you are using older Ubuntu 18.04 … Read more

ping: unknown host localhost

On a server, ping localhost did not work root@cloud1:~# ping localhost ping: unknown host localhost root@cloud1:~# /etc/hosts files was proper, had entry for localhost. root@cloud1:~# cat /etc/hosts | grep localhost 127.0.0.1 localhost ::1 ip6-localhost ip6-loopback root@cloud1:~# problem was due to /etc/nsswitch.conf file missing in the server. To fix create file vi /etc/nsswitch.conf Add # /etc/nsswitch.conf … Read more

Zimbra Mail Server CentOS firewall settings

On CentOS 7 server with firewalld running, used following command to open ports used by Zimbra Mail Server. firewall-cmd –zone=public –permanent –add-service=http firewall-cmd –zone=public –permanent –add-service=https firewall-cmd –zone=public –permanent –add-service=ssh firewall-cmd –zone=public –permanent –add-port=110/tcp firewall-cmd –zone=public –permanent –add-port=11211/tcp firewall-cmd –zone=public –permanent –add-port=143/tcp firewall-cmd –zone=public –permanent –add-port=25/tcp firewall-cmd –zone=public –permanent –add-port=443/tcp firewall-cmd –zone=public –permanent –add-port=465/tcp firewall-cmd … Read more

Zimbra redirect webmail http to https

After Zimbra mail server installed, webmail work on url https://SERVER-HOSTNAME-HERE/ If you access webmail with out HTTPS, it won’t work. To set HTTP to redirect to HTTPS, login to server as root, switch to user zimbra su – zimbra Run zmprov ms SERVER_HOSTNAME_HERE zimbraReverseProxyMailMode redirect Wait few minutes, HTTP link will redirect to HTTPS. [root@correo … Read more