This commit is contained in:
2025-10-03 12:02:54 +02:00
parent d9af5542ee
commit b55ad1050c
13 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://linux.how2shout.com/how-to-increase-swap-space-in-ubuntu-22-04-lts-jammy/

4
Linux/Linux commands.md Normal file
View File

@@ -0,0 +1,4 @@
# Linux commands
## Keyboard
sudo dpkg-reconfigure keyboard-configuration

65
Linux/MySQL.md Normal file
View File

@@ -0,0 +1,65 @@
Linux connab
# MySQL
## How To Install MySQL on Ubuntu 24.04
[Install MySQL](https://linuxgenie.net/install-mysql-ubuntu-24-04/)
## MySQL Commands Cheat Sheet
[MySQL Cheat Sheet](https://phoenixnap.com/kb/mysql-commands-cheat-sheet)
## Install with apt
- sudo apt update
- sudo apt install mysql-server
- sudo systemctl start mysql.service
- secure your installation by running sudo mysql_secure_installation
## Start, stop, restart server
- sudo systemctl start mysql
- sudo systemctl stop mysql
- sudo systemctl restart mysql
[Start, Stop, Restart MySQL](https://www.mysqltutorial.org/mysql-administration/stop-mysql/)
## How to Change MySQL Password Policy Level
[MySQL Password Policy](https://tecadmin.net/change-mysql-password-policy-level/)
### Show password settings
SHOW VARIABLES LIKE 'validate_password%';
### Set password policy
SET GLOBAL validate_password.policy=LOW;
## How to Find the MYSQL Configuration File "my.cnf".
[my.cnf](https://www.geeksforgeeks.org/linux-unix/how-to-find-the-mysql-configuration-file-my-cnf/)
## How to Allow MySQL Remote Access Securely (2025 Guide)
[How to Allow MySQL Remote Access Securely (2025 Guide)](https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql)
## Grant permissions
### Not Allowed to Create User with GRANT
[Not allowed to GRANT](https://askubuntu.com/questions/1322175/not-allowed-to-create-user-with-grant)
## How to create MySQL admin user (superuser) account
[Create MySQL admin user](https://www.cyberciti.biz/faq/how-to-create-mysql-admin-user-superuser-account/)
### List users
Use the following command to list users with their plugins:
SELECT USER,plugin FROM mysql.user;
SELECT USER,plugin,host,ssl_type FROM mysql.user;
SELECT USER,plugin,host FROM mysql.user;
### How do I turn off the mysql password validation?
[Disable MySQL password validation](https://stackoverflow.com/questions/36301100/how-do-i-turn-off-the-mysql-password-validation)
### MySQL Show User Privileges
[MySQL Show User Privileges](https://phoenixnap.com/kb/mysql-show-user-privileges)

View File

@@ -0,0 +1,14 @@
# Ubuntu Server
## Expand partition using LVM
To expand a partition using LVM on Ubuntu Server, first check for free space in your volume group with
`` sudo vgdisplay ``
Then, extend the logical volume with
`` sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv ``
and resize the filesystem using
`` sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv ``
to apply the changes.

11
Linux/sup.sh Normal file
View File

@@ -0,0 +1,11 @@
# Update system
sudo apt update
sudo apt upgrade -y
# sudo apt full-upgrade -y
# sudo apt autoremove -y
sudo apt autoremove --purge -y
# sudo apt-get dist-upgrade -y