Quick time server set up on HP/Aruba switches

This is a quick configuration of setting a time server on Aruba/HP switches.

Enable sntp

timesync sntp

Specify how to get to your time server

sntp unicast

If your DHCP server specifies an SNTP server in it's leases, then you didn't really have to go through this.

Specify the time server

sntp server priority 1 IP.IP.IP.IP

Replace IP.IP.IP.IP with your server IP.

Set timezone

time timezone -360

Set this to for your location.

Set daylight-savings time rule

time daylight-time-rule continental-us-and-canada

Set this to for your location.

Verify your changes

show sntp
· 2020/07/29 10:51 · 2021/04/29 15:04

Fix software updates in Cockpit in Ubuntu 20.04

Software updates on the Ubuntu system will fail because Cockpit on Ubuntu doesn't detect a network connection. To fix this, you must use NetworkManager instead of the default networkd.

You need to be root or sudo root for all these commands. Edit your netplan file in /etc/netplan and add the following two lines under network:.

version: 2
renderer: NetworkManager

Remember that spaces matter in YAML files.

You will then need install network-manager.

apt install network-manager

Disable networkd.

systemctl disable systemd-networkd

Enable NetworkManager

systemctl enable network-manager

Apply your new settings

netplan apply

Profit!

· 2020/07/17 14:15 · 2020/07/17 14:23

Allow rrdcached, memcache, and MariaDB/MySQL through the firewall in CentOS 8

Open ports 42217 (rrdcached) and 11211 (memcached) in the firewall and reload the firewall.

firewall-cmd --zone=public --permanent --add-port 42217/tcp
firewall-cmd --zone=public --permanent --add-port 11211/tcp
firewall-cmd --zone=public --permanent --add-port 3306/tcp
firewall-cmd --reload

Verify that the ports are open using firewall-cmd –-list-all.

[root@nms nms]# firewall-cmd –list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens32
sources:
services: cockpit dhcpv6-client http https ssh
ports: 42217/tcp 11211/tcp 3306/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

PXE Config examples

I've set up a local http web server. You can use another web server mirror if you want.

default
DEFAULT      vesamenu.c32
PROMPT       0
 
MENU TITLE PXE Boot Menu
MENU INCLUDE pxelinux.cfg/graphics.conf
MENU AUTOBOOT Starting Local System in 8 seconds
 
# Option 1 - Exit PXE Linux & boot normally
LABEL bootlocal
	menu label ^Boot Normally
	menu default
	localboot 0
# Option 2 - Run WDS
LABEL wds
	MENU LABEL ^Windows Deployment Services
	KERNEL pxeboot.0
# Option 3 - Go to Linux menu
LABEL linux
	MENU LABEL Linux
	KERNEL vesamenu.c32
	APPEND pxelinux.cfg/linux
# Option 4 - Go to tools
LABEL tools
	MENU LABEL Tools
	KERNEL vesamenu.c32
	APPEND pxelinux.cfg/tools
 
# Option 3 - Exit PXE Linux
LABEL Abort
	MENU LABEL ^Exit
	KERNEL abortpxe.0
linux
MENU TITLE Linux Operating Systems
 
MENU INCLUDE pxelinux.cfg/graphics.conf
 
LABEL debian-1004
	MENU LABEL ^Debian 10.04 Netinstall
	KERNEL iso/debian-10.04-netboot/debian-installer/amd64/linux
	APPEND vga=788 initrd=iso/debian-10.04-netboot/debian-installer/amd64/initrd.gz
LABEL fedora-server-32
	MENU LABEL ^Fedora Server 32
        KERNEL iso/fedora-32-server-netboot/images/pxeboot/vmlinuz
	APPEND initrd=iso/fedora-32-server-netboot/images/pxeboot/initrd.img noapic inst.stage2=http://repo.local.ribbed.us/fedora-server-32/ ip=dhcp
LABEL centos-8-2-2004
	MENU LABEL ^CentOS 8.2.2004
        KERNEL iso/centos-8-2-2004/vmlinuz
	APPEND initrd=iso/centos-8-2-2004/initrd.img noapic inst.stage2=http://repo.local.ribbed.us/centos-8-2-2004/ ip=dhcp
LABEL ubuntu-server-2004
	MENU LABEL ^Ubuntu Server 20.04
        KERNEL iso/ubuntu-server-20-04/vmlinuz
	INITRD iso/ubuntu-server-20-04/initrd
	APPEND root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://repo.local.ribbed.us/ubuntu-20.04-live-server-amd64.iso
LABEL mainmenu
	MENU LABEL ^Go back to Main Menu
	KERNEL vesamenu.c32
	APPEND pxelinux.cfg/default
tools
MENU TITLE Tools
MENU INCLUDE pxelinux.cfg/graphics.conf
 
LABEL memtest86
	 MENU LABEL ^memtest86
	 KERNEL iso/memtest86/ISOLINUX/MEMTEST
· 2020/07/14 06:37 · 2020/07/14 06:40

Useful wget examples

wget --recursive --no-clobber --no-parent --domains mirror.atl.genesisadaptive.com -R "index.html" http://mirror.atl.genesisadaptive.com/fedora/linux/releases/32/Server/x86_64/os/

This is useful for mirroring directories such as Linux download directories.

--recursive - downloads every directory
--no-clobber - do not replace files
--domains - limit download to a certain domain or sub-domain
--R "index.html" - don't save index.html files

· 2020/07/14 06:11 · 2020/07/14 06:13

<< Newer entries | Older entries >>