From 198071e141ae44fc017c7b007268900860e8a31d Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sun, 29 Nov 2020 13:54:46 -0500 Subject: [PATCH] New Posts --- content/blog/autostartdesktopapps.md | 13 +++++++++++++ content/blog/chrootvirtfilesystem.md | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 content/blog/autostartdesktopapps.md create mode 100644 content/blog/chrootvirtfilesystem.md diff --git a/content/blog/autostartdesktopapps.md b/content/blog/autostartdesktopapps.md new file mode 100644 index 0000000..efdcb24 --- /dev/null +++ b/content/blog/autostartdesktopapps.md @@ -0,0 +1,13 @@ +--- +title: "Autostart Desktop Applications" +date: 2020-11-29T13:45:28-05:00 +draft: false +tags: [] +--- + +The [freedesktop specification](https://specifications.freedesktop.org/autostart-spec/0.5/ar01s02.html) describes how to identify file types, launch applications, and other useful desktop functions. A useful spec I've found recently is for launching desktop applications when you log into your machine. + +In my Kubuntu 20.10 system, the directory `$HOME/.config/autostart` can contain [`.desktop`](https://brandonrozek.com/blog/linuxdesktopicons/) files that describes the applications to start on login. Drop whichever desktop file you wish to start there. In other systems it may be located under `$XDG_CONFIG_DIRS/autostart`. + +If you want to start up a script instead, you can put the script under `$HOME/.config/autostart-scripts`. + diff --git a/content/blog/chrootvirtfilesystem.md b/content/blog/chrootvirtfilesystem.md new file mode 100644 index 0000000..9411c54 --- /dev/null +++ b/content/blog/chrootvirtfilesystem.md @@ -0,0 +1,17 @@ +--- +title: "Chroot and Virtual Filesystems" +date: 2020-11-29T10:52:07-05:00 +draft: false +tags: [] +--- + +When running applications under a [`chroot`](https://en.wikipedia.org/wiki/Chroot) environment, it can be annoying when certain [virtual filesystems](https://opensource.com/article/19/3/virtual-filesystems-linux) are unavailable. Here are the commands to mount the most common ones: + +```bash +sudo mount -t proc /proc /mnt/root/proc +sudo mount -o bind /sys /mnt/root/sys +sudo mount -o bind /dev /mnt/root/dev +``` + +Source: [ArchWiki](https://wiki.archlinux.org/index.php/chroot) +