user:sachy:lakatux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
user:sachy:lakatux [2020/10/13 21:17] – ytdl sachy | user:sachy:lakatux [2021/10/30 20:08] – custom livecd sachy | ||
---|---|---|---|
Line 802: | Line 802: | ||
</ | </ | ||
+ | ==== df: Operation not permitted ==== | ||
+ | Someone in GOME decided that it is a great idea to break essential tools like ' | ||
+ | |||
+ | <code sh> | ||
+ | $ df -h | ||
+ | df: / | ||
+ | ... | ||
+ | # apt-get purge xdg-desktop-portal | ||
+ | </ | ||
+ | |||
+ | ==== Speed-up hibernation ==== | ||
+ | |||
+ | When hibernating the system (storing the state on disk), all RAM content is dumped into the swap area. This includes also caches and other rubbish which can be safely dropped. | ||
+ | By default, the pm-utils try to fit the state under 2/5 of the RAM size when hibernating to shorten the store/ | ||
+ | |||
+ | ==== Custom LiveCD ==== | ||
+ | |||
+ | When you want to have an immutable virtual machine, booting directly the LiveCD of preffered distro is the easiest option. But sometimes one might want to edit some parts of the base ISO. | ||
+ | |||
+ | New users are created from skeleton /etc/skel, so whatever is there, the live user will have too. | ||
+ | |||
+ | <code bash> | ||
+ | apt-get install squashfs-tools | ||
+ | mount -o loop livecd.iso / | ||
+ | unsquashfs / | ||
+ | # make your changes in squashfs-root | ||
+ | mksquashfs squashfs-root filesystem.squashfs -b 1024k -comp xz -Xbcj x86 -e boot | ||
+ | # cd inside the extracted ISO content and create the isofile somewhere else | ||
+ | mkisofs -J -l -R -v -o ../ | ||
+ | </ | ||
+ | |||
+ | Virtualbox got a feature called " | ||
user/sachy/lakatux.txt · Last modified: 2023/09/10 09:16 by sachy