Skip to content

Instantly share code, notes, and snippets.

@iagodahlem
Created July 5, 2016 23:07
Show Gist options
  • Save iagodahlem/1ec60dfa59cc6d528cabcc457bdf85f0 to your computer and use it in GitHub Desktop.
Save iagodahlem/1ec60dfa59cc6d528cabcc457bdf85f0 to your computer and use it in GitHub Desktop.

Ubuntu Setup Guide

TODO: Description

1. Updating Everything

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

2. ZSH - Oh-My-Zsh

sudo apt-get install zsh

zsh --version

chsh -s /usr/bin/zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Than you need to logout to make changes.

3. Install Softwares

sudo apt-get install git vim python-software-properties

sudo apt-get install chromium-browser

sudo apt-get install vlc

Softwares that need be downloaded and installed manually

Browser

Development

Other

Installed by Software Center

4. NVM

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

nvm install NODE_VERSION

nvm use NODE_VERSION

5. Java JDK/JRE 8 - Eclipse IDE

Java

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get install oracle-java8-installer

sudo apt-get install oracle-java8-set-default

Eclipse IDE Installation

First download eclipse.tar.gz in [Eclipse site](TODO: URL).

sudo tar -zxvf eclipse.tar.gz -C /opt/

sudo gedit /usr/share/applications/eclipse.desktop

Than paste this on the recent archive:

[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

To remove Eclipse

sudo rm -Rf /opt/eclipse/

sudo rm -Rf /usr/share/applications/eclipse.desktop

Lombok

sudo java -jar lombok.jar

6. TLP (Do battery during more)

sudo apt-get remove laptop-mode-tools
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

7. Generating SSH Key for Github

Creates a new ssh key, using the provided email as a label

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Start the ssh-agent in the background

eval "$(ssh-agent -s)"

Add your SSH key to the ssh-agent

ssh-add ~/.ssh/id_rsa

Copy the SSH key to your clipboard.

sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub

Add the SSH Key on Github Account

Test your Connection

ssh -T git@github.com

List existing SSH Keys

ls -al ~/.ssh

8. Always Show Options Menu

gsettings set com.canonical.Unity always-show-menus true

To remove

gsettings set com.canonical.Unity always-show-menus false

9. Ubuntu Plugins

System Load Indicator

sudo apt-get install indicator-multiload

Preload

sudo apt-get install preload

Caffeine

sudo apt-add-repository ppa:caffeine-developers/ppa

sudo apt-get update

sudo apt-get install caffeine

10. Perfomance Configs

Show all boot files

sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop

Removes Swap Percentual

sudo sysctl vm.swappiness=10

sudo gedit /etc/sysctl.conf

Colar esta linha no final do arquivo
vm.swappiness=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment