Compare commits

...

2 Commits

Author SHA1 Message Date
IntenseWebs
d20f94c765 Grub and PostgreSQL updates 2024-02-14 23:54:42 -06:00
IntenseWebs
c2b117a281 Update SSH, Postgres docs 2024-02-12 16:21:01 -06:00
5 changed files with 31 additions and 1 deletions

View File

@ -46,6 +46,7 @@ ssh-keygen -f "/home/privacy/.ssh/known_hosts" -R "192.168.1.124"
eval "$(ssh-agent -s)"
chmod 600 /c/Users/username/Documents/SETTINGS/id_rsa
ssh-add /c/Users/username/Documents/SETTINGS/id_rsa
ssh-add /directory/my_id_rsa
# To create a systemd ssh-agent service, you need to create a file in ~/.config/systemd/user/ssh-agent.service because ssh-agent is user isolated.
@ -100,4 +101,4 @@ Running ssh-agent OpenSSH Authentication Agent
ssh-add -l
ssh-add -L
Could be multiple things; here are just a couple. 1. If you were using authorized_keys, were they copied to new user on Rocky? 2. Is sshd enabled on Rocky? systemctl status sshd 3. Firewall opened on Rocky? firewall-cmd --add-service=ssh --permanent 4. Permissions need reset on .ssh & authorized_keys; happens a lot more than you may realize. 5. Hopefully not root ssh login? Check /etc/ssh/sshd_config PasswordAuthentication PermitRootLogin Values
Could be multiple things; here are just a couple. 1. If you were using authorized_keys, were they copied to new user on Rocky? 2. Is sshd enabled on Rocky? systemctl status sshd 3. Firewall opened on Rocky? firewall-cmd --add-service=ssh --permanent 4. Permissions need reset on .ssh & authorized_keys; happens a lot more than you may realize. 5. Hopefully not root ssh login? Check /etc/ssh/sshd_config PasswordAuthentication PermitRootLogin Values 6. Is SSH Private Key added to SSH Agent?

View File

@ -51,3 +51,12 @@ insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root EFC8-2865
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
_______________________________________________________________________
sudo apt-get update
sudo apt-get install --reinstall grub
sudo apt-get dist-upgrade
sudo apt-get upgrade
sudo apt autoremove
Then reboot and try running apt-get dist-upgrade again, the issue should be resolved.

View File

@ -1,3 +1,4 @@
https://code.iweb.city/iw/servercode/src/branch/main/postgres-pgadmin-python3-django-gunicorn-nginx
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
https://tonyteaches.tech/django-nginx-uwsgi-tutorial/
https://www.datadoghq.com/blog/nginx-502-bad-gateway-errors-gunicorn/#nginx-cant-access-the-socket

19
postgresql-pgadmin4.txt Normal file
View File

@ -0,0 +1,19 @@
https://computingforgeeks.com/how-to-install-pgadmin4-on-debian/
apt install gnupg gnupg2
echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" | sudo tee /etc/apt/sources.list.d/pgadmin4.list
cat /etc/apt/sources.list.d/pgadmin4.list
curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
sudo apt update
apt install pgadmin4-web
/usr/pgadmin4/bin/setup-web.sh
sudo ufw allow http
sudo ufw allow https
sudo adduser MYUSERNAME
sudo usermod -aG sudo MYUSERNAME
su - MYUSERNAME
sudo usermod -a -G www-data $USER
sudo apt remove curl

View File