Linux Join Active Directory

After we Setup Active Directory Server in Windows Server 2022 now we can use this LDAP/AD User to login to server environments. Join Active Directory and Configure to Login with User AD Installing packages dnf install -y realmd oddjob oddjob-mkhomedir sssd adcli samba-common-tools Set dns server to AD server cat <<EOF | tee -a /etc/resolv.conf search lab.homelab.is-a.dev nameserver 10.79.80.3 EOF Discover to AD server realm discover lab.homelab.is-a.dev Joining linux host to AD server ...

September 3, 2024 · 1 min · 212 words · Viki Pranata

Linux Networking Self Notes

Configure Linux NAT Forwarding Enable kernel parameter echo 'net.ipv4.ip_forward = 1' > /etc/sysctl.d/99-forwarding.conf sysctl --system Setup firewalld configuration nmcli connection migrate nmcli connection modify eth0 connection.zone public nmcli device modify eth0 connection.zone public nmcli connection modify eth1 connection.zone internal nmcli device modify eth1 connection.zone internal firewall-cmd --permanent --zone=public --add-masquerade firewall-cmd --permanent --new-policy NAT-int-to-ext firewall-cmd --permanent --policy NAT-int-to-ext --add-ingress-zone internal firewall-cmd --permanent --policy NAT-int-to-ext --add-egress-zone public firewall-cmd --permanent --policy NAT-int-to-ext --set-target ACCEPT firewall-cmd --reload Special case for Proxmox Virtual Environment ...

September 2, 2024 · 1 min · 149 words · Viki Pranata

Linux Resize Disk

Expand Space without Rebooting VM Current usage disk with lsblk command And here is LVM partition table First step we need grow partition in /dev/sda3, install package growpart first dnf install -y cloud-utils-growpart Then we resize partition with this command growpart /dev/sda 3 See the different before and after, if you don’t use LVM partition scheme just execute resize2fs /dev/sda3 to full fill the partition. pvresize /dev/sda3 pvs vgs ...

September 1, 2024 · 2 min · 220 words · Viki Pranata