Recent Questions - Unix & Linux Stack Exchange |
- bluetooth headphones paired, connected not appearing as sound device
- X11 VNC server sleep problem Ubuntu 21.04
- Linux to Windows 10 rdp with local echo cancellation
- How to load custom kernel module?
- How to rotate a PDF by 45 degrees from command line?
- Installed pycharm successfully on Debian, but cannot run it
- Highlight specific date in ncal output
- display range of specified months with ncal
- Debian 9 won't wake up after suspend
- How to supply both passphrase and admin PIN to gpg?
- How to remove root@localhost: from termux Command line?
- The alternatives command on FreeBSD (for choosing between versions of a package)
- Ncat: Got more than one port specification
- Bash: \r printed when doing a find using variable path
- Detecting getopts `--` (double dash) to issue a message
- sftp with chroot and file creation problem
- LVM recovery with physical disk failure on remote system
- File operation difference and looping
- How to Remove or replace double quote(") or comma(,) with a string within double quotes from txt file in Linux [closed]
- Difference in output of sar command
- UFW not allowing to boot debian 11
- How to remove grub bootloader from windows 10?
- How to embed current time with ffmpeg?
- Sort function doesn't work
- Linux Mint jdb2 continuous writing to disk
- CMake returns linux/videodev.h not exist while build opencv
- Auto expand last partition to use all unallocated space, using parted in batch mode
- What will ls -l | wc -l command display?
- Disable KVM Kernel Module while its still in use
- How to rename devices for graphical output such as VGA0
bluetooth headphones paired, connected not appearing as sound device Posted: 29 Aug 2021 09:44 AM PDT Arch MATE up to date Not blocked From the bluetooth session pavucontrol GUI shows only the laptop's sound card. aplay says this |
X11 VNC server sleep problem Ubuntu 21.04 Posted: 29 Aug 2021 09:00 AM PDT I have talked the default X11 VNC server on the Ubuntu 21.04. I made it run at start with the help of this link: X11 VNC Auto Start and Password configuration The problem is that after some time the X11 VNC I suppose goes to sleep and I can't access the computer with VNC. I needed to install "AnyDesk" to gain access in these sleeping issues and wake up the X11 VNC. If X11 VNC is sleeping and I access the computer via "AnyDesk", the X11 VNC wakes up and I can use the computer again with VNC and all perfect. How can I make X11 VNC not go to sleep or whatever is causing the issue? Thank you |
Linux to Windows 10 rdp with local echo cancellation Posted: 29 Aug 2021 08:22 AM PDT I am having considerable issues getting audio to and from Linux and Windows over rdp in a sane and rational fashion. It's 2021 so I think it's safe to assume I'm not the only one and there is a possible solution available somewhere. I've tried rdesktop, freerdp, Remmina, and standing on my head. Nothing works completely, either I can't get microphone working or there are limitations which stop me from using obvious local audio routing. One of those limitations is that the microphone device from the usb camera seems to disappear from pasystray whenever a connection is started in Remmina. So, I find myself here casting a wide net as I don't have a specific issue rather a collection of unworkable systems that all add up to one issue or another. Currently I am simply using USB redirection in Remmina to share my camera. This works fine however the microphone does not and is possibly a separate issue. Regardless, it's not an outrageous concept to expect some kind of workable system for this use case. I want the following setup: input: usb camera/microphone -> echo cancellation module -> rdp session or other network pipe -> teams/google meet output: teams/google meet -> rdp session or other network pipe -> echo cancellation module -> tv audio/speaker system For clarity, the echo cancellation is to stop the tv/speaker audio from going back into the microphone and being retransmitted over the call. I have a few questions:
|
How to load custom kernel module? Posted: 29 Aug 2021 08:25 AM PDT How to force linux kernel to load my custom module instead of default one ? There is a file: Seems like it is responsible to load modules in specific order. How it can be generated to prioritize my module or maybe it is enough to place it in /etc/modules-load.d for loading during boot and create udev rule binding hardware by productID and vendorID to this custom module ? Example: usbhid module is used for mouse and keyboard. I want my mouse uses my custom module instead of usbhid. |
How to rotate a PDF by 45 degrees from command line? Posted: 29 Aug 2021 08:07 AM PDT Various tools (pdftk, qpdf, etc) can rotate PDF, but only with n*90 degree angles. ImageMagick can also rotate pdf, but it automatically converts the vectorial format to a raster one, what I do not want. Can I somehow rotate a PDF while preserve the vectorial format? |
Installed pycharm successfully on Debian, but cannot run it Posted: 29 Aug 2021 07:23 AM PDT |
Highlight specific date in ncal output Posted: 29 Aug 2021 06:26 AM PDT Is it possible to highlight specific dates in the output of |
display range of specified months with ncal Posted: 29 Aug 2021 06:51 AM PDT Is it possible to display specific months in |
Debian 9 won't wake up after suspend Posted: 29 Aug 2021 08:24 AM PDT Since some weeks ago, my Debian 9 distro is randomly not waking up after suspend. It does not matter the way of suspending: it can be by using the command It happens the following: for some seconds I can move the mouse or the keyboard. Then the screen is frozen, and the only thing I can do is to press the shutdown button. I checked the dmesg and I've read the I also edited the file It's a Thinkpad Lenovo T530. I'm not sure if I should update the BIOS, since everything worked fine since the day I installed Debian 9 (year 2018). Using a SSD disk since that moment. The problem persists and it's really random. Sometimes it wakes up perfect and I can use it several hours. Two times the computer frozes while using it, too. What should I check? |
How to supply both passphrase and admin PIN to gpg? Posted: 29 Aug 2021 05:39 AM PDT Trying to move private keys to YubiKey using script. How can I supply both PGP master key passphrase and YubiKey OpenPGP applet PIN using command line? The following works for passphrase, but not PIN as passphrase supplied using |
How to remove root@localhost: from termux Command line? Posted: 29 Aug 2021 07:31 AM PDT There is something like this on the command line when you install Linux distros on Termux. How can it be removed? or atleast reduced to: How to remove root@localhost from termux Command line? |
The alternatives command on FreeBSD (for choosing between versions of a package) Posted: 29 Aug 2021 05:17 AM PDT There's an Is there an equivalent on FreeBSD? Or do I have to manually manage the symbolic links? |
Ncat: Got more than one port specification Posted: 29 Aug 2021 04:56 AM PDT I am trying to run a subrocess the listen and recives a file using ncat: Where the "command" variable is this list: And I get the error: It seems like it sees the ">" and path strings as port numbers. Any ideas? |
Bash: \r printed when doing a find using variable path Posted: 29 Aug 2021 05:57 AM PDT Appreciate your advise on below my bash: output: As you can see the output contains of "\r".. with resulting file not found. I have echo the path correctly. However when it is passed as variable, it append extra value. Appreciate someone can help on this matter. Thanks. |
Detecting getopts `--` (double dash) to issue a message Posted: 29 Aug 2021 09:50 AM PDT I am using the customary way of using |
sftp with chroot and file creation problem Posted: 29 Aug 2021 06:00 AM PDT I configured second sshd systemd service using own sshd configuration with different tcp port configured in it and following configuration of sftp subsystem: The user I created in sftponly group is: The directory tree for chroot is: I can successfully do sftp with the private key however I can't create any file in user's /srv/%u chroot directory: When I do chown sftpuser /srv/sftpuser and go back to active sftp session I can create files but when I logout I can't login sftp anymore, until I change back I can of course create additional directory inside Additional question - how to prevent other users on the system from using this custom sshd configured for sftp only? When I set above |
LVM recovery with physical disk failure on remote system Posted: 29 Aug 2021 08:47 AM PDT Questions like this have been asked a lot here but I've not found any with the same situation as I have. I have a system with a failed LVM volume group and I have no physical access to it. More details below. I have a Debian 10 linux server with two physical volumes, a 4TB HDD and a 750GB SSD. The SSD contains the boot volume. The HDD is configured as an LVM Volume Group with a single physical volume (/dev/sda, the 4 TB HDD) and a number of logical volumes. The HDD has apparently failed. No diagnosis appears possible as /dev/sda simply doesn't exist anymore and any attempt to read from the disk results in an i/o error. The data on the disk isn't critical and I do have a system backup. The issue is that the system is a headless linux box sitting in the cellar of my house in Switzerland, which is half a world away. My concern is that if I reboot it, it may well fail during boot and enter diagnostic mode and I will have no network access to it. In that case I have to ask a friend to collect it and mail it to me - which is what I'm really trying to avoid as it will be down for months. I can live without /dev/sda until the next time I visit the house and replace it. The output I get from LVM is as follows: vgs -vd and lvs -vd both execute and print just the single line: /etc/fstab mounts the individuals logical volumes like so: /dev/Webcams looks like this: There is also a /dev/mapper directory: So both /dev/Webcams and /dev/mapper have symlinks pointing to files in /dev: My question: What steps should I take to ensure that the system does't enter diagostic mode during reboot? Is it enough to simply comment out the relevant lines in /etc/fstab or is there something else I need to do? My concern is that lvm itself might make checks during boot and throw off errors that stop the boot from completing. I am not using lvm for any other volumes so theoretically at least I suppose I could remove the package, although given the state the system is in I'm not sure that would be wise. Any help much appreciated. |
File operation difference and looping Posted: 29 Aug 2021 07:23 AM PDT i have 2 files. I need to find difference in percentage between these files value ( e.g 1st value of both files e.g 1.txt 2.txt i have written below code. |
Posted: 29 Aug 2021 05:18 AM PDT example data |
Difference in output of sar command Posted: 29 Aug 2021 07:23 AM PDT I came across a scenario, where I saw different values in the output of
I observed that values at the same second when the script invoked and produced output and at the same time when I ran the command in the command line, the values were different in the output. I also observed that values change in milliseconds time, when i created a new script to run command at every 300 millisecond interval and it gave different values in the same second in three outputs at 300 milliseconds. I had two questions here:
|
UFW not allowing to boot debian 11 Posted: 29 Aug 2021 04:58 AM PDT |
How to remove grub bootloader from windows 10? Posted: 29 Aug 2021 05:17 AM PDT I used to have ubuntu installed in pc hard disk but for other purposes, I can have only windows installed. Now I have uninstalled all partitions having ext4 fs, so only ntfs and bootable fs (vfat32 I think) remain. But still, when I boot I see grub bootloader (GNU GRUB version - PS: to get from the bootloader, I have to at least twice |
How to embed current time with ffmpeg? Posted: 29 Aug 2021 06:45 AM PDT I'm using I've found this how-to suggesting the following command: But using the I've also tried this command (the third code block in the Q), just to test it, but it failed aswell: Finally, I also found this question, and tried it, slightly modified like this (this is showing my full command, I've only adjusted the This presents me with the following error: Modifying what I've found here a bit to: Presents me with: Note that using this comment with just text (e.g. My |
Posted: 29 Aug 2021 05:08 AM PDT So a week ago I asked a question, > here , The question was about sorting. If I use this code for sorting and creating files: it does work on the files I use in that example, but when I use this on my real files which are bigger its seems like the sorting doesn't work. I fixed this problem before by using LC_ALL=C , but it seems that it worked just 1 time, so I don't know what the real problem is. if i specifically print and sort the column it works, but not with in side this code.. Maybe because its to much in 1 time to do? i have 151 columns with different data annotated, and I just want to sort the columns 43 and 151, but I still need the new sorted files. Please help me out. |
Linux Mint jdb2 continuous writing to disk Posted: 29 Aug 2021 09:03 AM PDT Captured disk activity from last 2 days using below command but unable to find out why it is writing so much (426MB) on root partition I have below disk |
CMake returns linux/videodev.h not exist while build opencv Posted: 29 Aug 2021 07:05 AM PDT Got problem while building ..... ..... I just did cd linux in order to look file videodev.h is there, but system can't find such directory. File |
Auto expand last partition to use all unallocated space, using parted in batch mode Posted: 29 Aug 2021 04:52 AM PDT Long story short, I need to perform this all automatically on boot (embedded system). Our engineers will flash images to production devices. These images will contain a small partition table. On boot, I need to automatically expand the last partition (#3) to use all the available space on the disk. Here is what I get when I look at the free space on my disk. I need to expand partition 3 by N (30.5GB) number of bytes How do I perform this step automatically, with no prompt? This needs to work with a dynamic size of space available after the 3rd partition. |
What will ls -l | wc -l command display? Posted: 29 Aug 2021 07:13 AM PDT Will: Display the number of devices too? (Including files and directories) |
Disable KVM Kernel Module while its still in use Posted: 29 Aug 2021 05:48 AM PDT In order to run a virtual machine, VirtualBox tells me to disable the KVM kernel module. I googled around and found out that KVM is included in the After that I simply tried to unload the module, but this doesn't want to work because it is in use: I don't know what program is using it and I have really no idea what that could be. I also tried with the My question is: How can I remove or disable the KVM Kernel module? Update: Here is the output of the |
How to rename devices for graphical output such as VGA0 Posted: 29 Aug 2021 08:04 AM PDT On my Laptop the names of my graphical outputs change depending on what chip is activated in the BIOS. This leads to problems in some scripts where outputs such as VGA-0 or LVDS-0 are specified. So I want to rename the graphical outputs, similar to how you can specify persistent names for network devices with But I can't find anything that would explain how or if this is even possible at all. In /sys I could find kernel names such as as: while So is it possible to create a |
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