Recent Questions - Unix & Linux Stack Exchange |
- why does forwarding X11 over reverse ssh tunnel not work properly
- gmail + mutt + isync: how to archive and delete mail
- Can't boot the Linux - Kernel panic - not syncing - Any help appreciated
- Copying a file and verifying it went well
- How to insert subsequent lines from input file at the end of each line of another file?
- Seeking terminal program with search and clear-text-from-last-command features
- Curious about Linux reconfiguration on multiple systems
- Compare content of two folders/disks (including timestamps,permissions)
- While loop issue (not reading the last line )
- Sorting and copying files
- Difference between "kernel image" and "disk image"
- How to count the number of times connected to a URL
- Docker network/racadm issue
- Partitions and the mounting points
- What happened with file descriptor and exec?
- Directory with spaces in it as a variable [duplicate]
- notify-send from fcrontab not displaying notification
- how to understand <(echo) in this command line?
- How to replace all instances of a string in file name and contents? [closed]
- Ansibile how to check if variable value has three options, ternary operator works only for two options
- Is it possible to have separate initramfs images with different versions of the same DKMS module?
- Pulseaudio loopback resample distortion
- Close recently opened process in .sh
- Auto-Generate Timeout=0 on Grub, XCP-ng/Xen/CentOS
- How to install Overmind in Ubuntu?
- i3 Screen Brightness Control using light
- Dealing with Device-Mapper (Multipath) Failing paths
- Usage of --remove-source-files option of rsync
- How do I find the version of JQuery that is installed on a Linux web server?
- ssh-agent forwarding for a Vagrant VM
why does forwarding X11 over reverse ssh tunnel not work properly Posted: 18 May 2021 10:31 AM PDT I have a host which I want to access through reverse ssh and I also want to forward X11. So I did this on the remote host: why is that? |
gmail + mutt + isync: how to archive and delete mail Posted: 18 May 2021 10:25 AM PDT I want to switch from Thunderbird to (Neo)mutt, because I would like to read my mail in a terminal (offline). I have a gmail account and just can't figure out how to setup Mutt properly. I have setup isync in a way that syncs:
This seems to work. I usually read my email in the local Inbox and want to keep it clean. After reading a message, I want to either archive it or delete it. And I would like to have a simple keybinding for each of these two actions. So for example:
Deleting a message from Trash should permanently delete a message. And of course this should be reflected in gmails web application and on my android phone. The following lines are in my neomuttrc file. Now, when archiving a message with "A", it's marked as deleted in my inbox in Neomutt and after syncing the mailbox and running isync the message also disappears from my Inbox in Thunderbird, but I can still see it in the inbox in gmails web app and in the inbox on my phone. I don't understand way. Any ideas? Deleting from my Inbox in Mutt seems to work (it just needs two runs of isync, which I do understand). But deleting messages from Trash in Mutt, does not delete these message from the Trash in the web app or on my phone. I don't get that either. Again, any ideas? Well, any help is highly appreciated. Thanks in advance! |
Can't boot the Linux - Kernel panic - not syncing - Any help appreciated Posted: 18 May 2021 10:20 AM PDT Info: I have Kali on dual boot with windows, and the Kali partition is encrypted (you can see in the terminal "please unlock crypto..."). I had some issues with a package called libc6, while installing my laptop software for controlling the brightness, and rgb, and other things on my asus laptop... so after troubleshooting that I found that I should apt --fix-broken to fix the package that was installed incorrectly. So I did. Meanwhile the --fix-broken thingie, had it's own issues that after completing made me not able to run anything. I couldn't re-run the terminal, or anything really. So i thought maybe reboot will fix it. Which lead to this screen you see here: If you can't see the image here is what it looks like: So now I got no idea how to boot it. I got no idea how to access it from like liveCD to change some stuffs as per other threads I found on internet, since the HDD is encrypted. Was wondering, is there any tool or USB image that can run on the boot, that will at least give me access to the terminal? I know it's kinda dumb since imo the kernel is not even running properly, but I just want to avoid re-installing everything from scratch, because it was highly customized and full of data Linux. More info: The package that the software required was 3.2 of glibc6 and my Linux had 3.1 installed, so I download deb package and installed it like every other with dkpg -i. I thought what's the worst that can happen... and it did :D * |
Copying a file and verifying it went well Posted: 18 May 2021 10:26 AM PDT How would you write two UNIX commands where the first one would copy the file |
How to insert subsequent lines from input file at the end of each line of another file? Posted: 18 May 2021 10:33 AM PDT I have two files with log output. I need to join them the way I described below First file Second File Expected result: I know how append text/input file using sed but in case of file it will insert all contents of a file so it's not what I am looking for. Any help appreciated:) |
Seeking terminal program with search and clear-text-from-last-command features Posted: 18 May 2021 09:58 AM PDT Is there a terminal program that can: a) Search within the console text, and b) Delete (or clear) console output up to and including your last command? |
Curious about Linux reconfiguration on multiple systems Posted: 18 May 2021 09:57 AM PDT I'm new here obviously but I've been a lurker for a long time. Figured it was time to start asking… Anyway I'm curious what programs/scripts exist for Linux to streamline setting up my system again once I get everything configured the way I like it. Say I mess the system up, I'd like to be able to reload quicker than having to do a base install and meticulously reinstall/reconfigure all my programs. Should I just make a disk image? Or is there another tool that would work better? I hope I'm expressing myself clearly enough. Thank you for taking the time to read my question! All your answers are greatly appreciated!! |
Compare content of two folders/disks (including timestamps,permissions) Posted: 18 May 2021 09:51 AM PDT I have two directories on two different hard drives and want to check if the content is really exactly the same. From what I read I can use
However as far as I see diff does not check if the permissions or timestamps differ. Is there another parameter for diff or other tool where it is possible to check that as well? |
While loop issue (not reading the last line ) Posted: 18 May 2021 10:01 AM PDT hello i have below issue in the while loop , it is not reading last line . input file current output |
Posted: 18 May 2021 09:55 AM PDT I am newbie here, please be patient. I have a directory containing thousands of files. Filename always start with 1 or 2 letter and have 4 character before underscore "_". The number of files for each pattern can be different, the part of file name after underscore changes. Sample: I would like to run a command that would create new directories using only letters from file-name and populate them with files starting with these letters. If there is a file with the same name in the destination directory (updated file in the source dir), I'd like to keep most recent one. so: Can this be accomplished? Thanks! |
Difference between "kernel image" and "disk image" Posted: 18 May 2021 09:13 AM PDT I'm trying to boot Ubuntu on the gem5 simulator. The gem5 simulator expects 2 binaries to boot from: a "disk image" and a "kernel image". When I've booted Linux with QEMU or installed Linux on a computer, I've only needed a single iso. My questions:
|
How to count the number of times connected to a URL Posted: 18 May 2021 09:12 AM PDT I am recently doing a project using Linux and I am very new at this and I just can't find the exact answer for my problem. The questions I need to answer are: **Some of the records we suspect may be present in the ISP logs include connections to a website with 'dal' in the URL.
*utdppp35.utdallas.edu - - [31/Aug/1995:22:43:42 -0400] "GET /ksc.html HTTP/1.0" 304 0 utdppp35.utdallas.edu - - [31/Aug/1995:22:43:43 -0400] "GET /images/ksclogo-medium.gif HTTP/1.0" 304 0 utdppp35.utdallas.edu - - [31/Aug/1995:22:43:43 -0400] "GET /images/NASA-logosmall.gif HTTP/1.0" 304 0 utdppp35.utdallas.edu - - [31/Aug/1995:22:43:43 -0400] "GET /images/MOSAIC-logosmall.gif HTTP/1.0" 304 0 utdppp35.utdallas.edu - - [31/Aug/1995:22:43:43 -0400] "GET /images/USA-logosmall.gif HTTP/1.0" 304 0 utdppp35.utdallas.edu - - [31/Aug/1995:22:43:45 -0400] "GET /images/WORLD-logosmall.gif HTTP/1.0" 304 0 cdale-1.midwest.net - - [31/Aug/1995:23:07:55 -0400] "GET /software/winvn/winvn.html HTTP/1.0" 200 9630 cdale-1.midwest.net - - [31/Aug/1995:23:07:56 -0400] "GET /software/winvn/bluemarb.gif HTTP/1.0" 200 4441 cdale-1.midwest.net - - [31/Aug/1995:23:07:56 -0400] "GET /software/winvn/winvn.gif HTTP/1.0" 200 25218 cdale-1.midwest.net - - [31/Aug/1995:23:07:57 -0400] "GET /software/winvn/wvsmall.gif HTTP/1.0" 200 13372 cdale-1.midwest.net - - [31/Aug/1995:23:08:02 -0400] "GET /images/KSC-logosmall.gif HTTP/1.0" 200 1204 cdale-1.midwest.net - - [31/Aug/1995:23:08:02 -0400] "GET /images/MOSAIC-logosmall.gif HTTP/1.0" 200 363 cdale-1.midwest.net - - [31/Aug/1995:23:08:07 -0400] "GET /images/USA-logosmall.gif HTTP/1.0" 200 234 cdale-1.midwest.net - - [31/Aug/1995:23:08:09 -0400] "GET /images/WORLD-logosmall.gif HTTP/1.0" 200 669 cust59.max3.dallas.tx.ms.uu.net - - [31/Aug/1995:23:32:01 -0400] "GET /facts/faq04.html HTTP/1.0" 200 27063 cust59.max3.dallas.tx.ms.uu.net - - [31/Aug/1995:23:32:07 -0400] "GET /images/ksclogosmall.gif HTTP/1.0" 200 3635 cust59.max3.dallas.tx.ms.uu.net - - [31/Aug/1995:23:32:07 -0400] "GET /images/faq.gif HTTP/1.0" 200 263 utdppp43.utdallas.edu - - [31/Aug/1995:23:42:49 -0400] "GET /shuttle/missions/sts-68/ksc-srl-image.html HTTP/1.0" 200 1404 utdppp43.utdallas.edu - - [31/Aug/1995:23:43:57 -0400] "GET /shuttle/missions/sts-68/images/ksc-upclose.gif HTTP/1.0" 200 86984 utdppp43.utdallas.edu - - [31/Aug/1995:23:45:04 -0400] "GET /shuttle/missions/sts-68/images/ksc.gif HTTP/1.0" 200 * After trying online I got roughly 40,000 entries for part 1.1 and 5,000 for 1.2 now this is where I know I am wrong as this doesn't seem right. Anyone can help on what commands should I use? |
Posted: 18 May 2021 10:17 AM PDT I have an ubuntu 20.04 docker container that I use to run racadm (I know this is already my first mistake but racadm actually runs fine on the container). This works for my whole team and worked for me fine until I recently rebuilt my macbook. Since I rebuilt my macbook when I try to run racadm against any dell machine I get: That is with the default bridged network mode. If I run my container with I am using a VPN to connect to these machines so I thought it was just a network routing issue but that doesn't appear to be the case because I can actually ping the machine address in bridge network or host network mode, I can telnet to it, etc. It seems that racadm is the only issue. This is all happening on a production network and the docker container contains some sensitive data so there may be some information I cannot provide unfortunately but will do my best. Does anyone know why this could be happening? Do I need to add some route from my host into the container? Is it potentially a firewall issue? |
Partitions and the mounting points Posted: 18 May 2021 09:18 AM PDT An extract from a book-
On my Ubuntu machine, the below partitions are shown for Running As seen, Why is there no mounting point for partition |
What happened with file descriptor and exec? Posted: 18 May 2021 09:08 AM PDT I have one parent process and i create with fork 2 children like this. The fifos are named pipes.I call execl and on the merge executable i open the named pipes like this. i also writing something from the parent to the children like this.(i have opened the fds previosly i didnt write it here). } I want to write something on the one child and someting ELSE ont the other but both the twoo children have the same file descriptor(read) 4 , and it`s like i write on the same named pipe.What am i doing wrong? |
Directory with spaces in it as a variable [duplicate] Posted: 18 May 2021 09:07 AM PDT I made this script that watches one folder and copies any file added to that folder to another destination. It works as expected when the directories have no spaces. With spaces "~/Untitled Folder" becomes ~/Untitled and ~/Folder resulting in a "no such directory error". please help! How do I get the variable to work properly later in the script? |
notify-send from fcrontab not displaying notification Posted: 18 May 2021 08:52 AM PDT Referenced these links with no success. Most of them seem to be ubuntu, gnome, and cron syntax specific.
Tried export display, dbus, full command path. Running Arch Linux with dwm. Using fcron and fcrontab -e. fcrontab When I call the script explicitly it works as intended ( Script Tried with and without the Verified display with |
how to understand <(echo) in this command line? Posted: 18 May 2021 09:29 AM PDT this line collapse file base on the first column. input: output: It works, but I don't know how does the Thanks |
How to replace all instances of a string in file name and contents? [closed] Posted: 18 May 2021 09:40 AM PDT Was wondering if anyone could help me out, I'm trying to replace a string in a project directory. The string is case sensitive and appears both as a single string and as a sub string. I have tried using SED and replace but it messes with the imports and is not catching all of the instances. Is there an easy one liner that could accomplish this? Edit: output from the compilation states multiple missing imports so I think it is due to the file path being modified but neither of the commands modifying the folder structure. OS: Linux Edit 2: Incase anyone comes across this the issue was with some nested folders refusing to be renamed. Solved by manually renaming them. |
Posted: 18 May 2021 09:37 AM PDT when mountpoint is /dev/backboot is >70% set to 'High' and if < 70% set to 'Normal' and if there is no such mountpoint atall then set to 'not availble' below example works fine with two options, but i need three options can you suggest
|
Is it possible to have separate initramfs images with different versions of the same DKMS module? Posted: 18 May 2021 09:58 AM PDT I'm wanting to have a setup where I can essentially have two versions of the NVIDIA driver kernel module installed at the same time. I want to go about this by having two initramfs images to boot from via GRUB; one with an old LTS kernel containing an older patched version of the NVIDIA driver (for special workloads), and one containing the latest kernel and driver (for general use). Is this possible to do, and if so, how could I go about doing this? I'm running EndeavourOS (an arch-based distro), so I have tools like mkinitcpio at my disposal. Thanks in advance. |
Pulseaudio loopback resample distortion Posted: 18 May 2021 09:13 AM PDT I have a rather complex PA setup, across two machines. One, a desktop, does not run a pulse server. (Comments are not included) It's running Arch Linux The server is a raspberry pi with a HiFiBerry DAC+/ADC PRO on top.
Non-default lines of PA conf files: Default.pa Daemon.conf I have tried adding The problem: Whenever (Trivial resampling may be causing a small amount of noise that I cannot hear...) At best, it's an occasional clicking that periodically starts and stops. At worst, it's a horrible, crushed, "robotic" distortion. When the same client is moved (manually, via pulsemixer) to the default output, all noise goes away. Thus, I'm fairly certain that this isn't a problem with the desktop. All audio played directly through the HiFiBerry's alsa sink is fine. CPU utilization stays below 30% each core, even when running many streams. The pi has 8G of ram. I doubt this has anything to do with system resources. I have been trying to fix this for a while, but I have had no luck. Does anyone know what could be causing this? What else can I do to diagnose the problem? |
Close recently opened process in .sh Posted: 18 May 2021 09:29 AM PDT I am new to Linux and trying to learn how to launch and close processes automatically. Eventually I would like to run this/a similar process with cron. Here, just testing "checking in" to google.
I have added execute permissions to Thank you in advance! |
Auto-Generate Timeout=0 on Grub, XCP-ng/Xen/CentOS Posted: 18 May 2021 09:20 AM PDT XCP-ng is a XenServer fork that runs on CentOS. XCP-ng 8.2 regenerates the GRUB file when changing the control domain memory allocation, which results in the server not automatically booting. The GRUB file is: |
How to install Overmind in Ubuntu? Posted: 18 May 2021 10:28 AM PDT First of all, I am a newbie in Linux, now that is out of the way: I am experiencing issues with Overmind installation. After downloading the binary file I tried with the trinity of installations, but for it did not work, no configuration, the read me is the same as the one in GitHub which is next to no help for me. Attempted with package installers, but they don't recognize the binary files as such. Extracted the contents and tried all kinds of stuff I read online but to no avail. I am sure I am missing something really simple, but apparently I can't figure out what. |
i3 Screen Brightness Control using light Posted: 18 May 2021 10:05 AM PDT So i have recently started using i3 on my arch install. slowly i setup my config files with keybinds and all. About 2 days ago i install light ( to control screen brightness ) and it was working fine. but now suddenly i noticed that pressing the brightness keys did nothing. after trying the command is there anyway i can make light work without sudo? or im i stuck with using light as sudo in the terminal to control my screen brightness? |
Dealing with Device-Mapper (Multipath) Failing paths Posted: 18 May 2021 09:02 AM PDT When a disk starts to die slowly multipath starts to Failing & Reinstating paths and this keeps forever.. (I'm using LSI-3008HBA card with SAS-JBOD not FC-Network) Dmesg; As you can see kernel aborted the mission and after that multipath failed. So I want to get rid of this problem via telling Multipath "do not Reinstate the path". How can I do that? |
Usage of --remove-source-files option of rsync Posted: 18 May 2021 10:19 AM PDT From the manpage of
Thanks. |
How do I find the version of JQuery that is installed on a Linux web server? Posted: 18 May 2021 10:00 AM PDT All the methods I found on the Internet involved using a .jsp page and a web browser. I have Linux servers with no GUI desktops. I do not want to use the web browser on a desktop to view a .jsp file on every web browser. I want to find out from the backend. This way I can use a script to find out on every server. How do I find the version of JQuery that is installed on a Linux web server? |
ssh-agent forwarding for a Vagrant VM Posted: 18 May 2021 08:58 AM PDT I'm currently looking at setting up a Vagrant environment on my Mac machine, so that I can run The only thing is that my new vagrant vm has to now generate a ssh key and then link it to my Github account. This can be cumbersome. Especially since I would like to share my Vagrant file with all those that have access to our repos so that they could do the same. So I thought I could try forwarding my hosts ssh to the VM so that the VM can forward my host ssh to Github. Following this article: Githubs walkthrough, I set my hosts ssh config: and set in my vagrant file and when I log into my VM and run the following command I get this error: Is there anyone that has tried a similar setup? The VM is a precise64 box. EDIT:
|
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