Skip to content

Instantly share code, notes, and snippets.

View pantunes's full-sized avatar

Paulo Antunes pantunes

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pantunes on github.
  • I am pantunes (https://keybase.io/pantunes) on keybase.
  • I have a public key ASCFr1IDiZav67arazyeOqSilRXZIYRg4n0KNlO6LLxqago

To claim this, I am signing this object:

Set python to needed version

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
sudo update-alternatives --config python
https://linuxhint.com/change_mysql_data_directory_ubuntu/
-> sudo grep -R --color datadir /etc/mysql/*
-> sudo systemctl stop mariadb
sudo systemctl status mariadb
sudo service mariadb stop
sudo service mariadb status
https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7
-> sudo rsync -av /var/lib/mysql /mnt/vault/
@pantunes
pantunes / Ubuntu
Last active March 15, 2020 13:48
Ubuntu steps after fresh install
# Update all packages to the latest version
1. sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y
# Install DNS Service Discovery for Zeroconf Networking
2. sudo apt install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan
# Set Hostname
3. sudo nano /etc/hostname
sudo nano /etc/hosts
sudo hostname <my_machine>