How to Transfer Files with scp on Linux

Need to copy files to a headless Raspberry Pi over SSH? The scp command lets you securely transfer files and folders between machines on Linux. This guide covers local↔remote and remote↔remote copies, plus useful flags. What is the scp command? scp (secure copy) securely transfers files over an SSH connection. It uses the same authentication and encryption as SSH. In plain terms, scp is like copying a file from one folder to another, except the other “folder” is a computer you can reach over SSH. It’s simple, fast to use for everyday tasks, and available on most Linux and macOS systems by default. ...

September 8, 2023 · 4 min · 725 words · CodeGenos

Ubuntu: Fix Touchpad Tap-to-Click via Xorg (libinput)

Problem Tap-to-click on the touchpad was not working after I installed Ubuntu. Here are quick and advanced fixes. Note: This guide’s fix targets Xorg. Under Xorg, the libinput driver reads options from xorg.conf.d, so we can enforce Tapping system-wide. On Wayland, these options are managed by GNOME; use the GUI toggle instead—Xorg configs do not apply to Wayland sessions. TL;DR / Quick start Wayland/GUI: Settings → Mouse & Touchpad → enable “Tap to Click”. Xorg (terminal): create config and enable tapping, then re-login. # Create config dir and write touchpad config sudo install -d /etc/X11/xorg.conf.d/ sudo tee /etc/X11/xorg.conf.d/30-touchpad.conf >/dev/null <<'EOF' Section "InputClass" Identifier "libinput touchpad" MatchIsTouchpad "on" MatchDriver "libinput" Driver "libinput" Option "Tapping" "on" Option "TappingButtonMap" "lmr" EndSection EOF # Reboot or log out/in, then verify grep -i "Using input driver 'libinput'" /var/log/Xorg.0.log || \ grep -i "Using input driver 'libinput'" ~/.local/share/xorg/Xorg.0.log || \ sudo journalctl -b _COMM=Xorg | grep -i "Using input driver 'libinput'" Quick fix (GUI/Wayland) If you use Wayland or the default GNOME session: ...

August 11, 2023 · 3 min · 565 words · CodeGenos