Saturday, July 31, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


How to Migrate Neovim from Windows to Linux

Posted: 31 Jul 2021 09:42 AM PDT

This seems like a pretty simple question, but I can't find a solution. I have Neovim configuration on Windows with a custom init.vim as well as plugins and color schemes. I am able to get Neovim on Ubuntu Linux to load my init.vim file, but there are many errors. Some of them occur because it can't find the plugins and colorschemes invoked in init.vim. I copied the folder titled share from Windows into ~/.local/share/nvim on Linux, but the errors persist.

What do I have to change to get my windows configuration working on Linux?

Is runit safe nowadays?

Posted: 31 Jul 2021 09:21 AM PDT

Runit is not active in development: it's last release was 7 years ago, according to the wikipedia page. This makes me worry about whether it is safe, and i wasn't able to find anything online. My thought is that a old software that is not updated is more likely to have known exploits, and that without updates those won't be fixed. However i might be misunderstanding how things work...

Why is runit still used if it hasn't been updated in years? Are there still patches made for it in case exploits are found or something?

`date` command doesn't have an option for ISO-8601 week format input?

Posted: 31 Jul 2021 08:32 AM PDT

I occasionally use the date command to check the current or a future date's week number based on the ISO-8601 week-date calendar. To do this I simply use: date +%V to check the current ISO week number and date -d "2021-12-25" +%V to check the ISO week number of another date (Christmas day in this case).

However, it seems like it is not possible to do this in reverse. That is, get the date in "month-date" format given a date in "week number" format. For example, if I run date -d "2021-W50-3", it generates an error saying the format is not supported. Why is it not and is there any way to input or store dates using this format?

bash on pi3B+ stretch; shell script to fork ' program &' --bash cannot find file. It IS there

Posted: 31 Jul 2021 08:53 AM PDT

Have tried variations with/without ' and &, spelling full path, adding to $PATH. The script cannot seem to find hyperping, tho it is in the same directory as the script which is calling it. Executing as user pi. Pulling my hair OUT!! Actual line in script

if [ $(/usr/bin/pgrep -c hyperping) -eq 0 ]; then './hyperping &'; fi  

"hyperping" is in PATH [verified via $PATH, also via removing &]

***pi@pi20:~/tests $ ls -lt hyperping  -rwxr-xr-x 1 pi pi 692 Jul 30 13:10 hyperping***  

"hyperping" runs fine called independently.

output of bash with "set -xv"

***/++ /usr/bin/pgrep -c hyperping  + '[' 0 -eq 0 ']'  + '/home/pi/tests/hyperping &'  ./at7PM: line 33: /home/pi/tests/hyperping &: *No such file or  directory*/****   

linux apt broken

Posted: 31 Jul 2021 05:58 AM PDT

so im new to linux and was trying to download everything I needed. the first issue I ran into was getting the architecture i386. There was some echo codes and when something was fetching files, the terminal crashed. i had moved files to my Linux folder on my Chromebook and then deleted them. Now this is what I keep getting

yfrsmooth@penguin:~$ sudo apt update  N: Ignoring file 'mono-official-stable.listsud' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension  E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official-stable.list  E: The list of sources could not be read.  yfrsmooth@penguin:~$ sudo rm 'mono-official-stable.listsud'  rm: cannot remove 'mono-official-stable.listsud': No such file or directory  

How do I fix this issue so I can run Linux properly?

Ubuntu, Virtualbox - How do I force a refresh rate value?

Posted: 31 Jul 2021 07:04 AM PDT

Previously, when I was using Lubuntu the refresh rate was set to 59.94Hz and everything playback wise was flawless. Considering that everything is identical, same Guest addition installed, same browser, same video, etc.

Now with Ubuntu, it is having problems with video playback synchronization, skipping frames at a regular interval causing a frame or two to freeze. I highly suspect it's due to the refresh rate, if not, at least I can eliminate that as a possibility and try to tweak other settings.

With Ubuntu, how do I know my refresh rate and how do I change it?

umount bash: warning: shell level (1000) too high, resetting to 1

Posted: 31 Jul 2021 05:52 AM PDT

I can mount drives and images, but I can't unmount them. I get 'shell level too high'. I expect this normally happens when a script calls itself.

Is there some script that is run by umount? I can't figure out why this is happening.

# alias umount  -bash: alias: umount: not found  # mount -o ro sda1.img /tmp/mm  # umount /tmp/mm  /bin/bash: warning: shell level (1000) too high, resetting to 1  /bin/bash: warning: shell level (1000) too high, resetting to 1  /bin/bash: warning: shell level (1000) too high, resetting to 1  /bin/bash: warning: shell level (1000) too high, resetting to 1  (repeat forever)  

Edit: Fixed incorrect copy/paste. umount is not aliased

Application Screen sharing instead of sharing my whole screen?

Posted: 31 Jul 2021 08:48 AM PDT

Hey guys i cannot find a way to share my application only i have to live my whole screen if i have to screen share on discord and Skype , how to share screen of a specific application on Linux

tried it on firefox to screen share an application but there wasn't any , had to share whole screen due to that

how to fix this issue

I am using Garuda Linux Kde dragonized version

Operating System: Garuda Linux KDE Plasma Version: 5.22.4 KDE Frameworks Version: 5.84.0 Qt Version: 5.15.2 Kernel Version: 5.13.6-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 6 × Intel® Core™ i5-8600K CPU @ 3.60GHz Memory: 23.3 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630

How to obviate the problem of no spaces when joining lines in ed

Posted: 31 Jul 2021 06:00 AM PDT

In ed it is easy to join lines together. For example,

12,13j joins lines 12 and 13

-1,.j joins the line before to the current line

However, ed does not add a space between the joined lines, and therefore one is often left with this situation:

Line 1  Line 2   >Line1Line2  

One could first add a space and then join the lines, as in,

1g/$/s// /\  1,2j  

but this is somewhat cumbersome.

Does anyone have a more elegant solution?

How to get grep to exit immediately when command is received from netcat?

Posted: 31 Jul 2021 06:25 AM PDT

I want to open a port and listen for a command, and when that command comes in, immediately run a script.

The best I've come up with is (the echo is a substitute for my script):

nc -lk 9999 | grep -q runcommand && echo "running command"  

, then I run this to test:

echo runcommand | nc localhost 9999  

Unfortunately it only seems to echo the text on the second time I send "runcommand"??

How can I make grep exit immediately, so my script will run immediately?

Debian systemd firewall or firewalld?

Posted: 31 Jul 2021 08:17 AM PDT

I have run into some issues with the Firewall configuration for Debian 10 Buster:

[agp@debian10 ~]$ systemctl status firewalld  ● firewalld.service - firewalld - dynamic firewall daemon     Loaded: loaded (/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)     Active: active (running) since Sat 2021-07-31 07:12:13 CEST; 16min ago       Docs: man:firewalld(1)   Main PID: 721 (firewalld)      Tasks: 2 (limit: 4915)     Memory: 43.6M     CGroup: /system.slice/firewalld.service             └─721 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid  [agp@debian10 ~]$ systemctl status nftables.service  ● nftables.service - nftables     Loaded: loaded (/lib/systemd/system/nftables.service; enabled; vendor preset: enabled)     Active: active (exited) since Sat 2021-07-31 07:12:06 CEST; 16min ago       Docs: man:nft(8)             http://wiki.nftables.org    Process: 387 ExecStart=/usr/sbin/nft -f /etc/nftables.conf (code=exited, status=0/SUCCESS)   Main PID: 387 (code=exited, status=0/SUCCESS)   

However, when checking systemd it reports "degraded":

● debian10      State: degraded      Jobs: 0 queued    Failed: 1 units    

and checking the problem:

[agp@debian10 ~]$ systemctl | grep fail  ● firewall.service               loaded failed failed    Add Firewall Rules to iptables                  

I checked several different forums and Debian Wiki pages, only to become more confused by deprecated information regarding iptables set-ups and nftable configurations which has superceded iptables in Debian Buster.

But here is were my question start:

Why are there 2 firewall services on my system, and what are their functions?

[agp@debian10 ~]$ systemctl status firewall  ● firewall.service - Add Firewall Rules to iptables     Loaded: loaded (/etc/systemd/system/firewall.service; enabled; vendor preset: enabled)     Active: failed (Result: exit-code) since Sat 2021-07-31 07:12:10 CEST; 2h 35min ago    Process: 720 ExecStart=/etc/firewall/enable.sh (code=exited, status=203/EXEC)   Main PID: 720 (code=exited, status=203/EXEC)  [agp@debian10 ~]$ systemctl status firewalld  ● firewalld.service - firewalld - dynamic firewall daemon     Loaded: loaded (/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)     Active: active (running) since Sat 2021-07-31 07:12:13 CEST; 2h 35min ago       Docs: man:firewalld(1)   Main PID: 721 (firewalld)      Tasks: 2 (limit: 4915)     Memory: 44.9M     CGroup: /system.slice/firewalld.service             └─721 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid  

Is the firewall.service something to configure with iptables or will this conflict with the working firewalld.service set up?

I appreciate your considerations, suggestions and attention. Cheers!

Why does drive image show different start partition free size?

Posted: 31 Jul 2021 09:10 AM PDT

I made an image of /dev/sdc. The free space before the first partition isn't reporting the same byte sizes, but why?

The start position is reported as 1024B on the drive and 16384B on the image?

# parted /dev/sdc u b p free  Model: ASMT 2105 (scsi)  Disk /dev/sdc: 500107862016B  Sector size (logical/physical): 512B/512B  Partition Table: msdos  Disk Flags:     Number  Start     End            Size           Type     File system  Flags          1024B     1048575B       1047552B                Free Space   1      1048576B  500107862015B  500106813440B  primary  btrfs                                                                                  # parted d1/drive1.sdc.img u b p free  Model:  (file)  Disk /mnt/4/d1/drive1.sdc.img: 500107862016B  Sector size (logical/physical): 512B/512B  Partition Table: msdos  Disk Flags:     Number  Start     End            Size           Type     File system  Flags          16384B    1048575B       1032192B                Free Space   1      1048576B  500107862015B  500106813440B  primary  btrfs  

Edit: I created the image like so

# pv /dev/sdc > d1/drive1.sdc.img  

Edit2: After running md5sum on both, they show same hash

# dd if=/dev/sdc | md5sum; pv d1/drive1.sdc.img | md5sum  

(Apple Silicon+UTM) aarch64 image-based VM deployment

Posted: 31 Jul 2021 06:25 AM PDT

I'm running my aarch64-Fedora server in UTM on an M1 Mac via the Apple hypervisor by using aarch64 as the QEMU architecture option in UTM.

I know that for SD cards, these images can simply be dd'd to the device, and then enlarged later, but what is the recommended procedure in my case?

So far, I know I can extract the .raw disk image and run it right away in UTM, but I'd like to use the qcow2 format for the VM disk, and a larger disk size than simply 'whatever the image extracts to.'

Can I create the .qcow2 disk image with UTM at a larger size, say, 40GB and then dd the Fedora image to the .qcow2 file like 'dd if=fedoraimage.raw of=/directory/place/virtualmachineimage.qcow2' from the command line within Big Sur, or is there something I'm missing, here?

From USB wifi dongle interface determine vendor: product ID

Posted: 31 Jul 2021 09:49 AM PDT

I am in the process of developing a bash script which automates the addition of a USB wifi dongle to a virtual machine (QEmu/KVM virtualization) and therefore to add a wifi key to a VM.

[edit]This VM is for the moment with Debian Buster distro[/edit]

From the host when I plug in my TP-Link TL-WN823N USB dongle, the following interface is added :

user@host:~$ ip -o link | grep wlx  57: wlx123456789012: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000\    link/ether 2a:51:d5:12:34:56 brd ff:ff:ff:ff:ff:ff  

When I list the USB devices I get :

user@host:~$ lsusb | grep TP-Link  Bus 002 Device 009: ID 2357:0109 TP-Link TL WN823N RTL8192EU  

It is therefore identified by the wlx123456789012 interface, its vendor:product ID is 2357:0109 and is device #9 of USB bus #2.*

How to determine for sure vendor:product ID when we only know the name of the interface ?

@meuh suggestion

user@host:~$ ls --format=commas /sys/class/net/wlx123456789012/device  authorized, bAlternateSetting, bInterfaceClass, bInterfaceNumber,  bInterfaceProtocol, bInterfaceSubClass, bNumEndpoints, driver,  ep_01, ep_02, ep_03, ep_04, ep_05, ep_06, ep_81, ieee80211, leds,  modalias, net, power, subsystem, supports_autosuspend, uevent  

So no vendor nor device file directly in this location

But that inspired me, so I tried :

    user@host:~$ grep -iEr "2357|0109" /sys/class/net/wlx123456789012/device  ...  /sys/class/net/wlx123456789012/device/modalias:usb:v2357p0109d0101dc00dsc00dp00icFFiscFFipFFin00  /sys/class/net/wlx123456789012/device/uevent:PRODUCT=2357/0109/101  /sys/class/net/wlx123456789012/device/uevent:MODALIAS=usb:v2357p0109d0101dc00dsc00dp00icFFiscFFipFFin00  

So in /sys/class/net/wlx123456789012/device, there are :

modalias : usb:v2357p0109d0101dc00dsc00dp00icFFiscFFipFFin00

uevent : PRODUCT=2357/0109/101

So I found traces but the fact that @meuh gives me another localization makes me doubt that the solution (especially if I change the version of the distro or just the distro)

Replacing one of the repeated words

Posted: 31 Jul 2021 09:09 AM PDT

Hi Im new to this so please bear with me. I have a .txt file where I want to replace a word but the problem is, that word is being repeated over and over again (lets assume you have million of lines like this)

TOPIC:  APPLE  APPLE  APPLE  BANANA  

I want to replace the first occurence of Apple to Mango like this

TOPIC:  MANGO  APPLE  APPLE  BANANA  

Is there a way to do this through sed or awk specifically(from what I understand sed can be used to replace words but not multiple lines of inputs - in my case I just want to replace the very first word) btw if its doable through other tools thats fine as well

cannot sniff the packet going through openwrt network bridge

Posted: 31 Jul 2021 09:14 AM PDT

What I am doing is setting up a spare openwrt as a packet sniffer.

I have setup like this:

From MY PC, I am using wireshark to capture any packet going through the target board. Currently, my home router IP is 10.10.10.1, my PC is 10.10.10.50 and the openwrt bridge is 10.10.10.80 and my target board is up and has the 10.10.10.28

Using wireshark to observe the openwrt, I can see packet of the 10.10.10.80 but not anything from 10.10.10.28. I have tried using my PC to ping the 10.10.10.28, and I can see that there is the traffic going from my pc to 10.10.10.28 while there is not any captured traffic from 10.10.10.28. Do I setup the OpenWRT wrongly?

I can confirm that the Target device is up and running smoothly, I have run application on it. I just cannot sniff the packet from it for debugging. All the setup is wired network.

Edit: My home router is the gateway and it is running DHCP, the OpenWRT bridge is the DHCP client of the home router. The OpenWRT is connected has one port connected to home router, and one port connected with my Target board (also the dhcp client of my home router). On the Openwrt, I installed tcpdump and I want to capture the port connected with the Target board. Yes, the ping working but I cannot get all the traffic.

Edit 2: May be am overcareful, my net work is just 10.10.10.1/24. the reason that I place the target board and me is at separated room lmao. The OpenWRT device is EspresssoBin V5, I am flashing the OpenWrt 19.07.4.

Edit 3: I attached the dump from ip link in Openwrt

root@OpenWrt:~# ip link  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00  2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 532      link/ether f0:ad:4e:03:83:ef brd ff:ff:ff:ff:ff:ff  3: wan@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN mode DEFAULT group default qlen 1000      link/ether f0:ad:4e:03:83:ff brd ff:ff:ff:ff:ff:ff  4: lan0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-bridge state UP mode DEFAULT group default qlen 1000      link/ether f0:ad:4e:03:83:ec brd ff:ff:ff:ff:ff:ff  5: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-bridge state UP mode DEFAULT group default qlen 1000      link/ether f0:ad:4e:03:83:ed brd ff:ff:ff:ff:ff:ff  7: br-bridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000      link/ether f0:ad:4e:03:83:ee brd ff:ff:ff:ff:ff:ff  root@OpenWrt:~#     

lan 0 is connected to my target device, lan1 is connected to my home router.

and from ip -br address

root@OpenWrt:~# ip -br address  lo               UNKNOWN        127.0.0.1/8 ::1/128   eth0             UP               wan@eth0         LOWERLAYERDOWN   lan0@eth0        UP               lan1@eth0        UP               br-bridge        UP             10.10.10.80/24 fdbd:8391:18c0::1/60 fe80::f2ad:4eff:fe03:83ee/64   root@OpenWrt:~#   

Edit 5: Solution I have found a solution on (this link)[https://forum.openwrt.org/t/passive-tap-hub-and-ethernet-bridge/51178/21]. I am not the expert in networking and OpenWrt, so I left the explanation to the expert. I short, after applying these 2 line, I can see the traffic from my target hardware, but as I said, I don't know the reason why it works.

# bridge vlan add vid 200 dev lan1 pvid untagged master  # bridge vlan add vid 100 dev lan0 pvid untagged master  

shutdown, but still allow new logins

Posted: 31 Jul 2021 08:11 AM PDT

I have a Linux VM on AWS in EC2 that starts up, performs a task, and then shuts itself down. I am issuing the shutdown command like this:

shutdown -h 5  

I have a 5 minute delay to give myself time to ssh into the server and cancel the shutdown if I want to do something with the server.

The problem I have is once I issue the shutdown command, Linux will no longer allow new logins. There doesn't seem to be anything in the man page to allow it to issue a shutdown, but still allow new logins.

Is there a way to issue this shutdown command, but still allow a new ssh login?

Ansible Compare INI Local against Remote

Posted: 31 Jul 2021 05:24 AM PDT

I have a Java Properities file on my Ansible Server and remote machine

Server: /opt/deployment/application/build.properities

app=application  build=1.0.15  etc=etc  

On the remote machine is the same file (if it's installed) which could contain a newer or older version

Remote: /opt/application/build.properities

app=application  build=1.0.13  config1=config  etc=etc  

Can I use ansible.builtin.ini to compare the build number on my remote machine to the server and:

if server > remote - do my upgrade block

if remote == "" (file does not exist) - do my install block

otherwise do nothing

It wasn't clear to me if ansible.builtin.ini was targeting the local server or the remote machine (I probably missed something). Both machines are Ubuntu Linux if that makes a difference.

What to do if easytag v. 2.4.2 corrupts flac files when saving an image to the metadata?

Posted: 31 Jul 2021 09:15 AM PDT

I experienced that my easytag version 2.4.2 has a bug which lets it corrupt flac files when trying to save a picture to them. It seems to depend on the size of the picture, smaller ones might work (e.g. below 30kB).

Since I am not able to install the latest version 2.4.3. and I also don't know if this would solve the problem I need a way to solve this.

I need to use sed in Linux to find a portion of a line in XML and update a value in it?

Posted: 31 Jul 2021 05:39 AM PDT

I have a requirement to update a variable value in XML with a fixed value once there is a partial match in XML using sed on Linux.

Example:

Input value:

<Table tableName="Data" primaryKey="PGPU_ID=1234" DBaction="A" version="14.1,20.4,4.30,4.40,5.00,5.30,5.40,5.41,6.00,6.01,6.02,6.03,6.04">  

The requirement is to update the version value with only 6.02 whenever "6.02" is there in version value. So, output would be like:

<Table tableName="Data" primaryKey="PGPU_ID=1234" DBaction="A" version="6.02">  

Note: tableName="Data" is fixed value but PGPU_ID, DBaction and version can be different. So whenever tablename ="Data" and version is 6.02, then the sed command should replace the version with only 6.02 keeping other values exactly the same.

How can I use hist_ignore_dups to ignore duplicate lines in zsh with extended_history enabled?

Posted: 31 Jul 2021 07:16 AM PDT

When enabling hist_ignore_dups in zsh, I find there are many duplicate lines in $HISTFILE.

(Note: HISTFILE="$HOME/.zsh_history")

$ cat $HISTFILE    : 1593874281:0;ls  : 1593874287:0;l  : 1593874288:0;ls  : 1593874291:0;l  

I think hist_ignore_dups should solve this. (HIST_IGNORE_DUPS http://zsh.sourceforge.net/Doc/Release/Options.html).

But duplicate lines still appeared in $HISTFILE, even though hist_ignore_dups is already enabled by ohmyzsh with history plugin.

## History command configuration  setopt extended_history       # record timestamp of command in HISTFILE  setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE  setopt hist_ignore_dups       # ignore duplicated commands history list  setopt hist_ignore_space      # ignore commands that start with space  setopt hist_verify            # show command with history expansion to user before running it  setopt share_history          # share command history data  

I suspect that extended_history and hist_ignore_dups are in conflict.

unable to curl on ip address however localhost is working fine

Posted: 31 Jul 2021 09:01 AM PDT

If i do curl on localhost then its working fine.However if i replace with system ip address its giving error. I have entry for ip address in etc/hosts

curl -v https://<ip address>:9200  * About to connect() to <ip address> port 9200 (#0)  *   Trying <ip address>... Connection refused  * couldn't connect to host  * Closing connection #0  curl: (7) couldn't connect to host  

my /etc/host/

127.0.0.1 localhost  <ip address> Load-testing-1-4  

Mounting BTRFS in RHEL 8

Posted: 31 Jul 2021 06:46 AM PDT

I had a luks volume /dev/sda4 and the filesystem inside it is a btrfs file system. But according to RedHat,

12.1.1. Btrfs has been removed  The Btrfs file system has been removed in Red Hat Enterprise Linux 8. This includes the following components:    The btrfs.ko kernel module  The btrfs-progs package  The snapper package  You can no longer create, mount, or install on Btrfs file systems in Red Hat Enterprise Linux 8. The Anaconda installer and the Kickstart commands no longer support Btrfs.  

I tried installing btrfs-progs rpm package as it's not in redhat repo. But it requires lot's of other dependencies which are also not present in RHEL repository and those packages are library packages that has more dependencies.

My current options are,

  1. Downgrading to RHEL 7 which supports btrfs
  2. Boot from a live media and mount the file system, take backup, reformat the partition/block with the filesystem that suppport RHEL 8.
  3. Changing to other linux distribution

I can't choose these options as I am not the decision maker.

So is there any other smart/lazy way of mounting the filesystem?

Cannot render non-ASCII characters with ffmpeg's drawtext

Posted: 31 Jul 2021 07:07 AM PDT

Using the drawtext filter in ffmpeg I am unable to use anything but ASCII characters.

This command creates a five second test video, as expected (nothing pretty):

ffmpeg -f lavfi -i testsrc -to 5 -vf "drawtext=text='AT 05 ーポン æ"¢ð':fontcolor=white" test.mpg  

But the output fails to render any non-ASCII characters:

FFMPEG

Note from left to right:

AT - Double spaced characters

05 - Simple numbers

ーポン - CJK characters

æ"¢ð - AltGr + a,b,c,d in my locale (en_GB.UTF-8)

At first I assumed the font was at fault, but I've checked numerous fonts and they have the relevant glyphs. Indeed my entire system has no problems with these characters at all. I then assumed it must be ffmpeg but I tried the following:

convert -background black -size 800x480 -fill "#ff0080" -family "Ubuntu Mono" -pointsize 72 -gravity center label:'AT 05 ーポン æ"¢ð' output.png  

The result being:

convert

So I'm back to assuming there is something wrong with my environment. I've tried on Ubuntu Trusty and Ubuntu Xenial but the results are the same.

$ locale  LANG=en_GB.UTF-8  LANGUAGE=en_GB:en  LC_CTYPE="en_GB.UTF-8"  LC_NUMERIC="en_GB.UTF-8"  LC_TIME="en_GB.UTF-8"  LC_COLLATE="en_GB.UTF-8"  LC_MONETARY="en_GB.UTF-8"  LC_MESSAGES="en_GB.UTF-8"  LC_PAPER="en_GB.UTF-8"  LC_NAME="en_GB.UTF-8"  LC_ADDRESS="en_GB.UTF-8"  LC_TELEPHONE="en_GB.UTF-8"  LC_MEASUREMENT="en_GB.UTF-8"  LC_IDENTIFICATION="en_GB.UTF-8"  LC_ALL=    $ ffmpeg  ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers    built with gcc 5.4.1 (Debian 5.4.1-5) 20170205    configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg    libavutil      55. 34.101 / 55. 34.101    libavcodec     57. 64.101 / 57. 64.101    libavformat    57. 56.101 / 57. 56.101    libavdevice    57.  1.100 / 57.  1.100    libavfilter     6. 65.100 /  6. 65.100    libswscale      4.  2.100 /  4.  2.100    libswresample   2.  3.100 /  2.  3.100    libpostproc    54.  1.100 / 54.  1.100    $ convert -version  Version: ImageMagick 6.7.7-10 2017-05-26 Q16 http://www.imagemagick.org  Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC  Features: OpenMP  

I don't know where else to look given that my locale appears to be correct, and any font I use correctly renders the font, but when passed to either ffmpeg or convert the text shown is useless.

I've done the usual hours and hours of Googling to no avail. I'm amazed nobody else has seen this problem before me.

Can anyone shed any light?

How can we predict when the next Debian release will be out?

Posted: 31 Jul 2021 06:11 AM PDT

Is there a way to predict when the next release will be out? I read somewhere that it has to do with number of bugs remaining in the testing branch. Could someone please explain how this works and when the next release will happen based on what variables?

How to reset linux centOS 6.0 keyboard shortcuts with custom changes to default one?

Posted: 31 Jul 2021 06:05 AM PDT

On Single Desktop Environment....

I created some custom shortcuts, but currently I want to revert all the changes to default settings (which having no custom changes).

Example: created like CTRL + N = new terminal and later changed it to CTRL + T

so here, CTRL + N is overridden with some conflicts. Where gedit CTRL + N for opening a new document is affected (not working at all).

I found some related questions on this, but none resolved my purpose.

Actually, if there are no ways to reset entire keyboard shortcut keys in CentOS, please suggest a way to rectify CTRL + N to work fine for gedit again?

How to install PostgreSQL 9.3 in FreeBSD jail?

Posted: 31 Jul 2021 07:27 AM PDT

I configured virtual NICS using pf, and a jail for FreeBSD using qjail create pgsql-jail 192.168.0.3.

When I tried to install PostgreSQL 9.3 using port collection, it shows strange message at first.

pgsql-jail /usr/ports/databases/postgresql93-server >make install  ===> Building/installing dialog4ports as it is required for the config dialog  ===>  Cleaning for dialog4ports-0.1.5_1  ===> Skipping 'config' as NO_DIALOG is defined  ====> You must select one and only one option from the KRB5 single  *** [check-config] Error code 1    Stop in /basejail/usr/ports/ports-mgmt/dialog4ports.  *** [install] Error code 1    Stop in /basejail/usr/ports/ports-mgmt/dialog4ports.  ===> Options unchanged  => postgresql-9.3.0.tar.bz2 doesn't seem to exist in /var/ports/distfiles/postgresql.  => Attempting to fetch ftp://ftp.se.postgresql.org/pub/databases/relational/postgresql/source/v9.3.0/postgresql-9.3.0.tar.bz2  postgresql-9.3.0.tar.bz2                        1% of   16 MB   71 kBps  

Anyway, installation continues, so I waited. I chose all default options for all option dialogs. And at the end of the process, I saw it finally failed with this message.

====> Compressing man pages  ===>  Building package for pkgconf-0.9.3  Creating package /basejail/usr/ports/devel/pkgconf/pkgconf-0.9.3.tbz  Registering depends:.  Registering conflicts: pkg-config-*.  Creating bzip'd tar ball in '/basejail/usr/ports/devel/pkgconf/pkgconf-0.9.3.tbz'  tar: Failed to open '/basejail/usr/ports/devel/pkgconf/pkgconf-0.9.3.tbz'  pkg_create: make_dist: tar command failed with code 256  *** [do-package] Error code 1    Stop in /basejail/usr/ports/devel/pkgconf.  *** [build-depends] Error code 1    Stop in /basejail/usr/ports/textproc/libxml2.  *** [install] Error code 1    Stop in /basejail/usr/ports/textproc/libxml2.  *** [lib-depends] Error code 1    Stop in /basejail/usr/ports/databases/postgresql93-server.  *** [install] Error code 1    Stop in /basejail/usr/ports/databases/postgresql93-server.  

I have no idea why this fails. Errors at beginning seems I have something wrong with dialog4ports. And errors at last seems installer cannot write to ports file tree. AFAIK, the ports files are read-only shared from host system.

What's wrong with my jail? How can install PostgreSQL 9.3 in my jail?

No comments:

Post a Comment