Recent Questions - Unix & Linux Stack Exchange |
- How to synchronizing /etc/hosts files across multiple linux machines
- How can I set the initrd img in a custom grub boot entry?
- How do I make Network manager jump to higher priority network
- Howto log multiple sftpd server's activity which user's chrooted home is on shared NFS?
- Converting user to systemd-homed user: sudo is not recognized
- What is the value for the sof driver module?
- Ubuntu desktop (gnome) running as a background process
- Split ultrawide monitor in 3 virtuals screens
- How to ssh from windows to linux?
- Copy files from multiple directories and paste it into multiple directories
- What would happen if dd receives same input file as output file
- Reason for text/plain pattern "*,v" in shared-mime-info?
- Debug a .zshrc that causes exit 1
- Determine the emplacement of a shared library dependence at compile time
- merge two columns
- iptables time rule doen't work on ubuntu 20.04
- How to remove empty lines at the end of a file using awk?
- Backup of VM using "virsh snapshot-create-as" works once. Fails second time
- Synology ipkg nano - line numbers are wrong, and sometimes appear on the wrong side of the file
- Rsync hangs forevers when I try to run it in cygwin
- What is the default password for a Linux Mint live usb
- How to check if If i2c-hid and hid-rmi are not used for touchpad?
- Simple swaybar example
- usb: device descriptor read/64, error -110
- SMTP Error (530) 5.7.0 Must issue a STARTTLS command first
- Does fwknop play nice with ufw?
- airmon-ng start wlan0 problems
- VERR_ACCESS_DENIED when trying to add a raw disk to virtual box
- tmux exits immediately after starting
- Linux Mint: How to enable cryptswap with custom password?
How to synchronizing /etc/hosts files across multiple linux machines Posted: 28 Aug 2021 10:53 AM PDT I have 20 linux servers that use /etc/hosts files to see and talk with each other. I'm adding servers to this pool of servers. It is required to do host resolution via the /etc/hosts files. DNS or NIS are not alternatives. Aside from manually editing each of the 20+ /etc/hosts files every time I add a server or editing one /etc/hosts file on one server then scp'ing it to all the other servers, is there anyway to edit the /etc/hosts on one server and "push" it onto the other servers that need the new /etc/hosts file? |
How can I set the initrd img in a custom grub boot entry? Posted: 28 Aug 2021 10:17 AM PDT I am trying to write a script that creates a custom boot entry for grub. The boot entry should be the same as the default boot entry but with a different initrd. I tried looking at Grub's simple configuration, but there is no way to set the initrd using it. |
How do I make Network manager jump to higher priority network Posted: 28 Aug 2021 09:21 AM PDT Bassicly I have 2 networks "a" & "b". Network "a" has autoconnect priority of 5 and "b" a priority of 10. And autoconnect enabled on both. Network "b" is a mobile hotspot so it's not always on. When the device boots it finds network "a". I find that it won't switch to network "b" automatically if it has an active connection to "a" already. Is there a way to make network manager drop an active connection to Network "a" and connect to network "b" automatically if it's available? This is a headless Raspberry PI running Ubuntu Server. |
Howto log multiple sftpd server's activity which user's chrooted home is on shared NFS? Posted: 28 Aug 2021 08:11 AM PDT I have an Ubuntu server with sftpd running where Now I have a second sftpd server in parallel, with the same user database and also mounts What is not working now is the sftpd logging: The sftp user's log is only available on one sftp server exclusively, and that is the one where syslog-ng was started least, because as I understand it takes the exclusive unix socket file lock for each user's So, if a user logs in on the first server, where syslog-ng was started least, the user's sftp activity is logged on the first server. But if the user logs in on the second server, it's sftp activity is not logged, neither on the second nor on the first server. If the syslog-ng is then restarted on the second server, the sftp user's activity is exclusively logged only on the second server and only for logins on the second server. How can I get the sftp user's activity be logged on each sftp server, when a user logs in to that server, while the user's home is shared on both servers via NFS? |
Converting user to systemd-homed user: sudo is not recognized Posted: 28 Aug 2021 08:04 AM PDT I have converted an existing user to systemd-homed following this article. I have added the converted user to the wheel group using the "member-of=wheel" as described in the homectl manual. The group appears in the .identity file of the converted user. However, trying to execute a command as sudo does not work (keeps telling me that my password is wrong). I have checked the members of the wheel group as well using "getent" and the user does not appear, which, if I am not mistaken, was expected since the systemd-homed user is removed from the usual system databases (/etc/passwd). I have checked the /etc/pam.d/sudo file. Here is the content of the file Removing the line "auth required pam_deny.so" solves the issue. However, I do not necessarily feel confident enough to perform the above change. What is going on here? What are the consequences of removing the above line from /etc/pam.d/sudo? Why does this solve my problem? I would highly appreciate your help. Thank you very much in advance. System information Linux Manjaro 21.1.1 with Gnome 40.4.0 (according to /usr/share/gnome/gnome-version.xml) My nsswitch.conf file looks as follows |
What is the value for the sof driver module? Posted: 28 Aug 2021 07:44 AM PDT I want to put the sof driver in initramfs on debian 11 distro kernel as described [here][1] I want to add the "value" of the module in I have tried using kernel arguments SO what value do I need to put in |
Ubuntu desktop (gnome) running as a background process Posted: 28 Aug 2021 07:19 AM PDT I've got this instance of Ubuntu server where after booting up gdm start a session automatically and the desktop graphical interface runs offline as a background process i.e not on the standard output (screen). The system has anydesk installed and so I can access the desktop environment without a problem through it. I am looking for a way to bring back the desktop environment to show up on the screen. I have checked the current target and it is at graphical.target |
Split ultrawide monitor in 3 virtuals screens Posted: 28 Aug 2021 06:52 AM PDT For my work, I try to split my new ultrawide monitor in 3 virtual screens on Ubuntu (I don't want to use tile tools as gTile). My first test using "xrandr" was OK when I selected "xorg" driver. But my monitor twinkle excessively to make me sick. So I selected "NVidia" driver and no twinkle. Good. But now I cant' split my monitor using "xrandr". Some informations:
Command to split: It's seems that "xrandr" doesn't work with proprietary drivers. Thank's for you help. |
How to ssh from windows to linux? Posted: 28 Aug 2021 08:22 AM PDT I want to ssh from windows 10 to linux. I installed OpenSSH server and client. When a I tried to ssh to my own pc, it work. Port 22 is opened. i tried without firewall. But when i tried to linux I get connection timed out. |
Copy files from multiple directories and paste it into multiple directories Posted: 28 Aug 2021 06:38 AM PDT I have a directory " /data/archive In this directory there are 8 different subdirectories. Files under these subdirectories have date appended to their names so I'm copying files only for the date I need. Currently what I'm doing is this : Is it possible to code it in a way that I don't have to move through each directory one by one ? Any help on this would be very helpful. Thanks in advance! |
What would happen if dd receives same input file as output file Posted: 28 Aug 2021 08:27 AM PDT Let's say I accidentally ran And I didn't want to wait for the 500gb operation to complete to find out if I broke my system. Does anyone know what the outcome would be so I can either wait in peace for it to complete or just interrupt it and start with a fresh install so long? Edit: Here is the resulting output |
Reason for text/plain pattern "*,v" in shared-mime-info? Posted: 28 Aug 2021 07:49 AM PDT The freedesktop.org media type database The 2008 commit that added the pattern doesn't explain it, though the test case does point to a bug on RedHat's Bugzilla. There, someone had "RCS files" with filenames ending in Why did this one user's weird experience lead to a change in † I say "response", not "fix", because it's not clear to me that it did fix the user's problem. The bug was closed because it ceased to occur in later versions of the software, which isn't explicitly credited to the change in |
Debug a .zshrc that causes exit 1 Posted: 28 Aug 2021 08:01 AM PDT I have a very long I tried to find what's inside the .zshrc that causes the How to I find the bug in my Update: My |
Determine the emplacement of a shared library dependence at compile time Posted: 28 Aug 2021 06:30 AM PDT Is it possible to tell at compile time a binary to be built the paths where a given library is going to be found at runtime? For example, when I link against a shared library in a non-standard location, when I want to run the resulting binary, I have to add the path to that shared library to LD_LIBRARY_PATH, and I want to know whether there exists an option that spares that step and lets the binary know the location of the shared library at run time. Ubuntu 14.04, GCC. |
Posted: 28 Aug 2021 09:49 AM PDT I am trying to merge two columns into one column. My dataset look like this: As you can see there is some repeat values. I want to first combine column 2 with column 1, then I am planning to use Here is the first part of the expected output for this example: |
iptables time rule doen't work on ubuntu 20.04 Posted: 28 Aug 2021 10:47 AM PDT This is my rule: Works in ubuntu 14:04 (i don't know in 16.04) but not in 18.04/20.04 (iptables v1.8.4). any help? PD: Here author says that this is because iptables does not read the system time but UTC. I tried the rule and it doesn't work either PD: I have used the my pc hour: I would appreciate if the solution was not to set the UTC time on my computer, because this can affect other applications |
How to remove empty lines at the end of a file using awk? Posted: 28 Aug 2021 10:46 AM PDT I would like to remove all empty lines that are ONLY located at the end of the file using I was able to successfully find a way to delete all of the empty lines at the top only with the following command: However, I didn't know how to reverse it so I could remove the bottom lines instead. I know I could just use the command above and pipe it with |
Backup of VM using "virsh snapshot-create-as" works once. Fails second time Posted: 28 Aug 2021 07:18 AM PDT I'm running Ubuntu 20.04 with QEMU 4.2.1 and am trying to setup backups using these instructions: https://libvirt.org/kbase/live_full_disk_backup.html (older libvirt instructions, as Ubuntu 20 has older libvirt). The backup method works once, but fails when run a second time. This may be related to the instructions using a VM that has the VM disk as a .raw file, but I'm using a .qcow2. At this point have several VMs, so I'd rather not convert to .raw. When I run: Everything works, no errors. If I don't remove the "overlay1.qcow2" file and run the command again, I get this error: If I remove the file before running it again (as suggested by the instructions): Did some digging and ran the snapshot-list: Tried removing the snapshot: Not sure where to go from here. Thanks. |
Synology ipkg nano - line numbers are wrong, and sometimes appear on the wrong side of the file Posted: 28 Aug 2021 07:31 AM PDT updateI submitted a bug report and the conclusion is that the nano version that's available through ipkg is 3 years outdated, and has been incorrectly modified or a dependency is broken. Unfortunately the community-made package managers are either abandoned (ipkg) or incompatible (opkg). I suspect I'll run into similar problems if I keep trying to use the Synology for development so I'll try a different platform - but I'll leave this question up. originalWhen I open any file in nano and line numbers are enabled, the line numbers are completely wrong, and appear on the wrong side! This happens with any file. Here's one example: The actual file seems correct: Versions:
I've tried different combinations of shells and clients - the same problem occurs:
I've tried reinstalling nano correctly reads the nanorc file Once I even got a crash: The line number changes when I edit the content of a line: https://gfycat.com/unripeoblongafricanhornbill When line numbers are disabled, nano works correctly. Here I've commented out the setting, and re-opened nanorc: Updated to DSM 7I updated my Synology to DSM 7 and tried using nano again. Again, without
The row number changes a few times as the file is loaded, before I get this error:
|
Rsync hangs forevers when I try to run it in cygwin Posted: 28 Aug 2021 06:20 AM PDT I am trying to run rsync command to copy diff of files. I am using cygwin as I am on windows OS, Rsync goes in hang state when I try to run it, this is what the screen looks like I am able to run ssh from cygwin. Also, A thing to notice is that, the password shows in the screen, unlike in ssh, when the password in hidden. Also when I do ctrl+c to exit from rsync, I get the following output |
What is the default password for a Linux Mint live usb Posted: 28 Aug 2021 09:09 AM PDT Im sure some else has had this problem before, but I can't seem to find a proper answer. What is the default password for a linux mint live usb? Most of the other answers say that my install would be corrupt if it is asking me; however, I need to know because I am trying to ssh into it. |
How to check if If i2c-hid and hid-rmi are not used for touchpad? Posted: 28 Aug 2021 09:05 AM PDT I'm seeing the following warning in The touchpad works, but I feel that it is not working as well as it used to. I'm on Gentoo with a custom configured kernel. I've recently switched to other distros and came back to Gentoo and reconfigured the kernel from the ground up. I don't believe I did something out of the ordinary with regards to the input devices, so this might be a bug as suggested in
My question: how do I check if those are not used?
Returns nothing, so nothing to set there. |
Posted: 28 Aug 2021 10:30 AM PDT I'd like to have a simple, calm status bar for Sway which I use with Arch Linux. The configurations I found so far use a separate program like waybar or i3status. While they look great, I'd like to keep it simple and use Preferably, this status bar would work equally well with i3 which should be possible since Sway aims to have its configuration be compatible with i3. |
usb: device descriptor read/64, error -110 Posted: 28 Aug 2021 10:02 AM PDT after this series of error in kernel
this process (sadc of sysstat) or lsusb etc hang and stuck in D state forever
Q: is it possible to release it without a reboot? fyi the usb is related to this virtual keyboard and mouse
|
SMTP Error (530) 5.7.0 Must issue a STARTTLS command first Posted: 28 Aug 2021 06:04 AM PDT I am trying to use port 587 in roundcubemail running in the same machine as my mail server, and I am always receiving this error: I have already changed, to and nothing happens, and I have already 'submission' uncommented. Those was the solutions that I have found to solve this problem, but till now no result here. Main.cf: http://pastebin.com/aEtC0AJt Master.cf: http://pastebin.com/023uu2T8 System specs: 1. PHP Version 5.6.25 2. Postfix 3. MacOS 10.12 I don't know if it is related, but I cannot login through IMAP port 993. I am only able to use ports 25 and 143 without SSL. I cannot send mails internally, all mails pass through my ISP mail server, where my email domain is. |
Does fwknop play nice with ufw? Posted: 28 Aug 2021 10:24 AM PDT The tutorial for I don't want to use If I open/close my ports with |
airmon-ng start wlan0 problems Posted: 28 Aug 2021 07:03 AM PDT I was trying to
|
VERR_ACCESS_DENIED when trying to add a raw disk to virtual box Posted: 28 Aug 2021 07:15 AM PDT I created a virtualbox raw disk pointing to a functioning, booting USB drive with a small linux distro on it. When I try to add it to a virtualbox VM, I get this error: I saw that the raw disk vmdk file was owned by root. I chown'ed it to my own user. Still get the same error. I suspect it would work if I ran virtualbox as root, but I really do not want to do that. Is there anyway to make this work? |
tmux exits immediately after starting Posted: 28 Aug 2021 08:57 AM PDT I'm trying to start with It happens both without a Adding I am using:
My UPDATE: Here are the results from running
|
Linux Mint: How to enable cryptswap with custom password? Posted: 28 Aug 2021 08:03 AM PDT When you want to use hibernation and you care for security, you'd like to have the swap encrypted. But not with the random password, chosen for you at startup, but with a fixed one, supplied by you at the boot time, so the hibernated state would be available for resuming upon next boot. There was a cool way to do this, that worked up until Mint 15: How to: get the whole system encrypted This doesn't work anymore on Petra. Can anyone help me with working it out? The main culprit, the Oh, and I was able to get the password prompt, when I accidentally booted the Mint 16 with the kernel from Mint 15. See also a related question: How to ask for a password to mount crypted swap at boot time on Linux Mint 16 with initramfs-tools? Some debug infoAfter opening the swap device with
update:When I setup everything like above, the system does display the familiar password prompt. It doesn't do that every time, and if it does, it is a fraction of second before the login screen (Linux Mint uses mdm for login). I guess there is racing condition; the mounting of swap is done parallel with the system booting; I expect the system to wait booting until the swap is mounted, and do it as early as possible. Otherwise how could it resume the hibernated state? There is a similar question for Ubuntu: https://askubuntu.com/questions/396136/encrypted-home-partition-encrypted-swap-working-hibernate It seems, that it worked for someone if he encrypted the root as well. |
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