thelinuxlist/list.md

173 lines
4.1 KiB
Markdown
Raw Permalink Normal View History

2022-11-05 18:43:45 -07:00
# This has been retired. Please refer to the README.md for scripts.
# Some of these commands may not function as normal, I will NOT provide any compensation or support for commands that are run that cause things to break. Thanks for your understanding.
![SA Sig](https://sophiaatkinson.com/wp-content/uploads/2022/10/signature-blurple.svg)
2022-10-04 20:20:22 -07:00
_______________________________________________________________________
2022-10-04 20:38:32 -07:00
## Update & Upgrade
2022-10-04 20:35:53 -07:00
```apt update && apt upgrade -y```
2022-10-04 20:20:22 -07:00
_______________________________________________________________________
2022-10-04 20:38:32 -07:00
## Set hostnames
2022-10-04 20:35:53 -07:00
```nano /etc/hostname```
```nano /etc/hosts```
2022-10-04 20:20:22 -07:00
_______________________________________________________________________
2022-10-04 20:38:32 -07:00
## Pulseway Install
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
wget https://www.pulseway.com/download/pulseway_x64.deb
2022-10-04 20:35:53 -07:00
2022-10-04 20:20:22 -07:00
dpkg -i pulseway_x64.deb
2022-10-04 20:35:53 -07:00
2022-10-04 20:20:22 -07:00
pulseway-registration
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
_______________________________________________________________________
2022-10-04 20:38:32 -07:00
## aaPanel Install
2022-10-04 20:35:53 -07:00
```wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh forum```
2022-10-04 20:20:22 -07:00
_______________________________________________________________________
2022-10-04 20:38:32 -07:00
## ip confings
2022-10-04 20:35:53 -07:00
2022-10-04 20:20:22 -07:00
RUN AS ROOT~
2022-10-04 20:35:53 -07:00
```nano /etc/netplan/00-installer-config.yaml```
2022-10-04 20:20:22 -07:00
(look at 'ip address' as this differs from VMS to physical systems)
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
# This is the network config written by 'subiquity'
network:
ethernets:
eth0:
addresses: [192.168.1.LOL/24]
gateway4: 192.168.1.1
nameservers:
addresses: [1.1.1.1, 8.8.8.8, 64.6.64.6, 8.8.4.4, 1.0.0.1, 9.9.9.9, 64.6.65.6]
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```netplan apply```
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
2022-10-04 20:38:32 -07:00
## Create dev Ips
2022-10-04 20:35:53 -07:00
(look at 'ip address' as this differs from VMS to physical systems)
```ip addr add 192.168.1.LOL/24 dev eth0```
2022-10-04 20:38:32 -07:00
## https://sop.wtf/cl4fzn
2022-10-04 20:20:22 -07:00
_______________________________________________________________________
2022-10-04 20:38:32 -07:00
## 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
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
df -h
lvm
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
exit
df -h
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
2022-10-04 20:38:32 -07:00
## You may need to do this if on virsion 22.04 or higher
2022-11-09 19:54:12 -08:00
```fdisk -l``` (note it's partition 3 by looking at the current Size)
```parted```
2022-11-09 19:54:12 -08:00
```Fix```
2022-11-09 19:54:12 -08:00
```3```
2022-11-09 19:54:12 -08:00
```100%```
2022-11-09 19:54:12 -08:00
```quit```
2022-11-09 19:54:12 -08:00
```pvresize /dev/sda3```
2022-11-09 19:54:12 -08:00
```lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv```
2022-11-09 19:54:12 -08:00
```resize2fs /dev/ubuntu-vg/ubuntu-lv```
2022-11-09 19:54:12 -08:00
```df -h```
2022-10-04 20:20:22 -07:00
_________________________________________________________________________
2022-10-04 20:38:32 -07:00
## Enable Root on SSH
2022-10-04 20:35:53 -07:00
2022-10-04 20:38:32 -07:00
```
sudo su -
2022-10-04 20:20:22 -07:00
passwd
nano /etc/ssh/sshd_config
Look for: PermitRootLogin prohibit-password (line 34) and change it to PermitRootLogin yes
or if your lazy, sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
2022-10-04 20:20:22 -07:00
reboot
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
_________________________________________________________________________
2022-10-04 20:38:32 -07:00
## Mount SMB CIFS
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```sudo apt install cifs-utils
2022-10-04 20:20:22 -07:00
sudo mkdir /mnt/NAME
sudo nano /root/.NAME-credentials
2022-10-04 20:35:53 -07:00
```
```
2022-10-04 20:20:22 -07:00
username=username
password=password
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```sudo chmod 400 /root/.NAME-credentials
2022-10-04 20:20:22 -07:00
sudo mount -t cifs -o rw,vers=3.0,credentials=/.NAME-credentials //IPADD/Share/NAME /mnt/NAME
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:38:32 -07:00
## Automount on system reboot
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
sudo nano /etc/fstab
//IPADD/Share/NAME /mnt/NAME cifs vers=3.0,credentials=/.NAME-credentials
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
_________________________________________________________________________
2022-10-04 20:38:32 -07:00
## Time change
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
timedatectl
timedatectl list-timezones
sudo timedatectl set-timezone America/Los_Angeles
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
_________________________________________________________________________
2022-10-04 20:38:32 -07:00
## Observium Install
2022-10-04 20:20:22 -07:00
https://sop.wtf/0qjgzv
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
wget http://www.observium.org/observium_installscript.sh
sudo chmod +x observium_installscript.sh
sudo ./observium_installscript.sh
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
________________________________________________________________________
2022-10-04 20:38:32 -07:00
## SNMP v3 Configuration
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
sudo apt update
sudo apt install snmp snmpd libsnmp-dev
sudo net-snmp-config --create-snmpv3-user -ro -A [PASSWORD] -X [CRYPTO-PASSWORD] -a MD5 -x AES [USER]
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
________________________________________________________________________
2022-10-04 20:38:32 -07:00
## Install PHP 8.1.x
2022-10-04 20:20:22 -07:00
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
sudo apt install software-properties-common (Should be install by default, but run just incase)
sudo add-apt-repository ppa:ondrej/php
2022-10-04 20:35:53 -07:00
```
2022-10-04 20:20:22 -07:00
________________________________________________________________________