Post tagged: directory

libnss-db HOWTO

This mini-howto illustrate how to use libnss-db on a Ubuntu Linux system. Other installations should work to after adjusting package names and directory paths. I myself use as a "serverless" lightweight user directory. Essentially, I mount the db directory and the home directory from an NFS server. Package installation ...

Local Startup

This is a method to control start-up of applications in a Linux Desktop session that are run by a local default configuration, but can also be overriden by the user. This is unlike the /etc/xdg/autostart which is mostly under the control of the distro packager. Aslo unlike the /etc/X11/profile.d directory, this runs inside the Desktop Session. /etc/X11/profile.d gets started before the Desktop session is available. ...

Home Assistant Large Clock

This recipe is my version of providing a "large clock" face in the home assistant dashboard. Enable serving local static files: Create directory www in your config directory. Restart home assistant. ...

flatpak

Flatpak is a utility for software deployment and package management for Linux. It is advertised as offering a sandbox environment in which users can run application software in isolation from the rest of the system. Flatpak was developed as part of the freedesktop.org project and was originally called xdg-app. Snap vs Flatpak ...

lnbin

This is my lnbin script. This is a program for managing symlink in a /usr/local/bin directory. It is similar to stow, lndir, cleanlinks and others. The approach used by lnbin is based on Stow, and it is to install each into its own tree, then use symbolic links to make its bin ...

nas ops cmd

This is my op script. This is stupidly simple script to elevate priviledges in order to manage NFS shares on my QNAP NAS. The idea is that NFS shares do squash-root so admin access is disallowed through NFS. This gives a convenient way to issue root level commands without using NFS but instead use ssh ...

DVTM

The other day I found dvtm. Looking at it, it looks very nice. It appeals to me because I am particularly fond of text user interfaces. At the end I choose not to use it because: ...

Enable syslog with void

In void Linux, the default is without logging. Most cases it is OK for desktop use. If you want to enable syslog service in void, you need to install: socklog-void Also to let your user have access to the logs, use: ...

Alpine Boot switcher

I boot from a USB boot drive using UEFI. Because of the UEFI boot, it just a matter of copying the files from the alpine ISO to a USB thumbdrive VFAT32 partition. Partition may be set to EFI (but this doesn't seem to be required). Since I would like to switch between different alpine versions, I wrote a script to let me have multiple alpine versions and ...

Securing rsync on ssh

Reference: positon.org You have 2 systems and you want to set up a secure backup with rsync + SSH of one system to the other. Very simply, you can use: backup.example.com# rsync -avz --numeric-ids --delete [email protected]:/path/ /backup/myserver/ To do the backup, you have to be root on the remote server, because some files are only root readable. Problem: you will allow backup.example.com to do anything on myserver.example.com, where just read only access on the directory is sufficient. ...

Writing Safe Shell scripts

Writing shell scripts leaves a lot of room to make mistakes, in ways that will cause your scripts to break on certain input, or (if some input is untrusted) open up security vulnerabilities. Here are some tips on how to make your shell scripts safer. Don't The simplest step is to avoid using shell at all. Many higher-level languages are both easier to write the code in in the first place, and avoid some of the issues that shell ...