Answer by Thomas for How to delete a route by its id or something easy to type
Not knowing which Ubuntu version you are using, but ip route del should do the trick. You also should use ip route to list the routes. Then delete the routes as follows.root@host:~# ip routedefault via...
View ArticleAnswer by Thomas for nvidia-settings (&prime-select) fails to switch GPU...
Well, you are using a Linux distribution that does use grub by default and many scripts assume that the grub tools are available to make changes that are easy to use for ordinary users. Now if you...
View ArticleAnswer by Thomas for How to pass a pathname with a space in it to cd inside...
You should use double-quotes " to surround files, folders or variables that contain special characters or whitespace.From the example you provided, that would be as follows:~$ mkdir "temp space"~$...
View ArticleAnswer by Thomas for Migrating /home to ZFS
First you need to the zstorage/home filesystem to a different mountpoint like /zstorage/home to transfer the files from /home to /zstorage/home.To transfer the data, best would be to do this while no...
View ArticleAnswer by Thomas for dns problem in samba addc
They do not work because the second server is only queried if the query of the first one returns with an error. An error is something like a timeout, an answer from the DNS server that the address/name...
View ArticleAnswer by Thomas for How to start emacs as service?
The systemd service file seems to need some modifications to work. From the link you provided, the --fg-daemon option is only available for Emacs 26.1+, whereas version below should use --daemon (was...
View ArticleAnswer by Thomas for Does Kernel HWE 4.18.0-13 support overlay nfs_export=on?
To check if the overlay module support the NFS feature you can run modinfo overlay.root@host:~# modinfo overlay | grep nfsparm: nfs_export:boolparm: ovl_nfs_export_def:Default to on or off for the NFS...
View ArticleAnswer by Thomas for rsync to remote directory
For rsync the -p option means to preserve permissions and does not take an argument. Therefore your command cannot be parsed correctly and you get an error. If you want to change the SSH port on which...
View ArticleAnswer by Thomas for Reconfigure the display-manager non-interactively
After reading up the .post*, '.pre*' and .config scripts of gdm3 and lightdm I have found a way to run dpkg-reconfigure interactively to change between the display managers and keep the magic of the...
View ArticleAnswer by Thomas for Unable to install wine on ubuntu 18.04
As the error points to line 51, this one is not correct. I should be as follows.deb https://dl.winehq.org/wine-builds/ubuntu bionic mainPlease also note further needed steps from the WineHQ site.
View ArticleAnswer by Thomas for yaml expected mapping
You have to indent the properties accordingly to identify parent and child properties. Otherwise netplan is not able to parse your YAML configuration. A valid YAML file for netplan would be as...
View ArticleAnswer by Thomas for Process substitution removes new-line and replace with...
echo does not interpret backslashes escapes by default and \n is not recognized as newline therefore. You can enable the interpretation with echo -e.#!/bin/bashdeclare -a orgwhile IFS=$'\n' read -r...
View ArticleAnswer by Thomas for pip install pycurl Fails on Ubuntu 18.04
After some iterations it turned out that some development packages were missing to compile pycurl. apt-get install libpython3.7-dev libnss3 libnss3-devThe essential hint for libpython3.7-dev is as...
View ArticleAnswer by Thomas for tar using short form option versus old style
Because that is the way the different option styles work and they behave differently.The man page states for UNIX or short-option style, the one which is prefixed with a single dash.Any number of...
View ArticleAnswer by Thomas for SD card showing up in `dmesg` but not elsewhere
The problem seems to be related to a misbehaving auto suspend function of the ums_realtek driver.From the output of dmesg of the question one can see that the device gets detached again 4 seconds after...
View ArticleAnswer by Thomas for apt-file regex: find multiple packages at once using or
The problem is related to the source of files apt-file is matching. It uses the Contents files in /var/lib/apt/lists/, which do not contain the leading /.# lz4cat...
View ArticleAnswer by Thomas for How do I get usb 3.0 driver working or check that it is...
You can check your USB devices with, e.g., lsusb -t. There should also be listed which driver is in use and at which speed the devices are connected. It seems like the driver is built into the kernel....
View ArticleAnswer by Thomas for Will multiple swap space's be effective?
In general this highly depends on your use case. E.g. if you do not make use of hibernate to disk (which uses swap to hibernate) you do not need that much amount of swap space and 1GB might be...
View ArticleAnswer by Thomas for setting up secure tmpfs in fstab
The first field is the storage backend you want to mount. In case of tmpfs, there is none storage backend.From man fstabThe first field (fs_spec)....For filesystems with no storage, any string can be...
View ArticleReconfigure the display-manager non-interactively
I am trying to change the default display-manager on a Ubuntu 18.04.1 in a non-interactive way to do this in a script. Everything works as expected when using dpkg-reconfigure gdm3dpkg-reconfigure...
View Article