Recent Questions - Unix & Linux Stack Exchange |
- Can't access with ssh any more with or without ssh key (digital ocean)
- Headphones recognized as Headset
- RAID1 as a personal desktop backup system, pros and cons
- Tricky emulation of custom kernel image using QEMU
- Password manager with fingerprint support?
- which module(s) shall I unload to disable a wifi adapter?
- What's the difference between the "%s" in vim normal mode and regular GNU sed
- How to connect to VM with NAT via SSH protocol? (Qemu/KVM)
- Separete only number and display it in new line using bash command
- Every time I boot into ubuntu, it shuts down immediately and restarts again itself. It goes into a loop
- Install Grub to USB drive with installed Linux distro inside (Kali)
- select data conversion based on value range
- How to compare two files to get matched records?
- cifs mount error(2): No such file or directory
- Passing arguments to a command safely
- Exclude specific IP with port from a iptable rule having range of ip and port
- Automatic set-up, the network can bus with Ubuntu 20.04
- How to get all paths from a website using cURL
- External Microphone not does not work on Linux Mint 20 Ulyana
- getting current script location in bash (like python __file__ variable)
- How do I install wmutils on Fedora easily?
- Packaging binary release on OpenBSD
- Cannot create New folder and Paste files on a drive - Ubuntu
- Difference between zsh-history-substring-search and up-line-or-beginning-search
- hplip 3.16.2: no installed HP device found (while CUPS finds it)
- Keep aspect ratio true to the mode
- How to view traffic over a forwarded ssh port?
- How can I open a new terminal in the same directory of the last used one from a window manager keybind?
| Can't access with ssh any more with or without ssh key (digital ocean) Posted: 18 Apr 2021 09:52 AM PDT Initially i have problem with: ssh_host_rsa_key invalid format... i fixed with I use cent os 8. I start delete some project whos actually was running. After desconnection i cant any more to connect with ssh . I already have key host implemented. On connect : On the end i remove from digital ocean setting security keys… I also change in sshd_config Still no connect with ssh .... My only alive options is recovery digital ocean web console... |
| Headphones recognized as Headset Posted: 18 Apr 2021 09:18 AM PDT When I plug in my headphone into the (only, so pobably combined out/in) jack in my laptop in Ubuntu 20.04 the config switches output to headphone (I like that) and mic to the non-existing headphone mic (not so). I can switch the mic back to internal laptop mic in the settings, but it's quite tiring since I plug/unplug them often. The jack of the headphone has three sections (not four as proper headsets have). How do I prevent switching to the non-existing mic? I tried Changing PulseAudio Source port: 'availability=no' and priority but to no avail. |
| RAID1 as a personal desktop backup system, pros and cons Posted: 18 Apr 2021 09:05 AM PDT I'm seriously considering ways to safeguard my data since I'm really tired of loosing files because of bad redundancy. I was reading about RAID1 and it seems a very practical method of keeping updated backups, though I'm worried about complexity, security, flexibility and portability. By complexity I mean that I'm adding another logical layer to the filesystem, so in case that anything goes wrong, maintaining and securing both layers may result in added complexity. How do you rescue data from a RAID1 system? Is it more complex than a normal ext4? By security I mean that redundancy is double sharped because an error in the upper ext4 filesystem would affect both drives simultaneously because both drives are readed and written at the same time. Is there any means to prevent this? By flexibility I mean, what happens if one of the mirrored drives breaks up and I'm not able to afford another drive? can I maintain a RAID1 system with only one drive indefinitely? also is it possible to simplify a raid1 system back to a normal ext4 partition?
|
| Tricky emulation of custom kernel image using QEMU Posted: 18 Apr 2021 08:28 AM PDT thank you for viewing this question. I have an SD image which contains 4 partitions:
After running file at the U-boot kernel I can tell the kernel version is 4.14.24-rt19-stable. My question is, can I download the kernel and build a boot disk to emulate it with QEMU having only these files available? I know the original target processor is cortex-a7. Any guidance would be appreciated! |
| Password manager with fingerprint support? Posted: 18 Apr 2021 08:07 AM PDT Is there a password manager with fingerprint support? I use Fedora KDE. I know that fingerprints might be somewhat insecure. Still, a password manager with fingerprint support is useful. It can be used for logins which are not too important. Like forums and StackExchange, where losing your password to a state would not be the end of the world in any sense. |
| which module(s) shall I unload to disable a wifi adapter? Posted: 18 Apr 2021 09:16 AM PDT My T400 laptop has an internal wifi adapter. It sometimes works and sometimes don't. I use an external wifi adapter, and want to disable the internal one so that it won't suddenly work again and suspiciously interfere with other things. How can I find out which module(s) to unload? Here is the current output, with the external wifi adapter working and the internal one not: and and |
| What's the difference between the "%s" in vim normal mode and regular GNU sed Posted: 18 Apr 2021 08:58 AM PDT I am quite new to regex, and thought markdown(custom/madeup format of maardown) to html conversion using regex would be a good way to get started. When I'm within Vim(8.1), say converting this line; to; I used this command in Vim; And I get exactly what I was hopping for. However, when I ran the same command from my terminal using GNU sed, I get no change in output; Also, including the I wonder why that is. |
| How to connect to VM with NAT via SSH protocol? (Qemu/KVM) Posted: 18 Apr 2021 08:01 AM PDT I need your advice. Brief to my question: I got two Linux/Ubuntu 18.04 Lts. machines. First one is the host(SSHD) and has a VM machine installed on it(virtual machine's ethernet is configured as NAT: Qemu/KVM - virtualization). Simple SSH connection between host and VM on it in NAT regime works perfectly: ssh user@ip.address > pass First machine is connected to router via LAN and second machine is a ssh-client connected to a router via Wifi. machine1(host machine, LAN) > Router < (wifi) machine2(SSH Client) Is there any solution to access VM(on host machine) with machine that is connected to wifi network only? I'm pretty new with Unix/Linux, so I would really appreciate your support with this case. ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.122.x netmask 255.255.255.0 broadcast 192.168.122.255 P.S. I would prefer not to switch NAT to bridge regime. If you need more data, I will gladly provide you with some more details. |
| Separete only number and display it in new line using bash command Posted: 18 Apr 2021 08:21 AM PDT I need to display count of number of line which content number with no including alphabet. And also display these no. in separate lines. Below given is the content of example.txt file: The output of shell file is given below, somebody suggest how can I do this... |
| Posted: 18 Apr 2021 09:21 AM PDT I got an issue that is really bugging me for the past few days. I am trying to boot into Ubuntu system 20.04 LTS. However, every time I turn on, for about 5 seconds loading something it then suddenly shut down. It then automatically restart, loading and shutdown .. continue in a loop.. However, if I go into Grub, I can log into the recover mode and get access the root command line interface. Can anyone help me troubleshoot this strange thing. The following are the only things that are set up in my computer build right now: Motherboard: Z590 MSI PRO WIFI CPU: i9-10850k and a CPU fan RAM: a pair of 16 gb M2: samsung 980 pro nvme power supply: EVGA 700 GD, 80+ GOLD 700W UPDATE: Currently, What I have tried which can log into the OS and even the user interface is to edit the Ubuntu option in GRUB. However, only before 5 minutes the computer shuts down itself. Specifically, I added "$vt_handoff nomodeset". When loading, I found that it keeps saying that |
| Install Grub to USB drive with installed Linux distro inside (Kali) Posted: 18 Apr 2021 08:50 AM PDT I'm trying to make a usb drive with two linux distros installed inside. The idea is to carry the usb drive with me and boot the distros in the computer available at the place where I am at that moment. I know that this might be a bad practice, but just wanna give it a try. I tried to install Kali Linux distro to my usb drive according to this video, in which a VirtualBox VM is used to install the O.S. into a usb drive. When I first tried I didn't booted my VM in EFI mode and so the O.S. was installed in legacy mode (boot instructions written in the MBR). All was OK as long as I booted on my pc supporting legacy boot, but when I tried to boot from my Microsoft Surface (which doesn't support legacy boot), I obviously couldn't boot from the external drive. So I tried to reinstall Kali with EFI mode activated on the VM, but I wasn't lucky this time either and didn't manage to boot the distro on my Surface. The situation was the same as when I tried to boot from my Surface having the distro installed in legacy mode: the Surface didn't recognize the bootable usb drive at all. Googling I found a bunch of solutions to install/reinstall GRUB to an usb/external drive, but when I tried them, it seemed they were working only as long as I booted on the same device which I used to install GRUB on the usb drive. As an example, when I used the VirtualBox VM to install GRUB into my usb device, I was able to boot my Kali distro into the usb device ONLY from that VirtualBox VM. I think I'm missing something here... Can someone give me an hand to clarify and, maybe, solve? I attach screenshots describing the partitioning of my usb drive and the content of the ESP partition on the USB drive after the installation in EFI mode of Kali Linux, in case they can help: --- UPDATE --- I managed to boot my system on BOTH my PCs capable of EFI boot. I just moved the Kali boot loader located in my ESP from /EFI/Kali to the fallback path /EFI/BOOT and renamed the bootloader from "grubx64.efi" to the fallback name "bootx64.efi". I don't know why the boot process didn't manage to boot /EFI/Kali/grubx64.efi do someone has any clues? Now I only got to make everything bootable in legacy mode (aka using BIOS), is it possible? It seems to be possible to boot a usb drive both UEFI and legacy mode, but is there a way I can set everything up without messing anything working in my actual EFI bootable configuration? |
| select data conversion based on value range Posted: 18 Apr 2021 09:12 AM PDT I have a text file with 3 columns of data. However at random times in the various files there is a change in the in the observed unit from ppn to ppb resulting in the need of a conversion factor and multiplication by 1000. I have a awk command to print all original and add a fourth column with the conversion. The only issue is it prints everything everything in the third column by 1000 and print to the fourth column. The command is below.... How can I can only values between 2 and -1 in column #3 only get multiplied by 1000 and other wise print the orignal value of column 3 in column 4? |
| How to compare two files to get matched records? Posted: 18 Apr 2021 09:41 AM PDT I have 2 files with There are common fields in different positions. In In both files total count was 3k, both files were * delimter, in that file1 $1 and file2 $2 was common field for both files, we need check whether common field has 0 or 1 which present in file1 $3. we need to write the file like 1==>000000001D0560020011 2==>000000003D0792917850, $1=seqno,$2=matched9digit value follwed byD and $3 whether is 0 or 1 All $2 values from file2 will be present as $1 values in file1. file1: file2: output: I tried using the following Please help on that? |
| cifs mount error(2): No such file or directory Posted: 18 Apr 2021 09:36 AM PDT I have a Buffalo Neworkstorage (NS) installed. I am able to mount the NS from my Rock Pi N10 running Debian (buster) using the following command: But on my PC running Ubuntu 18.04, using the exactly the same command as above, I got an error: The
I can even mount the NS through Files other location by "smb://<ip.address>" using Anonymous without password, but I cannot Does anyone have the same situation and found a solution? |
| Passing arguments to a command safely Posted: 18 Apr 2021 09:47 AM PDT It is well known that it's a bad idea to do something of the kind Is there then a general safe way to accomplish this? One hypothesis would be to add |
| Exclude specific IP with port from a iptable rule having range of ip and port Posted: 18 Apr 2021 08:21 AM PDT Need help to create an iptable rule which will redirect all request of ip range 172.16.0.1 to 172.16.0.120 with port range 20-8081 to localhost service listening on port 22215, but this rule should not catch ip 172.16.0.111 with port 443 (i.e., 172.16.0.111:443 should directly access through internet). After applying the above rule all the request which has ip and port in the above range are redirected to 127.0.0.1:22215. But I am not getting how to exclude ip 172.16.0.111 having port 443. |
| Automatic set-up, the network can bus with Ubuntu 20.04 Posted: 18 Apr 2021 08:13 AM PDT I want to set-up the network of the CAN bus automatically with Ubuntu 20.04. For other distributions, it is done like this in /etc/network/interfaces: But I did not find this path etc/network/interfaces . An |
| How to get all paths from a website using cURL Posted: 18 Apr 2021 08:25 AM PDT
the question:
from the question, I do not know the meaning of "UNIQUE PATHS", but I think it means something similar to what you get from executing I used this method and it worked somehow this will show at the bottom. assuming 23 downloads and 10 broken links all add up to be the unique path I got 33 and it was the correct answer. |
| External Microphone not does not work on Linux Mint 20 Ulyana Posted: 18 Apr 2021 07:20 AM PDT Issue I cannot capture audio using an external microphone on my Linux Mint 20 Ulyana system. In However, I can still use the internal microphone without any issue. Things I have tried so far
Here's my system information: https://termbin.com/31ml |
| getting current script location in bash (like python __file__ variable) Posted: 18 Apr 2021 06:56 AM PDT How can I get the full filename of a script in bash? (Similar to python's something like |
| How do I install wmutils on Fedora easily? Posted: 18 Apr 2021 09:49 AM PDT I've tried to compile But I get I also use Homebrew but didn't see a tap for it. How do I compile this? I tried getting the missing dev package but it wasn't available. I try to stay within software that's simple to install so I wonder - is there an easier way I'm not seeing? |
| Packaging binary release on OpenBSD Posted: 18 Apr 2021 07:07 AM PDT I have a tiny application written in go and I've cross-compiled it to various operating systems. Currently my I can't find tutorials/howtos/examples on how to package this into official OpenBSD So how you make the binary release package on OpenBSD so that there's all the metadata such as maintainer, application category, architecture and such? The idea here is not getting the package to any official ports repository. It's to simply package a release for your own machine and learning about the packaging process on OpenBSD. |
| Cannot create New folder and Paste files on a drive - Ubuntu Posted: 18 Apr 2021 09:54 AM PDT |
| Difference between zsh-history-substring-search and up-line-or-beginning-search Posted: 18 Apr 2021 07:35 AM PDT Is there a practical difference between history-substring-search-up and up-line-or-beginning-search? I've tried both out and they effectively seem to do the same thing (besides some highlighting that history-substring-search does). |
| hplip 3.16.2: no installed HP device found (while CUPS finds it) Posted: 18 Apr 2021 06:59 AM PDT I was investigating further an issue already reported here. The problem is: after having upgraded the hplip driver to 3.16.2, the scanner in my all-in-one printer HP Color LaserJet Pro MFP M277dw does not work any longer (while the printer does). Today I found other oddities that seem specific to hplip rather than to sane, whereby this other post. I use Ubuntu Linux 14.04 LTS. In all that follows the device is connected and powered-on. The hplip page for that device is here. Evidencesa. Moving on from the sane community page on Ubuntu, I followed the suggestion to run
b. If run
This sounds utterly odd to me, because the previous hplip did not dare to complain this far of the very same distro. The complete output of hp-doctor is available from here on Paste Ubuntu. c. Ever more puzzling, if I open the HP device manager, I am presented with the window which seems a false statement to me, since the device works as a printer at the very least. If I click on QuestionsIs there a way to have the commands If not, how do I downgrade the hplip driver to the previous stable version? Installing 3.16.2 has led to more havoc than joy. |
| Keep aspect ratio true to the mode Posted: 18 Apr 2021 08:53 AM PDT I've recently installed Linux Mint 17, replacing my ageing Mint 13 installation. I've got a 16:9 screen. In case it matters, my graphics card is an NVidia GeForce 210. Now back in Mint 13, if a game switched to a 4:3 mode, I got it displayed in the correct aspect ratio, with black bars left and right. However now they are deformed to fill the full screen, which is annoying because it no only looks terrible, but also destroys angles and therefore affects gameplay. I then also checked explicitly switching to a 4:3 mode (using the "Monitors" settings dialog), and again it deformed the image. I also checked my monitor's setting that it is indeed still set to keep the aspect ratio. Indeed, going into the monitor's menu tells me that the screen still gets a 1920x1080 signal. Therefore I conclude that it's a Linux/X11/graphics driver issue. I'm using the Nouveau driver. In Mint 13 I used the proprietary NVidia driver; that could make a difference. However I cannot imagine that there's no way to get the correct aspect ratio also with Nouveau. Therefore my question is: What do I have to do to get 4:3 modes (or, more generally, non-16:9 modes) displayed in the correct aspect ratio on a 16:9 monitor (without affecting the 16:9 modes, obviously)? |
| How to view traffic over a forwarded ssh port? Posted: 18 Apr 2021 08:09 AM PDT It is possible to setup an SSH port forward where the ssh client prints out the traffic exchanged over the ssh port to the screen or a file. I am trying to debug a problem and want to see what is being sent between a java process running on my local machine and a remote process running on Solaris. I am using the port forwarding via ssh so that i can step through the java program. Normally I would have to copy the .java files to the Solaris machine, build them and run and it is not very productive way to debug, thus the port forwarding. The client and server as using IIOP protocol so I can't use an http proxy to monitor the traffic. |
| Posted: 18 Apr 2021 06:44 AM PDT I'm using a tiling window manager and I switched from In short: I need a way to open a new urxvt (bash) that defaults to $PWD of the last used one. The only solution that comes to my mind is to save the current path on every and restore the path on the new terminal in this way: I can source the second command in Any simpler solution that does not involve |
| 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