Recent Questions - Unix & Linux Stack Exchange |
- How to remove Firefox supplementary English spellchecking dictionaries?
- Avoid printing of 'tee' trace line
- Exclude last N lines that has been last modified from list and with file extension ending in .gz
- Copying files from USB drive fails - I/O error or Invalid Argument
- libopenjp2-7-dev : No package found even after installing package in docker container
- when `mv` command delete original directories or files
- `json.decoder.JSONDecodeError` when executing `list queues` with `rabbitmqadmin`
- Can't copy files to folder due to space issue after mand mount
- Why must gparted be run as root?
- Making two files same length by taking average of specific values in a column according to a given row
- line start string and end string matches then it needs to replace end string of a line and ignore any string that matches in between of same line
- When pressing tab, how can I make fish complete to directory/ instead of directory/prefix?
- How to move a set of files and directories, excluding another (sub-)set
- rename the header of multifasta files
- I have text file. want to add commas to time/date stamp in txt file or convert below text to csv in 3 columns
- pip install gives TypeError: expected string or bytes-like object
- rename the filename
- Ubuntu will no longer boot after upgrade from 20.04 to 20.10
- SSH - Permission denied (publickey) - doesn't work in case of one node
- Unable to connect to remote server using lftp
- CentOS7 full disk encryption
- Kali Linux inverted scroll direction
- Exclude the output from ssh and only log the error if found
- Removing KDE from Fedora21, groupremove not working
- Force pubkey-auth user to set password at first login
How to remove Firefox supplementary English spellchecking dictionaries? Posted: 18 Jul 2022 03:36 AM PDT Normally I have the US English spell-checking dictionary as default then I add others that I need (French, Romanian, etc). But in Fedora 36 Firefox came with a lot of different English dictionaries that fill the menu.
|
Avoid printing of 'tee' trace line Posted: 18 Jul 2022 04:24 AM PDT I have the following in a script: The output is: Can the |
Exclude last N lines that has been last modified from list and with file extension ending in .gz Posted: 18 Jul 2022 04:03 AM PDT I want to use the I want to get the output shown below by retrieving only the uncompressed files, but excluding the last 2 files from the bottom: Output command must achieve: I am able to exclude the last 2 lines using the Using The above The file |
Copying files from USB drive fails - I/O error or Invalid Argument Posted: 18 Jul 2022 03:21 AM PDT I'm trying to copy files from an USB stick to another drive. At least the file names appear to be corrupt, Copying fails with errors like these: On the chance that only the filenames are corrupt, I tried this:
Are these files lost for good, or is there a tool I can try to recover them with?
|
libopenjp2-7-dev : No package found even after installing package in docker container Posted: 18 Jul 2022 01:11 AM PDT I have been trying to run some commands at the docker entrypoint
However, I get an error message as Here are all the things I have done till now:
Some help will be deeply appreciated. I just don't understand why it is not able to find the package libopenjp2-7-dev |
when `mv` command delete original directories or files Posted: 18 Jul 2022 01:00 AM PDT I am moving a large directory(contains many other directoris and files), after several minutes, I found that the original directory is not getting smaller, still the same size as begining. Does |
`json.decoder.JSONDecodeError` when executing `list queues` with `rabbitmqadmin` Posted: 18 Jul 2022 01:59 AM PDT I want to list available queues on a remote RabbitMQ server with the following command: But it ends with an error: I have tried lots of variants of the command: without credentials, with
The error may indicate a problem with python, but how the workaround may look like? Installing another version of rabbitmqadmin (the current one is 3.8.2) or another python version (the current one is 3.8.10)? I've also downloaded rabbitmqadmin from the remote server as explained here https://www.rabbitmq.com/management-cli.html and used it. The downloaded version was 3.8.19 but it didn't help. Not sure what is going on behind the scenes that causes this error... |
Can't copy files to folder due to space issue after mand mount Posted: 18 Jul 2022 12:44 AM PDT I tried doing mandatory mount using the following the command Now when I am trying to copy a folder to the mounted directory, its giving me error Error : This is the output of |
Why must gparted be run as root? Posted: 18 Jul 2022 02:15 AM PDT My user has access to USB-block devices (member of group plugdev). But even so gparted needs to be run as root: Is there any technical reason for this? I have a full disk image including partition table in a file. Running gparted on this fails, so I instead have to do the Is there any technical reason for this? |
Posted: 18 Jul 2022 03:51 AM PDT I have two CSV files of differing lengths (can easily convert format if needed). The goal is to make the files the same length in terms of chr values (in the first column) by copying data from the shorter file. The number of chr's for each chr will be different. For example, file A may have 4 chr6 and 8 chr9 while B may have 4 chr 6 and 20 chr9 values, but file B will always have more (or the same). So I want to check the specific chr values between each file and make sure they match, and if they don't then create a new row for file A so more chr values can be added. For the samples where there are more chr instances, I need to fit the start and end cols (col 2 and 3), and then average the seg.means across that distance (see output). A python or linux solution would be great. Ideally, file A would then look like this (note how seg.mean col changes): And file B would look like this: Thanks! |
Posted: 18 Jul 2022 03:55 AM PDT Require a shell script for the below issue If a line starts with elecj_test: and ends with || it needs to replace with | | Here Space is added in between | | In the middle of the line if it is found || it must not replace only it must replace at end of the line. |
When pressing tab, how can I make fish complete to directory/ instead of directory/prefix? Posted: 18 Jul 2022 01:40 AM PDT I'm using fish shell. Let's say that I have a directory named If I type I would prefer it if fish completed to |
How to move a set of files and directories, excluding another (sub-)set Posted: 18 Jul 2022 01:41 AM PDT I have two bash arrays, one of them (named This is the test directory structure: Desired outcome after moving: In The solution I have in mind, is using find to obtain a list of all paths (including the contents of the dirs) in the toMove array, iterating over this list and filtering out all paths starting with the paths in the exclude array. Is this the right approach to the problem, or is there a simpler and/or more elegant way (possibly using some standard utilities) to solve this? UPDATE: As it turns out, this problem is not as trivial as one might think first looking at it and this question was poorly phrased -- it should have been about "filtering out paths from other paths, preserving unaffected trees as a whole". I ultimately went with the solution below, although it does not preserve empty leafdirs and has the second drawback that it moves each file, when it would be sufficient, to move only a parent tree in some cases. (moveFile is an exported bash function that handles the moving. parallel was used to speed up the (few) times when the script will not operate on one filesystem.) Stéphane Chazelas' answer told me a lot I didn't know before and seems to be the way to go, if |
rename the header of multifasta files Posted: 18 Jul 2022 01:52 AM PDT I have multi-fast files like this I want to rename the header like this by but I just know to remove the penultimate letter of each line. Can you give me some advice? |
Posted: 18 Jul 2022 02:12 AM PDT I have text file. want to add commas to time/date stamp I want output like below and need to convert to |
pip install gives TypeError: expected string or bytes-like object Posted: 18 Jul 2022 02:22 AM PDT I have seen this error in other sites and in here as well, but the solutions provided are not fixing it. Operating System: Mendel GNU/Linux 5 (Eagle) (debian). When trying to install I could not find the file I edited both files that have This did not affect the output of the pip3 install, the change was: I then proceeded to change the other files that had But nothing is changing. I've seen that it might be a problem of the wheel in debian (the error is not exactly the same, but downgrading the wheel seems kind of okay?), but I am not sure nor do I know how much can this screw my system (I've had package manager problems before and had to delete my linux distribution, so I want to be careful). EDIT: pip3 version: EDIT: This problem arose when trying to install PyAccessPoint. For some reason, installing it the hard way, worked, but still doesn't fix this issue nor future issues with the wheel: |
Posted: 18 Jul 2022 02:21 AM PDT The following files exist in the current directory and i want to rename the current file like this I'm using the below script to get it but it's failed anybody can give me some advice? or maybe i should try the "Split" , appreciate it |
Ubuntu will no longer boot after upgrade from 20.04 to 20.10 Posted: 18 Jul 2022 01:03 AM PDT Thanks in advance for the help. I have a Dell Precision 7540 that has Ubuntu 20.10 installed (previously 20.04). It is a pretty normal installation with a single physical nvme disk, with separate partition for boot and LUKS on the main partition. I can no longer boot past the Grub boot screen. The options I have to select from are: Ubuntu with Linux 5.8.0-26-generic Ubuntu with Linux 5.8.0-26-generic (recovery mode) Both of these options have the same behavior. After 10-15 seconds, it brings me to a (initramfs) prompt. Typing exit gives the following: Things I have tried: I have tried booting from a Live USB, and I can successfully mount the LUKS partition. I have installed and run boot-repair from the live USB, and after the repair, it gave me a pastebin link, below, but still will not boot: http://pastebin.ubuntu.com/p/HxXj4qfrqS/ I have also chrooting into my installation and running update-grub, grub-install, and update-initramfs, but none of these have changed anything. Let me know if there is any other information that would help to diagnose this. UPDATE: I have gotten it to boot, but only after unlocking the LUKS partition from initramfs. By doing the following command:
|
SSH - Permission denied (publickey) - doesn't work in case of one node Posted: 18 Jul 2022 01:43 AM PDT I have 3 nodes: node A, B and C. A wants to connect to B and C via ssh. B and C are identical servers. A can connect to B but cannot to C. The error I see: I've tried:
What have I missed? What else should I check? So far I fail to see what forbids me from connecting to node C. |
Unable to connect to remote server using lftp Posted: 18 Jul 2022 04:02 AM PDT I'm trying to establish a new ftps connection between two servers, say A and B. Below are the commands I'm using for establishing the connection. I guess i'm able to connect to the remote server but unable to perform operations like It just hangs while performing the |
Posted: 18 Jul 2022 02:06 AM PDT I have one physical server and would like to configure full disk encryption for it. First I was playing around with an virtual machines (CentOS7) and have enabled it during installation: On reboot I get the following prompt and can successfully unlock the drive: AFAICS the Thanks! |
Kali Linux inverted scroll direction Posted: 18 Jul 2022 02:00 AM PDT I have a problem with my Kali installation. Since I have updated it today, the mouse scrolling is inverted. I have tried the .Xmodmap method and also checking 'natural scroll' option but without success. Could anybody help me? |
Exclude the output from ssh and only log the error if found Posted: 18 Jul 2022 03:01 AM PDT This line...I can't exclude the "user authorized" message from the ssh...IFERROR returns the values I need to track, but also, the "!!! AUTHORIZED USE ONLY !!!" horrible message from the ssh... Already tried something like this, but its not working: |
Removing KDE from Fedora21, groupremove not working Posted: 18 Jul 2022 02:42 AM PDT I am trying to remove KDE from my Fedora 21 installation in favor of XFCE. I have tried a few different commands and neither of them work. and also Both fail to find the kde group and remove it. I think it has something to do with the fact that I upgraded from fedora20 with fedup and used the non-product selection. |
Force pubkey-auth user to set password at first login Posted: 18 Jul 2022 04:13 AM PDT When I create a new user account I ask users to send me a public key, and want to force users to set the password the first time they log in with keypair authentication. If I create an account with an impossible/disabled and expired password, but put a pubkey in their .ssh/authorized_keys file, the user is required to change their password at first login, but cannot enter the current one! What is a more appropriate way to go about this? |
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