Skip to content

sixty-nine/new-unix-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install a new Ubuntu workstation

Intro

sudo apt update
sudo apt upgrade

i3

See here

Base system

sudo apt install -y git vim clipit htop feh ranger curl

My Unix config

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

SSH keys

Atlassian doc

cd ~/.ssh
ssh-keygen -t rsa -C "dan@M14xR2"

LAMP stack

Apache2

sudo apt install -y apache2 apache2-utils

MariaDB

sudo apt install mariadb-server mariadb-client
sudo mysql_secure_installation

Change datadir

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/

PhpMyAdmin

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

PHP

sudo apt install composer

Links

Node

# node and npm
sudo apt install nodejs npm

nvm

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

yarn

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

Apps

VSCode

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

Chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

MySQL Workbench

sudo apt install -y mysql-workbench

Postman

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

nginx

sudo apt install nginx
sudo vim /etc/nginx/sites-available/default

Change port to 8080. Restart nginx.

Docker

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

Full documentation

git rebase editor

Github

npm install -g rebase-editor
git config --global sequence.editor rebase-editor

F.Lux

Set location to Fribourg (CH).

./xflux -l 46.8 -g 7.15

Chrome extensions

NextCloud

Others

  • inkscape
  • gimp
  • keepassx
  • steam
  • NTP
  • vlc
  • youtube-dl
  • redis

About

New Unix workstation install

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published