Posts
Install Docker on Ubuntu
sudo su - sudo apt update -y sudo apt install apt-transport-https ca-certificates curl software-properties-common -y curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" apt-cache policy docker-ce sudo apt update -y sudo apt install docker-ce -y sudo systemctl status docker sudo systemctl enable docker sudo systemctl start docker sudo systemctl status docker docker --version
Posts
Install Docker on Ubuntu Linux
1. Completely uninstall Docker from Ubuntu Linux Find what packages are installed
dpkg -l | grep -i docker Remove Docker based on what packages were found
sudo apt-get purge -y docker-engine docker docker.io docker-ce docker-ce-cli docker-compose-plugin sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce docker-compose-plugin find docker
sudo find / -name "*docker*" | grep doclker Found:
/var/lib/docker sudo rm -rf /var/lib/docker sudo rm -rf ~/.docker/ 2. Installing Docker on Ubuntu server sudo su - sudo apt update -y sudo apt install apt-transport-https ca-certificates curl software-properties-common nano -y sudo apt install apparmor -y curl -fsSL https://download.
Posts
Migrating From Windows to Linux
1. Reasons to Migrate from Microsoft Windows to Linux Open Source and Free: Linux is free to use, reducing costs associated with software licenses. Security: Linux is known for its robust security features, including fewer viruses and malware compared to Windows. Stability: Linux is less prone to crashes and slowdowns, offering reliable performance over time. Customization: Linux allows users to customize the OS to suit their preferences, from desktop environments to software.
Posts
Install Hugo on Rocky Linux
Install Hugo on Rocky Linux sudo su -
https://github.com/gohugoio/hugo/releases/download/v0.119.0/hugo_0.119.0_Linux-64bit.tar.gz Run these commands
mkdir /opt/hugo/ cd /opt/hugo wget https://github.com/gohugoio/hugo/releases/download/v0.119.0/hugo_0.119.0_Linux-64bit.tar.gz tar -xvzf hugo_0.119.0_Linux-64bit.tar.gz ./hugo version Expect:
./hugo version hugo v0.119.0-b84644c008e0dc2c4b67bd69cccf87a41a03937e linux/amd64 BuildDate=2023-09-24T15:20:17Z VendorInfo=gohugoio Copy to bin folder
cp hugo /usr/bin/ cd ../ hugo version
Posts
Firewalld Using firewall-cmd commands, Port Forwarding, Rich Rules, and NAT
This is our Architecture :
We have user nico on all the servers with the same password server nat38 ip address 10.154.2.38 server nat40 ip address 10.154.2.40 server nat41 ip address 10.154.2.1 We am running rocky Linux 9 on the servers Our workstation nmws runs DHCP ip address 10.154.2.89 now but will change 1. Find active zone and list it’s rules' sudo su - firewall-cmd --get-active-zones firewall-cmd --zone=public --list-all sudo firewall-cmd --reload 1.
Posts
Usefull Centos Commands
1. creating a user # create the user nickm sudo adduser nickm # this is better than useradd # to delete user userdel -r nickm # Set the password passwd nickm 2. making a user a Sudoer sudo cp /etc/sudoers /root/sudoers.bak sudo visudo Put this in the file
nickm ALL =(ALL) NOPASSWD: ALL josh ALL =(ALL) NOPASSWD: ALL ansible ALL =(ALL) NOPASSWD: ALL %sysadm ALL=(ALL) NOPASSWD: ALL 3. Fixing issue : Failed to set locale, defaulting to C.
Posts
Install MariaDB
Windows Installation Download the latest version of MariaDB here: https://mariadb.org/download/?t=mariadb&p=mariadb&r=11.2.0&os=windows&cpu=x86_64&pkg=msi&m=xtom_fre
Do not select the Alpha versions Select the Operating System as : Windows Select the Architecture as : X86_64 Select package type as : MSI package Now download and install the MSI file It is prefered to run this as a service this will allow you to enable or disable this whan restarting windows
Ubuntu Linux Installation Step 1 — Installing MariaDB First Update your Linux
Posts
Install and Use Proxmox as Homelab
Download proxmox https://www.proxmox.com/en/downloads?task=callelement&format=raw&item_id=689&element=f85c494b-2b32-4109-b8c1-083cca2b7db6&method=download&args[0]=7b4c63b29aa53c1a06ca047ee9ce6717
1. Setup Installtion media for Proxmox make a CD from the above image and bootup your PC Alterbativly use BalenaEtcher and make a bootable image on a thumbdrive (Memory-Stick) Boot up the PC go into the BIOS F12 now enable the machine to bootup from USB then plug in your PCs USB socket and bootup your PC again Get BalinaEtcher here:
You will need a Fully Qualified DNS Name (FQDN) Get you FQDN from DynuDNS / https://www.
Posts
File Storage Systems
File storage
Rockstor
Amahi
TrueNAS
Openfiler
iscussi and fibre support
XigmaNAS for windows
PetaSAN for large capacity backups
Turnkey File Server recommended for a home office simple File Server – Simple Network Attached Storage
OpenDedupe
ESOS – Enterprise Storage OS
OpenMediaVault good for Linux Debian based Linux network-attached storage
SSH, (S)FTP, SMB/CIFS, Rsync, BitTorrent client, DAAP media server Support services for SSH, FTP, NFS, SMB/CIFS, and RSync you will get frequent updates and patches.
Posts
Install Terraform to Work With Proxmox
Create Proxmox API Token # in proxmox click on -> Datacentre -> API Tokens -> [Add] user: -> root@pam Token ID: new-root-token -> [add] save the token now its only displayed once and now #Token is Token ID : root@pam!new-root-token secret : 125a9df6-8920-4ccd-81e8-8ab92743c61e Add this to main.tf file provider "proxmox" { pm_api_url = "https://upupa.loseyourip.com:8006/api2/json" pm_api_token_id = "root@pam!new-root-token" pm_api_token_secret = "125a9df6-8920-4ccd-81e8-8ab92743c61e" pm_tls_insecure = true } Ubuntu server Install 1. Install Terraform on Ubuntu 20.