Set default editor in Ubuntu
To set default editor in Ubuntu/Debian, run update-alternatives –config editor See update-alternatives
To set default editor in Ubuntu/Debian, run update-alternatives –config editor See update-alternatives
To install drivers on Ubuntu using command line, run boby@sok-01:~$ sudo ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0 == modalias : pci:v000010DEd00001F82sv00001458sd00003FCBbc03sc00i00 vendor : NVIDIA Corporation driver : nvidia-driver-430 – distro non-free recommended driver : xserver-xorg-video-nouveau – distro free builtin boby@sok-01:~$ This list all drivers available for your hardware. You can install a driver with apt. In this … Read more
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
To setup MineCraft server on Ubuntu, first you need to install Java. apt install openjdk-8-jre -y Create a user to run minecraft useradd -m –shell /bin/bash minecraft You can set a password if you want direct SSH login to this user or login as root, then “su – minecraft”. passwd minecraft Login as user minecraft … Read more
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
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
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
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
When a normal user edit Wi-Fi connection on Wi-Fi Settings, they will be asked to enter administrator user pasword. To allow a normal user to modify network connection, you can edit the connection configuration file in folder /etc/NetworkManager/system-connections This file look like root@sok-01:/etc/NetworkManager/system-connections# cat SOK [connection] id=SOK uuid=982596a7-44c8-4e52-a696-6acf4daeec12 type=wifi permissions= [wifi] mac-address=E8:DE:27:0B:39:55 mac-address-blacklist= mode=infrastructure ssid=SOK … Read more
This script configure MariaDB repository on your server. You can find more details on offical page https://mariadb.com/kb/en/library/mariadb-package-repository-setup-and-usage/ To setup mariadb repo, run curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash I was expecting it ask me what version of MariaDB i like to setup. But it just setup MariaDB 10.4. I wanted to upgrade MariaDB to version … Read more
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
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