runit
, this time on my gentoo
.I had been thinking about this, since I noticed this on
Adventures in *nix and #opensource… :-)
venture to give something back
knowledge shared == knowledge squared
runit
, this time on my gentoo
.~/.tmux.conf
set -g mouse on bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" bind -n WheelDownPane select-pane -t= \; send-keys -M
$ tmux source ~/.tmux.conf
Although some developers wrongly still recommend plain rsync-update method, you should never do that, since it is fundamentally insecure (emerge-webrsync is signed by a machine key, but still better). You should instead start to sync via git (best do that from github, unless you want to break our infra server).
i3
Window Manager for a while now, and had been waiting to have a go. I finally did.$ cat ~/.asoundrc defaults.pcm.!card 0 defaults.pcm.!device 0 defaults.pcm.!ctl 0 pcm.!default { type asym playback.pcm "plug:softvol" capture.pcm "plug:dsnoop" } pcm.softvol { type softvol slave.pcm "dmix" control { name "PCM"; card 0; } #max_dB 32.0 max_dB 20.0 min_dB -5.0 }
dash
is more efficient than bash in all respects, except perhaps for interactive use. and i always replace system default, root, and login shells to dash.
gentoo
(and it's community
) beyond expectation. So much that the debian to gentoo transition continues to gather pace.bloatware
?) tools with minimal busybox
, wherever I could. Busybox is stable, and fulfils all my requirements rather nicely. This led me to voidlinux
which has that same ethos in it's core. It is a great booster that gentoo
could satisfy me on this count too.
kernel
or initramfs
seems to have intermittent kernel panic
at boot time. I have had these on & off over many kernels/upgrades. Many times, this problem seems to go away after a few hours or days. Till then, I dual-boot one of my other systems.
systemd
, but sometimes you can't avoid demandware
. Below is my how to wifi
with systemd
. This method now works with all distros
wpa_supplicant
. Optional wpa_gui
provides a GUI and System Tray icon, if need be. All other applications are bloat, building additional layers and too complexity. Goodbye Gnome/NetworkManager!systemd
chasing the gnome
dragons, the debian
ecosystem has broken down. Many debian ways of doing things have since become invalid
$ tar --helpsome useful options
$ man tar
-c, --create create a new archive -t, --list list the contents of an archive -x, --extract, --get extract files from an archive -a, --auto-compress use archive suffix to determine the compression program -f, --file=ARCHIVE use archive file or device ARCHIVE --numeric-owner always use numbers for user/group names --owner=NAME Force NAME as owner for added files. --one-file-system stay in local file system when creating archive -p, --preserve-permissions, --same-permissions extract information about file permissions (default for superuser) --show-defaults show tar defaults --ignore-failed-read Do not exit with nonzero on unreadable files. -v, --verbose verbosely list files processed --xattrs enable extended attributes support
tar
current directory avoiding absolute pathname risks$ cd {backup-directory} $ sudo tar --ignore-failed-read --one-file-system --numeric-owner --xattrs -capf /mnt/backup/{backup-filename}.tar.xz .
tar
$ cd {target-directory} $ sudo tar --one-file-system --numeric-owner --xattrs -xapf /mnt/backup/{backup-filename}.tar.xz
LXQT Mixer
wouldn't open. I don't even get any error/warning messages. This is not good.alsamixer
.$ alsamixer ... This sound device does not have any controls.
$ su anotheruser Password: su: Permission denied
toshiba bios
seem to be one of the most notorious and worst broken. do not choose toshiba
for anything but windows, and even with that be careful. dodgy bios implementations are like broken foundations to build your home, if you want to live there yourself!$ dmesg -l err toshiba_acpi: Error reading LCD brightnessindicates direction of problems. this error points towards a buggy implementation of acpi by toshiba.
$ dmesg | grep DSDT ACPI: DSDT 0x00000000B7CEF000 095BA (v01 TOSINV TOSINV00 00000001 MSFT 01000013) TOSHIBA Satellite detected - force copy of DSDT to local memory ACPI: Forced DSDT copy: length 0x095BA copied locally, original unmapped ACPI: EC: Look up EC in DSDTindicates that bios data is (used as original, forced) not overidden.
iasl
, for this purpose.$ apt-cache show iasl Description: Intel ASL compiler/decompiler iASL compiles ASL (ACPI Source Language) into AML (ACPI Machine Language). This AML is suitable for inclusion as a DSDT in system firmware. It also can disassemble AML, for debugging purposes. Homepage: http://acpica.org
# apt-get install iasl
$ iasl -h
$ cd /tmp $ sudo cat /sys/firmware/acpi/tables/DSDT >dsdt.dat $ iasl -d dsdt.dat $ iasl -tc dsdt.dslthe first command reads the dsdt data. do it as root.
$ iasl -tc dsdt.dsl Intel ACPI Component Architecture ASL Optimizing Compiler version 20100528 [Jul 2 2010] Copyright (c) 2000 - 2010 Intel Corporation Supports ACPI Specification Revision 4.0a dsdt.dsl 3401: 0x00000000, // Length Error 4122 - ^ Invalid combination of Length and Min/Max fixed flags dsdt.dsl 3408: 0x00000000, // Length Error 4122 - ^ Invalid combination of Length and Min/Max fixed flags dsdt.dsl 7148: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7165: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7214: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7231: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7275: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7489: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7506: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7523: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7540: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 7557: Name (_PLD, Buffer (0x10) Error 4080 - Invalid object type for reserved name ^ (found BUFFER, requires Package) dsdt.dsl 8873: Method (_GTM, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTM) dsdt.dsl 8873: Method (_GTM, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTM) dsdt.dsl 9033: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9033: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 9101: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9101: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 9174: Method (_GTM, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTM) dsdt.dsl 9174: Method (_GTM, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTM) dsdt.dsl 9334: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9334: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 9402: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9402: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 9507: Method (_GTM, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTM) dsdt.dsl 9507: Method (_GTM, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTM) dsdt.dsl 9667: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9667: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 9735: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9735: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 9808: Method (_GTM, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTM) dsdt.dsl 9808: Method (_GTM, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTM) dsdt.dsl 9968: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 9968: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) dsdt.dsl 10036: Method (_GTF, 0, NotSerialized) Warning 1088 - ^ Not all control paths return a value (_GTF) dsdt.dsl 10036: Method (_GTF, 0, NotSerialized) Warning 1081 - ^ Reserved method must return a value (Buffer required for _GTF) ASL Input: dsdt.dsl - 10111 lines, 370896 bytes, 4450 keywords Compilation complete. 12 Errors, 24 Warnings, 0 Remarks, 37 Optimizations