Skip to content

Instantly share code, notes, and snippets.

@gsouf
Last active March 11, 2016 00:01
Show Gist options
  • Save gsouf/5406233 to your computer and use it in GitHub Desktop.
Save gsouf/5406233 to your computer and use it in GitHub Desktop.
New Linux installation (Debian)
# For chromixium 1.5
# sh ./install.sh
# rm ./install.sh
sudo apt-get update -y
sudo apt-get upgrade -y
mkdir $HOME/bin
echo "# User binaries" >> ~/.bashrc
echo "export PATH=$PATH:$HOME/bin" >> ~/.bashrc
echo "installing vim"
sudo apt-get install vim -y
echo "Installing git..."
sudo apt-get install git -y
echo "Installing locate..."
sudo apt-get install locate -y
echo "installing Guake Terminal"
sudo apt-get install guake -y
echo "enabling Guake Terminal Startup"
echo "guake &" >> ~/.config/openbox/autostart
echo "installing chromium"
sudo apt-get install chromium -y
sudo update-alternatives --set x-www-browser /usr/bin/chromium
echo "Installing php5"
sudo apt-get install php5 php5-mysql php5-dev -y
echo "Preparing composer command"
curl -sS https://getcomposer.org/installer | php -- --install-dir=$HOME/bin
mv $HOME/bin/composer.phar $HOME/bin/composer
chmod +x $HOME/bin/composer
echo "# Composer" >> ~/.bashrc
echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc
echo "Installing mysql"
echo 'mysql-server mysql-server/root_password password' | sudo debconf-set-selections
echo 'mysql-server mysql-server/root_password_again password' | sudo debconf-set-selections
sudo apt-get install mariadb-server mariadb-client -y
echo "Installing apache2"
sudo apt-get install apache2 -y
echo "Initializing git bash prompt"
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt
# git prompt config
echo "# Git prompt" >> ~/.bashrc
echo "GIT_PROMPT_ONLY_IN_REPO=0" >> ~/.bashrc
echo "GIT_PROMPT_THEME=Solarized" >> ~/.bashrc
echo "source ~/.bash-git-prompt/gitprompt.sh" >> ~/.bashrc
echo "Updating mlocate database"
sudo updatedb
echo "installing node"
sudo apt-get install nodejs -y
echo "installing npm"
sudo apt-get install npm -y
echo "installing grunt"
sudo npm install -g grunt-cli
echo "installing file system"
sudo apt-get install krusader
echo "installing ruby"
sudo apt-get install ruby -y
echo "installing gem"
sudo apt-get install gem -y
sudo apt-get install firefox
echo "replacing default desktop"
sudo apt-get remove plank
sudo apt-get remove nautilus
sudo apt-get remove lxpanel
sudo apt-get install tint2
echo "removing useless documents"
rmdir ~/Music
rmdir ~/Public
rmdir ~/Videos
rm -Rf ~/Templates
echo "add common command aliases"
echo "# Custom aliases" >> ~/.bashrc
echo 'alias ls="ls -lha"' >> ~/.bashrc
echo 'alias clear="clear && clear"' >> ~/.bashrc
@gsouf
Copy link
Author

gsouf commented Mar 11, 2016

Autostart config:

# OB_Autostart config
LAUNCH_LIST = [ 
     ("Compositing display manager for Openbox","compton -cCGf -r 1 -o 0.1 -l 2 -t 2 -D 8 --sw-opti --fade-exclude 'class_g = \"Gnome-screenshot\"'","0","*"),
     ("Applications menu cache","openbox-menu xfce-applications.menu -p","1","*"),
     ("Restore desktop wallpaper on login","nitrogen --restore","1","*"),
     ("XFCE Power Manager Daemon","/usr/bin/xfce4-power-manager","1","*"),
     ("Mouse, touchpad & keyboard settings","$HOME/.config/chromixium-input","1","*"),
     ("PolicyKit Service","/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1","1","*"),
     ("Chromium fast launch","chromium-browser --silent-launch","1","*"),
     ("Notification panel logout icon","avatar-logout","8","*"),
     ("guake terminal","guake","2","*"),
     ("Tint2","tint2","1","*"),
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment