site  contact  subhomenews

Global IP TV Panel fixed

July 05, 2024 — BarryK

The Multimedia menu has an entry "TV Panel", which plays live streaming videos off the Internet. In Easy 6.0 and 6.0.2, the videos pause momentarily every few seconds, which makes them virtually unwatchable.

TV Panel uses the 'mpv' utility to perform the download, and mpv uses 'youtube-dl' as the download backend to get them from YouTube. Live streaming videos from YouTube are downloaded in segments. mpv downloads a segment, but doesn't read ahead, so the next segment isn't immediately ready, hence the pause. That's my understanding anyway.

I did a lot of online searching. At one stage suspected ffmpeg. I made one discovery early-on; VAAPI is broken. The 'intel-vaapi-driver' package is required; it was missing. Fixed that and continued the saga.

It took a couple of days, but eventually found that the version of mpv in EasyOS, 0.35.1, is the culprit. I have compiled 0.60.0 and TV Panel now plays videos smoothly. The caching shows that it reads ahead and smoothly transitions from one segment to the next.

Global TV Panel is created by forum member ETP. He reported the problem to me a few days ago. His forum thread:   

Tags: easy

Fix pupdialog fail for non-English text

July 03, 2024 — BarryK

Forum member Caramel reported the problem, with a fix:

I forgot about it, just remembered today, and have applied the fix to usr/bin/pupdialog   

Tags: easy

Predetermined uid and gid

July 03, 2024 — BarryK

Running each app as its own user brings challenges. There is one problem that has "flown under the radar", until recently; I hit it with Firefox.

What can happen is that you create an app, say Firefox, to run as its own user, which will be "firefox". There are two scripts that handle this creation; /usr/local/clients/setup-client and /usr/local/clients/create-client-environment. The busybox 'addgroup' and 'adduser' utilites are run, and the utilities are allowed to assign user-id and group-id numbers. This is the problem.

These uid and gid numbers are assigned so as not to clash with any numbers already existing in /etc/passwd and /etc/group

The potential situation is that /home/firefox may have been previously created, with all folders and files in it assigned particular uid and gid. However, those entries may not exist in /etc/passwd and /etc/group. It is then possible that addgroup and adduser utilities will run again, to create entries in those files, but the uid and gid will most likely be different from what is assigned to the folders and files in /home/firefox

The scripts do check this, and will correct all folders and files in /home/firefox, but that is an extra step and I would rather it didn't require that fix.

I hit this problem with Firefox because I do a lot of messing around; the abovementioned fix didn't happen due to the messing around. It is probably not an issue that most users will encounter. But the fact that is can potentially happen is cause for concern. So I have come up with a solution; predetermined uid and gid.

What those scripts now do is determine uid and gid in advance, using this formula:

# A=chrome
# echo 2$((64#$A)) | head -c 5 | xargs -I XXX printf %-5s XXX | tr ' ' 0
# A=ungoogled
# echo 2$((64#$A)) | head -c 5 | xargs -I XXX printf %-5s XXX | tr ' ' 0
# A=claws
# echo 2$((64#$A)) | head -c 5 | xargs -I XXX printf %-5s XXX | tr ' ' 0
# A=firefox
# echo 2$((64#$A)) | head -c 5 | xargs -I XXX printf %-5s XXX | tr ' ' 0
# A=chromium
# echo 2$((64#$A)) | head -c 5 | xargs -I XXX printf %-5s XXX | tr ' ' 0

In the scripts, it is assigned as variable $UGID:

busybox addgroup -g ${UGID} ${APPname}
busybox adduser -u ${UGID} -h /home/${APPname} -G ${APPname} -D -H ${APPname}

Theoretically of course, there could be a clash, two different names generating the same number, but very unlikely.   

Tags: easy

Streamripper helper in StreamTuner2

July 03, 2024 — BarryK

I posted about StreamTuner2 yesterday:

Recording was a problem. When I clicked on the "Record" button, a terminal window would briefly pop up, immediately disappear. I found out later that most of the radio stations fail to record, that is, streamripper fails.

The window flashing momentarily is not very helpful. Fortunately, Axel Hahn has come to the rescue:

I have integrated this into the StreamTuner2 PET. Note, the PET is also customized for EasyOS. Now, if there is a fail to record, the terminal window stays up, with diagnostic information. This one works, and records the songs:


I just now checked -- can record and play at the same time.

Have decided StreamTuner2 will be in the next release of EasyOS. Will keep the old pupRadio, as it is very small and some people like it.    

Tags: easy

Gnome Radio and StreamTuner2

July 02, 2024 — BarryK

The guys have been discussing Internet radio players in the forum:

Easy has the venerable pupRadio, created by 01micko. Have this for years, but it is extremely basic. Time to update.

Gnome Radio looks nice, with a map of the world, showing where the audio streamers are transmitting from:

I compiled it in OpenEmbedded, as well as dependencies. Created a new recipe:

Ran it from a terminal, it kind of works but spits out so many errors, and can't get it to actually play anything.

Next up, checked out StreamTuner2


Applied a python3 patch from Debian. Works OK. Uses Audacious to play the streams, and streamripper to record. Have created a PET.

Looks like it can stream video as well, but I haven't checked that out.

Have not yet decided which one will be builtin to the next release of Easy. More to checkout.    

Tags: easy

SpaceFM file manager compiled in OE

June 30, 2024 — BarryK

Continuing the run of compiling file managers, here are recent posts:

We are discussing file managers in this forum thread:

SpaceFM was requested, so I have compiled it in OpenEmbedded, see github:

...the patches were got from Debian.

In PKGget, update the "oe-scarthgap" database and it can be installed. Note, it reports missing dependency 'eject'; however, there is already an 'eject' utility in EasyOS so no need to install it.

When I ran it, the window colours were odd. You have to go into the "Preferences..." and untick the special colours signifying root user -- very odd I reckon.

SpaceFM homepage:    

Tags: easy

Thunar filemanager compiled in OE

June 29, 2024 — BarryK

I posted earlier today about PCmanFM and Midnight Commander:

On a run with file managers, and have now added Thunar. This is part of the XFCE package suite.

In PKGget, you will need to click on the Configure button and update the package databses. Then in PKGget, in the "oe-scarthgap" repository, in "Filesystem" category, you will find Thunar. Also two plugins, 'thunar-archive-plugin' and 'thunar-media-tags-plugin'.

I have briefly tested Thunar, seems OK. Haven't tried the plugins.

We are discussing file managers in the forum here:

Thunar homepage here:

Try it out, let me know in the forum.

Note, there is an optional dependency 'gvfs' that when installed will add some extra functionality.   

Tags: easy

PCmanFM, MC, NetSurf packages

June 29, 2024 — BarryK

XFE file manager is being discussed on the forum:

It would be good to have more file managers in the package repository, so I have compiled PCmanFM and Midnight Commander (MC) in OpenEmbedded. The former is a gtk+3 app, the latter an ncurses console app.

These are now online. Run PKGget and click the button to update the package databases. In the "oe-scarthgap" repository, in the "Filesystem" category, you will find PCmanFM and MC. MC requires no extra dependencies, PCmanFM requires menu-cache, libfm and libfm-extra.

After installation, you will find PCmanFM in the "Filesystem" category of the menu. MC doesn't have a menu entry; you will have to open a terminal and type "mc".

Here are short reviews of file managers:

...this is page-2, showing ROX-Filer and PCmanFM.

Compiling of NetSurf web browser is also discussed in the forum. It has been made into a PET package, found in the "Filesystem" category of the "pet-scarthgap" repository in PKGget.

Homepage of NetSurf:  

Tags: easy