Recent Questions - Unix & Linux Stack Exchange |
- USB not recognised
- zsh: interpret date in .zsh_history file
- E5105 in NeoVim in Debian 11
- Timeshift broke my OS
- How to setup :0.1 virtual display on-the-fly in X
- Battery loses power even when connected to a good power source
- Virt-v2v VM conversion from esx 6.7 to OLVM 4.3 (ovirt) takes too long
- Grep a stream against a set of "correct" words?
- Why doesn't Qemu boot my custom linux kernel?
- AX_CHECK_X86_FEATURES for CXXFLAGS
- Why am I getting free(): invalid pointer? [migrated]
- Can't encode this string
- Why isn't zsh printf respecting octal notation?
- Code works in bash, not in zsh -- flock on arbitrary fd
- How to get only stdout_lines with Ansible using mail module
- CentOS 7: What is /bin/sh? It looks like Bash but seems to be something else
- Can't update grub config inside a chroot [closed]
- Can you configure NGINX to redirect a HTTP request to SSH connection?
- Cannot generate proper RSA keys using openssl genpkey utility with RSA-PSS option
- How to install Kali Linux from live desktop?
- `du -sh` and `du -sb` gives different result when file being accessed?
- How can I have systemd execute a script only if a service was stopped via systemctl, but not execute if it crashed by itself?
- GNU/Linux: "device mapper: create ioctl failed" "device or resource busy"
- Interpreting output of dmesg and /var/log/boot.log
- How do I change the default text editor in the Debian (squeeze) distro
- What is "Print to File" and can it be used from command line?
Posted: 11 Sep 2021 09:49 AM PDT Hope someone can help, my apologies first as rather confused with Linux as a newbie having only just used Window to date. So her goes : I have a dual boot System Win 10/Linux Mint Cinnamon 20.2 just plugged in my USB but wasn't recognised. Did some research answer seemed to revolve around Gparted to create a partition table, partition and lastly format all in Gparted but couldn't even create partition table as below Further research suggested the USB might be corrupted as full 16 Gb was never there only 10 showing. Needed to replace the partition table with a new one using fdisk see next screenshot Then I should be able to make the filesystem EXT4 but it's still Unrecognised I done nothing and I've run of ideas not even to sure was on right path. Please Help |
zsh: interpret date in .zsh_history file Posted: 11 Sep 2021 08:36 AM PDT I have copied The history command does not seem to have option to specify which file to read. I can simply cat the file, but then I see the non-human readable date format (epoch?): How could I either interpret the history file using some zsh's function, or if not possible, how could I interpret this using some simple python script, so that I can see date format similar to my history example above. |
Posted: 11 Sep 2021 09:22 AM PDT I have installed bufferline plugin on neovim using vim-plug with I use code below in my Version of my neovim: 0.4.4 OS: Debian 11 I install neovim plugins in Why I get this error and how can I solve it? |
Posted: 11 Sep 2021 07:22 AM PDT I am a linux noob who is using Elementary OS. Recently I had to reinstall my OS in order to get the new version of elementary OS (Odin). I had a backup of my file made using deja dups (that I've recovered without any issue) and a backup of the system made with Timeshift. What happened is that, after having reinstalled Timeshift and told him to recover the last version of my system (all using timeshift default option which I thought were legit) the OS just stopped to work. After the reboot in fact the only thing I could see was a minimal terminal exactly like this one I tried to use boot reipair but it didn't worked (it just failed to repair anything). I had to access the boot menu and boot with windows, now I just reinstalled Elementary OS but i still didn't recovered the system using timeshift and I am afraid the issue will happen again. Also I am very curious about what happened and it seems a good way to learn new things about how linux works. Thank to whoever is going to help me! |
How to setup :0.1 virtual display on-the-fly in X Posted: 11 Sep 2021 09:28 AM PDT I want to create a virtual monitor, add it to my current display as a seperate screen (In X sense) and share it over VNC. Now what I want to do is neatly described below in Arch Linux Wiki article on Multihead setup
Tl;dr: A display like :0.1 I have created virtual displays at past which are extenstion of current screen, with The problem which arise that I need to pull the windows between monitors (Pull from actual monitor to VNC monitor). How can I specify to make the new display to be a new screen ? I want to do thing opposite to this question, inducing the "problem", so that windows open in same monitor it is called from. |
Battery loses power even when connected to a good power source Posted: 11 Sep 2021 06:40 AM PDT I am running Arch linux on my Lenovo ideapad 320 with KDE as the GUI. My laptop is always connected to a good power source but for some reason it keeps losing power from the battery, i.e. 1% every 2 days. When I close all the applications and leave it charge, it does reach to 100%, so I'm not sure why it loses power in the first place. Thanks in advance :) |
Virt-v2v VM conversion from esx 6.7 to OLVM 4.3 (ovirt) takes too long Posted: 11 Sep 2021 06:16 AM PDT Is it common, that the conversion process of a oracle Linux 7 VM to KVM takes about 30 minutes? I'm using rhv-upload so I have to use raw format, can't use qcow2, but after the conversion is done, the raw upload of the images takes hours per 100 GB. I don't get it? 10Gbe, SAN with SSD, 32 cores with 3 GHz base clock. CPU utilization is low. But throughput is about lousy 10 MB/s. Am I doing something wrong? |
Grep a stream against a set of "correct" words? Posted: 11 Sep 2021 06:18 AM PDT I feel like this is a very basic question but I cannot figure out how to best accomplish this: I have a couple of documents (written in Latex) and I would like to run the program The problem of course is that there are some valid keywords that it thinks are spelt incorrectly, for example one such line from the file is: I was thinking if it would be possible to put words like |
Why doesn't Qemu boot my custom linux kernel? Posted: 11 Sep 2021 05:40 AM PDT I was watching this tutorial https://www.youtube.com/watch?v=awik6Iittu4 on building our custom linux os. The problem is that when I do And then it instantly reboots, in loop. What am I doing wrong? Is the tutorial old? Note that I didn't modify even one line of the kernel, I only did what the tutorial did. I did this stuff on an Ubuntu x64 machine in VMware, and my main machine is Windows 10. What i did: |
AX_CHECK_X86_FEATURES for CXXFLAGS Posted: 11 Sep 2021 05:56 AM PDT The autoconf |
Why am I getting free(): invalid pointer? [migrated] Posted: 11 Sep 2021 05:30 AM PDT I am currently reading Linux System Programming by Robert Love and am stuck on the read() example that takes care of all five error cases. I am getting an It works if I store the offset and return the pointer to its original position. This is not mentioned in the book. Is there a better approach? |
Posted: 11 Sep 2021 06:10 AM PDT I'm doing a simple exercise where copy a base64 encoded cookie value, and then make a few changes and then re-encode, and then use the result to log into a site as admin. I have the following encoded string: I decode it like so: I then make a small change in order to be able to log in as admin: And them attempt to encode it again: Which gives me a parsing error. I did this the other day, where this worked perfectly . Why am i not able to encode this string? |
Why isn't zsh printf respecting octal notation? Posted: 11 Sep 2021 09:26 AM PDT The above outputs |
Code works in bash, not in zsh -- flock on arbitrary fd Posted: 11 Sep 2021 07:20 AM PDT Am new to shell scripting, and it makes me wonder why the following snippet does not work in zsh but does in bash? Is there a zsh equivalent of the same snippet? I get error The above snippet of code is from src: https://stackoverflow.com/a/13551882/15087532 |
How to get only stdout_lines with Ansible using mail module Posted: 11 Sep 2021 05:26 AM PDT I'm using ansible to scan hosts with clam antivirus and I'm receiving reports via email. Reports contain everything and I want only to receive stdout lines. Is there any way to accomplish this? I wrote email template according to https://gist.github.com/halberom/0aea275632d2b47af0536e5def01d4d2 although only thing that is not the same is that I've piped to nice json: The error I get is:
If I remove Is there a way to accomplish getting only stdout_lines in my report? I tried with grep in the shell command but failed |
CentOS 7: What is /bin/sh? It looks like Bash but seems to be something else Posted: 11 Sep 2021 05:29 AM PDT When I run a Centos 7 Docker Image like this Running something which is uses Process Substitution is fine (as expected, as Bash supports Process Substitution since the beginning of time - Bash 1.4.x actually). For example: But when I switch to /bin/sh the same code doesn't work anymore Although /bin/sh seems to be Bash But then why doesn't process substitution work anymore? Other non-POSIX features seems to work, though |
Can't update grub config inside a chroot [closed] Posted: 11 Sep 2021 08:45 AM PDT Edit: I asked for this to be deleted but it was closed instead.. I want to edit my GRUB config for a chrooted BTRFS system (/mnt/arch(/@)). I ran these commands: But I got this error: How can I fix this? |
Can you configure NGINX to redirect a HTTP request to SSH connection? Posted: 11 Sep 2021 09:18 AM PDT I have a server that is only accessible through a single port (I use a VPN with port forwarding). I have setup a reverse proxy using NGINX for some HTTPS servers that I'm hosting. I'm wondering if I can do something similar where I can specific a location and it redirects to a LAN IP with the ssh port 22. I know proxy_pass only works for HTTP, but I'm wondering if there is something that would work for ssh. |
Cannot generate proper RSA keys using openssl genpkey utility with RSA-PSS option Posted: 11 Sep 2021 06:00 AM PDT I am trying to create an RSA key using openssl on Linux and then converting it to PuTTY format so that I can use it from my Windows PC as well.
Key is generated. I Now convert it to PuTTY format:
I get following error:
I tried to check the key using the following command:
I get following error:
Any idea what's going on? |
How to install Kali Linux from live desktop? Posted: 11 Sep 2021 09:38 AM PDT I need to install Kali from live desktop, but I can't find the installer. Any idea what I should do? |
`du -sh` and `du -sb` gives different result when file being accessed? Posted: 11 Sep 2021 07:04 AM PDT I set up a file server with samba and I'm copying files to it from another computer under the same LAN. I set up SSH server and connected to it with my phone to monitor the process. This is what I run on my phone in OpenSSH client (the server has GNU Core Utilities installed): The computer (running Windows 10) reports a transfer speed of approx. 1000KB/s and all files are 30~35 MB in size. From my observation, So why does |
Posted: 11 Sep 2021 09:04 AM PDT What I am looking for, is the equivalent of the pre-stop stanza in upstart, for systemd |
GNU/Linux: "device mapper: create ioctl failed" "device or resource busy" Posted: 11 Sep 2021 08:00 AM PDT I can't mount my encrypted devices anymore. The error is: This error arises both with two different programs to access TrueCrypt encrypted devices: TrueCrypt and Tc-play. In this case, the recommendation is to remove One TrueCrypt device takes a whole HDD. According to Another TrueCrypt device is on a partition on What could be causing the error? Software:
|
Interpreting output of dmesg and /var/log/boot.log Posted: 11 Sep 2021 09:34 AM PDT I found two ways for printing boot messages one using dmesg and another the content of file /var/log/boot.log: The content of the /var/log/boot.log file are: while dmesg gives some thing like this: and so on So my question how are the two related? When should we use demsg and when boot.log? |
How do I change the default text editor in the Debian (squeeze) distro Posted: 11 Sep 2021 09:12 AM PDT "Joe's own editor" does not come naturally to me. How do I change to using nano or vim? I've tried but it doesn't seem to be respected. I'd like |
What is "Print to File" and can it be used from command line? Posted: 11 Sep 2021 05:29 AM PDT When you select "Print to File" in a Gnome print dialog (not cups-pdf): ... what is the actual command that gets executed? (I'm interested in the postscript variant, as on the image) On the other hand - maybe there isn't a command call; maybe it is In any case - is there a way for me to utilize this particular code from the command line (not |
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