501 lines
15 KiB
Plaintext
501 lines
15 KiB
Plaintext
nginx -t
|
|
nginx -s reload
|
|
exit
|
|
ln -s /var/log/nginx /var/www/html/log-nginx
|
|
ls -la /var/www/html
|
|
cp ~/.bash_history /etc/bash_history_2024-11-05.txt
|
|
cat /etc/bash_history_2024-11-05.txt
|
|
exit
|
|
apt-get install podman -y
|
|
apt-cache rdepends podman-compose
|
|
apt-get install podman-compose -y
|
|
apt-get install sudo
|
|
mkdir /home/podman/.ssh
|
|
cp /root/.ssh/authorized_keys /home/podman/.ssh/authorized_keys
|
|
chown podman:podman -R /home/podman
|
|
adduser podman sudo
|
|
loginctl enable-linger
|
|
sudo -iu podman
|
|
podman --version
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
mkdir -p /run/user/1000/
|
|
chown -R podman:podman /run/user/1000/
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
systemctl --user start uptime-kuma-server
|
|
systemctl start uptime-kuma-server
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
find / -name "*fedora*" 2>/dev/null
|
|
nano /usr/share/lxc/config/fedora.common.conf
|
|
nano /usr/share/lxc/config/fedora.common.conf
|
|
nano /usr/share/lxc/config/fedora.common.conf
|
|
nano /usr/share/lxc/config/fedora.common.conf
|
|
nano /usr/share/lxc/config/fedora.userns.conf
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
chown -R podman:podman /home/podman
|
|
sudo -iu podman
|
|
apt install podman-quadlet
|
|
ls -la /usr/libexec/podman
|
|
systemctl -l | grep -i rootlessport
|
|
ps aux | grep rootlessport
|
|
whereis podman-generate-systemd
|
|
exit
|
|
clear
|
|
apt list --installed
|
|
sudo -iu podman
|
|
exit
|
|
sudo -iu podman
|
|
exit
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/ubuntu.sh)"
|
|
apt-get install podman-compose -y
|
|
exit
|
|
pip3 install podman-compose
|
|
systemctl enable podmand
|
|
apt install podman
|
|
systemctl enable podmand
|
|
podman --version
|
|
systemctl enable podman.socket
|
|
systemctl start podman.socket
|
|
systemctl status podman.socket
|
|
apt-get install cockpit cockpit-podman -y
|
|
systemctl enable --now cockpit.socket
|
|
sudo -iu podman
|
|
apt install software-properties-common uidmap -y
|
|
sudo -iu podman
|
|
apt-get install -y libapparmor-dev
|
|
cd /tmp/acme.sh
|
|
ls /root/.acme.sh/
|
|
./acme.sh --issue --dns dns_duckdns -d '*.phares.duckdns.org' --debug --home /root/.acme.sh --dnssleep 120 --days 90 --ecc --server https://acme-v02.api.letsencrypt.org/directory
|
|
cd /tmp
|
|
git clone https://github.com/acmesh-official/acme.sh.git
|
|
cd /tmp/acme.sh
|
|
./acme.sh --install -m mikepharesjr@msn.com
|
|
export DuckDNS_Token=1d3fc707-7052-4459-a624-fb01250f00b9
|
|
echo $DuckDNS_Token
|
|
./acme.sh --register-account -m mikepharesjr@msn.com
|
|
./acme.sh --set-default-ca --server letsencrypt
|
|
./acme.sh --issue --dns dns_duckdns -d '*.phares.duckdns.org' --debug --home /root/.acme.sh --dnssleep 120 --days 90 --ecc --server https://acme-v02.api.letsencrypt.org/directory
|
|
ls
|
|
ls /root/.acme.sh/
|
|
cd /root/.acme.sh/
|
|
cp -R \*.phares.duckdns.org_ecc/ wild-phares
|
|
cd wild-phares/
|
|
ls
|
|
mv \*.phares.duckdns.org.cer phares.duckdns.org.cer
|
|
mv \*.phares.duckdns.org.conf phares.duckdns.org.conf
|
|
mv \*.phares.duckdns.org.csr phares.duckdns.org.csr
|
|
mv \*.phares.duckdns.org.csr.conf phares.duckdns.org.csr.conf
|
|
mv \*.phares.duckdns.org.key phares.duckdns.org.key
|
|
ls
|
|
cd ..
|
|
cd ..
|
|
cd /tmp/
|
|
cd acme.sh/
|
|
ls
|
|
./acme.sh --issue --dns dns_duckdns -d '*.affirm.duckdns.org' --debug --home /root/.acme.sh --dnssleep 120 --days 90 --ecc --server https://acme-v02.api.letsencrypt.org/directory
|
|
cp -R \*.affirm.duckdns.org_ecc/ wild-affirm
|
|
cp -R \*.affirm.duckdns.org_ecc/ wild-affirm
|
|
cp -R /root/.acme.sh/\*.affirm.duckdns.org_ecc/ /root/.acme.sh/wild-affirm
|
|
mv /root/.acme.sh/\*.affirm.duckdns.org.cer /root/.acme.sh/affirm.duckdns.org.cer
|
|
mv /root/.acme.sh/\*.affirm.duckdns.org.conf /root/.acme.sh/affirm.duckdns.org.conf
|
|
mv /root/.acme.sh/\*.affirm.duckdns.org.csr /root/.acme.sh/affirm.duckdns.org.csr
|
|
mv /root/.acme.sh/\*.affirm.duckdns.org.csr.conf /root/.acme.sh/affirm.duckdns.org.csr.conf
|
|
mv /root/.acme.sh/\*.affirm.duckdns.org.key /root/.acme.sh/affirm.duckdns.org.key
|
|
mv /root/.acme.sh/wild-affirm/\*.affirm.duckdns.org.cer /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer
|
|
mv /root/.acme.sh/wild-affirm/\*.affirm.duckdns.org.conf /root/.acme.sh/wild-affirm/affirm.duckdns.org.conf
|
|
mv /root/.acme.sh/wild-affirm/\*.affirm.duckdns.org.csr /root/.acme.sh/wild-affirm/affirm.duckdns.org.csr
|
|
mv /root/.acme.sh/wild-affirm/\*.affirm.duckdns.org.csr.conf /root/.acme.sh/wild-affirm/affirm.duckdns.org.csr.conf
|
|
mv /root/.acme.sh/wild-affirm/\*.affirm.duckdns.org.key /root/.acme.sh/wild-affirm/affirm.duckdns.org.key
|
|
nginx -t
|
|
nginx -s reload
|
|
exit
|
|
rm -R /root/.acme.sh/affirm.duckdns.org_ecc/
|
|
cp /root/.acme.sh/\*.bchs.duckdns.org_ecc /root/.acme.sh/wild-bchs
|
|
cd /root/.acme.sh/
|
|
ls -la
|
|
cd /tmp/
|
|
cd acme.sh/
|
|
./acme.sh --issue --dns dns_duckdns -d '*.bchs.duckdns.org' --debug --home /root/.acme.sh --dnssleep 120 --days 90 --ecc --server https://acme-v02.api.letsencrypt.org/directory
|
|
cp /root/.acme.sh/\*.bchs.duckdns.org_ecc /root/.acme.sh/wild-bchs
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.cer /root/.acme.sh/wild-bchs/bchs.duckdns.org.cer
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.conf /root/.acme.sh/wild-bchs/bchs.duckdns.org.conf
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.csr /root/.acme.sh/wild-bchs/bchs.duckdns.org.csr
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.csr.conf /root/.acme.sh/wild-bchs/bchs.duckdns.org.csr.conf
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.key /root/.acme.sh/wild-bchs/bchs.duckdns.org.key
|
|
cd /root/.acme.sh/
|
|
ls
|
|
cp /root/.acme.sh/\*.bchs.duckdns.org_ecc /root/.acme.sh/wild-bchs
|
|
cp -R /root/.acme.sh/\*.bchs.duckdns.org_ecc /root/.acme.sh/wild-bchs
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.cer /root/.acme.sh/wild-bchs/bchs.duckdns.org.cer
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.conf /root/.acme.sh/wild-bchs/bchs.duckdns.org.conf
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.csr /root/.acme.sh/wild-bchs/bchs.duckdns.org.csr
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.csr.conf /root/.acme.sh/wild-bchs/bchs.duckdns.org.csr.conf
|
|
mv /root/.acme.sh/wild-bchs/\*.bchs.duckdns.org.key /root/.acme.sh/wild-bchs/bchs.duckdns.org.key
|
|
exit
|
|
nginx -t
|
|
nginx -t
|
|
nginx -s reload
|
|
nginx -s reload
|
|
exit
|
|
nano /etc/cockpit/cockpit.conf
|
|
systemctl restart cockpit
|
|
journalctl -u cockpit
|
|
systemctl restart cockpit.service
|
|
systemctl restart cockpit.socket
|
|
exit
|
|
systemctl restart cockpit.socket
|
|
systemctl restart cockpit.service
|
|
journalctl -u cockpit
|
|
systemctl stop cockpit
|
|
systemctl stop cockpit.socket
|
|
exit
|
|
mv /etc/cockpit/ws-certs.d/0-self-signed.cert /etc/cockpit/ws-certs.d/0-self-signed.cert.old
|
|
mv /etc/cockpit/ws-certs.d/0-self-signed.key /etc/cockpit/ws-certs.d/0-self-signed.key.old
|
|
cp /root/.acme.sh/wild-affirm/fullchain.cer /etc/cockpit/ws-certs.d/0-self-signed.cert
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /etc/cockpit/ws-certs.d/0-self-signed.key
|
|
systemctl start cockpit
|
|
journalctl -xeu cockpit.service
|
|
systemctl start cockpit
|
|
systemctl start cockpit.socket
|
|
systemctl start cockpit
|
|
systemctl status cockpit.service
|
|
ls -la /etc/cockpit/ws-certs.d
|
|
exit
|
|
chmod 774 -R /etc/cockpit/ws-certs.d
|
|
systemctl start cockpit
|
|
systemctl status cockpit.service
|
|
systemctl start cockpit.socket
|
|
systemctl start cockpit
|
|
systemctl stop cockpit
|
|
systemctl start cockpit
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer /etc/cockpit/ws-certs.d/0-self-signed.cert
|
|
ls -la /etc/cockpit/ws-certs.d
|
|
chmod 774 -R /etc/cockpit/ws-certs.d
|
|
ls -la /etc/cockpit/ws-certs.d
|
|
systemctl start cockpit
|
|
journalctl -u cockpit
|
|
systemctl start cockpit.soket
|
|
systemctl start cockpit.socket
|
|
cat /etc/cockpit/ws-certs.d/0-self-signed.cert
|
|
exit
|
|
cat /etc/cockpit/ws-certs.d/0-self-signed.key
|
|
exit
|
|
systemctl start cockpit
|
|
exit
|
|
systemctl stop cockpit
|
|
systemctl stop cockpit.socket
|
|
systemctl start cockpit
|
|
systemctl start cockpit.socket
|
|
journalctl -u cockpit
|
|
journalctl -u cockpit
|
|
journalctl --rotate
|
|
journalctl --vacuum-time=1s
|
|
journalctl -u cockpit
|
|
journalctl -u cockpit
|
|
journalctl -u cockpit
|
|
journalctl -u cockpit
|
|
nano /etc/cockpit/cockpit.conf
|
|
ngnix -t
|
|
nginx -t
|
|
nginx -s reload
|
|
exit
|
|
sudo -iu podman
|
|
exit
|
|
cp ~/.bash_history /etc/bash_history_2024-11-11.txt
|
|
cat /etc/bash_history_2024-11-11.txt
|
|
ls
|
|
ls -la
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/uptimekuma.sh)"
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/uptimekuma.sh)"
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/uptimekuma.sh)"
|
|
/etc/network/interfaces
|
|
ls /etc/network/interfaces
|
|
cat /etc/network/interfaces
|
|
ping 192.168.31.31
|
|
ping 192.168.31.32
|
|
ngnix -t
|
|
nginx -s reload
|
|
links http://192.168.31.31:3001
|
|
links http://192.168.31.31:3001
|
|
links http://192.168.31.31
|
|
links http://192.168.31.31:3002
|
|
links http://192.168.31.32:3001
|
|
nginx -s reload
|
|
nginx -s reload
|
|
nginx -s reload
|
|
nginx -s reload
|
|
links http://192.168.31.65:3001
|
|
links https://192.168.31.65:3001
|
|
links http://192.168.31.12:8006
|
|
links http://192.168.31.12:8006
|
|
nginx -s reload
|
|
nginx -s reload
|
|
cat /etc/systemd/system/getty@.service.d/autologin.conf
|
|
pct enter 100
|
|
nginx -s reload
|
|
pct enter 100
|
|
pct enter 101
|
|
pct enter 100
|
|
nginx -s reload
|
|
pct enter 100
|
|
mkdir /mnt/vm-100-disk-0
|
|
mount /dev/pve/vm-100-disk-0 /mnt/vm-100-disk-0
|
|
cd /mnt/vm-100-disk-0
|
|
ls -la
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer /certs/server.cert
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /certs/server.key
|
|
mkdir /mnt/vm-100-disk-0/certs
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /certs/server.key
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /certs/server.key
|
|
ls
|
|
cd certs/
|
|
ls
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer /certs/server.cert
|
|
nano /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer /mnt/vm-100-disk-0/certs/server.cert
|
|
cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /mnt/vm-100-disk-0/certs/server.key
|
|
ls
|
|
ls -la
|
|
umount /mnt/vm-100-disk-0
|
|
cd /
|
|
umount /mnt/vm-100-disk-0
|
|
cd /mnt/vm-100-disk-0
|
|
ls
|
|
pct enter 100
|
|
pct enter 100
|
|
pct enter 100
|
|
links http://192.168.31.39:3001
|
|
links http://192.168.31.39:3004
|
|
links https://192.168.31.39:3001
|
|
nginx -s reload
|
|
links https://192.168.31.39:3001
|
|
ip a
|
|
pct enter 100
|
|
pct enter 100
|
|
pct enter 100
|
|
nginx -s reload
|
|
pct enter 100
|
|
nano /etc/hosts
|
|
pct enter 100
|
|
ping mattermost.phares.duckdns.org
|
|
curl https://mattermost.phares.duckdns.org
|
|
pct enter 100
|
|
exit
|
|
links http://192.168.31.12:8084/
|
|
cp /var/www/html /var/www/html-quartz
|
|
cp -R /var/www/html /var/www/html-quartz
|
|
links http://192.168.31.12:8084/
|
|
nginx -s reload
|
|
nginx -s reload
|
|
links http://192.168.31.12:8084/
|
|
ls -la /var/www/html-quartz
|
|
r -r /var/www/html-quartz/log-nginx
|
|
rm -R /var/www/html-quartz/log-nginx
|
|
ls -la /var/www/html-quartz
|
|
mv /var/www/html-quartz/index.nginx-debian.html index.html
|
|
links http://192.168.31.12:8084/
|
|
ls
|
|
mv index.html /var/www/html-quartz/
|
|
ls
|
|
links http://192.168.31.12:8084/
|
|
links http://192.168.31.12:8084/
|
|
exit
|
|
cd /run/user/1000/
|
|
cd systemd/
|
|
ls -la
|
|
nano generator.late/
|
|
cd generator.late/
|
|
ls
|
|
cd ..
|
|
mkdir /run/user/1000/systemd/generator
|
|
cp /home/podman/libexec-podman-quadlet-output/neko-server.service /run/user/1000/systemd/generator/neko-server.service
|
|
cd generator
|
|
ls
|
|
sudo -iu podman
|
|
sudo -iu podman
|
|
ls -la /run/user/1000/systemd/generator/neko-server.service
|
|
ls -la /run/user/1000/systemd/generator
|
|
ls -la /run/user/1000/systemd
|
|
mkdir /run/user/1000/systemd/generator
|
|
cp /home/podman/libexec-podman-quadlet-output/neko-server.service /run/user/1000/systemd/generator/neko-server.service
|
|
sudo -iu podman
|
|
nginx -s reload
|
|
nginx -s reload
|
|
sudo -iu podman
|
|
cp /home/podman/libexec-podman-quadlet-output/neko-server.service /run/user/1000/systemd/generator/neko-server.service
|
|
mkdir /run/user/1000/systemd/generator
|
|
cp /home/podman/libexec-podman-quadlet-output/neko-server.service /run/user/1000/systemd/generator/neko-server.service
|
|
exit
|
|
mkdir /run/user/1000/systemd/generator
|
|
cp /home/podman/libexec-podman-quadlet-output/neko-server.service /run/user/1000/systemd/generator/neko-server.service
|
|
sudo -iu podman
|
|
nginx -s reload
|
|
exit
|
|
cat /etc/network/interfaces
|
|
apt update
|
|
apt install dnsmasq -y
|
|
systemctl disable --now dnsmasq
|
|
apt install frr-pythontools -y
|
|
exit
|
|
exit
|
|
cat /etc/network/interfaces
|
|
nginx -s reload
|
|
links http://192.168.32.100:3001
|
|
curl http://192.168.32.100:3001
|
|
curl http://192.168.32.100:3001
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/ubuntu2404-vm.sh)"
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/ubuntu2404-vm.sh)"
|
|
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/adguard.sh)"
|
|
curl http://192.168.32.100:3001
|
|
snap remove addguard
|
|
snap remove addguardhome
|
|
snap remove adguardhome
|
|
snap remove adguard
|
|
snap remove adguard-home
|
|
snap install adguard-home
|
|
curl http:192.168.31.12:3000
|
|
curl http://192.168.31.12:3000
|
|
nginx -s reload
|
|
nginx -s reload
|
|
curl http:192.168.31.100:3002
|
|
curl http://192.168.31.100:3002
|
|
curl http://192.168.31.100:3000
|
|
curl http://192.168.31.100:3001
|
|
curl http://192.168.31.100:3001
|
|
ping 192.168.32.100
|
|
curl http://192.168.32.100:3002
|
|
curl http://192.168.32.100:3001
|
|
links http://192.168.32.100:3001/
|
|
nginx -s reload
|
|
pct enter 100
|
|
curl http://192.168.32.100:3001
|
|
curl http://192.168.32.100:3001/dashboardroot
|
|
nano /etc/dnsmasq.d/SDN/ethers
|
|
pct enter 100
|
|
nano /etc/hosts
|
|
pct enter 100
|
|
pct enter 100
|
|
nano /etc/hosts
|
|
pct modify /etc/hosts 100
|
|
exit
|
|
cat /var/lib/misc/dnsmasq.SDN.leases
|
|
exit
|
|
mviewcl
|
|
lsblk -I 8 -o NAME,SIZE,TYPE,FSUSED,FSUSE%
|
|
docker
|
|
exit
|
|
snap info
|
|
snap
|
|
snap find
|
|
snap list
|
|
exit
|
|
cd /tmp
|
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
|
sh get-docker.sh
|
|
docker ps -a
|
|
exit
|
|
cd /tmp
|
|
mkdir -p /opt/stacks /opt/dockge
|
|
cd /opt/dockge
|
|
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output compose.yaml
|
|
docker compose up -d
|
|
nginx -s reload
|
|
nginx -s reload
|
|
apt install podman-docker
|
|
/usr/libexec/podman/quadlet -dryrun --user
|
|
apt install podman-docker
|
|
docker down
|
|
docker
|
|
docker stop
|
|
docker ls
|
|
docker ps a
|
|
docker ps -a
|
|
docker stop c
|
|
nginx -s reload
|
|
docker compose up -d
|
|
docker ps -a
|
|
docker stop c
|
|
docker compose up -d
|
|
nginx -s reload
|
|
curl http://192.168.31.12:5800
|
|
nginx -s reload
|
|
nginx -s reload
|
|
nginx -s reload
|
|
docker exec -it firefox bash
|
|
docker ps -a
|
|
docker exec -it 1 bash
|
|
docker exec -it 1 sh
|
|
exit
|
|
exit
|
|
exit
|
|
docker exec -it 1 bash
|
|
docker exec -it firefox bash
|
|
docker ps a
|
|
docker ps -a
|
|
docker exec -it 1 bash
|
|
docker exec -it 1 sh
|
|
snap list
|
|
nginx -s reload
|
|
snap install dotnet-sdk --classic --channel latest/stable
|
|
export DOTNET_ROOT=/snap/dotnet-sdk/current
|
|
~/.bashrc
|
|
dotnet --info
|
|
exit
|
|
cd /tmp/
|
|
git clone https://33aada599f8e245782e68931fe2629a959af5d26@gitea.phares.duckdns.org/phares3757/one-review.git
|
|
cd one-review/
|
|
git checkout origin/11-17
|
|
git log -1
|
|
docker compose -up
|
|
docker compose up
|
|
docker compose up
|
|
nano docker-compose.yaml
|
|
exit
|
|
links http://localhost:5001
|
|
links http://192.168.11.2:5001
|
|
exit
|
|
nginx -s reload
|
|
links http://localhost:5000/Products
|
|
exit
|
|
cd /tmp/
|
|
cd one-review/
|
|
nano docker-compose.yaml
|
|
docker compose up
|
|
docker ps -a\
|
|
docker ps -a
|
|
docker images ls
|
|
docker image ls
|
|
git pull origin 11-17
|
|
git log -1
|
|
git reset --hard
|
|
git log -1
|
|
git pull origin 11-17
|
|
git log -1
|
|
docker compose up
|
|
docker ps -a
|
|
docker image ls
|
|
docker compose up
|
|
docker compose up
|
|
dotnet run --project src/OneReview
|
|
dotnet run --project src/OneReview
|
|
docker image ls
|
|
docker image ls
|
|
docker image rm 0f
|
|
docker image rm 0f
|
|
docker ps -a
|
|
docker container rm e5
|
|
docker image rm 0f
|
|
docker compose up
|
|
exit
|
|
nginx -t
|
|
nginx -s reload
|