Tools
Suggest to install.
ubuntu 22.04 Desktop
sudo apt-get install -y meld
DBeaver
The db client.
sudo snap install dbeaver-ce
Erlang
## Manual Install, not support RabbitMQ
sudo apt-get install build-essential libncurses5-dev libssl-dev unixodbc-dev -y
# Copy source code to home path
tar -xvzf otp_src_*.tar.gz
rm -rf otp_src_*.tar.gz
cd otp_src_*
mkdir erlang
./configure --prefix=/usr/local/erlang --without-javac
make -j6
sudo make install
sudo vi /etc/profile.d/erlang.sh
erlang.sh
ERL_HOME=/usr/local/erlang
if [ -d "$ERL_HOME/bin" ] ; then
PATH="$ERL_HOME/bin:$PATH"
fi
source /etc/profile
# Check erlang version
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
Key
sudo apt install putty-tools
sudo apt-get install openssh-server
Git
sudo apt-get install -y git
Git Client.
Free version can not support private repo.
sudo snap install gitkraken
sudo snap install gitkraken --classic
sudo snap refresh gitkraken --classic
sudo apt-get install -y giggle
apt-get install git-cola
Gradle
# Installation via Direct Download
GRADLE=8.12
wget https://services.gradle.org/distributions/gradle-$GRADLE-bin.zip
sudo unzip -d /opt/gradle gradle-8.12-bin.zip
sudo ls /opt/gradle/gradle-8.12
sudo vi /etc/profile.d/gradle.sh
export GRADLE_HOME=/opt/gradle/gradle-8.12
export PATH=${GRADLE_HOME}/bin:${PATH}
sudo chmod +x /etc/profile.d/gradle.sh
source /etc/profile.d/gradle.sh
gradle -v
# Not work !!!! Ubuntu 20.04
sudo snap install gradle --classic
/snap/bin/gradle -v
sudo snap remove gradle
Chrome
sudo snap install chromium
FFMPEG
sudo apt install ffmpeg
Code compare
sudo apt-get install -y meld
Java
sudo apt install -y openjdk-21-jdk
sudo apt install -y openjdk-17-jdk
sudo mkdir /usr/lib/jvm
cd /usr/lib/jvm
cp /home/dev/Downloads/jdk-8u291-linux-x64.tar.gz .
tar -xvzf jdk-8u291-linux-x64.tar.gz
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_291/bin/java" 0
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_291/bin/javac" 0
sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk1.8.0_291/bin/javac"
sudo update-alternatives --config java
sudo update-alternatives --config javac
# Version management
jenv
# Ubuntu 22.04
`headless` for non GUI app.
sudo apt install -y openjdk-17-jdk
sudo apt-get install openjdk-11-jdk
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
RealVNC
Ubuntu >=22.04 need Wayland.
VNC Connect does not currently support Wayland.
# Run vncsetup-helper.tar.gz
sudo ./vncsetup.sh
# Manual, /etc/gdm3/custom.conf
# WaylandEnable=false
Ubuntu 22.04 failed.
REALVNC=VNC-Server-6.11.0-Linux-x64.deb
wget https://downloads.realvnc.com/download/file/vnc.files/$REALVNC
sudo chmod 777 $REALVNC
sudo apt install -f ./$REALVNC
# Manual
sudo systemctl enable --now vncserver-virtuald.service
sudo systemctl enable --now vncserver-x11-serviced.service
sudo systemctl start --now vncserver-virtuald.service
sudo systemctl start --now vncserver-x11-serviced.service
systemctl status vncserver-x11-serviced.service vncserver-virtuald.service
Ubuntu server old sq 18.04.
sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
# During the install process, you will be asked whether or not to change a system file to the new version:
Configuration file '/etc/init/tty1.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
# Type **y** then **enter** to use the updated version.
sudo apt-get install vnc4server
cd ~/Downloads
wget https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.11.0-Linux-x64.deb
sudo dpkg -i VNC-Server-*-Linux-x64.deb
sudo apt install -f
sudo systemctl start vncserver-x11-serviced
sudo systemctl enable vncserver-x11-serviced
cd ~/Downloads
wget https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.9.0-Linux-x64.deb?_ga=2.8804277.1474791596.1646795775-1964236855.1646795775
sudo dpkg -i VNC-Server-*-Linux-x64.deb
sudo apt install -f
sudo systemctl start vncserver-x11-serviced
sudo systemctl enable vncserver-x11-serviced
Maven
sudo apt install maven
mvn clean verify
-P specifies which profile Maven is to run under.
MongoDB
# Support Ubuntu 20.04/18.04
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
# Check MongoDB 4.4 Release Signing Key
apt-key list
sudo apt-key del {key}
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable --now mongod
sudo systemctl status mongod
sudo apt install net-tools
netstat -tunelp | grep 27017
Net
sudo apt install net-tools
Notepad++
sudo snap install notepad-plus-plus
Postman
sudo snap install postman
Radis
sudo snap install redis-gui
Rename
sudo apt-get install -y rename
Robo3T
mongodb manager.
sudo snap install robo3t-snap
System Load Indicator
sudo apt install indicator-multiload
Dos2Unix
Convert windows format to Unix.
sudo apt-get install -y dos2unix
Share data
sudo apt-get install samba
STM32CubeIDE
# Copy en.st-stm32cubeide_1.12.1_16088_20230420_1057_amd64.deb_bundle.sh.zip to ubuntu, name can not modify.
# Extract en.st-stm32cubeide_1.12.1_16088_20230420_1057_amd64.deb_bundle.sh.zip to self name folder.
cd en.st-stm32cubeide_1.12.1_16088_20230420_1057_amd64.deb_bundle.sh/
sudo chmod +x st-stm32cubeide_1.12.1_16088_20230420_1057_amd64.deb_bundle.sh
sudo ./st-stm32cubeide_1.12.1_16088_20230420_1057_amd64.deb_bundle.sh
Notepadqq
sudo add-apt-repository ppa:notepadqq-team/notepadqq sudo apt-get update sudo apt-get install notepadqq
InkSpace
Edit SVG.
sudo snap install inkscape
GIMP
sudo add-apt-repository ppa:otto-kesselgulasch/gimp sudo apt-get update sudo apt-get install gimp sudo apt-get autoremove gimp gimp-plugin-registry
Typora
Just run the following commands for installing Typora:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
sudo add-apt-repository 'deb https://typora.io ./linux/'
sudo apt update
sudo apt install typora
Remarkable
wget http://remarkableapp.github.io/files/remarkable_1.87_all.deb ls -l remarkable_1.87_all.deb sudo dpkg -i remarkable_1.87_all.deb sudo apt-get install -f sudo dpkg -l remarkable remarkable
discord
sudo snap install discord
sudo snap install discord --classic
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
#Once it’s done downloading, just install it with dpkg.
sudo dpkg -i /path/to/discord.deb
#dependencies
sudo apt install libgconf-2-4 libappindicator1
Visual Studio Code
# Installing Visual Studio Code with apt
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code
# Installing Visual Studio Code as a Snap Package
sudo snap install code --classic
# Use with root
code --user-data-dir="~/.vscode"
sudo snap remove code
- vscode not support root
Ubuntu 22.04 passed.
wget -O- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/vscode.gpg
# Input root password
echo deb [arch=amd64 signed-by=/usr/share/keyrings/vscode.gpg] https://packages.microsoft.com/repos/vscode stable main | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt update
sudo apt install code
Python Import "[module]" could not be resolved — Pylance (reportMissingImports)
settings.json
"python.analysis.extraPaths": [
".modules"
],
Change the default terminal
F1 -> Terminal: Select Default Profile
Qt
# chmod
./qt-unified-linux-x64-4.4.2-online.run
# Check Qt version.
qmake --version
# QtCreator, for Qt core wallet.
sudo apt install -y qtcreator
jq
Ubuntu 22.04 passed.
sudo apt install jq
Putty
Ubuntu 22.04 passed.
sudo apt install putty-tools
vpn
sudo apt-get install network-manager-openvpn-gnome
sudo ufw allow in to 192.168.X.0/24 sudo ufw allow out to 192.168.X.0/24 Notice that the X you need to fill in your internal IP address. This is a typical looking internal IP, but they can differ so please double check your ifconfig.
sudo ufw default deny outgoing sudo ufw default deny incoming sudo ufw allow out on tun0 from any to any sudo ufw allow out to 140.82.15.76 port 1194 proto udp
sudo systemctl stop [email protected] # <--- stop server
sudo systemctl start [email protected] # <--- start server
sudo systemctl restart [email protected] # <--- restart server
sudo systemctl status [email protected] # <--- get server status
# if your openvpn configuration file is /etc/openvpn/client-home.conf you should use systemctl status openvpn@client-home.
Auto Update
## Pass : Ubuntu 20.04
# Auto update function
sudo apt install unattended-upgrades
# Update Block
sudo ls /etc/apt/apt.conf.d
sudo vi /etc/apt/apt.conf.d/50unattended-upgrades
sudo unattended-upgrade -d # Using this command to test for after config
sudo unattended-upgrade -v -d --dry-run # Test
sudo unattended-upgrade --help # Watch more parameters
# Enable Auto update
sudo dpkg-reconfigure -plow unattended-upgrades
APT-KEY
sudo apt-key list
sudo apt-key del 0A9A F211 5F46 87BD 2980 3A20 6B73 A36E 6026 DFCA
# Remove
sudo apt-key del {key}
Email
# Read
mail
# Clean
d *
cat /var/spool/mail/root
echo "unset MAILCHECK">> /etc/profile
source /etc/profile
ls -lth /var/spool/mail/
total 49M
-rw------- 1 root mail 49M Jul 4 13:43 root
-rw-rw---- 1 nginx mail 0 May 21 11:46 nginx
-rw-rw---- 1 zabbix mail 0 May 16 15:48 zabbix
cat /dev/null > /var/spool/mail/root