Category: unix

  • USB Apple SuperDrive with Linux

    Had access to one of these, but couldn’t get it to accept a DVD when plugged into my Ubuntu laptop. Turns out…the drive needs to be “told” to wake up before it will accept a disc: # Debian/Ubuntu/etc – Linux SCSI generic driver sudo apt install sg3-utils -y # tell the external DVD player/burner to…

  • How I use ChromeOS’s linux containers

    When you enable “Linux” on ChromeOS, a default Virtual Machine is created (and a default linux container). VM’s are the layer above containers- each VM can house multiple containers. The default VM is named “termina” and once it exists, you can interact with it from crosh (The Chromium OS Shell) using the vmc command. The…

  • Walk the line…endings

    Have a file where you want to add a comma to the end of each line? $ sed ‘s/$/,/’ ip_addresses.txt | head -n2 This should work…but, wait, it didn’t. Instead, it replaced the first character of each line with a comma. Why? ,6.127.0.0/17 ,7.238.80.0/21 Aha, it is because the file is dos encoded. See the…