Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Last active December 20, 2015 01:49
Show Gist options
  • Save the-teacher/6052075 to your computer and use it in GitHub Desktop.
Save the-teacher/6052075 to your computer and use it in GitHub Desktop.
Debian install
Prepare
apt-get update && apt-get upgrade
apt-get -f install
apt-get install dialog
Base
apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxslt1.1 libxslt1-dev libxml2 libxml2-dev libxslt-dev autoconf libc6-dev -y
ImageMagick
apt-get install aptitude -y
aptitude install libgd2-xpm libmagickwand-dev -y
apt-get install imagemagick librmagick-ruby -y
MySQL
apt-get install mysql-server mysql-common mysql-client libmysqlclient-dev libmysql-ruby -y
mysql -u root -pPASSWORD
NodeJS
apt-get install checkinstall
mkdir ~/src && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
# checkinstall -- (в диалоге удалить "v" перед номером версии (пункт 3))
checkinstall
sudo dpkg -i node_*
RVM
\curl -L https://get.rvm.io | bash -s stable --ruby
source /usr/local/rvm/scripts/rvm
Monit
aptitude install monit
which monit
monit quit
monit -c /etc/monit/monitrc
/etc/monit/monitrc
/etc/monit/conf.d/*
MONIT CONF
set httpd port 2812 and
use address localhost
allow localhost
service monit restart
monit status
@the-teacher
Copy link
Author

$ sudo locale-gen
$ sudo dpkg-reconfigure locales
$ export LANGUAGE="en_US.UTF-8"
$ export LC_ALL="en_US.UTF-8"

sudo apt-get update --fix-missing
sudo apt-get install -y advancecomp
sudo apt-get install -y gifsicle
sudo apt-get install -y jhead
sudo apt-get install -y jpegoptim
sudo apt-get install -y libjpeg-progs
sudo apt-get install -y optipng
sudo apt-get install -y pngcrush

@the-teacher
Copy link
Author

sudo dpkg --purge --force-depends libssl1.0.0:i386
sudo dpkg --configure -a

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