January 21, 2019
My preferred development environment is Linux and my preferred approach to upgrading my distro is a clean install. This means with each upgrade I need to reinstall all of my tools. This article is primarily a reference for myself as this is something I’ve done before and will definitely do again. I hope you also find it useful. If you have any feedback, let me know @jarednielsen.
Perhaps most important is version-control. Being Linux, it’s a one-liner.
sudo apt install git-all
Then generate your keys and add them to GitHub:
ssh-keygen -t rsa -b 4096 -C "email@example.com"
Follow the prompts, then run:
eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa
All the cool kids are using VSCode, but Atom is still my favorite. You can’t teach an old dev new tricks.
Alternatively, you can install it from the command line following the instructions here
You’ll want to download the latest version of Node. The command you then run will be similar to the following:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
The terminal will prompt you to run the following command:
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
Installing MySQL on Linux is a breeze, but I always get the same permission error, so I added the solution below.
sudo apt-get install mysql-server service mysql start
If you get
ERROR 1698 (28000): Access denied for user 'root'@'localhost':
sudo mysql -u root mysql> USE mysql; mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root'; mysql> FLUSH PRIVILEGES; mysql> exit; service mysql restart
OR create a new user:
sudo mysql -u root mysql> USE mysql; mysql> CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED BY ''; mysql> GRANT ALL PRIVILEGES ON *.* TO 'YOUR_SYSTEM_USER'@'localhost'; mysql> UPDATE user SET plugin='auth_socket' WHERE User='YOUR_SYSTEM_USER'; mysql> FLUSH PRIVILEGES; mysql> exit; service mysql restart
I generally prefer the command prompt when working with databases, but sometimes a GUI is helpful.
It’s buggy in different ways on every platform, but still widely used. Download Workbench here.
You will be prompted for your Linux distro. To see it, run the following:
That might not be helpful if you’re using a derivative distro like Mint, so try:
Alternatively, try DBeaver
Installing MongoDB via .deb packages is also easy. The following commands are current at the time of this writing (2019/01), but you may want to consult the documentation for changes or instructions for your specific distribution:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list sudo apt-get update sudo apt-get install -y mongodb-org
sudo service mongod start
Other tools I find useful and necessary, but aren’t necessarily web development:
I prefer Firefox which ships with Mint, but gotta have this, too https://www.google.com/chrome/
I often find myself needing to do minor photo or graphics work. Inkscape and GIMP are great (and free) Adobe alternatives.
sudo apt-get install inkscape
Ships with Mint, but if your distro doesn’t include it:
sudo add-apt-repository ppa:otto-kesselgulasch/gimp sudo apt update sudo apt install gimp
Want to level up your problem solving skills? I write a weekly newsletter about programming, problem solving and lifelong learning. Join now