Recent Questions - Unix & Linux Stack Exchange |
- Dumb terminal agetty keyboard layout filter
- DHCP keeps stopping
- FLAC encoders – any difference in output between the command-line tools?
- How to add brew command permantly to path in linux(deepin os). Right i use the commnds below
- What's wrong with my elif statement in this casino/hotel game I'm making? [duplicate]
- What are the detriments of not setting MSFTDATA flag when making a exFAT partition?
- VT100 Escape codes and TTY interaction: Why `open` a TTY device as opposed to using stdin/stdout
- Why does libvirt-daemon-system have so many dependencies on Debian?
- Linux memory allocation for user's process (buddy allocator)
- Change cgroups pids.max value but the processes are not limited
- Terminology: terminal command to be invoked from any directory?
- What is the difference in how linux implements commands which accept input via pipe vs. command arguments?
- less command: b/f vs w/s
- chroot as unpriviledged user leads to 'Permission denied' trying to run any binary
- How to configure proxychains the right way?
- Ethernet port won't detect cable if it was plugged before boot
- How do I prevent Virt-Viewer from capturing keyboard shortcuts?
- Counting number of file matches from grep
- zenmap not opening
- dig: parse of /etc/resolv.conf failed
- Auth.log entries: How do you interpret this log?
- Whether wildcard symbol can be added to "PATH" variable?
- Is there a free (libre) open source alternative to memtest86+ that works with UEFI?
- Need to find a response time which takes from 1-3 seconds in Apache logs
- How to change desktop background via terminal on openSUSE?
- Locating the directory for systemd scripts
- expect: does "" (spawn_id exp70) match glob pattern
- What are character special and block special files in a unix system? [duplicate]
- Debian PowerBook G4 WiFi Driver
Dumb terminal agetty keyboard layout filter Posted: 12 Jun 2022 03:13 PM PDT I recently acquired an old Heathkit dumb terminal, and I would like to get it working with the colemak keyboard layout. Because the terminal sends ascii codes directly over serial, I don't believe anything like My current plan is to filter every byte that is received or transmitted in a simple piece of software. There are also a few command line programs that still use incompatible escape codes (despite Essentially I'd like to create a program that sits between agetty and the terminal and allows me to filter bytes manually as they are sent or received. The filtering of bytes is simple enough, but I'm unsure how to create an interface to agetty that can do this. Will I need to create my own device using (I've also considered using a microcontroller or raspberry pi sitting between the terminal and linux machine to read bytes in and write the new bytes out. This solution would be clunky and I'd like to avoid it if possible.) Any advice on where to look/read would be extremely helpful. |
Posted: 12 Jun 2022 02:44 PM PDT On my rasbperry pi (4b 8GB version) DHCP keeps stopping seemingly at random. I can restart it from the terminal (sudo dhcpcd) and it works fine, for a while, and then it stops again. What might be causing this and how can I fix it? Distribution: Raspbian OS 10 (Debian Stretch-based, I believe) |
FLAC encoders – any difference in output between the command-line tools? Posted: 12 Jun 2022 01:01 PM PDT I would like to know if there is any difference in the final output between the various command-line tools for encoding FLAC files, like |
How to add brew command permantly to path in linux(deepin os). Right i use the commnds below Posted: 12 Jun 2022 12:34 PM PDT echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/laya/.profile eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" I have to exeute this commands all the time i want to use the brew. How do i add them permantly to my path |
What's wrong with my elif statement in this casino/hotel game I'm making? [duplicate] Posted: 12 Jun 2022 01:38 PM PDT I enter code like the following: and no matter what, it never displays text3 or text4 when I run the program. I have tried several different things such as setting "yes" and "no" to be variables instead, reading bookaroom like this: and just going through the code retrying different things until they work, which they didn't, and nothing seems to be working. I have researched several times the syntax and have found that I have the correct syntax. |
What are the detriments of not setting MSFTDATA flag when making a exFAT partition? Posted: 12 Jun 2022 12:21 PM PDT I have several external HDDs that I backup data to and occasionally plugin internally when I need access to the data. I erased all partitions by making a new GPT partition table on the disk. I made a primary partition of type NTFS and then formatted as an exFAT partition: Now, I can plug this HDD into both my Unix desktop and Windows desktop and can access the files without issue. However, I noticed that my Windows partitions have MSFTDATA flag set when viewed in parted ( I haven't set this flag - will this become an issue later and will setting the flag cause issues accessing the data from Unix? What exactly does Windows (or Unix) use this flag for? |
VT100 Escape codes and TTY interaction: Why `open` a TTY device as opposed to using stdin/stdout Posted: 12 Jun 2022 01:45 PM PDT I had a look into escape codes and found some C code that reads the current cursor position. And I guess I have now stumbled over a topic of UNIX/POSIX programming I until now had not much exposure to. The below code opens Conceptionally I wonder
|
Why does libvirt-daemon-system have so many dependencies on Debian? Posted: 12 Jun 2022 12:05 PM PDT On my headless debian 11 (bullseye) server, when I attempt to install I don't understand where this is coming from, though. Looking at Can these dependencies be avoided? |
Linux memory allocation for user's process (buddy allocator) Posted: 12 Jun 2022 10:52 AM PDT I'm studying memory allocation in Linux and I have a question about the buddy allocator. Reading the documentation available on kernel.org I've learn that the buddy allocator is responsible for the allocation of physical pages (through the __alloc_pages() function). I'm wondering if the buddy system (and the __alloc_pages() function) is involved in the allocation of pages to user's processes, or if it allocates pages only for kernel's processes. Summing up, my question is: if a user's process needs to be loaded into the physical memory, the buddy allocator is involved? |
Change cgroups pids.max value but the processes are not limited Posted: 12 Jun 2022 10:21 AM PDT I changed the file cgroup pids.max (for limiting child processes), but the processes are not limited. Anyone has idea way? Thanks! |
Terminology: terminal command to be invoked from any directory? Posted: 12 Jun 2022 10:14 AM PDT Context: macOS Catalina zSh. The end goal is to be able to setup user scripts so that they can be invoked via CLI at an arbitrary data location. Question: What is the word (Terminology) for: the terminal command to be invoked from any directory? The correct word / phrase would allow me to Google the subject matter and inch forward to the goal defined below. Example: the command Path Variable: I understand that the $PATH variable contains path information: babygrand:~ user$ returns
I suspect that /etc/paths is configures $PATH at startup: babygrand:~ user$
The output paths seem to be a variation of the File System Hierarchy, which poses a similar question to my goal, but not my Terminology question GOAL: I would like to Google the word / term of the subject matter and learn best practice how to enable a script to be run from any directory. I am faced with a decision as to whether to add another path or to choose an one of the above existing paths that has been already configured into the $PATH variable. The ability to invoke my script at an arbitrary directory is of significant utility: the script performs work on pdf files, which could be located anywhere in the file system. My script calls an executable to stamp pdf documents. Clarification: The subject matter is not that of the "subfolder" problem posed at: https://apple.stackexchange.com/q/366127/187540 This is excellent reading as it is somewhat related to directory management. |
Posted: 12 Jun 2022 11:32 AM PDT Although there are many similar questions, I cannot find one that directly answers my question. I understand the basics of OS memory management, processes, communication between processes, etc. However, it is not obvious to me the fundamental difference between the implementation of commands that can receive input via pipes and those that can only accept command arguments. As a trivial example, why can I pipe the filenames output by Asked differently, if I am writing a linux command, what technical factors do I need to consider to choose whether to accept command input via pipe, command arguments, or both? |
Posted: 12 Jun 2022 03:28 PM PDT About the indicates the following: Enabling the line numbers - with Question
normally I use the first pair, but when use the second pair? Extra Question
I am assuming it is the expected difference that makes |
chroot as unpriviledged user leads to 'Permission denied' trying to run any binary Posted: 12 Jun 2022 10:39 AM PDT I have a chroot root containing some static binaries on an ARMv7l platform (Kobo eReader, see InkBox OS project), namely BusyBox. chrooting as root works fine: then I tried to login as an unpriviledged user in the chroot via the Stack trace:
Permissions: It also gives me the same 'Permission denied' error if I try to do Any idea of what's wrong? Thanks! |
How to configure proxychains the right way? Posted: 12 Jun 2022 02:01 PM PDT I configured proxychains following a couple tutorials on the web which were pretty much all the same, as they showed the configuration using Tor service. The problem I'm having is that my DNS is being leaked as well as my real IP address. When I start Firefox with proxychains Google sometimes shows I'm on the other side of the globe but still shows my real IP address when prompted for captcha and other times it shows the city I live in. I did a DNS leak test as well which didn't show my location or network provider at all, but on WhatIsMyIpAddress it showed all of my info. I use Firefox with no additional proxy settings in the browser. I tried using free proxies, but every single one of them, regardless if HTTP, SOCKS4-5 gets timed out. I don't really want to use free proxies, I'd rather use the Tor service but I can't get it to work properly. The distro I use is Mint 20.3 (Una). The proxychains.conf file: |
Ethernet port won't detect cable if it was plugged before boot Posted: 12 Jun 2022 10:13 AM PDT I'm having trouble connecting a computer to the internet. I am able to do it only if I follow the steps below (which is not a desired behavior), and I need help to make it work properly. THE PROBLEM It is happening on a computer that its intended to be used like an amateur's server. The physical port will only detect the cable if I follow these steps:
If I don't follow these steps, the computer won't recognize the cable, and it will not be able to reconnect to internet. The LED's on the physical port won't turn on, and the result of This problem is specially bothering since it's supposed to be a 'server'. MY THOUGHTS AND QUESTIONS I'm thinking it might be a driver problem (and I just hope this is not a hardware issue). I don't really know what to do next. How can I debug this kind of problems any further? Is there a tool to look for updated drivers (a console tool would be preferable)? Is there a work-arround I can use for the time being (like a cron resetting the interface if no ping to 8.8.8.8)? SYSTEM INFO The motherboard is an Asus Z590-A PRO The eth interface is an Intel® 2.5G Ethernet The controller is Intel Ethernet Controller I225-V (rev 03) The OS is HiveOs 0.6-217@220510, based on Ubuntu 18.04 ADDITIONAL INFO I don't know when this problem started, since I bought the ethernet cable today. Before that I was working with an USB WIFI antenna, which wasn't great either. I have not any other OS installed, nor a live USB to do testing. I'll have to wait to Monday for doing so. The Eth cable is not the problem, I tested it on a router and my laptop, It worked on both. Not sure if relevant, but I'm using netplan, which was't installed by default. this is my (x and y are numbers) I tagged "Ubuntu" since the OS is based on it and there is no tag for "hive" UPDATE I brought the computer to the office I work on, and there I don't have the problem. I think it might have been the router. I'll bring the computer back to the house next month or the month after that. Meanwhile I'll just leave it there. I'll leave this question open so if the problem comes back when I bring the computer here, I can debug it properly, find the root cause, and leave here useful information for anyone who has this problem on the future. Thank you all who have helped me here. |
How do I prevent Virt-Viewer from capturing keyboard shortcuts? Posted: 12 Jun 2022 01:06 PM PDT I am using Debian 11, virt-manager and LXD to do virtualization. I need a way to prevent virt-viewer from capturing things like Super key, Ctrl+PrintScreen, the number pad, etc. I use a lot of keyboard shortcuts that are designed for my workflow outside the virtual environment; everything from adjusting volume to quickly taking notes to managing my time tracking system is done with keyboard shortcuts. VirtualBox and In I would use I just need to replicate that checkbox option in virt-viewer. Related to issue #72 |
Counting number of file matches from grep Posted: 12 Jun 2022 12:58 PM PDT How can a store the number of files matched by Am using the following |
Posted: 12 Jun 2022 03:07 PM PDT I am running kali linux as a virtual machine in virtualbox, but when I click zenmap it does not open and nothing shows up, I have tried reinstalling it but the problem remains same. when I run zenmap in terminal it shows: |
dig: parse of /etc/resolv.conf failed Posted: 12 Jun 2022 12:51 PM PDT I tried using dig and I got the error in the title. My /etc/resolv.conf is this The first two are the default digital ocean dns, the other are for my domain registrar. So I tried to add two cloudflare dns, and the file is this: After I did, dig still didn't work. But if I comment the *name.com nameservers, dig works: The fact is that if I comment these *name.com nameservers, my site goes down after some minutes. So how can I leave these *name.com nameservers and be able to use dig and nslookup and stuff like that? |
Auth.log entries: How do you interpret this log? Posted: 12 Jun 2022 05:04 PM PDT There has been some odd behavior on my server. I pulled up the auth.log and found this (this is not my IP): I'm reading this as:
Is my interpretation correct? If so, is there another log that shows me what they did? |
Whether wildcard symbol can be added to "PATH" variable? Posted: 12 Jun 2022 02:49 PM PDT Scenario: A parent folder contains many sub-folders (say a few hundred) containing executables or source programs. Say, parent folder, It is understood from user dogbane's answer to what is wild card to select all directories in a directory that:
If I add the entry |
Is there a free (libre) open source alternative to memtest86+ that works with UEFI? Posted: 12 Jun 2022 01:30 PM PDT In light of memtest86+ not working with UEFI, is there an open source alternative or something I can use from grub to test memory? |
Need to find a response time which takes from 1-3 seconds in Apache logs Posted: 12 Jun 2022 11:01 AM PDT I need to find the API response time from an Apache log file. It's like a response time which is takes between 1 to 2 secound or 2 to 3 second. I am trying with following command but the output is always the same: |
How to change desktop background via terminal on openSUSE? Posted: 12 Jun 2022 12:06 PM PDT I am using SUSE Studio to make a custom version of openSUSE with the KDE 4 desktop. A small problem is that the background is set by default to the chameleon light bulb. I suspect I can fix this manually by adding a line to the script that runs at the end of a build. So, what is this command, if it exists? |
Locating the directory for systemd scripts Posted: 12 Jun 2022 02:06 PM PDT Tried to add a startup script for CentOS, but can't find upstart script directory (which typically is in Any ideas? |
expect: does "" (spawn_id exp70) match glob pattern Posted: 12 Jun 2022 01:02 PM PDT I have written an expect script that works perfect for testing passwords on our network until it has looped through my list quite a bit, then the debug output shows that there is nothing to match. Here is some debug that shows the buffer with data in it, then the next spawn with no data: Every spawn_id after exp69 has nothing in the does "" match section. I think this is related to the buffer some how, but I've tried: And this didn't seem to make any difference. I've removed the real ips and changed it to x.x.x.x. I"m not actually testing x.x.x.x (but the 12.23.34.56 did slip into my list of servers to check) The script itself is running expect and loops over another file called "servers.txt" and tries line by line to execute a series of commands on that server. It logs what worked and what didn't. Here is what is in the script: |
What are character special and block special files in a unix system? [duplicate] Posted: 12 Jun 2022 11:15 AM PDT How are character special files and block special files different from regular files in a Unix-like system? Why are they called "character special" and "block special" respectively? |
Debian PowerBook G4 WiFi Driver Posted: 12 Jun 2022 10:15 AM PDT How do I get wifi to work on my powerbook g4 with xfce debian? I have tried |
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