Installing Microsoft Edit in Debian or Ubuntu based distros

This little application makes it easier to edit files on the terminal with full mouse, copy-paste support and more! A good one to have in our toolkit. Note: The current version of Edit (1.2.0) is not available via the package manager apt yet. This could change at some point in the future, making for an easier deployment. Install Pre-requisites zstd - to decompress the downloaded file sudo apt install zstd Install the latest Edit version from GitHub for x86_64 EDIT_VERSION=$(curl -s "https://api.github.com/repos/microsoft/edit/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+') wget -qO edit.tar.zst https://github.com/microsoft/edit/releases/latest/download/edit-$EDIT_VERSION-x86_64-linux-gnu.tar.zst sudo tar xf edit.tar.zst -C /usr/local/bin edit edit --version rm -rf edit.tar.zst This can easily be made into a script for multiple installations.

August 25, 2025 · 1 min · Ismael Lamberty

Mount an SMB share and use iGPU on an unprivileged Debian 12 LXC container in Proxmox

Pre-requisites: Create an unprivileged Debian 12 LXC container. Inside the LXC container, use the root user to create a non-root user with your name. In the case of mine I wanted to add it to the sudo and docker groups after installing Docker inside the LXC container. useradd -s /bin/bash -m -G sudo,docker ismael Change the user password to whatever you need. su ismael passwd This user’s default UID:GID will be 1000:1000. If not, create it with: ...

February 8, 2024 · 2 min · Ismael Lamberty

Proxmox | automatically restore SMB/CIFS share connections

If at some point Proxmox loses connectivity with an SMB/CIFS share, it will not restore the connection by itself until a restart of the Proxmox node is performed. With this tip, you’ll make the Proxmox node restore the connection automatically. In your node’s shell, create a bash script that looks for mount points in /mnt/pve/ and unmounts them if they become stale: nano remount.sh Put this content into the file: ...

January 10, 2024 · 1 min · Ismael Lamberty

Set up your SSH key-based authentication from Windows in a single line

Using Linux directly to interact with Linux servers is pretty great and seamless. But when your daily driver is Windows, this can be a little more cumbersome. For instance, when connecting with the Windows version of OpenSSH there is a way to copy your generated key for simple password-less logins after that. Generate your private and public keys in your Windows PowerShell shell Execute the command below in Windows Terminal or any other terminal in Windows: ...

October 18, 2023 · 2 min · Ismael Lamberty

SpeedTouch modem as a router

A SpeedTouch modem, like a 2007 model Thompson Speedtouch 585V6, is a DSL modem. But with a little tweak, it can be used as a router for your network. Run these commands towards the SpeedTouch modem using telnet: telnet <modem ip address> Commands to set up a SpeedTouch DSL modem as a router: For firmware versions 5.3 and lower: ppp relay flush ppp flush eth flush atm flush atm phonebook flush eth bridge ifdelete intf=ethport4 eth ifadd intf=ethport4 eth ifconfig intf=ethport4 dest=ethif4 retry=10 group=default eth ifattach intf=ethport4 ip ifadd intf=WAN_Port dest=ethport4 ip ifconfig intf=WAN_Port hwaddr=00:11:42:0c:65:1d # This line is needed if MAC address cloning is required, otherwise it's not necessary dhcp client ifadd intf=WAN_Port dhcp client ifattach intf=WAN_Port nat ifconfig intf=WAN_Port translation=enabled nat ifattach intf=WAN_Port saveall For firmware versions 6.1 and higher: ...

October 13, 2023 · 2 min · Ismael Lamberty

SSH Tunneling for easy access to web-based apps from servers

I had to access Portainer in my cloud VM to modify docker containers. I can access it now via any web browser with SSL (https) no problem, but this way is good in a pinch. Run this command in your local machine: ssh -L 9000:127.0.0.1:9000 my_user@my-remote-server This will forward port 9000 to our local machine: http://localhost:9000 or http://127.0.0.1:9000 At this local address the Portainer web UI from the remote server will appear. ...

October 13, 2023 · 1 min · Ismael Lamberty