Compare commits

...

3 commits

Author SHA1 Message Date
Nico Schottelius
571bb222b7 [blog] also start swap 2024-10-10 16:32:14 +09:00
Nico Schottelius
64c5daa2e7 add more tags
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2024-10-10 16:25:19 +09:00
Nico Schottelius
b29c45ef07 add new blog entry about encryption 2024-10-10 16:19:55 +09:00
42 changed files with 226 additions and 6 deletions

View file

@ -0,0 +1,60 @@
[[!meta title="How to enable encrypted swap in Alpine Linux"]]
## TL;DR
There is no TL;DR, because it is so easy that any summary would be too
long.
The steps are so simple:
### Edit /etc/conf.d/dmcrypt
Checkout the samples and enable swap like this:
swap=crypt-swap
source='/dev/nvme0nXXX'
(obviously set the correct *source* device)
### Start dmcrypt
Run
/etc/init.d/dmcrypt start
### Enable swap
swapon /dev/mapper/crypt-swap
### Make it persistent
# Enable automatic start of encryption & swap
rc-update add dmcrypt
rc-update add swap
# Enable automatic swapon
echo /dev/mapper/crypt-swap swap swap defaults 0 0 >> /etc/fstab
## Background
Until today I did not know (or care) how to enable swap in Alpine
Linux. As firefox (sic!) is killing my system more often these days, I
decided to enable swap using a partition I left for it some years ago.
As I did not know how it works, I grep'ed for crypt through
/etc/init.d, found the dmcrypt init script quickly which references
/etc/conf.d/dmcrypt. I opened the config file and within minutes my
encrypted swap was up.
Note that above instructions will reset/re-encrypt swap on every boot
and thus no suspend to disk works with it. That's fine with me, as
that is not a feature I am ever going to use.
The point I need to make is that at the moment there is no single
other Linux distribution out there that I know off that is allowing me
to make changes, even those which I don't know yet how to, that easily
and I want to say many thanks for keeping Alpine Linux as simple as
other Linux distributions used to be in the 90's.
[[!tag alpinelinux security]]

View file

@ -16,9 +16,9 @@ use IkiWiki::Setup::Standard {
# users who are banned from the wiki
banned_users => [],
# where the source of the wiki is located
srcdir => '/home/nico/nico.schottelius.org',
srcdir => '/home/nico/vcs/www.nico.schottelius.org',
# where to build the wiki
destdir => '/home/services/www/nico/www.nico.schottelius.org/www',
destdir => '/tmp/www.nico.schottelius.org',
# base url to the wiki
url => 'https://www.nico.schottelius.org/',
# url to the ikiwiki.cgi
@ -284,9 +284,9 @@ use IkiWiki::Setup::Standard {
# extra template directories to add
#add_templates => [qw{/home/users/nico/.ikiwiki/templates}],
git_wrapper => '/home/services/git/nico.schottelius.org/hooks/post-update',
git_wrappermode => '06755',
gitorigin_branch => 'origin',
gitmaster_branch => 'master',
# git_wrapper => '/home/services/git/nico.schottelius.org/hooks/post-update',
# git_wrappermode => '06755',
# gitorigin_branch => 'origin',
# gitmaster_branch => 'master',
}

4
tags/alpinelinux.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged alpinelinux"]]
[[!inline pages="tagged(alpinelinux)" actions="no" archive="yes"
feedshow=10]]

4
tags/amazon.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged amazon"]]
[[!inline pages="tagged(amazon)" actions="no" archive="yes"
feedshow=10]]

4
tags/android.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged android"]]
[[!inline pages="tagged(android)" actions="no" archive="yes"
feedshow=10]]

4
tags/apple.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged apple"]]
[[!inline pages="tagged(apple)" actions="no" archive="yes"
feedshow=10]]

4
tags/ccc.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged ccc"]]
[[!inline pages="tagged(ccc)" actions="no" archive="yes"
feedshow=10]]

4
tags/cinv.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged cinv"]]
[[!inline pages="tagged(cinv)" actions="no" archive="yes"
feedshow=10]]

4
tags/ebook.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged ebook"]]
[[!inline pages="tagged(ebook)" actions="no" archive="yes"
feedshow=10]]

4
tags/filesystem.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged filesystem"]]
[[!inline pages="tagged(filesystem)" actions="no" archive="yes"
feedshow=10]]

4
tags/firewall.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged firewall"]]
[[!inline pages="tagged(firewall)" actions="no" archive="yes"
feedshow=10]]

4
tags/geek.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged geek"]]
[[!inline pages="tagged(geek)" actions="no" archive="yes"
feedshow=10]]

4
tags/gluster.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged gluster"]]
[[!inline pages="tagged(gluster)" actions="no" archive="yes"
feedshow=10]]

4
tags/hack.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged hack"]]
[[!inline pages="tagged(hack)" actions="no" archive="yes"
feedshow=10]]

4
tags/hardware.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged hardware"]]
[[!inline pages="tagged(hardware)" actions="no" archive="yes"
feedshow=10]]

4
tags/hosting.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged hosting"]]
[[!inline pages="tagged(hosting)" actions="no" archive="yes"
feedshow=10]]

4
tags/init.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged init"]]
[[!inline pages="tagged(init)" actions="no" archive="yes"
feedshow=10]]

4
tags/ipv6.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged ipv6"]]
[[!inline pages="tagged(ipv6)" actions="no" archive="yes"
feedshow=10]]

4
tags/kindle.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged kindle"]]
[[!inline pages="tagged(kindle)" actions="no" archive="yes"
feedshow=10]]

4
tags/kubernetes.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged kubernetes"]]
[[!inline pages="tagged(kubernetes)" actions="no" archive="yes"
feedshow=10]]

4
tags/linux.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged linux"]]
[[!inline pages="tagged(linux)" actions="no" archive="yes"
feedshow=10]]

4
tags/lxc.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged lxc"]]
[[!inline pages="tagged(lxc)" actions="no" archive="yes"
feedshow=10]]

4
tags/news.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged news"]]
[[!inline pages="tagged(news)" actions="no" archive="yes"
feedshow=10]]

4
tags/nftables.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged nftables"]]
[[!inline pages="tagged(nftables)" actions="no" archive="yes"
feedshow=10]]

4
tags/nginx.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged nginx"]]
[[!inline pages="tagged(nginx)" actions="no" archive="yes"
feedshow=10]]

4
tags/nodejs.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged nodejs"]]
[[!inline pages="tagged(nodejs)" actions="no" archive="yes"
feedshow=10]]

4
tags/notebook.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged notebook"]]
[[!inline pages="tagged(notebook)" actions="no" archive="yes"
feedshow=10]]

4
tags/panter.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged panter"]]
[[!inline pages="tagged(panter)" actions="no" archive="yes"
feedshow=10]]

4
tags/rails.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged rails"]]
[[!inline pages="tagged(rails)" actions="no" archive="yes"
feedshow=10]]

4
tags/release.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged release"]]
[[!inline pages="tagged(release)" actions="no" archive="yes"
feedshow=10]]

4
tags/rubyonrails.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged rubyonrails"]]
[[!inline pages="tagged(rubyonrails)" actions="no" archive="yes"
feedshow=10]]

4
tags/security.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged security"]]
[[!inline pages="tagged(security)" actions="no" archive="yes"
feedshow=10]]

4
tags/shell.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged shell"]]
[[!inline pages="tagged(shell)" actions="no" archive="yes"
feedshow=10]]

4
tags/support.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged support"]]
[[!inline pages="tagged(support)" actions="no" archive="yes"
feedshow=10]]

4
tags/systemd.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged systemd"]]
[[!inline pages="tagged(systemd)" actions="no" archive="yes"
feedshow=10]]

4
tags/terminal.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged terminal"]]
[[!inline pages="tagged(terminal)" actions="no" archive="yes"
feedshow=10]]

4
tags/time.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged time"]]
[[!inline pages="tagged(time)" actions="no" archive="yes"
feedshow=10]]

4
tags/time_tracking.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged time tracking"]]
[[!inline pages="tagged(time_tracking)" actions="no" archive="yes"
feedshow=10]]

4
tags/tpb.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged tpb"]]
[[!inline pages="tagged(tpb)" actions="no" archive="yes"
feedshow=10]]

4
tags/ubuntu.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged ubuntu"]]
[[!inline pages="tagged(ubuntu)" actions="no" archive="yes"
feedshow=10]]

4
tags/ungleich.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged ungleich"]]
[[!inline pages="tagged(ungleich)" actions="no" archive="yes"
feedshow=10]]

4
tags/urxvt.mdwn Normal file
View file

@ -0,0 +1,4 @@
[[!meta title="pages tagged urxvt"]]
[[!inline pages="tagged(urxvt)" actions="no" archive="yes"
feedshow=10]]