Recent Questions - Unix & Linux Stack Exchange |
- How to monitor a quietly dying Java server app?
- Grammar highlight using VIM is unreadable
- Install .tar.bz2 program on Debian
- how do i check if my linux is deb or rpm
- How can I add the marked track to a playlist in cmus?
- Can't download torrents from CLI but can from desktop environment
- problem installing mathpix snip
- Restrict access to a directory to just one process and its children
- Sudo echo path does not show the path that is used to execute as sudo
- remove rest of line after n characters for specific line [duplicate]
- Wine gives error: "Failed to import system certs into registry, 00000057"
- Chrome Kiosk sometimes not Starting - Making Chrome Kiosk more reliable and Stable
- how can i stop a while loop background process without using kill?
- Create an array of all possible combinations among N arrays
- How to expeand zsh compctl completions with same prefix (from z script)?
- What is HIT Archive Data?
- How to sort the results of `find` alphabetically and topologically?
- Removing the first 4 symbols of a file name
- Microphone doesn't work in Arch
- One-liner to run commands from a file in parallel using xargs
- copy ssd to hdd using dd, hdd won't boot
- Playing, recording, and streaming sound with cat and /dev/dsp
- ffmpeg across .avi files in subdirectories
- Screen active but no sockets in /var/run/screen
- Using xfreerdp to connect to Remote Desktop Gateway Server
- systemd: autofs containing autofs does not unmount
- How can I fix my Debian's /etc/network/interfaces?
- Need to delete mails for a range of dates in Linux
- phpmyadmin doesn't work after installing php5-mysqlnd
- USB SD card reader recognized with lsusb but no storage device shown with lsblk
How to monitor a quietly dying Java server app? Posted: 23 Aug 2021 11:21 AM PDT We run a cluster of Java Spring server apps on AWS EC2 instances running Centos 7. We have health monitors on them, and occasionally an alarm will go off and we'll find that the Java process has quietly just disappeared. We can find nothing in any of the logs...either our own, or system logs. We have an outer "catch Throwable" around our own code that logs what it catches, but we run Tomcat, which has may of its own threads. We've added extra logging to try to capture the moment when it disappears, but so far, that has yielded no information. I've looked over this question: How to find out why a Java process died without a trace in Linux. I see nothing helpful there. We currently can't involve the launcher of these processes in a solution. It's a long story. Trust me that we've tried to go down that road. Any suggestions? I'm wondering if maybe I should wrap the Java process in an outer parent process that carefully monitors and logs all signals from the Java child process. I'm wondering if there's such an off-the-shelf solution that I haven't found yet. Any ideas would be greatly appreciated. |
Grammar highlight using VIM is unreadable Posted: 23 Aug 2021 11:16 AM PDT |
Install .tar.bz2 program on Debian Posted: 23 Aug 2021 11:15 AM PDT All the guides/StackExchange posts say use the 'make' command, or ./configure, or autogen.sh, after extracting the tar.bz2 with the help of However, this package (Sublime Text 32 bit linux) has none of those in the directory, only a pre-compiled program, which works, but is not visible to the system. How can I add this program to the Debian Linux directory so that it is registered as an application? Ex. If I open a file, and click on 'Open With', Sublime Text should show up among all the other applications. |
how do i check if my linux is deb or rpm Posted: 23 Aug 2021 10:58 AM PDT The skype website offers downloads for linux in 2 versions DEB and RPM. I don't know which one is right for my computer. |
How can I add the marked track to a playlist in cmus? Posted: 23 Aug 2021 10:49 AM PDT Title is the question. I'd like to quickly add the currently marked track (in view 1, 2 or 4) to my playlist of favorites with a key-bindable command. cmus' man page doesn't reveal a winning strategy. How to do it?
|
Can't download torrents from CLI but can from desktop environment Posted: 23 Aug 2021 11:28 AM PDT I've an Headless Raspberry Pi 4B+ (4GB RAM) with Raspbian 10 buster on (uname result:
I also made sure that I could actually download things by trying a wget with some random files, it worked... At this time I gave up and decided to try with qBittorent on Desktop Environment through an RDP server. Everything worked FINE. Anybody know what the issue could be and how to fix it? |
problem installing mathpix snip Posted: 23 Aug 2021 10:36 AM PDT I'm trying to install mathpix snip to convert an equation from a pdf to LaTeX code following the instructions on the website https://mathpix.com/docs/snip/linux-overview and when i try to run the command: sudo snap install mathpix-snipping-tool I get the following error: snap "mathpix-snipping-tool" not found. I don't know what can I do to install it correctly. I'm using ubuntu 20.04 LTS Thanks! |
Restrict access to a directory to just one process and its children Posted: 23 Aug 2021 10:33 AM PDT I want to mount a remote directory via Is there a way to limit access to that local mount to just the code editor? I don't want any other process to be able to access it as a safety measure, since those mounts will be up for hours, while the editor will likely be not. I'd start the editor and execute a command which fetches the process id of the editor and somehow magically applies the access restriction to the directory. This is wishful thinking, but what are my options? I'd consider using chroot (which I don't know if it could be the solution) as a last resort because I have no idea how to use it. |
Sudo echo path does not show the path that is used to execute as sudo Posted: 23 Aug 2021 10:39 AM PDT I'm confused by the following:
What gives? Is $PATH being preserved? Is |
remove rest of line after n characters for specific line [duplicate] Posted: 23 Aug 2021 10:40 AM PDT I have multiple files which have too many characters in the first line. I would line to trim the first line only after n characters. the characters to remove after different in every file and the characters before those to be removed. The rest of the lines of the file I need to remain unchanged. For example will become I have got this so far: but this trims all the lines, I only want to trim the first line and I cant figure out how to make it only apply to line 1. |
Wine gives error: "Failed to import system certs into registry, 00000057" Posted: 23 Aug 2021 09:15 AM PDT I have been trying to use WINE to run a Windows driver for a digital audio interface in Linux. However, running: yields this result: It also presents a WINE dialog with this warning: Any suggestions as to what I might try? (Note: My OS is MX Linux 19.4 Patito Feo 64-bit.) |
Chrome Kiosk sometimes not Starting - Making Chrome Kiosk more reliable and Stable Posted: 23 Aug 2021 09:22 AM PDT Our company provides customers with a kiosk machine that is running customized Ubuntu 20.04 and acts as a digital signage kiosk machine and is using a shell script to automatically start Chromium in a kiosk mode which leads them to our web application. This works well most of the time, however there are cases where Chromium does not start after a reboot and we are unsure why this happens. Right now, the way we put it into the auto start is the default gnome startup applications manager. We were thinking about using a systemd service file for it, but about that we are also unsure if it fixes this problem. Any advice about making a good and reliable Linux kiosk system? We are also searching for some advice on how to make kiosk machine that runs 24/7 more stable. Is it even good to have a kiosk machine running 24/7 or is it recommended to restart the kiosk machine at least once a week or so? What are the needs for a reliable kiosk web system? |
how can i stop a while loop background process without using kill? Posted: 23 Aug 2021 09:30 AM PDT i have a bash script with a while loop background processes how can i stop the while loop without kill the process so by set a STOP flag Note: my script is works if i use kill but with stop flag didn't work this is a demo of my script(using Kill): This one works fine but the other method not work ! This is my same demo but with stop flag(not work!) Can anyone tell me why this not works please ? P.S: i am arabian btw so sorry if my English grammar is not good |
Create an array of all possible combinations among N arrays Posted: 23 Aug 2021 08:41 AM PDT I have a script that runs another bash script with N optional parameters, such as: In my main script, i would like to have N arrays with possible values for each of the N parameters, such as: I'd like to know if there is any function that, given an array of N arrays, returns all the possible combinations among those arrays (ex: (1 50 "a"), (1 50 "b"), ..., (50 20 "c")) The desired script would be: My current solution is performing badly since i'm just iterating through all arrays in nested loops to get all values. I would like to remove the nested loops and look for a better approach. ps: what i'm looking is very similar to python's Thanks |
How to expeand zsh compctl completions with same prefix (from z script)? Posted: 23 Aug 2021 10:46 AM PDT I have as zsh setup via .oh-my-zsh. The z plugin allows to jump to last recently used directories. When you press https://github.com/ohmyzsh/ohmyzsh/blob/6d5b8484ce7198161d5f617c3db9fd7d3833d48c/plugins/z/z.sh#L250 Sometimes the result contain only a single entry, when i know there should be multiple. I have debugged the When i press <Shift+Tab> which is bound to Is there supposed to be a further keybinding to expand the common prefix for |
Posted: 23 Aug 2021 09:04 AM PDT When I run I'm not sure exactly what this file/archive type is and Google isn't giving me a solid answer |
How to sort the results of `find` alphabetically and topologically? Posted: 23 Aug 2021 08:59 AM PDT Let's say I have the following files laid out like this: I would like I would like the output to look like: I don't want to pipe to |
Removing the first 4 symbols of a file name Posted: 23 Aug 2021 11:20 AM PDT I got the following problem: I want to rename files in the format of "12xy[..].log" to "[...].log". My problem is, that some of them have an "a" following the first time and some of them got a "v" - so I cannot use commands, that follow the logic of replacing part of the name up to a certain character. (Like an underscore etc.) Is there anyway to rename them quickly? Edit: There is always the same prefix of "MD18". So for example there are some files named "MD18v230_SHAPE.log" or another one named "MD18a004_FACES.log" and so forth. I would like to have them named "v230_SHAPE.log" and "a004_FACES.log" Thank you in advance! |
Microphone doesn't work in Arch Posted: 23 Aug 2021 10:40 AM PDT I'm using Alsa. However, when I try to record When I try out an online microphone test, all that is played back is a beep, indicating that my microphone isn't even recognized. |
One-liner to run commands from a file in parallel using xargs Posted: 23 Aug 2021 09:53 AM PDT I have a script like this: so any idea for an one-liner with xargs to run these commands in parallel. I tried various variants but all failed. I do not really want to write a script, I think that should have been possible with -d switch and -c, not sure though. To simplify and extend the problem further, what I have is Thanks in advance |
copy ssd to hdd using dd, hdd won't boot Posted: 23 Aug 2021 09:11 AM PDT I am trying to copy a ubuntu 20.04 on 64G SSD to a 160G HDD between two computers. I have created the SSD disk image using dd and restored the image to the HDD. However, the new system with HDD stuck on the boot screen(PCI devices listing) before the linux bootloader. here is the disk image info. here is the SSD info. UPDATE I have also run the following commands on the source machine: the target machine has the same /boot/efi/EFI/ content as the source machine. I am not really versed in this area so detail instructions are much appreciated. thanks! |
Playing, recording, and streaming sound with cat and /dev/dsp Posted: 23 Aug 2021 08:55 AM PDT A couple of comments on Hacker News suggest that, on FreeBSD, you can:
I can nearly do the first one. I do |
ffmpeg across .avi files in subdirectories Posted: 23 Aug 2021 09:08 AM PDT Situation:
Example file structure: In this case I would like to filter out the files The desired remuxed How can I:
|
Screen active but no sockets in /var/run/screen Posted: 23 Aug 2021 10:59 AM PDT I have a game server running on Centos 7 via I can confirm that the game server is running, I can connect to it with the client, and However, I can't reattach to that screen session (it was started by the "steam" user): And trying to get the list of screens yields "no sockets found" The same happens with the root user, and a Any ideas on how to reattach to that screen? |
Using xfreerdp to connect to Remote Desktop Gateway Server Posted: 23 Aug 2021 10:03 AM PDT I am trying to use Remote Desktop connection on Linux. After some research, it seems that Some comments:
I also need to enter a I am ok with using another tool other than |
systemd: autofs containing autofs does not unmount Posted: 23 Aug 2021 11:08 AM PDT I'm trying to set up two directories, each automounted:
In my case, these are:
My I do: Strangely, If I unmount Now if I ping the subdirectory, it automounts: Note that the A few seconds later (I have The subdirectory is unmounted, and the How do I get it to automatically unmount? Possibly useful information:
Checking that nothing has the directory open: I've never seen |
How can I fix my Debian's /etc/network/interfaces? Posted: 23 Aug 2021 09:17 AM PDT I just need to edit the I'm using the |
Need to delete mails for a range of dates in Linux Posted: 23 Aug 2021 10:31 AM PDT I have 1 million mails generated in a Linux sever due to a cron job. I want to delete the mails, but not all as this cron mails useful to troubleshoot and find out the issue with cron job's execution. So I need to keep 1 month's mail and remove the remaining. |
phpmyadmin doesn't work after installing php5-mysqlnd Posted: 23 Aug 2021 09:01 AM PDT I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute So I did my research and found out I only had to install the package However, phpmyadmin doesn't work anymore. It simply can't connect to the MySQL server anymore (all logins fail). NOTE: every other script still has no problem connecting and logging in into the MySQL server. I also did not change any passwords. Login over the console is also possible. I couldn't get it to work with the package installed. Then I reinstalled Not having the I am running a Nginx server and Debian 7.5 3.10.23 system. |
USB SD card reader recognized with lsusb but no storage device shown with lsblk Posted: 23 Aug 2021 10:54 AM PDT I have a 2GB Micro SD card and a USB card reader. When I run Not sure what the problem might be I've never run into anything like this before. EDIT: Forgot to mention that I did have the SD card in the reader before I plugged it into the USB port. |
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