robsnider
5/1/2019 - 6:05 PM

Ubuntu

Determine what version of Ubuntu you are running from the command line:
  lsb_release -a
If unable to connect to the outside, alter the DNS server by editing /etc/resolv.conf
  nameserver 8.8.8.8
#Create new user#

sudo useradd <username>
#Create password for new user#

sudo passwd <username>
#Create home directory for new user#

sudo mkdir /home/<username>
#Give new user ownership of their home directory#

sudo chown <username> /home/<username>
#Assign new user as group owner of home directory as well#

sudo chgrp <username> /home/<username>
#Grant admin (sudo) privileges to new user#

sudo adduser <username> admin
Static IP Address Assignment

from: https://help.ubuntu.com/lts/serverguide/network-configuration.html
 
To configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file /etc/network/interfaces. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the address, netmask, and gateway values to meet the requirements of your network.  
 
auto eth0 
iface eth0 inet static 
address 10.0.0.100 
netmask 255.255.255.0 
gateway 10.0.0.1 
 
By adding an interface configuration as shown above, you can manually enable the interface through the ifup command.  
 
sudo ifup eth0 
 
To manually disable the interface, you can use the ifdown command.  
 
sudo ifdown eth0
 
To restart networking:
 
sudo /etc/init.d/networking restart
1. Find what the drive is called
You'll need to know what the drive is called to mount it. To do that fire off:
sudo fdisk -l

You're looking for a partition that should look something like: /dev/sdb1. Remember what it's called.

2. Create a mount point
Create a new directory in /media so you can mount the drive onto the filesystem:
sudo  mkdir /media/usb

3. Mount!
sudo mount /dev/sdb1 /media/usb

When you're done, just fire off:
sudo umount /media/usb
from: http://ubuntuforums.org/showthread.php?t=2071187

sudo fdisk -lu
sudo parted -l
https://askubuntu.com/questions/5763/upgrading-from-the-command-line#5766

You'll first need to make sure update-manager-core is present (it may already be installed):
  sudo apt-get install update-manager-core

Next, run:
  sudo do-release-upgrade

You may need to check /etc/update-manager/release-upgrades and change the line:
  Prompt=lts
to:
  Prompt=normal