Recent Questions - Unix & Linux Stack Exchange |
- View file names in hex?
- How do I start Ubuntu's ufw before fail2ban to solve a loss of connectivity issue?
- how to install eapol_test in ubuntu
- SOLR ports in use
- Proxmox install USB boot stick doesnt get rocgnized, but ubuntu USB boot stick does
- Is there a way to completely restrict using swap if there are buffers/cache in use? And use swap only to prevent Out-Of-Memory Killer
- Fluxbox fails to open confext menu
- Bash: Append rows from multiple files to one output file and add file name as column
- Set immutable bit for specified time
- Chapter 3 Packages and patches virtual box problems
- how to create multiple snd-vimidi devices
- NVIDIA hdmi output not working
- How do you tile a window in Awesome Window Manager?
- What is the best Linux distribution for high resolution screens? [closed]
- Grouping the files by month and archeiving it in bash
- Video glitches when files are played in fullscreen
- Why do I have to statically link a c program if I want to use it as the init program for the kernel?
- How to fix apt update,upgrade
- vm "not a bootable disk" after upgrade from Promox 6.x to 7.x
- Webcam not recognized on Debian 11/sid
- Headphone jack not reliably detecting on Ubuntu 20.04
- How does id command on linux get user groups or which pam module is used?
- pip not working after installing another python version
- Get connected Wi-Fi network signal strength with nmcli
- Best Practice: How to maintain/rotate log files (from redirected output)
- How to fix apt-get install / update not working on my Kali Linux [closed]
- Fail2ban - send email with msmtp
- How can I prevent 'grep' from showing up in ps results?
- What is word splitting? Why is it important in shell programming?
Posted: 29 Dec 2021 10:52 AM PST I have some files with special characters like accented letters. They are valid names, but for some reason when they are copied across the network to a drive, maybe in another format, the name still looks the same but it is not the same. I can copy the file back and now I have two files that appear to have the exact same name in the exact same path. My guess is there are two different values represented the accented letter so they appear the same. Is there any way to view the hex of the name itself, not the file? This is important because one of my synching apps is getting confused and creating duplicates. |
How do I start Ubuntu's ufw before fail2ban to solve a loss of connectivity issue? Posted: 29 Dec 2021 10:41 AM PST My skill level configuring systemd is more of a newbie and need help as I've now hit a road block and I'm stuck. I have fail2ban and ufw installed on a Raspberry Pi clone board. The problem I've identified is that there are now over 1000 IP addresses blocked and in fail2ban's database. Also ufw also starts-up as inactive. If I issue "sudo ufw enable" too soon then all network connectivity is lost and I have to use the board's power button to shut-down and power-off the Ubuntu Linux OS on the board. Wjhat I believe is happening is while fail2ban is populating iptables and ip6tables when ufw starts, fail2ban already has iptables running and ufw's rules get messed up. Does anyone know how, using systemd, I can prevent the fail2ban.service from starting until ufw.service starts? |
how to install eapol_test in ubuntu Posted: 29 Dec 2021 11:18 AM PST I'm tired idea how to install this package eapol_test, I read online how I can make install it, but it didn't work for many time so How can I Install the eapol_test in Ubuntu in a simple and concise way ? (My Ubuntu 20.04.3 ) |
Posted: 29 Dec 2021 11:01 AM PST I am running Ubuntu 18.04LTS and have Solr 8.7 installed. All is running fine, but I did a ps -aux and found that in addition to port 8983, java is also listening on port 7983. Yet I find no reference to this port anywhere. Does anyone have any idea of what this port is used for with Solr? |
Proxmox install USB boot stick doesnt get rocgnized, but ubuntu USB boot stick does Posted: 29 Dec 2021 10:06 AM PST I want to install Proxmox on my Server. Currently there is no OS installed. When I plug in my Proxmox USB boot Stick and power the Server on, it doesnt get recongized. When I plug in a Ubuntu 18 USB boot stick it boots perfectly fine on it. I also tried plugging in the Proxmox stick on a laptop, but it also didn't recongize it. The laptop did recognize the Ubuntu stick tho aswell. My Server is a DELL PowerEdge R720xd 2x Xeon E5-2680v2 |
Posted: 29 Dec 2021 10:04 AM PST Is there a way to completely restrict using swap if there are buffers/cache in use? And use swap only to prevent Out-Of-Memory Killer. Is there a way to forbid using swap are there still buffers/caches that could be flushed? What swappineess vm.dirty_bytes vm.dirty_background_bytes vm.dirty_bytes or other options should I tweak? The reason why I need it: I have proprietary software that doesn't work properly if a swap is used, but the system consumes a lot of buff/cashe. If I manually (and regularly every 2-3 hours) clean buff/cache by using this command sync; echo 3 > /proc/sys/vm/drop_caches everything works fine. But if I just let it be, the software starts to perform badly.. (even if I have set up vm.swappiness=1, it just give it a little bit more time to live)))) |
Fluxbox fails to open confext menu Posted: 29 Dec 2021 10:03 AM PST When I click RMB on a desktop or a window frame no context menu pops up. I do have the ~/.fluxbox/windowmenu file. It is owned by user and it looks OK. In ~/fluxbox/init is the line: session.screen0.windowMenu: /home/haines/.fluxbox/windowmenu |
Bash: Append rows from multiple files to one output file and add file name as column Posted: 29 Dec 2021 10:14 AM PST This is a continuation of my previous question Bash: Choose row with the highest value in specified column in multiple files and create one output file with rows containing the max The solution I used is: I am wondering if there is an easy way to edit this code so that when I create the output file I can add a column that contains the file names, or if I need to use a different approach. I found this question Bash Command Get Data from multiple files and append the file name but I am not sure how to adapt it for my needs |
Set immutable bit for specified time Posted: 29 Dec 2021 09:35 AM PST It's possible to set immutable bit for a specified range of days? I was trying to understand how Veeam11 can change the attribute after a few days for immutable backup |
Chapter 3 Packages and patches virtual box problems Posted: 29 Dec 2021 09:58 AM PST I am making LFS I am curently at packages and patches. I ran command and it gave me But I ran But the problem still lasts. How can I resolve this? Thank you for all your answers and advices. |
how to create multiple snd-vimidi devices Posted: 29 Dec 2021 11:04 AM PST According to How create a second midi device? n´one can create multiple virmidi devices, but that does not seem to work for me - according to This is the config (and the options) I've tried. A few things that I find confusing:
Any ideas what I am missing? |
NVIDIA hdmi output not working Posted: 29 Dec 2021 08:52 AM PST I'm running Garuda linux on my desktop and my computer has 2 HDMI ports and one of those comes from the NVIDIA 2070 super. The regular HDMI works all the time with no issues but the nvidia one just seems to stop working with no errors or anything. If the cable is plugged in on boot it will work if I'm in BIOS but after that the screen is frozen on the I'm guessing this is a problem with my nvidia drivers. How do I trouble shoot? |
How do you tile a window in Awesome Window Manager? Posted: 29 Dec 2021 09:06 AM PST I'm apparently missing some knowledge that is very fundamental about Awesome Window Manager. I'm using the default configuration that comes with Debian 11 and for the past two weeks I've been using the default floating layout. Now, I'm ready to venture into utilizing its tiling features, but toggling the top-left layout button has no affect on the layout of my windows. Even when I close all windows, and launch them from scratch, they do not launch into tiles no matter what layout I choose (beforehand) via that layout-toggler-button. I've watched videos of other people doing this, but (for me) the windows never tile. What I'm I missing here? |
What is the best Linux distribution for high resolution screens? [closed] Posted: 29 Dec 2021 08:36 AM PST What is the best Linux distribution for high resolution screens? |
Grouping the files by month and archeiving it in bash Posted: 29 Dec 2021 09:25 AM PST I have a bunch of files created on different months in my directory.I want to filter out the files created on a certain month and archeive those files using tar functionality. So far the code i have tried is This above code throws me the error like I cant seem to figure this out and am a newbie in bash as well. Any help to figure this out would be highly appreciated. |
Video glitches when files are played in fullscreen Posted: 29 Dec 2021 08:51 AM PST When trying to play videos like movies with the Kodi media center the videos often have lots of glitches. I tried it with the VLC player, MPV and Dragonplayer on Debian11/KDE and it occurs with all of these.
With glitches I'm referring to "cuts" or "lines" where it looks like there are basically parts of old video in next frames, as I can't record it I could try taking a picture of it but don't think how the glitches look like matter much. Details: First I thought it may be caused by some missing graphics drivers / graphics card or even codecs but as this occurs at fullscreen but not in the windowed mode (same video-image size) it appears to be caused by something else...probably my monitor or display-related things as I can't record it. It's a very strange but annoying problem (many video files are barely watchable due to this). Debian11 currently uses X11 v1.20.11. There is no console output of MPV when these glitches are shown. It does display: The I recently had to restart KDE Plasma so in another console window its output displayed during playing the video. It may no be relevant and is (removed basically duplicate lines): Any ideas and tips what to check or try are very much appreciated. Disabling "Allow applications to block compositing" in Display Configuration -> Compositor seems to have helped. I will test further and it would be useful to find out why it was getting blocked (in fullscreen) and why that wasn't set as the default option. |
Why do I have to statically link a c program if I want to use it as the init program for the kernel? Posted: 29 Dec 2021 10:44 AM PST I'm learning about how Linux works and for that I'm watching Tutorial: Building the Simplest Possible Linux System by Rob Landley. He basically goes through some steps to build a minimal system and around 20:00 he starts explaining about building a "hello world binary" that he will later use as the init program for the kernel to run as the very first program. My question is, why do I have to statically link the hello.c application I want to use as the init application for the kernel to run after booting (as mentioned at 21:39 and seen at 23:05)? |
Posted: 29 Dec 2021 09:12 AM PST Due to new installation an error was show that installation step failed Failed to fetch http://http.kali.org/kali/dists/kali-last-snapshot/inrelease Temporary resolving'http.kali.org' |
vm "not a bootable disk" after upgrade from Promox 6.x to 7.x Posted: 29 Dec 2021 09:29 AM PST Today i decided to upgrade PVE from V6.2.4 to V7.1 I did it according to the following steps:
During the upgrade i had some errors about "disk not found" where i was woried about but the upgrade just continued. (maybe they have a relation with the issues i now run into) After the upgrade finished, i restarted the host to complete the upgrade. The LXC containers where started (start on boot) without any issue. Some VM's (start on boot) also worked directly. Some of the VM's gave the error The questions:
Some important facts:
The error: pveversion -v output root@hv1:/home/axxmin# pveversion -v proxmox-ve: 7.1-1 (running kernel: 5.13.19-2-pve) pve-manager: 7.1-8 (running version: 7.1-8/5b267f33) pve-kernel-helper: 7.1-6 pve-kernel-5.13: 7.1-5 pve-kernel-5.4: 6.4-11 pve-kernel-5.3: 6.1-6 pve-kernel-5.13.19-2-pve: 5.13.19-4 pve-kernel-5.4.157-1-pve: 5.4.157-1 pve-kernel-5.4.41-1-pve: 5.4.41-1 pve-kernel-5.3.18-3-pve: 5.3.18-3 pve-kernel-5.3.18-2-pve: 5.3.18-2 ceph-fuse: 14.2.21-1 corosync: 3.1.5-pve2 criu: 3.15-1+pve-1 glusterfs-client: 9.2-1 ifupdown: residual config ifupdown2: 3.1.0-1+pmx3 ksm-control-daemon: 1.4-1 libjs-extjs: 7.0.0-1 libknet1: 1.22-pve2 libproxmox-acme-perl: 1.4.0 libproxmox-backup-qemu0: 1.2.0-1 libpve-access-control: 7.1-5 libpve-apiclient-perl: 3.2-1 libpve-common-perl: 7.0-14 libpve-guest-common-perl: 4.0-3 libpve-http-server-perl: 4.0-4 libpve-storage-perl: 7.0-15 libqb0: 1.0.5-1 libspice-server1: 0.14.3-2.1 lvm2: 2.03.11-2.1 lxc-pve: 4.0.11-1 lxcfs: 4.0.11-pve1 novnc-pve: 1.2.0-3 proxmox-backup-client: 2.1.2-1 proxmox-backup-file-restore: 2.1.2-1 proxmox-mini-journalreader: 1.3-1 proxmox-widget-toolkit: 3.4-4 pve-cluster: 7.1-2 pve-container: 4.1-3 pve-docs: 7.1-2 pve-edk2-firmware: 3.20210831-2 pve-firewall: 4.2-5 pve-firmware: 3.3-3 pve-ha-manager: 3.3-1 pve-i18n: 2.6-2 pve-qemu-kvm: 6.1.0-3 pve-xtermjs: 4.12.0-1 qemu-server: 7.1-4 smartmontools: 7.2-pve2 spiceterm: 3.2-2 swtpm: 0.7.0~rc1+2 vncterm: 1.7-1 zfsutils-linux: 2.1.1-pve3 Backup configuration from concerning backup: The VM config UPDATE1 I found this https://forum.proxmox.com/threads/after-backup-boot-failed-not-a-bootable-disk.67954/ which makes sense to my understandings. As i don't have a separated backup of the partition table, i found a "boot-repair-disk" (https://help.ubuntu.com/community/Boot-Repair). This did not fix my VM but gave me some extra information what may be usefull. UPDATE2 After a boot with Gparted live, i can say that the partition table is gone. I tried to rebuild it with |
Webcam not recognized on Debian 11/sid Posted: 29 Dec 2021 11:23 AM PST My webcam is there, physically, but it is not recognized anywhere in my computer. The only place I see anything related to video is in Some other possibly useful commands are And
I know there is a similar question aleady on StackExchange but their solution does not work, my laptop does not have a webcam button. My laptop is an ASUS TUF Gaming FX705DY running Linux 5.10.0-5-amd64 x86_64 |
Headphone jack not reliably detecting on Ubuntu 20.04 Posted: 29 Dec 2021 08:46 AM PST The issue that I'm having is that headphones plugged into the 3.5mm jack on the front of my desktop computer are not always detected. I'm running Ubuntu 20.04 on a custom built computer with a B450 Tomahawk motherboard. I'm certain that the issue is with Ubuntu 20.04 because the issue was not occurring (as far as I'm aware) when the same computer was running 18.04. The steps to create my problem are:
Some things that I've tried:
Any help would be greatly appreciated! |
How does id command on linux get user groups or which pam module is used? Posted: 29 Dec 2021 09:01 AM PST We have sssd configuration as follows: As you can see, we are not enumerating users and groups and hence, Now, I want to understand how Some background info for my question: I am trying to setup ldap authentication in our mysql 5.6 community server and for that I am using auth_pam.so which I copied from percona server of my local VM. I have created a proxy user: So, my auth_string is as follows: Now, I gave complete privileges to the proxy user: However, I can only authenticate with my ad usera but doesn't have any privileges. My understanding is that the group mapping doesn't work. I am not sure how mysql checks user group members. I am trying to see if I can add a specific module in PAM just to retrive this group info. EDIT-1: I see from source code, that the mysql plugin is using built-in linux functions
So, I must find a way to list my required groups and users in groups database or change the code and recompile. My question has become irrevalent now to this issue. But I am still eager to find out how id gets this info. |
pip not working after installing another python version Posted: 29 Dec 2021 10:00 AM PST My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error- I am not understanding what the actual problem is. |
Get connected Wi-Fi network signal strength with nmcli Posted: 29 Dec 2021 10:12 AM PST I'm able to get the signal strength of all Wi-Fi networks with the following command: I would like to reduce this list only to the current Wi-Fi on which I'm connected. I've been through the man page but can't find the necessary flag. One solution would be to use Should I use |
Best Practice: How to maintain/rotate log files (from redirected output) Posted: 29 Dec 2021 11:05 AM PST I read several question for the mentioned topic, but I'm not sure if they really answer the question for my problem. I have an application running and I redirect the output to a log file, i.e.,
The file is now 80GB in size and I would like to delete it. Most of the answers here suggest not to delete it, because the data will still be written to the "deleted" file. Answers suggest to use logrotate instead, but I'm wondering if logrotate works with redirected output? If it does work, what would the configuration look like? Do I need any postrotate command? I should mention that it is impossible for me to stop and restart the running application, thus I would just like to "steal" the file and let the running application write to a new one. If logrotate is not the solution, what should I do - again I cannot stop and restart the running application - so that I can reduce the file-size? Thanks for any help! PS: Just to mention the application is running on a Debian8 64 OS |
How to fix apt-get install / update not working on my Kali Linux [closed] Posted: 29 Dec 2021 08:42 AM PST I'm using Kali Linux but the Please, could someone provide me a link to the Kali official |
Fail2ban - send email with msmtp Posted: 29 Dec 2021 09:30 AM PST How do I set up fail2ban to send emails using msmtp? I tried changing the I think I can normally send mail from the command line with |
How can I prevent 'grep' from showing up in ps results? Posted: 29 Dec 2021 11:05 AM PST When I search for some process that doesn't exist, e.g. Obviously I don't care about grep - that makes as much sense as searching for the How can I prevent grep from showing up in the results? |
What is word splitting? Why is it important in shell programming? Posted: 29 Dec 2021 10:49 AM PST I'm getting confused about the role word splitting plays in I have read about word splitting on this and other sites before, but haven't found a clear explanation of the concept. Wikipedia has a definition of word splitting but does not seem to have references on how it applies to Unix shells. Here's an example of my confusion in In the Z Shell FAQ, I read the following:
However, in the Z Shell Manual, I read the following:
Why does it say that |
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