Recent Questions - Unix & Linux Stack Exchange |
- Skip password prompt and pass password to ssh-add in script
- "symbol lookup error: /usr/lib/x86_64-linux-gnu/libnssutil3.so undefined symbol: PR_GetEnvSecure"
- What does "Missing value on line X of /var/cache/cups/jobs.cache" mean?
- Is there a way to detect the user's password entry in sshd to warn that they must change it?
- How should I create and use a filesystem for a build server?
- Find and print the length of the longest line in multiple files?
- Libreoffice's instert special character window looks HUGE (can't resize to smaller)
- My Script need to kills previous instances of itself upon running not killing one of the child process
- iptables: Route outgoing requests to a local proxy preserving destination address and port
- I deleted the Ubuntu partition, and proceeded to delete Ubuntu from my system files. Can't access grub rescue
- Wifi isnt working after using wifite [duplicate]
- BASH command not found when executing in remote linux cluster using shell script
- How do I determine which filesystem is in use on my "Microsoft basic data" partition? [duplicate]
- Push etckeeper created repository to remote Gitlab server, advices welcomed
- egrep matching lines that shouldn't match
- Run thousands of simple scripts in parallel
- Unable to use "SSH" command while connecting to Rasperry Pi (Octoprint)
- Docker is not running when trying to create a Laravel application
- Replace specific lines of a file with values of other file
- Extracting data from multi line field value pairs
- Execute a command after some time if no input from user
- How to make TeamViewer service be on-demand rather than always-on?
- Tap-to-Click is Shown, but Can't Be Toggled
- How to remove/uninstall Apache Netbeans if there is no uninstall.sh?
- How to configure dnsmasq on Mint-18 with NetworkManager?
- how to repair uefi boot option
- NixOS: How do I change my group and clean up the bad configurations?
- Prefix and suffix strings to each output line from command
- How can I test the encoding of a text file... Is it valid, and what is it?
Skip password prompt and pass password to ssh-add in script Posted: 24 Mar 2021 10:09 AM PDT I'm trying to write a script that automatically unlocks all of my rsa keys with I use However, it gives an error: But if I just run Can someone please help me? |
"symbol lookup error: /usr/lib/x86_64-linux-gnu/libnssutil3.so undefined symbol: PR_GetEnvSecure" Posted: 24 Mar 2021 10:02 AM PDT I'm in puppy linux (Tahr), installed Discord and tried to run it with First the problem was that I didn't have the libnss3.so, installed it. Then I need the libnssutil3.so, installed it. Now when I run: I get: |
What does "Missing value on line X of /var/cache/cups/jobs.cache" mean? Posted: 24 Mar 2021 09:47 AM PDT When I do sudo cupsd -t I get the following error: What does this mean? |
Is there a way to detect the user's password entry in sshd to warn that they must change it? Posted: 24 Mar 2021 09:54 AM PDT I have a box I would like to distribute as a Vagrant box (and eventually Dockerfile). the initial password specified in the An acceptable workaround if not would be reading the number of keystrokes and if 4 are detected warn the user that way. A REALLY good feature would be to change the password if the user doesn't reply after 3 times. (NOTE: I'm following a tip from a reviewer that this is a better place to post this question than stack overflow proper) |
How should I create and use a filesystem for a build server? Posted: 24 Mar 2021 09:46 AM PDT I'm about to add a new (virtual) disk to one of my build machines, that runs on a VM host I have no control over. This will be used for compiling large amounts of source code (a Yocto distribution) from sources that are obtained elsewhere (Web servers or Git repositories). Read and write speed for the many small files and a few very large files is my most important consideration. Long-term data integrity is of low importance, as everything can easily be re-created: I'm comfortable with losing files when there's an unplanned power interruption, for example. I think I'm going to use an What There's a similar, but old, question on Server Fault; I'd like advice that's relevant in 2021. |
Find and print the length of the longest line in multiple files? Posted: 24 Mar 2021 09:53 AM PDT In my folder, I have 2000 files, which are labeled A0001-A2000. In the second line of each file, there is a long (it should be the longest) line of characters. I would like to print all the file names with the length of the second line in one output. so the output will look something like If it is helpful I already have a code that will print the longest line of a file, but I am not tied to using awk if there is an easier way. |
Libreoffice's instert special character window looks HUGE (can't resize to smaller) Posted: 24 Mar 2021 09:40 AM PDT I write this post because I have the doubt about this being a libreoffice bug, a GNOME bug... or what could be the cause, because I don't seem to find and issue related to this anyware else. When I go to Libreoffice Insert > special characters menu, the window that opens with the characters, is huge and doesn't fit on the screen, so I can't really use it. I used to be in Debian 10 (since it came out up until 2 months ago) and now I'm in Debian testing. Back in the day I had installed the flatpak version (so, the "fresh" version; the last one I had was v. 7.1, I believe) of libreoffice and had the same issue. I thought back then that the problem might be due to using a flatpak (sometimes they don't integrate well with system themes... etc). But now I've realized that I have the same problem with the official repos from Debian bullseye: I'm running LibreOffice 7.0.4.2. Having the same problem in different number versions... and both flatpak and regular repo packages... makes me thing the problem should be something different. I'm now running GNOME 3.38.4. Back in the day, GNOME 3.30 in Debian stable. I can make the window a bit bigger, but I cant make it smaller! It's twice my desktop resolution (1440p) in high, so it is impossible for me to reach the INSERT button... lol! I rarely use this option, but when I need it... I end up searching for the character online and copy&pasting... which doesn't seem ok. Anyone else has this problem? Do you guys have any idea what should I try? EDIT: I searched about how to report a bug in libreoffice, but I've never used bugzilla, so I thought I should ask first. |
Posted: 24 Mar 2021 09:29 AM PDT I have the following Script File 'bored.sh'. This file recursively calls itself. I realized that this is a bad approach as it creates several instances and runs many processes that uses the system resources and ultimately crashes the system. How do I terminate/kill all the previous instances of the scripts after they are executed (series of API call and store those response to file) sequentially but make sure this script runs indefinitely as only one or few child process and create less stress to my system? |
iptables: Route outgoing requests to a local proxy preserving destination address and port Posted: 24 Mar 2021 09:15 AM PDT I want the proxy to make some routing decisions based on the original destination IP and port. I can do this easily for an incoming request: This intercepts the packets headed for 10.87.253.90:8080 on local port 8081 of the proxy. But how can I intercept an outgoing request and redirect to a local port retaining the original destination address? |
Posted: 24 Mar 2021 09:11 AM PDT |
Wifi isnt working after using wifite [duplicate] Posted: 24 Mar 2021 09:17 AM PDT I was using wifite command I know that WiFi state goes to down when we run wifite command. And, WiFi state goes to up after restarting laptop also. I was running that command few hours ago. When I restarted my laptop I noticed it(WiFi) was working properly. But, when I have start laptop again I am not getting any WiFi list even WiFi isn't showing after typing ifconfig Sorry I am unable to format my question and copy and paste those texts from terminal. ~ cause, I am using Unix SE from android device I have tried answers from here when I tried |
BASH command not found when executing in remote linux cluster using shell script Posted: 24 Mar 2021 10:13 AM PDT I am trying to automate a few steps that I need to execute in a remote linux machine from my local ubuntu computer. My shell script is as follows :- When I am trying to execute it by collecting the However, when I do it manually i.e. ssh into the cluster and than run this command , I am able to execute it. Troubleshooting till now
However, when I do the same via the script,I don't get any which means that qlogin is not installed.
What should I do ? |
How do I determine which filesystem is in use on my "Microsoft basic data" partition? [duplicate] Posted: 24 Mar 2021 09:10 AM PDT I'm looking at WD Mybook disk, connected via USB as disk but what's that? I don't quite understand what the Wikipedia page is telling me about this partition type. It seems to be auto-mounted fine, and still I don't undestand what filesystem is in use. |
Push etckeeper created repository to remote Gitlab server, advices welcomed Posted: 24 Mar 2021 08:05 AM PDT I'm playing with etckeeper and it seems to be a good product. I use it only to track /etc filesystem locally, but these days the idea came to my mind - to create central Gitlab repository and to store all the node /etc repositories there. The question is how can I do that? I noticed in the config of etckeeper, there is a variable called: PUSH_REMOTE="", but do I have to create separate repository for every server or I can use one and combine all the servers in it? Maybe I can use branches? Or different folders? Any advice's are welcomed. I will try to do it in manual way, and if it works I will think how to do it in automated way, via Puppet or Ansible.. Thanks in advance. |
egrep matching lines that shouldn't match Posted: 24 Mar 2021 07:41 AM PDT I am trying to find out if any of the floats in the first column containing floats in a CSV have a 1 after the decimal point. Here is an example row from my CSV:
The seventh column is the one I am interested in, and in the row above it does not have a 1 after the decimal point (125.0) I've come up with two potential regular expressions: or These both seem to work, i.e. on a regex test page (like regex101 here and here) the line correctly fails to match either regex. But when I try them at the terminal like this or then the line is listed as a match. Why does |
Run thousands of simple scripts in parallel Posted: 24 Mar 2021 09:34 AM PDT I would like to run a simple python script in ~6500 directories. The easiest, and least efficient way is to do: This obviously takes forever. Instead, I try to run in parallel: Then run this task as such: After ~500 runs or so, I get the following error: Is there another way to parallelize? |
Unable to use "SSH" command while connecting to Rasperry Pi (Octoprint) Posted: 24 Mar 2021 08:50 AM PDT On my Mac (Big Sur v11.2), when I open Terminal, I receive the statement "The default interactive shell is now zsh. To update you account to use zsh, please run 'chsh -s /bin/zsh'." I receive this both on my MacBook Pro and iMac. So I ran When I type To me, that means the command is not in the directory that I'm located, but I could be wrong. Going off other troubleshooting I've found, when I run the command Not sure where I should go from here. |
Docker is not running when trying to create a Laravel application Posted: 24 Mar 2021 07:33 AM PDT I am starting with Laravel and I am following the installation guide from the official website. So I had to install Docker with this guide. When I run the last command it works fine
Then, following the guide on the Laravel site, I run the command:
to create a Laravel application as it said. But when I do so it doesn't work and this message appears:
The output of systemctl status docker I have no idea what I'm doing wrong. I'm using Xubuntu 18.04 |
Replace specific lines of a file with values of other file Posted: 24 Mar 2021 07:30 AM PDT I would like to replace the 2nd, 6th, and 7th rows of Desired outcomes: |
Extracting data from multi line field value pairs Posted: 24 Mar 2021 09:37 AM PDT I have a file containing file value pairs in multiple lines. I need to create a table as: How do I do it using I tried formulating the following command based on answers on Stackexchange but failed to get the desired output. I am getting an error: Edit 1: The separator is a tab or space. And the format is just as shown above. |
Execute a command after some time if no input from user Posted: 24 Mar 2021 09:53 AM PDT For zsh, see the EDIT section in the accepted answer Let's say I have the following in my I would like I tried the following, with a backgrounded but a change of the value of How to achieve what I want? |
How to make TeamViewer service be on-demand rather than always-on? Posted: 24 Mar 2021 07:16 AM PDT I am on Linux Mint 19.3 and would like to make the TeamViewer systemd service only run when I launch the GUI app ( In Linux, I have TeamViewer 15 (installed via deb file from official site). I am seeing that the systemd service file has: and the service autostarts during login which I don't want. I don't mind hacking out a new bash script to start the service just before launching the gui but I'm not great with editing systemd services and had a concern about new versions overwriting my changes. Questions:
|
Tap-to-Click is Shown, but Can't Be Toggled Posted: 24 Mar 2021 07:18 AM PDT The touchpad on my laptop is a poor design, because it doesn't recede down into its housing to avoid my thenar and hypothenar's proclivity for inadvertent tap-to-clicks. In Ubuntu 19.10, using this same laptop, I was able to toggle off "Tap to Click", as shown here. However, in Kubuntu 20.04, this option is grayed out (disabled), and cannot be Toggled: Is there another way that I might disable Tap-to-Click, given that the GUI isn't offering the ability to toggle this setting? |
How to remove/uninstall Apache Netbeans if there is no uninstall.sh? Posted: 24 Mar 2021 07:54 AM PDT Some time ago I installed Apache Netbeans on my Linux Mint laptop, but since there are no official installers for the LTS version, I downloaded the binaries and unzipped the archive they were in. Since I was using the binaries-version and it was not installed with any installer or through software center, can I just delete the Netbeans folder in my User directory (and other files/directories associated with Netbeans)? There is no uninstall.sh anywhere. |
How to configure dnsmasq on Mint-18 with NetworkManager? Posted: 24 Mar 2021 10:05 AM PDT I am learning linux networking. I am very confused by the config file locations. What I read on the web doesn't match how my machine is set up. I am using Mint 18. I am using network-manager & dnsmasq. On the dnsmasq setup page, they mention that dnsmasq can be configured in However there is a I think (alhtough I do not know), that If so what is |
how to repair uefi boot option Posted: 24 Mar 2021 08:07 AM PDT I somehow erased all the boot options in my bios (maybe caused by some operation using super-grub disk). I have tried to fix my grub using boot-repair live-usb. After performing recommended repair and reboot, there is still no boot option in the bios, and I'm brought to the bios setup screen itself everytime I boot. Complete information about my setup is here. The whole story started when I found my windows cannot boot (BCD broken error). Then I thought it was a grub issue so I used boot-repair in my linux and performed the recommended repair. Then I found I cannot get into my linux either, only left with a grub> prompt. So I tried super-grub disk and super-grub2 disk live. Then I found I've basically erased all my boot-options in the bios/uefi. Now I've installed another linux (kubuntu) in hope that the new installation could fix the grub, but it didn't. So I finally tried boot-repair live usb and performed the recommended repair, but still no luck. Any idea how to fix this? |
NixOS: How do I change my group and clean up the bad configurations? Posted: 24 Mar 2021 09:03 AM PDT This is my current users expression My problem is that |
Prefix and suffix strings to each output line from command Posted: 24 Mar 2021 10:06 AM PDT I have ran into a problem trying to write a Bash script. When I would also like to note that I'm piping |
How can I test the encoding of a text file... Is it valid, and what is it? Posted: 24 Mar 2021 08:56 AM PDT I have several The HTML meta tag states "charset=ISO-8859-1". Jedit allows a List of fallback encodings and a List of encoding auto-detectors (currently "BOM XML-PI"), so my immediate problem has been resolved. But this got me thinking about: What if the meta data wasn't there? When the encoding information is just not available, is there a CLI program which can make a "best-guess" of which encodings may apply? And, although it is a slightly different issue; is there a CLI program which tests the validity of a known encoding? |
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