-
Dynamic Ansible inventory from a UniFi controller
aioue.network is an Ansible collection that turns your UniFi OS controller into a dynamic inventory source. It queries clients (and optionally devices) from a UDM, UCG, or similar controller and makes them available as Ansible hosts, grouped by connection type, VLAN, SSID, and network name.
-
Keeping a Canon PIXMA MG6250 alive on modern macOS
Canon dropped macOS support for the PIXMA MG6250 after High Sierra (10.13). The hardware still works fine, but there are no official drivers for anything newer. I put together canon-mg6250-mac-driver-bundle - a set of shell scripts that extract and install Canon’s last official drivers on current macOS, including...
-
Moving blog comments from Utterances to Giscus
This blog used Utterances for comments, which stores them as GitHub Issues. It worked well, but I’ve switched to Giscus, which uses GitHub Discussions instead. The main reason is security.
-
Ansible Proxmox Inventory and DHCP VMs
Fix for community.general.proxmox (now community.proxmox.proxmox) dynamic inventory not setting ansible_host for QEMU VMs with DHCP networking. Without this, you need -e ansible_host=192.168.1.x every time you target the VM.
-
Ubuntu Desktop VM for RDP on OpenNebula
Transform the OpenNebula Marketplace Ubuntu Server 24.04 image into an RDP-capable desktop VM. This is part 1 of getting RDP working — see part 2 for GNOME Remote Desktop configuration.
-
Jekyll Minima remote_theme CSS not loading on GitHub Pages
Fix for Jekyll sites using remote_theme: jekyll/minima where CSS loads on the homepage but not on post pages.
-
Headless Wayland RDP with GNOME Remote Desktop on Ubuntu 24.04
Set up headless multi-user RDP access on Ubuntu 24.04 using GNOME Remote Desktop, following official GNOME documentation. Ansible configuration below.
-
OpenWrt Snapshot on FRITZ!Box 7530
Install OpenWrt 22.03.4 release on FRITZ!Box 7530, then sysupgrade to SNAPSHOT to enable the VRX518 VDSL modem.
-
Use the aptly REST API with curl
aptly is good. Very good. If you’ve got it installed, use the REST API to get your work done.
-
Install aptly with Ansible
aptly is the best thing to happen to debian repository management since sliced bread.
-
Install VMware deployPkg
deployPkg is sometimes needed for guest customization and is missing from open-vm-tools for no good reason.
-
Install VMware legacy tools
VMware are moving away from the classic VMware tooling to open-vm-tools, available in most distros as standard. This is a Good Thing (tm).
-
Start a simple http server with python
python -mSimpleHTTPServer
-
Testing Prose.io
Basic, WYSIWYG markdown editor.
-
Download a deb file from a PPA
haproxy example
-
Get Oracle Java zip and turn it into a debian package
get JRE/JDK from Oracle’s site rename its extension to ‘tar.gz’ install java-package sudo apt-get install java-package build a .deb file fakeroot make-jpkg server-jre-8u40-linux-x64.tar.gz
-
sftp timing out with ProFTPD server
Old version of ProFTPD doesn’t support the default key exchange set so sftp was timing out.
-
Command line SMTP server test
Swaks - Swiss Army Knife for SMTP
-
Get users without a profile photo on Google Apps
To find users without a profile photo or avatar, run this in the Google Apps Script editor:
-
Add second NIC with DHCP interface to VMware vCenter Server Appliance
Add the NIC to the box in the vCenter client Reboot the box SSH in In [/etc/sysconfig/network/dhcp] change DHCLIENT_HOSTNAME_OPTION from AUTO to hostname (e.g. foo.domain) Copy [/etc/sysconfig/network/ifcfg-eth0] to ifcfg-eth1 run sudo /opt/vmware/share/vami/vami_config_net and set config for eth1 to DHCP service network restart
-
Show what files are installed by an rpm package
rpm –ql <package name>
-
Enable ipv4 forwarding
enable ipv4 forwarding (not permanent over reboots!)
-
Install closed source nVidia drivers for Quadro 5000 on CentOS 6.5 using ELRepo
rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm yum install kmod-nvidia reboot
-
Rename a Windows computer using command line powershell
netdom renamecomputer "$env:COMPUTERNAME" /Newname "myname"
-
Manually Install XenServer 6.2.0 Service Pack 1
Download the file from Citrix Unpack the zip and copy the files to the root home dir on your machine SSH in and type xe patch-upload file-name=XS62ESP1.xsupdate Wait a few mins and it’ll spit out a UUID when it’s done. Use this for the next command. xe patch-apply...
-
Install Git, Stash and import SVN on Ubuntu 12.04 XenServer guest
Goal
-
Turn off Synology LEDs
# Power LED off echo \\6 >/dev/ttyS1 # Status LED off echo \\7 > /dev/ttyS1 # Copy LED off echo \\B > /dev/ttyS1
-
Upgrade Cisco IOS and ASDM from Ubuntu Linux
Make sure PC can ping (or contact) ASA. Install tftpd-hpa (defaults work fine, but conf is /etc/default/tftpd-hpa) Run it:
-
Reset Cisco switch to factory settings
Reset Cisco switch to factory settings enable config config factory-settings copy run start reload show IOS version show version ###### show all file systems show file system ###### show files on file system show (flash0|disk0 etc):
-
XenServer 6.2 iSCSI won't connect to Synology 4.3
When attaching an iSCSI LUN to a XenServer pool - only the master connects and the rest remain unplugged.
-
Update/upgrade Dell PowerEdge Server firmware under XenServer 6.2
Run these command on all of your host machines. Don’t reboot the pool master if using pools - change it to a machine that has already rebooted and settled before rebooting the original master.
-
Quickly open a Dell PowerConnect (or anything) serial console in Linux
Find your serial port(s)
-
Quickly install telnet client on Windows server
pkgmgr /iu:"TelnetClient"
-
Run Windows 8 from an encrypted external USB drive on your Macbook Pro
I need windows for work and gaming and I didn’t want to give up space to bootcamp on my internal drive so I installed Windows on an external USB drive by doing this:
-
Reset Dell BIOS password
Explanation.
-
Can't install aws-sdk gem
Error: user@host:~$ sudo gem install aws-sdk Building native extensions. This could take a while... ERROR: Error installing aws-sdk: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for libxml/parser.h... no ----- libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-
Headphones not working on Dell Latitude E4310 on Windows 8
Spontaneously stopped producing sound when plugged in. Were still being recognized as being connected but totally silent.
-
Scrub Synology RAID disks
UPDATE 2014-09-25: fsck command updated for Synology DSM 5.
-
Convert AWS EC2 VolumeWriteOps to Ops/s
When looking at the volume monitoring tab in EC2 you’ll see write throughput measured in ops/s. In CloudWatch however you are given VolumeWriteOps, and it’s not immediately obvious that this is per minute.
-
Activate Windows 8
Open an administrator command prompt by moving your mouse to the bottom left corner of the screen, right clicking when the start panel icon appears and then click ‘Command Prompt (Admin)’. Install your product key using slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx where xxxxx is your product key. Type slmgr /ato...
-
Delete/backspace doesn't work in terminal or some programs when SSH'd
Encountered during an OSSEC install - when pressing delete, ^H is printed instead.
-
Office 365 user can use OWA but not connect with Outlook after deleting and recreating user.
Problem is that soft deleted user in AD recycle bin is conflicting with newly created user.
-
How to log in as Windows domain admin without knowing the domain
Want to log in as the domain administrator but don’t know the domain? Use the following username:
-
Disable Windows firewall on an unresponsive AWS machine
Courtesy of AWS support
-
Renaming OSSEC hosts
OSSEC hosts can be centrally renamed by editing the etc/client-keys file.