DEV Community

Dexter Brylle
Dexter Brylle

Posted on

Ubuntu Dev Environment setup

I have a Macbook Pro for personal use and I already have my workflow setup. However, in my day job, I was assigned a machine running on Windows. I've made the switch to macOS since 2013 and that change kind of set me back with efficiency and productivity. So I decided to run Ubuntu 16.04 on Virtualbox.

Below are some of the tools that I use to get you up and running.

Ubuntu Dev Environment setup

Chromium

sudo apt install -y chromium-browser
Enter fullscreen mode Exit fullscreen mode

Chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

sudo apt install -y google-chrome-stable
Enter fullscreen mode Exit fullscreen mode

NodeJS

v 6.x

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

sudo apt install -y nodejs
Enter fullscreen mode Exit fullscreen mode

v 8.x

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

sudo apt-install -y nodejs
Enter fullscreen mode Exit fullscreen mode

zsh and oh-my-zsh

Install zsh

sudo apt install zsh
Enter fullscreen mode Exit fullscreen mode

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Enter fullscreen mode Exit fullscreen mode

You can read more about oh-my-zsh here

Fixes to set zsh/oh-my-zsh as your default

*

    chsh -s $(which zsh)
    ```


* You may need to logoff and login again for the changes to take effect

### Visual Studio Code

Add the repository




Enter fullscreen mode Exit fullscreen mode

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'




Upate cache and install vs code



Enter fullscreen mode Exit fullscreen mode

sudo apt update

sudo apt install code #or code-insiders




### Sublime Text 3




Enter fullscreen mode Exit fullscreen mode

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

sudo apt update

sudo apt install sublime-text





### GitKraken


Enter fullscreen mode Exit fullscreen mode

wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz

tar -xvzf gitkraken-amd64.tar.gz




or



Enter fullscreen mode Exit fullscreen mode

wget https://release.gitkraken.com/linux/gitkraken-amd64.deb

dpkg -i gitkraken-amd65.deb




### MongoChef

Download the .tar file [here](https://studio3t.com/download/)



Enter fullscreen mode Exit fullscreen mode

cd ~/Downloads

tar -xvzf studio-3t-linux-x64.tar.gz

cd studio-3t-linux-x64/bin

./studio-3t.sh





### Spotify



Enter fullscreen mode Exit fullscreen mode

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410

echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

sudo apt update

sudo apt install y- spotify-client




I hope this may serve as a reference to people/devs with a fresh install of Ubuntu.

Thanks!
Enter fullscreen mode Exit fullscreen mode

Oldest comments (1)

Collapse
 
defman profile image
Sergey Kislyakov

dpkg -i gitkraken-amd65.deb

It's amd64 :) I'm against oh-my-zsh though. It's too damn big and slow compared to other zsh plugin managers. I'd go with zgen and a bunch of plugins (better history, autocomplete, syntax highlighting, etc.). If you need a good PS1 prompt, you'd simply copy it from the oh-my-zsh project or use it with zgen. Though usually I create my own PS1 that displays cwd and git status (the branch that will be either red or green depending on the git status output).