Skip to content

Instantly share code, notes, and snippets.

@lparolari
Created November 1, 2018 13:28
Show Gist options
  • Save lparolari/f5258ac5cdb2053e9373fbf857adead5 to your computer and use it in GitHub Desktop.
Save lparolari/f5258ac5cdb2053e9373fbf857adead5 to your computer and use it in GitHub Desktop.

WARNING: this memo is incomplete and not well organized.

Ubuntu Setup

FIX: fifo sched_error 20

  1. Open grub file: sudo nano /etc/default/grub
  2. Go to line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and edit it to look like this GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0

INSTALL

  1. Nvidia drivers
sudo apt install nvidia-driver-XXX
  1. A lot of other programs. (TODO)

SETUP

  1. Auto mount data partition

Get the data partiton uid with sudo blkid.

Then open stab:

sudo nano /etc/fstab

Copy and paste this to the file:

# Data partition on /media/lparolari/Omega
## This is a shared partition between different os.
## Note that fmask (file mask) and dmask (directory mask) as setted
##  indipendently.
## Removed option: nls=utf8
UUID=6533BA187ABC2B9F /media/lparolari/Omega ntfs defaults,umask=000,dmask=027,fmask=137,uid=1000,gid=1000 0 0
  1. SSH

    a) Add private key files to ~/.ssh/* b) Create the config file and add frequently used hosts:

Host netlab
    HostName netlab.fis.unipr.it
    User luca.parolari
    IdentityFile ~/.ssh/id_rsa_netlab

Host corrsipettivivending.info
    HostName corrispettivivending.info
    User corrchql
    Port 21098
    IdentityFile ~/.ssh/id_rsa_corrispettivivending

Host vms.vending.click
    HostName vms.vending.click
    User vendseld
    Port 21098
    IdentityFile ~/.ssh/id_rsa_vmsvending
  1. mysql server
sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation

Answer to all the mysql_secure_installation based on your requirements.

Then run

sudo mysql

and allow your user to access with a password, not only with unix sockets

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

then create your own user

CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' WITH GRANT OPTION;
  1. install apache

  2. install php my admin

aftern installed do:

sudo gedit /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include /etc/phpmyadmin/apache.conf

Then restart apache

/etc/init.d/apache2 restart

Note that if the server should follow a symlink, all the symlink's folders must have the read permission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment