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

Firefox Executable File not Found in $PATH for Flatpak on Linux

Intro When an application is installed via apt package management tool, you can start running the application when you type the application name in terminal, for example firefox. But when you install the application with Flatpak utility you must run the Flatpak application using this command: flatpak run org.mozilla.firefox Problem But when i want to authenticate my command-line sessions with GitHub using Github CLI Tool command gh auth login with HTTPS protocol and Login with a web browser options, i get this error: ...

August 8, 2023 · 4 min · 736 words · CodeGenos