Create a template service file at /etc/systemd/system/secure-tunnel@.service
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from __future__ import division | |
""" | |
*************************************************************************** | |
* Copyright (c) 2014-2015-2016-2017 2018 2019 2020 2022 2023 <mario52> * | |
* * | |
* This file is a supplement to the FreeCAD CAx development system. * | |
* * | |
* This program is free software; you can redistribute it and/or modify * |
Since I was unable to find a specific answer to how can one create a Dell recovery disk from within Linux, I decided to write the steps here.
If you write the CD image directly to the USB drive (or create a new partition and write it there), the laptop will not boot. You need your USB media to be in FAT32 format with the contents of the recovery ISO.
$USB_DEVICE
is your USB drive (check with fdisk -l
, it may be# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Quick and easy way of making Chrome send bittorrent magnet links to a remote Transmission instance using its API on Ubuntu with xdg. This method does not require modifying any system files or xdg's scripts, whereas most of the examples I found on the Internet did require such hacks.
Chrome does not handle default applications, instead relying on the OS to manage that. The default handler in Ubuntu is xdg, which maps the MIME type to the default application. Extra tooling is required because xdg requires a registered desktop file, so you can't simply give it a command to run.
Steps:
Install the shell script transmission-remote-magnet
ideally in /usr/local/bin
: ln -s ~/src/transmission-remote-magnet.bash transmission-remote-magnet
Install the desktop file, which is required for xdg to work and will likely require sudo: desktop-file-install ./transmission-remote-magnet.desktop
# prepare common tools | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install git gitk build-essential vim curl wget software-properties-common apt-transport-https ca-certificates | |
# add visual studio code repository | |
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | |
# add docker repository |