Recent Questions - Unix & Linux Stack Exchange |
- How to list DHCP options sent to a client from a DHCP server in Linux?
- Slackware 14.2 huge kernel cannot load 9pnet_virtio module
- Does UNOS still exist?
- /dev/sde install disk is seen as /dev/sda at boot time
- Kernel error when external display connected. Needs to be reconnected several times
- Overwritten software raid 1 (mdadm) by Truenas raid 1
- How to change dwm taskbar size
- How to use grep with matching stdout to list values in a file?
- How can I get xeyes to work? - XQuartz Display Error on Local System
- Setting IP address in Centos 7
- Arch linux, set up user to use pacman without full root privileges
- Sending request to local computer from anywhere
- M2 SSD disk - bad sectors
- How to log flag changes to files on ext4 and xfs filesystems?
- How to get the embedded filename of a GPG encrypted file
- Is it possible to get the screen/monitor name where a specific application is displayed on?
- Freescale armhf iMX6Q board doesn't boot with kernel 5.10 or greater
- Why should I kill ssh-agent on logout?
- Delete illegal router from network
- Raspberry 4 stuck in initramfs
- Who owns the UNIX trademark
- Using qemu/kvm with nftables? (without firewalld!)
- VBox Guest Additions installation can't find headers for Kali kernal 4.14.0-kali1-amd64
- Installing 32-bit Linux distribution on 32-bit Architecture with 32-bit UEFI
- How to generate a random string?
- Finding out what sh is [duplicate]
- Run wc and display only the word count
- How to download an archive and extract it without saving the archive to disk?
- How to get only files created after a date with ls?
How to list DHCP options sent to a client from a DHCP server in Linux? Posted: 02 Sep 2021 10:37 AM PDT How does one list the options that are sent to a client from a DHCP server? Using a utility run from bash? |
Slackware 14.2 huge kernel cannot load 9pnet_virtio module Posted: 02 Sep 2021 09:53 AM PDT I am running Slackware 14.2 virtual machine running a huge kernel 4.4.14 on UEFI mode and I have a problem with loading the 9pnet_virtio module. This module is needed for my init script. What should I do? I want to have modules 9p, 9pnet, and 9pnet_virtio available. |
Posted: 02 Sep 2021 09:52 AM PDT UNOS is a derivative of UNIX by Charles River Information Systems. Google and Wikipedia doesn't have much information on it. Is there any version of it still in use? |
/dev/sde install disk is seen as /dev/sda at boot time Posted: 02 Sep 2021 09:47 AM PDT I'm SystemImager image deployment software developper. I'm trying to support external disk drivers, but I'm stuck with a silly problem. When I run preinstall scripts (udev has already settled) I fetch via network the driver (example, a specific megaraid_sas.ko that support old hardware on RHEL 8) When the driver loads, it recognize the disk as /dev/sde Install works fine (EFI System), initramfs are rebuilt to include the driver. grub2-mkconfig generates a config file with root=(hd4,gpt2) efibootmgr creates the correct entry (it uses UUID) Unfortunately, when rebooting grub fails to find the kernel (hd4 while BIOS sees hd0) => 1st problem. When I fix that, => 2nd problem: kernel loads the megaraid_sas.ko (as it is in intrants file) and this megaraid disk is seen as /dev/sda ! If I try to continue from emergency mode, mounting by hand /sysroot, lvm fails trying to find /dev/sde.... Is there a way to: -> At install time tell UDEV to not use /dev/sda until I say it's ok? (best solution as it would also solve the grub and lvm issues) or at boot time, is there a way to tell kernel that megaraid_sas should use /dev/sde? I tried to look at the anaconda dracut module, but was unable to understand how the OEMDRV is handled after reboot. (they download the driver from network far after disk devices have been detected by dev). Any idea? |
Kernel error when external display connected. Needs to be reconnected several times Posted: 02 Sep 2021 09:28 AM PDT About 50% of the time when I connect my LG external monitor to my x1c7 laptop, the displays are both on and working, but I can only see my mouse and nothing else. It flashes every few seconds like it's adjusting the resolution and occasionally a window will appear briefly on one of the displays (in the wrong resolution) and then it will flash black and keep trying. It can get stuck in a loop like this for at least 10 minutes (the longest I've had patience for) and sometimes takes disconnecting and reconnecting the display (sometimes even after multiple tries that doesn't work either and I have to restart). Also, the display manager in Linux Mint takes suspiciously long to open, and sometimes when I open it, I get the same issue described above (without touching the HDMI cable). /var/log/kern.log |
Overwritten software raid 1 (mdadm) by Truenas raid 1 Posted: 02 Sep 2021 09:22 AM PDT I made a stupid mistake. After I created a backup to a separate USB disk and checked for a successful backup (or so I thought) I made a new raid 1 pool with Truenas which overwrote old raid 1 made with mdadm on Linux with ext4 file system. To make things worse, I then copied backup to the new dataset on Truenas. It turned out, one folder wasn't backed up and I lost approximately 20% of data. Is there any way to try to recover some data? Brgrds, Mathew |
How to change dwm taskbar size Posted: 02 Sep 2021 09:20 AM PDT I am running DWM on Artix and I can not seem to change the bar at the top height. it is too small and I want it larger but do not know how. I have looked in config.h for dwmblocks and dwm but can not find it. I will accept anything thank you in advance. (I have tried the dwm-height-bar patch but it never works. It says successful but doesn't change anything.) |
How to use grep with matching stdout to list values in a file? Posted: 02 Sep 2021 10:19 AM PDT I have a file that contains a list of items. I am using a gcloud command to list services
I am looking to run the gcloud command then grep for each item in the list above and output the associated I've tried something such as |
How can I get xeyes to work? - XQuartz Display Error on Local System Posted: 02 Sep 2021 08:50 AM PDT I installed XQuartz on my Mac (Big Sur, v. 11.5.2), but I have been unable to use it. I've been failing to fix this issue for the past couple of weeks, and I'm really hoping someone can help point me in the right direction. I've been using xeyes to test the installation and get the following response: One of the ways in which I have tried fixing it is to set my DISPLAY inside my .zshrc file to ":0", "localhost=0", and just the number 0. I also tried putting my IP address in front of the :0.0 at one point. None of those solutions worked. Someone in another thread recommended changing the default options in the sshd_config file, so I updated the X11 options as shown below: It's still not working, and I suspect the previous solution was to fix the case where you can get XQuartz to work locally but not through ssh. I can't even get it to work locally, and at this point, I have no idea what to try next. Any ideas would be really helpful! Don't know if this is helpful, but I copied this from my console: |
Setting IP address in Centos 7 Posted: 02 Sep 2021 08:42 AM PDT I recently received a 64 core server for work. It has centos, SLURM and several things already installed. I can log into the server fine if I connect a keyboard. However, I need to rackmount it, and access it from a laptop. I have been unable to ssh into it. When I try, it says password denied. When I check When I try to check the IP address using I expected to see the IP address in item 2, but it says DOWN. I am not sure how to change this or even, what I am missing? Once the IP address is fixed, I would expect to be able to SSH in fine? |
Arch linux, set up user to use pacman without full root privileges Posted: 02 Sep 2021 08:07 AM PDT I am trying to set up multiple levels of users on my arch linux system. I want to lock the root user, and then have 3 levels of user. On top is essentially is a full wheel root user, then under that I want a less privileged user that do some high level functions like using pacman. So I have not added the submasteruser to the wheel group I have used visudo and added the following lines but still when I try to user sudo pacman -Syu or sudo pacman -S git etc I get an error: sorry submasteruser is not allowed to execute /usr/bin/pacman is there some other files I need to include in my /etc/sudoers Cmnd_Alias for SUBMASTER? Or am I missing some basic info here? |
Sending request to local computer from anywhere Posted: 02 Sep 2021 08:33 AM PDT Few days ago I have made an application on raspberrypi that turn on the alight when you send to it an http request "http://rspi:8080/light". Secondly I have made an Android application that sends that request to it. Everything works fine when both devices are in the same network. My question is: how i can send this request from any other network. How I have to connect or how make route from my phone to this raspberry pi? |
Posted: 02 Sep 2021 08:14 AM PDT |
How to log flag changes to files on ext4 and xfs filesystems? Posted: 02 Sep 2021 10:02 AM PDT I was wondering how to log flag changes in a file, e.g. I realized that timestamps shown by |
How to get the embedded filename of a GPG encrypted file Posted: 02 Sep 2021 08:56 AM PDT One can see the embedded filename of an encrypted file using Is there a way to get the embedded filename only? Is there a command that displays |
Is it possible to get the screen/monitor name where a specific application is displayed on? Posted: 02 Sep 2021 10:46 AM PDT I would like to find out what screen/monitor (not desktop) a GUI application is displayed on. For example: my mail client is running on my third desktop, which is displayed on my second monitor ("DP-1-3"). So, my mail client is displayed on "DP-1-3". I have tried using Thank you! |
Freescale armhf iMX6Q board doesn't boot with kernel 5.10 or greater Posted: 02 Sep 2021 08:10 AM PDT I am upgrading the kernel from version 3.17.0-rc4 to latest kernel version in a board that uses a iMX6Q Freescale processor, but the board doesn't finish to boot. I am cross-compiling using Debian 10 following these steps: And then copying the zImage and modules to the boot and root partition. My uEnv.txt file is: I got this message trying to use kernel version 5.13.12, and then the boot freezes: I've tried with another kernel versions and I am not having issues (eg. 4.19 or 5.9), but for some reason kernel version greater than or equal to 5.10, freezes the boot. I thought about just use 5.9 kernel version, but I am a bit salty because I don't know what it's going on and I don't know how to debug what's happening. It's something I can do to debug what's happening or something I can try? Maybe for some reason iMX6Q is not compatible with kernel greater than 5.10? I have searched but could not find anything. |
Why should I kill ssh-agent on logout? Posted: 02 Sep 2021 08:09 AM PDT I have set up ssh-agent on my macOS laptop, and a 24x7 running server. Why do I need to kill ssh-agent on every logout? Source of my knowledge of ssh-agent: https://kb.iu.edu/d/aeww Why is this last step required? |
Delete illegal router from network Posted: 02 Sep 2021 08:57 AM PDT I have a default gateway with IP address 192.168.1.1 and MAC address 5c:77:76:6e:0d:7b. It is my only wi fi modem router from which I receive internet. But in input nftables logs I saw another one router with the same IP address and different MAC address I tried two ways to solve this problem:
But after the second step, I lost my internet connection. My questions:
More logs from router with illegal MAC address here: nftables logs from illegal router |
Raspberry 4 stuck in initramfs Posted: 02 Sep 2021 09:15 AM PDT im new on this site so i hope im not making myself look super stupid (beside the fact that my english isnt that best) I got myself a Raspberry Pi 4B with an 64GB SDCard of Sandisk Ultra. Installed on it is an Ubuntu server 20.04 ARM Version. It usually runs 24/7 in my local network for research and bit of education. What happen: After installing an Update with "Sudo apt update", "sudo apt upgrade" and finishing it with "reboot", i got stuck into initramfs. The only message shown is: I did what it says to me and tried to run it manually with the command: After some research i found out it were problably the sd card soo i tried to reeinstall the ubuntu server on it again. But the sd card doesnt get wiped. not wiped in windows neither Linux. The files inside are set into read only, but trying to wipe it with sudo on an other device doesnt affect it in anyway. Trying to delete anything or make it writable on the initramfs gives me a "Permission Denied". because all my data is already save i would like to wipe it. But im still curios why this happens because i had it twice. in the first time it got fixed easy by just reeinstalling. And this is the second time. I hope some of u got any idea to fix it. I googled my way down and up, but didnt find anything. |
Posted: 02 Sep 2021 10:55 AM PDT I am currently enrolled in a course that is teaching me UNIX fundamentals, such as common commands and such. After doing some digging on UNIX, I came across the rabbit hole of legal battles over who owns UNIX, and the UNIX wars. I have done some research, but the sources are sort of dated (circa 2003 - 2004) and have conflicting information as far as who owns it. Here are a couple of the sources I have found: https://www.zdnet.com/article/who-really-owns-unix/ - states that the Open Group owns it https://www.informit.com/articles/article.aspx?p=175171&seqNum=2 - states that the SCO owns it After reading these sources, it sounds like the Open Group is claiming to own the UNIX trademark, while the SCO claims to own the UNIX source code. Am I understanding that correctly? |
Using qemu/kvm with nftables? (without firewalld!) Posted: 02 Sep 2021 10:04 AM PDT With libvirt/qemu/kvm you can define a bridge (or more) to be used by the guest machines. The libvirt machinery should take care of the creation of the bridge - normally called Now, I am currently in the process of migrating to Alas, libvirt officially only supports Now my question is this: is there a canonical way of dealing with this situation and what is it? Here are a few scenarios I have contemplated (all without
|
VBox Guest Additions installation can't find headers for Kali kernal 4.14.0-kali1-amd64 Posted: 02 Sep 2021 10:04 AM PDT I have installed Kali in VirtualBox and now trying to install Guest Additions to get full screen view. I updated and installed my packages and installed dkms. When I try to install linux-headers I get the following: The headers installed are as follows: When I try to run the Guest Additions CD I get the following: It appears to me that the correct linux headers for the kernal are installed. Why is VBox not able to find them? Tried updating to VBox 5.2.2 but after removing existing version and installing 5.2.2 I was unable to launch Kali-Linux - screenshot attached . |
Installing 32-bit Linux distribution on 32-bit Architecture with 32-bit UEFI Posted: 02 Sep 2021 09:01 AM PDT There's a lot of information on installing 64-bit Linux on 32-bit UEFI. It's a mess even here, but I've seen ways (rEFInd, etc). But this laptop (HP Envy X2) has a 32-bit architecture and exclusively EFI (no CSM / legacy BIOS). So, how can I install a 32-bit Linux distribution on a 32-bit architecture, with EFI only? At this point I'd be fine with pretty much any distribution. But if there's choice, I'd go with Arch-based, or Debian-based. I have experience in GNU/Linux and installation / etc. I'm looking for EFI-specific help. The laptop currently runs Windows 10 with basically no drivers, but I have access to Debian and Windows on my desktop. Thanks! PS: This is not a duplicate as the questioner is (I believe) wrong in believing that the X2's CPU supports 64-bit. The answer there is also merely a distribution name. |
How to generate a random string? Posted: 02 Sep 2021 08:34 AM PDT I would like to generate a random string (e.g. passwords, user names, etc.). It should be possible to specify the needed length (e.g. 13 chars). What tools can I use? (For security and privacy reasons, it is preferable that strings are generated off-line, as opposed to online on a website.) |
Finding out what sh is [duplicate] Posted: 02 Sep 2021 08:13 AM PDT I am writing a set of scripts that I want to be portable, but I need to know whether What comes to my mind first is to inspect which shell has which Apart from being clumsy, this doesn't even produce results in all cases. Edit I need it for my bashrc/zshrc/...-like project, where I assign my current working shell to a variable, and use that variable everywhere. I can't post my code because I need to solve the problem to enable overall cleanliness of my work. Moreover, it would be too much monkeycode... don't misunderstand it, but POSIX compatibility is too narrow to make my project small enough. I'd need to crutch on system configs otherwise. However, I can post my UNIX Shell defining function: PS. The least bit of research shows that $SHELL doesn't change when running a shell as subprocess. |
Run wc and display only the word count Posted: 02 Sep 2021 10:38 AM PDT I have been trying to create a file called I already created the file then I removed it because I did it wrong I originally did the echo command. Then I tried this command and was so excited because I thought I was correct. It's still wrong, I am supposed to have just the number, without a file name. |
How to download an archive and extract it without saving the archive to disk? Posted: 02 Sep 2021 08:35 AM PDT I'd like to download, and extract an archive under a given directory. Here is how I've been doing it so far: I'd like instead to download and extract the archive on the fly, without having the |
How to get only files created after a date with ls? Posted: 02 Sep 2021 08:32 AM PDT With the I'm asking it because I have a directory with thousand of files. I want so see all files that were created since yesterday. I use There is an equivalent 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