Recent Questions - Unix & Linux Stack Exchange |
- Use same host's keyboard shortcuts on VM to copy/paste text
- Is there a way to use a long running kthread without calling schedule()?
- iptables - How kill established connection except for an ip?
- Move window from other (inactive) desktop to current desktop
- how to auto run script when users chan change to specified directory?
- Renaming with wildcard
- How can I run a GUI app on startup (before login)
- Restoring data from corrupt btrfs RAID 1
- Problematic mint
- Passing Dig command in nmap
- Compare two columns of a csv file and show unmatched records only
- Moving Gigs on LVM-on-Luks from one partition to another
- My desktop entry seem to have cached some old entries for some fields
- Why does "ls" take extremely long in a small directory that used to be big? How to fix this?
- properly install firefox beta (fedora)
- Linux tar: You may not specify more than one tar '-Acdtrux', '--delete' or '--test-label' option
- Has dialog's --checklist box type a possibility for horizontal srolling or \n (newline) interpretation?
- Installing RHEL 8.3 results in "Unknown error has occurred"
- How can I use fail2ban with ipv6?
- Problem in Python (ubuntu)
- Shutdown system by timeout during suspend
- Reestablish wired connection after router reboots
- ghost command error
- "client_loop: send disconnect: Broken pipe" for chroot sftp user, with correct password?
- Perf permission for users other than root
- Linux: Changing Permissions – No space left on device
- Convert .264 to .mp4 using avconv
- nomodeset doesn't fix black screen on startup
Use same host's keyboard shortcuts on VM to copy/paste text Posted: 25 Apr 2021 09:26 AM PDT Does exist a way to make copy/paste working into a virtual machine (not between the VM and the host) using the same keyboard shortcuts used by the host machine? In practice in macOS (host) I use cmd+C and cmd+V, respectively to copy and paste, while working with the VMs I have always used shift+ctrl+C and shift+ctrl+V for these operations. My doubt is about if it is possible to set the use of cmd+C and cmd+V to copy and paste when I am into the VM. I had not able to do this neither using Virtualbox nor with VMware Fusion. |
Is there a way to use a long running kthread without calling schedule()? Posted: 25 Apr 2021 08:47 AM PDT I have a problem with a kernel module of mine (see Am I making invalid assumptions with regard to my kernel module's shared memory? ) that I finally narrowed down to some kind of scheduling issue (see my above post for details on my used configuration): It seems that I found a workaround that prevents the random system freezes that I experienced originally, by periodically calling schedule() from my long running kthread (at least the system has not frozen up again until now). The problem with this workaround is that I may not always have a sufficiently large timeslot available to make that call without compromising the timing precision of my kthread. I would therefore prefer to find some means to make sure that the scheduler does not care at all if my kthread (which already runs alone on an isolated core) doesn't call in for a while.. (I imagine that this should be possible since system freezes where sporadic and everything runs perfectly unless some "silly scheduler related thing" has the idea to "check on my kthread" thereby probably blocking the system.. and already those checks seemed to happen randomly and far apart so surely they are not strictly important for anything anyway..) Any suggestions? |
iptables - How kill established connection except for an ip? Posted: 25 Apr 2021 08:24 AM PDT I've 2 iptables configuration. The second iptables replace the first at 15:00. The first iptables is: The second iptables is: #!/bin/bash When I switch from the first to the second iptables, how I'm sure that all alive connection will be killed from the ip saved in "csa"? I'm not expert of iptables. Is this a secure way to protect from external ip? And is this the right way to block connection from ip allowed in first iptables when the second is actived? Thank's a lot |
Move window from other (inactive) desktop to current desktop Posted: 25 Apr 2021 07:50 AM PDT When using this to fetch window from another desktop to current desktop (which is #0), nothing happens until I focus the desktop with that window - then window immediately moves to the desktop 0.
How can be that window fetched without me focusing the other desktop? DE: Xfce 4.16, WM: Xfwm4 |
how to auto run script when users chan change to specified directory? Posted: 25 Apr 2021 06:50 AM PDT I want to users auto a sshfs mount when they change to specified directory. alias may do the trick , but it's diffuclt to configure alias for all users with different mount requests. What I think is something like this and not only in shell , but also in nautilus or other file manage applications. is there any way to do so ? |
Posted: 25 Apr 2021 06:39 AM PDT I'm trying to rename a bunch of files, using the rename command, from ... into: I'm having trouble getting it to understand the wildcard in the middle. I've tried: |
How can I run a GUI app on startup (before login) Posted: 25 Apr 2021 06:40 AM PDT I have a simple Electron App which just displays "Hello World" for a proof of concept. Is it possible to run the GUI application right after the system boots before a login prompt / without login? If so, how may I go about doing this? Thanks in advance! |
Restoring data from corrupt btrfs RAID 1 Posted: 25 Apr 2021 06:25 AM PDT I had a BTRFS RAID 1 array that I was storing my data. I had accidently reformatted as an RAID 1 using MDADM, before I noticed my error unmounted everything. Now my tree seems to be corrupted, I'm having trouble restoring any data at all. I had used btrfs restore chunk repair, and ran for 1 day. Now I'm trying to mount it but having trouble.
Any other suggestions? |
Posted: 25 Apr 2021 09:38 AM PDT Some time ago I made my own „OS" based on mint(Debian Based distro). About u week ago I deleted 3rd partition with Ubuntu. Before this weekend I got BSOD on windows, so I'm stuck on mint. And here is my problem with third OS: i deleted accidentally grub. The problem is yet bigger because filesystem was btrfs. I copied all files (even system)to external drive and formatted partition with mint to ext4, then I recopied system and tried with GRUBrepair. As I saw root and sudo was locked (mint doesn't have su by default), so I tried to repair by myself. Now system is stuck between: grub shell, busybox shell (initramfs error), live boot mint and „shell"with prompt for root password (i didnt setted up that YET). Is there a way to boot PC normally? Or i'm stuck on live-boot? I don't have space for installing third OS (space which stayed after deleting ubuntu was joined to windows) and my PC is yet on guarantee... (yet worse but guarantee is only for physical things, OOF)🙄 PS: bios on my pc is „aptio setup utility", there is no way to disable uefi and i can't: boot rescueCD from pendrive and/or boot pc from external HDD. I don't have external CD/DVD reader. Thanks for answer (if any) Here are all commands in busybox i can use : Actually I didn't have When I tried |
Posted: 25 Apr 2021 09:53 AM PDT I have an issue to take the result of the |
Compare two columns of a csv file and show unmatched records only Posted: 25 Apr 2021 09:00 AM PDT I have a csv file in below format What I want is to compare column 3 and 4 only and if they do not match, print that line in a new file and if they match print that line in another file Expected File1 output (where col 3 & 4 do not match) : Expected output in File2 (where col 3 & 4 match) : So far I have tried the comparison with multiple files only. |
Moving Gigs on LVM-on-Luks from one partition to another Posted: 25 Apr 2021 07:32 AM PDT I need to resize LVM on LUKS on Debian to take space from I'm following the ResizeEncryptedPartitions tutorial:
The tutorial continues, instructing the reverse,
My question. Do I need to reduce the (LVM) Physical Volume #4 and reduce the Crypt #5, if I'm giving this space over to another partition? The tutorial gives a reason for resizing the LVM Physical Volume
I'm thinking of taking I get the idea--delete my swap and tmp LVM partitions, then change the var size. I guess the article seems more generic, and so I'm asking here about my particular case. Also on SE: Resize an existing LVM partition and add the space to another LVM partition |
My desktop entry seem to have cached some old entries for some fields Posted: 25 Apr 2021 06:25 AM PDT I am writing a desktop entry for an application that doesn't come with one (let's say I initially kept I could have messed up the icon image absolute path, sure, but the new icon filename has nothing to do with I obviously logged out, and when that failed to update the fields' values, I also rebooted my computer, and still the icon is the other application's, and the generic name is incorrect. The launcher still launches Any idea how to correct all this? |
Why does "ls" take extremely long in a small directory that used to be big? How to fix this? Posted: 25 Apr 2021 09:27 AM PDT I'm running Arch Linux, and use ext4 filesystems. When I run I tried doing: but I honestly don't know how to debug the output. I can post it if necessary, though it's more than a 100 lines long. And, no, I'm not using any aliases. |
properly install firefox beta (fedora) Posted: 25 Apr 2021 07:58 AM PDT I want to install firefox desktop beta in my fedora, for that I have dl the I already have a firefox version installed via I don't want to use flatpack nor snap because I want to understand how this kind of installion works (specially for activating the auto update for the beta version). I have the normal version on My plans is to to put the content of the Another question : I have two files into the |
Linux tar: You may not specify more than one tar '-Acdtrux', '--delete' or '--test-label' option Posted: 25 Apr 2021 07:58 AM PDT I am trying to install the latest Node on my Linux system by running the following terminal command, I keep getting the following error. tar: You may not specify more than one '-Acdtrux', '--delete' or '--test-label' option Try 'tar --help' or 'tar --usage' for more information. This terminal command I copied right off a website. |
Posted: 25 Apr 2021 07:17 AM PDT I use dialog version: 1.3-20210324 Given: Result: Missing Goal: Edit 1 |
Installing RHEL 8.3 results in "Unknown error has occurred" Posted: 25 Apr 2021 07:55 AM PDT I downloaded RHEL 8.3 with developer subscription. I changed BIOS configuration to AHCI after issue of not finding disc during installation, But still I have 2 issues. My touchpad isn't working during setup, I need to plug a mouse. Then in half way during installation output quotes "Unknown error has occurred" . Then I gave quit and removed the RHEL boot option from BIOS and booted into my windows 10 and cleared everything from the partition I created. My laptop configuration: System type 64-bit operating system, x64-based processor . What should I do to resolve the issue? |
How can I use fail2ban with ipv6? Posted: 25 Apr 2021 06:52 AM PDT I have used the Fail2ban for a long time. I think this script is not able to manage the IPv6 -- or maybe it is working with IPv6? How can I prevent IPv6 attacks with Fail2ban or do I have to search for another script? |
Posted: 25 Apr 2021 07:50 AM PDT When I try to install this, I get this error; what is the solution? |
Shutdown system by timeout during suspend Posted: 25 Apr 2021 09:56 AM PDT Currently I have settings in GNOME Power Management to setup timeout after which my system will suspend. I want to add an additional timeout for the system to shutdown after some period of inactivity during its suspend. So it will looks like that:
|
Reestablish wired connection after router reboots Posted: 25 Apr 2021 06:49 AM PDT Hardware: Raspberry Pi 2 Model B Revision 1.1(an old but capable computer on a chip) Software: Linux pi 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux (a headless Raspbian, updated daily) Problem: if the router to which the pi is wired is rebooted, it never again obtains an IP address unless rebooted itself. The router has DHCP enabled, serves various other clients well and even has address reservation for pi's MAC (which it honors on initial connection). I don't have a screen attached to observe the process. What logs should I read? What is the canonical solution? I have tried EDIT: I am coming to realise because of all the help by @roaima that probably this is the problem: There are a lot more of those |
Posted: 25 Apr 2021 09:49 AM PDT I cloned it. Then, I installed I wrote But, there's no connect command So, how can I work with At the moment, his commands look like But, why mine is different? How can I go ahead without |
"client_loop: send disconnect: Broken pipe" for chroot sftp user, with correct password? Posted: 25 Apr 2021 07:29 AM PDT I am in the process of setting chroot for sftp and have used a combination of tutorials (source1, source2) and have ended up with the following configuration in The sftp base folder is Now when I try a login I end up in the Since I want users to end up in the When I do that I get an error
Any ideas? Env:
|
Perf permission for users other than root Posted: 25 Apr 2021 08:28 AM PDT I don't know why user is not able to collect perf stat for a service (nginx process which has been started by sudo). As you can see the kernel and perf versions match. But when I run It clearly states that the value is -1 and -1 allows collection of data by all users. So, how can I fix that? |
Linux: Changing Permissions – No space left on device Posted: 25 Apr 2021 09:07 AM PDT I have an external drive. When I just plug the drive into the PC, with a default I'm trying to mount the drive into my home directory so that Plex Media Server can access it. I've done this a million times before with this same drive no problem, on Linux. I recently re-installed the OS and went to set up the drive, same as always. Again, this exact same configuration has worked in the past, on the same version of Linux (OpenSUSE Leap 42.1), on the same machine, with the same hard drive. I've added this entry to So then I go to set ownership and change permissions with and I get the error: The thing is, there's plenty of space left. There's over 300GB of space left. I'm pasting my It doesn't seem to be an inode issue; here is the output of Again, this permissions issue only exists with the drive when I try to mount it in that location (in my home directory); otherwise when it's just at the default run/media/craig/My Passport location, it's fine. Reads, writes, etc. How can I get my drive to mount successfully in my home directory? |
Convert .264 to .mp4 using avconv Posted: 25 Apr 2021 07:02 AM PDT I have a video file (with no audio stream) taken from a Lorex CCTV DVR. The video file has a suffix of ".264" which I assume means its format is raw h264. I cannot play this video on certain media players including the default player on an Apple tablet. I would like to convert the file to another format that is more universally useable, for example mp4. I tried the following command at Linux terminal:
but the output mp4 file was basically empty, with a total size of 285 bytes. Furthermore, when I tried to play it using the Ubuntu Videos application the application returned a widow containing the error message: "An error occurred This file contains no playable streams." Would somebody instruct me how to convert the .264 file to a .mp4? |
nomodeset doesn't fix black screen on startup Posted: 25 Apr 2021 08:04 AM PDT I'm trying to install Linux Mint on my 2010 21.5" iMac. I managed to install it after booting from the usb drive with the |
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