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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
ubuntu_notes [2017/09/17 06:29] juckinsubuntu_notes [2019/10/15 15:52] 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:  
 +<code>
 +lsb_release -a
 +</code>
 +
 +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>
 +
 +
 +----
 +
 +Ubuntu 18.04 LTS
 +  * After initial login, change preferences in terminal and remove undesired favorites
 +  * [[https://websiteforstudents.com/how-to-install-ubuntu-16-04-17-10-18-04-guest-machines-on-virtualbox/|VirtualBox installation notes]]
 +  * Allow Virtualbox guest additions:
 +<code>
 +sudo apt update
 +sudo apt install build-essential gcc make perl
 +sudo apt install vim
 +sudo apt install gnome-software
 +sudo apt install openssh-server
 +reboot
 +</code>
 +
 +  * [[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]]
 +
 +__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__
 +
 +Logging into Desktop GUI only gives a blank screen:
 +  * Tried updating VirtualBox Guest Additions to v5.2-5.2.24 but no change
 +  * Tried updating packages using commands below
 +
 +Use these commands to update packages, as it allows interactive use to answer questions:
 +<code>
 +sudo apt update
 +sudo apt upgrade
 +sudo apt --with-new-pkgs upgrade
 +</code>
 +
 +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:
 +
 +<code>
 +sudo apt install mysql-client-core-5.7   
 +sudo apt install mysql-server
 +sudo /usr/bin/mysql_secure_installation
 +</code>
 +
 +Then login like this:
 +  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
 +
 +Other SQL commands/testing:
 +
 +
 +  CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
 +  GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
 +  CREATE DATABASE dbname;
 +  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 14.04.5 LTS Notes
 +  * sudo apt-get install linux-headers-generic
 +  * sudo apt-get install apache2
 +  * sudo apt-get install mysql-server
 +  * sudo apt-get install php5 libapache2-mod-php5
 +  * sudo apt-get install gufw
 +  * sudo apt-get install php5-mcrypt
 +  * sudo apt-get install openssh-server openssh-client
 +
 +Edit php.ini to include the following line:
 +  extension=mcrypt.so
 +
 +Restart apache: 
 +  sudo /etc/init.d/apache2 restart
 +  
 +  
 [[https://extr3metech.wordpress.com/2012/10/14/installing-ubuntu-12-04-lts-on-virtualbox-with-screenshots-for-beginners/|Installing Ubuntu 12.04 LTS on VirtualBox]] [[https://extr3metech.wordpress.com/2012/10/14/installing-ubuntu-12-04-lts-on-virtualbox-with-screenshots-for-beginners/|Installing Ubuntu 12.04 LTS on VirtualBox]]
   * Choose download updates while installing   * Choose download updates while installing
Line 58: Line 187:
   * Then a little icon called "Update Manager" will appear in left sidebar   * Then a little icon called "Update Manager" will appear in left sidebar
   * Choose the files to update through that GUI    * Choose the files to update through that GUI 
 +
 +Download and install a .deb package:
 +  * Save the .deb file to some folder
 +  * sudo apt install ./name.deb
ubuntu_notes.txt · Last modified: 2021/02/21 11:09 by juckins