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.
Settings OS Linux after install

After install OS

Upgrate OS

sudo apt upgrate

Install GoogleChrome

Download .deb package and run:

sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb

Sync accounts

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

Console apps:

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
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

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

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 vokoscreen-ng
sudo snap install vlc
sudo snap install youtube-dl
sudo snap install wallpaperdownloader
sudo snap install flameshot

(Add keyboard shortcuts: Shift+PrtSc => command: flameshot gui)

JatBrains

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

FNM

curl -fsSL https://fnm.vercel.app/install | bash
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

  • SimpleScreenRecorder?

  • Vokoscreen (sudo apt-get install vokoscreen of snap)

  • Odio (radio)

  • Pencil (prototype)

  • Pinta (graphics editor)

  • Flameshot (printscreen)

  • XMind (snap)

  • Kdenlive (video editor)

  • KDE partition manager

  • Snap (sudo apt install snapd)

  • Opera

  • Chrome

  • Slac

  • Telegram

  • Tor

  • Transmission

  • Insomniya

  • Postman

  • GraphQLPlayground

  • VirtualBox

  • Vagrant

  • Homestead (+ vagrant plugin install vagrant-hostsupdater)

  • PhpStorm

  • Sublime

  • VisualCode

  • MySqlWorkbanch

  • JatBrains Toolbox

Linux: Gnome, Interface, Settings

sudo apt-get install gnome-tweak-tooll
sudo apt install dconf-tools
sudo apt install compizconfig-settings-manager compiz-plugins

gnome-tweak-tooll

http://compizomania.blogspot.com/2016/01/gnome-nautilus-318-ubuntu-1604.html

Gnome extensions

  • https://extensions.gnome.org

  • Freon

  • Dash to Panel

  • Bing Wallpaper

  • TopIcons Plus

  • Status Area Horizontal Spacing

  • MConnect

  • AlternateTab

  • 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

sudo apt install git
sudo apt install composer ?

Sublime Text

PhpStorm

VB, Vagrant (Homestead)

vagrant box add laravel/homestead
vagrant plugin install vagrant-hostsupdater

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):

sudo apt-get install zsh

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

1 способ:

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

2 способ:

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

указать системе какую именно обложку нужно использовать

chsh -s /bin/zsh

Ребут компа:

sudo shutdown -r 0

Note: many themes require installing the Powerline Fonts in order to render properly (https://github.com/robbyrussell/oh-my-zsh).

sudo apt-get install fonts-powerline

Темы:

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

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