forked from Sophia/thelinuxlist
Update 'linux.md'
This commit is contained in:
parent
634ca6d18e
commit
bbb7bcf9e0
53
linux.md
53
linux.md
|
@ -1,17 +1,17 @@
|
||||||
_______________________________________________________________________
|
_______________________________________________________________________
|
||||||
Update & Upgrade
|
## Update & Upgrade
|
||||||
|
|
||||||
```apt update && apt upgrade -y```
|
```apt update && apt upgrade -y```
|
||||||
|
|
||||||
_______________________________________________________________________
|
_______________________________________________________________________
|
||||||
Set hostnames
|
## Set hostnames
|
||||||
|
|
||||||
```nano /etc/hostname```
|
```nano /etc/hostname```
|
||||||
|
|
||||||
```nano /etc/hosts```
|
```nano /etc/hosts```
|
||||||
_______________________________________________________________________
|
_______________________________________________________________________
|
||||||
|
|
||||||
Pulseway Install
|
## Pulseway Install
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://www.pulseway.com/download/pulseway_x64.deb
|
wget https://www.pulseway.com/download/pulseway_x64.deb
|
||||||
|
@ -23,12 +23,12 @@ pulseway-registration
|
||||||
|
|
||||||
_______________________________________________________________________
|
_______________________________________________________________________
|
||||||
|
|
||||||
aaPanel Install
|
## aaPanel Install
|
||||||
|
|
||||||
```wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh forum```
|
```wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh forum```
|
||||||
_______________________________________________________________________
|
_______________________________________________________________________
|
||||||
|
|
||||||
ip confings
|
## ip confings
|
||||||
|
|
||||||
RUN AS ROOT~
|
RUN AS ROOT~
|
||||||
|
|
||||||
|
@ -50,17 +50,18 @@ network:
|
||||||
```netplan apply```
|
```netplan apply```
|
||||||
|
|
||||||
|
|
||||||
Create dev Ips
|
## Create dev Ips
|
||||||
|
|
||||||
(look at 'ip address' as this differs from VMS to physical systems)
|
(look at 'ip address' as this differs from VMS to physical systems)
|
||||||
|
|
||||||
```ip addr add 192.168.1.LOL/24 dev eth0```
|
```ip addr add 192.168.1.LOL/24 dev eth0```
|
||||||
|
|
||||||
https://sop.wtf/cl4fzn
|
## https://sop.wtf/cl4fzn
|
||||||
_______________________________________________________________________
|
_______________________________________________________________________
|
||||||
|
|
||||||
How to resize /dev/ubuntu-vg/ubuntu-lv "Root Dir"
|
## How to resize /dev/ubuntu-vg/ubuntu-lv "Root Dir"
|
||||||
This is if you have LVM enabled, if its non LVM read this ask ubuntu thread https://sop.wtf/3nn8bi
|
|
||||||
|
## This is if you have LVM enabled, if its non LVM read this ask ubuntu thread https://sop.wtf/3nn8bi
|
||||||
```
|
```
|
||||||
df -h
|
df -h
|
||||||
lvm
|
lvm
|
||||||
|
@ -69,7 +70,7 @@ exit
|
||||||
df -h
|
df -h
|
||||||
```
|
```
|
||||||
|
|
||||||
You may need to do this if on virsion 22.04 or higher
|
## You may need to do this if on virsion 22.04 or higher
|
||||||
```
|
```
|
||||||
fdisk -l (note it's partition 3 by looking at the current Size)
|
fdisk -l (note it's partition 3 by looking at the current Size)
|
||||||
parted
|
parted
|
||||||
|
@ -82,9 +83,10 @@ df -h
|
||||||
|
|
||||||
_________________________________________________________________________
|
_________________________________________________________________________
|
||||||
|
|
||||||
Enable Root on SSH
|
## Enable Root on SSH
|
||||||
|
|
||||||
```sudo su -
|
```
|
||||||
|
sudo su -
|
||||||
passwd
|
passwd
|
||||||
nano /etc/ssh/sshd_config
|
nano /etc/ssh/sshd_config
|
||||||
Look for: PermitRootLogin prohibit-password (line 34) and change it to PermitRootLogin yes
|
Look for: PermitRootLogin prohibit-password (line 34) and change it to PermitRootLogin yes
|
||||||
|
@ -93,22 +95,7 @@ reboot
|
||||||
```
|
```
|
||||||
_________________________________________________________________________
|
_________________________________________________________________________
|
||||||
|
|
||||||
If Gitea fucking expodes.
|
## Mount SMB CIFS
|
||||||
https://sop.wtf/s8a74h
|
|
||||||
```
|
|
||||||
sudo wget -O /usr/local/bin/gitea https://dl.gitea.io/gitea/1.17.2/gitea-1.17.2-linux-amd64
|
|
||||||
sudo chmod +x /usr/local/bin/gitea
|
|
||||||
sudo chown -Rv git:git /var/lib/gitea
|
|
||||||
sudo chmod -Rv 750 /var/lib/gitea
|
|
||||||
sudo chown -Rv root:git /etc/gitea
|
|
||||||
sudo chmod -Rv 770 /etc/gitea
|
|
||||||
sudo nano /etc/systemd/system/gitea.service
|
|
||||||
https://linustechtips.xyz/nirO5/bIZAfuse84.txt/raw
|
|
||||||
sudo systemctl enable --now gitea
|
|
||||||
```
|
|
||||||
_________________________________________________________________________
|
|
||||||
|
|
||||||
Mount SMB CIFS
|
|
||||||
|
|
||||||
```sudo apt install cifs-utils
|
```sudo apt install cifs-utils
|
||||||
sudo mkdir /mnt/NAME
|
sudo mkdir /mnt/NAME
|
||||||
|
@ -123,7 +110,7 @@ password=password
|
||||||
```sudo chmod 400 /root/.NAME-credentials
|
```sudo chmod 400 /root/.NAME-credentials
|
||||||
sudo mount -t cifs -o rw,vers=3.0,credentials=/.NAME-credentials //IPADD/Share/NAME /mnt/NAME
|
sudo mount -t cifs -o rw,vers=3.0,credentials=/.NAME-credentials //IPADD/Share/NAME /mnt/NAME
|
||||||
```
|
```
|
||||||
Automount on system reboot
|
## Automount on system reboot
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo nano /etc/fstab
|
sudo nano /etc/fstab
|
||||||
|
@ -131,7 +118,7 @@ sudo nano /etc/fstab
|
||||||
```
|
```
|
||||||
_________________________________________________________________________
|
_________________________________________________________________________
|
||||||
|
|
||||||
### Time change
|
## Time change
|
||||||
|
|
||||||
```
|
```
|
||||||
timedatectl
|
timedatectl
|
||||||
|
@ -141,7 +128,7 @@ sudo timedatectl set-timezone America/Los_Angeles
|
||||||
|
|
||||||
_________________________________________________________________________
|
_________________________________________________________________________
|
||||||
|
|
||||||
Observium Install
|
## Observium Install
|
||||||
https://sop.wtf/0qjgzv
|
https://sop.wtf/0qjgzv
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -151,7 +138,7 @@ sudo ./observium_installscript.sh
|
||||||
```
|
```
|
||||||
________________________________________________________________________
|
________________________________________________________________________
|
||||||
|
|
||||||
SNMP v3 Configuration
|
## SNMP v3 Configuration
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
@ -161,7 +148,7 @@ sudo net-snmp-config --create-snmpv3-user -ro -A [PASSWORD] -X [CRYPTO-PASSWORD]
|
||||||
```
|
```
|
||||||
________________________________________________________________________
|
________________________________________________________________________
|
||||||
|
|
||||||
Install PHP 8.1.x
|
## Install PHP 8.1.x
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt install software-properties-common (Should be install by default, but run just incase)
|
sudo apt install software-properties-common (Should be install by default, but run just incase)
|
||||||
|
|
Loading…
Reference in New Issue