Recent Questions - Unix & Linux Stack Exchange |
- How to visualize EOF in bash
- does pthread_setschedparam can change the priority on the fly once the thread is running? if no, then how I can change the thread priority on the fly
- 'printk messages dropped' USB error & infinite loop on multiuser target startup, sleep, etc (Debian)
- ERROR: Kernel configuration is invalid?
- Bash Scripting Output
- Some questions about how IPTABLES works
- How to set font sizes in minimal X Window setup
- Linux routing does not use specific route
- How to remove lines that have same id string
- Streaming Microphone over Wifi HTTP
- Please what does "dd if=/dev/zero of=/dev/null &" do?
- What are possible causes to the command not found errror, other than the PATH variable?
- NetworkManager does not start "secondaries" after a reboot
- No temperature reading on Ryzen 5700G?
- exec command not found error in Linux
- Huge delay in ps output from systemd
- Raspberry Pi: External HDD "wrong fs type, bad option"
- use zip command in linux bash
- Filename modification
- Linux source path issue with nvidia graphic driver installation
- how to display current X-Y position of window in gnome-terminal
- Reset memory.oom_kill
- Downgrade cinnamon version
- Is there any package manager for BLFS?
- Mounting squashfs with correct permissions
- pulseaudio-equalizer doesn't work on Debian 9
- Create own dead_key
- How do I append/prepend a timestamp to grep output?
Posted: 21 Sep 2021 10:36 AM PDT
I would like to read it doesn't work. The prompt returns with no output.
Something like: I'm using |
Posted: 21 Sep 2021 10:34 AM PDT I want to change a thread priority and I have found many examples using pthread_setschedparam, but I need to confirm if the priority can be changed on the fly if the thread is already running. In the manual mention the following: In order for the parameter setting made by pthread_attr_setschedparam() to have effect when calling pthread_create(3), the caller must use pthread_attr_setinheritsched(3) to set the inherit-scheduler attribute of the attributes object attr to PTHREAD_EXPLICIT_SCHED. |
'printk messages dropped' USB error & infinite loop on multiuser target startup, sleep, etc (Debian) Posted: 21 Sep 2021 09:52 AM PDT After a If I were to unplug the usb hub (1-1.2.**) the loop stops. A similar error occurs on system sleep - upon pressing the power button, commands in /lib/systemd/system-sleep will start executing, but the system will ultimately fail to sleep due to the urb status -32 infinite error. What is going on here? How can I remove the error? System is Debian 8 (jessie). |
ERROR: Kernel configuration is invalid? Posted: 21 Sep 2021 09:35 AM PDT I'm trying to build and compile some package with bitbake for Dreambox image. With ubuntu 20.04 no problem. But after upgrade to 21.04 I have got this error with compile. I have tried some solutions but without luck to solve it !!! current kernel is (5.11.0-34-generic) |
Posted: 21 Sep 2021 09:38 AM PDT So my bash scripting is not the best, but the following script takes IP addresses from a text file and feeds the output to a shell and shows only the dns host names that resolve. and the output would look like: How can I also print the ip address for the address that resolve to a dns name on the same line so it would appear like: Thanks |
Some questions about how IPTABLES works Posted: 21 Sep 2021 08:58 AM PDT I am building a 4G proxy server from this tutorial: https://learnproxy.altervista.org/create-your-own-mobile-4g-proxies-for-instagram-tutorial-2020/ In an excerpt of the tutorial, it is advised to create a script to make some routes in the ip tables of linux, but I am relatively new in the matter of networks and I am trying to better understand how it all works. If anyone can help me, guiding me better how these command lines work, I will be very grateful, the script in question is as follows: Remembering that previously a line containing 1 gw1 was added in the /etc/iproute2/rt_tables file And my question is: what do these command lines do exactly? I have a ZTE MF823 and it can only be recognized and used by the squid (Proxy Server) if this routing is done through iptables, if I direct the ip of the modem right after it is plugged in, the squid gives a 503 error (example below) . I also tried to add, for example, a share via cellphone usb that follows the same structure as the modem, I made the identical configuration and it does not recognize the cell phone's internet, I tried using the same ip range 192.168.0.X and I also tried in the same way which is originally attributed when I plug the cell phone 192.168.42.X and both got the same error message, even following the script above. SQUID configuration excerpt: Squid Error Example
|
How to set font sizes in minimal X Window setup Posted: 21 Sep 2021 08:53 AM PDT I installed openSUSE with generic/minimal desktop environment. It means there is no fancy KDE/Gnome settings program for setting the font sizes by default. On the other system I did the same, but installed additionally KDE3 (not a typo, 3). In both system I have the same visual effect -- for applications like LibreOffice, VLC, Firefox the font used by the program in menus and dialogs is tiny. So how can I set the font size for such apps? |
Linux routing does not use specific route Posted: 21 Sep 2021 08:48 AM PDT On openSUSE (Leap 15.3) i have the routing table: AAA.BBB.145.1 is the default Gateway (outside) 192.168.178.0 ist the internal network via eth1 I can access the outer network through default gateway. I can directly access the second (internal) network, eg 192.168.178.11 But i can´t access it with service, for example with firefox or wget because then the system is trying to get to the host 192.168.178.11 via the external Gateway AAA.BBB.145.1 which of course doesnt know anything about my internal network. I though i could advise Linux to route all traffic to internal network 192.168.178.0 via 192.168.178.1 but Linux seems not to recognize my wish so i suppose that i have configured the dedicated route over eth1 wrong? |
How to remove lines that have same id string Posted: 21 Sep 2021 10:14 AM PDT I have the following file: I want to remove lines that have the same id and they have respectively Based on the above example, the output will be: How to do this with bash, awk, sed ... ? |
Streaming Microphone over Wifi HTTP Posted: 21 Sep 2021 08:14 AM PDT I have a Raspberry Pi Zero. I have a USB MIC attached to it. I want to live stream the mic input over wifi http so I can play the audio from somewhere else(with same wifi connection) I have searched Google a lot, got only a few such solutions which used CVLC but it is not working anyway on my raspi. (Buffer encoder error, got no solution) What else can be used to do this? |
Please what does "dd if=/dev/zero of=/dev/null &" do? Posted: 21 Sep 2021 08:17 AM PDT What does this command do? I really don't understand what that command counts, because when I run it, it returns 4 figured numbers e.g 6204. |
What are possible causes to the command not found errror, other than the PATH variable? Posted: 21 Sep 2021 10:23 AM PDT What are some possible causes, that a command could not be found in Linux. Other than it is not in the PATH? Some background infos: When trying to execute pdflatex from vscode, I got some troubles, that vscode was not able to find pdflatex. Probably because the PATH is not set correctly. Since I was not able to fix the problem right away, I tried to work around this problem by executing a shell script, which then calls pdflatex: or In both cases the script works as expected, when executed over the normal terminal. But when executed in the vscode intern terminal it says As far as I know the only way that a command can not be found, is if it is not in a directory included by the PATH. Or when the absolute path is wrong. But this seems not be the case here. So what other factors are used to determinate, how a command is searched for? Additional Infos (as requestet)
To test the other scripts, I changed the comments and deleted the irrelevant lines in the post here.
|
NetworkManager does not start "secondaries" after a reboot Posted: 21 Sep 2021 08:15 AM PDT I have set a VPN as a "secondaries" network for the main wired connection as follows: But after a restart, even though the contents of the doesn't show the secondary any more. What have I missed? |
No temperature reading on Ryzen 5700G? Posted: 21 Sep 2021 09:57 AM PDT I've built a new computer with a AMD Ryzen 5700G and to my surprise, no sensor information is picked up whatsoever. I thought perhaps the new AMD chips would not yet be recognized by Linux, but the docs say otherwise. Here's The kernel version should be new enough, and the 5700G should be detected as 'AMD Family 19h', but clearly it isn't. I've tried manually loading the Is it perhaps the Zen 3 APU's that can't be detected? Or is there some other module or setting I'm missing? |
exec command not found error in Linux Posted: 21 Sep 2021 08:16 AM PDT below commands are giving output and exiting the terminal below commands throws error. please advise on the exec behaviour |
Huge delay in ps output from systemd Posted: 21 Sep 2021 08:48 AM PDT I'm getting huge a delay in ps output -- when it outputs the first line ( Any idea why (and the fix)? |
Raspberry Pi: External HDD "wrong fs type, bad option" Posted: 21 Sep 2021 08:14 AM PDT I'm trying to set up an external hard drive to my Pi. I got one from the store with 2TB of storage. I plugged it in and ran I tried to mount it to How can I fix this? Is there something wrong with my HDD? |
Posted: 21 Sep 2021 08:12 AM PDT |
Posted: 21 Sep 2021 08:17 AM PDT Lets say I have 1000 files named as I need to change the file name if the number is divisible by 10. I did this and it just change the first letter |
Linux source path issue with nvidia graphic driver installation Posted: 21 Sep 2021 08:25 AM PDT I'm trying to install nvidia driver on Ubuntu Linux 20. The issue - I'm getting the following error during installation.
What I tried so far
As far I understand it tries to compile the driver against the current running kernel version Here is the readme file. |
how to display current X-Y position of window in gnome-terminal Posted: 21 Sep 2021 09:01 AM PDT For input into |
Posted: 21 Sep 2021 08:11 AM PDT I am learning about cgroups and trying out a few examples to see how it works. For the memory controller, I created an example group, ran an application that tries to use more memory than it has been allocated. And, as expected, the program gets killed by OOM. My question is, is there a way to reset the I tried overwriting the file with root permissions, but that did not work. I was not allowed to overwrite the field to set it back to zero. I also ran the same application (within the example cgroup), this time, using less memory than it has been allocated. Program runs successfully, but the |
Posted: 21 Sep 2021 08:31 AM PDT I upgraded Linux Mint from 20 to 20.2 and it comes with Cinnamon 5.0 uma, which breaks my fractional scaling. The Ubuntu DE doesn't do that. How can I downgrade back to Cinnamon 4, or configure correctly for fractional scaling? |
Is there any package manager for BLFS? Posted: 21 Sep 2021 08:27 AM PDT I have successfully installed BLFS 8.4 and now I want to install a package manager to keep my system up to date. I want to know if it's possible and how. |
Mounting squashfs with correct permissions Posted: 21 Sep 2021 10:01 AM PDT I frequently use mksquashfs to make backups of folders on various systems. Sometimes this results in files which cannot be read by any users upon mounting. If I do a How can I force mount to mount squashfs in a permissions-agnostic way or with the correct permissions? I don't actually need permissions for this use case, it may as well be world-readable. Edit: I never found a full solution for opening "unreadable by root due to permissions" squashfs files, but I did find a way to prevent it from happening again. This works cross-system and cross-platform. Adding -all-root makes all files in the archive owned by root. Since permissions aren't important for these backups it is a clunky but effective fix. Still curious to see if somebody has a better one. |
pulseaudio-equalizer doesn't work on Debian 9 Posted: 21 Sep 2021 09:06 AM PDT After installing pulseaudio-equalizer it doesn't seem to be bound to pulseaudio My |
Posted: 21 Sep 2021 09:06 AM PDT I am currently working to create a specific greek keyboard layout adapted to French Swiss Keyboard, I create a keyboard layout to be put to I used code I Have understood that dead_key are defined in I have so many question:
|
How do I append/prepend a timestamp to grep output? Posted: 21 Sep 2021 08:59 AM PDT I am running a small linux server at home, and I am writing a script to log the temperature of the CPU cores every 5 seconds, but I need timestamps for it to be useful. So far I have something that saves the output of the
and for the date I can do I googled around and saw someone suggesting the use of |
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