Skip to content

Instantly share code, notes, and snippets.

@fada21
Last active May 10, 2018 15:16
Show Gist options
  • Save fada21/f555fbe7ce827f2c6555 to your computer and use it in GitHub Desktop.
Save fada21/f555fbe7ce827f2c6555 to your computer and use it in GitHub Desktop.
# ubuntu/mint setup tips
# SETUP ============
## =================
# http://mintguide.org/tools/317-make-a-bootable-flash-drive-from-an-iso-image-on-linux-mint.html
# df # lists mounted devices
# sudo dd if=/home/USER/linuxmint.iso of=/dev/sdb
# watch -n5 'sudo kill -USR1 $(pgrep ^dd)' # monitoring dd progress
# git ppa
sudo add-apt-repository ppa:git-core/ppa
# sbt http://www.scala-sbt.org/release/tutorial/Installing-sbt-on-Linux.html
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
# gradle ppa
sudo add-apt-repository ppa:cwchien/gradle
# atom text editor
sudo add-apt-repository ppa:webupd8team/atom
# virtual box oracle https://www.virtualbox.org/wiki/Linux_Downloads
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian xenial contrib' >> /etc/apt/sources.list.d/virtualbox.list"
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
# chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# utils
# openshot-qt video editor
# sudo add-apt-repository ppa:openshot.developers/ppa
# handbrake dvd ripper
# sudo add-apt-repository ppa:stebbins/handbrake-releases
# UPDATE ===========
sudo apt-get update
# INSTALL ==========
sudo apt-get install git
sudo apt-get isntall gitinspector
sudo apt-get install docker
sudo apt-get install sbt
sudo apt-get install gradle
sudo apt-get install atom
# virtualbox for genymotion
sudo apt-get install virtualbox-5.1 # or newer version
# extra work might be needed when kernel got updated https://www.genymotion.com/#!/developers/user-guide#installing-genymotion
sudo apt-get install google-chrome-stable
# screen dim - http://jonls.dk/redshift/
sudo apt-get install redshift redshift-gtk
# sudo apt-get install openshot-qt
# sudo apt-get install handbrake-gtk
sudo apt install chkrootkit
# Atom packages restore `apm stars --user fada21 --install`
# tips for Linux Mint distro
# android sdk and tools
# export PATH=$PATH:/home/fada21/Android/Sdk/platform-tools:/home/fada21/Android/Sdk/tools:/home/fada21/Soft/genymotion
# put above to ~/.profile
## QUIT short cut -> 'shutdown -P now', place in menu for quick shutdown,
## sudo chmod u+s /sbin/shutdown
## icon in /usr/share/icons/Mint-X/actions/scalable/...
## key bindings
## toggle scale - Super-fn-Page_Down
## toggle exposition - Super-fn-Page_Up
## maximize - Ctrl-fn-Up
## minimize - Ctrl-fn-Down
## switch to left workspace - Super-fn-Left
## switch to right workspace - Super-fn-Right
## shutdown prompt - Ctrl-Super-q
## lock screen - Super-q
## logout prompt - Ctrl-Alt-Del
## X remove Alt-F7 -> Idea conflict
cat > ~/extra_conf.sh << EOF
# run on all adb devices
## http://stackoverflow.com/questions/8671819/how-can-i-use-adb-to-uninstall-an-apk-from-multiple-connected-devices
adba() {
adb devices | while read line
do
if [ ! "\$line" = "" ] && [ \`echo \$line | awk '{print \$2}'\` = "device" ]
then
device=\`echo \$line | awk '{print \$1}'\`
echo "\$device \$@ ..."
adb -s \$device \$@
fi
done
}
alias ll='ls -la'
alias ..='cd ..'
alias ...='cd ../../'
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment