Skip to content

Instantly share code, notes, and snippets.

@fomvasss
Last active February 18, 2024 19:07
Show Gist options
  • Select an option

  • Save fomvasss/47d4e3260d9165d78ec9b96d0c25dfbb to your computer and use it in GitHub Desktop.

Select an option

Save fomvasss/47d4e3260d9165d78ec9b96d0c25dfbb to your computer and use it in GitHub Desktop.

Revisions

  1. fomvasss revised this gist Jan 7, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux.md
    Original file line number Diff line number Diff line change
    @@ -136,11 +136,11 @@ https://notion-enhancer.github.io/
    ```
    sudo apt install snapd
    sudo snap install opera
    sudo snap install postman
    sudo snap install telegram-desktop
    sudo snap install code --classic
    sudo snap install sublime-text --classic
    sudo snap install mysql-workbench-community
    sudo snap install postman (not woking sync!)
    sudo snap install vokoscreen-ng
    sudo snap install vlc
    sudo snap install youtube-dl
  2. fomvasss revised this gist Sep 14, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -152,6 +152,8 @@ sudo snap install bashtop
    ```
    Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`

    https://dbeaver.io/download/

    ## JatBrains
    Install JatBrains Toolbox, PhpStorm, activate and sync settings: https://www.jetbrains.com/ru-ru/toolbox-app/

  3. fomvasss revised this gist Sep 12, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -148,6 +148,7 @@ sudo snap install wallpaperdownloader
    sudo snap install flameshot
    sudo snap install pinta-james-carroll
    sudo snap install xmind
    sudo snap install bashtop
    ```
    Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`

  4. fomvasss revised this gist Aug 6, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@
    ## Upgrate OS
    ```
    sudo apt upgrate
    sudo apt -y install linux-firmware
    ```

    ### Add swap (optional)
  5. fomvasss revised this gist Jul 19, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,8 @@ sudo apt install git
    sudo snap install screencloud
    sudo apt install hardinfo
    ```

    https://github.com/ohmyzsh/ohmyzsh
    ```
    sudo apt install zsh
    sudo apt install yadm
  6. fomvasss revised this gist Jul 19, 2023. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -42,14 +42,14 @@ sudo apt install htop
    sudo apt install curl
    sudo apt install wget
    sudo apt install git
    sudo apt install zsh
    sudo apt install yadm
    yadm clone git@github.com:fomvasss/dotfiles.git
    chsh
    sudo snap install screencloud
    sudo apt install hardinfo
    ```
    ```
    sudo apt install zsh
    sudo apt install yadm
    yadm clone git@github.com:fomvasss/dotfiles.git
    chsh
    Login Shell [/bin/bash]: /usr/bin/zsh
    ```

  7. fomvasss revised this gist Jul 19, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,7 @@ sudo mkswap /swapfile
    sudo swapon /swapfile
    /swapfile swap swap defaults 0 0 в файл /etc/fstab
    ```
    https://linuxize.com/post/create-a-linux-swap-file/

    ## Install GoogleChrome
    Download .deb package and run:
  8. fomvasss revised this gist Jul 15, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -46,6 +46,7 @@ sudo apt install yadm
    yadm clone git@github.com:fomvasss/dotfiles.git
    chsh
    sudo snap install screencloud
    sudo apt install hardinfo
    ```
    ```
    Login Shell [/bin/bash]: /usr/bin/zsh
  9. fomvasss revised this gist Jun 13, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -125,6 +125,8 @@ Find and install: Dash to Panel, Freon (by UshakovVasilii), Status Area Horizont
    sudo apt-get install dconf-editor
    ```

    https://notion-enhancer.github.io/

    ## Snap apps
    ```
    sudo apt install snapd
  10. fomvasss revised this gist May 2, 2023. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -208,6 +208,12 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - Postman
    - GraphQLPlayground

    - sudo add-apt-repository ppa:obsproject/obs-studio
    - sudo apt install obs-studio






    ## WueUSB
  11. fomvasss revised this gist Apr 26, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -140,6 +140,7 @@ sudo snap install youtube-dl
    sudo snap install wallpaperdownloader
    sudo snap install flameshot
    sudo snap install pinta-james-carroll
    sudo snap install xmind
    ```
    Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`

  12. fomvasss revised this gist Mar 16, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,7 @@ sudo apt install zsh
    sudo apt install yadm
    yadm clone git@github.com:fomvasss/dotfiles.git
    chsh
    sudo snap install screencloud
    ```
    ```
    Login Shell [/bin/bash]: /usr/bin/zsh
  13. fomvasss revised this gist Feb 16, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,7 @@ ssh-keygen

    ## Console apps:
    ```
    sudo apt install ncal
    sudo apt install htop
    sudo apt install curl
    sudo apt install wget
  14. fomvasss revised this gist Aug 10, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -181,6 +181,7 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - SimpleScreenRecorder?
    - Vokoscreen (`sudo apt-get install vokoscreen` of snap)
    - Odio (radio)
    - FreeTube
    - Pencil (prototype)
    - Pinta (graphics editor)
    - Flameshot (printscreen)
  15. fomvasss revised this gist Jul 7, 2022. 1 changed file with 26 additions and 0 deletions.
    26 changes: 26 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -265,3 +265,29 @@ sudo apt install composer ?
    mysqldump -u homestead -psecret --all-databases > homestead-20150727_0913.sql
    mysql -u homestead -psecret < homestead-20150727_0913.sql
    ```

    # VPN
    ```
    sudo apt install wireguard
    nmcli c import type wireguard file ~/App/vpn.wg.conf
    nmcli c up vpn.wg
    ```

    Use:
    ```
    ssh root@10.200.xxx.x
    ```

    File
    ```
    [Interface]
    PrivateKey = ixxxxxxxxxxxxxxxI=
    Address = xx.xxx.xxx.xx/xx
    [Peer]
    PublicKey = MxxxxxxxxxxxxxxxE=
    PresharedKey = 7xxxxxxxxxxxxxxxxxxxxx8=
    AllowedIPs = xx.xxx.xxx.0/24
    Endpoint = xxx.xxx.xxx.xxx:xxxx
    PersistentKeepalive = 15
    ```
  16. fomvasss revised this gist Nov 17, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -189,6 +189,8 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - KDE partition manager
    - QBTorrent
    - Postman
    - WPS Office


    - Snap (`sudo apt install snapd`)
    - Opera
  17. fomvasss revised this gist Nov 13, 2021. 1 changed file with 12 additions and 2 deletions.
    14 changes: 12 additions & 2 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -131,7 +131,7 @@ sudo snap install telegram-desktop
    sudo snap install code --classic
    sudo snap install sublime-text --classic
    sudo snap install mysql-workbench-community
    sudo snap install postman
    sudo snap install postman (not woking sync!)
    sudo snap install vokoscreen-ng
    sudo snap install vlc
    sudo snap install youtube-dl
    @@ -188,6 +188,7 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - Kdenlive (video editor)
    - KDE partition manager
    - QBTorrent
    - Postman

    - Snap (`sudo apt install snapd`)
    - Opera
    @@ -201,7 +202,16 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - Postman
    - GraphQLPlayground

    -


    ## WueUSB
    ```
    1. wget mirrors.kernel.org/ubuntu/pool/universe/w/wxwidgets3.0/libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb
    2. sudo dpkg -i libwxgtk*_amd64.deb
    3. sudo apt update
    4. ## потому что и в этом случае ругается ## sudo apt --fix-broken install
    5. sudo apt install woeusb
    ```

    ## Linux: Gnome, Interface, Settings

  18. fomvasss revised this gist Oct 20, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -187,6 +187,7 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - XMind (snap)
    - Kdenlive (video editor)
    - KDE partition manager
    - QBTorrent

    - Snap (`sudo apt install snapd`)
    - Opera
  19. fomvasss revised this gist Aug 30, 2021. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -241,4 +241,14 @@ sudo apt install composer ?
    - https://losst.ru/ustanovka-php-7-v-ubuntu-2


    ### SQL

    #### Homestead backup DB
    ```
    0 11 * * * mysqldump -u homestead -psecret --all-databases > /home/vagrant/www/backup/homestead-`date +\%Y_\%m_\%d__\%H_\%M_\%S`.sql
    ```

    ```
    mysqldump -u homestead -psecret --all-databases > homestead-20150727_0913.sql
    mysql -u homestead -psecret < homestead-20150727_0913.sql
    ```
  20. fomvasss revised this gist Jan 16, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -137,6 +137,7 @@ sudo snap install vlc
    sudo snap install youtube-dl
    sudo snap install wallpaperdownloader
    sudo snap install flameshot
    sudo snap install pinta-james-carroll
    ```
    Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`

  21. fomvasss revised this gist Nov 23, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -50,6 +50,7 @@ Login Shell [/bin/bash]: /usr/bin/zsh
    ```

    Set default **ZSH** in your termanal

    Set **git** configs:
    ```
    git config --global user.name YourName
  22. fomvasss revised this gist Nov 23, 2020. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion Linux.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,12 @@ chsh
    Login Shell [/bin/bash]: /usr/bin/zsh
    ```

    Set default zsh in your termanal
    Set default **ZSH** in your termanal
    Set **git** configs:
    ```
    git config --global user.name YourName
    git config --global user.email YourEmail@gmail.com
    ```

    ## Vagrant/Homestead
    ```
  23. fomvasss revised this gist Nov 23, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux.md
    Original file line number Diff line number Diff line change
    @@ -111,7 +111,7 @@ sudo apt-get install lm-sensors
    sudo sensors-detect
    ```
    Visit: https://extensions.gnome.org/
    Find and install: Dash to Panel, Freon (by UshakovVasilii), Status Area Horizontal Spacing (by p91paul)
    Find and install: Dash to Panel, Freon (by UshakovVasilii), Status Area Horizontal Spacing (by p91paul), Draw On You Screen (by abakkk)

    ```
    sudo apt-get install dconf-editor
  24. fomvasss revised this gist Nov 23, 2020. 1 changed file with 16 additions and 8 deletions.
    24 changes: 16 additions & 8 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@ chmod 644 ~/.ssh/config
    chmod 600 ~/.ssh/id_rsa*
    chmod 644 ~/.ssh/*.pub
    ```
    or generate new keys *https://www.digitalocean.com/community/tutorials/ssh-ubuntu-18-04-ru*:
    or generate new keys https://www.digitalocean.com/community/tutorials/ssh-ubuntu-18-04-ru:
    ```
    ssh-keygen
    ```
    @@ -56,7 +56,7 @@ Set default zsh in your termanal
    sudo dpkg -i ~/Downloads/virtualbox...
    sudo dpkg -i ~/Downloads/vagrant...
    ```
    *https://laravel.com/docs/8.x/homestead#installation-and-setup*
    https://laravel.com/docs/8.x/homestead#installation-and-setup

    Run:
    ```
    @@ -73,22 +73,30 @@ NFS (optional): http://tech.osteel.me/posts/2016/01/19/how-to-enable-nfs-on-lara

    #### Databases
    - Backup all Databases
    ```mysqldump -u homestead -psecret --all-databases > backup.sql```
    ```
    mysqldump -u homestead -psecret --all-databases > backup.sql
    ```
    or
    - Backup selected Databases
    ```
    mysqldump -u homestead -psecret --databases db1 db2 db3 > ~/www/backup/backup23112020.sql
    ```
    - Restore Databases with backup
    ```mysql -u homestead -psecret < backup.sql```
    ```
    mysql -u homestead -psecret < backup.sql
    ```

    #### Files
    - Backup files (without compress)
    ```tar -cvf App.tar ~/App```
    ```
    tar -cvf App.tar ~/App
    ```
    - Restore files
    ```tar -xvf App.tar -C ~/App```
    ```
    tar -xvf App.tar -C ~/App
    ```

    *https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/*
    https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/

    ## Interface
    Download fonts (*JetBrainsMono*, *FiraCode*,...) to dir `~/.fonts`:
    @@ -137,7 +145,7 @@ fnm use 12
    fnm default 12
    ```

    *https://github.com/Schniz/fnm*
    https://github.com/Schniz/fnm

    Example use in projects:
    ```
  25. fomvasss revised this gist Nov 23, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux.md
    Original file line number Diff line number Diff line change
    @@ -103,7 +103,7 @@ sudo apt-get install lm-sensors
    sudo sensors-detect
    ```
    Visit: https://extensions.gnome.org/
    Find and install: Dash to Panel, Freon (by UshakovVasilii),
    Find and install: Dash to Panel, Freon (by UshakovVasilii), Status Area Horizontal Spacing (by p91paul)

    ```
    sudo apt-get install dconf-editor
  26. fomvasss revised this gist Nov 23, 2020. 1 changed file with 35 additions and 136 deletions.
    171 changes: 35 additions & 136 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -5,12 +5,21 @@
    sudo apt upgrate
    ```

    ### Add swap (optional)
    ```
    sudo fallocate -l 4G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    /swapfile swap swap defaults 0 0 в файл /etc/fstab
    ```

    ## Install GoogleChrome
    Download .deb package and run:
    ```
    sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb
    ```
    Sync accounts
    Add & Sync Google accounts

    ## Set SSH keys
    Copy old ssh keys in `~/.ssh` dir and set:
    @@ -20,7 +29,7 @@ chmod 644 ~/.ssh/config
    chmod 600 ~/.ssh/id_rsa*
    chmod 644 ~/.ssh/*.pub
    ```
    or generate new keys (https://www.digitalocean.com/community/tutorials/ssh-ubuntu-18-04-ru):
    or generate new keys *https://www.digitalocean.com/community/tutorials/ssh-ubuntu-18-04-ru*:
    ```
    ssh-keygen
    ```
    @@ -39,14 +48,15 @@ chsh
    ```
    Login Shell [/bin/bash]: /usr/bin/zsh
    ```

    Set default zsh in your termanal

    ## Vagrant/Homestead
    ```
    sudo dpkg -i ~/Downloads/virtualbox...
    sudo dpkg -i ~/Downloads/vagrant...
    ```
    https://laravel.com/docs/8.x/homestead#installation-and-setup
    *https://laravel.com/docs/8.x/homestead#installation-and-setup*

    Run:
    ```
    @@ -56,23 +66,34 @@ Install vagrant plugins:
    ```
    vagrant plugin install vagrant-hostsupdater
    ```

    NFS (optional): http://tech.osteel.me/posts/2016/01/19/how-to-enable-nfs-on-laravel-homestead.html

    ### Backup/Restore Laravel Homestead

    #### Databases
    - Backup All Databases
    - Backup all Databases
    ```mysqldump -u homestead -psecret --all-databases > backup.sql```
    - Restore All Databases
    or
    - Backup selected Databases
    ```
    mysqldump -u homestead -psecret --databases db1 db2 db3 > ~/www/backup/backup23112020.sql
    ```
    - Restore Databases with backup
    ```mysql -u homestead -psecret < backup.sql```

    #### Files
    - Backup files
    - Backup files (without compress)
    ```tar -cvf App.tar ~/App```
    - Restore files
    ```tar -xvf App.tar -C ~/App```

    *https://linuxize.com/post/how-to-back-up-and-restore-mysql-databases-with-mysqldump/*

    ## Interface
    Download fonts (*JetBrainsMono*, *FiraCode*,...) to dir `~/.fonts`:

    Gnome Tweak Tools (https://help.ubuntu.ru/wiki/gnome-tweak-tool)
    Install Gnome Tweak Tools (https://help.ubuntu.ru/wiki/gnome-tweak-tool)
    ```
    sudo apt-get install gnome-tweak-tool
    ```
    @@ -82,7 +103,7 @@ sudo apt-get install lm-sensors
    sudo sensors-detect
    ```
    Visit: https://extensions.gnome.org/
    Find and install: Dash to Panel, Freon (by UshakovVasilii)
    Find and install: Dash to Panel, Freon (by UshakovVasilii),

    ```
    sudo apt-get install dconf-editor
    @@ -103,11 +124,10 @@ sudo snap install youtube-dl
    sudo snap install wallpaperdownloader
    sudo snap install flameshot
    ```
    (Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`)
    Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`

    ## JatBrains
    Install PhpStorm, activate and sync settings
    https://www.jetbrains.com/ru-ru/toolbox-app/
    Install JatBrains Toolbox, PhpStorm, activate and sync settings: https://www.jetbrains.com/ru-ru/toolbox-app/

    ## FNM
    ```
    @@ -116,6 +136,9 @@ fnm install 12
    fnm use 12
    fnm default 12
    ```

    *https://github.com/Schniz/fnm*

    Example use in projects:
    ```
    npm i
    @@ -131,7 +154,7 @@ npm i gulp@3.9.1
    ```
    npm install -g apidoc
    ```
    Exaple ru generate:
    Example generate docs:
    ```
    apidoc -i app/Http/Controllers/Api -o public/docs
    ```
    @@ -162,14 +185,6 @@ apidoc -i app/Http/Controllers/Api -o public/docs
    - Postman
    - GraphQLPlayground

    - VirtualBox
    - Vagrant
    - Homestead (+ `vagrant plugin install vagrant-hostsupdater`)
    - PhpStorm
    - Sublime
    - VisualCode
    - MySqlWorkbanch
    - JatBrains Toolbox
    -

    ## Linux: Gnome, Interface, Settings
    @@ -197,47 +212,9 @@ http://compizomania.blogspot.com/2016/01/gnome-nautilus-318-ubuntu-1604.html
    - User Themes


    ### Other
    FNM - https://github.com/Schniz/fnm fnm install latest fnm default 14
    Postman - https://gist.github.com/invinciblycool/ecc1c6e32b581b68932ac7452f4c911c
    GIT - sudo apt install git
    ZSH - sudo apt install zsh
    $ sudo apt install flameshot



    ### Add swap
    ```
    sudo fallocate -l 4G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    /swapfile swap swap defaults 0 0 в файл /etc/fstab
    ```

    ### Permission .ssh keys

    Set for .ssh dir - 700, for keys files - 600 (chmod 775 /var/www/myfile)
    ssh-copy-id user@server
    ```
    chmod 700 ~/.ssh
    chmod 644 ~/.ssh/config
    chmod 600 ~/.ssh/id_rsa*
    chmod 644 ~/.ssh/*.pub
    chmod 644 ~/.ssh/authorized_keys
    chmod 644 ~/.ssh/known_hosts
    chmod 600 ~/.ssh/id_rsa
    chmod 644 ~/.ssh/id_rsa.pub
    chmod 600 ~/.ssh/github_rsa
    chmod 644 ~/.ssh/github_rsa.pub
    chmod 600 ~/.ssh/mozilla_rsa
    chmod 644 ~/.ssh/mozilla_rsa.pub
    ```
    http://linuxway.ru/pervye-shagi/komanda-chmod-primery-ispolzovaniya/


    ### PHP, Git, Composer
    ```bash
    sudo apt install git
    @@ -249,82 +226,4 @@ sudo apt install composer ?
    - https://losst.ru/ustanovka-php-7-v-ubuntu-2


    ### Sublime Text
    - https://github.com/YabataDesign/afterglow-theme
    - https://losst.ru/ustanovka-sublime-text-3-ubuntu-16-04


    ### PhpStorm
    - http://jetbrains.license.laucyun.com/
    - https://confluence.jetbrains.com/display/PhpStorm/PHP+Code+Sniffer+in+PhpStorm , http://epages.su/blog/setting-php-code-sniffer-in-phpstorm-using-composer.html
    - https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
    - https://gist.github.com/rvegas/a596d2e2abd54784b919

    ### VB, Vagrant (Homestead)
    - https://www.virtualbox.org/wiki/Downloads
    - https://www.vagrantup.com/downloads.html
    ```
    vagrant box add laravel/homestead
    ```
    - https://laravel.com/docs/5.6/homestead
    ```
    vagrant plugin install vagrant-hostsupdater
    ```
    - http://tech.osteel.me/posts/2016/01/19/how-to-enable-nfs-on-laravel-homestead.html

    ### Backup/Restore All Databases In Laravel Homestead
    ***Backup All Databases***
    ```mysqldump -u homestead -psecret --all-databases > homestead-20150727_0913.sql```
    ***Restore All Databases***
    ```mysql -u homestead -psecret < homestead-20150727_0913.sql```



    ## Other


    ### ZSH
    https://linuxhint.com/install_zsh_shell_ubuntu_1804/

    Установить оболочку (https://github.com/robbyrussell/oh-my-zsh):

    ```bash
    sudo apt-get install zsh
    ```

    Теперь установим фреймворк Oh My ZSH!

    1 способ:

    ```bash
    curl -L http://install.ohmyz.sh | sh
    ```

    2 способ:
    ```bash
    wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
    ```

    указать системе какую именно обложку нужно использовать
    ```bash
    chsh -s /bin/zsh
    ```

    Ребут компа:
    ```bash
    sudo shutdown -r 0
    ```

    Note: many themes require installing the Powerline Fonts in order to render properly (https://github.com/robbyrussell/oh-my-zsh).
    ```bash
    sudo apt-get install fonts-powerline
    ```

    ### Темы:
    - https://zshthem.es/all/
    - https://github.com/robbyrussell/oh-my-zsh/wiki/External-themes

    To use a different theme, simply change the value to match the name of your desired theme. For example:
    _ZSH_THEME="agnoster" # (this is one of the fancy ones)_
    _see https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster_

  27. fomvasss revised this gist Nov 22, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux.md
    Original file line number Diff line number Diff line change
    @@ -136,7 +136,7 @@ Exaple ru generate:
    apidoc -i app/Http/Controllers/Api -o public/docs
    ```

    --
    ---

    ## OLD:
    ## Awesome programs
  28. fomvasss revised this gist Nov 22, 2020. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -125,6 +125,19 @@ npm i gulp@3.9.1
    ...
    ```

    ## Other

    #### APIDoc
    ```
    npm install -g apidoc
    ```
    Exaple ru generate:
    ```
    apidoc -i app/Http/Controllers/Api -o public/docs
    ```

    --

    ## OLD:
    ## Awesome programs
    - SimpleScreenRecorder?
  29. fomvasss revised this gist Nov 22, 2020. 1 changed file with 16 additions and 9 deletions.
    25 changes: 16 additions & 9 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,18 @@
    ## After install
    ## After install OS

    ## OS
    ## Upgrate OS
    ```
    sudo apt upgrate
    ```

    ## GoogleChrome
    ## Install GoogleChrome
    Download .deb package and run:
    ```
    sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb
    ```
    Sync accounts

    ## SSH keys
    ## Set SSH keys
    Copy old ssh keys in `~/.ssh` dir and set:
    ```
    chmod 700 ~/.ssh
    @@ -58,15 +58,15 @@ vagrant plugin install vagrant-hostsupdater
    ```
    ### Backup/Restore Laravel Homestead
    #### Databases
    ***Backup All Databases***
    - Backup All Databases
    ```mysqldump -u homestead -psecret --all-databases > backup.sql```
    ***Restore All Databases***
    - Restore All Databases
    ```mysql -u homestead -psecret < backup.sql```

    #### Files
    ***Backup files***
    - Backup files
    ```tar -cvf App.tar ~/App```
    ***Restore files***
    - Restore files
    ```tar -xvf App.tar -C ~/App```

    ## Interface
    @@ -116,7 +116,14 @@ fnm install 12
    fnm use 12
    fnm default 12
    ```

    Example use in projects:
    ```
    npm i
    npm run dev
    npm i gulp@3.9.1
    ./node_modules/.bin/gulp build; ./node_modules/.bin/gulp test --noinline --nohtmlmin
    ...
    ```

    ## OLD:
    ## Awesome programs
  30. fomvasss revised this gist Nov 22, 2020. 1 changed file with 83 additions and 19 deletions.
    102 changes: 83 additions & 19 deletions Linux.md
    Original file line number Diff line number Diff line change
    @@ -1,25 +1,32 @@
    ## After install

    Upgrade
    ## OS
    ```
    sudo apt upgrate
    ```

    Install fonts to ~/.fonts:
    JetBrainsMono
    FiraCode

    Install GoogleChrome (sync accounts)
    Download and run:
    ## GoogleChrome
    Download .deb package and run:
    ```
    sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb
    ```
    Sync accounts

    Copy/generate ssh keys and set:
    ## SSH keys
    Copy old ssh keys in `~/.ssh` dir and set:
    ```
    chmod 700 ~/.ssh
    chmod 644 ~/.ssh/config
    chmod 600 ~/.ssh/id_rsa*
    chmod 644 ~/.ssh/*.pub
    ```
    or generate new keys (https://www.digitalocean.com/community/tutorials/ssh-ubuntu-18-04-ru):
    ```
    ssh-keygen
    ```

    Terminal:
    ## Console apps:
    ```
    sudo apt install htop
    sudo apt install curl
    sudo apt install wget
    @@ -28,34 +35,91 @@ sudo apt install zsh
    sudo apt install yadm
    yadm clone git@github.com:fomvasss/dotfiles.git
    chsh
    ```
    ```
    Login Shell [/bin/bash]: /usr/bin/zsh
    Set default in termanal

    ```
    Set default zsh in your termanal

    Homestead
    ## Vagrant/Homestead
    ```
    sudo dpkg -i ~/Downloads/virtualbox...
    sudo dpkg -i ~/Downloads/vagrant...
    ```
    https://laravel.com/docs/8.x/homestead#installation-and-setup

    Run:
    ```
    vagrant up
    ```
    Install vagrant plugins:
    ```
    vagrant plugin install vagrant-hostsupdater
    ```
    ### Backup/Restore Laravel Homestead
    #### Databases
    ***Backup All Databases***
    ```mysqldump -u homestead -psecret --all-databases > backup.sql```
    ***Restore All Databases***
    ```mysql -u homestead -psecret < backup.sql```

    Snap (`sudo apt install snapd`):
    #### Files
    ***Backup files***
    ```tar -cvf App.tar ~/App```
    ***Restore files***
    ```tar -xvf App.tar -C ~/App```

    ## Interface
    Download fonts (*JetBrainsMono*, *FiraCode*,...) to dir `~/.fonts`:

    Gnome Tweak Tools (https://help.ubuntu.ru/wiki/gnome-tweak-tool)
    ```
    sudo apt-get install gnome-tweak-tool
    ```
    Set: https://i.imgur.com/wC6c7GM.png
    ```
    sudo apt-get install lm-sensors
    sudo sensors-detect
    ```
    Visit: https://extensions.gnome.org/
    Find and install: Dash to Panel, Freon (by UshakovVasilii)

    ```
    sudo apt-get install dconf-editor
    ```

    ## Snap apps
    ```
    sudo apt install snapd
    sudo snap install opera
    sudo snap install telegram-desktop
    sudo snap install code --classic
    sudo snap install sublime-text --classic
    sudo snap install mysql-workbench-community
    sudo snap install postman
    sudo snap install opera
    sudo snap install vokoscreen-ng
    sudo snap install vlc
    sudo snap install youtube-dl
    sudo snap install wallpaperdownloader
    sudo snap install flameshot
    sudo snap install mysql-workbench-community
    ```
    (Add keyboard shortcuts: Shift+PrtSc => command: `flameshot gui`)

    ## JatBrains
    Install PhpStorm, activate and sync settings
    https://www.jetbrains.com/ru-ru/toolbox-app/
    Install PhpStorm and activate and sync



    ## FNM
    ```
    curl -fsSL https://fnm.vercel.app/install | bash
    fnm install 12
    fnm use 12
    fnm default 12
    ```


    ## OLD:
    ## Awesome programs

    - SimpleScreenRecorder?
    - Vokoscreen (`sudo apt-get install vokoscreen` of snap)
    - Odio (radio)