X11 on Garuda Linux Posted: 17 Jul 2022 06:53 PM PDT So I needed to do some things with scaling, and I would like X11 for that. Since the kernel in Garuda is linux-zen, and the OS is deeply customized, I thought it might require additional steps. Thanks! |
how to convert a sed regex to bbe? Posted: 17 Jul 2022 06:54 PM PDT how to match/replace like this sed but in bbe: echo "abc894576def559872364abc23948572348576def" |sed -r "s@(abc[0-9]).*(def)@\1CCC\2@" because this does nothing: echo "abc894576def559872364abc23948572348576def" |bbe -e "s@(abc[0-9]).*(def)@\1CCC\2@" I need bbe because I need newline to be ignored, this also means I need "def" to be the 1st match and not the last one found in the binary file, like a delimiter, so my regex is also not good yet... |
CUPS troubleshooting error log Posted: 17 Jul 2022 06:12 PM PDT The CUPS error log is quickly filling up. In a few days, it has filled up to 1.8GB. I need help identifying the reason why the log has filled up so quickly. Here's a snippet of the error log: D [17/Jul/2022:03:12:04 +1000] [Job 7833624] The following messages were recorded from 03:12:04 AM to 03:12:04 AM D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Sending job to queue tagged as raw... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] job-sheets=none,none D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[0]="ser3" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[1]="7833624" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[2]="pick" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[3]="(stdin)" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[4]="1" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[5]="finishings=3 number-up=1 job-uuid=urn:uuid:87af8b66-7349-34ab-5c88-5817309df0e6 job-originating-host-name=localhost" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] argv[6]="/var/spool/cups/d7833624-001" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[0]="CUPS_CACHEDIR=/var/cache/cups" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[1]="CUPS_DATADIR=/usr/share/cups" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[2]="CUPS_DOCROOT=/usr/share/cups/www" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[4]="CUPS_REQUESTROOT=/var/spool/cups" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[5]="CUPS_SERVERBIN=/usr/lib/cups" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[6]="CUPS_SERVERROOT=/etc/cups" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[7]="CUPS_STATEDIR=/var/run/cups" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[8]="PATH=/usr/lib/cups/filter:/usr/lib64/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[9]="SOFTWARE=CUPS/1.4.2" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[10]="USER=root" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[11]="CUPS_SERVER=/var/run/cups/cups.sock" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[12]="CUPS_ENCRYPTION=IfRequested" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[13]="IPP_PORT=631" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[14]="CHARSET=utf-8" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[15]="LANG=en_US.UTF-8" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[16]="PPD=/etc/cups/ppd/ser3.ppd" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[17]="RIP_MAX_CACHE=128m" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[18]="CONTENT_TYPE=text/plain" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[19]="DEVICE_URI=lpd://ser3/raw?timeout=10" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[20]="PRINTER_INFO=ser3" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[21]="PRINTER_LOCATION=" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[22]="PRINTER=ser3" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] envp[23]="CUPS_FILETYPE=document" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Started backend /usr/lib/cups/backend/lpd (PID 9728) D [17/Jul/2022:03:12:04 +1000] [Job 7833624] STATE: +connecting-to-device D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Looking up "ser3"... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Connecting to ser3:515 for printer raw D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Connecting to printer... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] STATE: -connecting-to-device D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Connected to printer... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Connected to 172.29.72.251:515 (IPv4) (local port 1014)... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] lpd_command 02 raw D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Sending command string (5 bytes)... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Reading command status... D [17/Jul/2022:03:12:04 +1000] [Job 7833624] lpd_command returning 1 D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Backend returned status 1 (failed) D [17/Jul/2022:03:12:04 +1000] [Job 7833624] Retrying job on same printer. D [17/Jul/2022:03:12:04 +1000] [Job 7833624] End of messages D [17/Jul/2022:03:12:04 +1000] [Job 7833624] printer-state=3(idle) D [17/Jul/2022:03:12:04 +1000] [Job 7833624] printer-state-message="/usr/lib/cups/backend/lpd failed" D [17/Jul/2022:03:12:04 +1000] [Job 7833624] printer-state-reasons=none |
How to resolve "Unable to resolve host" in OpenStack Yoga? Posted: 17 Jul 2022 05:41 PM PDT I'm trying to install Openstack on CentOS Stream 9 by following the official openstack installation guide for Yoga available at: https://docs.openstack.org/install-guide/ - When I try to bootstrap keystone I get the following error:
/etc/keystone/fernet-keys/ does not exist. - When I tried to create a domain using
openstack domain create --description "An Example Domain" example it failed. Upon pinging controller I found out that the machine could not resolve the controller. Next, I added an entry to /etc/hosts that explicitly resolved the controller to my machine's IP Pinging the controller succeeded but I was still not able to create a domain I tried creating a project using openstack project create --domain default --description "Service Project" service This command failed with internal server error. |
How to stop Firefox windows from maximizing too much? Posted: 17 Jul 2022 05:40 PM PDT I am running Debian on an older system, and so am using MWM, as it is lightweight. I am running Xorg at 1080x720 resolution. I'm not using multiple desktops. When I click "Maximize" on most applications, they correctly fill the screen. When I click "Maximize" on Mozilla Firefox though, it strangely maximizes to be almost 2000 pixels wide, and too tall, such that the right half and bottom half of Firefox are hidden. Since this behavior only appears in Firefox, I assume Firefox has its own internal way to handle being maximized (though I am clicking the "Maximize" button on the window manager). How can I correct this behavior, so Firefox correctly maximizes to fill the actual visible screen? |
mdadm raid 6 array reduce error Cannot set new_offset for /dev/sda1 Posted: 17 Jul 2022 05:35 PM PDT I tried to reduce the size of a mdadm raid 6 array from 10 to 8. So I followed these steps : pi@raspbian-x64:~ $ sudo mdadm --grow /dev/md0 --raid-devices=8 mdadm: this change will reduce the size of the array. use --grow --array-size first to truncate array. e.g. mdadm --grow /dev/md0 --array-size 2928887808 pi@raspbian-x64:~ $ sudo mdadm --grow /dev/md0 --array-size 2928887808 pi@raspbian-x64:~ $ sudo mdadm --grow /dev/md0 --raid-devices=8 mdadm: Cannot set new_offset for /dev/sda1 Do you know why mdadm can't set new_offset for /dev/sda1 ? Here is the detail of my array (After using the commands) : pi@raspbian-x64:~ $ sudo mdadm --detail /dev/md0 /dev/md0: Version : 1.2 Creation Time : Tue May 11 07:47:04 2021 Raid Level : raid6 Array Size : 2928887808 (2793.21 GiB 2999.18 GB) Used Dev Size : 488147968 (465.53 GiB 499.86 GB) Raid Devices : 10 Total Devices : 8 Persistence : Superblock is persistent Intent Bitmap : Internal Update Time : Mon Jul 18 02:18:12 2022 State : clean, degraded Active Devices : 8 Working Devices : 8 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 512K Consistency Policy : bitmap Name : pi1:0 UUID : 4314f81c:4b2f90a0:db6089d4:c5958ee0 Events : 147618 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 33 1 active sync /dev/sdc1 2 8 49 2 active sync /dev/sdd1 - 0 0 3 removed 10 8 65 4 active sync /dev/sde1 9 8 82 5 active sync /dev/sdf2 8 8 81 6 active sync /dev/sdf1 - 0 0 7 removed 7 8 2 8 active sync /dev/sda2 6 8 1 9 active sync /dev/sda1 Right now, there is 46% free space in the raid array. So it should be OK to reduce the array to 8 devices. |
Bridged Network Interface to a Virtual Machine connected to a VPN Posted: 17 Jul 2022 05:11 PM PDT I'm currently running an Ubuntu server with a bridged network interface so I can run VMs with their own local IPs on my network. I use ExpressVPN and I'd like to connect a VM to this VPN but not actually use the ExpressVPN app or VPN configuration inside the VM due to the limited processing power of the VM resulting in internet speeds being less than ideal. Instead I'd like the Ubuntu host machine to have a virtual network interface for the VM that is briged to my local network (giving a local IP) and also connected to ExpressVPN (I assume through OVPN or L2TP, not Express' app) so all the VM's internet traffic is routed through the VPN without the VM having to do any of this processing. The Ubuntu host however shouldn't be using the VPN for internet traffic, only the VM. Is this possible? Would someone be able to point me in the right direction? Thanks! Running Ubuntu 20.04, Virt Manager with a Windows 10 KVM |
How to start differently inside VM or raw firmware Posted: 17 Jul 2022 04:35 PM PDT tltr: How can we have different default entry/settings in uefi/bootloader based on hardware ? I want two boot configurations with differents settings based on hardware. Typical usage is inside VM mount some shared folder, enable sshd... On raw machine mount real disk of windows, don't start sshd... Do network specific tasks... I check this in init script but I want to find a more generic method to dig further. For instance choose different kernel or give different command line arguments, different driver (The last one might be useless). What I have tried: My computer had systemd-boot I read the man and didn't find something to build a condition it seem very raw. I tried grub that has if condition. The special environnement variables https://www.gnu.org/software/grub/manual/grub/grub.html#Special-environment-variables doesn't seem to indicate if I am inside or outside. I tried to use extlinux but didn't manage to choose it at boot time. I tried to see if EFI script shell is viable option dmpstore printed many many chars and didn't find a grep like so I don't know how viable it is. I am ready to try another boot loader. I don't use specific feature: just menu selection and give init script to kernel. I haven't programmed in such low-level so as learning exercice and last resort I might try to create dumb efi program that will only execute some virtualized instruction that fail on VM and not hardware (I think it is called ring -1) then pass the result to grub. I would probably try a patch a bootloader to add this feature (only overlooked systemd-boot). I appreaciate if you point me to an option I haven't seen and/or place inside code that I can play with. |
Files get executable when copied Posted: 17 Jul 2022 05:35 PM PDT So I just bought a new Samsung T7 Portable SSD. I initially intended to format it to exFAT, for use with both Windows, MacOS and Linux, but upon inspection, the disk comes with a default file system of HPFS/NTFS/exFAT . I didn't know that was a thing, but I decided to test it out. To test it out, I simply copied a few ASCII text files to the disk, but regardless of method for copying, and file extension, they all get the executable flag set. I don't understand why. Why is it like this, and how can I avoid it? I want the files copied exactly as they are. Complete output showing changed permissions. user@ubuntu:~$ echo "test text file" > test.txt user@ubuntu:~$ echo "test test test" > test user@ubuntu:~$ echo "print('test')" > test.py user@ubuntu:~$ user@ubuntu:~$ ls -l test* -rw-rw-r-- 1 user user 15 July 18 01:20 test -rw-rw-r-- 1 user user 14 July 18 01:20 test.py -rw-rw-r-- 1 user user 15 July 18 01:20 test.txt user@ubuntu:~$ user@ubuntu:~$ mkdir /media/user/T7/testdir user@ubuntu:~$ cp test /media/user/T7/testdir/ user@ubuntu:~$ rsync test.txt /media/user/T7/testdir/ user@ubuntu:~$ rsync -a test.py /media/user/T7/testdir/ user@ubuntu:~$ user@ubuntu:~$ ls -l /media/user/T7/testdir total 384 -rwxr-xr-x 1 user user 15 July 18 01:23 test -rwxr-xr-x 1 user user 14 July 18 01:20 test.py -rwxr-xr-x 1 user user 15 July 18 01:23 test.txt Here you can see I've tried both cp , rsync and rsync -a , but they end up as executables every single time. Why? Edit: I tried doing exactly the same to a WD HDD that comes with NTFS by default. There, the files get the 777 permission (rwxrwxrwx ). Does it have something to do with the disk itself? Clearly my knowledge is lacking here. |
"routing back" through a wireless hotspot does not work Posted: 17 Jul 2022 04:27 PM PDT I have a Linux device running a wireless hotspot: my laptop (LAN only: 192.168.1.100) | LAN | wireless hotspot laptop (LAN: 192.168.1.101, wireless hotspot: 10.42.0.1, VMs: 10.254.2.x) | wireless printer (wifi: 10.42.0.67) From my laptop, I'm able to ping/connect to the wireless hotspot laptop using its LAN IP (192.168.1.101). I'm also able to ping/connect to its wireless hotspot IP (10.42.0.1) after I add the following routing on my laptop: ip route add to 10.42.0.0/24 via 192.168.1.101 I am also able to ping/connect to the VMs on the laptop if I add the following routing rule: ip route add to 10.254.2.0/24 via 192.168.1.101 However, pinging/connecting to anything within the wireless network (10.42.0.0/24) - no dice, getting "Destination Port Unreachable": # ping 10.42.0.67 PING 10.42.0.67 (10.42.0.67) 56(84) bytes of data. From 192.168.1.101 icmp_seq=1 Destination Port Unreachable From 192.168.1.101 icmp_seq=2 Destination Port Unreachable ^C --- 10.42.0.67 ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms Adding the following MASQUERADE rule on the wireless hotspot laptop allows my laptop to communicate i.e. with 8.8.8.8: iptables -t nat -A POSTROUTING -s 192.168.1.100 -j MASQUERADE tcpdump on the wireless hotspot laptop indicates the traffic from my laptop to 8.8.8.8 is going through it: # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=44.4 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=46.9 ms ^C --- 8.8.8.8 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 44.425/45.668/46.912/1.243 ms Still, connecting to 10.42.0.67 (wireless printer behind the wireless hotspot) - no dice (below, tcpdump on the wireless hotspot): 01:25:20.901823 enp1s0 In IP (tos 0x0, ttl 64, id 37541, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.1.100 > 10.42.0.67: ICMP echo request, id 216, seq 16, length 64 01:25:20.902038 enp1s0 Out IP (tos 0xc0, ttl 64, id 11555, offset 0, flags [none], proto ICMP (1), length 112) 192.168.1.101 > 192.168.1.100: ICMP 10.42.0.67 protocol 1 port 12067 unreachable, length 92 IP (tos 0x0, ttl 63, id 37541, offset 0, flags [DF], proto ICMP (1), length 84) 192.168.1.100 > 10.42.0.67: ICMP echo request, id 216, seq 16, length 64 Is wifi anything special that Linux does not want to route nor NAT into it? |
`nohup` makes `echo` useless Posted: 17 Jul 2022 03:52 PM PDT I have a python code main.py that runs bash script, the bash script inturn submits a job job.bash and obtains its JOBID using echo $JOBID | awk {'print $4'} . If I run python in the terminal, the bash script works and I am able to obtain and echo the JOBID as follows: JOBID=`sbatch ~/job.bash | tee output.log` JOBID=`echo $JOBID | awk {'print $4'}` echo $JOBID Running above as part of python works in terminal python main.py , but doing nohup python main.py & , the echo does not print or store JOBID . Any reason for this? I am submitting a slurm job hence the JOBID is the pid from slurm |
Nano: can the escape key be mapped? Posted: 17 Jul 2022 07:32 PM PDT I've been playing with the keyboard mapping in the .nanorc file some today, and you can map the F keys like...bind F3 cancel all , however, i haven't had any luck with trying find how nano recognizes the escape key. I've already tried Esc , esc , nano keeps giving me an error message. Is there a way to bind/map the escape key in the corner of your keyboard? |
Rationale behind merging delimiters when IFS is a space character Posted: 17 Jul 2022 01:51 PM PDT If IFS is for example <tab> , then consecutive delimiters are merged by read-command. Otherwise that does not happen. Example: $ echo -e 'zero\tone\ttwo\tthree' | while IFS=$'\t' read -a x; do echo "${x[2]}"; done two $ echo -e 'zero\t\tone\ttwo\tthree' | while IFS=$'\t' read -a x; do echo "${x[2]}"; done two $ echo -e 'zero§one§two§three' | while IFS=§ read -a x; do echo "${x[2]}"; done two $ echo -e 'zero§§one§two§three' | while IFS=§ read -a x; do echo "${x[2]}"; done one But why is this so? |
How can I watch an encrypted Blu-ray on a Linux desktop? Posted: 17 Jul 2022 05:05 PM PDT I have some retail Blu-Ray movies with DRM that I want to watch on my Linux desktop. I want to watch the movie directly from the disc. Tutorials I found online tell me how to rip it to a file, but I don't want to use up that much hard drive space when I will only watch the movie a few times. How can I do this? |
How to make libvirtd service to start at boot in Centos 9 Posted: 17 Jul 2022 06:46 PM PDT I would like to start the service libvirtd.service is enabled but do not active at startup [root@GTS ~]# systemctl enable libvirtd.service [root@GTS ~]# systemctl status libvirtd.service ○ libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor > Active: inactive (dead) TriggeredBy: ○ libvirtd-admin.socket ○ libvirtd.socket ○ libvirtd-ro.socket ○ libvirtd-tcp.socket ○ libvirtd-tls.socket Docs: man:libvirtd(8) https://libvirt.org [root@GTS ~]# systemctl disable libvirtd.service Removed /etc/systemd/system/multi-user.target.wants/libvirtd.service. Removed /etc/systemd/system/sockets.target.wants/virtlockd.socket. Removed /etc/systemd/system/sockets.target.wants/virtlogd.socket. Removed /etc/systemd/system/sockets.target.wants/libvirtd.socket. Removed /etc/systemd/system/sockets.target.wants/libvirtd-ro.socket. [root@GTS ~]# systemctl enable libvirtd.service Created symlink /etc/systemd/system/multi-user.target.wants/libvirtd.service → /usr/lib/systemd/system/libvirtd.service. Created symlink /etc/systemd/system/sockets.target.wants/virtlockd.socket → /usr/lib/systemd/system/virtlockd.socket. Created symlink /etc/systemd/system/sockets.target.wants/virtlogd.socket → /usr/lib/systemd/system/virtlogd.socket. Created symlink /etc/systemd/system/sockets.target.wants/libvirtd.socket → /usr/lib/systemd/system/libvirtd.socket. Created symlink /etc/systemd/system/sockets.target.wants/libvirtd-ro.socket → /usr/lib/systemd/system/libvirtd-ro.socket. [root@GTS ~]# I have tried to add my user to the group libvirt but is does not work, Also when I start the libvirtd.service [plm@GTS ~]$ systemctl start libvirtd it ask mi password authentication. |
How do i make an alias for a command with sudo Posted: 17 Jul 2022 02:32 PM PDT I want to add two aliases, so one executes a command when non sudo, and the other executes a command when sudo, like this: alias v = 'nvim' alias 'sudo v' = 'sudo -E nvim ' i also have stated alias sudo='sudo ' , i clarify this just in case |
Why does the bash script not use imported text file data to run the entire code? Posted: 17 Jul 2022 06:43 PM PDT I want to whitelist the text file stored IP address list in Cloudflare WAF. I use the following Cloudflare API4 curl containing bash script for this. This Cloudflare API script cannot use the imported IP address data. When I debug, it shows an "invalid IP address" message (from the Cloudflare end). I want to load this script's IP address data from a separate text file. How do I import data from a file? My locally saved file includes data in the following format. 123.123.123.124 123.123.123.57 123.123.123.91 This is the Cloudflare IP whitelist script. #!/bin/bash input="/var/download/ip.txt" while IFS= read -r line do echo "$line" done < "$input" for i in "${line[@]}" do : # do whatever on $i echo $i curl -X POST "https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules" \ -H "X-Auth-Email: myemail" \ -H "X-Auth-Key: globle API key" \ -H "Content-Type: application/json" \ --data '{"mode":"whitelist","configuration":{"target":"ip","value":"'$i'"},"notes":"Google Bot IP"}' done |
Isolate sub-string after a certain pattern Posted: 17 Jul 2022 03:22 PM PDT I have a line in a file like this: <TD><TR> monogram ended in 1 </TD></TR> monogram ended in is always constant but not the 1 , this number changes always and can be up to a 3-digit number. So I need a command to search for monogram ended in and get the number after thit string. Can anyone help me here. |
Change wallpaper every 10 minutes on Qtile Posted: 17 Jul 2022 02:43 PM PDT I want to change my desktop's wallpaper every 10 minutes (or any other arbitrary amount of time) in with Qtile. I currently have a script written in bash that uses feh to set the wallpaper, but this isn't ideal because if Qtile is started multiple times (logout, login), then multiple instances of this script will be running in the background. So, I want to implement this inside Qtile's config. Qtile allows you to set a Screen object's wallpaper via the wallpaper_image property. It also has a command for its scripting shell that allows you to set it. So, what I need, is a Python function that runs every 10 minutes (without halting the entire OS of course) and sets it. How can I go about this? |
Exclude matched rows based on first column of two files Posted: 17 Jul 2022 03:10 PM PDT I have two tab delimited text file. The larger main file 1 with multiple columns and the file 2, smaller file, that only share the first two columns for limited rows with file 2. I want a file 3 as an output that exclude the rows that match between first column of these two files and print all other columns in file 1 as well. I tried grep -vf but doesn't seem to work. please also note that I need match for both column. file 1: BP CHR SNP REF ALT A1 OBS_CT OR LOG(OR)_SE Z_STAT P 1650048 1 rs112618790 C T T 12387 1.00246 0.0877604 0.0279678 0.977688 1856473 1 rs6684487 G A A 12387 1.02222 0.0836593 0.262689 0.79279 file 2: BP CHR 1650048 1 1650483 1 output (file 3): BP CHR SNP REF ALT A1 OBS_CT OR LOG(OR)_SE Z_STAT P 1856473 1 rs6684487 G A A 12387 1.02222 0.0836593 0.262689 0.79279 |
How to stop LibreOffice Draw from crashing in Debian Bullseye? Posted: 17 Jul 2022 05:32 PM PDT After I switching from Debian 10 to 11, LibreOffice Draw 7.0 can no longer open. I tried opening an existing file and starting a new file, no matter how I open Draw, it crashes with this message: Due to an error, LibreOffice crashed. All the files you were working on will now be saved. Next time the LibreOffice is launched, your files will be recovered automatically. If I open an existing file, or try to create a new one, it crashes, then immediately tries to pull up a document recovery for the blank file, then crashes again, no matter which open I choose. Please ensure that a JVM and the package libreoffice-java-common is installed. If it is already installed then try removing ~/.config/libreoffice/4/user/config/javasettings_Linux_*.xml Warning: failed to read path from javaldx (soffice:4787): dbind-WARNING **: 14:29:52.992: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files - The errors above appear on another Debian computer where Draw does work, so I think these have nothing to do with the error.
I tried several things: - Tried purging the entire LibreOffice install, and reinstalling.
- Tried deleting the
.config files related to LibreOffice. - Tried running in command line, but there are no messages shown related to its crashing.
- Tried running in Safe Mode, no change.
- Installed
libreoffice-gtk3 (some said it crashes without this installed). - LibreOffice Write and Calc work fine.
How can I fix LibreOffice Draw from crashing? Update: journalctl reports this every time I try to open Draw, but not when opening a tool that does work, like Write: Jul 08 15:35:20 debian audit[2833]: AVC apparmor="ALLOWED" operation="open" profile="libreoffice-soffice" name="/home/village/Projects/Textbooks/Popups/Core/2022-07-05_glossary.data" pid=2833 comm="soffice.bin" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000 Jul 08 15:35:20 debian kernel: audit: type=1400 audit(1657316120.083:15): apparmor="ALLOWED" operation="open" Update: I found if I run libreoffce --norestore to disable crash handling, it prints this error: Fatal exception: Signal 6 Stack: /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dc53)[0x7f3a8d719c53] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3ddc2)[0x7f3a8d719dc2] /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60)[0x7f3a8d547d60] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f3a8d547ce1] /lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f3a8d531537] /usr/lib/libreoffice/program/libmergedlo.so(+0x1188b91)[0x7f3a8e8cab91] /usr/lib/libreoffice/program/libmergedlo.so(+0x2255cf0)[0x7f3a8f997cf0] /usr/lib/libreoffice/program/libmergedlo.so(+0x32fcfb9)[0x7f3a90a3efb9] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x17412)[0x7f3a8d6f3412] /usr/lib/libreoffice/program/libuno_sal.so.3(+0x3dd2f)[0x7f3a8d719d2f] /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60)[0x7f3a8d547d60] |
grep question͏͏ Posted: 17 Jul 2022 02:00 PM PDT I'm currently stuck on a question for my Unix course that requires us to search for any words that have the following characteristics. I was wondering if anyone could assist in crafting such a command, as it's far more convoluted than anything I've done before. The characteristics for a word in the English language are as follows. It must ... - be exactly 5 characters long
- begin with an upper or lowercase vowel (a, e, i, o, u, or y)
- have a lowercase 't' in the middle position.
- end with a lowercase 's'
- The rest of the characters can be any character that occur in English words; i.e, uppercase, lowercase, hyphen, numbers, etc.
So far I've gotten something like this. [aeiouy].t.s within brackets and such. All of this must be using grep and use /usr/share/dict/words to find what the command reads. I just need to know what parameters to use. Pretty dang confusing. The main issue I'm finding is ensuring the first character is uppercase OR lowercase, whilst ensuring the remaining characters can be interchangeable as uppercase or lowercase. |
Polybar i3 no workspace module appearing Posted: 17 Jul 2022 04:08 PM 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. |
LDAP server setup with GUI on CentOS7 Posted: 17 Jul 2022 03:01 PM PDT I have, in the past, set up an LDAP server using OpenSuSE (13.2), which worked well since there was a YaST module which allowed a GUI set-up. Now I have the problem that I must set up an OpenLDAP server on a small department cluster running CentOS 7, which apparently does not have a GUI/TUI for such purposes. Since I am not experienced with the LDIF-based set-up and I fully expect that the maintenance of the cluster is going to be dropped on a different PhD student when I'm gone I want to be able to configure the LDAP server using some sort of GUI. To date I have tried Webmin, which was a total fiasco. It appears to set up the basic configuration of the server OK (at least slapd starts), but If I try to run any query against the DB the response is Search failed: No such object , even for the base DN. If I attempt to add a tree (i.e. an organisational unit) using said interface the result is an error stating that Webmin could not find a suitable object class for the new DN. Therefore I'm giving up on this piece of software. My question is thus: Is there a free tool which would allow one to configure an LDAP server in CentOS without having to write the entire configuration by hand? Here I am looking specifically for tools which are not web-based (so not phpLDAPadmin) but come with a GUI/TUI. Something like authconfig-gtk in CentOS. |
Docker build via proxy returned TLS handshake timeout Posted: 17 Jul 2022 06:03 PM PDT I did try build Docker container, Internet resources access only via proxy. I did set proxy connection for Docker. Did use method 2 After did check this command [root@server01 docker]# systemctl show docker --property Environment Environment=HTTPS_PROXY=https://user1:password1@ourproxy:1001/ Did try build Docker conteiner and did retrun error [root@server01 newapp]# docker build -f Dockerfile -t newapp . Sending build context to Docker daemon 40.45kB Step 1/32 : FROM python:2.7 Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout How solve this problem? |
Permission denied (publickey) on ubuntu 16.04 Posted: 17 Jul 2022 05:08 PM PDT $ ssh mykey.pem ubuntu@10.128.2.7 -v OpenSSH_7.3p1, OpenSSL 1.0.2j 26 Sep 2016 debug1: Reading configuration data /c/Users/works/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to 10.128.2.7 [10.128.2.7] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /c/Users/works/Documents/interface setup/ifx_key.pem type -1 debug1: key_load_public: No such file or directory debug1: identity file /c/Users/works/Documents/interface setup/ifx_key.pem-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.3 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 pat OpenSSH_6.6.1* compat 0x04000000 debug1: Authenticating to 10.128.2.7:22 as 'ubuntu' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:R+d2ELtCJyoeyHMfivCsGKk98GOIfxxsTEPAFmKkSOI debug1: Host '10.128.2.7' is known and matches the ECDSA host key. debug1: Found key in /c/Users/works/.ssh/known_hosts:1 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Trying private key: /c/Users/works/Documents/interface setup/ifx_key.pem debug1: Authentications that can continue: publickey debug1: No more authentication methods to try. Permission denied (publickey). I used to be able to ssh into this machine until yesterday. Is there a way to login into it? |
Where are kernel and initramfs files for systemd-boot? Posted: 17 Jul 2022 07:08 PM PDT I'm trying to do a fresh install and use systemd-boot as the bootloader for my ESP, but in the install instructions on step 4 it says: Copy your kernel and initramfs onto that ESP. But where are vmlinuz-linux and initramfs-linux.img located? I can't find them for the life of me. Do I need to install bootctl before those files are available? Nothing exists in /boot in either my Arch Linux install disk or the partitions that I'm working with |
How do I configure lynx to pass images to xloadimage, xv or zvg? Posted: 17 Jul 2022 02:01 PM PDT I know that it's possible to configure lynx to pass images (PNG/GIF/JPEG/JPG) to xloadimage , xv or zvg and I've looked online (Description of lynx configuration; Use lynx with browser image support ; Lynx with HTML Images) for documentation for how to do this, to no avail. I've tried changing/adding directives to lynx's configuration file (lynx.cfg ), without success. What is the correct configuration for images? Do I need to compile lynx from source and, if so, what flags/parameters do I need to specify? Should I rather use Netscape Navigator/Communicator (as that seems to support images without configuration)? |
I try to add passwords to the "pass" password manager. But my attempts fail with "no public key" GPG errors. Why? Posted: 17 Jul 2022 04:38 PM PDT I am trying to install Pass: the standard Unix password manager, however, when I try to add passwords to the appliation I get these errors gpg: Kelly's Passwords: skipped: No public key gpg: [stdin]: encryption failed: No public key GPG Public Keys? When I type in the command gpg --list-keys I get: /home/khays/.gnupg/pubring.gpg ------------------------------ pub 2048R/64290B2D 2012-11-05 uid Kelly Hays <hays.kelly@gmail.com> sub 2048R/0DF57DA8 2012-11-05 I am a little lost of how to remedy this, any ideas? |
Monitor directory and if a file is requested then rsync on demand Posted: 17 Jul 2022 06:00 PM PDT Is there a tool that monitors a certain directory and if a program tries to access a file in that directory, the program loads that file from another place transparently for any application that tries to load that file? The background is that I have a local development environment for a large server application. At the moment, I sync all the files created by the users on the production system from time to time via rsync to my local machine. But the amount of data has become too big. I can not store the several hundreds of gigabytes from the production environment on my local dev machine. Is there a way of mimicking the files from the external system and load/sync them only from the external system if they are really needed? Writing changes to these "monitored" directories should nevertheless take only place locally. |
No comments:
Post a Comment