Recent Questions - Unix & Linux Stack Exchange |
- How to Migrate Neovim from Windows to Linux
- Is runit safe nowadays?
- `date` command doesn't have an option for ISO-8601 week format input?
- bash on pi3B+ stretch; shell script to fork ' program &' --bash cannot find file. It IS there
- linux apt broken
- Ubuntu, Virtualbox - How do I force a refresh rate value?
- umount bash: warning: shell level (1000) too high, resetting to 1
- Application Screen sharing instead of sharing my whole screen?
- How to obviate the problem of no spaces when joining lines in ed
- How to get grep to exit immediately when command is received from netcat?
- Debian systemd firewall or firewalld?
- Why does drive image show different start partition free size?
- (Apple Silicon+UTM) aarch64 image-based VM deployment
- From USB wifi dongle interface determine vendor: product ID
- Replacing one of the repeated words
- cannot sniff the packet going through openwrt network bridge
- shutdown, but still allow new logins
- Ansible Compare INI Local against Remote
- What to do if easytag v. 2.4.2 corrupts flac files when saving an image to the metadata?
- I need to use sed in Linux to find a portion of a line in XML and update a value in it?
- How can I use hist_ignore_dups to ignore duplicate lines in zsh with extended_history enabled?
- unable to curl on ip address however localhost is working fine
- Mounting BTRFS in RHEL 8
- Cannot render non-ASCII characters with ffmpeg's drawtext
- How can we predict when the next Debian release will be out?
- How to reset linux centOS 6.0 keyboard shortcuts with custom changes to default one?
- How to install PostgreSQL 9.3 in FreeBSD jail?
How to Migrate Neovim from Windows to Linux Posted: 31 Jul 2021 09:42 AM PDT This seems like a pretty simple question, but I can't find a solution. I have Neovim configuration on Windows with a custom init.vim as well as plugins and color schemes. I am able to get Neovim on Ubuntu Linux to load my init.vim file, but there are many errors. Some of them occur because it can't find the plugins and colorschemes invoked in What do I have to change to get my windows configuration working on Linux? |
Posted: 31 Jul 2021 09:21 AM PDT Runit is not active in development: it's last release was 7 years ago, according to the wikipedia page. This makes me worry about whether it is safe, and i wasn't able to find anything online. My thought is that a old software that is not updated is more likely to have known exploits, and that without updates those won't be fixed. However i might be misunderstanding how things work... Why is runit still used if it hasn't been updated in years? Are there still patches made for it in case exploits are found or something? |
`date` command doesn't have an option for ISO-8601 week format input? Posted: 31 Jul 2021 08:32 AM PDT I occasionally use the However, it seems like it is not possible to do this in reverse. That is, get the date in "month-date" format given a date in "week number" format. For example, if I run |
bash on pi3B+ stretch; shell script to fork ' program &' --bash cannot find file. It IS there Posted: 31 Jul 2021 08:53 AM PDT Have tried variations with/without ' and &, spelling full path, adding to $PATH. The script cannot seem to find hyperping, tho it is in the same directory as the script which is calling it. Executing as user pi. Pulling my hair OUT!! Actual line in script "hyperping" is in PATH [verified via $PATH, also via removing &] "hyperping" runs fine called independently. output of bash with "set -xv" |
Posted: 31 Jul 2021 05:58 AM PDT so im new to linux and was trying to download everything I needed. the first issue I ran into was getting the architecture i386. There was some echo codes and when something was fetching files, the terminal crashed. i had moved files to my Linux folder on my Chromebook and then deleted them. Now this is what I keep getting How do I fix this issue so I can run Linux properly? |
Ubuntu, Virtualbox - How do I force a refresh rate value? Posted: 31 Jul 2021 07:04 AM PDT Previously, when I was using Lubuntu the refresh rate was set to 59.94Hz and everything playback wise was flawless. Considering that everything is identical, same Guest addition installed, same browser, same video, etc. Now with Ubuntu, it is having problems with video playback synchronization, skipping frames at a regular interval causing a frame or two to freeze. I highly suspect it's due to the refresh rate, if not, at least I can eliminate that as a possibility and try to tweak other settings. With Ubuntu, how do I know my refresh rate and how do I change it? |
umount bash: warning: shell level (1000) too high, resetting to 1 Posted: 31 Jul 2021 05:52 AM PDT I can mount drives and images, but I can't unmount them. I get 'shell level too high'. I expect this normally happens when a script calls itself. Is there some script that is run by umount? I can't figure out why this is happening. Edit: Fixed incorrect copy/paste. |
Application Screen sharing instead of sharing my whole screen? Posted: 31 Jul 2021 08:48 AM PDT Hey guys i cannot find a way to share my application only i have to live my whole screen if i have to screen share on discord and Skype , how to share screen of a specific application on Linux tried it on firefox to screen share an application but there wasn't any , had to share whole screen due to that how to fix this issue I am using Garuda Linux Kde dragonized version Operating System: Garuda Linux KDE Plasma Version: 5.22.4 KDE Frameworks Version: 5.84.0 Qt Version: 5.15.2 Kernel Version: 5.13.6-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 6 × Intel® Core™ i5-8600K CPU @ 3.60GHz Memory: 23.3 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 |
How to obviate the problem of no spaces when joining lines in ed Posted: 31 Jul 2021 06:00 AM PDT In ed it is easy to join lines together. For example,
However, ed does not add a space between the joined lines, and therefore one is often left with this situation: One could first add a space and then join the lines, as in, but this is somewhat cumbersome. Does anyone have a more elegant solution? |
How to get grep to exit immediately when command is received from netcat? Posted: 31 Jul 2021 06:25 AM PDT I want to open a port and listen for a command, and when that command comes in, immediately run a script. The best I've come up with is (the echo is a substitute for my script): , then I run this to test: Unfortunately it only seems to echo the text on the second time I send "runcommand"?? How can I make grep exit immediately, so my script will run immediately? |
Debian systemd firewall or firewalld? Posted: 31 Jul 2021 08:17 AM PDT I have run into some issues with the Firewall configuration for Debian 10 Buster: However, when checking systemd it reports "degraded": and checking the problem: I checked several different forums and Debian Wiki pages, only to become more confused by deprecated information regarding iptables set-ups and nftable configurations which has superceded iptables in Debian Buster. But here is were my question start: Why are there 2 firewall services on my system, and what are their functions? Is the firewall.service something to configure with iptables or will this conflict with the working firewalld.service set up? I appreciate your considerations, suggestions and attention. Cheers! |
Why does drive image show different start partition free size? Posted: 31 Jul 2021 09:10 AM PDT I made an image of /dev/sdc. The free space before the first partition isn't reporting the same byte sizes, but why? The start position is reported as Edit: I created the image like so Edit2: After running md5sum on both, they show same hash |
(Apple Silicon+UTM) aarch64 image-based VM deployment Posted: 31 Jul 2021 06:25 AM PDT I'm running my aarch64-Fedora server in UTM on an M1 Mac via the Apple hypervisor by using aarch64 as the QEMU architecture option in UTM. I know that for SD cards, these images can simply be dd'd to the device, and then enlarged later, but what is the recommended procedure in my case? So far, I know I can extract the .raw disk image and run it right away in UTM, but I'd like to use the qcow2 format for the VM disk, and a larger disk size than simply 'whatever the image extracts to.' Can I create the .qcow2 disk image with UTM at a larger size, say, 40GB and then dd the Fedora image to the .qcow2 file like ' |
From USB wifi dongle interface determine vendor: product ID Posted: 31 Jul 2021 09:49 AM PDT I am in the process of developing a bash script which automates the addition of a USB wifi dongle to a virtual machine (QEmu/KVM virtualization) and therefore to add a wifi key to a VM. [edit]This VM is for the moment with Debian Buster distro[/edit] From the host when I plug in my TP-Link TL-WN823N USB dongle, the following interface is added : When I list the USB devices I get : It is therefore identified by the wlx123456789012 interface, its vendor:product ID is 2357:0109 and is device #9 of USB bus #2.* How to determine for sure vendor:product ID when we only know the name of the interface ? @meuh suggestion So no vendor nor device file directly in this location But that inspired me, so I tried : So in /sys/class/net/wlx123456789012/device, there are : modalias : usb:v2357p0109d0101dc00dsc00dp00icFFiscFFipFFin00 uevent : PRODUCT=2357/0109/101 So I found traces but the fact that @meuh gives me another localization makes me doubt that the solution (especially if I change the version of the distro or just the distro) |
Replacing one of the repeated words Posted: 31 Jul 2021 09:09 AM PDT Hi Im new to this so please bear with me. I have a .txt file where I want to replace a word but the problem is, that word is being repeated over and over again (lets assume you have million of lines like this) I want to replace the first occurence of Apple to Mango like this Is there a way to do this through sed or awk specifically(from what I understand sed can be used to replace words but not multiple lines of inputs - in my case I just want to replace the very first word) btw if its doable through other tools thats fine as well |
cannot sniff the packet going through openwrt network bridge Posted: 31 Jul 2021 09:14 AM PDT What I am doing is setting up a spare openwrt as a packet sniffer. I have setup like this: From MY PC, I am using wireshark to capture any packet going through the target board. Currently, my home router IP is 10.10.10.1, my PC is 10.10.10.50 and the openwrt bridge is 10.10.10.80 and my target board is up and has the 10.10.10.28 Using wireshark to observe the openwrt, I can see packet of the 10.10.10.80 but not anything from 10.10.10.28. I have tried using my PC to ping the 10.10.10.28, and I can see that there is the traffic going from my pc to 10.10.10.28 while there is not any captured traffic from 10.10.10.28. Do I setup the OpenWRT wrongly? I can confirm that the Target device is up and running smoothly, I have run application on it. I just cannot sniff the packet from it for debugging. All the setup is wired network. Edit: My home router is the gateway and it is running DHCP, the OpenWRT bridge is the DHCP client of the home router. The OpenWRT is connected has one port connected to home router, and one port connected with my Target board (also the dhcp client of my home router). On the Openwrt, I installed tcpdump and I want to capture the port connected with the Target board. Yes, the ping working but I cannot get all the traffic. Edit 2: May be am overcareful, my net work is just 10.10.10.1/24. the reason that I place the target board and me is at separated room lmao. The OpenWRT device is EspresssoBin V5, I am flashing the OpenWrt 19.07.4. Edit 3: I attached the dump from lan 0 is connected to my target device, lan1 is connected to my home router. and from Edit 5: Solution I have found a solution on (this link)[https://forum.openwrt.org/t/passive-tap-hub-and-ethernet-bridge/51178/21]. I am not the expert in networking and OpenWrt, so I left the explanation to the expert. I short, after applying these 2 line, I can see the traffic from my target hardware, but as I said, I don't know the reason why it works. |
shutdown, but still allow new logins Posted: 31 Jul 2021 08:11 AM PDT I have a Linux VM on AWS in EC2 that starts up, performs a task, and then shuts itself down. I am issuing the shutdown command like this: I have a 5 minute delay to give myself time to The problem I have is once I issue the shutdown command, Linux will no longer allow new logins. There doesn't seem to be anything in the man page to allow it to issue a shutdown, but still allow new logins. Is there a way to issue this shutdown command, but still allow a new |
Ansible Compare INI Local against Remote Posted: 31 Jul 2021 05:24 AM PDT I have a Java Properities file on my Ansible Server and remote machine Server: /opt/deployment/application/build.properities On the remote machine is the same file (if it's installed) which could contain a newer or older version Remote: /opt/application/build.properities Can I use ansible.builtin.ini to compare the build number on my remote machine to the server and:
It wasn't clear to me if ansible.builtin.ini was targeting the local server or the remote machine (I probably missed something). Both machines are Ubuntu Linux if that makes a difference. |
What to do if easytag v. 2.4.2 corrupts flac files when saving an image to the metadata? Posted: 31 Jul 2021 09:15 AM PDT I experienced that my Since I am not able to install the latest version 2.4.3. and I also don't know if this would solve the problem I need a way to solve this. |
I need to use sed in Linux to find a portion of a line in XML and update a value in it? Posted: 31 Jul 2021 05:39 AM PDT I have a requirement to update a variable value in XML with a fixed value once there is a partial match in XML using Example: Input value: The requirement is to update the version value with only 6.02 whenever "6.02" is there in version value. So, output would be like: Note: |
How can I use hist_ignore_dups to ignore duplicate lines in zsh with extended_history enabled? Posted: 31 Jul 2021 07:16 AM PDT When enabling (Note: I think But duplicate lines still appeared in I suspect that |
unable to curl on ip address however localhost is working fine Posted: 31 Jul 2021 09:01 AM PDT If i do curl on localhost then its working fine.However if i replace with system ip address its giving error. I have entry for ip address in etc/hosts my /etc/host/ |
Posted: 31 Jul 2021 06:46 AM PDT I had a I tried installing My current options are,
I can't choose these options as I am not the decision maker. So is there any other smart/lazy way of mounting the filesystem? |
Cannot render non-ASCII characters with ffmpeg's drawtext Posted: 31 Jul 2021 07:07 AM PDT Using the This command creates a five second test video, as expected (nothing pretty): But the output fails to render any non-ASCII characters: Note from left to right: AT - Double spaced characters 05 - Simple numbers ーポン - CJK characters æ"¢ð - AltGr + a,b,c,d in my locale (en_GB.UTF-8) At first I assumed the font was at fault, but I've checked numerous fonts and they have the relevant glyphs. Indeed my entire system has no problems with these characters at all. I then assumed it must be The result being: So I'm back to assuming there is something wrong with my environment. I've tried on Ubuntu Trusty and Ubuntu Xenial but the results are the same. I don't know where else to look given that my locale appears to be correct, and any font I use correctly renders the font, but when passed to either I've done the usual hours and hours of Googling to no avail. I'm amazed nobody else has seen this problem before me. Can anyone shed any light? |
How can we predict when the next Debian release will be out? Posted: 31 Jul 2021 06:11 AM PDT Is there a way to predict when the next release will be out? I read somewhere that it has to do with number of bugs remaining in the testing branch. Could someone please explain how this works and when the next release will happen based on what variables? |
How to reset linux centOS 6.0 keyboard shortcuts with custom changes to default one? Posted: 31 Jul 2021 06:05 AM PDT On Single Desktop Environment.... I created some custom shortcuts, but currently I want to revert all the changes to default settings (which having no custom changes). Example: created like CTRL + N = new terminal and later changed it to CTRL + T so here, CTRL + N is overridden with some conflicts. Where gedit CTRL + N for opening a new document is affected (not working at all). I found some related questions on this, but none resolved my purpose. Actually, if there are no ways to reset entire keyboard shortcut keys in CentOS, please suggest a way to rectify CTRL + N to work fine for |
How to install PostgreSQL 9.3 in FreeBSD jail? Posted: 31 Jul 2021 07:27 AM PDT I configured virtual NICS using When I tried to install PostgreSQL 9.3 using port collection, it shows strange message at first. Anyway, installation continues, so I waited. I chose all default options for all option dialogs. And at the end of the process, I saw it finally failed with this message. I have no idea why this fails. Errors at beginning seems I have something wrong with What's wrong with my jail? How can install PostgreSQL 9.3 in my jail? |
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