Recent Questions - Unix & Linux Stack Exchange |
- How to make timesyncd ignore current clock and any recorded timestamp, and just get the correct current time from the server on the internet?
- How to setup lightdm to automatically log in specific user only once
- Why am i able to access a folder which technically shouldn't allow me in?
- Can browse internet, but ping doesn't work
- How to grep from file names with number in range
- How to pause a bash while loop until command finishes
- Connect Linux Server to VPN
- List of single words being generated/parsed as multiple single-word lines in shell script
- Difference between poweroff and reboot
- Are systemd directive names case sensitive?
- Tang fails with SEGV
- Can one do the equivalent of "rm -rf targetdir && mv sourcedir targetdir" with one command?
- find -exec command options with basename
- NVidia driver won't install correctly
- Change file creation date and time based off of file name
- Using grep/awk to find/print certain value in a text file
- Grub disappeared from boot menu
- Is cgroup a type of namespace?
- How to add text before the Nth occurrence of a text using sed only?
- How to disable Activities on Ubuntu
- Linux Mint 20.2 Live usb booting results in black screen
- Moving RAID5 to RAID1 -- Out of Disk Slots
- How can I install GRUB
- How can I kill a specific process running inside a screen session, without killing that screen session?
- Failed to open a session for the virtual machine Kali-Linux-2021.1-vbox-amd64. Callee RC: RPC_E_SERVERFAULT (0x80010105)
- Does CentOS 8 have a package for entr?
- How to pass to ssh the key stored in a shell environment variable?
- When uname reports aarch64 instead of arm64v8. Willl docker-ce still pull arm64v8 images
- CentOS 7 reboot error getting authority?
- How to hide shell process information when starting background process?
Posted: 21 Jan 2022 10:36 AM PST Some day my clock was set to year 2111. Since then, timesyncd refuses to use any other data. Even setting it manually to the current or a future or past date doesn't make any difference for the service. As soon as it is (re)started, it falls back to 2111. Entering |
How to setup lightdm to automatically log in specific user only once Posted: 21 Jan 2022 10:30 AM PST When you add following config into one of the lightdm config file, you can get user to be automatically logged in: This is useful for example if you have encrypted drive and don't want to type password twice (once to unlock drive, second time to log-in). Problem with this is that if you are on lock-screen, you can just choose to switch account and login back without providing password. One possible fix would be to set Is there a way to set-up light-dm in a way that specific user would get logged in when the system boots, but after that, password would be required? Closest thing I could find is that maybe it's possible to create own PAM module or use existing one, but I have no idea how that works. I'm using Linux Mint 20.3. |
Why am i able to access a folder which technically shouldn't allow me in? Posted: 21 Jan 2022 10:11 AM PST I found a folder whose ls -ld output goes like this I dont belong to the group Is there a parallel mechanism through which access is managed in Unix ? Is there a way to check it ? Some comments in the link seems to suggest services like LDAP can do that. I have heard LDAP somewhere in my work context. But i am unable to figure out head from tail, searching online about this. |
Can browse internet, but ping doesn't work Posted: 21 Jan 2022 09:55 AM PST I have an old laptop with Arch Linux installed on it, which I just started up for the first time in a few years. I have NetworkManager installed on it, which can seemingly connect fine to wired and wireless internet. In both cases, while I can browse the internet fine, So the IP address is successfully resolved, but I never get a response. I don't believe there's anything funny with the firewall going on here, as I have several other devices connected to the same internet that can ping just fine. In case it is relevant to diagnosing the problem, the reason I'm concerned about this is that I am unable to update my packages due to some issue with updating pacman keys: My guess is that this is related to the ping issue, but it could be unrelated. |
How to grep from file names with number in range Posted: 21 Jan 2022 09:58 AM PST Assume I have a directory with 5,000 files. each with a name such as: what command-line utility can I use to grep for a string from only the files 1.json through 2000.json? |
How to pause a bash while loop until command finishes Posted: 21 Jan 2022 10:06 AM PST I am writing a simple script to attempt to access a variety of machines via ssh. I am looping over each line and attempting to ssh to that machine. My issue is that when one of the ssh connections succeeds and I am prompted to enter my credentials, the loop is still attempting to ssh to the remaining machines and then disconnects me because of invalid commands. How would I wait for each command to succeed/fail and continue/break accordinly? Thanks for the help! |
Posted: 21 Jan 2022 09:30 AM PST I've got an server on AWS using Lightsail that uses Linux 4.19/Django OS/app combination. I need to use the Django framework to create a function that will take requests coming into the server, and forward them on to another API. This API is only accessible through a VPN. I'm a bit inexperienced with the world of VPNs and Linux, so I guess my first question is, am I on the right track for this? I've tried setting up the connection to a PPTP VPN using nmcli, checking the output of the connection stored gives me https://pastebin.com/pRh7U4Ec (I've replaced the server address with servername.com) However when trying to connect to my server I get the error "Error: Connection activation failed: Could not find source connection." Does anyone know what the cause of that issue could be? I'm unsure where to start looking to diagnose, the only thing I can think of is that I haven't specified the VPN address properly, or that I've missed it and need to include it elsewhere. It is a server name I've been provided (eg remote.company.com), rather than an IP address, so I'm not sure if that is configured differently. |
List of single words being generated/parsed as multiple single-word lines in shell script Posted: 21 Jan 2022 09:16 AM PST A colleague has asked me to help with a shell script which, among other things, generates a list of single words (usernames) from a data file and then loops through this list (as a for-loop) to run further commands for each of these usernames. The script is not generating the expected output, and after putting in some debugging echo statements (to output the list, and the current value being processed by the for-loop, respectively), it looks (I suppose not unexpectedly, given the use of (Oddly, some of the later output from within the for-loop does seem to use the 'current' username value as expected each time, but other parts seem to always use the first value from the list each time (presumably getting confused by the fact that the list is actually made up of multiple lines, rather than a single line with multiple values).) The list is generated by: The for-loop syntax is: The script is running as Is there a way to get the list values into the for-loop in the way that it wants, or is there a more appropriate way to loop through these values instead? |
Difference between poweroff and reboot Posted: 21 Jan 2022 09:00 AM PST I have an embedded device that is built on a Raspberry Pi. I am not the designer of the device, but support from the manufacturer is non-existent so I am on my own to debug. Some of the services that are running mysteriously stall after an indeterminant amount of time. It's been very hard to debug, but a general trend I have found is that a So, my question is: what does |
Are systemd directive names case sensitive? Posted: 21 Jan 2022 08:44 AM PST systemd directives used in the unit files are in the documentation listed using mixed case like To be more specific. This is an example Drop-In overriding the Would the Using
|
Posted: 21 Jan 2022 09:07 AM PST I have a tang server (clevis/tang) in a linux container (LXD). The tangd server is started on receiving a connection throught TCP port 80, according to the tangd.socket configuration: On conecting, the server is started, but it is killed right away because of a segmentation fault: It seems to me the container has enough memory available: More info: The SO is Debian Linux 10 (Buster) Tang packet info: I tried to connect to the tang server using telnet and strace the server: This is the strace output: Do you know why is the tangd server killed? Here it is a trace from a working tang server: Regards, |
Can one do the equivalent of "rm -rf targetdir && mv sourcedir targetdir" with one command? Posted: 21 Jan 2022 09:34 AM PST There are a few ways to interpret the operation of "replacing one file with another", but the one I want to focus on here is the one that can be achieved with the command In this example If all goes well, after running the command above, the file "formerly known as" Now consider the analogous operation of "replacing one directory with another." E.g. overwriting some directory Can I do this with a single "more-or-less standard"1 command that works irrespective of the contents of the two directories in question? I know that, if ...will do the job. Also, I know that if Of course, it would not be difficult to implement2 a script or a function to encapsulate the 1 I realize that the answer to this question depends critically on what one considers the set of permissible commands, and, unfortunately, here I can offer nothing better than vigorous hand-waving... For example, I regard 2 Famous last words. |
find -exec command options with basename Posted: 21 Jan 2022 09:58 AM PST I have the following JPEG files : I use Result : How can I remove the Used alone, But it seems that syntax doesn't work in my Note : if you replace |
NVidia driver won't install correctly Posted: 21 Jan 2022 08:40 AM PST I have a problem installing NVidia drivers. I try to install the recommended 470 driver. It gives me an output that i'm possibly missing firmware in i915. And when I try it through software sources it gives me pk-client-error-quark: error while installing package: subproces from package intramfs-tools script post-intallation returned errorvalue 1 (313). It also won't fully install the Xorg driver ( same errorvalue 1 (313)). I think I need to reinstall the i915 package in order to install the nvidia drivers correctly. But I'm not sure. Because the driver won't install properly, NVidia X-settings doesn't work either. Does anybody have a solution for me how to solve this. I run |
Change file creation date and time based off of file name Posted: 21 Jan 2022 08:49 AM PST I was copying Asterisk call recordings from our main server to a samba share and the creation date and times were changed to the current date and time. The file format is: The bold part is in EPOCH time. I have hundreds of these files and I need to change the creation date of the file based on that EPOCH time stamp in the file's name. Can anyone help me? |
Using grep/awk to find/print certain value in a text file Posted: 21 Jan 2022 10:13 AM PST Assume that i have a text file containing the following 5 lines: i'm looking for grep/awk (or other utility that's available on freebsd 11) that will find/print every line where the following condition evaluated TRUE: Such grep/awk is expected to find/print the following lines from the text file: |
Grub disappeared from boot menu Posted: 21 Jan 2022 08:47 AM PST My grub suddenly disappeared from boot menu. Using win11 and arch linux dual boot. Did not update BIOS or made any changes. I tried the answer from this similiar problem but it didn't help: GRUB disappeared from Boot Menu after UEFI (BIOS) upgrade on Thinkpad X1 Carbon gen5 What to do to get it back? |
Is cgroup a type of namespace? Posted: 21 Jan 2022 10:23 AM PST Is cgroup a type of namespace? I am asking this because I have seen blogs talking as if cgroup and namespaces are different. However, in different linux commands , cgroup is considered as a type of namespace. For example, What is actually going on here? |
How to add text before the Nth occurrence of a text using sed only? Posted: 21 Jan 2022 10:00 AM PST I searched on previous questions but they were only with appending so adding after the occurrence. i need it to be before: So sed must add "hello" for example at the start of the Nth occurrence of a specific text. in this case im adding it to the fourth world: |
How to disable Activities on Ubuntu Posted: 21 Jan 2022 10:21 AM PST I've created a Virtual Machine on my iMac(running Catalina 10.15.7). The VM is running Ubuntu 20.04.3 AMD64 with 4GB of RAM. when using the VM, Ubuntu randomly enters me into the Activities panel without me touching the Activities button. Is there a gesture/shortcut or something that does this? If so, how can I disable it? |
Linux Mint 20.2 Live usb booting results in black screen Posted: 21 Jan 2022 09:04 AM PST I downloaded linux mint 20.2 official iso file and wrote it in to usb flash drive. I disabled secure boot in bios and booted from USB device. Than I get GRUB 2.04 menu with these options:
No matter what I choose it will result in to irresponsive black screen. What should I do to make it boot and make functional install ? PS: Notebook islenovo S740 with Nvidia graphics card EDIT:
|
Moving RAID5 to RAID1 -- Out of Disk Slots Posted: 21 Jan 2022 10:16 AM PST Years and years ago, I set up a 4 TB RAID5 array using 3x 2 TB disks. Those are positioned in sda/b/c. I have a very old tiny disk in sdd, and I'm booting from a 1 TB SSD in sde. Yea, it's a mess. Disks have gotten cheaper, so I'm trying to simplify my setup. I have two identical 4 TB disks, that I'd like to set up a new RAID1 to replace the existing array (I've had all sorts of issues with drives dropping, etc in the existing). The problem is that I can replace sdd, but do not have two available slots to create the array. I could do something like the following link, but it seems that OP had additional complications because it was their boot disk. These disks/array are only for storage. Not sure if that simplifies the situation at all. Can I create a software RAID 1 with one device Other choice would be to try and run the RAID5 with only two disks during the initial copy. Any chance this would screw things up? Thanks a bunch! |
Posted: 21 Jan 2022 09:36 AM PST This will be kind of long. So, I had a Manjaro KDE installation dual booting with Windows 11. I decided I want to install Ubuntu (specifically Ubuntu Budgie) instead of Manjaro. I booted from the live USB, and the install options were:
I deleted the Manjaro partition and used the free space to install Ubuntu. It installed successfully and told me to remove flash drive and press enter. As soon as it boots it says, "unknown partition" and goes to GRUB rescue. I tried a few methods to boot into Ubuntu from GRUB rescue, none were successful. I understand the problem, I deleted the partition that stores files for GRUB. I managed to get to BIOS set up during the split second between pressing the power button and loading GRUB (which automatically goes to GRUB rescue). I changed the settings to use Windows Boot Manager instead of Manjaro. It worked and booted into Windows. Now my question is, how do I install GRUB? If I boot with the live USB again is there a way to install GRUB? |
Posted: 21 Jan 2022 09:59 AM PST I have run multiple ANN training processes under multiple Now, I want to kill a specific process inside the screen without killing the screen. I can press How can I do it cleanly? If I try to kill the process using the process-ID, I become confused. For me, it is impossible to recognize individual processes. Coz, they are running files with the same file names. How to do that? N.B. I am using TensorFlow and Keras. N.B.#2, I am using SSH. |
Posted: 21 Jan 2022 09:01 AM PST |
Does CentOS 8 have a package for entr? Posted: 21 Jan 2022 09:26 AM PST When I was using CentOS 7, there was a package available for Was this just not packaged for CentOS 8? |
How to pass to ssh the key stored in a shell environment variable? Posted: 21 Jan 2022 08:53 AM PST Presumably Is there any other way without writing/removing temporary file? |
When uname reports aarch64 instead of arm64v8. Willl docker-ce still pull arm64v8 images Posted: 21 Jan 2022 09:03 AM PST docker-ce now supports multiple architecture base images but looks for the tag arm64v8 instead of aarch64 (which is labelled as deprecated). Unfortunately my new ubuntu 18.04 host os uname reports aarch64. So
|
CentOS 7 reboot error getting authority? Posted: 21 Jan 2022 10:06 AM PST I'm trying to reboot the CentOS 7 after
I also get the same error when I run Can anyone help? |
How to hide shell process information when starting background process? Posted: 21 Jan 2022 08:43 AM PST How do I /dev/null these two messages?: p.s.: so I need the output of the process, but not the mentioned two lines! |
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