Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


ubuntu_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ubuntu_notes [2019/01/26 12:12]
juckins
ubuntu_notes [2019/11/13 11:57] (current)
juckins
Line 1: Line 1:
 ==== Ubuntu Notes ==== ==== Ubuntu Notes ====
-[[http://​howtoubuntu.org/​how-to-install-lamp-on-ubuntu|LAMP install]]+[[https://​linuxize.com/​post/​how-to-install-teamviewer-on-ubuntu-18-04/​|TeamViewer installation]] 
 + 
 +[[https://​linuxconfig.org/​how-to-install-lamp-ubuntu-18-04-bionic-beaver-linux-apache-mysql-php|LAMP on Ubuntu 18.04]] 
 + 
 +[[http://​howtoubuntu.org/​how-to-install-lamp-on-ubuntu|General ​LAMP install]]
  
 [[https://​help.ubuntu.com/​stable/​ubuntu-help/​net-firewall-on-off.html|Firewall settings]] [[https://​help.ubuntu.com/​stable/​ubuntu-help/​net-firewall-on-off.html|Firewall settings]]
 +
 +[[https://​askubuntu.com/​questions/​44418/​how-to-enable-root-login|Enabling root]] (or use sudo -i)
  
 Release info:  ​ Release info:  ​
Line 8: Line 14:
 lsb_release -a lsb_release -a
 </​code>​ </​code>​
 +
 +View installed kernels:
 +<​code>​
 +# dpkg --list | grep linux-image
 +</​code>​
 +
 +Remove old kernels:
 +
 +  * https://​code.launchpad.net/​~jarnos/​linux-purge/​+git/​linux-purge
 +    * # linux-purge -s
 +    * # linux-purge
 +    * # linux-purge -m
 +  * https://​www.pontikis.net/​blog/​remove-old-kernels-debian-ubuntu (deprecated)
 +
 +View installed packages:
 +<​code>​
 +# apt list --installed
 +# dpkg --get-selections | grep -v deinstall |grep unifi
 +</​code>​
 +
 +Remove installed package:
 +<​code>​
 +# dpkg -r package_name
 +</​code>​
 +
  
 ---- ----
Line 16: Line 47:
   * Allow Virtualbox guest additions:   * Allow Virtualbox guest additions:
 <​code>​ <​code>​
-sudo apt-get update +sudo apt update 
-sudo apt-get install build-essential gcc make perl +sudo apt install build-essential gcc make perl 
-sudo apt-get install vim+sudo apt install vim
 sudo apt install gnome-software sudo apt install gnome-software
-sudo apt-get install openssh-server+sudo apt install openssh-server
 reboot reboot
 </​code>​ </​code>​
  
-  * [[https://​linuxconfig.org/​how-to-install-mate-desktop-on-ubuntu-18-04-bionic-beaver-linux|Install MATE Desktop]]+  * [[https://​linuxconfig.org/​how-to-install-mate-desktop-on-ubuntu-18-04-bionic-beaver-linux|Install MATE Desktop ​link #1]] 
 +  * [[https://​www.hiroom2.com/​2018/​05/​06/​ubuntu-1804-mate-en/​|Install MATE Desktop link #2]]
   * [[Install UniFi on Ubuntu|Install UniFi on Ubuntu]]   * [[Install UniFi on Ubuntu|Install UniFi on Ubuntu]]
 +
 +__12 Sep 2019__
 +
 +[[https://​hostadvice.com/​how-to/​configure-apache-with-tls-ssl-certificate-on-ubuntu-18/​|Configure Apache HTTPS on Ubuntu 18]]
  
 __26 Jan 2019__ __26 Jan 2019__
Line 37: Line 73:
 sudo apt update sudo apt update
 sudo apt upgrade sudo apt upgrade
 +sudo apt --with-new-pkgs upgrade
 </​code>​ </​code>​
  
-Very slow using Ubuntu GUI now - check [[https://​thomas.vanhoutte.be/​miniblog/​guide-speed-up-ubuntu-virtualbox/​|Speeding up Ubuntu]]+Very slow using Ubuntu GUI now
 +  * Enable 3D acceleration in VirtualBox settings 
 +  * Allocate 128MB video RAM 
 +  * Restart and test 
 +  * Also see these links: 
 +    * [[https://​thomas.vanhoutte.be/​miniblog/​guide-speed-up-ubuntu-virtualbox/​|Speeding up Ubuntu]] 
 +    * [[https://​www.linuxbabe.com/​virtualbox/​speed-up-ubuntu-virtualbox]] 
 + 
 +Check that 3D acceleration is supported:​ 
 + 
 +  sudo apt install nux-tools 
 +  /​usr/​lib/​nux/​unity_support_test -p 
  
 Installing mysql: Installing mysql:
Line 49: Line 98:
 </​code>​ </​code>​
  
-Then login with this:+Then login like this:
   sudo mysql -u root -p   sudo mysql -u root -p
 +  ​
 +Login with a non-root user like this:
 +  mysql -u username -p
   ​   ​
 See notes at [[https://​www.digitalocean.com/​community/​tutorials/​how-to-install-mysql-on-ubuntu-18-04]] for setting up a new user See notes at [[https://​www.digitalocean.com/​community/​tutorials/​how-to-install-mysql-on-ubuntu-18-04]] for setting up a new user
Line 61: Line 113:
   CREATE DATABASE dbname;   CREATE DATABASE dbname;
   SET PASSWORD FOR '​username'​@'​localhost'​ = PASSWORD('​password'​);​   SET PASSWORD FOR '​username'​@'​localhost'​ = PASSWORD('​password'​);​
 +  ​
 +  ​
 +To fix this locale error upon login:
 +
 +<​code>​
 +-bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
 +</​code>​
 +
 +run the following:
 +  ​
 +  sudo locale-gen en_US
 +  locale -a
 +  ​
 +and confirm you see en_US now.  See [[https://​ubuntuforums.org/​showthread.php?​t=1675347&​page=2]] for more info.
 +
 ---- ----
  
ubuntu_notes.1548522772.txt.gz · Last modified: 2019/01/26 12:12 by juckins