sudo apt update
sudo apt upgrade
sudo apt install -y git vim clipit htop feh ranger curl
mkdir tmp
cd tmp
git clone https://github.com/sixty-nine/unix-config.git
cd unix-config
./implant.sh
Restart your terminal.
Insert your email in the ~/.gitconfig
file.
Create the directory for development:
cd /home
sudo mkdir dev
sudo chown dan:dan dev
cd ~/.ssh
ssh-keygen -t rsa -C "dan@M14xR2"
sudo apt install -y apache2 apache2-utils
sudo apt install mariadb-server mariadb-client
sudo mysql_secure_installation
See How to change MySQL data directory?
# Create new directory for MySQL data
mkdir /new/dir/for/mysql
# Set ownership of new directory to match existing one
chown --reference=/var/lib/mysql /new/dir/for/mysql
# Stop MySQL before copying over files
service mysql stop
# Copy all files in default directory, to new one, retaining perms (-p)
cp -rp /var/lib/mysql/* /new/dir/for/mysql/
sudo apt install phpmyadmin
Fix login with root in phpmyadmin. Run sudo mysql -u root
and execute:
use mysql;
update user set plugin='' where User='root';
flush privileges;
exit
sudo apt install composer
- How to Install LAMP Stack on Ubuntu 18.04 Server/Desktop
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04
- Install Apache2, MariaDB And PHP 7.2 With PhpMyAdmin On Ubuntu 16.04 / 18.04 / 18.10 (LAMP + PhpMyAdmin)
# node and npm
sudo apt install nodejs npm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
Open a new terminal. Install some newer node versions.
nvm install v12.2.0
nvm install v11.15.0
nvm install v10.15.3
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install -y mysql-workbench
Download the app here
cd ~/Downloads/
tar xvzf Postman-linux-x64-7.0.9.tar.gz
sudo mv Postman /opt/Postman
sudo ln -s /opt/Postman/Postman /usr/local/bin/postman
sudo apt install nginx
sudo vim /etc/nginx/sites-available/default
Change port to 8080. Restart nginx.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker run hello-world
npm install -g rebase-editor
git config --global sequence.editor rebase-editor
Set location to Fribourg (CH).
./xflux -l 46.8 -g 7.15