Last active
May 9, 2019 19:58
-
-
Save joshuawootonn/3e17de98d17c3fc9d4504656fa3d797a to your computer and use it in GitHub Desktop.
xubuntu setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
#install chrome | |
sudo apt-get install libxss1 libappindicator1 libindicator7 | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo apt install ./google-chrome*.deb | |
# install node with the n package | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
# install general packages | |
sudo apt-get install npm curl | |
# this will enable git cred storage | |
git config --global credential.helper store | |
git config --global user.name "joshuawootonn" | |
git config --global user.email "[email protected]" | |
git config --global user.password "LOOK AT ME" | |
# install 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-get update && sudo apt-get install yarn | |
# add repo for albert | |
wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_18.04/Release.key -O Release.key | |
sudo apt-key add - < Release.key | |
sudo apt-get update | |
# install albert | |
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:manuelschneid3r.list" | |
sudo apt-get update | |
sudo apt-get install albert | |
#install java version 8 | |
sudo apt update | |
sudo apt install openjdk-8-jdk | |
#increase watch limit so cra will hot reload | |
echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches | |
#imwheel | |
sudo apt-get install imwheel | |
# stick this in ~/.imwheelrc | |
".*" | |
None, Up, Up, 5 | |
None, Down, Down, 5 | |
# vscode registry | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
# vscode install | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get install code # or code-insiders | |
#make terminal not case sensitive | |
echo set completion-ignore-case on | sudo tee -a /etc/inputrc | |
#clamshell mode | |
https://askubuntu.com/a/372616 | |
#install postman | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
rm postman.tar.gz | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
# Reset plasma | |
https://superuser.com/questions/946206/kde-plasma-5-no-taskbar-and-cant-right-click-desktop | |
# Reset plasma on login | |
# https://unix.stackexchange.com/questions/445005/kubuntu-18-04-cron-task-does-not-load-reboot | |
#!/bin/bash | |
dbus-monitor --session "type='signal',interface='org.freedesktop.ScreenSaver'" | | |
while read x; do | |
case "$x" in | |
*"boolean true"*) echo SCREEN_LOCKED;; | |
*"boolean false"*) killall plasmashell | kstart plasmashell;; | |
esac | |
done | |
# Installing Ruby/Rais | |
echo 'Installing rbenv...' | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
cd ~/.rbenv && src/configure && make -C src >/dev/null | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
~/.rbenv/bin/rbenv init | |
echo 'Verifying rbenv install...' | |
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash | |
echo 'Installing ruby-build dependencies...' | |
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev -y | |
echo 'Installing ruby-build...' | |
mkdir -p "$(rbenv root)"/plugins | |
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build | |
echo 'Installing ruby...' | |
rbenv install 2.5.1 | |
rbenv global 2.5.1 | |
rbenv rehash | |
echo 'Installing sqlite3...' | |
sudo apt-get install libsqlite3-dev -y | |
gem install sqlite3 | |
echo 'Installing MySQL...' | |
sudo apt-get install libmysqlclient-dev | |
sudo apt-get install mysql-server mysql-common mysql-client libmysqlclient-dev | |
gem install mysql2 | |
# remove the need for sudo on mysql | |
https://askubuntu.com/questions/766334/cant-login-as-mysql-user-root-from-normal-user-account-in-ubuntu-16-04 | |
# add password to root (user % instead of localhost) | |
https://stackoverflow.com/questions/7534056/mysql-root-password-change | |
echo 'Installing ruby gems...' | |
gem install bundler rails rspec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment