|
You are here |
astrid.tech | ||
| | | | |
willhaley.com
|
|
| | | | | See here an example of a custom Linux mount script, written in Python, that can be used to mount disks with /etc/fstab. The mount script is installed at /usr/bin/mount.my-command and is executable. #!/usr/bin/env python3 import sys import subprocess device = sys.argv[1] mount_point = sys.argv[2] options = sys.argv[4] # Any customization could be done here to the `mount` command that is run. mount_command = ['mount', '-o', options, device, mount_point] output = subprocess.run( mount_command, capture_output=True ) if output.returncode != 0: print("error mounting") print(output.stderr.decode('UTF-8')) sys.exit(output.returncode) See here how the custom script can then be used in /etc/fstab like any "normal" mount. | |
| | | | |
javier.io
|
|
| | | | | disable broken touchpad device | |
| | | | |
sebastianmellen.com
|
|
| | | | | Introduction I recently bought a drawing tablet to use as a sort of "digital whiteboard" on video calls. I think in large blocks of architecture, so having a whiteboard makes it a lot easier for me to communicate what I'm thinking to others. Using a whiteboard in real-time helps me sketch out and explore new ideas more concretely. Unfortunately, COVID has preempted in-person meetings for now, so I've had to find a way to do this digitally. | |
| | | | |
unencumberedbyfacts.com
|
|
| | | I have been using Linux as my primary desktop environment for a long time. It can be impractical, annoying, even infuriating. But it's still my favorite operating system, and over the years I have grown accustom to its quirks and shortcomings. I also suffer from an occasional obsessive disorder with regards to problem solving. Specifically... | ||