Last active
February 21, 2023 06:28
-
-
Save PavelBass/43899505b91a69938c9c to your computer and use it in GitHub Desktop.
Revisions
-
PavelBass revised this gist
May 20, 2015 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -74,6 +74,20 @@ pip install Pillow echo "# nginx" >> /etc/apt/sources.list echo "deb http://nginx.org/packages/debian/ wheezy nginx" >> /etc/apt/sources.list echo "deb-src http://nginx.org/packages/debian/ wheezy nginx" >> /etc/apt/sources.list ``` ### b) Ubuntu ``` bash echo "# nginx" >> /etc/apt/sources.list echo "deb http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list echo "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list ``` ### Both ``` bash # key wget http://nginx.org/keys/nginx_signing.key -
PavelBass revised this gist
Apr 6, 2015 . 1 changed file with 25 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,30 @@ Reinstal OS Here is a list of some libs, commands after OS installation. 0. Before reinstall ------------------- ### Make USB ``` bash # Find name of device sudo fdisk -l # Unmount unmount /dev/sdc1 # Format sudo mkdosfs -n 'USB-name' -I /dev/sdc -F 32 isohybrid file_name.iso # Copy iso to sdc (device, not partition) sudo dd if=file_name.iso of=/dev/sdc bs=4k # Unplug sync sudo eject /dev/sdc ``` 1. WiFi card: ------------- @@ -96,4 +118,6 @@ Other ``` bash apt-get install ssh apt-get install vim apt-get install git ``` -
PavelBass revised this gist
Apr 6, 2015 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -89,4 +89,11 @@ apt-get update # install apt-get install postgresql-9.4 -y rm -f ACCC4CF8.asc ``` Other ----- ``` bash apt-get install ssh ``` -
PavelBass revised this gist
Apr 5, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -74,7 +74,7 @@ echo "# postgresql" >> /etc/apt/sources.list echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list ``` ### b) Ubuntu ``` bash echo "# postgresql" >> /etc/apt/sources.list echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list -
PavelBass revised this gist
Apr 5, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -80,7 +80,7 @@ echo "# postgresql" >> /etc/apt/sources.list echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list ``` ### Both ``` bash # key wget https://www.postgresql.org/media/keys/ACCC4CF8.asc apt-key add ACCC4CF8.asc -
PavelBass revised this gist
Apr 5, 2015 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -72,6 +72,14 @@ rm -f nginx_signing.key # source echo "# postgresql" >> /etc/apt/sources.list echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list ``` ### b) ``` bash echo "# postgresql" >> /etc/apt/sources.list echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list ``` ### Both # key wget https://www.postgresql.org/media/keys/ACCC4CF8.asc -
PavelBass revised this gist
Apr 4, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -64,6 +64,7 @@ rm -f nginx_signing.key ``` 4. PostgreSQL ------------- ### a) Debian -
PavelBass revised this gist
Apr 4, 2015 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -61,4 +61,23 @@ apt-get update # install apt-get install nginx -y rm -f nginx_signing.key ``` 4. PostgreSQL ### a) Debian ``` bash # source echo "# postgresql" >> /etc/apt/sources.list echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" >> /etc/apt/sources.list # key wget https://www.postgresql.org/media/keys/ACCC4CF8.asc apt-key add ACCC4CF8.asc apt-get update # install apt-get install postgresql-9.4 -y rm -f ACCC4CF8.asc ``` -
PavelBass renamed this gist
Apr 4, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
PavelBass renamed this gist
Apr 4, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
PavelBass revised this gist
Apr 4, 2015 . 1 changed file with 17 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -45,3 +45,20 @@ pip install Pillow -------- ### a) Debian ``` bash # sources echo "# nginx" >> /etc/apt/sources.list echo "deb http://nginx.org/packages/debian/ wheezy nginx" >> /etc/apt/sources.list echo "deb-src http://nginx.org/packages/debian/ wheezy nginx" >> /etc/apt/sources.list # key wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key apt-get update # install apt-get install nginx -y rm -f nginx_signing.key ``` -
PavelBass revised this gist
Apr 4, 2015 . No changes.There are no files selected for viewing
-
PavelBass revised this gist
Apr 4, 2015 . 1 changed file with 34 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,13 @@ Reinstal OS =========== Here is a list of some libs, commands after OS installation. First dont forget ``` apt-get install vim ```. And configure! 1. WiFi card: ------------- ``` bash lspci | grep Network @@ -12,3 +17,31 @@ For Broadcom BCM43142 apt-get install bcmwl-kernel-source ``` 2. Python --------- ``` bash apt-get install build-essential -y # python apt-get install python, python-dev -y # pip, vurtualenv apt-get install python-pip -y pip install virtualenv # PostgreSQL apt-get install libpq libpq-dev pip install psycopg2 # Pillow apt-get install libjpeg8-dev zlib1g-dev libtiff-dev -y apt-get install libfreetype6-dev liblcms-dev -y pip install Pillow ``` 3. NGINX -------- ### a) Debian -
PavelBass created this gist
Apr 4, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Reinstal OS =========== 1. WiFi card: ---------- ``` bash lspci | grep Network ``` For Broadcom BCM43142 ```bash apt-get install bcmwl-kernel-source ```