Categories
Linux Mastering Development

Seagate/LaCie NasOS – enable volume encryption on non-supported device?

According to the guide at https://www.seagate.com/gb/en/support/kb/nas-os-4x-setting-up-volume-encryption-006007en/ there should be an option to encrypt a volume on devices running NAS OS 4.0. That option is missing from my LaCie 5big Pro although it is running NAS OS 4.0. According to the Seagate/LaCie support, the option is missing because my device doesn’t support this feature. This is […]

Categories
Linux Mastering Development

Qemu network traffic filtering with iptables

I need to filter both outcoming and incoming traffic of the guest system on Qemu (Linux). The host system is Linux too. I think iptables is a good tool, but I don’t know how to use it here. What command line parameters should I use to run Qemu for correct network interface configuring? How should […]

Categories
Linux Mastering Development

Error installing Arch on LUKS-encrypted ZFS root: `/sbin/init does not exist`

I have almost successfully installed Arch Linux on a LUKS-encrypted disk with a ZFS root. I can get the password prompt to decrypt the LUKS volume, but the next step with loading the installed system from the ZFS pool is not working. I get the following error immediately after decrypting: Starting version 246.6-1-arch A password […]

Categories
Linux Mastering Development

When shutting down Arch Linux, the message display is erratic

I installed KDE Plasma and LightDM on Arch Linux. Then, when shutting down, the message display was disrupted. Apparently, this occurs in Linux distributions that employ Systemd. How can I fix this phenomenon?

Categories
Linux Mastering Development

Setting up PPPoE on Debian 10 guidance

I am trying to connect to the internet via PPPoE on my laptop running Debian 10 using the command line. Here is what I tried so far: edit /etc/ppp/provider and add the following content: plugin rp-pppoe.so enp4s0 # login settings user "debian" password "newbie" # Connection setings persist maxfail 0 holdoff 6 # LCP settings […]

Categories
Linux Mastering Development

How to pop the last positional argument of a bash function or script?

I often need to pop the last positional argument of a bash function or script. By "pop" I mean: "remove it from the list of positional arguments, and (optionally) assign it to a variable." Given how frequently I need this operation, I am a bit surprised that best I have found is what is illustrated […]

Categories
Linux Mastering Development

When shutting down Arch Linux, the message display is erratic

I installed KDE Plasma and LightDM on Arch Linux. Then, when shutting down, the message display was disrupted. Apparently, this occurs in Linux distributions that employ Systemd. How can I fix this phenomenon?

Categories
Linux Mastering Development

Find duplicate paragraphs in two files and delete one

I have two bib files, some of the entries are duplicates, the duplicates entries are in paragraphs, or could be identified with same pattern, e.g. a.bib looks like @InProceedings{Arranged, author = {Transcribed by hofei Arranged and by hofei}, title = {ALL OF ME}, file = {:All of Me.pdf:PDF}, groups = {Solo Tab}, } @InProceedings{P, author […]

Categories
Linux Mastering Development

Alternative to some redirection and control operators

I want to pipe the output of one command to another without the usage of < << >> > | ; & && for example curl http://website.com/config.sh | sh or anything like that command1 | command2 to become command1 X command2

Categories
Linux Mastering Development

Can’t activate webcam on Ubuntu (18.04.5 LTS)

I have installed the cheese software in order to activate the integrated webcam on my HP laptop. I get the message: No device found. I tried every solution that I found proposed on the Internet. Nothing worked. After typing the command lsusb, I got the following: Bus 002 Device 004: ID 8086:0189 Intel Corp. Bus […]