Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Canina‭

Type On... Excerpt Status Date
Answer A: Find out which process is using a port
Use `netstat -lp`. Typically in such a scenario you will likely be mostly interested in IP sockets, in which case you can also add `-A inet,inet6`. To get numerical port numbers, add `-n` as well. (See the man page for details.) Look at the "local address" field to find the port binding in ques...
(more)
2 months ago
Answer A: Can rsync handle moves and renames?
I'm quite certain that rsync is not able to deduce that /path/to/src/foldera/filew on one side of the transfer is identical to /path/to/src/folderc/filew on the other side of the transfer. Therefore, rsync won't be able to handle such a move efficiently. To stock rsync, it will appear as one file ...
(more)
3 months ago
Answer A: How to extract string from file, run filter, and replace in file with new value?
> - iterate through all `chapter-.xhtml` files in a directory Assuming bash, and assuming that at least one such file exists in the current directory (otherwise adjust the path and/or `shopt -s nullglob`), you can use a simple `for` loop to do this. for filename in chapter-.xhtml; do ...
(more)
5 months ago
Answer A: How to change resolution of virtual terminal?
I think that you have two options. The literal answer would be to pass `video=` to the kernel. For example, you could pass `video=720x400` to run the framebuffer at a 720x400 resolution, assuming that the specified resolution is supported by your hardware. See modedb default video mode support and...
(more)
6 months ago
Answer A: Rename multiple files which have a variable suffix
You can use rename for this. Many distributions package it; for example, it's apt-get install rename in Debian. In normal usage, it is used to apply an arbitrary regular expression substitution expression to the name of each file named on the command line, allowing you to do complex renamings rela...
(more)
7 months ago
Answer A: How to bypass SSH destination host key fingerprint check?
I'm going to assume that you're using OpenSSH, since that is probably the most common SSH implementation on present-day \nix systems. The easiest is probably to use `ssh-keygen -R` to delete all known host keys for a given host name. So if you have just reprovisioned `vps1.example.com` and it ther...
(more)
7 months ago
Answer A: How to see all header fields of an email in mutt?
When viewing a message, press `h`. To return to the normal view, press `h` again. With typical viewer key bindings, `h` is bound to the `display-toggle-weed` function, which controls whether all headers are displayed or whether headers are "weeded". (Under the hood, it toggles the `$weed` boolean ...
(more)
8 months ago
Answer A: Run a command *later*
The traditional way on a \nix system to run a one-time command at some specified future time is `at`. $ at 'now + 10 minutes' at Wed Aug 23 19:00:00 2023 at> date >> /current-time at> ^D job NNN at Wed Aug 23 19:00:00 2023 $ You can also specify a particular time, w...
(more)
8 months ago
Answer A: How do I set up my own DNS on my LAN, with delegation of public domains?
What you describe is a typical mixed authoritative/recursive resolver setup. Such a DNS server setup will respond from its own data about zones for which it has explicit configuration, and will perform recursive resolution for any other names on behalf of clients. Exactly how to set it up depends ...
(more)
10 months ago
Answer A: Adding Python 3.11 to `$PATH`
There are two possible issues that I can see. First, as already brought up in a comment thread, it appears that the `export` command you added in your `.bashrc` is missing a final `"`. This should cause an error message to be printed when starting a shell, making it an easy error to spot. Secon...
(more)
over 1 year ago
Answer A: How to get number of files in directory
There are several ways that I can think of, depending on how correct you need the answer to be, particularly in exotic situations, and exactly what you want to count. If you know that you don't have any exotic file names in the directory, then a relatively trivial `ls -A | wc -l` will probably do ...
(more)
almost 2 years ago
Question VPN tunnel for outgoing connections but still allowing incoming bidirectional connections, using Wireguard or OpenVPN on Linux
For a particular use case, I need to be able to set up a Linux host (specifically Debian) to use a VPN tunnel for routing outgoing connections, but still allow incoming connections outside of that VPN tunnel and for the traffic relating to those to be routed outside of the VPN. More concretely, it...
(more)
over 2 years ago
Answer A: Why is libvkd3d1 not upgrading on my system? (lubuntu 20.04 LTS)
In Debian derivatives (of which Ubuntu is one), and more generally those distributions that use the Debian `apt` package manager tool suite, for packages to be "kept back" during an upgrade means that upgrading those packages would require some change that the requested type of upgrade is prevented f...
(more)
over 2 years ago
Answer A: A shell script that can run under different shells
I'm not familiar with zsh, but it seems to me that your problem here is that the syntax for `for` loops is different in bash and zsh, which throws bash off as it tries to interpret your script, finds a keyword it knows but the rest of the statement doesn't match what it expects. The solution would...
(more)
over 2 years ago
Answer A: Should we merge with Power Users?
I'm posting the same answer on both sites, because the questions are basically the same. Personally, I am in favor of merging Linux Systems Codidact and Power Users Codidact, ideally by transferring the content from Linux Systems to Power Users. The scope of Linux Systems is pretty close to a s...
(more)
over 2 years ago
Answer A: Who should the temporary moderators be?
I would like to also nominate Quasímodo‭ Although the community doesn't have a lot of content yet, Quasímodo has contributed generally well-received content on several subject matters (both as questions and as answers) so appears to have subject matter expertise; has been active in commenting a...
(more)
over 2 years ago
Answer A: Who should the temporary moderators be?
Especially considering the limited apparent interest thus far, I'll throw my hat into the ring and see what happens. Canina I have previous moderator experience from elsewhere (am currently a moderator on Writing, Scientific Speculation and since just now also on Power Users Codidact; feel free...
(more)
over 2 years ago
Answer A: How can you create a separate home partition using LVM?
I don't use Fedora myself, but from the documentation, it looks like it doesn't use LVM unless you explicitly set that up during installation, but rather Btrfs by default. How your system is actually set up could however very well depend on what the defaults were for the distribution version you init...
(more)
over 2 years ago
Answer A: Make Less use a normal view instead of hexdump view
As I noted in a comment thread, I don't get the same behavior as you do (nor do I recall ever seeing it on any system), which points toward something about your setup. Apparently in response to the question about your /.bashrc, you showed that you run this from a freshly started shell (`bash --norc`)...
(more)
over 2 years ago
Question In a bash shell script, how to filter the command line argument list to unique entries only, for processing each?
I have a handful of shell scripts that accept any number of command line arguments, then do some relatively expensive processing based on each command line argument in turn. The general format for these goes along the lines of #!/bin/bash # preliminary set-up goes here # main loo...
(more)
over 2 years ago
Question With a V4L2-compatible webcam, how to see its video feed for the purpose of adjusting aiming?
I have ordered (but am still waiting for it to arrive) a USB-connected webcam that is supposed to be V4L2 compatible. Once it arrives, I'm obviously going to want to mount it such that it provides a reasonable picture with minimal ongoing adjustments. I imagine that the easiest way to do so is to ...
(more)
over 2 years ago
Answer A: How to detect if a Linux Docker host has had unwelcome guests?
You can't expect an attacker to abide by any particular rulebook. In fact, if they did, then the defenders' job would be so much easier. That's why attackers don't do it. Remember the adage: a defender has to defend against every possible attack everywhere, but an attacker only has to find one ...
(more)
over 2 years ago
Answer A: How to give password in shell script?
> That's my bash script. Actually, no, it isn't. Assuming for a second that the shebang line is `#!/bin/sh` (not `#!bin/sh` as you have it in the question), it's a sh shell script, not a bash shell script. Assuming that your /bin/sh is actually bash (which it need not be; for example, Debian uses ...
(more)
almost 3 years ago
Answer A: How to forward SSH access of one machine, through another, to the rest of a network?
I'm having trouble visualizing exactly what your setup is like, but if I understand correctly, then: You have one client that you are connecting from You have one server that you are able to connect to You have some number of hosts which are only reachable through that server, to which you...
(more)
almost 3 years ago
Answer A: Intel® Centrino® Advanced-N 6205 not found in Debian
As a general rule of thumb, Debian is restrictive about installing during the initial installation what, according to the Debian Free Software Guidelines, is non-free software. That's why the installer offers you to provide the firmware files from a different media, in case you need to get network...
(more)
almost 3 years ago
Answer A: What is the best way to identify changes from the default configuration in Raspbian systems?
> How does the list of packages differ from that in a fresh install? The easiest way, if you have the data for it, would probably be to parse the APT logs (particularly /var/log/apt/history.log\) to see what's been installed and removed, respectively. However, those only go back so far, so unless ...
(more)
almost 3 years ago
Answer A: Tag/category suggestions
Categories should be used for broad categories of posts. For example, see how Writing separates the main Q&A from writing challenges, or how Cooking separates its Q&A from recipes, or how Meta separates Q&A from blog. A reasonable question to ask to indicate whether a separate category might be usefu...
(more)
almost 3 years ago
Question How to configure GNOME Keyring to by default NOT automatically unlock keyrings whenever logged in, on Debian?
On a Debian Buster system I use, the password for connecting to a VPN is stored in the GNOME Keyring. Therefore, whenever I want to connect to the VPN in question, I get prompted to unlock my keyring. This is unproblematic. However, that dialog has a checkbox "Automatically unlock this keyring whe...
(more)
almost 3 years ago