Woof CE Debian Stretch and Devuan Ascii Based Development

A home for all kinds of Puppy related projects
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#461 Post by 01micko »

OscarTalks wrote:..

However, I can not run openvpn because /dev/net/tun is missing, in fact there is no /dev/net directory so I wonder what the (networking?) problem is.

I have this openvpn-2.4.1 compiled and working in earlier Puppies Wheezy, Slacko 5.7 and Precise.

Code: Select all

modinfo tun && modprobe tun || echo "tun not found"
:?:
Puppy Linux Blog - contact me for access

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#462 Post by OscarTalks »

Hi Micko,

Seems that modprobe tun does load tun (even though in a google search people were saying that it did not). Not sure why it doesn't auto-load at boot, but I suppose it can be loaded via boot manager or something if necessary. I have added tun to MODULESCONFIG in the remaster and openvpn is working fine. I still wonder about this openssl libraries and headers situation in Stretch though.
http://smokey01.com/OscarTalks/openvpn- ... tretch.pet
Oscar in England
Image

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#463 Post by musher0 »

Hello all.

I've been studying mpv a bit, and to my surprise, I found out that it's quite
a powerful media player -- except on the face of it, it doesn't look like it is.

According to the docs, the configuration file mpv.conf should be in
/root/.mpv, NOT in /root/.config/mpv. IMO, it should be corrected at the
woof-CE level. For now, the user will have to do it him/her/self.

Here is a launcher script for mpv that hopefully you will find handy:

Code: Select all

#!/bin/sh
# /usr/local/bin/mpv.sh
####

W="`xwininfo -root | awk '$1=="Width:" { print $2 / 5 }'`"
H="`xwininfo -root | awk '$1=="Height:" { print $2 / 6 }'`"
# 1/5 of width, 1/6 of height, so as to fit monitors of any size.

mpv --player-operation-mode=pseudo-gui --geometry=600x300+$W+$H
# --audio-display=yes # doesn't work on emply
# -- %U
Of course if we launch mpv from a script, we have to edit the Exec lines
of its *.desktop file like so:

Code: Select all

# TryExec=mpv
Exec=mpv.sh
Result is shown below.

Finally our DPupStretch7 does not offer the man file for mpv. In the
meantime, here is ubuntu's.
Edit: I have also attached a pet archive of it, extracted from the current
Stretch deb archive.

IHTH. BFN.
Attachments
mpv_0.23.0-2+b2_i386_man.pet
I think this man page should be included, because mpv is a complex program.
(217.31 KiB) Downloaded 143 times
mpv-small-window.jpg
mpv playing music from an Internet radio station
(115.61 KiB) Downloaded 435 times
Last edited by musher0 on Sat 01 Apr 2017, 18:17, edited 3 times in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#464 Post by rufwoof »

Hi Musher

RE: mpv

See this post also. How to flip/mirror (I set mine to the f key, but could be any other choice).

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#465 Post by musher0 »

Thanks, rufwoof.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#466 Post by musher0 »

@all:

I have added the man page of mpv as a pet archive to my post about it
on the previous page.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

futwerk
Posts: 397
Joined: Sat 07 May 2011, 22:04

#467 Post by futwerk »

new backgrounds.
Attachments
stretch29.jpg
https://www.mediafire.com/folder/x4v77bi1p58ox/puppy2013
(16.3 KiB) Downloaded 652 times
stretch4,2b.jpg
https://www.mediafire.com/folder/x4v77bi1p58ox/puppy2013
(43.26 KiB) Downloaded 647 times
stretch4,2.jpg
https://www.mediafire.com/folder/x4v77bi1p58ox/puppy2013
(13.72 KiB) Downloaded 639 times

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#468 Post by ttuuxxx »

futwerk wrote:new backgrounds.
Like your new backgrounds :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#469 Post by rcrsn51 »

ttuuxxx wrote:Ok I fixed the startup issue, it was starting too fast.
How did you fix it?

[Edit] In /usr/sbin/delayedrun at line 78:

Code: Select all

if [ -d /root/Startup ]; then
 for a in /root/Startup/* ; do
   if [ -x "$a" ]; then
     $a &
   fi
  sleep 0.2
 done
fi
This is the original, correct code. Did it get altered in woof?

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#470 Post by ttuuxxx »

rcrsn51 wrote:
ttuuxxx wrote:Ok I fixed the startup issue, it was starting too fast.
How did you fix it?

[Edit] In /usr/sbin/delayedrun at line 78:

Code: Select all

if [ -d /root/Startup ]; then
 for a in /root/Startup/* ; do
   if [ -x "$a" ]; then
     $a &
   fi
  sleep 0.2
 done
fi
This is the original, correct code. Did it get altered in woof?
sleep 2
if [ -d /root/Startup ];then
for a in /root/Startup/*
do
[ -x "$a" ] && $a &
sleep 1
done
fi

touch /tmp/delayedrun_finished_flag

### END ###

ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#471 Post by rcrsn51 »

Code: Select all

  [ -x "$a" ] && $a &
Run "ps". Check out all the orphaned "delayedrun" processes. You need some stuff in the Startup folder to see them.

Then use my version.

This is a very old bug that has resurfaced.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#472 Post by musher0 »

@ttuuxxx & rcrsn51:

You guys lost me. What are you talking about? TIA.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#473 Post by rcrsn51 »

Open the file /usr/sbin/delayedrun and locate the block of code at the end. There are several versions.

Code A (currently in Stretch) is completely broken and prevents the applets in the Startup folder from launching.

Code B (in some old Puppies) launches the applets but has a bug. It leaves orphaned "delayedrun" processes.

Code C above is the correct version.

Code D is a cleaner correct version.

Code: Select all

if [ -d /root/Startup ]; then
 for A in /root/Startup/* ; do
	$A 2>/dev/null &
  sleep 0.2
 done
fi
Last edited by rcrsn51 on Wed 05 Apr 2017, 11:26, edited 4 times in total.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#474 Post by OscarTalks »

rcrsn51 wrote:the correct version
Thanks for posting.
Correct code inserted in my Stretch, Wheezy and Precise remasters.
Oscar in England
Image

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#475 Post by rcrsn51 »

Excellent. There are hints out of woof that Startup will be deprecated in favour of ~/.config/autostart.

But Startup really is handy, even if it's not standard Linux.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#476 Post by ttuuxxx »

rcrsn51 wrote:Excellent. There are hints out of woof that Startup will be deprecated in favour of ~/.config/autostart.

But Startup really is handy, even if it's not standard Linux.
Some things that just work should be left alone, Its a pretty convenient folder. For newbee's and lazy people like me :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#477 Post by rcrsn51 »

@ttuuxxx: Here is the unanswered question. Is this code now broken coming out of woof?

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#478 Post by pemasu »

https://github.com/puppylinux-woof-CE/w ... delayedrun

Code: Select all

if [ -d /root/Startup ];then
 for a in /root/Startup/* ; do
  [ -x "$a" ] && $a & #jamesbond
  sleep 0.2
 done
fi

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#479 Post by rcrsn51 »

Strange. I checked Tahrpup 605 and it has a fixed version. This code has a life of its own.

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#480 Post by peebee »

pemasu wrote:https://github.com/puppylinux-woof-CE/w ... delayedrun

Code: Select all

if [ -d /root/Startup ];then
 for a in /root/Startup/* ; do
  [ -x "$a" ] && $a & #jamesbond
  sleep 0.2
 done
fi
Fixes now applied:
https://github.com/puppylinux-woof-CE/w ... delayedrun
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

Post Reply