2017-12-02 22:02:37 +00:00
|
|
|
Tasks
|
2018-07-12 04:56:42 +00:00
|
|
|
=====
|
2017-12-02 23:36:11 +00:00
|
|
|
|
2017-12-05 22:44:10 +00:00
|
|
|
* latest
|
|
|
|
|
2019-04-14 15:52:24 +00:00
|
|
|
* youtube-dl -f bestvideo+bestaudio --all-subs --merge-output-format mkv url
|
2019-01-14 09:42:26 +00:00
|
|
|
* grub: have a root menu in grub.cfg, otherwise escape sends to CLI
|
2018-12-22 00:29:02 +00:00
|
|
|
* parted: print free, unit MB
|
2018-12-11 20:16:28 +00:00
|
|
|
* pass
|
2018-12-11 10:47:14 +00:00
|
|
|
* DNS override /etc/NetworkManager/NetworkManager.conf [main] dns=none
|
2018-12-10 07:22:12 +00:00
|
|
|
* firefox ~/.mozilla/plugins ← libflashplayer.so
|
2018-12-10 07:24:22 +00:00
|
|
|
* /etc/sysctl.conf net.ipv4.ip_forward=1 | /proc/sys/net/ipv4/ip_forward
|
|
|
|
* /etc/network/interfaces → up command args…
|
2018-11-20 14:46:40 +00:00
|
|
|
* lxc private network: reach out
|
|
|
|
* iptables -t nat -A POSTROUTING -o br0 -s 10.0.0.0/8 -j MASQUERADE
|
2018-11-20 15:09:18 +00:00
|
|
|
* lxc private network: get in
|
2018-12-04 15:25:07 +00:00
|
|
|
* iptables -t nat -A PREROUTING -i br0 -p tcp --dport 2211 -j DNAT --to 10.0.1.1:22
|
2018-11-04 22:08:13 +00:00
|
|
|
* hexdump -C -v file_path
|
2018-11-03 12:36:15 +00:00
|
|
|
* qemu-system avoid junk like floppy: -nodefaults -vga virtio
|
2018-11-02 10:21:05 +00:00
|
|
|
* xtra.squashfs empty media/data ← lib/live/mount/medium + data auto fstab
|
2018-11-02 10:08:34 +00:00
|
|
|
* grub-bios-setup not functionin with boot.img in an overlay fs
|
2018-09-24 21:12:13 +00:00
|
|
|
* qemu-system-x86_64 -initrd initrd.img -kernel vmlinuz -append root=/dev/sda1
|
2018-09-22 17:29:59 +00:00
|
|
|
* adduser user kvm for -enable-kvm
|
2018-09-20 22:09:16 +00:00
|
|
|
* qemu-img convert -p -O format input.ext output.ext
|
|
|
|
* qemu-img create -f format -o ?
|
|
|
|
* qemu-img create -f format name.ext [size]
|
|
|
|
* qemu-img info name.ext
|
|
|
|
* modprobe nbd
|
|
|
|
* qemu-nbd -c /dev/nbd? name.ext
|
|
|
|
* qemu-nbd -d /dev/nbd?
|
2018-09-24 21:06:53 +00:00
|
|
|
* qemu-system-x86_64 -enable-kvm -display sdl -m 2048 -drive file=name.ext,if=virtio
|
2018-09-11 22:21:37 +00:00
|
|
|
* sys: firmware-{misc-nonfree,netxen,realtek}
|
2018-08-31 21:01:21 +00:00
|
|
|
* catimg
|
2018-08-20 21:48:19 +00:00
|
|
|
* mount -t overlay overlay -o lowerdir=squashmount,upperdir=rwdir,workdir=emptydir squashfs-root
|
2018-08-13 19:03:18 +00:00
|
|
|
* optipng
|
2018-08-10 18:19:39 +00:00
|
|
|
* grub/efi: no biosdisk or ntldr
|
|
|
|
* chromium as alternate browser
|
2018-08-05 02:17:58 +00:00
|
|
|
* ['sphinx.ext.graphviz'] ⋅ graphviz_output_format = 'svg'
|
2018-08-03 23:02:43 +00:00
|
|
|
* remove users' .bashrc files
|
2018-08-03 22:57:27 +00:00
|
|
|
* deb [arch=amd64,i386] → /etc/apt/sources.list
|
2018-08-03 22:48:24 +00:00
|
|
|
* /etc/localtime -> /usr/share/zoneinfo/Europe/Paris
|
|
|
|
* /etc/timezone ← Europe/Paris
|
2018-08-03 22:41:28 +00:00
|
|
|
* /usr/local/share/ca-certificates ⇒ update-ca-certificates
|
2018-07-28 00:43:58 +00:00
|
|
|
* debian: buster/updates signed with archive-7 key
|
2018-07-28 00:38:11 +00:00
|
|
|
* .git/config ← receive.denyCurrentBranch = updateInsted
|
2018-07-15 20:26:27 +00:00
|
|
|
* python3: mutables persistent as constructors default
|
2018-07-14 18:48:54 +00:00
|
|
|
* atop, jq, netcat
|
2018-07-12 21:09:05 +00:00
|
|
|
* dependencies: readelf → ldd
|
2018-07-12 04:56:00 +00:00
|
|
|
* DebFromScratch: tasks
|
|
|
|
* /etc/dhcp/dhclient.conf no overwrite resolv.conf
|
2018-06-15 12:10:43 +00:00
|
|
|
* Dir::Etc::sourceparts "";
|
2018-06-15 12:07:38 +00:00
|
|
|
* Acquire::Check-Valid-Unitl false;
|
|
|
|
* APT::Install-Recommends "false";
|
2018-06-15 12:10:43 +00:00
|
|
|
* APT::Install-Suggests "false";
|
2018-06-15 12:07:38 +00:00
|
|
|
* debootstrap: minbase
|
|
|
|
* debootstrap: umount machine-id afterwards
|
|
|
|
* machine-id: /etc empty ⋅ /var/lib/dbus useless
|
2018-06-13 09:41:40 +00:00
|
|
|
* DEBIAN_FRONTEND="noninteractive" for apt install
|
2018-06-12 21:51:49 +00:00
|
|
|
* console-setup -> /etc/default/keyboard
|
|
|
|
* console-data -> loadkeys fr
|
2018-06-05 18:32:24 +00:00
|
|
|
* org.gnome.desktop.media-handling.autorun-never true
|
|
|
|
* org.gnome.desktop.interface.text-scaling-factor 1.5
|
2018-05-29 16:36:30 +00:00
|
|
|
* AppArmor/lxc? lxc.aa_profile = unconfined
|
2018-05-31 20:05:07 +00:00
|
|
|
* graphviz
|
2018-05-31 19:05:21 +00:00
|
|
|
* tig
|
|
|
|
* upx-ucl
|
2018-05-29 20:09:35 +00:00
|
|
|
* ?/vmlinuz apparmor=0 (KO backports profiles)
|
2018-05-29 03:17:17 +00:00
|
|
|
* LD_LIBRARY_PATH=path/to/libs path/to/executable
|
|
|
|
* upx --best executable
|
|
|
|
* nuitka --portable --python-version=3.5 --remove-output --show-progress --show-modules main.py
|
2018-06-06 15:56:55 +00:00
|
|
|
* bpython3
|
2017-12-05 22:44:10 +00:00
|
|
|
* sphinx configuration
|
|
|
|
* __git_complete gco _git_checkout
|
|
|
|
* git LFS
|
|
|
|
* apt-mirror
|
|
|
|
* DEBIAN_FRONTEND=noninteractive for keyboard-configuration interactive prompt
|
2017-12-06 20:11:30 +00:00
|
|
|
* sudo, sudoers
|
|
|
|
* sqlite
|
|
|
|
* umask
|
|
|
|
* node, process.umask(2)
|
2017-12-05 22:44:10 +00:00
|
|
|
|
|
|
|
* critical
|
|
|
|
|
|
|
|
* ~/.config/gtk-3.0 → bookmarks ⋅ settings.ini
|
|
|
|
* dbus-run-session -- gsettings set key value
|
|
|
|
* gsettings get key
|
|
|
|
* linux: ram merges live-media-path's squashfs files but not fully in RAM
|
|
|
|
* linux: toram=xxx.squashfs
|
|
|
|
* ram disk size argument
|
|
|
|
* panic kernel argument for seconds to automatically reboot
|
|
|
|
* ! manual build of live-boot system's initrd.img after kernel upgrade
|
|
|
|
|
|
|
|
* /etc/skel
|
|
|
|
* auto-update if firefox archive in ~/.local
|
|
|
|
|
|
|
|
* ? systemd-sysv ↔ linux-image-amd64 ↔ live-boot
|
|
|
|
* ! GUI keyboard-configuration /etc/default/keyboard
|
|
|
|
|
|
|
|
* reference missing mkdocs strict option
|
|
|
|
|
|
|
|
* apt-transport-https
|
|
|
|
* dhcpcd
|
|
|
|
|
|
|
|
* handle upstream GPG public keys
|
|
|
|
* check authenticity mirrors with GPG
|
|
|
|
|
2017-12-05 22:50:49 +00:00
|
|
|
* lxc-create packages
|
|
|
|
|
|
|
|
* ${init}
|
|
|
|
* ifupdown
|
|
|
|
* locales
|
|
|
|
* dialog
|
|
|
|
* isc-dhcp-client
|
|
|
|
* netbase
|
|
|
|
* net-tools
|
|
|
|
* iproute
|
|
|
|
* openssh-server
|
2017-12-05 22:44:10 +00:00
|
|
|
|
|
|
|
* extra
|
|
|
|
|
2018-04-15 22:34:39 +00:00
|
|
|
* json.load(f, object_pairs_hook=collections.OrderedDict)
|
2018-04-13 20:40:13 +00:00
|
|
|
* tty screenshot → sudo fbcat > name.ppm
|
2018-04-10 17:21:09 +00:00
|
|
|
* consoleblank=0 / setterm --blank 0
|
2017-12-05 22:44:10 +00:00
|
|
|
* on-the-fly LibreOffice documents conversion
|
|
|
|
* send emails as own domain name's alias
|
|
|
|
* personal GPG key signature
|
|
|
|
|
|
|
|
Network interfaces
|
2018-07-12 04:56:42 +00:00
|
|
|
------------------
|
2017-12-05 22:44:10 +00:00
|
|
|
|
|
|
|
* /etc/network/interfaces
|
|
|
|
|
|
|
|
.. code:: shell
|
|
|
|
|
|
|
|
source /etc/network/interfaces.d/*
|
|
|
|
|
|
|
|
* /etc/network/interfaces.d/lo
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
auto lo
|
|
|
|
iface lo inet loopback
|
|
|
|
|
|
|
|
* /etc/network/interfaces.d/eth0
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
auto eth0
|
|
|
|
iface eth0 inet dhcp
|
|
|
|
|
|
|
|
Name resolution
|
2018-07-12 04:56:42 +00:00
|
|
|
---------------
|
2017-12-05 22:44:10 +00:00
|
|
|
|
|
|
|
* /etc/hosts
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
127.0.0.1 localhost
|
|
|
|
|
|
|
|
::1 localhost
|