Last active
March 11, 2016 00:01
-
-
Save gsouf/5406233 to your computer and use it in GitHub Desktop.
New Linux installation (Debian)
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
# 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Autostart config: