burim:ubuntu:ubuntu
Table of Contents
sudo apt-get install openssh-server
http://c-nergy.be/blog/?p=5305
swap
sudo fallocate -l 2G /swapfile sudo dd if=/dev/zero of=/swapfile bs=1024 count=2097152 sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo nano /etc/fstab /swapfile swap swap defaults 0 0 sudo swapon --show
xrdp
sudo apt-get update
sudo apt-get install xrdp
sudo apt-get install xfce
echo xfce4-session >~/.xsession
sudo service xrdp restart
Timezone
dpkg-reconfigure tzdata
enable unattended upgrades
sudo dpkg-reconfigure unattended-upgrades
remove old kernels
network wait 5min's
In my case, that looks like:
Code:
#Original Line
auto ens34
iface ens34 inet dhcp
#New line
allow-hotplug ens34
iface ens34 inet dhcp
https://www.howtoforge.com/tutorial/how-to-setup-automatic-security-updates-on-ubuntu-1604/
Switch manager ubuntu
switch manager for Python
- Step1
ls /usr/bin/python* /usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 /usr/bin/python3.7 /usr/bin/python3.7m /usr/bin/python3.8 /usr/bin/python3-futurize /usr/bin/python3m /usr/bin/python3-pasteurize
- Step2
sudo update-alternatives --list python update-alternatives: error: no alternatives for python
- Step3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 2 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
- Step4
sudo update-alternatives --list python /usr/bin/python2 /usr/bin/python3
- Step5
sudo update-alternatives --config python There are 2 choices for the alternative python (providing /usr/bin/python). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/python3 2 auto mode 1 /usr/bin/python2 1 manual mode 2 /usr/bin/python3 2 manual mode Press to keep the current choice[*], or type selection number: 1
python is python3
apt install python-is-python3
custom DNS on Ubuntu 14.04
sudo nano /etc/resolvconf/resolv.conf.d/base nameserver 8.8.8.8 nameserver 8.8.4.4 sudo resolvconf -u
Configure DNS under loopback
auto lo iface lo inet loopback dns-nameservers 8.8.8.8 8.8.8.4
netplan
- dhcp
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
dhcp4: true
- static
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
addresses:
- 10.10.10.2/24
gateway4: 10.10.10.1
nameservers:
search: [mydomain, otherdomain]
addresses: [10.10.10.1, 1.1.1.1]
- brdige interface
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: true
ethernets:
ens192:
dhcp4: false
dhcp6: false
bridges:
lxcbr1:
interfaces: [ens192]
mtu: 1500
dhcp4: false
dhcp6: false
burim/ubuntu/ubuntu.txt · Last modified: 2022/10/02 21:10 by burim
