Recent Questions - Unix & Linux Stack Exchange |
- How to split a line of text separated by "," into a file containing one string per line?
- Windows is not present in grub menu
- Network access issue on Kali in VirtualBox
- How to check how my process' CPUs are affined?
- Why doesn't bash interpret the asterisk character when used with xargs command?
- How do I get sed to delete the second block of lines in a file?
- 7z command to create a XZ file
- eth0 and eth1 configs are opposite of ifconfig
- how to share file with socat in RW
- bash script for not starting more than once
- Use MD5 OSPF authentication in FRR on FIPS enabled RHEL 8 machine?
- How to block specific desktop notifications?
- Bash hotkey to retrieve the last value sent to stdout
- Cannot renable wifi on Linux Mint 20.2 (Xfce)
- PV command to show progress in Dialog with transfer rate in Mbits
- output of which perl is /bin/perl instead of /usr/bin/perl
- Sort according to the last column (or any other column with a numerical value) of a csv file
- Where does systemd get the build time in order to advance?
- Mac Terminal Git + Less doesn't show the first line of output
- What are some very basic hardening steps a novice can take to better secure their Linux system?
- What are my options for a mix of vm-like features and container-like speed?
- Destination server files moved and Rsync copying same fiels again
- how can i see the driver in use you a curien device thats does not seam to be listed with lspci?
- systemd: Failed at step CHDIR spawning /bin/sh: No such file or directory
- How to clear history in zsh
- HPLIP -> HPAIO Error during device I/O
- Need write permissions to install themes on Linux Mint 17 "Rebecca" Mate
- How to find and replace string without use command Sed?
- Sending input to a screen session from outside
How to split a line of text separated by "," into a file containing one string per line? Posted: 22 Sep 2021 11:03 AM PDT I have a file containing strings in the format of The content in the original file is dynamic, which could contain 0, 1, 2, or more strings. How do I do that? |
Windows is not present in grub menu Posted: 22 Sep 2021 10:40 AM PDT (I don't know if this question belongs here, but here we go) I bought a new HP 14(2021) last week, with 11th gen core i3 and Xe graphics. It came with Windows 10. After a few days, I installed Manjaro on it, along with windows but Manjaro had some problems booting up. I watched a few YT tutorials and found out that it could be associated with grub. Yesterday, I booted into a live user in manjaro and was gonna fix grub. There was a part in which I would have to mount the root partition of Manjaro, but I accidentally mounted the Windows partition. Then, I was trying to unmount it, but the partition was busy, so I powered off the pc. I turned on the lap again, but the grub menu was not shown and it directly booted into Manjaro, which had some rootfs problems. Then, I installed elementary os, without formatting the efi, but the grub menu still didn't show Windows. I checked the uefi firmware, and it still showed windows boot manager. On selecting it, a grub rescue screen was shown. From elementary, I tried os-prober and update-grub, but both didn't show the windows partition. The EFI partition currently has manjaro,windows boot manager,ubuntu and elementary os. The last 2 came after installing EOS. When I booted from the Windows 10 iso and executed some commands in the command prompt of the troubleshoot, it could not find any windows installation. So,has windows been uninstalled or is it some Linux related problem? (I can still access files in the Windows Partition from Elementary) P.S: The link of the video which I referred to: https://youtu.be/8hxLIua8SS4?t=163 PPS: I am ready to install windows again, if required. PPPS: The windows install came with ms office, is there any way to get them again? |
Network access issue on Kali in VirtualBox Posted: 22 Sep 2021 10:34 AM PDT I just installed Kali Linux on a virtual machine with VirtualBox, but I cannot access the internet or ping the host machine, yet the access mode is set to bridge access. For Internet access I use a HUAWEI MOBILE key. Here is a capture of the ifconfig and ping commands to the host machine: Thanks for your help ! |
How to check how my process' CPUs are affined? Posted: 22 Sep 2021 09:55 AM PDT When I log into my host, I find that my processes are affined to a subset of cores: I don't know why. This occurs for root or any other login shell. I have scoured /etc/, looking for strings 'affin' or 'taskset' in the files: ...nothing. I have performed ...the whole boat is in there. I can't for the life of me figure out where that affinity list is being set. I should mention perhaps that I did have the cpu-partitioning tuning on this machine previously, but I changed it to 'throughput-performance' and removed the BTW, we have: Thanks. |
Why doesn't bash interpret the asterisk character when used with xargs command? Posted: 22 Sep 2021 10:14 AM PDT As far as I understand, the asterisk character However, when I have tried the following: Why doesn't Bash interpret Could you please explain the logic behind this? Thank you |
How do I get sed to delete the second block of lines in a file? Posted: 22 Sep 2021 10:51 AM PDT I have hundreds of badly-written HTML files that have two HTML sections, like this: I want to delete the entire second HTML section using GNU sed 4.7 on Linux. I've tried things like: but that doesn't work. I'd like to do something like this but it's not syntactically correct: Help please. |
7z command to create a XZ file Posted: 22 Sep 2021 10:08 AM PDT The man page says 7z tool supports 7z, LZMA2, XZ, ZIP, Zip64, CAB, RAR, ARJ, GZIP, BZIP2, TAR, CPIO, RPM, ISO, most filesystem images and DEB formats. And it says we could pass the type as But I can't archive the files into Anything I am doing wrong here? How to create EDIT: The following command successful. Does it mean we can use |
eth0 and eth1 configs are opposite of ifconfig Posted: 22 Sep 2021 09:45 AM PDT
I was tasked with doing some maintenance on an old server that I did not set up or normally maintain, during my initial investigation of the server I ran into some strange problems. This server has two Ethernet ports and two Ethernet cables plugged into it. eth0 is set up so that outside access can be allowed, not my preferred way of doing things but I did not set it up. eth1 gives access to the internal network the server is on, there's no gateway because there's nothing outside the 10.10.X.X network this server needs to access.
However, I noticed when I did ifconfig that the configurations are essentially swapped.
Any idea what could've caused this? Everything works just fine with the server, the configuration is just opposite of what ifconfig says. When I rebooted the server it no longer had any network access, from the outside or from the inside. I had to attach a keyboard/mouse/monitor and when I did an ifconfig I saw that both eth0 and eth1 had the same IP of 56.231.148.147. I disabled eth0 and got network access back on the external network. I restarted network services and brought eth0 back online and it had the IP 10.10.162.56 as it originally had and the server started functioning as usual. |
how to share file with socat in RW Posted: 22 Sep 2021 09:31 AM PDT I want to share usb dongle in my local network with socat.I managed to do this with following commands but on the client side i am not able to mount it rw it works as read-only: Thank you |
bash script for not starting more than once Posted: 22 Sep 2021 09:40 AM PDT So I have a bash script which will notify me, if the battery is low. The script is here So I am currently using the And I run this file through xorg's startx. If I do a Answers are appreciated :) |
Use MD5 OSPF authentication in FRR on FIPS enabled RHEL 8 machine? Posted: 22 Sep 2021 09:19 AM PDT We're in the process of upgrading to Redhat 8.4. Our organization requires that we enable FIPS on all of our machines. FIPS does not allow the machine to use weak encryption algorithms like MD5. In Redhat 8, the default dynamic routing software package is now FRR (FRRouting). FRRouting has replaced quagga. We use FRR to turn our machines into routers. I'm finding that we can't enable OSPF MD5 authentication on this machine and therefore cannot form an encrypted OSPF neighbor relationship with any neighboring routers. And this is all because of FIPS. I'm wondering if there's a workaround that I could implement. An example of the type of workaround I'm looking for might be similar to what is available for FreeRADIUS on Redhat. FreeRADIUS support MD5 authentication on FIPS enabled servers by implementing the workaround found here: https://access.redhat.com/solutions/4650511 It'd be great if there was a similar solution for FRR. Thanks! |
How to block specific desktop notifications? Posted: 22 Sep 2021 09:04 AM PDT I subscribe to the Boston Globe. I get unwanted news alerts from them as desktop notifications. I never asked for them. I don't want them. I contacted the Boston Globe and they won't help me. I logged on to bostonglobe.com and looked for a relevant setting - no luck. I get many desktop notifications. I only want to stop the ones from the Globe. I know how to programmatically throw up a notification, but I have no idea how to turn off or block specific notifications. And I would like to continue my Globe subscription. I'm running Pop!_OS 20.04 LTS and I login to i3 window manager. Thanks in advance. |
Bash hotkey to retrieve the last value sent to stdout Posted: 22 Sep 2021 09:28 AM PDT I know you can use the last argument passed to last the last command by hitting Alt-.. Is there a similar binding to get the output of the last command, or in other words the last value printed to stdout? These questions are closely related but are not focused an a binding: |
Cannot renable wifi on Linux Mint 20.2 (Xfce) Posted: 22 Sep 2021 09:45 AM PDT I'm running linux mint 20.2 (Xfce). I'm also dual booting along side windows if that's relevant. When I booted into my computer this morning the WIFI was disabled. The F12 button on my keyboard for enabling/disabling wireless is red, when it's usually blue. I've tried enabling it again by pressing the button (with and without the function key) but that didn't work. I've also tired running When I plug in my live USB (which I am using to post start this thread on the same hardware), the WiFi works perfectly fine. Upon running Output of Output of Output of Let me know if you need anymore information, or have any solutions. Thanks. -Linkio |
PV command to show progress in Dialog with transfer rate in Mbits Posted: 22 Sep 2021 10:30 AM PDT I am using PV -n command to read partitions and using gzip with pipe to compress the read data and storing the file. While data is read and written I am using a while loop to show progress using linux dialog utility. This works great, progress is updated. I want to also display the transfer speed / read speed in Mbits. Also I want to update the DB table with progress as well as transfer speed in Mbits. Since I am using a while loop to read each line, progress should be displayed on a new line for every update. See below my code. if I use pv -n command it only returns numeric value of progress on a newline. See below example: Above works great for the progress bar, but I want to do update my db with average speed in mbits. When I run pv command for progress with average speed agrument, progress is updated on the same line instead of print new lines and it breaks my script. See below example. ideal output should be like this. I can use AWK, Sed and Grep to format the the required data and use it in my while loop. But how can I get this to work. If I use other arguments such as pv -n -r -e, it ignores all other parameters just returns the numeric progress value on a newline. Maybe there is an alternative to pv that I can use to achieve exactly described above or maybe someone can help with pv command. |
output of which perl is /bin/perl instead of /usr/bin/perl Posted: 22 Sep 2021 09:49 AM PDT Hi I'm running Redhat Server 7.9 and running into an interesting issue. If I type This same machine would print Im a little confused, why would this change? |
Sort according to the last column (or any other column with a numerical value) of a csv file Posted: 22 Sep 2021 08:51 AM PDT I have a file with following contents. I am looking to sort this file based on the last column (and third last but for another file) while retaining rest of the contents of the row. If I use this command, it works as expected and shows the correct results: But the same command on a bigger file gives an incorrect result. (The file I am looking to sort has 4M rows) Input: |
Where does systemd get the build time in order to advance? Posted: 22 Sep 2021 09:34 AM PDT On bootup, systemd gives me
if the hardware clock is older than the build time. But where does it get this build time? It advances the time to 09/Sept/2020 But and So where does systemd get this build time from? |
Mac Terminal Git + Less doesn't show the first line of output Posted: 22 Sep 2021 10:12 AM PDT I have problems with For some reason, when I do In older OS versions I used to resize the Pure |
What are some very basic hardening steps a novice can take to better secure their Linux system? Posted: 22 Sep 2021 08:51 AM PDT I've read that there are a lot of issues with Linux security. Most of them are covered in this article by a security researcher. The same security researcher also has a Linux hardening guide, but it is way too advanced for me. As someone who is totally new to Linux, are there any steps I can take to make my system reasonably secure and private? In case it matters, I plan on using Pop!_OS 21.04 (which is an Ubuntu-based distribution) though I'm open to alternatives if there is a different "just works" distribution with more security features or faster security updates. EDIT: I should've specified, this will be for personal use on a laptop, either at home or out and about. Not as a server or anything special. |
What are my options for a mix of vm-like features and container-like speed? Posted: 22 Sep 2021 08:53 AM PDT I want to create "something in between a VM and a container", because:
More specific:
What technologies would fit my needs ? |
Destination server files moved and Rsync copying same fiels again Posted: 22 Sep 2021 09:06 AM PDT I am using |
how can i see the driver in use you a curien device thats does not seam to be listed with lspci? Posted: 22 Sep 2021 10:17 AM PDT I am trying to find the driver in use for my touch screen but however runing Full output of and full output of |
systemd: Failed at step CHDIR spawning /bin/sh: No such file or directory Posted: 22 Sep 2021 10:01 AM PDT I'm trying to create a systemd service. I see this error message in my journal. What causes this? |
Posted: 22 Sep 2021 09:26 AM PDT I'm looking for the zsh equivalent of the bash command Just to clarify, I'm not looking for a way to delete the contents of There is a workaround I use for now, but it's obviously less than ideal: in the current session I set |
HPLIP -> HPAIO Error during device I/O Posted: 22 Sep 2021 09:06 AM PDT I'm running Chaos Calmer 15.05 (openwrt firmware) in a TPLINK WDR3600 and I'm trying to install SANE + HPLIP in order to get scanner over lan network. I installed sane-libs and sane-daemon + dependencies from official distribuition feed (for Chaos Calmer) and because HPLIP is not available for Chaos Calmer, I had to install HPLIP for 14.07 in third distribuition url, I don't know if the error below is because of this "version", but.... Well... Using sane-find-scanner I get scanner found out by the system, and scanimage -L returns me:
Although scanimage -T returns:
Can someone help me? PS: Sane is returning me error: |
Need write permissions to install themes on Linux Mint 17 "Rebecca" Mate Posted: 22 Sep 2021 11:03 AM PDT Just installed Linux Mint 17 "Rebecca" Mate. I'm trying to install a new theme and am directed to http://gnome-look.org/index.php?xcontentmode=167 I've downloaded a couple and their instructions request that contents are copied to /usr/share/themes However, I don't have writing permissions to copy to this folder. I carried out a workaround to basically force the download into /themes, but encountered a fairly obstructive error upon booting wherein the ICE authority file could not be updated. This has since been resolved. What's a successful method? Thanks. |
How to find and replace string without use command Sed? Posted: 22 Sep 2021 09:40 AM PDT As we all know, Is it possible to do this with other command or shell script instead of This is for a cropped linux systems for TV that does not have the |
Sending input to a screen session from outside Posted: 22 Sep 2021 10:40 AM PDT My scenario is this: I have a screen session running in a remote location. Inside this screen is a consoled-based program. When run without screen, this program starts in the terminal and accepts commands on its standard input. What I want is a way to remotely send a command to screen so that this command is received by the console program. Maybe like this: My PC -> SSH Send Msg Auto -> Screen Session -> Program (Run command received) So from a remote PC I can send via SSH commands to the screen which sends them to the program. The program accepts them and executes them. |
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