Last active
October 4, 2017 10:15
-
-
Save fleutot/1ff70ae572bb0f5f2dc451a291486e77 to your computer and use it in GitHub Desktop.
Install script for a fresh apt-based distro
This file contains hidden or 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
| #!/bin/bash | |
| # Packages | |
| sudo apt-get update | |
| sudo apt-get install -y git | |
| sudo apt-get install -y gitk | |
| sudo apt-get install -y emacs | |
| sudo apt-get install -y trayer | |
| sudo apt-get install -y xmonad | |
| sudo apt-get install -y xmobar | |
| sudo apt-get install -y compton | |
| sudo apt-get install -y unclutter | |
| sudo apt-get install -y kbdd | |
| sudo apt-get install -y feh | |
| sudo apt-get install -y icdiff | |
| sudo apt-get install -y xfonts-terminus | |
| sudo apt-get install -y arc-theme | |
| sudo apt-get install -y nm-applet | |
| sudo apt-get install -y ack-grep | |
| sudo apt-get install -y bash-completion | |
| sudo apt-get install -y xclip | |
| # Create an rsa key to connect to github.com | |
| if [ ! -f $HOME/.ssh/id_rsa.pub ]; then | |
| echo "No existing rsa key found, create a new one..." | |
| ssh-keygen | |
| else | |
| echo "Using existing rsa key..." | |
| fi | |
| if [ -f $HOME/.ssh/id_rsa.pub ]; then | |
| xclip -sel clip < $HOME/.ssh/id_rsa.pub | |
| echo "SSH public key saved to clipboard, create a new key at github..." | |
| xdg-open https://github.com/settings/keys | |
| else | |
| echo "\033[1;31mERROR\033[0m: failed to create or find an rsa public key!" | |
| exit 1 | |
| fi | |
| # Clone settings from github.com | |
| # The following commands should not be run as super user. | |
| cd $HOME | |
| git clone git://github.com/fleutot/.emacs.d.git | |
| git clone git://github.com/fleutot/homebin.git && mv homebin bin | |
| git clone git://github.com/fleutot/dotfiles.git && cd dotfiles && ./setlinks | |
| cd $HOME | |
| git clone git://github.com/fleutot/kinesis.git | |
| # Notify the user about things that might have to be done manually | |
| echo -e "\033[1;33mNOTE\033[0m: unclutter has default settings in /etc/default/unclutter. You might want to edit this file to start unclutter on your own, with the options you want." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment