Adding more installations

This commit is contained in:
Carlos
2021-06-19 18:57:22 -04:00
parent ba6a4cf562
commit a6aad8f4fd

401
README.md
View File

@ -4,137 +4,132 @@ When crash your computer windows or Linux have to have remembered all the stuff
This Blog has the purpose to encapsulate all the steps to set again all stuff minimum necessary to start to code again. This Blog has the purpose to encapsulate all the steps to set again all stuff minimum necessary to start to code again.
---
## Installing google chrome by terminal
First to all update linux
```sh
$ sudo apt update & sudo apt upgrade -y
```
install `wget`
```sh
$ sudo apt install wget
```
download chrome from deb
```sh
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
```
install the package with `dpkg`
```sh
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
```
if you have some error during the installation run the command below
```sh
$ sudo apt-get install -f
```
more [Information](https://es.wikihow.com/instalar-Google-Chrome-desde-la-Terminal-en-Linux)
---
## Font installation
Manual font installation
Download these four ttf files:
- [MesloLGS NF Regular.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf)
- [MesloLGS NF Bold.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf)
- [MesloLGS NF Italic.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
- [MesloLGS NF Bold Italic.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
--- ---
## Setting up the terminal ## Setting up the terminal
### Installing WSL (only apply for Windows) ### Installing VS Code
In windows you have to set WSL first to use Linux and this is the way. Step 1 - Install wget if not present.
- [How install wsl in windows](https://docs.microsoft.com/en-us/windows/wsl/install-win10) ```sh
$ sudo apt update
First in the settings in windows the developer mode has to on. $ sudo apt -y install wget
![Developer.png](./Image/Developer.PNG)
Once the developers mode has been actived, the next step is active Hyper-v and Windows Subsystem for linux, for this step just type key Windows and type: **turn windows features on or off**
![Hyper-V.png](./Image/Hyper-v.PNG)
![windows Subsystem for Linux.png](./Image/Windows%20Subsystem.PNG)
Step 1 - Open power shell as administrative and type next to enable the Windows Subsystem for Linux
```
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
``` ```
Step 2 - Update to WSL 2 Step 2 - Add Visual Studio Code repository and key
Requirements ```sh
$ sudo apt update
- For x64 systems: Version 1903 or higher, with Build 18362 or higher. $ sudo apt install apt-transport-https
- For ARM64 systems: Version 2004 or higher, with Build 19041 or higher. $ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
- Builds lower than 18362 do not support WSL 2. Use the Windows Update Assistant to update your version of Windows. $ sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
To check your version and build number, select Windows logo key + R, type winver, select OK. (Or enter the ver command in Windows Command Prompt). [Update to the latest Windows version](ms-settings:windowsupdate) in the Settings menu.
Step 3 - Enable Virtual Machine feature
```
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
```
Step 4 - Download the Linux kernel update package
Download the [WSL2 Linux kernel update package for x64 machines](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi)
Step 5 - Set WSL 2 as your default version
Open PowerShell and run this command to set WSL 2 as the default version when installing a new Linux distribution:
```
wsl --set-default-version 2
``` ```
Step 6 - Install your Linux distribution of choice Step 3 - Add APT repository to the system
Open the [Microsoft Store](https://aka.ms/wslstore) and select your favorite Linux distribution.
![Microsoft Store](./Image/store.png)
After all the steps, open ubuntu in your system and leave to end the installation
---
### Installing OH-MY-ZSH
Step 1- Installing ZSH and git-core
open the terminal and type next:
```sh
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable $ main" > /etc/apt/sources.list.d/vscode.list'
``` ```
sudo apt-get install zsh Step 4 - Visual Studio Code on
sudo apt-get install git-core
```sh
$ sudo apt update
$ sudo apt install code
``` ```
Step 2 - Download ZSH and execute To launch the text editor type next in the terminal
```sh
$ code
``` ```
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
```
Step 3 - Change from sheel to ZSH
```
chsh -s `which zsh`
```
Step 4 - Restart your system
---
### Installing Git ### Installing Git
Step 1 - Open the terminal and type Step 1 - Open the terminal and type
``` ```sh
sudo apt install git-all $ sudo apt install git-all
``` ```
Step 2 - you can check the git version with Step 2 - you can check the git version with
``` ```sh
git --version $ git --version
``` ```
Step 3 - Connect git with github Step 3 - Connect git with github
Configure your e-mail in git (the same as your github account) Configure your e-mail in git (the same as your github account)
``` ```sh
git config --global user.email cargdev@example.com $ git config --global user.email cargdev@example.com
``` ```
Generate the SSH key Generate the SSH key
``` ```sh
ssh-keygen -t rsa -b 4096 -C "cargdev@example.com" $ ssh-keygen -t rsa -b 4096 -C "cargdev@example.com"
``` ```
Check the key in with the terminal Check the key in with the terminal
``` ```sh
eval $(ssh-agent) $ eval $(ssh-agent)
``` ```
Add the key to Windows Add the key to Windows
``` ```sh
ssh-add ~/.ssh/id_rsa $ ssh-add ~/.ssh/id_rsa
``` ```
Copy your public key to github locate in --> ~/.ssh/id_rsa.pub Copy your public key to github locate in --> ~/.ssh/id_rsa.pub
@ -142,146 +137,141 @@ In github go to Account/setting/SSH and GPG keys and add New SSH Key and Add it
![Github key.png](./Image/Github.PNG) ![Github key.png](./Image/Github.PNG)
---
### Installing Nodejs and NPM ### Installing Nodejs and NPM
Step 1 - Update the system using apt package manager index by running the following command. Step 1 - Update the system using apt package manager index by running the following command.
``` ```sh
sudo apt update $ sudo apt update
``` ```
Step 2 - Install Node.js global repository by typing Step 2 - Install Node.js global repository by typing
``` ```sh
sudo apt install node $ sudo apt install nodejs
``` ```
Step 3 - Confirm the installation of Node.js by typing Step 3 - Confirm the installation of Node.js by typing
``` ```sh
node --version $ node --version
``` ```
Step 4 - Install npm by running following command Step 4 - Install npm by running following command
``` ```sh
sudo apt install npm $ sudo apt install npm
``` ```
Step 5 - Confirm the installation of npm by typing Step 5 - Confirm the installation of npm by typing
```sh
$ npm --version
``` ```
npm --version
if need a version in specified, download node from `curl`
```sh
$ cd ~
$ curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
$ sudo apt install nodejs
``` ```
--- ---
### Installing VS Code ## Installing OH-MY-ZSH
Step 1 - Install wget if not present.
``` Step 1- Installing ZSH and git-core
sudo apt update
sudo apt -y install wget open the terminal and type next:
```sh
$ sudo apt-get install zsh
$ sudo apt-get install git-core
``` ```
Step 2 - Add Visual Studio Code repository and key Step 2 - Download ZSH and execute
``` ```sh
sudo apt update $ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
sudo apt install apt-transport-https
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
``` ```
Step 3 - Add APT repository to the system Step 3 - Change from sheel to ZSH
``` ```sh
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' $ chsh -s `which zsh`
```
Step 4 - Visual Studio Code on
```
sudo apt update
sudo apt install code
``` ```
To launch the text editor type next in the terminal Step 4 - Restart your system
```
code
```
--- ---
### Installing NVIM ## Installing NVIM
Step 1 - Install [Neovim PPA](https://launchpad.net/~neovim-ppa/+archive/ubuntu/unstable) Step 1 - Install [Neovim PPA](https://launchpad.net/~neovim-ppa/+archive/ubuntu/unstable)
``` ```sh
sudo add-apt-repository ppa:neovim-ppa/unstable $ sudo add-apt-repository ppa:neovim-ppa/unstable
``` ```
then update the packages then update the packages
``` ```sh
sudo apt-get update $ sudo apt-get update
sudo apt-get install neovim $ sudo apt-get install neovim
``` ```
Step 2 - Check the installation Step 2 - Check the installation
``` ```sh
nvim $ nvim
``` ```
Step 3 - Install the copy clipboard due to NVim can copy to your system Step 3 - Install the copy clipboard due to NVim can copy to your system
``` ```sh
sudo apt install xclip $ sudo apt install xclip
sudo apt install xsel $ sudo apt install xsel
``` ```
Step 4 - Install [Python interface](https://github.com/neovim/python-client), this because some plugins in NVim use python to work Step 4 - Install [Python interface](https://github.com/neovim/python-client), this because some plugins in NVim use python to work
``` ```sh
sudo apt install python3-pip $ sudo apt install python3-pip
``` ```
Then install the NVim interface Then install the NVim interface
``` ```sh
python3 -m pip install neovim $ python3 -m pip install neovim
``` ```
Step 5 - Upgrade python interface Step 5 - Upgrade python interface
``` ```sh
python3 -m pip install --upgrade neovim $ python3 -m pip install --upgrade neovim
``` ```
Step 6 - Install ruby, due to some interfaces from Python use [Ruby](https://rubygems.org/gems/neovim/) Step 6 - Install ruby, due to some interfaces from Python use [Ruby](https://rubygems.org/gems/neovim/)
``` ```sh
sudo apt install ruby $ sudo apt install ruby
sudo apt install ruby-dev $ sudo apt install ruby-dev
``` ```
Install Ruby interface Install Ruby interface
``` ```sh
sudo gem install neovim $ sudo gem install neovim
``` ```
Step 7 - Checl the nvim dependencies Step 7 - Checl the nvim dependencies
``` ```sh
nvim +checkhealth $ nvim +checkhealth
``` ```
![Github key.png](./Image/checkhealth.png) ![Github key.png](./Image/checkhealth.png)
@ -289,8 +279,8 @@ nvim +checkhealth
Step 8 - Install the plug installator, in this case is vim-plug Step 8 - Install the plug installator, in this case is vim-plug
In the terminal type the text below In the terminal type the text below
``` ```sh
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ $ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
``` ```
A minimalist Vim plugin manager. A minimalist Vim plugin manager.
@ -317,13 +307,13 @@ Requirements: Zsh v4.3.11 or later
Step 1 - Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`) Step 1 - Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`)
```sh ```sh
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions $ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
``` ```
Step 2 - Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`): Step 2 - Add the plugin to the list of plugins for Oh My Zsh to load (inside `~/.zshrc`):
```sh ```sh
plugins=(zsh-autosuggestions) $ plugins=(zsh-autosuggestions)
``` ```
Step 3 - Start a new terminal session. Step 3 - Start a new terminal session.
@ -333,14 +323,14 @@ Step 3 - Start a new terminal session.
Step 1 - Clone this repository in oh-my-zsh's plugins directory: Step 1 - Clone this repository in oh-my-zsh's plugins directory:
```zsh ```sh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
``` ```
Step 2 - Activate the plugin in `~/.zshrc`: Step 2 - Activate the plugin in `~/.zshrc`:
```zsh ```sh
plugins=( [plugins...] zsh-syntax-highlighting) $ plugins=( [plugins...] zsh-syntax-highlighting)
``` ```
Step 3 - Restart zsh (such as by opening a new instance of your terminal emulator). Step 3 - Restart zsh (such as by opening a new instance of your terminal emulator).
@ -352,8 +342,8 @@ Step 3 - Restart zsh (such as by opening a new instance of your terminal emulato
Step 1 - Install the theme typing next Step 1 - Install the theme typing next
```zsh ```sh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k $ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
``` ```
Step 2 - Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc. Step 2 - Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.
@ -362,11 +352,96 @@ Step 3 - Restart zsh (such as by opening a new instance of your terminal emulat
Note: to use all the icons in this theme is recommended use [Meslo Nerd Font](https://github.com/romkatv/powerlevel10k/blob/master/font.md) Note: to use all the icons in this theme is recommended use [Meslo Nerd Font](https://github.com/romkatv/powerlevel10k/blob/master/font.md)
Manual font installation
Download these four ttf files:
- [MesloLGS NF Regular.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf) ---
- [MesloLGS NF Bold.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf)
- [MesloLGS NF Italic.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf)
- [MesloLGS NF Bold Italic.ttf](https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf)
## Installing ranger for terminal
Download the repository
```sh
$ git clone https://github.com/hut/ranger.git
```
Installing ranger
```sh
$ cd ranger
$ sudo make install
```
check the installation in the terminal
```sh
$ ranger
```
download the configuration
```sh
$ ranger --copy-config=all
```
to modify the files configuration:
```sh
$ cd ~/.config/ranger
```
---
## Installing terminator
Install terminator from the terminal
```sh
$ sudo apt install terminator
```
---
## Installing extensions in Ubuntu
To install gnome extensions install first `chrome-gnome-shell` from the terminal
```sh
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install chrome-gnome-shell
```
In particular I like the extensions below
- [dash-to-dock](https://extensions.gnome.org/extension/307/dash-to-dock/)
- [arc menu](https://extensions.gnome.org/extension/3628/arcmenu/)
- [Transparent Top Bar](https://extensions.gnome.org/extension/3960/transparent-top-bar-adjustable-transparency/)
for more extensions [click here](https://extensions.gnome.org/)
---
## Installing postman
```sh
$ sudo snap install postman
```
---
## Installing DBeaver
Download DBeaver
```sh
$ wget -O - https://dbeaver.io/debs/dbeaver.gpg.key | sudo apt-key add -
```
and then
```sh
$ echo "deb https://dbeaver.io/debs/dbeaver-ce /" \
| sudo tee /etc/apt/sources.list.d/dbeaver.list
```
after that you can download `DBeaver`
```sh
$ sudo apt update
$ sudo apt install dbeaver-ce
```