Skip to content

Instantly share code, notes, and snippets.

@PavelBass
Last active February 21, 2023 06:28
Show Gist options
  • Save PavelBass/43899505b91a69938c9c to your computer and use it in GitHub Desktop.
Save PavelBass/43899505b91a69938c9c to your computer and use it in GitHub Desktop.

Revisions

  1. PavelBass revised this gist May 20, 2015. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions Reinstall OS Debian Ubuntu.md
    Original 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
  2. PavelBass revised this gist Apr 6, 2015. 1 changed file with 25 additions and 1 deletion.
    26 changes: 25 additions & 1 deletion Reinstall OS Debian Ubuntu.md
    Original 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.

    First dont forget ``` apt-get install vim ```. And configure!
    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
    ```
  3. PavelBass revised this gist Apr 6, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Reinstall OS Debian Ubuntu.md
    Original 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
    ```
  4. PavelBass revised this gist Apr 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Reinstall OS Debian Ubuntu.md
    Original 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)
    ### 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
  5. PavelBass revised this gist Apr 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Reinstall OS Debian Ubuntu.md
    Original 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
  6. PavelBass revised this gist Apr 5, 2015. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions Reinstall OS Debian Ubuntu.md
    Original 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
  7. PavelBass revised this gist Apr 4, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Reinstall OS Debian Ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,7 @@ rm -f nginx_signing.key
    ```

    4. PostgreSQL
    -------------

    ### a) Debian

  8. PavelBass revised this gist Apr 4, 2015. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions Reinstall OS Debian Ubuntu.md
    Original 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
    ```
  9. PavelBass renamed this gist Apr 4, 2015. 1 changed file with 0 additions and 0 deletions.
  10. PavelBass renamed this gist Apr 4, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  11. PavelBass revised this gist Apr 4, 2015. 1 changed file with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions gistfile1.md
    Original 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
    ```
  12. PavelBass revised this gist Apr 4, 2015. No changes.
  13. PavelBass revised this gist Apr 4, 2015. 1 changed file with 34 additions and 1 deletion.
    35 changes: 34 additions & 1 deletion gistfile1.md
    Original 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
  14. PavelBass created this gist Apr 4, 2015.
    14 changes: 14 additions & 0 deletions gistfile1.md
    Original 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
    ```