Linux
- Tip: sudoedit often overlooked as an alternative to sudo vim
This is a reminder to user
sudoedit
. Especially useful for Vim and Neovim users who have a rich and personal configuration.> sudoedit /etc/fstab
is also an option.
sudoedit
is a short form forsudo -e
. It uses the default editor set int EDITOR or VISUAL variable. The difference tosudo vim FILE
orsudo nano FILE
is, thatsudoedit FILE
will use the editor configuration from the current user instead from the root. For me this makes a huge difference, because my plugins and settings for Neovim are not used when doingsudo vim
.Man page: https://linux.die.net/man/8/sudoedit
> -e' The -e (edit) option indicates that, instead of running a command, the user wishes to edit one or more files. In lieu of a command, the string "sudoedit" is used when consulting the security policy. If the user is authorized by the policy, the following steps are taken: > > 1. Temporary copies are made of the files to be edited with the owner set to the invoking user. > > 2. The editor specified by the policy is run to edit the temporary files. The sudoers policy uses the SUDO_EDITOR, VISUAL and EDITOR environment variables (in that order). If none of SUDO_EDITOR, VISUAL or EDITOR are set, the first program listed in the editor sudoers(5) option is used. > > 3. If they have been modified, the temporary files are copied back to their original location and the temporary versions are removed. > > If the specified file does not exist, it will be created. Note that unlike most commands run by sudo, the editor is run with the invoking user's environment unmodified. If, for some reason, sudo is unable to update a file with its edited version, the user will receive a warning and the edited copy will remain in a temporary file.
- Nvidia Driver 565.77 Releasedwww.nvidia.com Driver Details | NVIDIA
Download the <dd~LanguageName> <dd~Name> for <dd~OSName> systems. Released <dd~ReleaseDateTime>
- Cant shutdown the system!(Fedora crashed)
I have been facing this issue since yesterday, but basically at some point the system becomes insanely slow, and the restart and shutdown options disappear from the menu, tty3-7 dont work, it freezes at the
shutdown -now
command(at which point I just manually cut the power(bad Idea I know)),but today I stuck around as my system got insanely borked, eventually freezing up and giving me the screen above. the problem shows up after I wake it up from suspend but not always: My system specs: ``` OS: Fedora Linux 41 (Workstation Edition) x86_64 Host: TECRA R940 PT439V-03U02WAR Kernel: 6.11.10-300.fc41.x86_64 Uptime: 23 mins Packages: 2282 (rpm), 43 (flatpak) Shell: bash 5.2.32 Resolution: 1600x900 DE: GNOME 47.1 WM: Mutter WM Theme: Adwaita Theme: Adwaita [GTK2/3] Icons: Adwaita [GTK2/3] Terminal: gnome-terminal CPU: Intel i7-3540M (4) @ 3.700GHz GPU: AMD ATI Radeon HD 7550M/7570M/7650M Memory: 1845MiB / 7879MiB
```
here are the journalctl entries that I think are relevant
entries for events 40 min before that.
and this is from when it happened earlier in the day
- Could an update brick my display [EndeavourOS]?
cross-posted from: https://lemmings.world/post/17422969
> Yesterday I did an update (using
yes | yay
) for about 75 packages on my 6 year old EndeavourOS system. I do updates every 2 weeks in general. Rebooted, did some work and left the screen on, for an hour (I usually do this). Came back and saw my screen having weird doubling text glitch, [like this screenshot above]. This issue also visible on my firmware setting (BIOS) screen, which leads me to believe this might be a h/w issue, though not sure. > > I want to know whether an arch update can break my display. One particular thing I noticed this morning was, when i adjusted my display brightness, the screen went back to normal for a minute or so. > > Also recently I changed my battery about 2 months ago. This was my second battery replacement. After I did my first battery replacement (3 years ago), my laptop had similar display issues with Intel integrated graphics on Windows a month later. which forced me to switch. It was fine on Linux, up until now. So it got me thinking if there is any connection with battery replacements and display issues. I know it sounds weird. Earlier there were not display anomalies on the BIOS screen, but now there is. > > Is there a way to fix this. > > System info: HP Envy, EndeavourOS Linux 6.12.1-arch1-1, Intel(R) Core(TM) i7-8550U with Intel UHD Graphics 620 > > [Update 1] > I hooked up my laptop to an external monitor and everything looks fine on the monitor screen. So the issue is only with my Laptop’s screen I guess. > > [Update 2] > ::: spoiler Packages I upgraded yesterday > alsa-card-profiles > alsa-ucm-conf > alsa-utils > sqlite > npth > systemd-libs > libsysprof-capture > gnupg > file > systemd > pacman > archlinux-keyring > bash-completion > btrfs-progs > c-ares > dav1d > dkms > edk2-ovmf > ell > eos-translations > fastfetch > spirv-tools > glslang > libpipewire > pipewire > pipewire-audio > libwireplumber > wireplumber > pipewire-jack > libjxl > shaderc > libplacebo > pixman > ffmpeg > noto-fonts > firefox > flatpak > fluidsynth > fwupd > gst-plugin-pipewire > iwd > js115 > js128 > less > libbpf > libsynctex > libtool > openal > mpv > noto-fonts-extra > passt > perl-image-exiftool > pipewire-alsa > pipewire-pulse > pkgconf > plocate > pv > qt6-translations > qt6-base > qt6-declarative > qt6-multimedia-ffmpeg > qt6-multimedia > qt6-svg > qt6-wayland > sudo > systemd-resolvconf > systemd-sysvcompat > ttf-nerd-fonts-symbols-common > ttf-nerd-fonts-symbols > virtiofsd > webkit2gtk-4.1 > webkitgtk-6.0 > welcome > xterm > librewolf-bin > librewolf-bin-deb > ::: > - What can the android app see when running in Waydroid?
cross-posted from: https://leminal.space/post/12999238
> Hi, > > when running an Android app in Waydroid, what data can it see? Can it read my local hard drive? Can it scan my network? Can I manage it to just live in it's container and get nothing but an internet connection?
- Complete history of Ubuntu: a lot of highs, a lot of lows
YouTube Video
Click to view this content.
- learnbyexample.github.io Emulating regexp lookarounds in GNU sed
A few workarounds when you want to keep using sed but need lookarounds as well.
- virtio-win question
Final edit: I got all the Linux stuff right but made a dumb mistake generating the image on the Windows side. Watching the VM boot right now. Thanks to all for your support!
cross-posted from: https://slrpnk.net/post/15860280
> Contemplating Fedora Kinoite for work daily driver. Need to prove that I can virtualize an existing physical Windows 11 machine. Using Bazzite on a personal laptop as a host test bed.
> Test host seems to be set up correctly. I layered the packages in the virtualization group, layered virtio-win (from downloaded rpm package), added my user to the libvert group, and enabled libvirtd. After a reboot or two, I can connect with the Virtual Machine Manager and define my VM.
> On physical machine I used Disk2vhd to generate a vhdx. Moved that file to the test host and converted to qcow2. Copied disk image to /var/lib/libvert/images and added it as my drive image when I defined the VM.
> VM starts but will not boot. Stupid question: Should I have installed virt-win-gt-x64.msi from the virtio-win ISO on the source Windows install before I created the vhdx?
> Edit: Since I posted, I installed a Debian guest from scratch in this environment and it runs like a champ. 👍
- What is syslog-ng and how do I get experience with it?
I'm trying to find a higher paying job and I came across one for a "Syslog-ng Admin/Engineer." The pay seems promising and the requirements aren't that long but does ask for experience in syslog-ng. I've never heard of this before today. What is syslog-ng and what can I do to get experience with it?