Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


ubuntu_notes

This is an old revision of the document!


Ubuntu Notes

TeamViewer installation

LAMP on Ubuntu 18.04

General LAMP install

Firewall settings

Enabling root (or use sudo -i)

Release info:

lsb_release -a

View installed kernels:

# dpkg --list | grep linux-image

Remove old kernels with https://code.launchpad.net/~jarnos/linux-purge/+git/linux-purge or :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> —- Ubuntu 18.04 LTS * After initial login, change preferences in terminal and remove undesired favorites * 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> * Install MATE Desktop link #1 * Install MATE Desktop link #2 * Install UniFi on Ubuntu 12 Sep 2019 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: * 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 Installing Ubuntu 12.04 LTS on VirtualBox * Choose download updates while installing * Choose to install 3rd party software * At first load, unlock unnecessary icons from launcher * Use sudo -i instead of root Install VirtualBox Guest Additions * sudo apt-get install linux-headers-generic * Still reports current running kernel headers not installed * Guest Additions installed okay Install MyUnity to tweak fonts * https://apps.ubuntu.com/cat/applications/myunity/ * All 10 except for Monospace (11) * Show some icons on desktop If you cannot manage Network connections (grayed out): * Manage some network settings through the System Settings Menu * Edit /etc/NetworkManager/NetworkManger.conf * Change line to managed=true * sudo service network-manager restart Install and configure vpnc packages * In Ubuntu Software Center, choose All Software and search for network-manager-vpn * You should see network-manager-vpnc-gnome and network-manager-vpnc; install both. * If it can't find these packages, may need to check /etc/apt/sources.list * Example line to add: deb http://ubuntu.cs.utah.edu/ubuntu precise main universe * sudo apt-get update * Now 3 vpn software packages should be installed: * network-manager-vpnc * network-manager-vpnc-gnome * vpnc (seems to get installed from other 2) * Add VPN connection * In advanced options of VPN configuration, there is a setting called Transport and Security. Set "NAT traversal" to Cisco UDP * Also changed line in /etc/nsswitch.conf from "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns 4 mdns" to "hosts: files dns". Probably not needed; located from http://ubuntuforums.org/showthread.php?t=1842371 * Precise (12.04 release) * Searched for "network-manager-vpnc" and installed * It then installed these 3 packages * http://packages.ubuntu.com/precise/network-manager-vpnc * If necessary, save this file and install manually. It installs other needed files. * http://packages.ubuntu.com/precise/net/network-manager-vpnc-gnome * http://packages.ubuntu.com/precise/vpnc * Lucid (10.04 release) * http://packages.ubuntu.com/lucid/net/network-manager-vpnc-gnome * http://packages.ubuntu.com/lucid/vpnc * http://packages.ubuntu.com/lucid/network-manager-vpnc Show Boot Messages Install periodic updates: * You may be able to right-click a little icon in the upper right hand corner of the screen that looks like a gear cog. It should indicate status of pending updates. * From the command line, use: sudo apt-get update * Then a little icon called "Update Manager" will appear in left sidebar * 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.1573654687.txt.gz · Last modified: 2019/11/13 09:18 by juckins