X BadRequest error when running a SDL2 program over SSH, but not with valgrind? Posted: 18 Mar 2022 04:40 AM PDT I'm relatively new to SDL2, but I made a quick and dirty program for something. It works fine on my laptop, but when I connect to my server, and try to test it using X tunneling over SSH, I get the outline of a window for a split second, then I get this error: X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 130 (MIT-SHM) Minor opcode of failed request: 1 (X_ShmAttach) Serial number of failed request: 202 Current serial number in output stream: 203 Other X programs work fine though? Even other SDL2 programs, too. Looking online, I get results about it being OpenGL problems, but my program doesn't use OpenGL at all. Or, at least, it shouldn't, as my other SDL2 programs work fine, and this doesn't really use anything too complicated, just surfaces and bitplanes. Anyway, I tried the solutions and alas, nothing worked... Interestingly, when I run it through valgrind, I get this, and not the above error: ==29836== Warning: invalid file descriptor 1024 in syscall close() ==29836== Warning: invalid file descriptor 1025 in syscall close() ==29836== Warning: invalid file descriptor 1026 in syscall close() ==29836== Warning: invalid file descriptor 1027 in syscall close() ==29836== Use --log-fd=<number> to select an alternative log fd. ==29836== Warning: invalid file descriptor 1028 in syscall close() ==29836== Warning: invalid file descriptor 1029 in syscall close() followed by a heap summary, as if the program stopped, but it continues running... and after a while, the program begins to run? And when I close out of it, it shows another heap summary... Here's the full log, in case it's helpful at all. kit@KitServ:~/git/video-compress$ ./a.out a.vid X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 130 (MIT-SHM) Minor opcode of failed request: 1 (X_ShmAttach) Serial number of failed request: 202 Current serial number in output stream: 203 kit@KitServ:~/git/video-compress$ valgrind ./a.out a.vid ==29814== Memcheck, a memory error detector ==29814== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==29814== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info ==29814== Command: ./a.out a.vid ==29814== ==29836== Warning: invalid file descriptor 1024 in syscall close() ==29836== Warning: invalid file descriptor 1025 in syscall close() ==29836== Warning: invalid file descriptor 1026 in syscall close() ==29836== Warning: invalid file descriptor 1027 in syscall close() ==29836== Use --log-fd=<number> to select an alternative log fd. ==29836== Warning: invalid file descriptor 1028 in syscall close() ==29836== Warning: invalid file descriptor 1029 in syscall close() ==29836== ==29836== HEAP SUMMARY: ==29836== in use at exit: 12,828,426 bytes in 56,137 blocks ==29836== total heap usage: 119,755 allocs, 63,618 frees, 53,804,810 bytes allocated ==29836== ==29836== LEAK SUMMARY: ==29836== definitely lost: 0 bytes in 0 blocks ==29836== indirectly lost: 0 bytes in 0 blocks ==29836== possibly lost: 728 bytes in 18 blocks ==29836== still reachable: 12,827,698 bytes in 56,119 blocks ==29836== of which reachable via heuristic: ==29836== newarray : 832 bytes in 16 blocks ==29836== suppressed: 0 bytes in 0 blocks ==29836== Rerun with --leak-check=full to see details of leaked memory ==29836== ==29836== For lists of detected and suppressed errors, rerun with: -s ==29836== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ^C==29814== ==29814== HEAP SUMMARY: ==29814== in use at exit: 10,225,041 bytes in 7,548 blocks ==29814== total heap usage: 156,304 allocs, 148,756 frees, 124,528,896 bytes allocated ==29814== ==29814== LEAK SUMMARY: ==29814== definitely lost: 1,168 bytes in 15 blocks ==29814== indirectly lost: 171,414 bytes in 776 blocks ==29814== possibly lost: 218,440 bytes in 503 blocks ==29814== still reachable: 9,834,019 bytes in 6,254 blocks ==29814== of which reachable via heuristic: ==29814== newarray : 832 bytes in 16 blocks ==29814== suppressed: 0 bytes in 0 blocks ==29814== Rerun with --leak-check=full to see details of leaked memory ==29814== ==29814== For lists of detected and suppressed errors, rerun with: -s ==29814== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) kit@KitServ:~/git/video-compress$ In case it's helpful at all, here's the program in question. |
wget/curl command not getting the contents of a file from a link Posted: 18 Mar 2022 03:57 AM PDT I have a .bin file that I would like to download, it's around 10GB in size. The file can be found here (any of the 4 download links): http://mazajak.inf.ed.ac.uk:8000/#embedding-page . When I download the file using wget or curl on a private server that I have, I get a 10GB file that is not a .bin file (does not have any extension), but if I click download on my local computer from the website, it clearly shows that it's downloading a .bin file. Any idea where I'm going wrong here? What I'm doing is right-clicking on the "download" hyperlink and pasting it infront of the wget/curl command. these are example commands I'm running: wget http://mazajak.inf.ed.ac.uk:8000/get_sg_250 curl -o http://mazajak.inf.ed.ac.uk:8000/get_sg_250 |
ModuleNotFoundError Posted: 18 Mar 2022 03:51 AM PDT The problem is that when the script is running through cron, for some reason the module is not found, but if you run it directly through Python, then everything is fine Example: Cron: */5 * * * * python /home/shhegolev/scripts/code5M_simple.py >> /home/shhegolev/scripts/logs.log 2>> /home/shhegolev/scripts/errors.log cat errors.log output: Traceback (most recent call last): File "/home/shhegolev/scripts/code5M_simple.py", line 1, in <module> import numpy ModuleNotFoundError: No module named 'numpy' but if i do it directly: ~/scripts$ python code5M_simple.py or copy command from cron : ~/scripts$ python /home/shhegolev/scripts/code5M_simple.py >> /home/shhegolev/scripts/logs.log 2>> /home/shhegolev/scripts/errors.log All fine! pip install numpy says that: Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: numpy in /home/shhegolev/.local/lib/python3.7/site-packages (1.21.5) I can't figure out what's the problem code: head -10 code5M_simple.py import numpy import talib import csv import time from numpy import genfromtxt import smtplib import requests from binance import Client import random import datetime |
Clear socket buffer of CAN adapter Posted: 18 Mar 2022 03:36 AM PDT I have a USB/CAN adapter, from lsusb : OpenMoko, Inc. Geschwister Schneider CAN adapter it provides a socket interface, from ip addr : 5: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP group default qlen 10 link/can On the bus there are other devices that sends data continuously. If I reboot my PC, I cannot send/receive data anymore, because I get the following error: No buffer space available I guess that while the device is "disconnected" from the PC (because it's rebooting, but still powered) the internal buffers fill up. Is there a command I can issue to clear the buffers? |
Changing ownership of "remove" device file using udev rules for specific product Posted: 18 Mar 2022 04:12 AM PDT I want to change the ownership of the /sys/bus/usb/devices/1-2.1/remove file using udev rule. I know the VID, PID of the usb device. When the device is connected the ownership of /sys/bus/usb/devices/1-2.1/remove should change to lets say to user "xyz". Also note that in 1-2.1 (format: Bus_no - node_no . device_no), node_no (i.e. 2) can change to any valid value. I running following rule in udev but it is failing. SUBSYSTEM=="usb", ACTION=="add", ATTRA{idVendor}=="VID", ATTRS{idProduct}=="PID", RUN+="/bin/chown netadmin $(grep PID /sys/bus/usb/devices/*/idProduct | awk '{print substr($0,0,27)}' | sed 's/$/remove/')" |
"Temporary failure in name resolution"/ DNS Error in Kali (VMWare) / Slow Kali Download Posted: 18 Mar 2022 03:28 AM PDT I was doing some pinging on Kali (on VMWare) and realised that I could only ping IP addresses. Pinging 8.8.8.8 WORKS BUT pinging google.com either takes too long or gives an error: "Temporary failure in name resolution" Amending the /etc/resolv.conf file by adding more DNS servers (nameservers) and changing permissions to 644 does not work. Furthermore, it's not really permanent because a restart would change the configuration. Downloading speed on Kali has been really slow too. What's the fix? |
How to add permissions such as read, write and modify for users in a group Posted: 18 Mar 2022 03:43 AM PDT I created a file, f1. I have also created 2 groups for the 3 users. I need to give permissions to 3 of the users, for example, for Jack and John, they have to be able to read and modify the file, but Xander should not be able to read and modify it. Any help would be appreciated. currently, I have done using these commands, but am unsure how to progress for the permissions towards the Jackfile12 for the users.(same command put together to save space): cisco@ubuntu:~$ sudo useradd -m (username for 3 users) cisco@ubuntu:~$ sudo groupadd (Family, Friend) cisco@ubuntu:~$ sudo usermod -a -G (username for 3 users) cisco@ubuntu:~$ sudo passwd (username for 3 users) cisco@ubuntu:~$ su - Jack cisco@ubuntu:~$ touch Jackfile12 cisco@ubuntu:~$ ls -l Jackfile12 |
Binding Alt+Shift not working in X, i3wm Posted: 18 Mar 2022 02:54 AM PDT I have disabled keyboard layouts and "grp:alt_shift_toggle" and tried to bind a command to various key combinations similar to Alt +Shift in both xbindkeys and the i3 config file, but it won't work. No errors reported, but it just doesn't run the command. I tried restarting the X server, the whole PC and it still isn't working. If I add a new key after alt and shift , it works. If I turn on "grp:alt_shift_toggle", it works again to change the layouts. But I just can't bind my own command to it. xbindkeys does recognize it with xbindkeys --multikey . Here are my config files: ~/.xinitrc: xset s noblank xset s noexpose xset s 0 0 xset +dpms xset dpms 0 180 0 numlockx & xset r rate 250 30 if ! pgrep -f xidlehook; then xidlehook --timer 600 'systemctl suspend -i' '' & fi picom --experimental-backends & corectrl & nitrogen --restore exec i3 In my ~/.config/i3/config : bindsym Mod1+$shift ... // doesn't work bindsym Mod1+$shift+u ... // works In my ~/.xbindkeysrc : Alt+Shift // error in binding Alt+Shift + u // works Alt+Shift + Shift_L // no error, not working |
How can I make the vimdiff command use the same Vim version as the vi and vim commands? Posted: 18 Mar 2022 04:14 AM PDT I've never worried about vimdiff on my own computer, where I have archlinux installed, so everything is up-to-date, generally speaking; I generally just used it, and I'm fine with it. After all, :version gives the same output whether I launch vi , or vim , or vimdiff . On my work computer (Debian 10), however, vimdiff opens an older version of Vim than vi or vim . I guess this has to do possibly with how I installed Vim and/or with /etc/alternatives or something. It's been a long time I played around with such stuff though (without truly understanding it, likely), so I don't remember much. |
chroot with mounts in unprivileged container Posted: 18 Mar 2022 02:41 AM PDT How can I create a mount inside a Docker container as root but without --privileged mode? The purpose is getting a chroot with /proc , and /dev mounted inside a container. I can do so with chroot and mount commands given a container in --privileged mode, but I am looking for workarounds that do not require it. This is for build purposes and I can accept some performance hit or other limitations. I am looking along the lines of LD_PRELOAD , proot , pseudo , fakeroot , but had no luck so far. Is there any way? |
how to print 2 consecutive lines separated by 1 blank line into one line separated by , Posted: 18 Mar 2022 04:27 AM PDT How to turn this text: St1 number1 1234 St2 number2 456 In to this one: st1,number1,1234 st2,number2,1234 |
nginx: disable access to specific url (file) for all domains Posted: 18 Mar 2022 02:40 AM PDT I want to block access for a specific php file for all domains. I know that I can use location = /xmlrpc.php { deny all; access_log off; log_not_found off; return 444; } in the server block, for example, however I want to set that for all domains, like a pre-filter. The other possible idea is add a include in every domain config and point to the same file to load this rule. But I think this is possible in nginx, as is possible in Apache. |
Conflicting requests after update to CentOS 9 Stream from 8 Posted: 18 Mar 2022 04:30 AM PDT I have a CentOS 8 system that I have decided to upgrade to CentOS 9 and this is not offically supported. I did however find some directions on doing this a few pages into a Google search on Github. These directions have mostly worked and I have booted into the new system with the new kernel. There however remains an issue that shows every time that I use the package manager dnf to do anything. These are the errors I am getting now when running dnf upgrade ... # dnf upgrade error: /usr/lib/rpm/macros.d/macros.php74-config: line 3: Macro %undefine is a built-in (%define) error: /usr/lib/rpm/macros.d/macros.php74-config: line 3: Macro %undefine is a built-in (%define) Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Last metadata expiration check: 0:27:27 ago on Thu 17 Mar 2022 13:25:04. Modular dependency problems: Problem 1: conflicting requests - nothing provides module(platform:el8) needed by module composer:2:20220317110346:00000000.x86_64 Problem 2: conflicting requests - nothing provides module(platform:el8) needed by module container-tools:rhel8:8060020211019153644:2e213529.x86_64 Problem 3: conflicting requests - nothing provides module(platform:el8) needed by module httpd:2.4:8050020211112043353:b4937e53.x86_64 Problem 4: conflicting requests - nothing provides module(platform:el8) needed by module mariadb:10.3:8030020210419150013:30b713e6.x86_64 Problem 5: conflicting requests - nothing provides module(platform:el8) needed by module nginx:1.14:8000020211221191913:55190bc5.x86_64 Problem 6: conflicting requests - nothing provides module(platform:el8) needed by module perl:5.26:8000020190628020724:55190bc5.x86_64 Problem 7: conflicting requests - nothing provides module(platform:el8) needed by module perl-DBD-MySQL:4.046:8030020200716171139:3a70019f.x86_64 Problem 8: conflicting requests - nothing provides module(platform:el8) needed by module perl-DBI:1.641:8030020200716150652:1e4bbb35.x86_64 Problem 9: conflicting requests - nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8040020200924212038:1aedcbfe.x86_64 Problem 10: conflicting requests - nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8040020211102170116:bf75fe78.x86_64 Problem 11: conflicting requests - nothing provides module(platform:el8) needed by module php:remi-7.4:20220317110346:00000000.x86_64 Problem 12: conflicting requests - nothing provides module(platform:el8) needed by module python36:3.6:8050020210825152031:982725ab.x86_64 Problem 13: conflicting requests - nothing provides module(platform:el8) needed by module ruby:2.5:8050020210527144607:b4937e53.x86_64 Problem 14: conflicting requests - nothing provides module(platform:el8) needed by module subversion:1.10:8030020210222042748:9ce6d490.x86_64 Problem 15: conflicting requests - nothing provides module(platform:el8) needed by module varnish:6:8050020211109225449:b4937e53.x86_64 Problem 16: conflicting requests - nothing provides module(platform:el8) needed by module virt:rhel:8060020220208213251:d63f516d.x86_64 Dependencies resolved. Nothing to do. Complete! I tried removing all the packages mentioned above and installing them again but it did not change anything here. I am not really sure what to do to proceed. Edit: I removed the package rhc and updated the above output to only show the conflicting requests issue I am having. Below is the module list from dnf modules list ... composer 2 [e] common Dependency Manager for PHP container-tools rhel8 [e] common Most recent (rolling) versions of podman, buildah, skopeo, runc, conmon, runc, conmon, CRIU, Udica, etc as well as dependencies such as container-selinux bu ilt and tested together, and updated as frequently as every 12 weeks. httpd 2.4 [e] common, Apache HTTP Server devel, m inimal javapackages-runtime 201801 [e] common Basic runtime utilities to support Java applications mariadb 10.3 [e] client, MariaDB Module galera, server nginx 1.14 [e] common nginx webserver perl 5.26 [e] common, Practical Extraction and Report Language minimal perl-DBD-MySQL 4.046 [e] common A MySQL interface for Perl perl-DBI 1.641 [e] common A database access API for Perl perl-IO-Socket-SSL 2.066 [e] common Perl library for transparent TLS perl-libwww-perl 6.34 [e] common A Perl interface to the World-Wide Web php remi-7.4 [e] common, PHP scripting language devel, m inimal python36 3.6 [e] build, c Python programming language, version 3.6 ommon ruby 2.5 [e] common An interpreter of object-oriented scripting language subversion 1.10 [e] common, Apache Subversion server varnish 6 [e] common Varnish HTTP cache virt rhel [e] common Virtualization module How do I remove every module in this list? This should fix things as far as these errors go and then I just need to install the things I want the CentOS 9 way. |
How can i access the files in the nand flash memory through linux terminal? Posted: 18 Mar 2022 04:40 AM PDT I have files in the nand flash memory of my Gumstix Overo that i want to copy to a SD card, but i can't access them through the overo terminal, so i wanted to copy them through the linux terminal but i don't know how. Can someone help me? I have done the mount command and it gives me this: debian@OCR-1:~$ mount rootfs on / type rootfs (rw) /proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) mdev on /dev type tmpfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,mode=600) none on /debug type debugfs (rw,relatime) ubi0:rootfs on /mnt/rootfs type ubifs (ro,noatime) /dev/mmcblk0p1 on /var/log type ext3 (rw,relatime,errors=continue,commit=1,barrier=1,data=ordered) /dev/mmcblk0p4 on /var/archive type ext3 (ro,noatime,errors=continue,barrier=1,data=ordered) debian@OCR-1:~$ but i don't know if this helps me access nand |
How to check if printer is out of paper Posted: 18 Mar 2022 04:33 AM PDT How can I check if cups printer is out of paper using commands only (no gui). EDIT: Is it possible to check that using python? EDIT2: I tried it with different printer (EPSON TM-m30). When I try to print without paper it stuck in Processing. printer-state = processing printer-state-message = Rendering completed printer-state-reasons = none But I still cant get info about paper. |
Cannot autostart unprivileged LXC containers on Debian 11 Bullseye Posted: 18 Mar 2022 02:40 AM PDT lxc-autostart won't start unprivileged containers in Debian 11 Bullseye. Start of unprivileged container in Debian 11 Bullseye was solved in this answer by using lxc-unpriv-start instead of lxc-start but I was not able to take advantage of this approach when using lxc-autostart . |
Pulse audio + Jack : some pulse audio apps work some don't Posted: 18 Mar 2022 02:26 AM PDT Debian Buster. I use Pulseaudio as sound server but sometimes launch Jack for MAO. When Jack is on, I can get the sound of Pulseaudio applications thanks to the pulseaudio-module-jack that adds a Pulseaudio sink to Jack (as I explained in https://askubuntu.com/a/1213554/419514). Except I came to realize that not all applications work. I do get the sound of vlc. But when using Firefox, Quodlibet or Audacity, nothing comes out. In fact, when clicking the "play" button, the cursor on the time slider doesn't even move. The "play" button indicates the file is playing but it is not. The playback begins as soon as I stop Jack. I couldn't find any relevant log. |
What is the minimal set of firmware files I need for my Hardware? Posted: 18 Mar 2022 04:22 AM PDT So today I learned that my distro's linux-unfree-firmware package is 491 Mb in size. I'm pretty sure my hardware doesn't need all of these files. Hence I think I can reduce this disk usage if I'll only know what files I can exclude from there. Is there any official documentation, that states exactly what files from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ are needed per device / computer model? Perhaps the official documentation of my Computer's hardware will state that? There's a Linux from scratch webpage that gives some info for popular hardware, but I'm wondering if there's a bit more "official" information available somewhere. |
No sound. Pulseaudio broken ( Fedora ) Posted: 18 Mar 2022 02:21 AM PDT I uploaded a fedora yesterday. Everything worked just fine. But today, there is no sound. There's no sound. I tried things about Purseaudio, but it didn't work. How can I fix ? ( W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). E: [pulseaudio] main.c: Daemon startup failed. ) |
Polybar i3 no workspace module appearing Posted: 18 Mar 2022 04:02 AM PDT I have just switched from the default i3 bar to using polybar (running Fedora 30, i3-gaps). I installed polybar following this guide: https://computingforgeeks.com/install-polybar-status-bar-on-fedora/. I first tried running the default configuration for polybar and it worked except there was nothing on the left where the workspaces should be. I played around a bit to try to get the to work, but nobody in any forums I came across seemed to have a similar situation. I ended up copying the polybar config given in this answer, as they seemed to set up their workspaces in the i3 config the same way that I have: https://computingforgeeks.com/install-polybar-status-bar-on-fedora/, but the result was the same - no workspace module appearing on my polybar. My polybar config file is: [global/wm] margin-top = 100 margin-bottom = 100 [colors] fg = ${xrdb:color7} modfg = ${xrdb:color1} bg = ${xrdb:color0} white = #d1d1d1 gray = #585858 black = #ce1d1d1d red = #c795ae blue = #95aec7 yellow = #c7ae95 green = #aec795 [bar/bar1] width = 100% height = 41 top = true ;margin-top = 100 border-top-size = 1 # creating top border space offset-y = -3 # aligning tray icons with rest of bar monitor = ${env:MONITOR:} ;background = #141021 background = #000f0f0f # This is the hexcode for transparency (also used in powermenu) foreground = #c4b7c5 fixed-center = false font-0 = FontAwesome:pixelsize=10;0 font-1 = PragmataPro Nerd Font:pixelsize=10;0 font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=10;1" font-3 = "Font Awesome 5 Free:style=Solid:pixelsize=10;1" font-4 = "Font Awesome 5 Brands:pixelsize=10;1" modules-left = i3 modules-center = date modules-right = wireless-network cpu memory filesystem temperature pulseaudio backlight battery powermenu tray-position = right ;tray-maxsize = 41 tray-background = #000f0f0f tray-foreground= #000f0f0f scroll-up = i3wm-wsnext scroll-down = i3wm-wsprev overline-size = 2 overline-color = ${colors.white} underline-size = 4 underline-color = ${colors.white} ;override-redirect = true ;wm-restack = i3 [module/i3] type = internal/i3 pin-workspaces = false strip-wsnumbers = true index-sort = false enable-scroll = false format = <label-state> format-padding-right = 2 label-unfocused-foreground = #8a7f8f label-unfocused-padding = 1 label-focused-foreground = #c16772 label-focused-padding = 1 label-urgent-foreground = #e4b226 label-urgent-padding = 1 [module/filesystem] type = internal/fs ; Mountpoints to display mount-0 = / label-mounted = %free% format-mounted-padding = 2 ; Seconds to sleep between updates ; Default: 30 ; interval = 10 ; Display fixed precision values ; Default: false fixed-values = true ; Spacing between entries ; Default: 2 spacing = 6 [module/filesystem2] type = internal/fs ; Mountpoints to display mount-0 = /media/<my_name>/Data label-mounted = %free% format-mounted-padding = 2 ; Seconds to sleep between updates ; Default: 30 ; interval = 10 ; Display fixed precision values ; Default: false fixed-values = true ; Spacing between entries ; Default: 2 spacing = 6 [module/cpu] type = internal/cpu interval = 1 format = <label> format-padding = 2 label = %percentage%% [module/memory] type = internal/memory interval = 1 format = <label> format-padding = 2 label = %gb_used% (%percentage_used%%) [module/temperature] type = internal/temperature interval = 1 thermal-zone = 0 warn-temperature = 74 format = <ramp> <label> format-padding = 2 format-warn = <ramp> <label-warn> format-warn-padding = 2 label = %temperature-c% label-warn = %temperature-c% label-warn-foreground = #e4b226 ramp-0 = ramp-1 = ramp-2 = ramp-3 = ramp-4 = [module/date] type = internal/date interval = 1 date = %a %b %d, time = %H:%M:%S date-alt = %A, %d %B %Y time-alt = %H:%M:%S format = <label> format-padding = 2 label = %date% %time% [module/battery] ; Note - if battery isn't showing, try BAT0 or BAT1, etc. type = internal/battery full-at = 95 battery = BAT1 adapter = ACAD poll-interval = 5 format-charging = <animation-charging> <label-charging> format-charging-padding = 2 format-discharging = <ramp-capacity> <label-discharging> format-discharging-padding = 2 format-full = <ramp-capacity> <label-full> format-full-padding = 2 label-charging = %percentage%% label-discharging = %percentage%% label-full = %percentage%% ramp-capacity-0 = ramp-capacity-1 = ramp-capacity-2 = ramp-capacity-3 = ramp-capacity-4 = animation-charging-0 = animation-charging-1 = animation-charging-2 = animation-charging-3 = animation-charging-4 = animation-charging-framerate = 500 [module/backlight] type = internal/backlight card = intel_backlight format = <label> format-padding = 2 label = %percentage%% [module/pulseaudio] type = internal/pulseaudio ; List sinks via `pactl list sinks` and look at the Name field sink = alsa_output.pci-0000_00_1b.0.analog-stereo ;interval = 1 format-volume-padding = 2 format-volume = <ramp-volume> <label-volume> ramp-volume-0 = ramp-volume-1 = ramp-volume-2 = format-muted-padding = 2 label-muted = 0% [module/powermenu] type = custom/menu label-open = label-close = cancel label-close-background = #000f0f0f label-close-foreground = #ffeefc label-open-padding-left = 4 label-open-padding-right = 3 label-close-padding = 3 menu-0-0 = lock menu-0-0-exec = ~/scripts/lock.sh menu-0-0-background = #000f0f0f menu-0-0-foreground = #c05c47 menu-0-0-padding-right = 3 menu-0-1 = reboot menu-0-1-exec = menu-open-1 menu-0-1-background = #000f0f0f menu-0-1-foreground = #c05c47 menu-0-1-padding-right = 3 menu-0-2 = power off menu-0-2-exec = menu-open-2 menu-0-2-background = #000f0f0f menu-0-2-foreground = #c05c47 menu-0-2-padding-right = 3 menu-1-0 = reboot? menu-1-0-exec = reboot menu-1-0-background = #000f0f0f menu-1-0-foreground = #e4b226 menu-1-0-padding-right = 3 menu-2-0 = power off? menu-2-0-exec = poweroff menu-2-0-background = #000f0f0f menu-2-0-foreground = #e4b226 menu-2-0-padding-right = 3 [module/wireless-network] type = internal/network ; Look at ifconfig for interface interface = wlo1 format-connected = <label-connected> format-connected-padding = 2 format-disconnected = <label-disconnected> format-disconnected-padding = 2 label-connected = %essid% label-disconnected = None And my i3 config is: # This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:System San Francisco Display 10 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Before i3 v4.8, we used to recommend this one as the default: # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # The font above is very space-efficient, that is, it looks good, sharp and # clear in small sizes. However, its unicode glyph coverage is limited, the old # X core fonts rendering does not support right-to-left and this being a bitmap # font, it doesn't scale on retina/hidpi displays. # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec gnome-terminal #i3-sensible-terminal #start a browser bindsym $mod+numbersign exec firefox # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1:" set $ws2 "2:" set $ws3 "3:" set $ws4 "4:" #set $ws5 "5:<span font='SVGFont1 12' rise='-2000'>a</span>" set $ws6 "6:" set $ws7 "7:" set $ws8 "8:" set $ws9 "9:" set $ws10 "10:" set $ws11 "11:" #set $ws1 "1" #set $ws2 "2" #set $ws3 "3" #set $ws4 "4" set $ws5 "5" #set $ws6 "6" #set $ws7 "7" #set $ws8 "8" #set $ws9 "9" #set $ws10 "10" #set $ws11 "11" # switch to workspace bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 bindsym $mod+Control+1 workspace $ws11 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+Control+1 move container to workspace $ws11 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window's width. # Pressing right will grow the window's width. # Pressing up will shrink the window's height. # Pressing down will grow the window's height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" set $bg-color #44444480 set $inactive-bg-color #44444480 set $text-color #f3f4f5 set $inactive-text-color #676E7D set $urgent-bg-color #E53935 set $ws-focused-bg #ffc553 # window colors # border background text indicator client.focused $bg-color $bg-color $text-color #00ff00 client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00 client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #00ff00 client.urgent $urgent-bg-color $urgent-bg-color $text-color #00ff00 # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) #bar { # strip_workspace_numbers yes # status_command i3status # colors { # background $bg-color # separator #757575 ## border background text # focused_workspace $ws-focused-bg $ws-focused-bg $text-color # inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color # urgent_workspace $urgent-bg-color $urgent-bg-color $text-color # } #} exec_always --no-startup-id $HOME/.config/polybar/launch.sh exec compton -f -I 0.06 -O 0.6 #GAPS!!! gaps inner 10 for_window [class=".*"] border pixel 0 #touchpad touch-ups: exec_always "~/.config/i3/touchpad_options" #key swaps: exec_always ~/.config/i3/key_mappings #media # Pulse Audio controls bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound # Sreen brightness controls bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness # Media player controls bindsym XF86AudioPlay exec playerctl play-pause #bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous #HARRY'S COMMANDS: #desktop background exec_always feh --bg-fill ~/Pictures/desktop-photos/roundabout-darkened.png #lock shortcut: bindsym $mod+shift+x exec i3lock -c 222222 #set dpi for i3 toolbars exec_always xrdb -merge ~/.Xresources exec_always xrandr --dpi 120 EDIT: Done some more troubleshooting and figured out that the issue is in my installation of polybar. If I run it from terminal it tells me that I have no built-in support for internal/i3. The command polybar -v gives me: polybar 3.3.0-101-gf0c65e6 Features: +alsa +curl -i3 +mpd +network(libnl) +pulseaudio +xkeyboard Although this is exactly what the guide (linked above, which claimed to be for installation for i3wm on Fedora) told me I should get as the output, it appears that the -i3 (logically) means it lacks i3 support (ref: https://github.com/polybar/polybar/issues/526). I don't exactly know how to perform the installation correctly, but I will uninstall polybar and look for some better documentation on how to do it. |
How to make Midnight Commander remembers Shell Link address/name? Posted: 18 Mar 2022 02:36 AM PDT Using Shell link function, Midnight Commander usually remembers machine name that we have enter in the past, and we can access them by clicking a tick at the right of machine's name field. But the last time I install MC, it can't store the machine's name. How can I configure in order to have shell link remembers the machine name? |
Can’t run the ownCloud client on Linux Mint 19 Tara (Qt issues) Posted: 18 Mar 2022 02:34 AM PDT I have a problem running the ownCloud client on Linux Mint 19 Tara. It doesn't start. If run from the command line, it gives me these errors: pavel@lenovo ~ $ owncloud owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by owncloud) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5DBus.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Xml.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloud_csync.so.0) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libqt5keychain.so.1) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Widgets.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKit.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Network.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Gui.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5) owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Sql.so.5) The most of the ocqt libraries get found but they refer to the system libQt5Core library. How's that possible when the /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5 file exists and is a symbolic link to libQt5Core.so.5.10.1 ? Tried to prepend LD_LIBRARY_PATH=/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu but the result was the same. Tried with ldd: pavel@lenovo ~ $ LD_LIBRARY_PATH=/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu ldd `which owncloud` /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /usr/bin/owncloud) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5DBus.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Xml.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloud_csync.so.0) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libqt5keychain.so.1) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Widgets.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKit.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Network.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Gui.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5) /usr/bin/owncloud: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Sql.so.5) linux-vdso.so.1 (0x00007fff23f74000) libQt5DBus.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5DBus.so.5 (0x00007f2e54e20000) libQt5WebKitWidgets.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5 (0x00007f2e54dd9000) libQt5Xml.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f2e54d9c000) libowncloudsync.so.0 => /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloudsync.so.0 (0x00007f2e544da000) libowncloud_csync.so.0 => /opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/libowncloud_csync.so.0 (0x00007f2e5427b000) libqt5keychain.so.1 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libqt5keychain.so.1 (0x00007f2e54053000) libQt5Widgets.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f2e53a00000) libQt5WebKit.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5WebKit.so.5 (0x00007f2e51a23000) libQt5Network.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f2e51893000) libQt5Gui.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f2e51394000) libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f2e50c49000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2e508c0000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e50522000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2e5030a000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e4ff19000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e4fcfa000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f2e4faad000) libQt5PrintSupport.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f2e54ce2000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2e4f890000) libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2e4f587000) libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2e4f271000) libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2e4f009000) libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f2e4edd7000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2e4ea9f000) libxslt.so.1 => /usr/lib/x86_64-linux-gnu/libxslt.so.1 (0x00007f2e4e862000) libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f2e4e4a1000) libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f2e4e000000) libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f2e4dc49000) libQt5Sql.so.5 => /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Sql.so.5 (0x00007f2e4dbfe000) libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f2e4d996000) libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f2e4d553000) libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f2e4d2b5000) libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f2e4d0a4000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e4cea0000) /lib64/ld-linux-x86-64.so.2 (0x00007f2e54c86000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f2e4cc1c000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2e4c9aa000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2e4c782000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f2e4c55c000) libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f2e4a9b3000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f2e4a6ff000) libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f2e4a4d2000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2e4a2ca000) liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f2e4a0ae000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f2e49d93000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2e49b8f000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2e49989000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2e49774000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f2e4955f000) So why is ld finding the system library if all other Qt libraries it finds are the ownCloud versions? Why specifying LD_LIBRARY_PATH is not useful? Tried to reinstall the ocqt5101-libqt5core5a package but that didn't work either. Any clues? Edit 1: Tried to completely remove the libqt5core5a system package (and had to remove also all the KDE stuff with it) to see the difference. And I get a different error: pavel@lenovo ~ $ LD_LIBRARY_PATH=/opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu owncloud owncloud: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory As already stated before, the file /opt/ownCloud/qt-5.10.1/lib/x86_64-linux-gnu/libQt5Core.so.5 is there and is a symbolic link to the right library. But it seems that all the other libraries are expecting it to be in the system library directory (/usr/lib/x86_64-linux-gnu ). This library path may be hardcoded somehow in the other libraries because they are ignoring the file that lies in the same directory as themselves. Does this mean that the ownCloud Qt packages are broken? Edit 2: Inspected another fully updated system with Linux Mint 19 Tara and with exactly the same official ownCloud repository. It's an i386 system and there this bug doesn't manifest. Edit 3: Mentioned this question on the ownCloud forum. With its users, we narrowed down the problem. It doesn't have anything to do with the ld cache (see here). Something has to be wrong with the ownCloud's libQt5Core.so.5.10.1 library itself. But what? Tried to install the Testpilot cloud client but the error persists (I suppose the library is basically the same). Edit 4: Found a dedicated Linux Mint 19 ownCloud repository on the openSUSE server and installed from there (see here) but the problem with the library still persists. |
Bash the function is executed twice Posted: 18 Mar 2022 02:23 AM PDT The script has traps that execute a function that reruns the host script, but executes it twice. #!/bin/bash LOCK="/tmp/performanceScript.lock" exec_func () { #Creando Script de Vida Eterna. rm -f $LOCK cd $( dirname '${BASH_SOURCE[0]}' ) echo "Volvio a la vida" >> /tmp/secuancia_performanceScript.log $( which bash ) performanceScript2.sh & exit $? } secuencia=0 if (set -o noclobber; echo $$ > "$LOCK") 2> /dev/null; then trap 'exec_func' INT TERM EXIT SIGKILL while true; do echo "El numero es $secuencia" >> /tmp/secuancia_performanceScript.log ((secuencia++)) sleep 1 done rm -f $LOCK trap - INT TERM EXIT else echo "ya se está ejecutando: $(cat $LOCK)" fi seeing the debug, the function is executed twice. ^C ++ exec_func ++ rm -f /tmp/performanceScript.lock +++ dirname '${BASH_SOURCE[0]}' ++ cd . ++ echo 'Volvio a la vida' ++ exit 0 + exec_func + rm -f /tmp/performanceScript.lock +++ which bash ++ dirname '${BASH_SOURCE[0]}' ++ /bin/bash performanceScript2.sh + cd . + echo 'Volvio a la vida' + exit 0 ++ which bash + /bin/bash performanceScript2.sh ya se está ejecutando: 13963 Why the exec_func function is executed twice? |
How to use the NUL character as a separator in sed substitute and delete commands? Posted: 18 Mar 2022 03:55 AM PDT This is what I tried, when intending to replace /path/to/a with /path/to/b using NUL as the separator/delimiter: $ cat pathsList| sed -r -e 's\0/path/to/a\0/path/to/b\0g' sed: -e expression #1, char 27: number option to `s' command may not be zero My wanting to go for NUL : NUL and / are the only characters that are disallowed on ext4fs , and / is already used heavily as the pathname separator. Also, I want to avoid quoting and unquoting my data just to be able to used sed . If NUL can't be used as a delimiter (let's say), I'll be okay with any workaround better than quoting and unquoting of my data. $ sed --version sed (GNU sed) 4.4 |
ACL not working on directories Posted: 18 Mar 2022 02:33 AM PDT For some reason when I create new file from Windows I can change the permissions just fine but when I create a folder it won't let me change the permissions, I get this error: A device attached to the system is not functioning. I'm running AIX 6.1 and Samba 3.6. Here's how my smb.conf look like: [global] ..... ..... nt acl support = yes inherit acls = Yes map acl inherit = Yes map archive = no map hidden = no map read only = no map system = no store dos attributes = yes inherit permissions = Yes [testshare] comment = Test path = /test writable = yes read only = no force group = "Domain Admins" valid users = @"Domain Admins" directory mode = 0770 force directory mode = 0770 create mode = 0660 force create mode = 0660 access based share enum = yes hide unreadable = yes Here's the acl for the filesystem and umask: # aclget /test * * ACL_type AIXC * attributes: base permissions owner(administrator): rwx group(domain^admins): rwx others: rwx extended permissions disabled # umask -S u=rwx,g=rx,o=rx I really don't understand why I can set file permissions (from Windows) but not directories. |
Is there a gui options for passwordstore Posted: 18 Mar 2022 02:57 AM PDT So while I personally prefer to use passwordstore via the commandline as it is intended. I am pushing for my co-workers to use it. It works perfect for what we need, which is a centralized place to share sensitive data such as passwords, secret keys, etc, and it's all encrypted, yay! However, some employees are not that savvy with the command line and would not use it. So I'm looking for a solution of how I can bring a more comfortable to those employees. Because right now the running candidates are tools like 1password, lastpass, and keepass. Which I'm not the biggest fan of running that on my machine. I know there are iOS and Android gui's available, so I figured maybe somewhere there are some desktop options. Mostly we use Mac's, though there are a handful that use Windows. I know that will be a bit of a stretch trying to find Windows solutions. |
Having chosen the correct package (I believe), I cannot still install it. How to fix it? Posted: 18 Mar 2022 03:02 AM PDT Thanks to the command "cpuinfo", I've noticed that the "System type" is MediaTek MT7620, "cpu model" is MIPS 24KEc V5.0, so that I downloaded this package bash_4.3.39-1_ramips_24kec.ipk from Index of /chaos_calmer/15.05/ramips/mt7620/packages/packages/ So I believe that I have got the correct package for my machine, but I can't install it, I use opkg install /path/to/bash_4.3.39-1_ramips_24kec.ipk , sure the path is right, and I got Unknown package 'bash'. Collected errors: pkg_hash_fetch_best_installation_candidate: Packages for bash found, but incompatible with the architectures configured opkg_install_cmd: Cannot install package bash. From the report, I don't think I need to install something else first (Am I wrong?), and I have no idea how to solve this problem. UPDATE: The machine runs Pandorabox R2 14.09, with Luci Trunk (0.12+svn-r1024), I have also tried using bash_4.2-5_ramips_24kec.ipk from Index of /barrier_breaker/14.07/ramips/mt7620a/packages/packages/ and Index of /barrier_breaker/14.07/ramips/mt7620n/packages/packages/ I got the same report. If I am not wrong, the version of firmware of OpenWrt should be 14.07, that's the base of Pandorabox R2 14.09. |
How to generate a random string? Posted: 18 Mar 2022 02:20 AM PDT I would like to generate a random string (e.g. passwords, user names, etc.). It should be possible to specify the needed length (e.g. 13 chars). What tools can I use? (For security and privacy reasons, it is preferable that strings are generated off-line, as opposed to online on a website.) |
How can I remove all comments from a file? Posted: 18 Mar 2022 03:14 AM PDT I have a file which includes comments: foo bar stuff #Do not show this... morestuff evenmorestuff#Or this I want to print the file without including any of the comments: foo bar stuff morestuff evenmorestuff There are a lot of applications where this would be helpful. What is a good way to do it? |
No comments:
Post a Comment