- 1. How to install SSH server in Ubuntu
- 2. How to install sudo
- 3. How to install chromium
- 4. How to install VsCode
- 5. How to install git ftp
- 6. How to install and configure git
- 7. How to install qBitTorrent
- 8. How to install wget
- 9. How to install telegram desktop
- 10. How to install VLC
- 11. How to install Python
- 12. How to install MySql
- 13. How to install MySql Workbench (MySQL Workbench as a Snap package (sandboxed))
- 14. How to install mono
- 15. How can accented characters
- 16. Commands ubuntu
- 17. Commands linux
- 18. Vi commands
- Open the terminal application for Ubuntu desktop.
- For remote Ubuntu server you must use BMC or KVM or IPMI tool to get console access
- Type
sudo apt-get install openssh-server
- Enable the ssh service by typing
sudo systemctl enable ssh
- Start the ssh service by typing
sudo systemctl start ssh
- Test it by login into the system using
ssh user@server-name
- Add user (linux)
- sudo adduser
<username>
- sudo adduser
- apt update
- apt-get install sudo
- sudo apt install chromium-browser
- sudo apt install apt-transport-https sudo apt update sudo apt install code # or code-insiders
- apt-get install git-ftp
- sudo apt install git
- Configure:
git config --global user.name "Jefté Goes"
git config --global user.email "[email protected]"
- sudo apt install qbittorrent
- sudo apt-get install wget
- sudo snap install telegram-desktop
- sudo snap install vlc
- sudo apt-get install python 3
- sudo apt-get install python3-pip
- Installing MySQL 8.0.X
- sudo apt update
- sudo apt install mysql-server
- Configuring MySQL
- sudo mysql_secure_installation
-
Creating a Dedicated MySQL User and Granting Privileges
-
sudo mysql or mysql -u root -p
- mysql > CREATE USER 'sa'@'localhost' IDENTIFIED BY 'PASSWORD';
- mysql > GRANT ALL PRIVILEGES ON . TO 'sa'@'localhost' WITH GRANT OPTION;
- mysql > CREATE USER 'sa'@'%' IDENTIFIED BY 'PASSWORD';
- mysql > GRANT ALL PRIVILEGES ON . TO 'sa'@'%' WITH GRANT OPTION;
-
- Testing MySQL
- systemctl status mysql.service
- Go to app store into ubuntu
- Seach for mysql-workbench
- Click on permission
- Enable Read, add, change, or remove save password
https://www.edivaldobrito.com.br/como-instalar-o-mono-no-ubuntu-debian-e-derivados/ https://www.mono-project.com/download/stable/#download-lin https://linuxize.com/post/how-to-install-mono-on-ubuntu-18-04/
- Setting
- Region and language
- On the Input Sources Click on "+" button
- Choose English (United States) then English(US,alt. intl.).
- Updates the package lists for upgrades for packages that need upgrading
- sudo apt-get update
- Get Ubuntu/Debian version
- lsb_release -a
- cat /etc/issue
- Install a package
- apt-get install
<package>
- apt-get -y install
<package>
# -y assume YES
- apt-get install
- Get and display current user
- id
- Get and display ip
- ip a
- Print current working directory
- pwd
- Create directory
- mkdir
<directory_name>
- mkdir
- Remove file
- rm
<file_name>
- rm
- Remove directory
- rmdir
<directory>
- rm -rf
<directory>
# Force
- rmdir
- Rename file
- mv
<old_file_name> <new_file_name>
# Example: mv oldfile.txt newfile.txt
- mv
- Changes the user and/or group ownership of each given file
- chown 1000:1000
<file>
- chown 1000:1000
<path>
-R # -R --Recursive
- chown 1000:1000
- Who am I?
- whoami
- List the names of the files in the current directory along with the permissions, date, time and size
- ll
- Sets the permissions of files or directories
- chmod +x
<filna_name>
# Example: chmod +x myfile.txt
- chmod +x
- Get Linux distribution
- cat /etc/os-release
- Get a list of all users
- less /etc/passwd
Command | Purpose |
---|---|
$ vi | Open or edit a file. |
i | Switch to Insert mode. |
Esc | Switch to Command mode. |
:w | Save and continue editing. |
:wq or ZZ | Save and quit/exit vi. |
:q! | Quit vi and do not save changes. |
yy | Yank (copy a line of text). |
p | Paste a line of yanked text below the current line. |
o | Open a new line under the current line. |
O | Open a new line above the current line. |
A | Append to the end of the line. |
a | Append after the cursor's current position. |
I | Insert text at the beginning of the current line. |
b | Go to the beginning of the word. |
e | Go to the end of the word. |
x | Delete a single character. |
dd | Delete an entire line. |
Xdd | Delete X number of lines. |
Xyy | Yank X number of lines. |
G | Go to the last line in a file. |
XG | Go to line X in a file. |
gg | Go to the first line in a file. |
:num | Display the current line's line number. |
h | Move left one character. |
j | Move down one line. |
k | Move up one line. |
l | Move right one character. |