linux

Udev Webcam linux howto 2022.04.01 You can change the device link so your webcam will be always accessible at the same location /dev/video99. You can also persist some settings via the v4l-ctl command. Read more
Force #wifi interface name on #Ubuntu 18.04 console howto linux network shell ubuntu udev wifi 2018.09.07 Using Udev, you can change the wifi interface name. First, you need to get the mac address. $ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: **wlp1s0**: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether **9c:b6:d0:8a:71:11** brd ff:ff:ff:ff:ff:ff My wifi interface is name wlp1s0 and its mac address is just after the keyword “link/ether” : 9c:b6:d0:8a:71:11. Read more
Tmux for the impatient linux tmux 2015.07.08 tmux Create a new session (the first time) tmux a Attach to an existing session Ctrl+b d Detach Ctrl+b PgUp/PgDown Scroll (quit with q) also can use mouse after first page up or down (see tips below to activate normal mouse scrolling) Ctrl+b [ Copy mode (quit with q) Ctrl+b " Split horizontally Ctrl+b % Split vertically Ctrl+b arrow key Switch pane Hold Ctrl+b + arrow keys Resize pane Ctrl+b + z Toggle zoom in pane Tips Copy/pasting sudo apt-get install xclip Install xclip so buffer copied inside tmux are also available to X Shift + mouse selection Select text to copy Ctrl + Shift + C Copy Ctrl + Shift + V Paste Use the mouse for scrolling set -g mouse on put this command in ~/. Read more