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

networking

On Ubuntu 19.04, networking service is provided by package ifupdown apt install -y ifupdown By default this package is not installed. So if you add network interface configuration in /etc/network/interfaces, it won’t work. Ubuntu 18.04 + use netplan instead of ifupdown/networking service to configure network interfaces. Linux KVM Bridge network on Ubuntu Configure OVH Bridge … Read more

Ubuntu Configure systemd-resolved

Latest Ubuntu/Debian use systemd-resolved for DNS resolution. On a fresh Ubuntu 19.04 install DNS failed to resolve. root@ubuntu19:/# ping serverok.in ping: serverok.in: Temporary failure in name resolution root@ubuntu19:/# To fix this, create file mkdir /etc/systemd/resolved.conf.d/ vi /etc/systemd/resolved.conf.d/dns_servers.conf Add content [Resolve] DNS=8.8.8.8 1.1.1.1 Restart systemd-resolved systemctl restart systemd-resolved You can find systemd-resolvd status with command resolvectl … 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

Remote Desktop

Remote Desktop Software https://guacamole.apache.org Google Chome Remote Desktop https://rustdesk.com – Free Open source teamviewer alternative. Enable Remote Desktop Enable Remote Desktop in Ubuntu 18.04 Install Xfce VNC remote desktop on CentOS 7 Install Remote Desktop in Debian/Ubuntu Enable remote desktop in xubuntu See vnc

Enable Remote Desktop in Ubuntu 18.04

Ubuntu 18.04 desktop sharing

To enable remote desktop on Ubuntu 18.04 (works with newer Ubuntu versions), go to settings. Click on Sharing Click on ON/OFF button on title bar to enable Desktop Sharing. Once enabled, click on “Screen Sharing” to See Desktop sharing option, you need to enable it for network connection. Ubuntu use vino package to allow remote … Read more

Monitor Apache site traffic with Apachetop

apachetop is a command line tool like top, that shows traffic on a web site. It used apache access log to show th stats. This will be useful to monitor a web sites traffic in real time. cd /usr/local/src wget https://github.com/HostOnNet/apachetop/archive/master.zip unzip master.zip cd apachetop-master ./configure –with-logfile=/var/log/httpd/access_log make make install If you need to set … Read more

Install x11vnc on Ubuntu

To install x11vnc on Debian/Ubuntu, run apt install -y x11vnc To start vnc server, run x11vnc -display :0 By default, there will be no password. To set password, run x11vnc -storepasswd To start x11vnc server with password, run x11vnc -rfbauth ~/.vnc/passwd

Set default PHP version in Ubuntu

To select default PHP version in Ubuntu, run update-alternatives –config php This will show a menu, you can select the default php version root@server:/usr/bin# update-alternatives –config php There are 2 choices for the alternative php (providing /usr/bin/php). Selection Path Priority Status ———————————————————— * 0 /usr/bin/php7.0 70 auto mode 1 /usr/bin/php5.6 56 manual mode 2 /usr/bin/php7.0 … Read more