#Welcome to my ubuntu-server cheat sheet page.
#this installs from the console of the system or VM

Back to Shawn's Linux Cheat Sheets

------------------You need to install ssh so that you can access remotely------------------

sudo apt install ssh

------------------and ssh login or putty should work------------------
------------------If you need your networks setings then------------------


------------------If you need your all your NICs then------------------

ifconfig -a

------------------If you need your gateway then------------------

route -n

------------------If you need your DNS setings then------------------

sudo cat /etc/resolv.conf

------------------ Install updates and upgrades ------------------

sudo apt update

sudo apt upgrade

sudo apt install software-properties-common

------------------then if you need a static IP you have to edit your networks setings ------------------

sudo nano /etc/network/interfaces

------------------ it should look like this network setup, but change to your network ------------------
------------------ skip the secondary network interface ------------------
------------------ and IP Forwarding if you only have one NIC ------------------

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static

# The secondary network interface
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static

sudo init 6
(or you can sudo ifdown eth0 ; sudo ifup eth0 )

------------------ Enable IP Forwarding on the fly------------------

sysctl -w net.ipv4.ip_forward=1

------------------ Check if IP Forwarding is enabled------------------

sysctl net.ipv4.ip_forward

------------------ to make this configuration permanent------------------

nano /etc/sysctl.conf:

------------------ add or change------------------

net.ipv4.ip_forward = 1

------------------Installing Web Admin to monitor use and updates and ect.------------------

------------------To find the latest Webmin version from your "host" computer type------------------


------------------from your putty terminial or console------------------

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.831_all.deb
sudo dpkg -i webmin_1.831_all.deb

------------------if you get an error -or when - then ------------------

sudo apt install -f

------------------You need to change the Webmin password------------------

sudo /usr/share/webmin/changepass.pl /etc/webmin root MyAdminPassword

------------------ You can then launch Webmin on your "host" computer------------------

------------------ Install atop htop and nload------------------

sudo apt install atop htop nload

------------------ Install Jave jdk------------------

sudo apt-get install default-jdk

------------------ add new user------------------

sudo adduser bob

sudo usermod -aG sudo bob

------------------ add antivirus (yes that also)------------------

sudo apt install clamav

sudo apt install clamav-daemon

This process provides for you:

ClamAV library

scripts, allow you to start clamd and freshclam in daemon mode

clamscan -v -r -- remove=yes

------------------ More to come ------------------
Shawn's Linux Cheat Sheets

Back to NBCI's Page.