Recent Questions - Unix & Linux Stack Exchange |
- Question regarding port forwarding from local to remote
- How to scp files from a ssh cli to my local computer
- Polkitd uses too much percent of CPU
- Decrypt automatically boot partition in Fedora 34
- Activate pop up to confirm ssh-agent access through agent forwarding
- If there is a white space remove it, if none ignore
- What exactly is the Openssl -md flag used for?
- How does Linux display Unicode characters?
- Filesystem "Operation not permitted", even as sudo
- pdsh and command exit code
- How can I set default display settings when switching KVM?
- USB 3.1 hub doesn't work properly on Thinkpad laptop
- Squid fails to block Facebook
- Shift of dates in a CSV file via bash script
- how can I make a webpage rendered by w3m reload automatically?
- Not able to install Teams on Ubuntu
- Configuring vsftpd to be accessible remotely
- dnf breaks when changing symlink from python3.9 to 3.10
- How to add fsck at boot like a regular service?
- I need some service that trigger actions once after any file is created, modified, deleted, copied or moved
- Sending bunch of commands from txt file in Expect
- Pulseaudio issues with module-echo-cancel not cancelling audio
- How do you make a process a service under systemd?
- LVM Volume Group not found
- How to deal with www.postgres.org certificate expired?
- How to convert my Fedora Linux system from BIOS to UEFI
- How to OCR a PDF file and get the text stored within the PDF?
- What to do if the owner of /usr/bin/* changes to a non-root?
- Failed to open vdpau backend - Nouveau
Question regarding port forwarding from local to remote Posted: 12 Oct 2021 10:39 AM PDT Hi am just learning some port forwarding concepts and my doubt/question is below. I have a remote ec2 where jasper (j.s.p.r) is running on 7000 port, i can only access this jasper ec2 instance via a bastion server b.s.t.n then ssh to j.s.p.r . Now my question is i need to be able to deploy the jasper reports from local jasper studio directly on to the j.s.p.r server by forwarding my port. So here is what i am using to achieve the same but not successfully. |
How to scp files from a ssh cli to my local computer Posted: 12 Oct 2021 10:36 AM PDT I'm using ssh to enter the command line interface of my remote machine, and I'd like to scp files there to my local machine. I got my local IP address using
And the scp command hanged for a while, and gave: Is there a way to work around this? Note that I only want to run |
Polkitd uses too much percent of CPU Posted: 12 Oct 2021 10:29 AM PDT |
Decrypt automatically boot partition in Fedora 34 Posted: 12 Oct 2021 09:35 AM PDT I recently installed Fedora 34 on my laptop and I need an easy way to decrypt automatically my luks2 root partition. I tried this guide: https://forums.centos.org/viewtopic.php?t=53452 and worked on a controlled environment (VM) but doesn't work on my laptop, even with secure boot disabled. Then I came across this guide https://chrisx.xyz/blog/auto-decrypt-root-volumes-with-tpm2/ . Is it good to decrypt the root partition with TPM? Found also this guide that was kinda interesting but it's outdated https://askubuntu.com/questions/59487/how-to-configure-lvm-luks-to-autodecrypt-partition My idea was to decrypt the root partition using a USB stick with a key file on it, for security reasons it sould be encrypted. Hardware: Huawei Matebook D14 (3500u) with fTPM 2 and secure boot disabled |
Activate pop up to confirm ssh-agent access through agent forwarding Posted: 12 Oct 2021 10:24 AM PDT I have a successful ssh connection with agent forwarding activated on my Ubuntu 21.04. This is my Because ssh-agent forwarding allows unrestricted access to my local ssh-agent, I would like to confirm each access with a pop up on my local machine. However, this would only be necessary for requests from the remote ssh connection, not from my local machine. Is there a way to achieve this? I know there is Guardian Agent, however I was looking for a more standard approach, potentially only editing the config file. |
If there is a white space remove it, if none ignore Posted: 12 Oct 2021 10:08 AM PDT I want to create a .csv file from a program output. I have tailored some of the original output to this level. I have used these commands till now, The problem is there is no specific number of whitespaces in between. Sometime there are 4 or sometime 3. This all depend on the output of the program. For instance, if the first value is 36.343 then there are two space at the front, if it is 3.6 there are three spaces, if it is 360.34 then one space. Is there any way to make it cleaner? Original Data Expected result I am using UBUNTU 20.04 |
What exactly is the Openssl -md flag used for? Posted: 12 Oct 2021 09:20 AM PDT I was just playing around with openssl for decrypting some files. The command I ended up using looks like so (found it elsewhere): I was looking at the part that says I assume that it is a hash function which in someway is used internally in the encryption/decryption function that I am defining. But what exactly it is used for? |
How does Linux display Unicode characters? Posted: 12 Oct 2021 10:16 AM PDT I have a simple Python PIL script that's render some list of unicode symbols with FreeSerif font, which is have the most full unicode support (about 65k glyph) but in reality Arch Linux with last version of KDE Plasma can render more meanwhile as main OS font i'm using Noto - which is have very poor coverage can someone explain why? |
Filesystem "Operation not permitted", even as sudo Posted: 12 Oct 2021 08:58 AM PDT I have a directory that I'm unable to perform any filesystem operation on. I'll paste below the attempts I made to find the issue. I tried The directory is normal in every way that I can tell. Inside the directory, I have some subdirectories that some RAID volumes get mounted to. The mounts work. I can create files under |
Posted: 12 Oct 2021 08:52 AM PDT I would like to use Consider the following examples: The second example should return a non-zero exit code. In the third example Am I missing something? Thanks |
How can I set default display settings when switching KVM? Posted: 12 Oct 2021 07:41 AM PDT I have a desktop running XFCE on Manjaro Linux with dual monitors. I use a KVM switch to go back and forth between my desktop and my laptop using those two monitors. Every time I switch between the laptop and desktop, my Manjaro desktop changes the display settings to Mirror, and then when I change it back to dual display instead of mirror displays, it has the monitors reversed. Is there a way to set persistent display settings, so that it always keeps my monitors in the correct orientation, and doesn't ever try to mirror my displays? |
USB 3.1 hub doesn't work properly on Thinkpad laptop Posted: 12 Oct 2021 07:25 AM PDT for quite a long time I was using USB 3.0 hub with my mouse, keyboard, Audio DAC, and xrl to usb interface. Everything was working fine but recetly I decided to buy new USB 3.1 hub, this time with a fancy switch that allows to switch between two computers. The problem is that now, with my brand new USB 3.1 hub, only my mouse and keyboard work while audio devices don't. My laptop is Lenovo Thinkpad T470P and currently working on 5.15.0-1-MANJARO (today changed from 5.13 to experimental 5.15 hoping it might help). Thank you for your time in advance. Below both hubs are connected. |
Posted: 12 Oct 2021 07:51 AM PDT I have squid proxy server running on Centos 8 its failed to block any https site. |
Shift of dates in a CSV file via bash script Posted: 12 Oct 2021 08:04 AM PDT Currently I have a file with records like this : Assuming that the current date is In the example shared above, transformation should be done on rows 2 to 5. |
how can I make a webpage rendered by w3m reload automatically? Posted: 12 Oct 2021 07:48 AM PDT While rendering a webpage (say https://www.ubuntu.com) with I know I need to add: to it's html so it can be refreshed every 5 seconds. But what will the |
Not able to install Teams on Ubuntu Posted: 12 Oct 2021 09:31 AM PDT When I try to install Teams on my Ubuntu 16 laptop by command I get the below error |
Configuring vsftpd to be accessible remotely Posted: 12 Oct 2021 08:37 AM PDT I am trying to access my vsftpd server remotely from a different network.I forwarded the ports 21 and 10000-10100. Edit: As it turns out my port is not forwarding correctly(Thanks to @ Artem S. Tashkinov for the open port tester link).It might have to do something with my dual router setup.Thank you all for the help you guys provided. |
dnf breaks when changing symlink from python3.9 to 3.10 Posted: 12 Oct 2021 07:43 AM PDT I am completely baffled. on Fedora34 and python 3.9.7 dnf works as it should. I have changed to the /usr/bin directory for this. If I change the symlink to 3.10 as in the following, dnf breaks: Then I change it back to 3.9 and dnf works. Can someone explain this to me and how to update the system so that having the python3 command point to 3.10 without breaking dnf? |
How to add fsck at boot like a regular service? Posted: 12 Oct 2021 09:47 AM PDT I remember that certain distros, used to run How can be added to the boot process the
Thanks |
Posted: 12 Oct 2021 08:12 AM PDT The problem is that I'm not being able to keep track of all my files and I'm also tired of not telling which ones are important and which ones are a temporary file that some random programmer decided that it would look nice as a hidden file on my home folder. I keep copies and organize my drives, but chaos happens sometimes. For this I though that something that would help me to create and modify xattrs each time a file changes or is created would be very helpfull. I tried with creating a service based in inotify but the problem is that it's low level description doesn't help that much and I would need more development to be sure that it's possible but I suspect that it's not. The idea is to keep a record which app created foo, when, why, where, when it was moved from where to where,when it was copied from where to where, how many copies it haves, where are they, what files were deleted from it's directory, etc. May be I'm asking too much to the filesystem, but can you give me some ideas? |
Sending bunch of commands from txt file in Expect Posted: 12 Oct 2021 09:10 AM PDT How to send bunch of commands to Cisco router from txt file like: And of course from Expect script via telnet. Thank you in advance for help. |
Pulseaudio issues with module-echo-cancel not cancelling audio Posted: 12 Oct 2021 10:41 AM PDT EDIT: Ok so it appears to be working... kind of... sometimes the cancellation kicks in, other times it doesn't within the same call. This is not solved would still love some input. 2nd EDIT: I've posted in the Pulseaudio IRC so hopefully get some advice on this setup. I have pulseaudio loading the module-echo-cancel and it doesn't seem to be working properly, or it is and I'm not doing something right... I honestly have no way to confirm which I suppose is my first issue. My architecture is fairly simple, I have a windows 10 machine that I'm rdp'ing into from Linux. Default source:
Default Sink:
I shouldn't think that remote access would affect the cancellation as it's still being processed locally from the HDMI speakers directly into the microphone, both of which are local devices. Here is how I am loading module-echo-cancel in ~/.config/pulse/default.pa and I can only assume it is loading given that I can see the devices (as listed above) in Are there any extra controls I need to consider or should this work OOTB? I can't see anything in the manual that could be relevant. |
How do you make a process a service under systemd? Posted: 12 Oct 2021 09:22 AM PDT what is the command or how would you make a process into a service in Linux? isn't a service basically a daemon? |
Posted: 12 Oct 2021 09:47 AM PDT After rebooting my server i get the following error message: The system drops to initramfs shell (busybox) where When i boot the live SystemRescueCD, the Volume Group can be found and the LV is available as usual in Ubuntu 20.04 Server, LVM setup on top of hardware raid1+0 with 4 SSDs. The hardware RAID controller is HPE Smart Array P408i-p SR Gen10 controller with firmware version 3.00. Four HPE SSDs model MK001920GWXFK in a RAID 1+0 configuration. The server model is HPE Proliant DL380 Gen10. No software raid, no encryption. Any hints how to find the error and fix the problem? EDIT I: Where
Booting from an older kernel version worked once until executing EDIT II: In the module No output for Output for Output for There is a second RAID controller with HDDs connected to another PCI slot; same model P408i-p SR Gen10. There is a volume group named "cinder-volumes" configured on top of this RAID. But this VG can't be found either in initramfs. EDIT III: Here is a link to the requested files from the root FS:
|
How to deal with www.postgres.org certificate expired? Posted: 12 Oct 2021 08:15 AM PDT I've started getting errors when getting certificate keys from the postgres website: Which I tried working around by using Is there another way to deal with this? It suddenly started happening today. |
How to convert my Fedora Linux system from BIOS to UEFI Posted: 12 Oct 2021 09:35 AM PDT I'm changing my BIOS boot Fedora system to UEFI. I was following the guide here: How to convert an Arch Linux system from BIOS to UEFI? I have /dev/sda1 as a 1GB /boot partition. This has flags "boot" and is ext4. See the image here: The guide says to convert to UEFI I need: efibootmgr -v gives "EFI variables are not supported on this system." What would I have to do to change my partitions to match this - please be specific with commands, as I'm fairly new to this I have got a bit lost. Thanks in advance |
How to OCR a PDF file and get the text stored within the PDF? Posted: 12 Oct 2021 07:33 AM PDT First, apologies if this has been asked before - I searched for a while through the existing posts, but could not find support. I am interested in a solution for Fedora to OCR a multipage non-searchable PDF and to turn this PDF into a new PDF file that contains the text layer on top of the image. On Mac OSX or Windows we could use Adobe Acrobat, but is there a solution on Linux, specifically on Fedora? This seems to describe a solution - but unfortunately I am already lost when retrieving exact-image. |
What to do if the owner of /usr/bin/* changes to a non-root? Posted: 12 Oct 2021 10:08 AM PDT It would be the right thing to say that I messed up! Accidentally, I changed the owner of all files in /usr/bin to 'dev' from 'root'. Now, sudo does not work! If I use sudo with any command, I get -
I cannot use Because this is a Virtual Machine, I cannot access the Recovery Console. Infact, even the Experts, please help me in getting control of the OS without having to re-image. Thanks! P.S - Possibly a duplicate but reposting as his solution was to start afresh. More info -
I am able to create a new user using the GUI. It accepted the root password. How do I grant the new user with root access without using visudo. |
Failed to open vdpau backend - Nouveau Posted: 12 Oct 2021 08:09 AM PDT I'm using ArchLinux and when I run vlc or mplayer, I used to get the error This doesn't seem to cause any error as far as video playback is concerned, but I want to know the reason for this problem. I referred to this post in UbuntuForums and one of the suggestions to solve the problem was to install The only other solution given in the post was to install official nvidia drivers. I'm hoping to avoid this and just use the open-source drivers. Hoping someone can provide a solution to 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