Recent Questions - Unix & Linux Stack Exchange |
- ELF symbol: GLOBAL+HIDDEN
- How to remove a specific color from a whole pdf document?
- One liner to archive, test the archive and stop if error or remove source folder
- How to merge arrays from multiple arrays in two JSON with JQ
- SSH/SCP CLI Connection Works Correctly, but SFTP via GUI Refuses to Connect
- stdin/stderr redirection, piping and color
- ps command: what does "/bin/login -p --" exactly mean? What is its purpose to be shown?
- Debian 10 kernel header package version mismatch
- Finding the right drivers in the linux kernel
- Linux service ExecStop wait for bash script to finish
- Unable to use SCP to do SCP from server to Host
- Unix-domain Socket
- `docker run --rm debian:jessie apt update` does not work on Fedora host
- How can we create a deployment pipeline without triggering the build from Jenkins?
- PPS on focal/20.04 timed out and never recovers
- binaries not executable by user (Permission denied) after cmake install / make install to /usr/local/bin
- How to mount a ZFS volume in FreeBSD for cloning
- Ethernet adapter in "lspci" but not available in "nmtui"
- cron is no longer logging, but it seems to be running
- I need help with KWIN crashing on Linux
- systemd service file closing socket
- Kitty terminal automatically deselects text?
- How to merge arrays from multiple json files with JQ?
- evaluating dual blocking commands in a bash condition statement
- setup wireless router using systemd-networkd *.network files
- Mounting efi disk on external USB
- gpg2 decryption timeout/no secret key
- How to convert a color pdf to black-white?
- How do I remove a directory and all its contents?
Posted: 05 May 2022 12:14 PM PDT Based on eg. this Oracle description:
However, looking at According to the description above this should be both nonsensical and not allowed at all. What are the properties (visibility, interpositioning ability, ...) of this combination? | ||||||||||||||||||||||||||||||
How to remove a specific color from a whole pdf document? Posted: 05 May 2022 11:55 AM PDT Is their a way, with imagemagick, pdftk or other stuff, to remove a specific color from a whole pdf document? I mean, I give an html hex color code to a tool, and it remove all occurences of this color from a pdf file. How to do it? | ||||||||||||||||||||||||||||||
One liner to archive, test the archive and stop if error or remove source folder Posted: 05 May 2022 11:33 AM PDT I've made my small shell function to un-compress the latest archive in a specific folder, then use it (code removed for sake of clarity), and then make an archive, test it and if everything is ok, remove the What should I change to make it work? | ||||||||||||||||||||||||||||||
How to merge arrays from multiple arrays in two JSON with JQ Posted: 05 May 2022 12:25 PM PDT I have two JSON files ( The first file is ( The second file is ( so my expected output will be: Is there a way to modify this function to combine both | ||||||||||||||||||||||||||||||
SSH/SCP CLI Connection Works Correctly, but SFTP via GUI Refuses to Connect Posted: 05 May 2022 10:48 AM PDT I recently configured a new web server (AWS EC2 instance) running Ubuntu 22.04. I am able to connect to the server via SSH/SFTP/SCP through a CLI on both Windows and Mac, but when I attempt an SFTP connection via a GUI (WinSCP on Windows; Commander One on Mac) my authentication is refused. I am using a private-key connection without a password, and the same exact key is being used in the CLI and in the GUI. On the remote Ubuntu Server I am running I have a number of other servers all running different versions of Ubuntu (the problem server is the only one on 22.04), all of them have Maybe something changed in the latest version of OpenSSH and OpenSSL on Ubuntu 22.04? The versions installed on Ubuntu 22.04 are I have also added Lastly, I had UFW running, but have disabled it and that has not changed anything. | ||||||||||||||||||||||||||||||
stdin/stderr redirection, piping and color Posted: 05 May 2022 11:32 AM PDT I've seen a zillion permutations on this question but I think none is an exact duplicate. Can I copy only stderr (or eventually stderr and stdin) to a file, while keeping the colorized output on the screen (if the files are colorized also, that's a bonus) | ||||||||||||||||||||||||||||||
ps command: what does "/bin/login -p --" exactly mean? What is its purpose to be shown? Posted: 05 May 2022 10:36 AM PDT Through Virtual Box for Ubuntu Server, having:
With the And with the For the two outputs shown is clear at in a first glance that the main difference between them is the inclusion of the Question
It specially about the At a first glance it indicates some user is logged - but it seems "redundant" - because for each Extra Questions
In the report about the
Note I read both | ||||||||||||||||||||||||||||||
Debian 10 kernel header package version mismatch Posted: 05 May 2022 10:34 AM PDT I install linux-headers-4.19.0-16-amd64 on Debian 10 running the kernel from package linux-image-4.19.0-16-amd64. I try to build WANPIPE driver from Sangoma and find in /lib/modules/4.19.0-16-amd64/build/Makefile So it makes the Setup script of WANPIPE driver thinks it's a 2.6 kernel. Any hint about why Makefile is so or it's just a bug? Thanks | ||||||||||||||||||||||||||||||
Finding the right drivers in the linux kernel Posted: 05 May 2022 10:31 AM PDT I have an ELAN touch-pad with vendor id 04F3:3128 and I'm trying to find the right Linux kernel drivers to support it. I will start by noting that the touch-pad works with live CDs, like for example Linux Mint. I can, however, not seem to find the right settings in the kernel to get it to work. (On a live CD where the mouse pad works) if I go into How can I find the proper settings (or modules) in the kernel to support my mouse pad? | ||||||||||||||||||||||||||||||
Linux service ExecStop wait for bash script to finish Posted: 05 May 2022 09:30 AM PDT Currently I am trying to run a minecraft server on a linux instance. I am using a linux service in order to start the server when the instance boots up, and shut the server down before stopping the instance. Unfortunately I am having a little bit of trouble getting this to work, since the service does not seem to wait for the bash script triggered by ExecStop to finish before actually shutting down the instance. I tried using I read something about using Could someone help me with implementing a solution that will wait for my game server to stop before shutting down the instance? Side note: the stopserverbash sends a | ||||||||||||||||||||||||||||||
Unable to use SCP to do SCP from server to Host Posted: 05 May 2022 11:07 AM PDT First off, I gotta admit I'm still kind of a major noob with Linux, so that might explain some simple mistakes I might be making. I'm currently trying to extract some files from a Server (Ubuntu 20.04) to a domain computer (Windows 10) via SCP. But I've so far been unable to do it successfully. Basically summing up the situation I'm using Putty to connect via SSH to an Ubuntu Server (connecting via IP and a specific port) and with user and password authentication. I'm running the SCP command like this: But my SCP attempts always end up in a time out. I've tried running the SCP code with the specific port used when connecting to the Server and also the default one (22), and both attempts end up with the same result. Any ideas as to where I might be messing up? Thanks | ||||||||||||||||||||||||||||||
Posted: 05 May 2022 09:40 AM PDT I'm trying to set my server up and came across some troubles related to Unix domain sockets. I don't have so much experience with Unix, despite the stack for web development: Apache, PHP and SQL. I installed Apache and PostgreSQL, but trying to access the
My
The error references the "local" field in the config file. I just opened up some documentation about Unix sockets, it's very interesting, and I will want to know more about but, despite looking like "I'd be to recreating the wheel", I just want to set the environment for development right now. Any help will be welcome. Thanks. | ||||||||||||||||||||||||||||||
`docker run --rm debian:jessie apt update` does not work on Fedora host Posted: 05 May 2022 10:15 AM PDT I'm having trouble debugging a docker issue. On my machine as host, every On other machines with docker, when I run (for example) it takes a few seconds but then the list pops up. On my machine, it just hangs forever (> 30 minutes) and uses a full CPU core. Any ideas on how to debug this problem? I'm on a fedora 35 (x86_64) with recent and decent hardware. I've already
Any ideas on how to go from here? | ||||||||||||||||||||||||||||||
How can we create a deployment pipeline without triggering the build from Jenkins? Posted: 05 May 2022 09:10 AM PDT I have used webhooks which are triggering the jobs finely. But I also need parameters to be fed in the build job and don't want to manually start the build from Jenkins. It should happen once the pull request is merged with the master branch. | ||||||||||||||||||||||||||||||
PPS on focal/20.04 timed out and never recovers Posted: 05 May 2022 09:14 AM PDT we recently have upgraded to a new industry PC from Vecow/Plugin and to Ubuntu 20.04 from 18.04. From the BIOS (build date BIOS ~17.02.2022) and the IO chip according to it is a SuperIO 8786: https://github.com/huchanghui123/ITE-SuperIO/blob/master/IT8786E-I_B_V0.2.pdf We have a PPS device connected to one (but tried all) serial/COM/RS232 port we have available (DCD Pin, we also connected GND). Which we attach to with
Instead of our PPS device we also tried a function generater at 1 Hz (pulse or duty cycle 50%, 1ms, 10ms, 100 and 200 ms). The Voltage level of our device which worked on the previous PC is 0 - ~3.7V. We set the function generator to operate within RS-232 at +/-3.7, 5, 6.6 and 10V (upper limit of our generator). Issue is the same. We are on the HWE generic kernel btw (so 5.13). On the old PC it worked (even live via Ubuntu 20.04). We also tried an Ubuntu 22.04 live image (kernel 5.15) and Fedora 35 but it fails there too. Also on our second identical PC. Anybody experienced something similar or has a clue how to debug it further? Especially to rule out a driver error (or any other HW error). Thanks! | ||||||||||||||||||||||||||||||
Posted: 05 May 2022 10:10 AM PDT After I install any project on my Debian (Buster) machine with This happened with
Now if I run I compared the file permissions of binaries that are perfectly executable without sudo rights inside
What am I doing wrong and why are the binaries inside This is my PATH variable: Additional info: If I run: If I run | ||||||||||||||||||||||||||||||
How to mount a ZFS volume in FreeBSD for cloning Posted: 05 May 2022 09:54 AM PDT I am in the process of trying to clone a FreeBSD installation onto a new hard drive and need to mount it and then find the mount points in order to proceed with the cloning process. The internal drive that I want to clone to currently has a Windows 10 install and a not very optimised FreeBSD install that I want to clone over. I am happy to use the current UFS partition scheme for the FreeBSD. I will boot from a live FreeBSD USB stick in order to run the appropriate commands. The problem that I am having is that the disk I want to clone from is partitioned using ZFS and I can't get my head round how to mount it and then how to find the mount points. The disk is connected to my computer using a USB-SATA adapter. | ||||||||||||||||||||||||||||||
Ethernet adapter in "lspci" but not available in "nmtui" Posted: 05 May 2022 10:21 AM PDT How can I activate an Ethernet adapter which is visible in Messing around, I recently moved an SSD with a Fedora install from one computer to another. Without changing anything, most everything is working quite adequately-- it is great how flexible things were! However, while I can see the network interface hardware on the new computer with The only interfaces I have available are the loopback and a "bridge" interface. The card is not disabled in BIOS and was working to PXE boot previously. I tried manually adding it via ifcfgs generated by Edit: In front of the system again. Strangely, when I boot with a USB NIC attached to get around this issue, it is not enumerated in | ||||||||||||||||||||||||||||||
cron is no longer logging, but it seems to be running Posted: 05 May 2022 10:27 AM PDT I am running Ubuntu 20.04 as a server on a remote machine. I have confirmed that cron is running as a service: And it has jobs to run under which creates correct output: But is not being logged: I have stopped and restarted the service. I have rebooted the server. I changed the group permissions. I tried to change the log directory to I am not sure how to go forward from here. There are lots of people with similar issues, but mostly these seem to be related to misconfigured crontabs. Any help is appreciated. Edit: Adding the journalctl output. Seems to be working there too. | ||||||||||||||||||||||||||||||
I need help with KWIN crashing on Linux Posted: 05 May 2022 09:07 AM PDT I use Nitrux as my Linux distribution, and when I switch apps, sometimes KWIN crashes. I tried to see if my settings were causing a problem, but I couldn't find anything. Please help. | ||||||||||||||||||||||||||||||
systemd service file closing socket Posted: 05 May 2022 09:05 AM PDT I need to run a C++ binary with systemd. When I execute the binary directly or with a
test.sh: But when I execute this script with the following systemd service file: It runs for some time, like 6 to 7 minutes, then it gives errors, and I need to restart the service. The socket connection that this binary is making to other applications fails. It only happens when the binary is executed as a systemd service. | ||||||||||||||||||||||||||||||
Kitty terminal automatically deselects text? Posted: 05 May 2022 09:12 AM PDT Every time I highlight text to copy from the Kitty terminal, it automatically deselects it. This is creating a situation where I cannot copy from the terminal. What might be causing this behaviour? | ||||||||||||||||||||||||||||||
How to merge arrays from multiple json files with JQ? Posted: 05 May 2022 11:10 AM PDT I have multiple JSON Files with the same structure , the list is the array. the list field looks like this file1.json fileX.json trying to generate an output as follows (Only List and Ignoring other fields which are itemsPerPage/links/startIndex) what's the best way to read all those files in with jq and generate a single file with one list array that has all the objects from all the JSON files ? | ||||||||||||||||||||||||||||||
evaluating dual blocking commands in a bash condition statement Posted: 05 May 2022 10:00 AM PDT I am attempting to write a loop that refreshes a terminal either
I know how to do one at a time, like so: ... and I can easily do But how would I do them congruently? as in, refresh when either read returns true and/or when | ||||||||||||||||||||||||||||||
setup wireless router using systemd-networkd *.network files Posted: 05 May 2022 10:06 AM PDT I would like to configure an embedded device to behave as a wireless router, and I would like to achieve it preferably using networkd configuration files. I have two *.network files, a wired WAN interface and a wireless LAN interface, and I would like LAN traffic to be able to access WAN. As is common for wireless routers, the wireless LAN network anso provides DHCP. I used the systemd integrated DHCP server. I assume there should be a NAT between the two networks, as is common for wireless routers, but it is not an explicit requirement. This is as far as I got with my current knowledge, the wired interface connects to WAN properly, and the wireless access point also provides DHCP addresses. But I am unable to access WAN (internet) if I connect to the WiFi AP. Here is some network interface status: And route status: I was not able to find many examples for the [Route] section, and I only have the basic understanding of routing. Regards, Iztok Jeras | ||||||||||||||||||||||||||||||
Mounting efi disk on external USB Posted: 05 May 2022 11:05 AM PDT Recently I bought new sshd to replace my old one on my notebook, but I have problem. I installed Ubuntu 15.10 on new one and put the old on usb case I have, but the disk on USB doesnt have partition (I screamed for 5 minutes because I can't lose data). So I moved back my old disk inside the disk bay and put the new on usb case, and all my data was here intact but the disk on usb shows no partition. Both of disks when in usb case show the model and factory correctly but not the partitions. The case is OK, tested with old HDD that doesn't have GPT/EFI partition. How can I mount the external disk so I can transfer my files? Ouput of commands: | ||||||||||||||||||||||||||||||
gpg2 decryption timeout/no secret key Posted: 05 May 2022 12:08 PM PDT I'm having an issue decrypting files with gpg2. I originally encrypted the files with gpg version 1.4. The machine I'm on now has both gpg (1.4) and gpg2. Decryption with gpg works just fine, but when I execute the same command with gpg2, it times out: What's going on? It says "No secret key", but running gpg2 --list-secret-keys shows this: Update 1: Looks like the problem isn't with gpg2 itself, but rather with my Gnome keyring or something. Previously, when I tried to decrypt files with gpg2, it would simply hang, then time out. However, once I encrypted a test file with my own key, then decrypted that file, it prompted me for my passphrase. Now that my passphrase is in my keyring, everything's working. Might have just been a temporary thing (I logged out and back in between then and now). If anyone has more info on issues like this, I'd love to know. I'll give it another day or two, then close the question if it doesn't happen again. | ||||||||||||||||||||||||||||||
How to convert a color pdf to black-white? Posted: 05 May 2022 10:42 AM PDT I'd like to transform a pdf with some coloured text and images in another pdf with only black&white, in order to reduce its dimensions. Moreover, I would like to keep the text as text, without transforming the pages elements in pictures. I tried the following command: found in another question, a link, but it does what I don't want: the text in the output is transformed in a poor image and is no longer selectable. I tried with Ghostscript: but it gives me the following error message: Is there any other way to create the file? | ||||||||||||||||||||||||||||||
How do I remove a directory and all its contents? Posted: 05 May 2022 09:19 AM PDT In bash all I know is that will remove the directory but only if it's empty. Is there a way to force remove subdirectories? |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment