Commit Graph

65 Commits (master)

Author SHA1 Message Date
Dustin 6ce5278419 truckmusic: Script to sync music truck USB stick
Compares the files in `~/.homeshare/Music` and `~/.homeshare/TRUCKMUSIC`
and creates any that are missing or updates those that are outdated.

Uses `ffmpeg` to convert from FLAC to MP3.  Embeds album art in each
file (since that's the only way to display them in the truck).
2022-11-08 20:28:46 -06:00
Dustin f7f0dc4bd5 sync-portage: Set PATH
When run by fcron from the *systab* table, the PATH environment variable
does not include the "sbin" locations. Since `emaint` is located in
`/usr/sbin`, it is not found. Thus, the PATH needs to be adjusted.
2017-08-28 12:47:04 -05:00
Dustin ef9b32fb1d cachedpass: Script to cache a password in gpg-agent 2017-08-28 12:46:14 -05:00
Dustin 10e5548513 pingnet: Fix ResourceWarning 2017-04-06 10:51:14 -05:00
Dustin ef6d435d8d g2testvm: Add support for systemd-based machines 2017-04-06 10:51:01 -05:00
Dustin 03c46fee37 c7testvm: Increase memory allocation
Newer releases of CentOS 7 require significantly more memory to run
Anaconda.
2017-04-06 10:50:25 -05:00
Dustin e1f4fea9df c7testvm: Remove os-type virt-install argument
This argument is no longer supported; the `--os-variant` argument made
it redundant anyway.
2017-04-06 10:49:44 -05:00
Dustin faa32d2446 g2testvm: Use rhel7 for os-variant
The `fedora23` OS variant has been removed. Since Fedora moves fairly
quickly, using `rhel7` is more robust anyway.
2017-04-06 10:48:09 -05:00
Dustin 8770997ff9 g2testvm: Use gentoo-img instead of stage3img 2017-04-06 10:47:48 -05:00
Dustin 07ed5f8ba4 create-vmachine: Remove (use gentoo-img+virt-install) 2017-04-06 10:34:17 -05:00
Dustin 261ea1fe16 stage3img: Remove (superseded by gentoo-img) 2017-04-06 10:32:36 -05:00
Dustin 2c5d930d0b sync-portage: Added script to sync Portage squashfs images 2017-04-06 10:08:58 -05:00
Dustin fd0958e6eb wait_for: Added script to wait for a service to come up 2017-04-06 10:08:22 -05:00
Dustin 5537be6a76 snips: Reimplement snips/dmenu_snips
The snip manager is now split into two parts, a `snips` script, and a
`dmenu_snips` front-end. Rather than storing snips in a single YAML
document, each snips is stored in a separate file.
2017-04-06 10:03:46 -05:00
Dustin dfc0bdbe4b fetch-stage3: Rewrite without mkvm 2017-04-06 10:03:20 -05:00
Dustin 39a1ce4b10 ripdvd: Rip all tracks on a DVD to individual MKV files 2016-07-10 17:38:23 -05:00
Dustin dbdbc93c4c winewrapper: Wrap wine commands for 32/64-bit environments 2016-07-10 17:37:04 -05:00
Dustin 2ed373353b dupcd: Duplicate an audio CD on-the-fly 2016-07-10 17:36:15 -05:00
Dustin 8801b6433c ripcd: Support ripping to Flac as well as Vorbis 2016-07-10 17:30:29 -05:00
Dustin 27d13532ea ripcd: Read disc ID from TOC
When the verbose level of `icedax` contains `catalog`, the disc ID is printed
to stdout. This is a faster and simpler method compared to parsing the CD
index XML document.
2016-07-10 17:28:26 -05:00
Dustin 3694f177df ripcd: Use chardet to detect CD-TEXT encoding 2016-07-10 17:25:52 -05:00
Dustin 5dfd71b2fd c7testvm: Allow using a specific name instead of generating one 2016-07-10 17:23:52 -05:00
Dustin e6136b01ef g2testvm: Quickly create Gentoo-based test VMs
The `g2testvm.sh` script, inspired by `c7testvm.py`, creates a test virtual
machine using `stage3img.py` and `virt-install`.

--HG--
extra : amend_source : fd4a60820f255d74e8abf0df252ff5068af101f8
2016-07-10 17:21:53 -05:00
Dustin 9ead766357 stage3img.py: Install Gentoo stage3 tbz on a disk image
The `stage3img.py` script creates a disk image based on a a Gentoo stage3
tarball. The script supports partitioning the disk image using GPT as well as
creating LVM logical volumes.
2016-07-10 17:20:26 -05:00
Dustin d16227bb2c dmenu_snips: Copy text blocks to clipboard using dmenu 2016-06-14 14:06:12 -05:00
Dustin d8cdd7ece8 fetch-stage3: Download Gentoo stage3 tarballs using mkvm 2016-01-31 22:56:29 -06:00
Dustin 0f8df4ce89 c7testvm: Script to create a CentOS 7 test VM
This script creates a new virtual machine using `virt-install`. It then starts
an HTTP server to serve a kickstart configuration file to the new VM, which is
used to automatically install CentOS.
2016-01-26 23:38:49 -06:00
Dustin 1f2d490e44 ripcd: Script to rip CD tracks to Ogg files 2015-05-13 20:39:49 -05:00
Dustin 70a8b3f4b5 mkvm: Add script to create stand-alone Gentoo VMs 2015-03-22 21:55:47 -05:00
Dustin C. Hatch 380aa823d9 startvms: Correct final exit code 2014-12-03 22:55:39 -06:00
Dustin C. Hatch 84b66c8411 startvms: Support IPv6 services as well
Using the `socket.create_connection` function to attempt to connect to the
network service allows both IPv4 and IPv6 support, as the function tries both
families internally and returns the first socket to succeed.

--HG--
extra : amend_source : 6a0e3b9c90f6caff94290125072d50fe97aa312e
2014-12-03 21:43:21 -06:00
Dustin C. Hatch 5ff79e49ba backup: Close file handles
--HG--
extra : amend_source : 8ee363811f104459f8346df1fccb1950c3ffc76c
2014-12-03 20:36:00 -06:00
Dustin C. Hatch 71ca5624cb backup: Do not copy UNIX-specific information
The `-a` switch to `rsync` causes it to copy extra information that may be
incompatible with the destination if it uses a non-native filesystem (such as
FAT or NTFS). Since most of this additional information is not necessary in a
backup and can cause copy errors, it should be excluded by default. Instead,
the `-r` flag is used to enable recursive copies, and the `-t` flag to
preserve file timestamps.
2014-12-03 20:35:42 -06:00
Dustin C. Hatch 5fa572cb72 startvms: Script to start VMs after a network service comes up
This script waits for a network service on a remote host (default LDAP on
Arcturus) to become available and then starts one or more virtual machines. It
is used on Atria to start Bellatrix and Rigel, since they need Active
Directory to be up in order to boot correctly.
2014-12-03 19:05:53 -06:00
Dustin C. Hatch 9ed2cca8e2 Start-VirtualMachines: Script to start remote VMs
This PowerShell script starts KVM virtual machines on a remote host by
connecting to the libvirt daemon over SSH (using plink from the PuTTY suite).

The original intent for this script was to run as a scheduled task, triggered
by the event indicating that Active Directory had started, however, for
unknown reasons, this did not end up working. As such, this script remains
unused, but I am committing it anyway for reference.
2014-12-03 17:31:18 -06:00
Dustin C. Hatch c07ab6bc0a backup: Clarify destination argument in help text 2014-10-14 21:43:17 -05:00
Dustin C. Hatch b84a1a9fa4 backup: Make configuration file argument optional
If not specified, a file named `backups.ini` in the directory specified by the
`XDG_CONFIG_DIR` environment variable (or `~/.config` if it is not set).
2014-10-14 21:42:56 -05:00
Dustin C. Hatch 2f53ee9cda backup: Print informational messages by default
To ensure that output is generated, even when no errors occur, and thus cron
sends an email message, we'll print some informational messages before and
after running the backup. These can be switched off with the `-q`/`--quiet`
argument.
2014-10-12 18:25:53 -05:00
Dustin C. Hatch 3602b4e1ce backup: Delete old files during backup 2014-10-12 18:24:07 -05:00
Dustin C. Hatch 75aced9aca backup: Script to do backups
--HG--
extra : amend_source : 4ca567426083c2760d4a11551bb5398e7b25ac6e
2014-10-12 17:50:04 -05:00
Dustin C. Hatch 79355a87ea Rewrite pingnet.py to use multiple threads
--HG--
extra : amend_source : 595a48f6b8cd4de9bc22e5731e816240e63ab8ff
2014-05-03 14:28:26 -05:00
Dustin C. Hatch 0cea591bb6 pingnet: Add a script to identify available addresses on a network 2014-03-13 09:04:15 -05:00
Dustin C. Hatch 062569a111 wakeonlan: Added Wake-on-LAN magic packet sender script 2014-01-20 21:05:39 -06:00
Dustin C. Hatch 7bfdae8ec5 create-vmachine: Remove unused Portage variables 2014-01-16 21:57:44 -06:00
Dustin C. Hatch b420683c70 create-vmachine: Create libvirt domain earlier in the process
By moving the domain definition task earlier in the provisioning process, it
allows the administrator the option of opening the virtual console in
preparation for the virtual machine's first boot. This may be necessary if,
for example, the boot needs to be closely monitored, as there may not be
enough time to launch the console before the machine starts.
2014-01-16 21:49:49 -06:00
Dustin C. Hatch 42f54e4f63 create-vmachine: Reduce output from ssh-keygen 2014-01-16 21:47:44 -06:00
Dustin C. Hatch 244693943d create-vmachine: Make dhcpcd be quiet 2014-01-16 21:47:07 -06:00
Dustin C. Hatch f63f157199 create-vmachine: Set the time zone in the VM 2014-01-11 17:23:49 -06:00
Dustin C. Hatch 55664477e3 create-vmachine: Clean up VMs that fail to deploy completely 2014-01-11 17:23:31 -06:00
Dustin C. Hatch 242211a599 create-vmachine: Link /etc/mtab to /proc/self/mounts 2014-01-11 11:10:28 -06:00