Which tools exists for wallpaper switching based on parameters such as time of day, passed time, location, etc.? Posted: 28 Dec 2021 04:20 AM PST Although I am using XFCE's built-in time-based wallpaper rotation, I would to like to try and find a more sophisticated tool. Is there a tool which can switch/rotate wallpapers based on parameters like time of day (and I would argue this should be based on the computer's location) time intervals/passed time (this is already available in XFCE I think) files in a folder which names that have a "clear" enumerated pattern |
Wireguard does not rout all traffic over the tunnel even with 0.0.0.0/0 Posted: 28 Dec 2021 04:15 AM PST I have a raspberry pi with a Wireguard Server and a number of peer's Android, Windows and another Raspberry pi. The tunnel works on all clients (for example i can ping my upnp server). The thing that does not work is that on the Raspi client it does not find the upnp server. I can ping the server but kodi for example can not find it. On the other clients it does work. VLC for example can find the server on these client's but only when i set the allowed addresses to 0.0.0.0/0. I guess that this some routing thing or the way that a upnp server works.? So i did the same thing on the pi but still it can not find the server. But ping is still working. I was wondering if this could be because i connect the pi via wifi? Maybe someone has an idea. Thank you for your help. |
passphrase no prompt Posted: 28 Dec 2021 04:02 AM PST I have ssh key with passphrase. I want to keep the passphrase and work without the need to enter every time the passphrase. Is there any utility with the ssh command (like sshpass) for the passphrase? thanks. |
How to open Joplin from terminal Posted: 28 Dec 2021 03:47 AM PST I have just installed Joplin on Fedora, by simply using wget ; more specifically this is waht I typed in my terminal: wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash All went well and I can now open Joplin by searching it in the Gnome search bar; however I would really like to be able to open it from the terminal, instead of having to search it and then opening it by clicking on its icon. Typing joplin on my terminal accomplishes nothing. How can I set up a terminal command to open Joplin? In Windows, for example, I would add the .exe file to the PATH variable.. Is there an analogous way on Fedora or GNU/Linux in general? |
Best way to manage y/n and password prompts through a Python script Posted: 28 Dec 2021 03:28 AM PST I am creating a Python script to install AUR packages but can't figure out how to detect yes/no and root password prompts. So far what I have managed is to get rid of yes/no prompts using yes command, like this. cmd = r'yes y | makepkg -si' output = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, universal_newlines=True) But still 2 problems persist: Detect the password prompt: The password prompt appears mainly after makepkg enters in fakeroot. IDK how to detect that and supply the password from the script. There is no pattern actually. Some package evoke 1 y/n prompt while some prompt more than 1. Enter actual password: Actually, I want to enter password through a GUI. So, basically, I want user to input password in a text box that I will create using Tkinter. tkinter.simpledialog.askstring("Password", "Enter password:", show='*') I am confused how to implement this. I looked up this problem already and some Stackoverflow posts demonstrate the use of pexpect but I am having hard time understanding it. But if it can be done using the standsard libraries then it would be great. Any help is appreacited. Thanks. |
CMake error "Could not find a package configuration file provided by "Qt5QuickControls2"" Posted: 28 Dec 2021 02:31 AM PST I'm trying to build the vvave music player on Debian11/KDE but running cmake .. fails - it shows this error: -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:23 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. When I run CXX="gcc" sudo cmake .. it returns: Installing in /usr/local. Run /home/username/vvave/build/prefix.sh to set the environment for vvave. CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5QuickControls2" with any of the following names: Qt5QuickControls2Config.cmake qt5quickcontrols2-config.cmake Add the installation prefix of "Qt5QuickControls2" to CMAKE_PREFIX_PATH or set "Qt5QuickControls2_DIR" to a directory containing one of the above files. If "Qt5QuickControls2" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:52 (find_package) despite having the packages needed for Ubuntu (see the linked Readme) installed. Package Qt5QuickControls2 is installed too. Asking here partly because there still is no way to report bugs/issues of vvave. |
How can I make my game's FPS be virtually unaffected by a low priority background task? Posted: 28 Dec 2021 02:09 AM PST I'm running a desktop system where I often have long-running compilation tasks in the background. I'd like to play CPU-limited games while they're running without a significant drop in FPS (the game only uses <4 of my 8 cores). I set up a simple test scenario with two stress -c $(nproc) processes. Nice doesn't really work anymore on modern Linux distros (and especially not in my actual use-case), so the best method of prioritising a task is using the SCHED_IDLE scheduling policy. So I set one of them as SCHED_IDLE (and an inconsequential nice 1 for differentiation) and the other is running regularly with SCHED_OTHER. As expected, CPU usage is 0.1 us, 0.1 sy, 99.8 ni, 0.0 id when the emulated background task is running and 99.5 us, 0.2 sy, 0.3 ni, 0.0 id when both are running. However, this difference does not translate well to the game: Running the game normally with no background process results in 83 FPS, running it with a SCHED_OTHER background task results in highly variable 35 FPS and a SCHED_IDLE one in a fairly stable 60 FPS. Why does the game's performance go down so much eventhough it could use nearly 100% of the available CPU resources if it needed to? How could I get it closer to the <10% performance drop you'd expect from the boost frequency reduction and L3 cache congestion caused by activity on the previously idle cores? (Without generally cripping compilation performance of course; I'd like that to be as fast as possible when I'm not doing anything else. make -j1 would technically do it, I know.) |
Best way to find/open files in Zathura Posted: 28 Dec 2021 12:26 AM PST I like Zathura as a PDF reader quite a lot, but one feature I haven't found that I miss from other PDF readers is an easy way to open a file from within Zathura. The only way I know how to do this is by issuing an :open command, but to use that command I need to know the full path of the file I want to open (unless it's already in Zathura's history, in which case I can tab to it.) I typically end up just finding the file in the Shell, and then issuing the Zathura command from within the directory of the file I want to open. My question is, is there a better way to find a file from within Zathura itself (maybe something like :Explore in Vim?) |
Installing Zabbix-agent2 on amazon linux2 Posted: 28 Dec 2021 01:57 AM PST I am trying to install zabbix-agent2 as mentioned in this link agent 2 is available in pre-compiled Zabbix packages. I ran rpm -Uvh https://repo.zabbix.com/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm Then search for Zabbix-agent2 using yum and it shows available. However, when I try to install using Sudo yum install zabbix-agent2 It shows Error: Package: zabbix-agent2-5.4.9-1.el8.x86_64 (zabbix) Requires: libc.so.6(GLIBC_2.28)(64bit) How can I resolve this? Is there any alternative way to install it? |
How to interpret `apt-cache rdepends` to pinpoint dependency? Posted: 28 Dec 2021 01:36 AM PST https://askubuntu.com/questions/128524/how-to-list-dependent-packages-reverse-dependencies advises apt-cache rdepends but does not explain how to interpret the output. The output consists on lines with no indentation and two spaces one. But dependencies form a tree-line structure, any way to see output that way? How to interpret w/out tree? For example: I run: ~$ apt-cache rdepends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances libpulse0:i386 Got ~1k lines (with only --recurse option output is ~500k lines). Around line 300th (full output at the end): ... Reverse Depends: libpcaudio-dev:i386 espeak-ng:i386 libespeak-ng1:i386 libcanberra-pulse:i386 Reverse Depends: pulseaudio Reverse Depends: pulseaudio-module-bluetooth pulseaudio-module-bluetooth ... Before that I have not noticed non-i386 packages listed, so first one is pulseaudio . How to find out which package requires pulseaudio ? Indentation of a line immediately preceding is different from previous once, no indentation for libcanberra-pulse:i386 . Does it mean libcanberra-pulse:i386 requires pulseaudio ? The output below of apt-cache show lists it as dependency, however output apt-cache rdepends does not list another dependencies, e.g. libc6 . $ apt-cache show libcanberra-pulse:i386 Package: libcanberra-pulse Architecture: i386 Version: 0.30-7ubuntu1 Multi-Arch: same Priority: optional Section: libdevel Source: libcanberra Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 49 Depends: libc6 (>= 2.4), libcanberra0 (= 0.30-7ubuntu1), libpulse0 (>= 0.99.1), pulseaudio Full output: ~$ apt-cache rdepends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances libpulse0:i386 libpulse0:i386 Reverse Depends: wine-stable-i386:i386 pulseaudio-module-zeroconf:i386 pulseaudio-module-raop:i386 pulseaudio-module-lirc:i386 pulseaudio-module-jack:i386 pulseaudio-module-gsettings:i386 pulseaudio-equalizer:i386 pulseaudio-utils:i386 pulseaudio-module-bluetooth:i386 pulseaudio:i386 libpulsedsp:i386 libpulse-mainloop-glib0:i386 libpulse-dev:i386 pulseaudio-module-zeroconf:i386 pulseaudio-module-raop:i386 pulseaudio-module-lirc:i386 pulseaudio-module-jack:i386 pulseaudio-module-gsettings:i386 pulseaudio-equalizer:i386 openjdk-8-jre:i386 libavdevice58:i386 pulseaudio-utils:i386 pulseaudio-module-bluetooth:i386 pulseaudio:i386 libpulsedsp:i386 libpulse-mainloop-glib0:i386 libpulse-dev:i386 gstreamer1.0-pulseaudio:i386 libpulse-dev:i386 vlc-plugin-base:i386 pulseaudio-module-zeroconf:i386 pulseaudio-module-raop:i386 pulseaudio-module-lirc:i386 pulseaudio-module-jack:i386 pulseaudio-module-gsettings:i386 pulseaudio-equalizer:i386 openmpt123:i386 openjdk-8-jre:i386 mpg123:i386 lmms:i386 libwine-development:i386 libwine:i386 libsox-fmt-pulse:i386 libsoundio1:i386 libsdl2-2.0-0:i386 libsdl1.2debian:i386 librtaudio6:i386 libqt5multimedia5-plugins:i386 libqt5multimedia5:i386 libmikmod3:i386 libfluidsynth2:i386 libespeak1:i386 libavdevice58:i386 gpac-modules-base:i386 speech-dispatcher-audio-plugins:i386 pulseaudio-utils:i386 pulseaudio-module-bluetooth:i386 pulseaudio:i386 libpulsedsp:i386 libpulse-mainloop-glib0:i386 libasound2-plugins:i386 libpcaudio0:i386 libcanberra-pulse:i386 gstreamer1.0-pulseaudio:i386 wine-stable-i386:i386 Reverse Depends: pulseaudio-module-zeroconf:i386 Reverse Depends: pulseaudio-module-raop:i386 pulseaudio-module-raop:i386 pulseaudio-module-raop:i386 pulseaudio-module-raop:i386 Reverse Depends: pulseaudio-module-lirc:i386 Reverse Depends: pulseaudio-module-jack:i386 Reverse Depends: pulseaudio-module-gsettings:i386 Reverse Depends: pulseaudio-equalizer:i386 Reverse Depends: pulseaudio-utils:i386 Reverse Depends: pulseaudio:i386 pulseaudio:i386 pulseaudio:i386 pulseaudio-module-bluetooth:i386 Reverse Depends: pulseaudio:i386 Reverse Depends: pulseaudio-module-bluetooth:i386 pulseaudio-module-zeroconf:i386 pulseaudio-module-raop:i386 pulseaudio-module-lirc:i386 pulseaudio-module-jack:i386 pulseaudio-module-gsettings:i386 pulseaudio-equalizer:i386 pulseaudio-module-bluetooth:i386 pulseaudio pulseaudio-module-zeroconf:i386 pulseaudio pulseaudio-module-raop:i386 pulseaudio pulseaudio-module-lirc:i386 pulseaudio pulseaudio-module-jack:i386 pulseaudio pulseaudio-module-gsettings:i386 pulseaudio pulseaudio-equalizer:i386 pulseaudio pulseaudio-module-bluetooth:i386 pulseaudio-module-zeroconf:i386 pulseaudio-module-raop:i386 pulseaudio-module-lirc:i386 pulseaudio-module-jack:i386 pulseaudio-module-gsettings:i386 pulseaudio-equalizer:i386 libcanberra-pulse:i386 pulseaudio libpulsedsp:i386 Reverse Depends: pulseaudio-utils:i386 pulseaudio-utils:i386 pulseaudio-utils:i386 libpulse-mainloop-glib0:i386 Reverse Depends: libpulse-dev:i386 libpulse-dev:i386 libpulse-dev:i386 libpulse-dev:i386 Reverse Depends: qtmultimedia5-dev:i386 libsdl2-dev:i386 libsdl1.2-dev:i386 librtaudio-dev:i386 libefl-all-dev:i386 openjdk-8-jre:i386 Reverse Depends: openjdk-8-jdk:i386 openjdk-8-demo:i386 openjdk-8-jdk:i386 openjdk-8-demo:i386 libavdevice58:i386 Reverse Depends: libavdevice-dev:i386 ffmpeg:i386 ffmpeg:i386 libavdevice-dev:i386 gpac:i386 gstreamer1.0-pulseaudio:i386 Reverse Depends: gstreamer1.0-plugins-good-dbg:i386 gstreamer1.0-plugins-good-dbg:i386 vlc-plugin-base:i386 Reverse Depends: vlc:i386 openmpt123:i386 Reverse Depends: mpg123:i386 Reverse Depends: lmms:i386 Reverse Depends: libwine-development:i386 Reverse Depends: wine32-development:i386 libwine-development-dev:i386 dxvk-wine32-development:i386 carla-bridge-wine32:i386 libwine:i386 Reverse Depends: wine32:i386 lmms-vst-server:i386 libwine-dev:i386 libsox-fmt-pulse:i386 Reverse Depends: libsox-fmt-all:i386 sox:i386 libsoundio1:i386 Reverse Depends: libsoundio-dev:i386 lmms:i386 libsdl2-2.0-0:i386 Reverse Depends: libavdevice58:i386 ffmpeg:i386 pcsx2:i386 libsdl2-ttf-2.0-0:i386 libsdl2-net-2.0-0:i386 libsdl2-mixer-2.0-0:i386 libsdl2-image-2.0-0:i386 libsdl2-gfx-1.0-0:i386 libsdl2-dev:i386 libmikmod3:i386 bochs:i386 libfluidsynth2:i386 libfaudio0:i386 libavdevice58:i386 fluidsynth:i386 ffmpeg:i386 bochs-sdl:i386 libsdl1.2debian:i386 Reverse Depends: libsdl1.2-dev:i386 dgen:i386 zsnes:i386 vlc-plugin-base:i386 smpeg-plaympeg:i386 smpeg-gtv:i386 mpeg2dec:i386 mjpegtools:i386 lmms:i386 libtheora-bin:i386 libsmpeg0:i386 adlibtracker2:i386 libsdl-ttf2.0-0:i386 libsdl-sound1.2:i386 libsdl-sge:i386 libsdl-pango1:i386 libsdl-ocaml:i386 libsdl-net1.2:i386 libsdl-mixer1.2:i386 libsdl-image1.2:i386 libsdl-gst:i386 libsdl-gfx1.2-5:i386 libsdl-console:i386 liblavplay-2.1-0:i386 libdv-bin:i386 libde265-examples:i386 gpac-modules-base:i386 fenix-plugins:i386 fenix-plugin-mpeg:i386 fenix:i386 librtaudio6:i386 Reverse Depends: librtaudio-dev:i386 stk:i386 libstk-4.6.1:i386 libqt5multimedia5-plugins:i386 Reverse Depends: qtmultimedia5-examples:i386 libqt5multimedia5:i386 Reverse Depends: qtmultimedia5-examples:i386 qtmultimedia5-dev:i386 qml-module-qtmultimedia:i386 qml-module-qtaudioengine:i386 python3-pyqt5.qtmultimedia-dbg:i386 python3-pyqt5.qtmultimedia:i386 libqt5multimediawidgets5:i386 libqt5multimediaquick5:i386 libqt5multimediagsttools5:i386 libqt5multimedia5-plugins:i386 libmikmod3:i386 Reverse Depends: libmikmod-dev:i386 libsdl-sound1.2:i386 libsdl-mixer1.2:i386 libfluidsynth2:i386 Reverse Depends: libfluidsynth-dev:i386 vlc-plugin-fluidsynth:i386 lmms:i386 libsdl2-mixer-2.0-0:i386 libsdl-mixer1.2:i386 fluidsynth:i386 gstreamer1.0-plugins-bad:i386 libespeak1:i386 Reverse Depends: libespeak-dev:i386 speech-dispatcher-espeak:i386 libespeak-ng-libespeak1:i386 espeak:i386 libespeak-ng-libespeak1:i386 gpac-modules-base:i386 Reverse Depends: gpac:i386 speech-dispatcher-audio-plugins:i386 Reverse Depends: speech-dispatcher-ibmtts:i386 speech-dispatcher:i386 speech-dispatcher-ibmtts:i386 libasound2-plugins:i386 Reverse Depends: wine-stable-i386:i386 pulseaudio:i386 pulseaudio:i386 pulseaudio:i386 libpcaudio0:i386 Reverse Depends: libpcaudio-dev:i386 espeak-ng:i386 libespeak-ng1:i386 libcanberra-pulse:i386 Reverse Depends: pulseaudio Reverse Depends: pulseaudio-module-bluetooth pulseaudio-module-bluetooth pulseaudio-module-zeroconf pulseaudio-module-raop pulseaudio-module-lirc pulseaudio-module-jack pulseaudio-module-gsettings pulseaudio-equalizer pulseaudio-module-bluetooth pulseaudio:i386 pulseaudio-module-zeroconf pulseaudio:i386 pulseaudio-module-raop pulseaudio:i386 pulseaudio-module-lirc pulseaudio:i386 pulseaudio-module-jack pulseaudio:i386 pulseaudio-module-gsettings pulseaudio:i386 pulseaudio-equalizer pulseaudio:i386 plasma-pa pulseaudio:i386 ubuntu-desktop-minimal pulseaudio:i386 ubuntu-desktop pulseaudio:i386 x2gothinclient-minidesktop pulseaudio:i386 x2gothinclient-chroot pulseaudio:i386 vanilla-gnome-desktop pulseaudio:i386 ubuntukylin-desktop pulseaudio:i386 ubuntu-unity-desktop pulseaudio:i386 ubuntu-mate-desktop pulseaudio:i386 ubuntu-mate-core pulseaudio:i386 ubuntu-budgie-desktop pulseaudio:i386 pulseaudio-module-bluetooth pulseeffects pulseaudio:i386 pulseaudio-module-zeroconf pulseaudio-module-raop pulseaudio-module-lirc pulseaudio-module-jack pulseaudio-module-gsettings pulseaudio-equalizer plasma-pa pulseaudio:i386 pavucontrol-qt pulseaudio:i386 osspd-pulseaudio pulseaudio:i386 mkchromecast-pulseaudio pulseaudio:i386 lubuntu-desktop pulseaudio:i386 kubuntu-desktop pulseaudio:i386 |kde-telepathy-call-ui pulseaudio:i386 indicator-sound pulseaudio:i386 gqrx-sdr pulseaudio:i386 gnome-core pulseaudio:i386 cairo-dock-impulse-plug-in pulseaudio:i386 ubuntu-desktop-minimal pulseaudio:i386 ubuntu-desktop pulseaudio:i386 libcanberra-pulse pulseaudio:i386 chromium pulseaudio:i386 qtmultimedia5-dev:i386 Reverse Depends: libsdl2-dev:i386 Reverse Depends: libsdl2-ttf-dev:i386 libsdl2-net-dev:i386 libsdl2-mixer-dev:i386 libsdl2-image-dev:i386 libsdl2-gfx-dev:i386 libsdl1.2-dev:i386 Reverse Depends: libsmpeg-dev:i386 libsdl-console-dev:i386 libsdl-ttf2.0-dev:i386 libsdl-sound1.2-dev:i386 libsdl-sge-dev:i386 libsdl-pango-dev:i386 libsdl-ocaml-dev:i386 libsdl-net1.2-dev:i386 libsdl-mixer1.2-dev:i386 libsdl-image1.2-dev:i386 libsdl-gfx1.2-dev:i386 librtaudio-dev:i386 Reverse Depends: libstk-dev:i386 librtmidi-dev:i386 libefl-all-dev:i386 Reverse Depends: openjdk-8-jdk:i386 Reverse Depends: openjdk-8-demo:i386 Reverse Depends: libavdevice-dev:i386 Reverse Depends: ffmpeg:i386 Reverse Depends: gpac:i386 Reverse Depends: gstreamer1.0-plugins-good-dbg:i386 Reverse Depends: vlc:i386 Reverse Depends: wine32-development:i386 Reverse Depends: wine32-development-preloader:i386 libwine-development-dev:i386 Reverse Depends: wine32-development-tools:i386 dxvk-wine32-development:i386 Reverse Depends: carla-bridge-wine32:i386 Reverse Depends: carla-bridge-win32:i386 wine32:i386 Reverse Depends: lmms-vst-server:i386 wine32-preloader:i386 lmms-vst-server:i386 Reverse Depends: libwine-dev:i386 Reverse Depends: wine32-tools:i386 libsox-fmt-all:i386 Reverse Depends: libsox-dev:i386 sox:i386 Reverse Depends: libsoundio-dev:i386 Reverse Depends: pcsx2:i386 Reverse Depends: libsdl2-ttf-2.0-0:i386 Reverse Depends: libsdl2-ttf-dev:i386 libsdl2-net-2.0-0:i386 Reverse Depends: libsdl2-net-dev:i386 libsdl2-mixer-2.0-0:i386 Reverse Depends: libsdl2-mixer-dev:i386 libsdl2-image-2.0-0:i386 Reverse Depends: libsdl2-image-dev:i386 libsdl2-gfx-1.0-0:i386 Reverse Depends: libsdl2-gfx-dev:i386 bochs:i386 Reverse Depends: bochs-x:i386 bochs-wx:i386 bochs-term:i386 bochs-sdl:i386 libfaudio0:i386 Reverse Depends: libwine:i386 wine-stable-i386:i386 libwine-development:i386 libfaudio-dev:i386 fluidsynth:i386 Reverse Depends: bochs-sdl:i386 Reverse Depends: dgen:i386 Reverse Depends: zsnes:i386 Reverse Depends: smpeg-plaympeg:i386 Reverse Depends: smpeg-gtv:i386 Reverse Depends: mpeg2dec:i386 Reverse Depends: mjpegtools:i386 Reverse Depends: mjpegtools-gtk:i386 libtheora-bin:i386 Reverse Depends: libsmpeg0:i386 Reverse Depends: libsmpeg-dev:i386 smpeg-plaympeg:i386 smpeg-gtv:i386 fenix-plugin-mpeg:i386 adlibtracker2:i386 Reverse Depends: libsdl-ttf2.0-0:i386 Reverse Depends: libsdl-ttf2.0-dev:i386 libsdl-ocaml:i386 libsdl-sound1.2:i386 Reverse Depends: libsdl-sound1.2-dev:i386 libsdl-sge:i386 Reverse Depends: libsdl-sge-dev:i386 libsdl-pango1:i386 Reverse Depends: libsdl-pango-dev:i386 libsdl-ocaml:i386 Reverse Depends: libsdl-net1.2:i386 Reverse Depends: libsdl-net1.2-dev:i386 fenix-plugins:i386 libsdl-mixer1.2:i386 Reverse Depends: libsdl-ocaml:i386 libsdl-mixer1.2-dev:i386 fenix:i386 fenix-plugin-mpeg:i386 libsdl-image1.2:i386 Reverse Depends: vlc-plugin-base:i386 libsdl-sge:i386 libsdl-ocaml:i386 libsdl-image1.2-dev:i386 libsdl-console:i386 fenix-plugins:i386 libsdl-gst:i386 Reverse Depends: libsdl-gfx1.2-5:i386 Reverse Depends: libsdl-ocaml:i386 libsdl-gfx1.2-dev:i386 libsdl-console:i386 Reverse Depends: libsdl-console-dev:i386 liblavplay-2.1-0:i386 Reverse Depends: mjpegtools:i386 libmjpegtools-dev:i386 libdv-bin:i386 Reverse Depends: libde265-examples:i386 Reverse Depends: fenix-plugins:i386 Reverse Depends: fenix-plugin-mpeg:i386 Reverse Depends: fenix:i386 Reverse Depends: pixbros:i386 pixfrogger:i386 stk:i386 Reverse Depends: lmms:i386 libstk-4.6.1:i386 Reverse Depends: stk:i386 lmms:i386 libstk-dev:i386 qtmultimedia5-examples:i386 Reverse Depends: qml-module-qtmultimedia:i386 Reverse Depends: qtmultimedia5-examples:i386 qml-module-qtaudioengine:i386 Reverse Depends: python3-pyqt5.qtmultimedia-dbg:i386 Reverse Depends: python3-pyqt5.qtmultimedia:i386 Reverse Depends: python3-pyqt5.qtmultimedia-dbg:i386 libqt5multimediawidgets5:i386 Reverse Depends: python3-pyqt5.qtmultimedia:i386 qtmultimedia5-examples:i386 qtmultimedia5-dev:i386 python3-pyqt5.qtmultimedia-dbg:i386 libqt5multimediagsttools5:i386 libqt5multimediaquick5:i386 Reverse Depends: qtmultimedia5-dev:i386 qml-module-qtmultimedia:i386 libqt5multimediagsttools5:i386 Reverse Depends: qtmultimedia5-dev:i386 libqt5multimedia5-plugins:i386 libmikmod-dev:i386 Reverse Depends: libsdl-mixer1.2-dev:i386 libfluidsynth-dev:i386 Reverse Depends: vlc-plugin-fluidsynth:i386 Reverse Depends: gstreamer1.0-plugins-bad:i386 Reverse Depends: gstreamer1.0-plugins-bad-dbg:i386 libespeak-dev:i386 Reverse Depends: speech-dispatcher-espeak:i386 Reverse Depends: libespeak-ng-libespeak1:i386 Reverse Depends: espeak:i386 Reverse Depends: speech-dispatcher-ibmtts:i386 Reverse Depends: speech-dispatcher:i386 Reverse Depends: speech-dispatcher-baratinoo:i386 speech-dispatcher speech-dispatcher-pico:i386 speech-dispatcher speech-dispatcher-pico:i386 speech-dispatcher speech-dispatcher-ibmtts:i386 speech-dispatcher speech-dispatcher-ibmtts:i386 speech-dispatcher speech-dispatcher-kali:i386 speech-dispatcher speech-dispatcher-kali:i386 speech-dispatcher speech-dispatcher-flite:i386 speech-dispatcher speech-dispatcher-espeak:i386 speech-dispatcher speech-dispatcher-cicero:i386 speech-dispatcher speech-dispatcher-baratinoo:i386 speech-dispatcher speech-dispatcher-espeak-ng:i386 speech-dispatcher libpcaudio-dev:i386 Reverse Depends: espeak-ng:i386 Reverse Depends: libespeak-ng1:i386 Reverse Depends: libespeak-ng-dev:i386 libespeak-ng-libespeak1:i386 espeak-ng:i386 speech-dispatcher-espeak-ng:i386 pulseaudio-module-bluetooth Reverse Depends: lubuntu-desktop gnome-core pulseaudio-module-zeroconf Reverse Depends: paprefs pulseaudio-module-raop pulseaudio-module-raop pulseaudio-module-raop pulseaudio-module-raop Reverse Depends: pulseaudio-module-lirc Reverse Depends: pulseaudio-module-jack Reverse Depends: ubuntustudio-controls ubuntustudio-controls pulseaudio-module-gsettings Reverse Depends: paprefs pulseaudio-equalizer Reverse Depends: plasma-pa Reverse Depends: |kde-standard |kdemultimedia ubuntu-desktop-minimal Reverse Depends: ubuntu-desktop ubuntu-desktop ubuntu-desktop Reverse Depends: ubuntu-gnome-desktop x2gothinclient-minidesktop Reverse Depends: x2gothinclient-chroot x2gothinclient-chroot Reverse Depends: vanilla-gnome-desktop Reverse Depends: ubuntukylin-desktop Reverse Depends: ubuntu-unity-desktop Reverse Depends: ubuntu-mate-desktop Reverse Depends: ubuntu-mate-core Reverse Depends: ubuntu-mate-desktop ubuntu-budgie-desktop Reverse Depends: pulseeffects Reverse Depends: pavucontrol-qt Reverse Depends: |lxqt lubuntu-desktop osspd-pulseaudio Reverse Depends: |osspd mkchromecast-pulseaudio Reverse Depends: lubuntu-desktop Reverse Depends: kubuntu-desktop Reverse Depends: kde-telepathy-call-ui Reverse Depends: indicator-sound Reverse Depends: unity-control-center gqrx-sdr Reverse Depends: gnome-core Reverse Depends: gnome cairo-dock-impulse-plug-in Reverse Depends: cairo-dock-plug-ins libcanberra-pulse Reverse Depends: cinnamon plasma-pa ubuntukylin-desktop ubuntu-mate-desktop ubuntu-mate-core ubuntu-budgie-desktop plasma-pa gnome-core cinnamon chromium Reverse Depends: |x2gothinclient-minidesktop |gnome-core |cinnamon-desktop-environment chromium-dbg libsdl2-ttf-dev:i386 Reverse Depends: libsdl2-net-dev:i386 Reverse Depends: libsdl2-mixer-dev:i386 Reverse Depends: libsdl2-image-dev:i386 Reverse Depends: libsdl2-gfx-dev:i386 Reverse Depends: libsmpeg-dev:i386 Reverse Depends: libsdl-console-dev:i386 Reverse Depends: libsdl-ttf2.0-dev:i386 Reverse Depends: libsdl-ocaml-dev:i386 libsdl-sound1.2-dev:i386 Reverse Depends: libsdl-sge-dev:i386 Reverse Depends: libsdl-pango-dev:i386 Reverse Depends: libsdl-ocaml-dev:i386 Reverse Depends: libsdl-net1.2-dev:i386 Reverse Depends: libsdl-mixer1.2-dev:i386 Reverse Depends: libsdl-ocaml-dev:i386 libsdl-image1.2-dev:i386 Reverse Depends: libsdl-ocaml-dev:i386 libsdl-console-dev:i386 libsdl-gfx1.2-dev:i386 Reverse Depends: libsdl-ocaml-dev:i386 libstk-dev:i386 Reverse Depends: libstk0-dev:i386 librtmidi-dev:i386 Reverse Depends: libstk-dev:i386 wine32-development-preloader:i386 Reverse Depends: wine32-development-tools:i386 Reverse Depends: carla-bridge-win32:i386 Reverse Depends: wine32-preloader:i386 Reverse Depends: wine32-tools:i386 Reverse Depends: libsox-dev:i386 Reverse Depends: bochs-x:i386 Reverse Depends: bochs-wx:i386 Reverse Depends: |bochs:i386 bochs-term:i386 Reverse Depends: libfaudio-dev:i386 Reverse Depends: mjpegtools-gtk:i386 Reverse Depends: libmjpegtools-dev:i386 Reverse Depends: pixbros:i386 Reverse Depends: pixfrogger:i386 Reverse Depends: gstreamer1.0-plugins-bad-dbg:i386 Reverse Depends: speech-dispatcher-baratinoo:i386 Reverse Depends: speech-dispatcher Reverse Depends: speech-dispatcher-baratinoo speech-dispatcher:i386 orca speech-dispatcher:i386 speech-dispatcher-pico speech-dispatcher:i386 speech-dispatcher-pico speech-dispatcher:i386 speechd-up speech-dispatcher:i386 speech-dispatcher-kali speech-dispatcher:i386 speech-dispatcher-kali speech-dispatcher:i386 speech-dispatcher-flite speech-dispatcher:i386 speech-dispatcher-festival speech-dispatcher:i386 speech-dispatcher-espeak speech-dispatcher:i386 speech-dispatcher-cicero speech-dispatcher:i386 speech-dispatcher-baratinoo speech-dispatcher:i386 orca speech-dispatcher:i386 speech-dispatcher-espeak-ng speech-dispatcher:i386 speech-dispatcher-pico:i386 Reverse Depends: speech-dispatcher-kali:i386 Reverse Depends: speech-dispatcher-flite:i386 Reverse Depends: speech-dispatcher-cicero:i386 Reverse Depends: speech-dispatcher-espeak-ng:i386 Reverse Depends: libespeak-ng-dev:i386 Reverse Depends: libespeak-ng-libespeak-dev:i386 paprefs Reverse Depends: ubuntustudio-controls Reverse Depends: ubuntustudio-installer kde-standard Reverse Depends: kde-full kdemultimedia Reverse Depends: kde-full ubuntu-gnome-desktop Reverse Depends: lxqt Reverse Depends: osspd Reverse Depends: ubuntustudio-video ubuntustudio-audio acfax |libsnack-oss unity-control-center Reverse Depends: ubuntu-unity-desktop |indicator-bluetooth gnome Reverse Depends: cairo-dock-plug-ins Reverse Depends: cairo-dock-dbus-plug-in-interface-mono cairo-dock-dbus-plug-in-interface-vala cairo-dock-dbus-plug-in-interface-ruby cairo-dock-dbus-plug-in-interface-python cairo-dock cinnamon Reverse Depends: cinnamon-dbg cinnamon-core cinnamon-dbg cinnamon-core mint-meta-cinnamon cinnamon-desktop-environment Reverse Depends: chromium-dbg Reverse Depends: libstk0-dev:i386 Reverse Depends: speech-dispatcher-baratinoo Reverse Depends: orca Reverse Depends: gnome gnome-orca orca-sops gnome-orca speech-dispatcher-pico Reverse Depends: speechd-up Reverse Depends: speech-dispatcher-kali Reverse Depends: speech-dispatcher-flite Reverse Depends: speech-dispatcher-festival Reverse Depends: speech-dispatcher-espeak Reverse Depends: speech-dispatcher-cicero Reverse Depends: speech-dispatcher-espeak-ng Reverse Depends: libespeak-ng-libespeak-dev:i386 Reverse Depends: ubuntustudio-installer Reverse Depends: ubuntustudio-default-settings ubuntustudio-menu ubuntustudio-default-settings ubuntustudio-menu kde-full Reverse Depends: ubuntustudio-video Reverse Depends: ubuntustudio-audio Reverse Depends: acfax Reverse Depends: libsnack-oss Reverse Depends: |tcl-snack indicator-bluetooth Reverse Depends: unity-control-center cairo-dock-dbus-plug-in-interface-mono Reverse Depends: cairo-dock-dbus-plug-in-interface-vala Reverse Depends: cairo-dock-dbus-plug-in-interface-ruby Reverse Depends: cairo-dock-dbus-plug-in-interface-python Reverse Depends: cairo-dock Reverse Depends: cinnamon-dbg Reverse Depends: cinnamon-core Reverse Depends: cinnamon-desktop-environment cinnamon-desktop-environment mint-meta-cinnamon Reverse Depends: cinnamon-desktop-environment gnome-orca Reverse Depends: orca-sops Reverse Depends: ubuntustudio-default-settings Reverse Depends: ubuntustudio-lightdm-theme ubuntustudio-lightdm-theme ubuntustudio-desktop ubuntustudio-desktop-core ubuntustudio-menu Reverse Depends: ubuntustudio-default-settings ubuntustudio-default-settings ubuntustudio-menu-add ubuntustudio-branding-common tcl-snack Reverse Depends: python3-tksnack wavesurfer transcriber tcl-snack-dev ubuntustudio-lightdm-theme Reverse Depends: ubuntustudio-desktop Reverse Depends: ubuntustudio-desktop-core Reverse Depends: ubuntustudio-desktop ubuntustudio-menu-add Reverse Depends: ubuntustudio-menu ubuntustudio-menu ubuntustudio-branding-common Reverse Depends: python3-tksnack Reverse Depends: wavesurfer Reverse Depends: transcriber Reverse Depends: tcl-snack-dev Reverse Depends: ~$ |
Fix Windows 10 boot when multiple booting Linux using GRUB on a protective MBR GPT Posted: 27 Dec 2021 10:50 PM PST My disk setup is currently as follows: Disk /dev/sda: 1953525168 sectors, 931.5 GiB Model: WDC WD1003FZEX-0 Sector size (logical/physical): 512/4096 bytes Disk identifier (GUID): 8F14ACC0-7807-4C09-BCB0-C340A635CF07 Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33 First usable sector is 34, last usable sector is 1953525134 Partitions will be aligned on 2048-sector boundaries Total free space is 3437 sectors (1.7 MiB) Number Start (sector) End (sector) Size Code Name 1 2048 6143 2.0 MiB EF02 BIOS boot partition 2 6144 524294143 250.0 GiB 8300 Linux filesystem 3 524294144 1048582143 250.0 GiB 8300 Linux filesystem 4 1048582144 1427140607 180.5 GiB 8300 Data 5 1427140608 1949331455 249.0 GiB 0700 Microsoft basic data 6 1949331456 1953523711 2.0 GiB 2700 Windows RE I've got to this by having a first installation of Windows 10 (now on 5) and a Gentoo based Linux (now on 2) on a MBR partitioning scheme. All went fine. In time I have experimented with Linux, changed to GPT with a protective MBR, then added a second partition that holds another Gentoo based Linux (now on 3). All went fine until Windows 10 got updated. I know that until the updates, Windows 10 booted as MBR. I presume that it detected the GPT during the upgrade and changed it's booting to UEFI. The system is BIOS, can't upgrade to UEFI, now Windows can't boot - went to a short boot attempt and restarts in a loop. I've used a Windows 10 ISO provided by Microsoft to install and fix the system, on a Ventoy live stick. That can't repair the boot, I think it can't handle GRUB and the protective MBR and stops. I've entered in its command line troubleshooting, attempted to fix the boot and force rebuilding it as BIOS by issuing: bcdboot C:\Windows /s C: /f BIOS No luck, it seems it attempts a secure boot now as it complains by displaying this at boot time: error: invalid signature The GRUB entries I've tried: menuentry "Windows 10 BIOS MBR" { savedefault insmod part_msdos insmod ntfs insmod chain chainloader (hd1,msdos1)+1 } then: menuentry "Windows 10 BIOS MBR" { savedefault insmod part_msdos insmod ntfs insmod chain drivemap hd0 hd1 chainloader (hd1,msdos1)+1 } I am not sure of how this should be, though. So, I know Windoes 10 worked due to its initial MBR boot setup. How would this be fixed after the upgrade and preserve the protective MBR? |
What do these Xcursor names mean? Posted: 28 Dec 2021 04:11 AM PST I have a plan to make my own Xcursor theme. I'm looking at existing themes and found some strange names such as 08e8e1c95fe2fc01f976f1e063a24ccd . I found a piece of code that contain this name. https://vimsky.com/examples/detail/cpp-ex---QHash-reserve-method.html According to the comment, it seems to be an MD5 hash of something hardcoded. But I failed to produce this hash. Which programs need these names? All the themes installed on my system are symbolic links to these names, but I can't find any documentation for this. And there are two cursors named size_bdiag for top-right/bottom-left window resizing and size_fdiag for top-left/bottom-right window resizing. But I failed to understand what these names mean. Maybe 'diag' means 'diagonal' but still I can't guess what 'b' and 'f' mean. I googled several times but I can't find any documentation. Do those have no meaning? Is the original author just playing with me? |
A question about krb5p and sys on nfs shares Posted: 27 Dec 2021 11:59 PM PST I made some shares with nfs This is the /etc/exports file(I know the no_root_squash is dangerous but is only temporary, for testing) /srv/nfs4 10.3.0.0/24(ro,no_subtree_check,fsid=0,sec=krb5p:sys) 192.168.0.0/24(ro,no_subtree_check,fsid=0,sec=krb5p:sys) /srv/nfs4/kernels 10.3.0.0/24(rw,no_subtree_check,async,no_root_squash,nohide,sec=krb5p:sys) 192.168.0.0/24(rw,no_subtree_check,async,no_root_squash,nohide,sec=krb5p:sys) If I mount the dir with sys option works all, posix acl are respected, and if I create a file as root, report permission as root(is this that I want). mount -vvv -o sec=sys myserver:/kernels /mnt/ mount.nfs: timeout set for Tue Dec 28 07:18:41 2021 mount.nfs: trying text-based options 'sec=sys,proto=tcp,retrans=2,retry=1,acl,ac,rsize=32768,wsize=32768,bsize=32768,port=2049,vers=4,addr=10.3.0.1,clientaddr=10.3.0.1' cd /mnt mkdir 44944 root@server:/mnt$ ls -lhd * drwxr-xr-x 2 nobody nogroup 4,0K 28 dic 06.52 33/ drwxr-xr-x 2 root root 4,0K 28 dic 07.10 449/ drwxr-xr-x 2 nobody nogroup 4,0K 28 dic 07.17 4494/ drwxr-xr-x 2 root root 4,0K 28 dic 07.18 44944/ The problem is if I mount the dir with sec=krb5p, it force the mount as nobody:nogroup(sic!), i have tried giving the dir the 777 permission then enter as a kerberized user(i did kinit first) and I create a dir..it report the permission as nobody:nogroup. mount -vvv -o sec=krb5p myserver:/kernels /mnt/ mount.nfs: timeout set for Tue Dec 28 07:21:45 2021 mount.nfs: trying text-based options 'sec=krb5p,proto=tcp,retrans=2,retry=1,acl,ac,rsize=32768,wsize=32768,bsize=32768,port=2049,vers=4,addr=10.3.0.1,clientaddr=10.3.0.1' mkdir 449444 root@myserver:/mnt$ ls -lhd * drwxr-xr-x 2 nobody nogroup 4,0K 28 dic 06.52 33/ drwxr-xr-x 2 root root 4,0K 28 dic 07.10 449/ drwxr-xr-x 2 nobody nogroup 4,0K 28 dic 07.17 4494/ drwxr-xr-x 2 root root 4,0K 28 dic 07.18 44944/ drwxr-xr-x 2 nobody nogroup 4,0K 28 dic 07.21 449444/ As you can se the dir is created as nobody nogroup(using chmod 777 otherwise give correctly permission denied) What I have to check? The server and client are both Debian 11 |
Why do I have to statically compile a c program if I want to use it as the init program for the kernel? Posted: 28 Dec 2021 02:27 AM PST I'm learning about how Linux works and for that I'm watching Tutorial: Building the Simplest Possible Linux System by Rob Landley. He basically goes through some steps to build a minimal system and around 20:00 he starts explaining about building a "hello world binary" that he will later use as the init program for the kernel to run as the very first program. My question is, why do I have to statically build the hello.c application I want to use as the init application for the kernel to run after booting (as mentioned at 21:39 and seen at 23:05)? |
Is there a way to disable reverse lookups (hostname resolving) in xinetd? Posted: 28 Dec 2021 12:23 AM PST I suspect that resolving the IP address to it's hostname on each incoming connections makes my xinetd connections slow. Is there an option somewhere which would allow me to disable reverse lookups completely on xinetd? Thank you. |
/sys/kernel/debug/tracing/trace overwrites itself after a few seconds. How can I collect it without duplicates? Posted: 28 Dec 2021 12:50 AM PST When setting up the function_graph tracer in Linux (Ubuntu 18), the trace that is stored at /sys/kernel/debug/tracing/trace only stores a couple of seconds before overwriting itself. As the period might be variable, I cannot be saving it with for example cat /sys/kernel/debug/tracing/trace >> total_trace Because it might produce duplicates which are not acceptable during postprocessing. Even worst, it might miss some information. Is there a way I can open the file and just pipe all the new incoming info to another one? Thanks |
Alias to create a file with new folder named after ISO date and open the file in vim Posted: 28 Dec 2021 04:11 AM PST I would like to create an alias in .bashrc so that I can create a Markdown or text file in a folder that is named as ISO date with GMT time and then open that file in an editor. This is an output I would expect (sample): ./20211226220131/readme.md and have readme.md opened in vim . |
Where can I install systemd service that executes zsh script as early as possible Posted: 28 Dec 2021 03:42 AM PST I am wondering where can I install this service that executes zsh script to run my script as soon as possible. Script uses serial port at /dev/ttyS5 and gpio pins. Is there a earlier target than multi-user.target that can still run zsh script? [Unit] Description=Acer projector control After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/zsh /usr/local/bin/ff.zsh -a acer ExecStop=/usr/bin/zsh /usr/local/bin/ff.zsh -rb acer RemainAfterExit=yes Restart=on-failure RestartSec=10s TimeoutSec=5min [Install] WantedBy=multi-user.target UPDATE It does not appear to perform ExecStop [Unit] Description=Acer projector control DefaultDependencies=no After=local-fs.target After=systemd-modules-load.service Before=sysinit.target ConditionPathExists=/dev/ttyS5 [Service] Type=simple ExecStart=/usr/bin/zsh /usr/local/bin/ff.zsh -a acer ExecStop=/usr/bin/zsh /usr/local/bin/ff.zsh -rb acer RemainAfterExit=yes Restart=on-failure RestartSec=10s TimeoutSec=5min [Install] WantedBy=sysinit.target |
Blacking out regexp in pdf files from command line Posted: 28 Dec 2021 01:56 AM PST Is there any command line tool (or toolchain) for linux where I can automatically blackout a given regexp in a pdf, or alternatively (maybe better) introduce noise in the match to make the parts matching the regexp unreadable in the pdf. Currently I use gimp and do it manually, but this is very annoying and I am looking for a way to automate it (and one step further use it in a script). |
How do I enable gtk theming in wine when the checkbox is greyed out Posted: 28 Dec 2021 04:14 AM PST I have installed wine-staging 6.1 from the aur on arch. When I open winecfg and go to the "staging" tab, the checkbox to enable gtk theming is grayed out Is there a way to fix this like a patch or something? btw I'm not actually new to linux I just can't bother to make an account on this site |
Linux Mint jdb2 continuous writing to disk Posted: 27 Dec 2021 11:03 PM PST Captured disk activity from last 2 days using below command but unable to find out why it is writing so much (426MB) on root partition iotop -oPa -d 2 Total DISK READ : 0.00 B/s | Total DISK WRITE : 0.00 B/s Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/s PID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND 239 be/3 root 0.00 B 426.21 M 0.00 % 0.17 % [jbd2/sdd2-8] 2678 be/4 root 961.21 M 107.91 M 0.00 % 0.03 % <emby mono-sgen> 2198 be/4 root 0.00 B 0.00 B 0.00 % 0.02 % udisksd --no-debug 6402 be/4 root 16.00 K 0.00 B 0.00 % 0.07 % [kworker/u4:1] 13162 be/4 root 16.00 K 0.00 B 0.00 % 0.09 % [kworker/u4:2] I have below disk /dev/sdd2 on / type ext4 (rw,noatime,errors=remount-ro) /dev/sda1 on /media/<user>/2TB_EXT4 type ext4 (rw,nosuid,nodev,noatime,uhelper=udisks2) /dev/sdb1 on /media/<user>/2TB_EXT4_2 type ext4 (rw,nosuid,nodev,noatime,uhelper=udisks2) |
LVM: How to recover LVM thin pool / volume after failed repair? Posted: 28 Dec 2021 02:09 AM PST I would like some advise with recovering from broken LVM thin pool / volumes. The step that cause my broken LVM thin is as follows: - My thin pool metadata was full (99.4%), so the pool freeze.
- I tried to extend the pool and its metadata using the following 2 commands:
lvextend -L+50G vg/pool lvextend --poolmetadata +50m vg/pool - At this point lvs show metadata is still stuck at 99.4%
- I try repairing metadata with lvconvert --repair vg/pool
- Now my pool seems to be empty, lvs show 0% data for the pool and lv too.
- I try switch back to metadata before repair with:
lvconvert --thinpool vg/pool --poolmetadata pool-meta0 and still no data. Is there anyway I could recover from this? I have quite a few lv in this thin pool that I would like to save. Thank you very much! |
Tomcat 8 503 Error with Apache2 mod_jk as Reverse Proxy Posted: 28 Dec 2021 12:06 AM PST I'm following this guide to setup Tomcat 8 on Ubuntu Server 16.04 using Apache2's mod_jk module as a reverse proxy: https://www.digitalocean.com/community/tutorials/how-to-encrypt-tomcat-8-connections-with-apache-or-nginx-on-ubuntu-16-04 Everything works until the last step, which is to change the HTTP and AJP Connectors in server.xml to only listen on localhost. Here's the change I made to the AJP Connector: <Connector port="8009" address="127.0.0.1" protocol="AJP/1.3" redirectPort="8443" /> Before this change, typing https://myhostname takes me to the Tomcat administration page; after it, I get "503 Service Unavailable". I've temporarily turned off my firewall and removed AppArmor. Here's the relevant portion of mod_jk.log: jk_open_socket::jk_connect.c (817): connect to ::1:8009 failed (errno=111) ajp_connect_to_endpoint::jk_ajp_common.c (1068): (ajp13_worker) Failed opening socket to (::1:8009) (errno=111) ajp_send_request::jk_ajp_common.c (1728): (ajp13_worker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) What could be causing this, and how can I resolve it? |
xrandr three monitors Posted: 28 Dec 2021 01:03 AM PST Im using Fedora 24 with 2 additional non HDPI dell monitors with my HDPI laptop (using thunderbolt 3 and daisy chaining the monitors with DP1.2) I am trying to get the 3 monitors to display nicely with sizing. So far I've managed to get the laptop and 2nd monitor working correctly with the following command: xrandr --output eDP-1 --auto --output DP-1-8 --auto --panning 3840x2400+3840+0 --scale 2x2 --right-of eDP-1 however I can't seem to get the 3rd monitor to display anything useful, attempting with this command xrandr --output eDP-1 --auto --output DP-1-8 --auto --panning 3840x2400+3840+0 --scale 2x2 --right-of eDP-1 --output DP-1-1-8 --auto --panning 3840x2400+3840+0 --right-of DP-1-8 has resulted in the 3rd monitor tracking part of the second screen very zoomed in. I think I myust have the scale/panning off. Can anyone help me get this set up corerctly? see display setup below: $ xrandr Screen 0: minimum 320 x 200, current 7680 x 2400, maximum 8192 x 8192 eDP-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 346mm x 194mm 3840x2160 60.00*+ 2048x1536 60.00 1920x1440 60.00 1856x1392 60.01 1792x1344 60.01 1600x1200 60.00 1400x1050 59.98 1280x1024 60.02 1280x960 60.00 1024x768 60.04 60.00 960x720 60.00 928x696 60.05 896x672 60.01 800x600 60.00 60.32 56.25 700x525 59.98 640x512 60.02 640x480 60.00 59.94 512x384 60.00 400x300 60.32 56.34 320x240 60.05 DP-1 disconnected (normal left inverted right x axis y axis) HDMI-1 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) HDMI-2 disconnected (normal left inverted right x axis y axis) DP-1-8 connected 3840x2400+3840+0 (normal left inverted right x axis y axis) 518mm x 324mm panning 3840x2400+3840+0 1920x1200 59.95*+ 1920x1080 60.00 50.00 59.94 30.00 25.00 24.00 29.97 23.98 1600x1200 60.00 1280x1024 75.02 60.02 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.03 60.00 800x600 75.00 60.32 720x576 50.00 720x480 60.00 59.94 640x480 75.00 60.00 59.94 720x400 70.08 DP-1-1-8 connected 3840x2400+3840+0 (normal left inverted right x axis y axis) 518mm x 324mm panning 3840x2400+3840+0 1920x1200 59.95*+ 1920x1080 60.00 50.00 59.94 30.00 25.00 24.00 29.97 23.98 1600x1200 60.00 1280x1024 75.02 60.02 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.03 60.00 800x600 75.00 60.32 720x576 50.00 720x480 60.00 59.94 640x480 75.00 60.00 59.94 720x400 70.08 DP-1-1-1 disconnected (normal left inverted right x axis y axis) DP-1-1 disconnected (normal left inverted right x axis y axis) |
change LS_COLORS behaviour Posted: 28 Dec 2021 03:00 AM PST I am trying to modify LS_COLORS behavior. Presently it (say for sh or py ), changes color depending on if it is executable or not, as shown here But, I want all my script, executable or not, have same color and computer generated executables, e.g. a.out etc have the color defined by ex in LS_COLOR This is the output of dircolors -p : # Configuration file for dircolors, a utility to help you set the # LS_COLORS environment variable used by GNU ls with the --color option. # Copyright (C) 1996-2014 Free Software Foundation, Inc. # Copying and distribution of this file, with or without modification, # are permitted provided the copyright notice and this notice are preserved. # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the # slackware version of dircolors) are recognized but ignored. # Below, there should be one TERM entry for each termtype that is colorizable TERM Eterm TERM ansi TERM color-xterm TERM con132x25 TERM con132x30 TERM con132x43 TERM con132x60 TERM con80x25 TERM con80x28 TERM con80x30 TERM con80x43 TERM con80x50 TERM con80x60 TERM cons25 TERM console TERM cygwin TERM dtterm TERM eterm-color TERM gnome TERM gnome-256color TERM hurd TERM jfbterm TERM konsole TERM kterm TERM linux TERM linux-c TERM mach-color TERM mach-gnu-color TERM mlterm TERM putty TERM putty-256color TERM rxvt TERM rxvt-256color TERM rxvt-cygwin TERM rxvt-cygwin-native TERM rxvt-unicode TERM rxvt-unicode-256color TERM rxvt-unicode256 TERM screen TERM screen-256color TERM screen-256color-bce TERM screen-bce TERM screen-w TERM screen.Eterm TERM screen.rxvt TERM screen.linux TERM st TERM st-256color TERM terminator TERM vt100 TERM xterm TERM xterm-16color TERM xterm-256color TERM xterm-88color TERM xterm-color TERM xterm-debian # Below are the color init strings for the basic file types. A color init # string consists of one or more of the following numeric codes: # Attribute codes: # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed # Text color codes: # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white # Background color codes: # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white #NORMAL 00 # no color code at all #FILE 00 # regular file: use no color at all RESET 0 # reset to "normal" color DIR 01;34 # directory LINK 01;36 # symbolic link. (If you set this to 'target' instead of a # numerical value, the color is as for the file pointed to.) MULTIHARDLINK 00 # regular file with more than one link FIFO 40;33 # pipe SOCK 01;35 # socket DOOR 01;35 # door BLK 40;33;01 # block device driver CHR 40;33;01 # character device driver ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file SETUID 37;41 # file that is setuid (u+s) SETGID 30;43 # file that is setgid (g+s) CAPABILITY 30;41 # file with capability STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable # This is for files with execute permission: EXEC 01;32 # List any file extensions like '.gz' or '.tar' that you would like ls # to colorize below. Put the extension, a space, and the color init string. # (and any comments you want to add after a '#') # If you use DOS-style suffixes, you may want to uncomment the following: #.cmd 01;32 # executables (bright green) #.exe 01;32 #.com 01;32 #.btm 01;32 #.bat 01;32 # Or if you want to colorize scripts even if they do not have the # executable bit actually set. #.sh 01;32 #.csh 01;32 # archives or compressed (bright red) .tar 01;31 .tgz 01;31 .arc 01;31 .arj 01;31 .taz 01;31 .lha 01;31 .lz4 01;31 .lzh 01;31 .lzma 01;31 .tlz 01;31 .txz 01;31 .tzo 01;31 .t7z 01;31 .zip 01;31 .z 01;31 .Z 01;31 .dz 01;31 .gz 01;31 .lrz 01;31 .lz 01;31 .lzo 01;31 .xz 01;31 .bz2 01;31 .bz 01;31 .tbz 01;31 .tbz2 01;31 .tz 01;31 .deb 01;31 .rpm 01;31 .jar 01;31 .war 01;31 .ear 01;31 .sar 01;31 .rar 01;31 .alz 01;31 .ace 01;31 .zoo 01;31 .cpio 01;31 .7z 01;31 .rz 01;31 .cab 01;31 # image formats .jpg 01;35 .jpeg 01;35 .gif 01;35 .bmp 01;35 .pbm 01;35 .pgm 01;35 .ppm 01;35 .tga 01;35 .xbm 01;35 .xpm 01;35 .tif 01;35 .tiff 01;35 .png 01;35 .svg 01;35 .svgz 01;35 .mng 01;35 .pcx 01;35 .mov 01;35 .mpg 01;35 .mpeg 01;35 .m2v 01;35 .mkv 01;35 .webm 01;35 .ogm 01;35 .mp4 01;35 .m4v 01;35 .mp4v 01;35 .vob 01;35 .qt 01;35 .nuv 01;35 .wmv 01;35 .asf 01;35 .rm 01;35 .rmvb 01;35 .flc 01;35 .avi 01;35 .fli 01;35 .flv 01;35 .gl 01;35 .dl 01;35 .xcf 01;35 .xwd 01;35 .yuv 01;35 .cgm 01;35 .emf 01;35 # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions .axv 01;35 .anx 01;35 .ogv 01;35 .ogx 01;35 # audio formats .aac 00;36 .au 00;36 .flac 00;36 .m4a 00;36 .mid 00;36 .midi 00;36 .mka 00;36 .mp3 00;36 .mpc 00;36 .ogg 00;36 .ra 00;36 .wav 00;36 # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions .axa 00;36 .oga 00;36 .spx 00;36 .xspf 00;36 I am also setting LS_COLORS in my ~/.bashrc : LS_COLORS='no=1:di=1;38;2;66;133;244:ln=09;32:pi=40;32:so=01;35:bd=40;33;01:cd=34;33;01:or=34;33;01:ex=01;38;2;149;138;221:*.in=01;34:*.sh=1;38;2;0;215;95' As you can see in the image, the ex color is overriding the sh filetype's color when the rename.sh is set as executable. |
How do you make a toggle key using Autokey? Posted: 28 Dec 2021 02:02 AM PST I want to use Autokey to toggle the e key on and off in a program called "xyz". So if I press e, the program thinks I'm holding down e. I press e again, it thinks I released it. How do you do this please? Or is there some other program that can do this? bonus question: how do you do this with any Ubuntu program, such as fvwm2, xorg, xmodmap, xkb, xrdb, any way at all? |
How can I replace root / filesystem with another filesystem? Posted: 28 Dec 2021 04:00 AM PST When the Linux kernel starts up, it uses initrd as the root / filesystem, then replaces that with a filesystem partition in fstab. Based on a test in an early init script, I want to replace that root / filesystem with another filesystem partition. How to do that? |
Sorting down processes by memory usage Posted: 28 Dec 2021 02:05 AM PST I am able to see the list of all the processes and the memory via ps aux and going through the VSZ and RSS Is there a way to sort down the output of this command by the descending order on RSS value? |
Make fetchmail leave mail on server for a specified period of time? Posted: 28 Dec 2021 02:07 AM PST I know that fetchmail can be configured to leave mail on the server (usually done with the keep uidl keyword combination), but is there a way to configure it to leave mail on the server for a specified minimum period of time and delete them thereafter? For example, suppose I want messages to remain on the server for 48 hours after they have been downloaded, and then be deleted on the next fetchmail invocation against that server. I am mostly interested in solutions that work with POP3. |
How can I use bash's if test and find commands together? Posted: 28 Dec 2021 02:14 AM PST I have a directory with crash logs, and I'd like to use a conditional statement in a bash script based on a find command. The log files are stored in this format: /var/log/crashes/app-2012-08-28.log /var/log/crashes/otherapp-2012-08-28.log I want the if statement to only return true if there is a crash log for a specific app which has been modified in the last 5 minutes. The find command that I would use is: find /var/log/crashes -name app-\*\.log -mmin -5 I'm not sure how to incorporate that into an if statement properly. I think this might work: if [ test `find /var/log/crashes -name app-\*\.log -mmin -5` ] then service myapp restart fi There are a few areas where I'm unclear: - I've looked at the if flags but I'm not sure which one, if any, that I should use.
- Do I need the
test directive or should I just process against the results of the find command directly, or maybe use find... | wc -l to get a line count instead? - Not 100% necessary to answer this question, but
test is for testing against return codes that commands return? And they are sort of invisible - outside of stdout / stderr ? I read the man page but I'm still pretty unclear about when to use test and how to debug it. |
No comments:
Post a Comment