Recent Questions - Unix & Linux Stack Exchange |
- Boot into backup without GRUB
- make socat constantly listen for the magic packet
- Alpine Linux From Scratch - Initial Setup
- How to fix kali linux resolution problem?
- How can I revert to secure repository sources (without display access) for Linux Mint 19.1?
- How to save file permission in logrotate process
- how to implement or improve a "killfile" for stack exchange?
- Kernel 5.11 probably doesn't like my TPM settings (Asus X541UAK)
- I can't bind keys in ZSH / Where can I get escape sequence for the key in SHELL?
- Trying to record from a USB sound card
- How to add a custom source to apt repositories?
- how to print file name and total number of fasta sequences?
- Is there any linux alternative of macOS application firewall?
- Pulseaudio not working with MPD
- Regular expressions and wildcards in `if` statements
- Unable to locate an executable at "/Library/Java/JavaVirtualMachines
- Group files and directories based on first letter of their name and move them to directories of that letter
- Microphone issues on debian 10
- Check the disk space in Ubuntu (with ls)
- What does % symbol in Makefile mean
- Need to find latest file in multiple folders with a pattern and move to another server
- collect and print multiple pages to single pdf file in linux
- wildcard usage for a directory displaying filenames in linux?
- UDP Port Fowarding: channel 2: open failed: connect failed: Connection refused
- Issue with Hugepage reservation in linux
- How do you move all files (including hidden) from one directory to another?
Posted: 05 Sep 2021 10:32 AM PDT I want to boot into a Timeshift backup (btrfs) without the GRUB menu, as it isn't showing there. Is there a way to do this? |
make socat constantly listen for the magic packet Posted: 05 Sep 2021 09:53 AM PDT I have a RPi 1b+ v1.2 with Raspbery Pi OS June 2021. I'm using socat to trigger a bash script that wakes another pc in the network up. I use this command:
It works fine without |
Alpine Linux From Scratch - Initial Setup Posted: 05 Sep 2021 09:51 AM PDT I installed Alpine Linux with minimal packages. Now I have two problems that I want to solve. How do I enable syntax highlighting in nano? And the |
How to fix kali linux resolution problem? Posted: 05 Sep 2021 09:46 AM PDT I installed kali linux yesterday and as soon as I entered I saw my screen was in 3840 x 2160. It was so big and I decided to change it to 1920x1080. When I changed it using display options it kept reverting back. So I used terminal and ran the command below, As soon as I ran the command, my screen was blank and that's it! black screen of death! So I decided to use command mode using ctrl+alt+f1. And I ran the xrandr to list the resolution available, it shows "can't open display". What should I do to make everything normal? Help me solve,
|
How can I revert to secure repository sources (without display access) for Linux Mint 19.1? Posted: 05 Sep 2021 09:36 AM PDT I'm using Linux Mint Cinnamon 19.1 Tessa. Recent unstable internet problems led me to install wcid and uninstall network manager(s). After reboot "unable to launch "cinnamon-session-cinnamon" X session ---- "...." not found. Tried Lord Boltar's solution (sudo apt-get update, sudo apt-get, install nemo, install cinnamon, reboot) but the mirror repository "evowise" is no longer signed and will not fetch the files I need. When I try to change repositories I can only open a display using nano /etc/apt/sources.list but the field is empty and I don't know how to add a new secure repository directly. I've been at this all day and I haven't been able to find any answers to this combination of problems. Please help! I work online these days. |
How to save file permission in logrotate process Posted: 05 Sep 2021 09:24 AM PDT I want to rotate some log files but I don't want to create a new file . I want my original log file remain exactly as same as before . my conf_file is like this : /path to log file/{ } it's working . because log file inod_number doesn't change after rotation . but file permission is changed. How can I save original log file permission without using directives like create or copytruncate ? |
how to implement or improve a "killfile" for stack exchange? Posted: 05 Sep 2021 09:19 AM PDT SE doesn't have any killfile capability to hide posts by trolls and other abusive people. And, unfortunately, blocking such trolls can't be done with CSS hacks alone (because there's nothing in the CSS which distinguishes a troll from a normal person). Blocking trolls need to be done by matching their usernames in the actual text of the post or comment, so it requires javascript and a userscript manager like grease/tamper/violent-monkey. I've come up with the following (based on the same code I've used for other sites to hide advertorial garbage hiding amongst actual articles - no obvious CSS differences, but with identifiable author By-Lines), which mostly works but it doesn't interact perfectly with posts that have lots of comments - it breaks the "Show more comments" link. Not a huge problem, but I'd rather it didn't do that. Does anyone have any idea what's causing it to do that, or how to fix it? Is it the div class for comments |
Kernel 5.11 probably doesn't like my TPM settings (Asus X541UAK) Posted: 05 Sep 2021 09:03 AM PDT This week I've tried several different Live USB Linux distros on my Asus X541UAK (4 GB RAM, 500 GB HDD, Inter Core i3-7100, Windows 10 Pro 19043 [latest], BIOS v311 [latest]):
twice (two identical rows) before the respective logo appeared and the system checked all the files in itself, but after that it also ran flawlessly.
*I didn't wait for more than 5 minutes and turned off the laptop manually None of the images is corrupt, nor the USB sticks. The way of making em bootable (burning with Etcher, Rufus, creating a Ventoy partition) doesn't change anything. The firmware bugs clearly show that there's something with my TPM, but my BIOS (even on latest version) doesn't have TPM even mentioned (although Windows shows that i have TPM 2.0 enabled). Questions:
|
I can't bind keys in ZSH / Where can I get escape sequence for the key in SHELL? Posted: 05 Sep 2021 08:21 AM PDT I try to bind 'left|right' keys in ZSH, but it seems a) the escape sequences are wrong or b) terminal (but all of them?? mate xterm, st?) is blocking these '\E' sequences. I can bind for example Ctrl+Left, Shift+Left, Home, End, but I don't know how to bind Shift+Home|End and Left|Right. I've tested following escape sequences: "left" "\eOD" "right" "\eOC" Is there any command "write '\e' sequence for the key $key"?? Thanks. |
Trying to record from a USB sound card Posted: 05 Sep 2021 09:46 AM PDT I'm using a UGreen USB External Stereo Sound Card and would like to record the music from some old tapes. I am not able to manage any kind of recording with it. My Fedora recognizes it immediately as a USB Advanced Audio Device and gives me the following Profiles:
It can be found: Also apparently audacity is able to find it: I have tried to do a short recording using hw2: (Both times the error is: Error during opening of the device: File or directory not found) Inside audacity I don't have many choices. ALSA for the device; pulse/default for the input and that's it (except for the channels). I assume it takes the selection from the OS as I can get a pulse in audacity the moment I select a different profile from the Audio-Options. Everything else is essentially a line. I have tried to stream it via VLC where my options are hw1,0 and hw2,0. I selected hw2,0 and get an error: The device or the resource is busy There had often been the recommendation for the beta-version of audio-recorder. But this doesn't give any information and it seems it's not even properly working (notice the two non-functional buttons): I have tried to output from the old tape system's RCA connector to the headphones to see if the output is still working. The volume is weirdly low, but it works. What could be the problem and how to solve it? |
How to add a custom source to apt repositories? Posted: 05 Sep 2021 08:14 AM PDT I'm trying to add kata-containers repository to my apt sources (fresh debian install) but i keep getting an "unable to locate package x" despite adding the source, key and updating the package manager : Source : https://github.com/kata-containers/documentation/blob/master/install/ubuntu-installation-guide.md Inside sources.list.d/kata-containers.list : What did i miss ? |
how to print file name and total number of fasta sequences? Posted: 05 Sep 2021 08:23 AM PDT I have a fasta file namely test.fasta, pas.fasta, cel.fasta as shown below I need to print the file name and the total number of fasta sequences as shown below, I have used the following commands but failed to serve my purpose Please help me to do the same. Thanks in advance. |
Is there any linux alternative of macOS application firewall? Posted: 05 Sep 2021 09:17 AM PDT By alternative it's not meant the program needs to be gui. Any method that allows a program to logs when something calls If such program doesn't exist can anyone point to how to create? Like using nftable rules. What I'm not looking for is to run a program in separate net namespace etc. The solution should work for all userland programs in general. |
Pulseaudio not working with MPD Posted: 05 Sep 2021 10:25 AM PDT I have system-wide configuration for MPD, that runs in a remote server. I have in /etc/mpd.conf, and in /etc/pulse/default.pa of the remote server. (the IP is the one of jarnos-OptiPlex-9010.local.) Should I have Still, I don't hear audio from the MPD server in jarnos-OptiPlex-9010.local. Pulseaudio is not even running in the machine where the MPD server is running. I had this working before, but can't see what has changed. Should you run Pulseaudio as system-wide daemon, if you run MPD with system-wide configuration? The MPD machine is running Ubuntu 18.04 and the other one is running Ubuntu 20.04. |
Regular expressions and wildcards in `if` statements Posted: 05 Sep 2021 09:16 AM PDT I am using regular expressions and wildcards in Examples: But really wonder about any difficulties introduced if I quote Also wondering about using |
Unable to locate an executable at "/Library/Java/JavaVirtualMachines Posted: 05 Sep 2021 08:20 AM PDT Whenever I try to run any error. My |
Posted: 05 Sep 2021 09:35 AM PDT I have a directory with the following content: Now I want to group all these files and directories based on their first letter and move them to directories of the same letter. So the output would be: And using exa, the tree would look something like this: I know I can move using wildcards: Which throws an error: But it gets the job done. And I can do something like this to avoid the error: And then I could use that in a for loop for every letter that I know. But the problem is that I don't know what those first letters could possibly be, we have quite a lot of letters. Is there a way I can achieve this without the need to know those letters? |
Microphone issues on debian 10 Posted: 05 Sep 2021 09:05 AM PDT I'm trying to set up discord chat with debian 10 installed on macbook pro. there are two input devices listed in discord. Default, and Built-in Audio Analog Stereo. I was using Default, and it worked fine. When I shut the computer down and started it back up the next day, discord says that it can't detect any input from my mic. I just want to use my built-in laptop mic.
EDIT: Also: why is the "Mic" level empty? |
Check the disk space in Ubuntu (with ls) Posted: 05 Sep 2021 09:04 AM PDT I am using AWS Free tier Ubuntu. It is saying that disk space full in I went to the directory I have attached the screenshot, please check it. You can see none of them is taking |
What does % symbol in Makefile mean Posted: 05 Sep 2021 09:33 AM PDT I am playing around with makefiles and I came across %.o or %.c. From what I understood, it specify all c or o files. But why this work: and this doesn't work Both expression specify all the files. so what %.o: symbol in make file does ? |
Need to find latest file in multiple folders with a pattern and move to another server Posted: 05 Sep 2021 09:07 AM PDT I have several folders on one server numbered 1-10. Each folder has multiple files. I need to find the latest file with a pattern name for example :
I need to select 'file 2' and copy it to another server having multiple corresponding folders numbered 1-10. So i need to copy latest file ( |
collect and print multiple pages to single pdf file in linux Posted: 05 Sep 2021 09:37 AM PDT I have to print multiple documents from different applications (browsers, pdf readers etc) and print to a pdf file. What I want to do is collect the documents when i 'print' from these applications and be able to print those collected documents into a single PDF file. It would be even better if it allows some sort of editing or sorting of pages before i print to the PDF. Currently, I can print single files to pdfs using cups-pdf which shows up as a virtual pdf printer and then combine into one pdf file manually. It gets the job done but was wondering if there is an easy single step way. |
wildcard usage for a directory displaying filenames in linux? Posted: 05 Sep 2021 09:12 AM PDT so one of the questions i have been working on is to display the contents of a directory any hints, ill keep looking and post and answer if i find anything, and any help with usage of wildcards would be great. Thanks |
UDP Port Fowarding: channel 2: open failed: connect failed: Connection refused Posted: 05 Sep 2021 10:05 AM PDT My situation is as follows: I have currently trying to have a program between two Hosts send UDP packets over a SSH Tunnel. There is also a host intermediate between the two hosts. Note Server01 separates two subnets Subnet: //// 10.11.X.X ///////// 192.168.X.X I have successfully established a SSH connection and have used RSA key's so passwords are not needed. I than followed this tutorial: In summary it tells me to use socat to configure a TCP-UDP relay on server01 by typing in: and a UDP-TCP relay on the client using socat also: Now comes the problem. When I attempt to have my program create a socket on the localhost UDP Port 53000 and send data, I believe my program is fine because when I put server02 on the same subnet as client my programs will exchange UDP packets perfectly. Is there a setting I need to enable for my program to access the UDP port 53000 Socket? Or is it just impossible to create a socket on the UDP port because socat using it? I've been stuck on this for a while... Any help would be great. Thanks in advance. |
Issue with Hugepage reservation in linux Posted: 05 Sep 2021 09:05 AM PDT I have reserved hugepages for my process using below commands: And I have placed it in After machine reboot, huge pages reserved successfully and But before my process startups, I could see 21 hugepages are not available for reservation. Below command output: And no results for the below commands: Then I tried to free hugepages ... No error message displayed. But below command output tells no change .. But I could see if we I am looking for below clarification in this site:
Linux Kernel |
How do you move all files (including hidden) from one directory to another? Posted: 05 Sep 2021 09:01 AM PDT How do I move all files in a directory (including the hidden ones) to another directory? For example, if I have a folder "Foo" with the files ".hidden" and "notHidden" inside, how do I move both files to a directory named "Bar"? The following does not work, as the ".hidden" file stays in "Foo". Try it yourself. |
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