sudo apt upgrate
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
/swapfile swap swap defaults 0 0 в файл /etc/fstab
Download .deb package and run:
sudo dpkg -i ~/Downloads/google-chrome-stable_current_amd64.deb
Add & Sync Google accounts
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
sudo apt install ncal
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
Login Shell [/bin/bash]: /usr/bin/zsh
Set default ZSH in your termanal
Set git configs:
git config --global user.name YourName
git config --global user.email YourEmail@gmail.com
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
NFS (optional): http://tech.osteel.me/posts/2016/01/19/how-to-enable-nfs-on-laravel-homestead.html
- Backup all Databases
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
- 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/
Download fonts (JetBrainsMono, FiraCode,...) to dir ~/.fonts:
Install 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), Status Area Horizontal Spacing (by p91paul), Draw On You Screen (by abakkk)
sudo apt-get install dconf-editor
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 (not woking sync!)
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 pinta-james-carroll
sudo snap install xmind
Add keyboard shortcuts: Shift+PrtSc => command: flameshot gui
Install JatBrains Toolbox, PhpStorm, activate and sync settings: https://www.jetbrains.com/ru-ru/toolbox-app/
curl -fsSL https://fnm.vercel.app/install | bash
fnm install 12
fnm use 12
fnm default 12
https://github.com/Schniz/fnm
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
...
npm install -g apidoc
Example generate docs:
apidoc -i app/Http/Controllers/Api -o public/docs
-
SimpleScreenRecorder?
-
Vokoscreen (
sudo apt-get install vokoscreenof snap) -
Odio (radio)
-
FreeTube
-
Pencil (prototype)
-
Pinta (graphics editor)
-
Flameshot (printscreen)
-
XMind (snap)
-
Kdenlive (video editor)
-
KDE partition manager
-
QBTorrent
-
Postman
-
WPS Office
-
Snap (
sudo apt install snapd) -
Opera
-
Chrome
-
Slac
-
Telegram
-
Tor
-
Transmission
-
Insomniya
-
Postman
-
GraphQLPlayground
-
sudo add-apt-repository ppa:obsproject/obs-studio
-
sudo apt install obs-studio
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
sudo apt-get install gnome-tweak-tooll
sudo apt install dconf-tools
sudo apt install compizconfig-settings-manager compiz-plugins
gnome-tweak-toollhttp://compizomania.blogspot.com/2016/01/gnome-nautilus-318-ubuntu-1604.html
-
Freon
-
Dash to Panel
-
Bing Wallpaper
-
TopIcons Plus
-
Status Area Horizontal Spacing
-
MConnect
-
AlternateTab
-
User Themes
sudo apt install git
sudo apt install composer ?-
https://www.leaseweb.com/labs/2013/08/git-tip-show-your-branch-name-on-the-linux-prompt/
-
https://www.tecmint.com/install-different-php-versions-in-ubuntu/
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
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