Yocto howto retain a random variable between builds? Posted: 11 Mar 2022 05:37 AM PST I am using Yocto to build an embedded distribution. I am trying to generate a random name for the computer within the machine.conf file. To that goal, I created a python function: def generate_init_name(d): import random # Generate the random name MACH_NAME = "machine_%16x" % (random.randint(0, 2**64)) return MACH_NAME Then the variable is generated in my machine.conf with: MACH_NAME := "${@generate_init_name(d)}" The problem comes when I try to bitbake my image twice. The variable is evaluated twice (instead of keeping the one in memory) which trigger a series of: the basehash value changed from .... to .... The metadata is not deterministic and this needs to be fixed. How can I fix this? Thanks |
How Do You Debug a Script in the %pre section of a kickstart file Posted: 11 Mar 2022 05:23 AM PST Background: I am trying to run this script in the %pre section of a kickstart file on a VM during a 'text' install: import os,sys,gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk class DisplayMenu(): """ Create the main configuration window """ def __init__(self): self.window = Gtk.Window() self.window.set_border_width(10) self.window.set_default_size(800, 600) self.window.connect("destroy", Gtk.main_quit) vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) self.window.add(vbox) hb = Gtk.HeaderBar() hb.set_show_close_button(True) hb.set_decoration_layout(":close") hb.set_title("Title") hb.set_subtitle("subtitle") vbox.pack_start(hb, False, False, 0) label = Gtk.Label() vbox.pack_start(label, False, False, 0) # hbox = Gtk.Box() # label = Gtk.Label("Hostname: ") # hbox.pack_start(label, False, False, 0) # self.hostname = Gtk.Entry() # self.hostname.set_width_chars(30) # if os.environ['HOSTNAME'] != '': # self.hostname.set_text(os.environ['HOSTNAME']) # else: # self.hostname.set_text('localhost.localdomain') # hbox.pack_start(self.hostname, False, False, 0) # vbox.pack_start(hbox, False, False, 0) self.window.show_all() if __name__ == "__main__": WIN = DisplayMenu() Gtk.main() When I run it "as-is" it works (by "works" I mean that it displays the window and stops the installation process until I click on the close icon.) When I remove the '#' on the other commands, it stops working, i.e. it doesn't display a window and continues with the installation. However, the script works as expected on a rhel8 server that already has the GUI installed. My problem is that I can't figure out how to debug it during the installation process. This is the %pre script: /usr/bin/Xorg :0 & /usr/bin/metacity --display :0 --sm-disable & export DISPLAY=:0 /usr/libexec/platform-python /run/install/repo/scripts/menu.py unset DISPLAY killall metacity killall Xorg Question: How do I debug it during the installation process since it doesn't show any errors (that I can see). If I switch to another console with `ALT-F2' & enter the Xorg command, the screen goes blank and it appears I can't enter any other commands. |
Build Singularity container using CentOS cloud image Posted: 11 Mar 2022 04:32 AM PST I'm building a Singularity container using the standard library bootstrap agent based on a CentOS 7: BootStrap: library From: library://library/default/centos:7 I was wondering is it possible to use the CentOS cloud images as a base for a Singularity contaner? For example, the latest Stream Container Base 9. What commands do I need to put into the Singularity definiton file to achieve that? |
Re order iostat time next to device column Posted: 11 Mar 2022 04:32 AM PST I am trying to reformat the iostat data. Current output: TimeA Column1 Column2 Column3 disk1 10GB small disk2 20GB medium disk3 30GB large TimeA Column1 Column2 Column3 disk1 10GB small disk2 20GB medium disk3 30GB large And I want as below: TimeA Column1 Column2 Column3 disk1 10GB small disk2 20GB medium disk3 30GB large TimeB Column1 Column2 Column3 disk1 10GB small disk2 20GB medium disk3 30GB large |
Can procmail intercept incoming messages to a mailing list and modify it before letting it be delivered to the mailboxes of the members of the ML? Posted: 11 Mar 2022 05:43 AM PST I have a use-case where I want to add a custom string to be prepended to each email's body which is received at a certain email address (a mailing list actually). I've been reading up on procmail for the past few days and all the answers/examples I see related to modifying email subjects/bodies either explicitly use sendmail to "forward" the modified email or dump the modified email it to a custom mailbox. What I want is to intercept the message before it is delivered to the mailing list, prepend some custom text to its body and then let it be delivered to the originally intended mailing list (i.e. mailboxes of the members of the mailing list). The mailing list is an Outlook mailing list. I'm not sure how they're internally implemented. Is there a way to achieve this? |
Convenient way to have selected files shown in the beginning of file lists in file managers? Posted: 11 Mar 2022 03:44 AM PST In Windows if one wishes certain file (or directory) to be shown in the beginning of file lists in a file manager (no matter which one, really), one may choose to put the underscore character in the first position of the file name. Sometimes, this solution is convenient, albeit not very elegant. It works for me. On the other hand, Linux seems to ignore such underscore signs in front of file names (I am talking here about file sorting only, of course). Is there any way to customise Linux to respect such leading underscores while sorting? If no, what would you advise to achieve that effect on Linux (I use Lubuntu, if it matters, but this question is not about specific flavour, I trust) apart from reverting to some abominable constructions such as «aaa_» an so on? |
Grub entry not booting up Posted: 11 Mar 2022 03:55 AM PST My grub installation broke recently. I attempted to fix it by running the following commands from my Ubuntu distribution and Arch Linux distribution: sudo os-prober sudo grub-mkconfig /boot/grub/grub.cfg sudo grub-install --efi-directory=/boot/EFI /dev/nvme0n1 Now grub shows all my installed operating systems again and I can use it to boot into two of my installed OS. However, one menu item still does not allow me to boot the corresponding Linux distribution. When I select it, the Laptop's start screen (a large lenovo icon) appears and nothing happens afterwards. Have you got any hints how I can fix this or gather further information on why it does not boot? The grub menu- entry that does not load up from the /boot/grub/grub.cfg : menuentry 'Arch Linux (rolling) (on /dev/nvme0n1p2)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-c53daa31-996c-468d-bd57-df5b73cb87cc' { savedefault insmod part_gpt insmod fat if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 0DD8-ECF1 else search --no-floppy --fs-uuid --set=root 0DD8-ECF1 fi linux /vmlinuz-linux root=UUID=c53daa31-996c-468d-bd57-df5b73cb87cc rw loglevel=3 quiet initrd /intel-ucode.img } and I double-checked with blkid that the UUID 53daa31-996c-468d-bd57-df5b73cb87cc corresponds to the correct drive (/dev/nvme0n1p5 ) and the UUID from the search command corresponds to /dev/nvme0n1p1 which is the EFI Boot. edit: I followed @Recct 's suggestion and removed the "quiet", and also increased the loglevel to 7. Then I receive the errors from the image below, I think the most relevant section is the following: No filesystem could mount root, tried: Kernell panic - not syncing VFS: Unable to mount root fs on unknown-block(0, 0) |
I do not understand how to answer the question, new to linux Posted: 11 Mar 2022 05:18 AM PST Write an script "test.sh", the script will test file "goodbye" in the current directory or not, print "I am here" if the file is in current directory. I was given this question in a "word document" with no prior explanation, that is the question I was given, I think I am supposed to write a script using test.sh to see if the file goodbye is in the current directory and if it is there it should print "I am here" if the file is there. But im not sure how to use test.sh. The code I did, still unsure: cisco@ubuntu:~$ > goodbye if [ -f goodbye ]; then echo "I am here" fi |
Why can fprintf(stderr, ....) output to screen when stderr doesn't refer to a terminal device? Posted: 11 Mar 2022 04:22 AM PST Given that a simple program: /* ttyname.c */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> int main(int argc, char **argv) { char **tty = NULL; tty = ttyname(fileno(stderr)); if (tty == NULL) { fprintf(stderr, "%s\n", strerror(errno)); exit(EXIT_FAILURE); } printf("%s\n", tty); exit(EXIT_SUCCESS); } compile it as ttyname and invoke it as init , the result as following: Inappropriate ioctl for device which means that the error code is ENOTTY . Why can fprintf(stderr, ....) output to screen when stderr doesn't refer to a terminal device ? |
How to put text inside text? Posted: 11 Mar 2022 05:57 AM PST I need to put one text inside another text. 1) I have a file with list of input values: A1 B2 C3 D4 E5 - I have a wrapper pattern which should contain the text:
$wgSpecialPageLockdown['INPUT_COMES_HERE'] = array('sysop'); For each input value, a wrapper with input should be created, so the final result should be a file with: $wgSpecialPageLockdown['A1'] = array('sysop'); $wgSpecialPageLockdown['B2'] = array('sysop'); $wgSpecialPageLockdown['C3'] = array('sysop'); $wgSpecialPageLockdown['D4'] = array('sysop'); $wgSpecialPageLockdown['E5'] = array('sysop'); I am open to do that in GUI as well, such as Visual Studio Code. How would you prefer to do such an action? And, by the way, how is such a textual operation commonly named? |
How do I print the nth argument of a script, when n isn't known until runtime? Posted: 11 Mar 2022 05:38 AM PST I am writing a shell script and I need to print the nth argument of the script. For example, suppose we have n=3 and our script is run with enough arguments. Now I need to print the n th argument, i.e. $3 . But if n=2 , we would print argument $2 . I don't want to use if statements. I wanted to do something like echo $($n) but the above doesn't work the way I need it to. |
Would the process running as pid 1 ignore job controll signals by default? Posted: 11 Mar 2022 05:04 AM PST When I invoke bash as pid 1 (as init) directly, as the result it will issue something like this before prompting : bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell and no signals (e.g Ctrl-Z, Ctrl-C) work.
To solve this issue, I writed a simple program init1.c as following: /* init1.c */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> int main(int argc, char **argv) { char *options[] = {"--login", NULL}; int fd = -1; /* Make bash as session leader. */ if (setsid() == -1) { perror("setsid() : "); exit(EXIT_FAILURE); } /* Make tty1 as controlling terminal of bash. */ fd = open("/dev/tty1", O_RDWR); if (fd == -1) { perror("open() : "); exit(EXIT_FAILURE); } execv("/bin/bash", options); } compiled it as init1 , then invoked it as pid 1 (e.g finally bash running as pid 1 , the preceding errors disappear and some signals ( e.g Ctrl-c, Ctrl-\ ) work, but job control signals ( e.g Ctrl-Z ) still not. For making job control signals working, I revised the code above as following ( init2.c ): /* init2.c */ #include <stdio.h> #include <sys/wait.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> int main(int argc, char **argv) { char *options[] = {"--login", NULL}; int fd = -1; int tty_fd = -1; fd = fork(); if (fd < 0) { perror("fork()"); exit(EXIT_FAILURE); } /* Parent */ if (fd > 0) while (wait(NULL) > 0) ; /* Child */ if (setsid() == -1) { perror("setsid() : "); exit(EXIT_FAILURE); } close(0); close(1); close(2); /* Make stdin, stdout, stderr refer to /dev/tty1 . */ tty_fd = open("/dev/tty1", O_RDWR); if (tty_fd == -1) { perror("open() : "); exit(EXIT_FAILURE); } dup(tty_fd); dup(tty_fd); execv("/bin/bash", options); } compiled it as init2 and invoked as pid 1 ( e.g finally bash running as arbitrary pid other than 1 ), this time the job controll signals work. I don't figure out why the job controll signals work in init2 but not init1 , would the process running as pid 1 ignore job controll signals by default ? It seems that there are something special with pid 1 . |
Audio is not working properly Posted: 11 Mar 2022 04:31 AM PST I am running Debian 11. I had trouble getting to use my headset mic and audio at the same time. I found some errors while executing a command for initframs (not for this matter) and I saw I was missing some Realtek firmware(that's my onboard mobo soundcard). So,then I got realtek firmware installed using sudo apt-get install firmware-realtek ,after I rebooted I could see two more options.I used Stereo Duplex and it worked untill I rebooted my PC,and now I am back at the initial part.I don't have these options and the package is installed.What should I do? Edit: Here is the output of: sudo dmesg -H |grep snd_ [ +0.000007] snd_hda_intel 0000:26:00.1: Handle vga_switcheroo audio client [ +0.000078] snd_hda_intel 0000:28:00.4: enabling device (0000 -> 0002) [ +0.003414] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line [ +0.000002] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ +0.000001] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0) [ +0.000001] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0 [ +0.000001] snd_hda_codec_realtek hdaudioC1D0: inputs: [ +0.000001] snd_hda_codec_realtek hdaudioC1D0: Front Mic=0x19 [ +0.000001] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=0x18 [ +0.000001] snd_hda_codec_realtek hdaudioC1D0: Line=0x1a Also I get the same output by running : journalctl -xb |grep snd I also grep-ed this one in case it's helpful journalctl -xb |grep Audio Mar 03 11:26:26 Deb-PC kernel: ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input30 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input31 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input32 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input33 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input34 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input35 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Line Out Side as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input36 Mar 03 11:26:26 Deb-PC kernel: input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1/input37 Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Front Mic (/dev/input/event19) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Rear Mic (/dev/input/event20) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Line (/dev/input/event21) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Line Out Front (/dev/input/event22) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Line Out Surround (/dev/input/event23) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Line Out CLFE (/dev/input/event24) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Line Out Side (/dev/input/event25) Mar 03 11:26:28 Deb-PC /usr/libexec/gdm-x-session[909]: (II) config/udev: Adding input device HD-Audio Generic Front Headphone (/dev/input/event26) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Front Mic (/dev/input/event19) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Rear Mic (/dev/input/event20) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Line (/dev/input/event21) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Line Out Front (/dev/input/event22) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Line Out Surround (/dev/input/event23) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Line Out CLFE (/dev/input/event24) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Line Out Side (/dev/input/event25) Mar 03 11:26:39 Deb-PC /usr/libexec/gdm-x-session[1425]: (II) config/udev: Adding input device HD-Audio Generic Front Headphone (/dev/input/event26) . |
How to install usbip drivers in kernel customized for being a cloud server? Posted: 11 Mar 2022 03:50 AM PST I have a 5.10.0-11-cloud-amd64 kernel and debian 11.2 . The kernel has been customized to be a cloud server and one of the customization was to remove the usbip drivers that were installed by default. I have tried to install the drivers from source forge , linux repository torvalds and vhci-hcd but ended up in a Makefile related error each time. How to install the usbip drivers in this scenario ? Would copying the .ko files work ? |
Display crashes after screen lock Posted: 11 Mar 2022 03:12 AM PST I am using Ubuntu 20.04 version on Lenovo Ideapad Whenever I lock my laptop (or it gets locked in inactivity) and try to unlock, my display is crashing. I see a screen as below I have another external monitor connected to this laptop and that display looks fine. This started happening only since a couple of days. I also tried to see if there are any recent updates which caused this. But I couldn't see anything related. Here's the log. Start-Date: 2022-01-09 11:22:08 Commandline: /usr/bin/unattended-upgrade Remove: linux-headers-5.11.0-41-generic:amd64 (5.11.0-41.45~20.04.1), linux-hwe-5.11-headers-5.11.0-41:amd64 (5.11.0-41.45~20.04.1) End-Date: 2022-01-09 11:22:10 Start-Date: 2022-01-17 06:57:33 Commandline: /usr/bin/unattended-upgrade Upgrade: libsystemd0:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), systemd-timesyncd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), systemd-sysv:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), libpam-systemd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), systemd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), libnss-systemd:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15) End-Date: 2022-01-17 06:57:40 Start-Date: 2022-01-17 06:57:44 Commandline: /usr/bin/unattended-upgrade Upgrade: libgs9:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5), ghostscript:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5), ghostscript-x:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5), libgs9-common:amd64 (9.50~dfsg-5ubuntu4.4, 9.50~dfsg-5ubuntu4.5) End-Date: 2022-01-17 06:57:46 Start-Date: 2022-01-17 06:57:50 Commandline: /usr/bin/unattended-upgrade Upgrade: linux-libc-dev:amd64 (5.4.0-92.103, 5.4.0-94.106) End-Date: 2022-01-17 06:57:50 Start-Date: 2022-01-17 06:57:54 Commandline: /usr/bin/unattended-upgrade Install: linux-image-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-modules-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-headers-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-modules-extra-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1, automatic), linux-hwe-5.11-headers-5.11.0-46:amd64 (5.11.0-46.51~20.04.1, automatic) Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.11.0.44.48~20.04.22, 5.11.0.46.51~20.04.23), linux-image-generic-hwe-20.04:amd64 (5.11.0.44.48~20.04.22, 5.11.0.46.51~20.04.23), linux-generic-hwe-20.04:amd64 (5.11.0.44.48~20.04.22, 5.11.0.46.51~20.04.23) End-Date: 2022-01-17 06:58:33 Start-Date: 2022-01-17 06:58:36 Commandline: /usr/bin/unattended-upgrade Upgrade: python3-pil:amd64 (7.0.0-4ubuntu0.4, 7.0.0-4ubuntu0.5) End-Date: 2022-01-17 06:58:37 Start-Date: 2022-01-17 06:58:41 Commandline: /usr/bin/unattended-upgrade Upgrade: udev:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15), libudev1:amd64 (245.4-4ubuntu3.13, 245.4-4ubuntu3.15) End-Date: 2022-01-17 06:58:57 Start-Date: 2022-01-17 06:59:00 Commandline: /usr/bin/unattended-upgrade Upgrade: firefox:amd64 (95.0.1+build2-0ubuntu0.20.04.1, 96.0+build2-0ubuntu0.20.04.1) End-Date: 2022-01-17 06:59:05 Start-Date: 2022-01-17 06:59:09 Commandline: /usr/bin/unattended-upgrade Upgrade: firefox-locale-en:amd64 (95.0.1+build2-0ubuntu0.20.04.1, 96.0+build2-0ubuntu0.20.04.1) End-Date: 2022-01-17 06:59:09 Start-Date: 2022-01-17 06:59:13 Commandline: /usr/bin/unattended-upgrade Upgrade: libexiv2-27:amd64 (0.27.2-8ubuntu2.6, 0.27.2-8ubuntu2.7) End-Date: 2022-01-17 06:59:13 Start-Date: 2022-01-18 06:46:44 Commandline: /usr/bin/unattended-upgrade Remove: linux-image-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2), linux-modules-extra-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2), linux-modules-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2) End-Date: 2022-01-18 06:46:50 Start-Date: 2022-01-18 06:46:53 Commandline: /usr/bin/unattended-upgrade Remove: linux-headers-5.11.0-43-generic:amd64 (5.11.0-43.47~20.04.2) End-Date: 2022-01-18 06:46:54 Start-Date: 2022-01-18 06:46:58 Commandline: /usr/bin/unattended-upgrade Remove: linux-hwe-5.11-headers-5.11.0-43:amd64 (5.11.0-43.47~20.04.2) End-Date: 2022-01-18 06:46:58 Start-Date: 2022-01-19 06:44:47 Commandline: /usr/bin/unattended-upgrade Install: linux-modules-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-headers-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-modules-extra-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-image-5.13.0-25-generic:amd64 (5.13.0-25.26~20.04.1, automatic), linux-hwe-5.13-headers-5.13.0-25:amd64 (5.13.0-25.26~20.04.1, automatic) Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.11.0.46.51~20.04.23, 5.13.0.25.26~20.04.12), linux-image-generic-hwe-20.04:amd64 (5.11.0.46.51~20.04.23, 5.13.0.25.26~20.04.12), linux-generic-hwe-20.04:amd64 (5.11.0.46.51~20.04.23, 5.13.0.25.26~20.04.12) End-Date: 2022-01-19 06:45:27 Start-Date: 2022-01-20 10:25:32 Commandline: /usr/bin/unattended-upgrade Remove: linux-headers-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2), linux-hwe-5.11-headers-5.11.0-44:amd64 (5.11.0-44.48~20.04.2) End-Date: 2022-01-20 10:25:34 Start-Date: 2022-01-20 10:25:37 Commandline: /usr/bin/unattended-upgrade Remove: linux-modules-extra-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2) End-Date: 2022-01-20 10:25:38 Start-Date: 2022-01-20 10:25:42 Commandline: /usr/bin/unattended-upgrade Remove: linux-modules-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2), linux-image-5.11.0-44-generic:amd64 (5.11.0-44.48~20.04.2) End-Date: 2022-01-20 10:25:46 Start-Date: 2022-01-20 10:25:51 Commandline: /usr/bin/unattended-upgrade Upgrade: linux-libc-dev:amd64 (5.4.0-94.106, 5.4.0-96.109) End-Date: 2022-01-20 10:25:51 Start-Date: 2022-01-20 10:25:55 Commandline: /usr/bin/unattended-upgrade Install: linux-modules-extra-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-modules-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-headers-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-image-5.13.0-27-generic:amd64 (5.13.0-27.29~20.04.1, automatic), linux-hwe-5.13-headers-5.13.0-27:amd64 (5.13.0-27.29~20.04.1, automatic) Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.13.0.25.26~20.04.12, 5.13.0.27.29~20.04.13), linux-image-generic-hwe-20.04:amd64 (5.13.0.25.26~20.04.12, 5.13.0.27.29~20.04.13), linux-generic-hwe-20.04:amd64 (5.13.0.25.26~20.04.12, 5.13.0.27.29~20.04.13) End-Date: 2022-01-20 10:26:34 Start-Date: 2022-01-21 09:54:26 Commandline: /usr/bin/unattended-upgrade Remove: linux-headers-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1), linux-hwe-5.11-headers-5.11.0-46:amd64 (5.11.0-46.51~20.04.1) End-Date: 2022-01-21 09:54:28 Start-Date: 2022-01-21 09:54:32 Commandline: /usr/bin/unattended-upgrade Remove: linux-image-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1), linux-modules-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1), linux-modules-extra-5.11.0-46-generic:amd64 (5.11.0-46.51~20.04.1) End-Date: 2022-01-21 09:54:37 I have a dual boot. So tried the same on Windows and it works perfectly fine even after locking the screen. I don't know if any video drivers are disturbed in Ubuntu. Any help please!! |
What Users should be expected in /etc/group adm: group [closed] Posted: 11 Mar 2022 05:06 AM PST After an upgrade on my server system I saw that the system added a user with name "Debian" to a lot of groups. I checked that it has no password set in /etc/shadow , so I think it's benign. But just for completeness sake: Where do I find information about how on a certain distro (let's begin with Debian, Fedora, Ubuntu) which system users should exist and what is more likely to be some unwanted guest? |
Primusrun/Optirun allegedly cannot locate/open config directory: "/etc/bumblebee/xorg.conf.d" Posted: 11 Mar 2022 06:11 AM PST I have recently switched from open source drivers to nvidia, to bumblebee as instructed by ubuntuforums.org users to better use my two gpu's capabilities. It also so happens that it does not seem to work at all, I keep getting this error regardless of which command I try. Doing ll /etc/bumblebee/xorg.conf.d I can see that this presumed config file is a directory, I am not too knowledgeable about this but I think it's correct provided the .d extension. Full error: optirun glxgears [ 9546.928811] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d" primusrun glxgears primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d" EDIT: I didn't specify it but yes xorg.conf.d exists and if I try use ll on that directory my result is this: ll /etc/bumblebee/xorg.conf.d total 8 drwxr-xr-x 2 root root 4096 jan 2 14:54 ./ drwxr-xr-x 3 root root 4096 jun 18 22:55 ../ |
Dolphin starts with wrong shell when restored from last session Posted: 11 Mar 2022 05:19 AM PST Dolphin has it's own embedded terminal (which is a KDE Konsole). My default shell is zsh . When Dolphin is restored from the last session (via KDE Plasma session management), it starts with bash instead of zsh . When I run zsh out of the running bash , Dolphin sometimes stops do synchronize the current folder in the GUI and the terminal. Restored Konsoles and newly opened Dolphin windows start properly with zsh . How do I get restored Dolphin sessions to properly start with zsh ? I get this bug both on Kubuntu 20.04 with Plasma 5.18.5 and Arch with Plasma 5.20.5. |
Sddm is not starting but in theory everything is working! Posted: 11 Mar 2022 05:08 AM PST It wasn't a long time ago when I decided to start an adventure with Linux. I started with a virtual machine (VMware workstation Pro) and everything worked fine. I've picked Debian 10.4.0 distro with KDE Plasma desktop. I was so pleased with the Debian that I installed it on my physical drive. Unfortunately, sddm isn't starting after selecting the Debian GNU/Linux option from the GNU GRUB menu. I found a lot of solutions for not working sddm but none of them helped. This is what I have after booting Debian GNU/LINUX: Few lines higher there was "Watchdog hardware is disabled". The first thing I checked, is if the sddm is set to default display manager and it appealed to valid directory /usr/bin/sddm . Then I tried to enable it with # systemctl enable sddm but it shows this: But when I typed # systemctl status sddm it prints that. I don't know how to fix it. SDDM is not showing but it seems working. Lots of people have problems with a black screen but as you can see, not in that case. I reinstalled Debian with non-official non-free installation and it works better (it didn't detect my wifi card before). However, it still not working. If it can be helpful, this is my PCs specification: - CPU: AMD Ryzen 7 3800X
- GPU: MSI Geforce RTX 2070 Super Gaming X Trio
- MOTHERBOARD: MSI MPG X570 Gaming Edge wifi
|
How can I use apt instead of pkcon in KDE neon? Posted: 11 Mar 2022 03:40 AM PST When I run apt upgrade I get the following message from KDE neon: On KDE neon you should use `pkcon update` to install updates. If you absolutely must use apt you do have to use dist-upgrade or full-upgrade in place of the upgrade command. [...] Abort. So the point is the abort. Whatever KDE neon likes, I'd still like to use apt. Is there any way to still use it without a full-upgrade? KDE: 4:5.15.5-0xneon+18.04+bionic+build48 |
shell script read from csv column and search files Posted: 11 Mar 2022 04:04 AM PST I am creating a shell script to take input from CSV files, having two rows ( One Column mentioning time and another file string ).. My script works when there is one row... But it isnot working in multiple rows and also how can i know which row it is searching didnt got the files . Sample file: 1300,N213 1245,N218 1400,N222 1600,N225 Code, I am trying to make it work. #!/bin/bash tr_filepath=/var/opt/data/nms_umts_pms_seg/segment1/ echo "Folder to search for traces ${tr_filepath}" tr_newpath=/var/opt/ericsson/nms_umts_pms_seg/segment1/edos/4G/ CNTRL_FILE=/home/vx622325/filematch.csv echo "File Contents of ${CNTRL_FILE} to match with pattern" for i in $CNTRL_FILE; do t=$(cat $i | awk -F"," '{ print $1}') n=$(cat $i | awk -F"," '{ print $2}') X=`find "$tr_filepath" -type f -iname "A*."$t"*,*="$n"*.bin.gz"` echo -e "Traces To Copy \n $X\n" >> /home/vx622325/result_`date +"%d_%m_%Y"`.csv if [ -d "$tr_newpath" ]; then y= cp -rp $X $tr_newpath else echo "Output folder $tr_newpath not found" > /home/vx622325/result_`date +"%d_%m_%Y"`.csv fi done Files to search for A20190118.2200+0300-2201+0300_SubNetwork=ONRM_RootMo,SubNetwork=N213,MeContext=N213,ManagedElement=1_rnc_gpehfile_Mp0.bin.gz A20190118.2200+0300-2201+0300_SubNetwork=ONRM_RootMo,SubNetwork=N213,MeContext=N213,ManagedElement=1_rnc_gpehfile_Mp10.bin.gz A20190118.2200+0300-2201+0300_SubNetwork=ONRM_RootMo,SubNetwork=N213,MeContext=N213,ManagedElement=1_rnc_gpehfile_Mp11.bin.gz |
Troubles establishing connection with wvdial - Invalid dial command error Posted: 11 Mar 2022 05:01 AM PST I am trying to run internet via HUAWEI E3372 on Debian. It worked on Windows but did not work on Debian.The error is this: ATDT*99# ERROR --> Invalid dial command. wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion *current_task->stack_magic == WVTASK_MAGIC' failed. Aborted Here you are the issue info: wvdial.conf root@debian:/home/b# cat /etc/wvdial.conf [Dialer orange] Modem = /dev/ttyUSB1 Phone = *99# Username =; Password =; Init1 = ATZ Init2 = AT+CGDCONT=1,"IP","internet","",0,0 Auto DNS = on root@debian:/home/b# dmesg | grep tty root@debian:/home/b# dmesg | grep tty [ 0.000000] console [tty0] enabled [ 4.288912] usb 2-8: GSM modem (1-port) converter now attached to ttyUSB0 [ 4.288990] usb 2-8: GSM modem (1-port) converter now attached to ttyUSB1 root@debian:/home/b# wvdial orange root@debian:/home/b# wvdial orange --> WvDial: Internet dialer version 1.61 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: AT+CGDCONT=1,"IP","internet","",0,0 AT+CGDCONT=1,"IP","internet","",0,0 OK --> Modem initialized. --> Sending: ATDT*99# --> Waiting for carrier. ATDT*99# ERROR --> Invalid dial command. wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion `*current_task->stack_magic == WVTASK_MAGIC' failed. Aborted root@debian:/home/b# lsusb root@debian:/home/b# lsusb Bus 002 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0bf8:1004 Fujitsu Siemens Computers Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub root@debian:/home/b# UPDATE The configuration worked and internet got present actually. It was empty resolve.conf simlink so I copied /etc/ppp/resolve.conf one and it worked. Anyway the error still remains and I would like to get rid of it. Also note that I am doing all with Network Manager service disabled. |
Wait multiple process, print exit code if any process get exit Posted: 11 Mar 2022 03:11 AM PST What I am trying to achieve here is, via script I'm running 3 different custom application in wait simultaneously, if any application get exit, give alert via notify or print exit code. System in use: Centos 6.8 |
where are .buildinfo files kept in debian source package? Posted: 11 Mar 2022 05:11 AM PST I have been following the reproducible-builds projects for sometime now and did read/hear somewhere that Debian will start shipping .buildinfo files in Debian source files for quite sometime. I downloaded few source files for some different things few days back, I looked through and wasn't able to find the .buildinfo files. Does anybody if Debian has started .buildinfo files or not. If not, why ? If they have started to ship .buildinfo what is the path where they have put it (a consistent path) and any idea when they will be available archive-wide ? |
how to move by a word in command line in tcsh? Posted: 11 Mar 2022 04:48 AM PST let's say the command is "ls word1 word2 word3" I want to move the cursor from end of line to "word2" but do not want to clear "word3" in process. Just jump back by two words and reach beginning of "word2" is there any keyboard shortcut to jump word backward and forward without deleting the word on command line? |
GParted Live on Hard Disk with Ubuntu Posted: 11 Mar 2022 06:04 AM PST Edit Please note that I fixed the original problem of not booting, but I still can't get it to run X-windows after being prompted for language, input, and display resolution. Original question I read about the latest gparted, and saw this article explaining how to install it on a hard drive. Seemed like it would be a good way to both try it out and have it available, but I've been unable to get it to work. No matter what I've done, I get an immediate reboot. I'm pretty confident that I've followed the directions correctly, and specified the correct disk/partition, etc. Here's what I've tried... Install from hard disk partition The partition I used was /dev/sdc8 . I mounted the partition as specified (sudo mount /dev/sdc8 /dev ), and unzipped the archive into the directory (/mnt ). I originally renamed the /live directory to /live-hd , as suggested, but later changed it back, because their directions seemed to sometimes get it wrong, so I didn't want to second-guess possible errors. But I got the same results either way. I added this to /etc/grub.d/40_custom : menuentry "GParted live" { set root=(hd2,8) linux /live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia live-media-path=/live bootfrom=/dev/sdc8 toram=filesystem.squashfs initrd /live/initrd.img } Then, I ran sudo update-grub2 to update my grub menu. Boot from gparted iso Next, I tried copying the iso file to /home/isos , and substituted this in /etc/grub.d/40_custom : menuentry "Gparted live" { set isofile="/home/isos/gparted-live-0.22.0-1-amd64.iso" loopback loop $isofile linux (loop)/live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia toram=filesystem.squashfs findiso=$isofile initrd (loop)/live/initrd.img } Ran sudo upgrade-grub2 , rebooted, and got the same instant reboot. I apologize if this is not the appropriate place to ask about this. I posted on the gparted forums, but the forums looked to be pretty sparse, and I've gotten no responses so far. Edit I managed to get the iso file to boot by adding a specifier for which partition to use for booting: loopback loop (hd0,gpt1)$isofile (my boot partition is on a gpt formatted ssd). Unfortunately, I have not been able to get X to run so far. So now my question is how to get X up and running, something I never have trouble with using any distros so far. I am prompted for some input parameters, including display resolution and driver. I've tried various resolutions, both vesa and ATI drivers, and auto, but all result in a black screen with a flashing text cursor in the upper left corner. |
IPv6 scope ID in /etc/hosts Posted: 11 Mar 2022 04:58 AM PST I'd like to setup a static hostname for an IPv6 address on local network. It seems, however, that /etc/hosts won't accept a zone ID - when I append a zone ID to an IPv6 address, it acts as if the host is not defined. Without the zone ID, applications are unable to connect to the host. Can I work around this somehow? Or is there some special syntax for zone IDs in /etc/hosts ? |
Git pull in a Linux environment changes the owner of the files Posted: 11 Mar 2022 05:56 AM PST Why will every time I execute a git pull on my live server, the owner of the files be changed? I keep on manually doing a chown john:john index.php . What do I need to change so that, when I do a git pull , the owner of the files will be automatically be or stay john ? |
No comments:
Post a Comment