Skip to content

Instantly share code, notes, and snippets.

@aliaksandr-master
Last active January 3, 2017 11:57
Show Gist options
  • Save aliaksandr-master/043ace8f630c405fc97c to your computer and use it in GitHub Desktop.
Save aliaksandr-master/043ace8f630c405fc97c to your computer and use it in GitHub Desktop.
Reinstall Debian Jessie + KDE
# Linux x64 Debian Jessie + KDE
# nano
nano /etc/apt/sources.list
# add 'contrib non-free'
# disable src repos
# add new repos
apt-get install -y python-software-properties software-properties-common apt-transport-https
apt-add-repository 'deb http://manpages.ylsoftware.com/debian/ all main'
apt-add-repository 'deb http://dl.google.com/linux/chrome/deb/ stable main'
apt-add-repository 'deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free'
apt-add-repository 'deb http://www.deb-multimedia.org wheezy main non-free'
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
dpkg --add-architecture i386
apt-get update && apt-get install -y deb-multimedia-keyring
# SUDO
apt-get install -y sudo kdesu gksu
nano /etc/sudoers
## add {%user%} ALL=(ALL) ALL
# fix repos if you need
kdesudo software-properties-kde
## source list for check:
#deb http://ftp.by.debian.org/debian/ jessie main non-free
#deb http://security.debian.org/ jessie/updates main non-free
#deb http://ftp.by.debian.org/debian/ jessie-updates main non-free
#deb http://ftp.by.debian.org/debian/ jessie-backports main non-free
#deb http://manpages.ylsoftware.com/debian/ all main
#deb http://dl.google.com/linux/chrome/deb/ stable main
#deb http://www.deb-multimedia.org jessie main non-free
#deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free
# problem with duplicate
# http://serverfault.com/questions/376392/apt-get-duplicate-sources-list-entry-for-google-chrome-ubuntu-11-10
# >> When you installed chrome it most likely added a file in /etc/apt/sources.list.d/ named google-chrome.list. You should remove the line you manually added, and just keep the file that is in there, which is what the chrome package uses.
# configure locales
dpkg-reconfigure locales
# check only UTF-8 needed locals
# full upgrade
apt-get install -f && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoclean -y && apt-get autoremove -y
# BASE packages
apt-get install -y ttf-* vlc vlc-*
apt-get install -y cpufrequtils cputool hardinfo partitionmanager firmware-linux firmware-linux-free firmware-linux-nonfree unrar
apt-get install -y audacity font-manager libreoffice libreoffice-l10n-ru shutter filezilla gimp xclip libcurl3-dev iceweasel genisoimage florence accountsservice ntp google-chrome-stable
# google apps:
# https://www.google.com/linuxrepositories/
# driver for TP-Link wireless adapter
apt-get install bcmwl-kernel-source
# ADDITIONAL packages
apt-get install -y gwenview synergy quicksynergy
# XFCE packages
apt-get install -y guake gedit
# KDE packages
apt-get install -y kdegames gtk3-engines-oxygen gtk2-engines-oxygen gtk2-engines-qtcurve kde-l10n-ru plasma-widget-smooth-tasks kde-style-oxygen kde-config-* yakuake kdeconnect ktorrent okular okular-extra-backends clementine libreoffice-kde software-properties-kde lightdm-kde-greeter krusader kruler
# VIRTUAL BOX
apt-get install virtualbox virtualbox-guest-additions-iso virtualbox-ext-pack
# add your user to "vboxusers" group
nano /etc/group
# IF YOU NEED unetbootin
# need add repository with wheezy
# 'deb http://ftp.by.debian.org/debian/ wheezy main contrib non-free'
# speeding up loading with grub
nano /etc/default/grub
# set the numbers, save
update-grub
update-grub2
# Skype
## download archive from http://www.skype.com/ru/download-skype/skype-for-computer/
dpkg -i {%skype-install-file%}.deb
apt-get install -f
# sublime
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update && sudo apt-get install sublime-text-installer
# viber
# download from http://www.viber.com/ru/products/linux
dpkg -i viber.deb
apt-get install -f
# telegram
# download from https://desktop.telegram.org/
# change gtk styles to qtcurve and copy files after that
sudo cp ~/.gtkrc-2.0 /root/.gtkrc-2.0
# fixing pulseaudio problem
# https://wiki.debian.org/ru/PulseAudio
# SSH
# copy all from backup location
# chmod 0700 {%private-key-ssh-rsa-file-path%}
# git:
apt-get install -y httpie curl gcc git ssh gitk kdiff3 imagemagick
git config --global user.name "user"
git config --global user.email [email protected]
#git config --global core.editor kate
git config --global core.editor gedit
git config --global merge.tool kdiff3
git config --global push.default simple
# python
apt-get install -y python2.7 python-pip python-setuptools python-virtualenv autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
pip install --upgrade pip
pip install --upgrade virtualenv
# ruby
apt-get install -y ruby ruby-full gem
gem install sass && gem install compass && gem install hpricot && gem install premailer
# nodejs
apt-get install -y npm
sudo chown -R `whoami` /usr/local/
sudo chown -R `whoami` ~/.npm
npm i -g n
n stable
npm update -g npm
#ln -s /usr/bin/nodejs /usr/bin/node
npm i -g node-gyp
n latest && n stable && n --stable
node-gyp --python /usr/bin/python2.7
npm config set python /usr/bin/python2.7
npm i -g npm-check-updates bower express grunt-cli gulp yo knex generator-generator generator-htmlemail forever static-server eslint less karma-cli
# DOCKER
apt-get install docker.io
# S3 http://s3tools.org/s3cmd-howto
apt-get install s3cmd
# s3cmd --configure
# add %access key% and %secret%
# Apache + Php
apt-get install -y apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1
# NGINX + Php
apt-get install -y nginx php5 php5-fpm
# MySQL
apt-get install -y libdbd-mysql-perl libdbi-perl libnet-daemon-perl libpq5 mysql-client mysql-common mysql-server mysql-server php5-common php5-mysql phpmyadmin
# MongoDB
apt-get install -y mongodb mongodb-clients mongodb-server mongodb
# PostgreSQL
apt-get install -y postgresql pgadmin3 pgadmin3-data pgadmin3-dbg
# passwd postgres
# su postgres
# createuser -sdrP pgdbuser
# ARDUINO
sudo apt-get install arduino-core arduino arduino-mk
nano /etc/group
# add "dialout" user into group of your user. restart OS (or logout) !!!!
# JAVA: download from oracle
apt-get install -y java-package
make-jpkg ./Program/installed/jdk-8u25-linux-x64.tar.gz #for example
# SCALA SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
apt-get update && apt-get install sbt -y
# XUBUNTU
# enable hibernate
sudo -s
nano /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
#> Look for
#> [Disable hibernate by default in upower]
#> [Disable hibernate by default in logind]
#> Change the value of "ResultActive=no" to "ResultActive=yes" in both, and then restart your system.
# Hidemyass
# apt-get install pptp-linux pptpd ppp curl
# custom .bin files
mkdir /home/$(whoami)/.mybin
printf "\nexport PATH=\$PATH:/home/`whoami`/.mybin\n\n" >> /home/$(whoami)/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment