Recent Questions - Unix & Linux Stack Exchange |
- `ssh-add -l` does not list the private key after it is loaded
- How to create from sources deb packages for different architectures
- Is there any benefit to partition the disk if only one partition is required?
- Linux thinks my 500GB hard drive is only 7.9GB
- How to change my password without current password or root access?
- gnome-boxes not installing on manjaro ARM
- How to create filenames with incremental numeric suffix
- Reach host port from container when userland proxy is disabled
- Linux kernel keeps waking up HDD that was put to sleep via hdparm
- why is my Makefile keeps recompilling when there is no change is done
- request update of the dhcp server
- How can I get the lsblk-devices that are NOT in use
- How to use alias to a watch command which include another alias and some double and single quotes in the latter alias?
- how query by column number with awk
- What is the difference between `cat EOF` and `cat EOT` and when should I use it?
- find command gets killed when trying to work on thousands of files
- How to enable a non default OpenSSL Cipher Suite
- Force password prompt to work in terminal instead of GUI
- How do I read the output of the `usb-devices` command?
- Has 10 Gbps through Linux tc qdiscs ever been solved?
- Access and modify value of a key that contains dots on name in a JSON file from terminal / Change zoom level of Visual Studio Code from terminal
- How can I enable Samba 1 authentication for a single share?
- Microphone loopback on Linux
- Who is setting my LS_COLORS?
- How to disable broadcasting on an IP-less Linux NIC
- Linux script for file change email notification ( not inotify or any other utility)
`ssh-add -l` does not list the private key after it is loaded Posted: 09 Jun 2022 03:08 PM PDT I'm working on automation scripts and need to check if a private key is already loaded. Before loading the private key, PS: The key is ED25519 with pub/private pair. |
How to create from sources deb packages for different architectures Posted: 09 Jun 2022 02:30 PM PDT I have to install a software on some devices with debian package, it isn't available for their architectures on apt for debian (but it is available for other distibutions as e.g. ubuntu), and they aren't powerful enough to compile it on themselves. Considering that sources are available I want to use another machine to create an easily offline installable deb package. Is there a way (or better some automatic way with something like |
Is there any benefit to partition the disk if only one partition is required? Posted: 09 Jun 2022 01:38 PM PDT I believe we could use the block device directly to do mkfs or create one partition through parted on linux and mkfs on top of the primary partition. However, I'm not sure if there is any recommendations on these two approaches or there is any trivial caveats on top of it. Any comment or suggestion is appreciated. For my specific case, I just want to use the disk as data partition by itself and build xfs on that disk volume. |
Linux thinks my 500GB hard drive is only 7.9GB Posted: 09 Jun 2022 01:28 PM PDT Problem: I have a 500GB hard drive, which Linux currently believes is only 7.9GB. Specifically, Linux thinks it's 16514064 sectors, which is the old CHS limit, so I assume something somewhere has decided the drive doesn't support LBA, although I have no idea why given the drive used to work fine, and I have another 500GB drive of the exact same model in the same machine which is working.
Context, which may or may not be important: I have two identical 500GB hard drives in a RAID 1 md array, using the raw devices. I set up the RAID array on Debian Buster, and used it successfully for a few years. I have since done a clean install of Debian Bullseye. I didn't use the RAID array for a while after the clean install of Debian Bullseye, and just came to use it for the first time since installing Debian Bullseye, and it won't assemble, unsurprisingly given one of the drives is the wrong size. |
How to change my password without current password or root access? Posted: 09 Jun 2022 01:12 PM PDT I changed my user password two months ago. Logged in. Machine has been up and running since. Now I forgot my new password and want to run a sudo command. 'passwd' wants my current password before doing anything. Note: I also don't have the root account password. I'm logged in now, have access to all my files etc, so is there a way to skip giving my current password to 'passwd'? Is there some way I can update my password without the current one? I know there's a way to get in by rebooting and fiddling with the bootup command, but I'd rather not lose all the work in progress I have up now. Note: Arch Linux, icewm for 'desktop', no other users, just me. |
gnome-boxes not installing on manjaro ARM Posted: 09 Jun 2022 12:55 PM PDT I have a raspberry pi 4 with 8GB of RAM. It runs Manjaro KDE ARM. I was recently trying to get I tried all 3 options, but all output the same error! How do I fix this? Thanks! |
How to create filenames with incremental numeric suffix Posted: 09 Jun 2022 01:18 PM PDT I'm writing a shell script that automatically starts two scripts in order to record data for a research project I'm working on, and then when they are ended, it automatically creates a directory for the data and moves the data into the directory. The program creates a folder called "trials" (if one doesn't already exist) and checks in the trials folder for a folder named "trial$n", where n is an incrementing integer starting at 0. The idea is to make the name of the folder that is created increment by 1 every time the program is run. The entire program works fine except for the naming system. When I first wrote the code, it would work fine, but when I deleted folders "trial0...trial2", then next folder to be created would be "folder3", regardless of whether folders for trials 0 through 2 exist. This continued until folder "trial13" was created, and now the program simply overwrites "trial13" every time. Here's my code, the pertinent lines are 149:187 |
Reach host port from container when userland proxy is disabled Posted: 09 Jun 2022 02:18 PM PDT I have a container in a bridged network. It can reach the host without problem, and connect to every port on the host EXCEPT for ports that were published by other containers. I have the userland proxy disabled, so I think it might have something to do with how docker sets up the iptable rules. Is there a simple way to allow the container to reach ports published by other containers (running in different bridged networks)? I would like to avoid putting both containers in the same network, or switching to host-networking. |
Linux kernel keeps waking up HDD that was put to sleep via hdparm Posted: 09 Jun 2022 01:35 PM PDT I have a Seagate 2TB only for storage purpose, and as it's quite loud I put it to sleep unless I access the storage, using the command: When above is executed, the HDD goes to sleep, but after several minutes something wakes the HDD up and I cannot figure out what. I checked the journal, and apparently every 10 minutes the following occurs right before the HDD wakes up again: What's causing this/how can I prevent this? UPDATE. The above messages only appear if the HDD was put to sleep. Otherwise they don't recur in the journal. |
why is my Makefile keeps recompilling when there is no change is done Posted: 09 Jun 2022 01:44 PM PDT I have a makefile which looks like this I have used tabs instead of spacebar in my makefile But when I do make -f Makefile, makefile compiles and creates program1 everytime, even when the file exists and no changes were done. What is wrong with my makefile? I must see error message "make: Nothing to be done for.." |
request update of the dhcp server Posted: 09 Jun 2022 01:55 PM PDT Here the use case: Server A has hostname "server_a". A user on server B can ping server A using its hostname: Server A reboots and gets a new IP. Now, a user on server B can no longer ping server A using its hostname, because "server_a" still maps to the deprecated IP. Is there anything that can be done on either server A and server B to request DHCP to update the mapping? |
How can I get the lsblk-devices that are NOT in use Posted: 09 Jun 2022 02:07 PM PDT I just wanto see all devices that are not in use for lvm/zfs/ext4 whatever. Do you have something in mind howto archieve this? I wanna use it for a script so I can I want to list all blk devices that are not in use. Edit: Output should be: |
Posted: 09 Jun 2022 12:55 PM PDT
The above code works well when I write it to my
The above code also works well when I paste it to my terminal ( But I met some issues:
Can you help me to solve the 3 issues? |
how query by column number with awk Posted: 09 Jun 2022 12:55 PM PDT I would like to get time difference by column number 2 delimited by table: command: I tried: but failed to get correct result. |
What is the difference between `cat EOF` and `cat EOT` and when should I use it? Posted: 09 Jun 2022 02:03 PM PDT I'm used to use I did a quick research and I only found this other question, but I think it was not related to what I wanted to know. I did some tests with the following code: And I get the exact same output as when I use So the questions are:
|
find command gets killed when trying to work on thousands of files Posted: 09 Jun 2022 12:56 PM PDT I am trying to create PBF out of thousands of OSC changeset files using osmium tool. i have written a bash script for doing this task using jenkins.
but i am facing issues when trying to merge large amount of osc files into master at once. using following command but this command is being killed by os when its trying to work on large directory have more then 12k files. i have many directories and sub-dir, where i am trying to recursively find all "*.osc" files, so times its so many files that i get bellow mentioned error from linux. what can be the best way to approach this issue? is there any other way i can recursively find all files in dir and sub-dir? what can i do wrt to osmium or linux script to fix this issue? i tried to replace find with blob search (//.osc) and it still got killed. Currently i am trying to run this command from parent directory having multiple sub directories with files, if i manually execute each sub directory it seems to work fine, is there a way, if i get certain path as input, i can search for all sub dir inside it, if sub dir exists then i run this command individually on each sub dir? |
How to enable a non default OpenSSL Cipher Suite Posted: 09 Jun 2022 02:07 PM PDT I have an install of OpenSSL 1.1.1f as per Ubuntu 20.04 and I specifically want the TLS v1.2 suite How do I configured OpenSSL to allow the use of that cipher suite for other apps that use the OpenSSL install for TLS? Details about my use case: I have a .NET(6) app, and .NET uses the present OpenSSL 1.1.1 or greater install as the underlying TLS provider on Linux. So afaik when that app uses OpenSSL, OpenSSL needs to be configured to allow for the CCM cipher suites.(it will use the I see in the config section of the OpenSSL manual that the module I am interested configuring is but this doesn't allow the app to use TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8. When my TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 exclusive client tries to connect it gets a handshake 40 failure, as the app internally throws an However, I confirmed this config file works because if I use the following cnf with instead TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 as the sole filter in the cipher string, then the app can exclusively use TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 and it works as expected (a ...GCM_SHA256 exclusive client can connect): How do I enable TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8? And I am not sure how to confirm the enabling of CCM... I am expecting that when I run I read the Configuration section of this cook book: https://www.feistyduck.com/library/openssl-cookbook/online/openssl-command-line/configuration.html, but I think I need some experienced advice to explain why I cant just use CCM8. |
Force password prompt to work in terminal instead of GUI Posted: 09 Jun 2022 01:40 PM PDT I am not sure what's causing this, but it's mildly frustrating. I'm I've tried unsetting To be clear, what I want is simple... if I'm the terminal to the machine, use the terminal to prompt for passwords. If I'm in the GUI, use the GUI or at least point me in the direction on how to temporarily use terminal prompting if so desired. TIA! |
How do I read the output of the `usb-devices` command? Posted: 09 Jun 2022 01:07 PM PDT I'm trying to debug a USB issue on an Ubuntu 22.04. I've come across the
However I am not able to find a clear guide on how to read the output of those files either. What follows is example output from a different machine: How do I read this? What do the initials mean? I can read the script itself, from
And in the code I can see that it refers comes from the line:
So from that I can see where |
Has 10 Gbps through Linux tc qdiscs ever been solved? Posted: 09 Jun 2022 02:04 PM PDT I'm trying to use My throughput gets capped around 3 Gbps. I've tried variations with CBQ and HFSC. No matter what I do I can't seem to get around that. Adding just the |
Posted: 09 Jun 2022 01:32 PM PDT Thank you for any help that you could provide. I am trying to create a bash script to modify the value of a key from the settings.json file from Visual Studio Code. The key that I want to modify is As you can imagine, I don't know much about json structures, so please help me out. This is how the file looks: |
How can I enable Samba 1 authentication for a single share? Posted: 09 Jun 2022 02:04 PM PDT I'm setting up an old network scanner on a debian machine but it uses smb1 for authentication using under the global settings. I know smb1 it's unsecure so I'm guessing if there's the option to use that kind of authentication only for the share I use to receive scans from the machine. Is it possible? Thanks. |
Posted: 09 Jun 2022 03:01 PM PDT I am trying to do simple microphone loopback to immediately play to the speakers. I eventually got it working on one computer by running
How would I do this in Linux in a very simple, user-friendly way? A few guides suggested using pavucontrol, but I could not get it working. This is because I do not know what to do on the last setup in "output devices". After a few days of trying, I assumed those guides were old and this process no longer works - but I may be wrong? |
Posted: 09 Jun 2022 01:14 PM PDT I'm using the Now, I have So where is it set? Note: I'm using a Debian-based distribution |
How to disable broadcasting on an IP-less Linux NIC Posted: 09 Jun 2022 01:00 PM PDT Linux system with two NICs.
Question: How can I stop broadcasts being forwarded on eth1 ? Config:
|
Linux script for file change email notification ( not inotify or any other utility) Posted: 09 Jun 2022 02:04 PM PDT I'm looking for linux script (not inotify tool or any other utilities ) which notifies me via email whenever file contents are changed. I have managed sample script via google, but i have to run it manually and it is not triggering any emails |
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