Installing Application for Golang developer After installing Ubuntu 22.04 LTS

In this article, I will explain which package is necessary after installing Ubuntu 22.04 LTS as a Golang developer.

Install Neokey

text
https://github.com/MatsuriDayo/nekoray/releases/download/2.9/nekoray-2.9-2022-12-19-linux64.zip

./nekoray: error while loading shared libraries: libQt5Network.so.5: cannot open shared object file: No such file or directory

bash
sudo
apt-get install libqt5gui5

Install GPU Driver

sudo apt install hwinfo

hwinfo — gfxcard — short

sudo apt install nvidia-driver-515 nvidia-dkms-515

text
ubuntu-drivers devices== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==modalias :
pci:v000010DEd000025A0sv00001043sd00001CCCbc03sc00i00vendor   : NVIDIA Corporationmodel    : GA107M
[GeForce RTX 3050 Ti Mobile]manual_install: Truedriver   : nvidia-driver-525-open - distro non-free
recommendeddriver   : nvidia-driver-515 - distro non-freedriver   : nvidia-driver-515-open - distro
non-freedriver   : nvidia-driver-525 - distro non-freedriver   : nvidia-driver-470-server - distro
non-freedriver   : nvidia-driver-525-server - distro non-freedriver   : nvidia-driver-470 - distro
non-freedriver   : nvidia-driver-510 - distro non-freedriver   : nvidia-driver-515-server - distro
non-freedriver   : xserver-xorg-video-nouveau - distro free builtin

https://www.cyberciti.biz/faq/ubuntu-linux-install-nvidia-driver-latest-proprietary-driver/

text
nvidia-smi

Make Windows USB bootable

Make USB for running windows as dual boot next to the Ubuntu. Only use Rufus in windows to build this one

Make USB for with Ubuntu operation system.

bash
sudo add-apt-repository ppa:tomtomtom/woeusb
sudo
apt update &&
sudo
apt install woeusb-frontend-wxgtk

https://www.omgubuntu.co.uk/2017/06/create-bootable-windows-10-usb-ubuntu

Asus problem to install windows

Cannot find drives when installing Windows 11/10

Install VirtualBox on Ubuntu and Linux Mint

It’s very easy to install VirtualBox on Ubuntu. All you need to do is to use the command below:

bash
sudo
apt install virtualbox
bash
sudo
apt-get install unrar
text
unrar e filename.rar

Install VPN

https://armagankaratosun.github.io/post/2018-09-02-setup-l2tp-vpn-on-ubuntu/

bash
sudo
apt install network-manager-l2tp
bash
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
bash
sudo
apt -y install network-manager-l2tp
bash
sudo
apt-get install network-manager-l2tp-gnome
bash
sudo
apt install --install-suggests network-manager-l2tp-gnome

Install Terminal Tor

text
https://linuxconfig.org/install-tor-proxy-on-ubuntu-20-04-linux
bash
sudo systemctl status tor
sudo
apt-get install -y proxychains
sudo
apt install proxychains4

Upload and install Ubuntu 22.04

After installing ubuntu as the first step is nessacary to update OS to get the last update.

bash
sudo
apt-get update

Initial and import install applications

bash
sudo
apt-get install git
sudo
apt-get install htop
sudo
apt-get install sshuttle
sudo
apt-get install iotop
sudo
apt-get install vim
sudo
apt-get install curl

Install G partition

bash
sudo
apt install gparted

Add Persian fonts

in setting part add Input sources and then add Persian source

Installing Application for Golang developer After installing Ubuntu 22.04 LTS

Installing Fonts

some Persian font not available on Ubuntu so download them install in ~/.fonts

downloading font from these web site and put in ~/.fonts folder

cp -ar 384.Font.Farsi ~/.fonts/

Region And Language

Installing Application for Golang developer After installing Ubuntu 22.04 LTS
text
Settings > Time and date > Clock

Font google

text
https://www.fontyab.com/download?id=7782
https://soft98.ir/graphic/font/14282-Font-Collection-Farsi.html

Install chrome

bash
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
bash
sudo
apt install ./google-chrome-stable_current_amd64.deb

Vscode IDE

Vscode is compatible with many language such as Php, Python, Docker, Git, Css , Html, Blade, JS and etc.

bash
sudo snap install --classic code

Extentions: git lens + git graph + git history + prettier +Bracket Pair Colorizer 2 + One Dark Pro + Material Icon Theme + prettier + Code Runner + Tabnine AI Autocomplete for Javascript, Python, Typescript, PHP, Go, Java, Ruby & more + go +

press cntl + shift + p and then type setting.json

text
"workbench.editor.enablePreview": false,

Protection on eye and low back pain

sudo add-apt-repository ppa:slgobinath/safeeyes

sudo apt update

sudo apt install safeeyes

if you familiar with pomodoro install it
sudo apt-get install gnome-shell-pomodoro

Docker

if you have problem with connection to docker use shckan proxy.

Set docker as sudoer

bash
sudo groupadd docker
sudo gpasswd -a $USER dockernewgrp docker
bash
docker --version
text
Docker version 19.03.8, build afacb8b7f0docker psCONTAINER ID        IMAGE               COMMAND
CREATED             STATUS              PORTS               NAMES

Install docker-composer

bash
sudo
apt install docker-compose

Install Portainer with Docker on Linux

bash
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v
/var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:latest

FileZilla

sudo apt-get install filezilla

Change background with Bing

‍Esay way to use Bing Wall Paper every day

bash
sudo snap install bing-wall
bash
sudo snap install wonderwall

for changing background need run bingwallpaper in Terminal

Option Two: Bing Desktop Wallpaper Changer (No Watermark)

Install Telegram

Install Golang

The easiest way

Follow original link

Add Export PATH in $HOME/.bashrc

javascript
export PATH=$PATH:/usr/local/go/binexport PATH=$PATH:$(go env GOPATH)/binexport GOPATH=$(go env
GOPATH)# Powerline configurationif [-f /usr/share/powerline/bindings/bash/powerline.sh];
then powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 source
/usr/share/powerline/bindings/bash/powerline.shfi

Other way

bash
sudo snap install go --classic
text
snap list
text
Add /usr/local/go/bin to the PATH environment variable.
go
You can do this by adding the following line to your $HOME/.profile or /etc/profile (for a
system-wide installation):
javascript
export PATH=$PATH:/usr/local/go/bin

Note: Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as source $HOME/.profile.

Add Export PATH in $HOME/.bashrc

go
# Set the GOPROXY environment variableexport GOPROXY=https://goproxy.io,direct# Set environment
variable allow bypassing the proxy for specified repos (optional)export
GOPRIVATE=git.mycompany.com,github.com/my/private
javascript
export PATH="$PATH:$HOME/.local/bin"
javascript
export PATH="$PATH:$(go env GOPATH)/bin"

Using Goproxy

https://goproxy.io/

text
ENV GOPROXY=
https://goproxy.io,direct

Install Go-micro Cli

bash
go install github.com/go-micro/cli/cmd/go-micro@latest

Install Nats-Service

https://github.com/nats-io/nats-server/releases

bash
sudo
apt install ./nats-server-v2.9.15-386.deb nats-server -js -m 9090
bash
go get github.com/nats-io/nats-streaming-server
nats server run --jetstream

Install Protobuf via Snap

bash
sudo snap install go --classic
text
snap list

Install Protobuf

bash
sudo
apt install protobuf-compilerhttps://grpc.io/docs/languages/go/quickstart/
text
protoc --versionlibprotoc 3.12.4

Install Protobuf manually

Install pre-compiled binaries (any OS)

Download last version of release and replace.

https://github.com/grpc-ecosystem/grpc-gateway

bash
go install \
  github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
  github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
  google.golang.org/protobuf/cmd/protoc-gen-go \
  google.golang.org/grpc/cmd/protoc-gen-go-grpc

protoc-gen-micro: program not found or is not executablePlease specify a program using absolute path or make sure the program is available in your PATH system variable — micro_out: protoc-gen-micro: Plugin failed with status code 1.make: *** [Makefile:12: proto] Error 1

text
@go get -u google.golang.org/protobuf/proto @go install
google.golang.org/protobuf/cmd/protoc-gen-go@latest @go install
github.com/go-micro/generator/cmd/protoc-gen-micro@latest

protoc-gen-micro: program not found or is not executable #890

Download Release file and put in bin

in /etc/environment add path /root/go/bin/

bash
sudo gedit /etc/environment /root/go/bin/

Install GCC

bash
sudo
apt-get install build-essential

Install ELK with docker-compose

text
https://github.com/deviantony/docker-elk

Install Terminal Calculator

bash
sudo
apt install calc

Goland

after install Goland add below plugin:

in address File -> Setting -> Plugins

Dracula Theme for JetBrains and Atom Material File Icons and GitHub Copilot uses OpenAI Codex to suggest code

Tmux

bash
sudo
apt  install tmux

Termial

Powerline is a text-based tool that provides useful information in a variety of contexts.

text
https://www.ricalo.com/blog/install-powerline-ubuntu/#

Ohmyposh

Oh My Posh is a custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable.

text
https://ohmyposh.dev/

The fuck

text
https://github.com/nvbn/thefuck

Discord

bash
sudo snap install discord

How to Set Up SSH Keys on Ubuntu 20.04

Install Postman

bash
sudo snap install postman

Install Sqlc

bash
sudo snap install sqlc
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest

Install sound recorder

bash
sudo
apt install gnome-sound-recorder