Recent Questions - Unix & Linux Stack Exchange |
- Speedtest can't find a server
- Can't execute sh file on embedded linux
- tar creates an absolute sub directory within the compressed file
- Help to improve a bash script to run jellyfish a multiple files in multiple directories
- Duplicate/Export Permissions of entire file system
- Arch Linux's pacman not installing / updating packages (404 download error)
- Mounting parts of root filesystem read-only
- How to add copy paste feature for Kodi
- How to find out why Linux Mint won't connect to wifi?
- Regular expression does not work with Tellico (KDE5)
- Curl - sending multipart-formdata json from file
- How to remove \n in a string
- SSH script using file
- Make Linux bootable from laptop SD card not visible in the BIOS/UEFI Boot Options menu
- How to get BIOS Device Name from Linux, same as Windows Device Manager format
- How can I print the name of the book and author from a book text file by using command?
- Asynchronous Child Process in FastCGI Script
- Linux as a router to forward
- Docker:Error response from daemon: failed to create endpoint mvpn
- How to make gtk button execute a terminal command when clicked using vala
- Can't read ~/.Xauthority after implementing NFS Kerberos mount
- how to use ipu3-cio camera in linux
- Linux backup utility for incremental backups
- Failed to Raise Network interfaces Debian 9 Fresh
- How to find IP address from mac address by spoofed request to DHCP server?
- Window manager with wayland?
- Convert video to exactly the same format as another video
- How to remap keyboard shortcut for context menu in Xubuntu
- Is it possible to run pure GNU?
- How can I change what's displayed at a login shell?
Posted: 07 Jun 2021 10:15 AM PDT Err:6 https://deb.parrot.sh/parrot rolling Release Could not handshake: An illegal parameter has been received. [IP: 51.178.92.105 443] Hit:7 https://download.sublimetext.com apt/stable/ InRelease Err:8 https://deb.parrot.sh/parrot rolling-security Release Could not handshake: An illegal parameter has been received. [IP: 51.178.92.105 443] This is the error message produced when I try to run apt-get anything, it simply doesn't work. I have a 250 megabit fiber connection on which when I try to do apt-get this happens, but it seems to work just fine when I connect it to my phone's data connection and speedtest.net never ends up finding a server. Is there something wrong with my setup or is it my isp? |
Can't execute sh file on embedded linux Posted: 07 Jun 2021 10:12 AM PDT I had no idea what firmware is this but it is a modified huawei firmware for a router. I needed a better firewall Domain name control since huawei only give 16 domain slots to be blocked. I can't afford a Pi right not but Ive managed to install openVPN Cli with custom Ui to it. No I a trying to install Pi hole on it and push all the files to /tmp in the router storage through ADB so I am guessing the firmware is sort of android Linux. Now I have access as well to Telnet but not ssh as its as modified firmware. I installed busybox as well successfully that provides me additional tools to it. I have no problems with installation that dont require root access except Pi hole which needed to have one. tried using I tried as well using adb shell sh as it works with my other sh scripts This is the only info I have, |
tar creates an absolute sub directory within the compressed file Posted: 07 Jun 2021 10:03 AM PDT I would like to I am
However, this causes How do I fix this? |
Help to improve a bash script to run jellyfish a multiple files in multiple directories Posted: 07 Jun 2021 09:48 AM PDT I have a directory tree like this: Where *fna.gz is a compressed fasta file: And each GeneraName/chromosomes directory has 1 to 1500 gzip fasta files and I want/need to run a tool called jellyfish (count subwords/n-grams/kmers in a input fasta file) in my data at these directories('Data/bacteria_splitted/GeneraName/chromosomes'). I want to put the results(mer_counts.jf) in But jellyfish wont works in gzip files and then I need to decompress and pipe the file to jellyfish. The manual says I can use generators: "How to read multiple files at once? Often, jellyfish can parse an input sequence file faster than gzip or fastq-dump (to parse SRA files) can output the sequence. This leads to many threads in jellyfish going partially unused. Jellyfish can be instructed to open multiple file at once. For example, to read two short read archive files simultaneously: Another way is to use "generators". First, create a file containing, one per line, commands to generate sequence. Then pass this file to jellyfish and the number of generators to run simultaneously. Jellyfish will spawn subprocesses running the commands passed and read their standard output for sequence. By default, the commands are run using the shell in the SHELL environment variable, and this can be changed by the -S switch. Multiple generators will be run simultaneously as specified by the -G switch. For example: The first command created the command list into the 'generators' file, each command unzipping one FASTA file in the current directory. The second command runs jellyfish with 4 concurrent generators." A generator is a file like this: I got something like this: But I need improve it because I have different number os fasta files to read for each genera and by my understanding, if I use generators I only count 1 fasta file by genera and not all what I need if I can anticipate the number of generators. Because the current count overwrite the previous count. There are any way I can solve this? I have not many experience with bash so... any help would be great. Thanks. Paulo |
Duplicate/Export Permissions of entire file system Posted: 07 Jun 2021 10:10 AM PDT I was making a few modifications as root user on my server today and accidentally ran
I noticed quickly, but not fast enough to stop some of the directories from being changed. I have a backup of the entire file system as a AWS EBS Snapshot, but it would take a long time to update everything to where my current system is. The permissions haven't changed though. Is there any way to copy the permissions of the entire file system from the backup and apply it to my current instance? I'm running Amazons version of Linux. |
Arch Linux's pacman not installing / updating packages (404 download error) Posted: 07 Jun 2021 09:09 AM PDT The whole thing started like a half a year ago, when pacman started throwing 404 errors on random package downloads, thus halting the whole package installation / update process. Executing Digging the issue, I've realized the requested package file was always version-wise older than its updated counterpart on the server (mirror): i.e. pacman requested mesa-21.1.1-1-x86_64.pkg.tar.zst as per recently updated official extra repository (namely Is there any explanation to this issue, and is there any way to fix it? |
Mounting parts of root filesystem read-only Posted: 07 Jun 2021 10:11 AM PDT I have an embedded device that I want to harden against data corruption due to unexpected power outages. It is a vanilla Ubuntu 20.04 LTS build with an app in a docker container on top, and I have established the handful of directories in the root filesystem that are touched by the app during normal operation. My intention is to mount all but those directories read-only. Is it possible to mount some of the RFS in a RO partition and the rest in a separate RW partition, or is there a better approach to this? Much appreciated in advance! |
How to add copy paste feature for Kodi Posted: 07 Jun 2021 08:54 AM PDT ctrl + v doesn't paste on kodi linux, but I read somewhere it works on windows Kodi. Is it some sort of configuration problem that's why Kodi on my machine does't allow me to copy paste, if that's the case how do I fix it. |
How to find out why Linux Mint won't connect to wifi? Posted: 07 Jun 2021 08:47 AM PDT On Linux Mint 20.1, how can I find out why can't I connect to the Wifi? I have wifi tethered from Android phone and I tried to connect as: I just edited the password to this post. But how can I debug why Mint won't find the network? |
Regular expression does not work with Tellico (KDE5) Posted: 07 Jun 2021 08:46 AM PDT I installed latest version 3.4.1 of Tellico on Mageia-8. It does not work either when I use regex on When I click on I installed |
Curl - sending multipart-formdata json from file Posted: 07 Jun 2021 08:15 AM PDT I need to send a My payload is JSON, but it's really big, so I can't send it directly via curl (Argument list too long). Instead I need to require the content via a file Without getting the content from a file everything works fine => But when I put the same (small test) json in a File and use that in my curl command. The result on the server side is different => The file (curl_data3.json) just contains It seems like I'm just sending the file itself and not the content of the file :-/ |
Posted: 07 Jun 2021 10:12 AM PDT I have a tab delimited text file where the 23rd column with string has \n in it which causes it to break to the next line. I opened the text file in vi and enabled white space characters and I can see that the values in DESCR2 field have blank lines breaking the string. The string is contained within tab delimited characters and I am trying to remove the \n and have the string concatenate to ABC 123 while still in 1 field . I have tried I also tried Example: Desired output: |
Posted: 07 Jun 2021 09:17 AM PDT I have been using the following script to remote into my systems: It is becoming tedious to fill in the HOSTS= I would like to read the hosts from a text file. How would I modify this script for that to work? Thank you. |
Make Linux bootable from laptop SD card not visible in the BIOS/UEFI Boot Options menu Posted: 07 Jun 2021 09:34 AM PDT I have an Acer Aspire R15 laptop, and I need to have a Linux run from the internal SD card slot. There is no SD card option available in the Boot Options menu. I have Windows 10 installed on the main SSD, with ~100MB EFI partition (49MB free space). I have installed Arch Linux on SD card, chrooted into it, mounted EFI partition as /efi (leaving /boot on the SD card), added an UEFI record with So, the question is: is there a way to set up an .efi binary on the EFI partition to have it embedded a minimal kernel with SD card modules installed (disk space usage is the key), with its only purpose to make the SD card reachable, and chainload the full-featured kernel, initram etc on the SD card? Or is there any better other way? Doing so by the means of GRUB/efibootmgr/other_bootloader is preferred (rather than doing lower-level stuff that is error-prone and needs manual support on system updates). Repartitioning the main SSD, or using an USB SD adapter, or whatever similar, is not an option. Update: Solution #1: (yet seems more of a hack than a proper solution, other solutions welcome) As per @alex-stragies advice, I got it working by setting the boot folder on the Windows partition. The whole sequence is as follows:
That should be it. The boot chain is as follows: the UEFI shell executes grubx64.efi binary on the EFI partition, it follows the link to the Windows partition with the boot folder, GRUB loads the initrd environment with the kernel (SD card support becomes enabled at this point), the / (root) partition on the SD card is mounted, and the usual boot process continues thereafter. |
How to get BIOS Device Name from Linux, same as Windows Device Manager format Posted: 07 Jun 2021 08:19 AM PDT My laptop has a display adapter and from Windows 10 I can see its BIOS Device Name from.. Device Manager > Display Adapters > Properties > Details > "BIOS device name" And from there I get a pop up window saying something like: How can I get that information if the same laptop is running Linux? Cheers UpdateI need this information because I am building a hackintosh and need to build a SSDT to create a display backlight fix. I would like to help out at the I tried I tried These are the commands I have tried so far with Extract the binary ACPI tables from acpidump output I now have seven ssdt*.data files. I disassemble the binary table of ssdt1.dat into human source This gives a large .dsl file, this is just the first 60 lines of over a thousand.. I think maybe I need to dissasemble Maybe Any other help much appreciated. Flex |
How can I print the name of the book and author from a book text file by using command? Posted: 07 Jun 2021 08:24 AM PDT I have a book text file and I want to extract the name of the book and the author and use them to compose and print the following sentence in this particular format = " This is Peter Pan and it is written by James M. Barrie. " I need to use awk or grep. The text file I have starts like this: |
Asynchronous Child Process in FastCGI Script Posted: 07 Jun 2021 09:09 AM PDT Suppose that I want my server to sleep on any HTTP request to the path Using nginx with FastCGI, I have configured the path in the nginx configuration: This invokes the following script ( Even though this will sleep the system, FastCGI will block until the child process completes, meaning that the web request will not complete before the system sleeps. So, how do I detach that final command from oversight by FastCGI so that the response completes, yet the command continues in the background, in this case ultimately to sleep the system? |
Posted: 07 Jun 2021 08:27 AM PDT How to make an OpenStack instance to forward route to another Linux machine which is not OpenStack instance but in the same LAN? I want PC_B to reach Note: PC_B is an OpenStack Instance. It's private IP is 192.168.118.10/27 and public IP is 192.168.1.140/27. PC_A has |
Docker:Error response from daemon: failed to create endpoint mvpn Posted: 07 Jun 2021 08:27 AM PDT Everything was working, but after creating a |
How to make gtk button execute a terminal command when clicked using vala Posted: 07 Jun 2021 10:04 AM PDT How do I make it so when a gtk button is clicked it executes a terminal command using gtk3 and vala? |
Can't read ~/.Xauthority after implementing NFS Kerberos mount Posted: 07 Jun 2021 09:10 AM PDT I'm using debian Buster where I have Kerberos, LDAP and SSSD working. I was monting my home directory to the client using NFS however I realized it was insecure. So I implemented kerberos mounting. However when trying to login through lightdm on boot it goes black and boots me back to the lightdm login screen with no error. I found this in I logged in as root from Here is my Here is my Clients keytab file as requested. NFS principals in Kadmin on server I've been debugging this for sometime and I'm really struggling to get anywhere. The mount looks like its mounted correctly. My user has a kerberos ticket. The permissions look perfect and the I can read/write with the same user just fine on the server. Please let me know if you need any more information to help fix this issue. Update I found this in the auth log of the server when I try to login on the client. However I don't know why as I'm running ntp on the server and have ntpdate on the client pointing to the server. Also if I run |
how to use ipu3-cio camera in linux Posted: 07 Jun 2021 09:24 AM PDT I have a Thinkpad X1 Tablet (gen 2) with a front and back integrated camera running Ubuntu 19:10. The cameras appear to be detected:
When I start cheese I have 4 cameras labeled "ipu3-imgu". When I run guvcview I have 10 devices labeled "ipu3-imgu" which the system puts at /dev/video0-9 and four devices labeled "Intel IPU3 CIO2" which are /dev/video10-13. But none of these work. Does anyone have a laptop with this kind of camera running Linux? Does anyone know of a resource on debugging this kind of camera in Linux? |
Linux backup utility for incremental backups Posted: 07 Jun 2021 09:27 AM PDT I'm looking for a backup utility with incremental backups, but in a more complicated way. I tried rsync, but it doesn't seem to be able to do what I want, or more likely, I don't know how to make it do that. So this is an example of what I want to achieve with it. I have the following files: I want to run the backup utility and basically create an archive (or a tarball) of all of these files in a different directory: Now, let's say the following day, I add a file, such that my structure looks like: Now when I run the mystery command, I will get another tarball for that day: Here's the kicker: I want the backup utility to detect the fact that So as a last example, let's say the next day I changed With this system, I would save space by only backing up the incremental changes between each backup (with obviously the master backup that has all the initial files), and I would have backups of the incremental changes, so for example if I made a change on day 2, and changed the same thing again on day 3, I can still get the file with the change from day 2, but before the change from day 3. I think it's kinda like how GitHub works :) I know I could probably create a script that runs a diff and then selects the files to backup based on the result (or more efficiently, just get a checksum and compare), but I want to know if there's any utility that can do this a tad easier :) |
Failed to Raise Network interfaces Debian 9 Fresh Posted: 07 Jun 2021 10:03 AM PDT i have a Debian 9 64bit server and fresh installed. Just noticed that the Networking manager is not working properly since my Webinterface kinda doesnt like that. Any idea? |
How to find IP address from mac address by spoofed request to DHCP server? Posted: 07 Jun 2021 10:16 AM PDT EDIT the selected answer solves the broader problem that I was trying to solve, which is "Given selected mac addresses, how do I efficiently find each mac addresses corresponding IP address on the local network?". ORIGINAL: I need to write a program to find out the IP addresses of machines on my local network. I have the mac address of the machines. Given that DHCP servers return the same IP address for a given mac address, would it be possible somehow to send a DHCP request to the server, insert the known mac address, and capture the response, which presumably has the correct IP address in it for that mac address? FURTHER INFORMATION: I tried arpwatch and found it to be unreliable. Much more satisfactory was addrwatch https://github.com/fln/addrwatch |
Posted: 07 Jun 2021 09:01 AM PDT I was wondering if there is a up-to-date list with the common window managers and their status with Wayland, i.e. what is working, what is not, and how usable they are (especially Gnome and KDE). I only know that there were some problems with KDE and Wayland in november (KDE 5.5), but I do not know the current status both for KDE and Gnome. Is there a list for both (and others, not so well-known?)? |
Convert video to exactly the same format as another video Posted: 07 Jun 2021 08:55 AM PDT Suppose I have two video files A and B. Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B. Is there a way to do this automatically (i.e. without extracting the information manually and giving it manually as input parameters) using a command line tool (or even a GUI tool)? |
How to remap keyboard shortcut for context menu in Xubuntu Posted: 07 Jun 2021 09:57 AM PDT I'm using Xubuntu 14.04 and typing on a keyboard without "Windows" and "context menu" keys (Unicomp Model M). Currently, I get context menu (mouse right-click) with Shift+F10, but when touch-typing, I often miss F10 key. I wanted to create keyboard shortcut (Alt+F1) for context menu, so when I opened keyboard settings in Xfce I expected to find definition of that shortcut (like I did for Whisker Menu, which I remapped to Alt+`), but it wasn't there. |
Is it possible to run pure GNU? Posted: 07 Jun 2021 09:11 AM PDT On the GNU Project webpage, there's a subsection called "All GNU packages" which lists the various software in the GNU project. Are there any GNU distributions which use only these packages -- i.e. a "pure" GNU operating system that runs on only GNU packages? I'm not particularly interested on whether this would be a practical operating system, just if it's theoretically possible to run GNU Hurd with purely the GNU packages. If not, what kind of software must still be implemented to achieve this goal (i.e. what's missing)? If GNU Hurd is the limiting factor, than if an exception is made for the kernel, would a pure GNU OS be possible using the Linux kernel? |
How can I change what's displayed at a login shell? Posted: 07 Jun 2021 08:34 AM PDT I'm getting more familiar with tweaking the way things look in a shell via the prompt ( On my home Mint computer, here's what I see when I log in: Where is this defined? How can I tweak it for some mad ASCII art ACTION? |
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