Recent Questions - Unix & Linux Stack Exchange |
- Check if display is being kept on
- ProxMox OpenVSwitch with Guest pfSense Firewall
- postfix : list of all email addresses accepted
- CentOS 8 boots to emergency mode after Raid 1 -> 5 upgrade & power outage
- Nftables not matching TOS value in IP packets
- "cuda-runtime-11-3: Depends: cuda-drivers but it is not going to be installed" - want to install anyway
- SLE: installing certbot and its NGINX plugin
- Numeric functions are not working for the applications I use but it works for the system
- How can I get the current time as an LDAP timestamp in Unix?
- Minimal APT Update
- For loop over lines -- how to set IFS only for one `for` statement?
- How to get apropos to show only executable programs/shell commands?
- I need to use sed in Linux to find a portion of a line in XML and update a value in it?
- nftables whitelisting docker
- how to convert output.mp3 to mp4 with ffmpeg?
- Unwanted automatically started tmpfs and lib/systemd/systemd --user process for not logged in user
- Switch between light and dark mode in Vim and Tmux with one command?
- Error when using Makefile..sed
- Emulate x86 on rasbian
- No mkinitcpio preset present
- Bridge network stop working with kvm/qemu
- tmux: is it possible to dim the inactive window and on the same time have transparent background?
- ps output with iso date format?
- Does archiving files reduces number of inode
- Systemd backed tmpfs | How to specify /tmp size manually
- Is space allowed between #! and /bin/bash in shebang?
- named-checkzone fails reverse zone file with NS has no address records (A or AAAA)
- Simulate Initial Login of user without using sudo
| Check if display is being kept on Posted: 09 Jul 2021 09:55 AM PDT I use DPMS (configured with The reason for this is that I would like to configure autosuspend not to activate if the display is being kept on for any reason. |
| ProxMox OpenVSwitch with Guest pfSense Firewall Posted: 09 Jul 2021 09:16 AM PDT Here's what I'm trying to setup: Proxmox will be top-level main machine that will have 16x ethernet ports. I want to install pfSense as guest here and make it main gateway, firewall and where VLANs of the rest of the network will be defined. I will connect 10 separate machines to these ethernet ports on ProxMox server and want to "bridge"? them to pfSense guest including WAN, LAN and other vLANs ProxMox itself will be only manageable and admin interface only accessible through a Vlan that will be assigned to another guest VM running inside ProxMox. Is this doable? If yes, can someone explain for I can do that? Like how I can do bridging with OVS here? |
| postfix : list of all email addresses accepted Posted: 09 Jul 2021 09:23 AM PDT I would like to know if there is a way, internal to postfix or external (script or other) allowing to know the complete list of all the valid email addresses accepted for reception of mail by a postfix server for its administrator? Otherwise, apart from manually collecting all these addresses and registering them in the secondary MX (in relay_recipient_maps), how do you do it? Thanks |
| CentOS 8 boots to emergency mode after Raid 1 -> 5 upgrade & power outage Posted: 09 Jul 2021 08:51 AM PDT Yesterday I upgraded my CentOS 8 server from a Raid 1, 2 disk setup to a Raid 5, 4 disk setup using mdadm However after the final stage of the upgrade, the -- grow --add phase and some time after multiple times checking the cat /proc/mdstat for progress there was a power outage :( When the power came back on, CentOS 8 wouldn't start anymore except after a long time to emergency mode. The error given:
In this emergency mode, I cannot mdadm assemble the Raid as it errors with a wrong raid level issue. After a lot of Googling around, I finally created an Ubuntu 21.04 live bootable USB so I could maybe see more info. Turns out, I finally could mdadm assembly the 4 drives again in the Ubuntu environment after which the raid system itself started to recover and continue the Raid5 process. Finally after several hours this was done and after mounting the various volumes on the Raid system and seeing that everything was fine and finished, I rebooted. Same problem.. Then I went into CentOS Rescue mode, which I selected in Grub and there the Raid5 4 disks comes online just fine! very strange I only see 1 error which is /boot won't mount (can't seem to find if this is normal because of Rescue mode?) but I can see the volumes as normal and cat /proc/mdstat outputs normal active information. I don't know how to resolve this as Googling around shows me I might have to do some repair to the boot img, but don't know how to mount /boot in Repair mode and Emergency mode doesn't seem to have anything I can work with. So basically I have a OS that won't start in normal mode, while the Raid disks seem to work just fine. I tried manually editing the /etc/mdadm.conf file but that didn't work either on reboot and found out online it's just the assemble point. Thank you very much for your help! |
| Nftables not matching TOS value in IP packets Posted: 09 Jul 2021 09:26 AM PDT I am attempting to write a rule for nftables which will match all IP packets received on interface I am sending UDP packets from a seperate computer to the computer running nftables. The code to setup this sending socket, including setting the TOS in those packets: I can see the packets arrive using The raw header of these is as follows: Decoded it shows: The problem is that when I run The rule matching based on udp destination port is working well, but the rule matching on dscp of 0x02 is not. How can I make a rule to match on a TOS of 0x02? So far I have tried other values of TOS, in-case 0x02 was special. I tried decimal 8, 16, 24, and 32. Each time I see the incoming packet with the TOS value I am setting, but the nfttables rule never counts, which I believe means it never matched. Handy nftables guide: https://wiki.nftables.org/wiki-nftables/index.php/Quick_reference-nftables_in_10_minutes A handy reference for DSCP values to names: https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus1000/sw/4_0/qos/configuration/guide/nexus1000v_qos/qos_6dscp_val.pdf |
| Posted: 09 Jul 2021 08:16 AM PDT BackgroundI want to build (not run) a program using CUDA 11.3, on an Ubuntu 20.04 machine (a Travis CI machine actually). To do this, I want to install, among other things, the cuda-runtime-11-3 package (which becomes available when you add an NVIDIA apt repository). Now, this works for me with CUDA 11.4: but with 11.3, I get: Actual questionCan I force an installation of the package despite the dependencies not being installed? Alternatively, if there's another solution to this conundrum, that would be a good answer too. |
| SLE: installing certbot and its NGINX plugin Posted: 09 Jul 2021 08:12 AM PDT openSUSE TumbleweedInstalling Then, install SLE 15 SP2But I'm trying to do the same on SLE 15 SP2. I tried:
What am I missing? Is there a convenient way to install |
| Numeric functions are not working for the applications I use but it works for the system Posted: 09 Jul 2021 08:20 AM PDT I'm a game developer, the framework I'm using has extra functions like showing information of an object on the screen, like a tree view, clicking CTRL-F1 opens this container that shows such information. I tested this on Windows and it worked perfectly, macOS too, but on my operating system which is Manjaro this function doesn't work, only another extra function is available. These here are the functions I need and which keys they are linked to: https://github.com/ppy/osu-framework/wiki/Framework-Key-Bindings I opened an issue in the repository, and the framework creator said I needed to find out what's consuming these keys
I can't figure out what's going on, I don't know where the key signals are going and why they aren't being sent to the game. Here are the specs for my operating system: Could someone help me in this problem? |
| How can I get the current time as an LDAP timestamp in Unix? Posted: 09 Jul 2021 08:08 AM PDT I want to be able to generate an ActiveDirectory LDAP timestamp in Unix for some tests I need to run. Active Directory stores date/time values as the number of 100-nanosecond intervals that have elapsed since the 0 hour on January 1, 1601 until the date/time that is being stored. How can I do I get the current time in this format? |
| Posted: 09 Jul 2021 10:02 AM PDT Is there a way to only update the package lists without running all those scripts afterwards? Maybe even "by hand"? My use case:
|
| For loop over lines -- how to set IFS only for one `for` statement? Posted: 09 Jul 2021 09:36 AM PDT Here is an example of behavior I want to achieve: Suppose I have a list of lines, each line containing space separated values: And I want to loop over lines echoing name or surname only as user asked by prompt, so I change IFS globally: This works, and yet this approach doesn't look sane for me:
I discovered that But this is not an option because A solution would be IFS set only for one but bash disallows that. |
| How to get apropos to show only executable programs/shell commands? Posted: 09 Jul 2021 08:44 AM PDT Most of the times when I use |
| I need to use sed in Linux to find a portion of a line in XML and update a value in it? Posted: 09 Jul 2021 08:52 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: |
| Posted: 09 Jul 2021 09:21 AM PDT I have two docker containers running on my machine where a very restrictive nftables configuration is active. I'd like to keep it that way but whitelist access to the docker containers from outside. The containers open ports 80 and 6200. The docker service is started with iptables disabled. Below is the current firewall configuration, including my attempt. I tried adding additional rules for thr |
| how to convert output.mp3 to mp4 with ffmpeg? Posted: 09 Jul 2021 09:05 AM PDT i use this command to merge many mp3 files in a directory: and now i want to convert output.mp3 to mp4 format. i want that my TV receiver read that mp4. what can i do? |
| Unwanted automatically started tmpfs and lib/systemd/systemd --user process for not logged in user Posted: 09 Jul 2021 09:55 AM PDT Debian 11 Bullseye pc, systemd, no display manager, When I login with a user, let's say auser-UID 1000, I see this on process list: Apparently they are related to these mounts (foo-UID 1001): That's prior to starting X, very few processes, nothing in my knowledge is started automatically by How can I locate what starts these 2 There are also other local users on the system, but no tmpfs is started automatically for them. |
| Switch between light and dark mode in Vim and Tmux with one command? Posted: 09 Jul 2021 08:27 AM PDT I want to be able to change my background color mode throughout my tmux session with one command... I have a shell function When I have a bunch of open panes, it becomes tedious to switch each pane to the different color mode. Is it possible to write a script using |
| Error when using Makefile..sed Posted: 09 Jul 2021 08:11 AM PDT An app is trying to configure with I don't understand what the last part of the command is supposed to do and therefore why it's generating the error. The output from |
| Posted: 09 Jul 2021 08:58 AM PDT I want to run a Starbound server on my Raspberry Pi running rasbian. Edit: box86 does not run 64-bit x86 binary
I tried using qemu to emulate the server. Resulting in It seems like some dynamic library are missing. To fix this problem, people suggest to change I'd like to know if there is a better way to emulate the x86 program? Here are some infos I got with readelf. Shared libraries |
| Posted: 09 Jul 2021 08:48 AM PDT My laptop lost battery during an update, so the linux kernel got truncated. After
|
| Bridge network stop working with kvm/qemu Posted: 09 Jul 2021 08:03 AM PDT 2-3 months ago I followed this article https://brooks.sh/2017/12/22/configuring-kvm-on-clear-linux/ to setup bridge network for kvm/qemu guest ubuntu. My Host os is ClearLinux. However the guest OS network stopped working 1 week ago, couldn't get IP address from dhcp. I couldn't recall I did anything special other than follow ClearLinux update. My case is quite similar to this one Configuring a bridge interface with systemd-networkd but the solution there doesn't suite me. My configs /etc/systemd/network/br0.netdev /etc/systemd/network/br0.network /etc/systemd/network/80-dhcp.network /etc/sysctl.d/90-bridge.conf $ brctl show networkctl $ systemctl status systemd-networkd in my vm.xml, the network interface part is on host ip link show, result is in the guest os, ethernet interface is en3, link status is also "BROADCAST,MULTICAST,UP,LOWER_UP". |
| tmux: is it possible to dim the inactive window and on the same time have transparent background? Posted: 09 Jul 2021 10:01 AM PDT is it possible to dim the inactive tmux panes and also still have transparent background in the terminal? the part of the tmux.conf which dims the inactive looks like that But with this setting I lost the terminal tranparency. I am using gnome-terminal |
| ps output with iso date format? Posted: 09 Jul 2021 09:41 AM PDT I'd like to sort this output by Is there a way to output lstart in ISO format like YYYY-MM-DD HH:MM:SS? But sorting alone does not solve it. I really would like to have ISO date format. |
| Does archiving files reduces number of inode Posted: 09 Jul 2021 09:13 AM PDT I read a couple of articles about Linux inode and understand that each file created always have a corresponding inode number. Since one of our servers is using ext4 there is no way to increase the inode to an already running production server. There are two solutions we can do one is to delete older files and the other is to transfer older files to another server and archive it. My question now is if I archive and compress the files and then move it to another server. On the archive server how many inode number will be assigned to the compressed file I just transferred? |
| Systemd backed tmpfs | How to specify /tmp size manually Posted: 09 Jul 2021 07:48 AM PDT I mount But this way How do I tell systemd tmp.mount to use only 1G? I know I can alternatively not use systemd and manually add an entry to |
| Is space allowed between #! and /bin/bash in shebang? Posted: 09 Jul 2021 08:05 AM PDT In a shebang, is a space or more allowed between For example, |
| named-checkzone fails reverse zone file with NS has no address records (A or AAAA) Posted: 09 Jul 2021 08:10 AM PDT I'm setting up a private DNS server using bind9 on raspian. I'm receiving this error on my reverse zone file: This is my reverse zone file: The forward file is passing without errors. I can't see the error in this one. |
| Simulate Initial Login of user without using sudo Posted: 09 Jul 2021 09:04 AM PDT I'm writing a script to interface 2 third-party programs. (Datadog and AWS) The data mining script uses The script that I need to retrieve data from will segfault if initial login is not simulated. The data mining script does not have permission to I can reproduce the error like this: Of course, if I do a Is it possible to simulate initial login without going through |
| 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