`
sudo add-apt-repository ppa:ettusresearch/uhd
sudo apt-get update
sudo apt-get install libuhd-dev libuhd003 uhd-host gnuradio
Improvements, suggestions & fixes are welcome!
Captive portals can be a pain. Here's an opinionated and no-doubt entirely imperfect guide to setting one up for a WiFi access point on Ubuntu (tested on 20+), utilising Network Manager, DNSMasq, HA Proxy and (optionally) Let's Encrypt for a secure, locally hosted landing page.
_Note: This setup was originally designed for an offline WLAN, providing access to a small number of locally hosted domains ... think the WiFi media portal on a flight or boat. If you are looking to provide internet access behind a captive portal then this guide won't get you all the way there. That said, many routers have this capability built in, as do any number of open source router firmware solutions. So you probably don't need to roll your own. If you'd like to try anyway, Ha Proxy Stick Tables would probably come in handy. Very happy to update the guide with any p
| #!/bin/busybox sh | |
| # 1) Download a prebuilt BusyBox binary here: | |
| # https://busybox.net/downloads/binaries/ | |
| # | |
| # 2) Prepare your kernel | |
| # cp /boot/vmlinuz vmlinuz | |
| # | |
| # 3) Copy the files | |
| # install -Dm0755 busybox-x86_64 initramfs/bin/busybox |
| # Script for Ubuntu: Nvidia Multi-GPU Installation and Testing (Adaptable for other distros) | |
| # Step 0: Clean Nvidia Installation | |
| # If you need to completely remove a previous Nvidia installation, use these commands. | |
| # This ensures that you start with a clean slate for a new installation. | |
| sudo apt-get --purge remove "*nvidia*" | |
| sudo apt-get --purge remove "*cuda*" "*cudnn*" "*cublas*" "*cufft*" "*cufile*" "*curand*" "*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*" "*libnccl*" | |
| # Verify that the removal is complete by checking if any Nvidia, CUDA, or cuDNN packages are still installed. | |
| apt list --installed | grep cuda |
| import paramiko | |
| k = paramiko.RSAKey.from_private_key_file("/Users/whatever/Downloads/mykey.pem") | |
| c = paramiko.SSHClient() | |
| c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
| print "connecting" | |
| c.connect( hostname = "www.acme.com", username = "ubuntu", pkey = k ) | |
| print "connected" | |
| commands = [ "/home/ubuntu/firstscript.sh", "/home/ubuntu/secondscript.sh" ] | |
| for command in commands: | |
| print "Executing {}".format( command ) |
I need a proper Firefox installation and not the snap version. The snap version does not work properly with Smart Cards. Although it seems to be possible to get it to work with smart cards it is extremely difficult and I don't care to try and make it work. This is not a tutorial on how to get your PIV or CAC to work. Also snaps suck. Canonical will heopfully abandon snaps in the future.
sudo snap disable firefox
sudo snap remove --purge firefox
error: cannot perform the following tasks:
- Remove data for snap "firefox" (1943) (unlinkat /var/snap/firefox/common/host-hunspell/en_ZA.dic: read-only file system)
alpine-minirootfs-3.20.2-x86_64.tar.gz.iperf3 serverwg-quick down wg0/etc/wireguard/wg0.conf file