- CachyOS workstation: Tailscale fix, brightness fix, /home drive setup - ESXi .122 and .124: evaluation license resets (expire 2026-05-18) - FreePBX PBX: fixed fwconsole reload crash (PJSip.class.php trunk_name bug), restored Asterisk logging, started phone system - credentials.md: added ESXi hosts and PBX entries Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6.6 KiB
6.6 KiB
Session Log: 2026-03-19
Session Summary
Major workstation setup and Dataforth infrastructure session. Set up new CachyOS Linux install on ASUS laptop (acg-guru-5070), fixed multiple system issues, wiped old Windows drive for /home, reset ESXi licenses, and diagnosed/fixed Dataforth FreePBX phone system.
Work Completed
1. Tailscale Validation & Fix
- Issue 1:
--accept-routeswas false - peers advertising routes but not accepted - Fix:
sudo tailscale set --accept-routes - Issue 2: systemd-resolved and NetworkManager misconfigured for MagicDNS
- Fix: Created
/etc/NetworkManager/conf.d/dns.confwithdns=systemd-resolved, symlinked/etc/resolv.confto/run/systemd/resolve/stub-resolv.conf, restarted both services and tailscaled - Result: All health warnings cleared, MagicDNS working
2. Google Chrome Installation
- Installed via
paru -S --noconfirm google-chrome(AUR) - Version: 146.0.7680.153
3. Display Brightness Fix
- Issue: Brightness at 100% per KDE but visually dim
- Root cause:
intel_backlightwas at 100/496 (~20%), KDE was readingnvidia_0(100/100) - Fix: Set intel_backlight to max:
echo 496 > /sys/class/backlight/intel_backlight/brightness - Hotkey fix: Created
/etc/udev/rules.d/backlight.rulesto hidenvidia_0so KDE only controlsintel_backlight - Ran
sudo chmod 000 /sys/class/backlight/nvidia_0for immediate effect - Restarted
plasma-powerdevil
4. Secondary Drive Setup as /home
- Drive: nvme1n1 (954GB SK Hynix) - old Windows BitLocker drive
- Steps:
- Wiped with
wipefs -a - Created GPT partition table with single ext4 partition (label: "home")
- UUID:
4143f922-455f-4154-8f87-6df123548916 - Copied existing /home via
rsync -aAXv /home/ /mnt/ - Updated
/etc/fstab- replaced btrfs @home subvolume entry with new ext4 mount - Original btrfs @home subvolume still exists on OS drive as backup
- Wiped with
- Requires reboot to activate
5. ESXi License Resets (Dataforth)
- 192.168.0.122: Evaluation expired, reset via SSH
- Created sysadmin user (Paper123!@#) for SSH access
- Reset:
rm -r /etc/vmware/license.cfg && cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg - Restarted vpxa and hostd
- New expiration: 2026-05-18
- 192.168.0.124: Same procedure via root user
- SSH enabled from web UI
- New expiration: 2026-05-18
6. FreePBX/Asterisk Phone System Fix (Dataforth)
- PBX: 192.168.100.2 (pbx.intranet.dataforth.com)
- OS: Sangoma FreePBX Distro 17 / Debian 12
- VM: On ESXi 192.168.0.122, VM ID 9, SAN-D1-15k datastore
Issues Found & Fixed:
- Asterisk was not running - started with
fwconsole start fwconsole reloadwas failing withUndefined array key "trunk_name"in PJSip.class.php line 504- Root cause:
getAllTrunks()SQL query (LEFT OUTER JOINwithIS NULL) returns extension data mixed with trunk data. Extensions lacktrunk_namekey. - Also: Orphaned trunk ID 2 (
FirstDigital_SIP) in pjsip table with no matching entry in trunks table - Fix: Patched line 504:
$tn = $trunk['trunk_name'] ?? null; if ($tn === null) { continue; } - Backup at PJSip.class.php.bak
- Deleted orphaned trunk:
DELETE FROM pjsip WHERE id='2'
- Root cause:
- Asterisk logging was broken - no
fulllog file configured since Jan 27- Fix: Added
full => notice,warning,error,verbose,dtmf,faxto/etc/asterisk/logger_logfiles_custom.conf - Logger now writing to
/var/log/asterisk/full
- Fix: Added
- Call transfer event listener was intermittently failing with "Asterisk is not connected" errors in AMI
PBX Status After Fix:
- Asterisk running, PJSIP trunk (FirstDigital) connected
- 30+ extensions registered
- fwconsole reload succeeds
- Full logging restored
- SIP trunk: FirstDigital at 66.7.123.215 (match: 66.7.123.0/24)
- Outbound CID: 5207411404
7. Packages Installed
nano(for visudo)sshpass(for automated SSH)expect(for ESXi/PBX SSH sessions)google-chrome(AUR)
8. Sudo Configuration
- Added
guru ALL=(ALL) NOPASSWD: ALLto sudoers viaEDITOR=nano visudo
Credentials
ESXi Host 1 (192.168.0.122)
- Web UI: https://192.168.0.122
- Root: root / Gptf*77ttb!@#!@#
- SSH User: sysadmin / Paper123!@#
- VMs: AD1, AD2, FILES-D1, PBX
ESXi Host 2 (192.168.0.124)
- Web UI: https://192.168.0.124
- Root: root / Gptf*77ttb!@#!@#
PBX (192.168.100.2)
- SSH: sangoma / Gptf*77ttb!@#!@#
- Web UI: https://192.168.100.2
- Network: VLAN100 (192.168.100.0/24)
- SIP trunk: FirstDigital (66.7.123.215)
- SIP network: 10.208.107.116/30 (SIP_Group vSwitch)
- DIDs: 520-741-1404 (ring group 600), 520-917-0493 (ext 269), 520-917-0495 (ext 273), 520-917-2235+
Existing (used this session)
- AD2 (192.168.0.6): INTRANET\sysadmin / Paper123!@#
- D2TESTNAS (192.168.0.9): root (SSH key auth)
Infrastructure Details
Workstation: acg-guru-5070
- OS: CachyOS (Arch-based), kernel 6.19.7-1-cachyos
- CPU/GPU: Intel Arrow Lake-S + NVIDIA RTX 5070 Ti Mobile
- Drives:
- nvme0n1: 954GB (CachyOS install, btrfs)
- nvme1n1: 954GB (ext4, formatted as /home, UUID: 4143f922-455f-4154-8f87-6df123548916)
- Tailscale IP: 100.95.216.79
- Tailnet: tailea2889.ts.net (azcomputerguru.com)
Tailscale Subnet Routes
- pfSense-2: 172.16.0.0/22
- D2TESTNAS: 192.168.0.0/24
- Missing: 192.168.100.0/24 (VLAN100/PBX) - requires Dataforth WiFi or adding route to pfSense-2
Files Modified
/etc/NetworkManager/conf.d/dns.conf(created)/etc/udev/rules.d/backlight.rules(created)/etc/fstab(modified /home mount)/home/guru/ClaudeTools/credentials.md(added ESXi .122, .124, PBX entries)- PBX:
/var/www/html/admin/modules/core/functions.inc/drivers/PJSip.class.php(patched line 504) - PBX:
/etc/asterisk/logger_logfiles_custom.conf(created, added full log)
Pending/Incomplete Tasks
- Reboot required for /home mount to switch to new ext4 drive
- PBX call testing - users should verify DIDs, transfers, and general calling work
- PBX VLAN100 routing - not accessible via Tailscale, need to add 192.168.100.0/24 to pfSense-2's advertised routes
- ESXi license reminder - both hosts expire 2026-05-18 (60 days)
- PBX auto-start - verify Asterisk starts automatically on VM boot to prevent future outages
- fail2ban logs - 70MB/day suggests external SIP scanning; may want to review firewall rules
- Windows reinstall script - user asked about a PowerShell script for reinstalling Claude config after Windows reset; not found in repo, may need to be created
- PJSip.class.php patch - will be overwritten on FreePBX module update; monitor for upstream fix