Xenialpup64 CE 7.5 / 25 Nov 2017

A home for all kinds of Puppy related projects
Message
Author
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#571 Post by bigpup »

I think it has to do with the video clip being a Tweet embedded on non-Twitter website.

Firefox support has this about it.
https://support.mozilla.org/en-US/questions/1189443

However, I still could not get the video to play unless I to did this:
The second video on the page will play for me automatically, but the first one won't unless I click on the link.
Attachments
capture7297.jpg
(101 KiB) Downloaded 1113 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

belham2
Posts: 1715
Joined: Mon 15 Aug 2016, 22:47

#572 Post by belham2 »

bigpup wrote:I think it has to do with the video clip being a Tweet embedded on non-Twitter website.

Firefox support has this about it.
https://support.mozilla.org/en-US/questions/1189443

However, I still could not get the video to play unless I to did this:
The second video on the page will play for me automatically, but the first one won't unless I click on the link.
Hi Bigpup,

Thank you for that! Never occurred to me to click on that little Twitter blue bird. It pops right up and plays nicely.

I wonder what Moon is doing over at Palemoon that he gets these embedded vids to play straight away? I mean, he's using Firefox/Mozilla's stuff, right? Oh well, no matter...I will always look to try and click something to get the embedded video out of the main page Firefox first loads. Love Mozilla, but dang, they take 2 steps forward, then 1 step back. Sigh... :roll:

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#573 Post by bigpup »

Thank battleshooter for that tip!!
Thanks!


PaleMoon is being developed by people that did work on Firefox.
They got feed up with the direction Firefox was taking and decided to make their own version of a browser.
They seem to really care about producing a browser that just works.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Lassar
Posts: 235
Joined: Tue 08 Jul 2014, 20:01

Add timezone automatically to xenialpup64

#574 Post by Lassar »

How about adding the timezone & time automatically to xenialpup64?

Put this in /root/xinitrc before the background commands

Code: Select all

timezone=$(wget -q -O - "http://ip-api.com/csv/" | cut -f10 -d ',')
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/$timezone /etc/localtime
rdate -s time-a.nist.gov

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#575 Post by battleshooter »

Thanks for that Bigpup, good to know it's not a Puppy only issue.

I had a go brief go at some of their suggested solutions such as disabling adblock and had a look at tracking protection but adblock didn't seem to make a difference and tracking protection is already disabled.

Will keep my eyes open for a solution to pop up.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

User avatar
escucha
Posts: 83
Joined: Sat 14 Mar 2009, 19:40
Location: Ainulindalë

#576 Post by escucha »

Hi, try a question:

Is there any pet or package for VLC player suitable in Xenialpup64?
I miss this videoplayer who let record excerpts from a file because I used many many times in tahrpup.

Good work!
[size=75]Trying Fossapup 64bit. Still daily work in Bionic64.[/size]

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#577 Post by bigpup »

Can try this one.
Not sure if it has all you need, but it plays music for me OK.
I have not tried everything.
http://www.smokey01.com/Bill2/vlc-2.2.4-x86_64.pet
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
escucha
Posts: 83
Joined: Sat 14 Mar 2009, 19:40
Location: Ainulindalë

#578 Post by escucha »

Thanks for reply bigpup.

I have unsuccessfully tested this and others from various repository, no success because the lack of codecs, I don't know from and where manage this missing codecs.
The sound is really working.
Any clue about?
Attachments
error codec vlc.png
(118.71 KiB) Downloaded 126 times
[size=75]Trying Fossapup 64bit. Still daily work in Bionic64.[/size]

riedzig
Posts: 40
Joined: Thu 01 Oct 2015, 06:14

#579 Post by riedzig »

Initially, I made my own vlc.sfs, now I use appimages from
https://github.com/darealshinji/vlc-AppImage/releases
or
https://bintray.com/probono/AppImages/VLC#files

However, unlike most of the appimages on these extensive lists vlc needs to be modifed for root use:

Extract the appimage using the command
yourappimage --appimage-extract
It'll make an executable AppDir in your /root.
You can inspect it and proceed according to
https://unix.stackexchange.com/question ... er-in-root
You may also want to purge useless languages in /usr/share/locale etc.
Finally, download the newest appimagetool-x86_64.AppImage from
https://github.com/AppImage/AppImageKit/releases and run the command
yourappimagetool -n yourAppDir
It remakes a new vlc.appimage which runs as root.

Just tried it with the latest vlc 2.8.8, it works!

User avatar
escucha
Posts: 83
Joined: Sat 14 Mar 2009, 19:40
Location: Ainulindalë

#580 Post by escucha »

Thanks for your infos.

I'm unable to manage this kind of apps, I know how to start a .sfs or .pet files... but this tech modes are beyond my capacities.

Had not found 2.8.8 VLC version!
Thanks newly.
[size=75]Trying Fossapup 64bit. Still daily work in Bionic64.[/size]

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

Re: Add timezone automatically to xenialpup64

#581 Post by gyro »

Lassar wrote:How about adding the timezone & time automatically to xenialpup64?
Thanks for the code in your post.
I don't think it should be in xenialpup64, I think it should be in Woof-ce, in "rc.sysinit" or "init" or "firstrun".
I'll investigate this as part of my "init" rewrite project.

gyro

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Add timezone automatically to xenialpup64

#582 Post by mavrothal »

Lassar wrote:How about adding the timezone & time automatically to xenialpup64?

Put this in /root/xinitrc before the background commands

Code: Select all

timezone=$(wget -q -O - "http://ip-api.com/csv/" | cut -f10 -d ',')
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/$timezone /etc/localtime
rdate -s time-a.nist.gov
There is a group of puppy users that freak out on non-user-initiated (ie automatic) connections.
I image this will be more so if they see the output of http://ip-api.com/csv/ :roll:
Connecting to a US Government site I image will also raise objections though this could be replaced by "ntpdate pool.ntp.org" which with its 4000+ time servers should be less "trackable"

If auto-timezone makes it in, should be user configurable maybe as the default option in the puppy first boot setup screen (/usr/sbin/quicksetup), but certainly there is no need to run on every boot. Puppy already has Psync for time synchronization and I imagine not many puppy users are changing timezone frequently enough to justify it.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#583 Post by Sailor Enceladus »

@Lassar: That site and code didn't work for me. I found that it is automatically blocked by Pup-Advert Blocker. :)
/etc/hosts line 14647 wrote:127.0.0.1 ip-api.com

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#584 Post by mikeslr »

@ escucha,

Contents of post deleted. Puppies run applications as Root. I forgot that vlc, by default, can not run as Root. There may be other workarounds. But doing so would not be simpler than what riedzig suggests in his post following this.

mikeslr
Last edited by mikeslr on Fri 29 Dec 2017, 22:12, edited 1 time in total.

riedzig
Posts: 40
Joined: Thu 01 Oct 2015, 06:14

#585 Post by riedzig »

Hi, Escucha
the link to vlc 2.2.8 is
https://github.com/darealshinji/vlc-AppImage/releases
(the first link in my previous post).

It's not that hard to make the changes to the extracted appimage - the AppDir (its default name is "squash-root" but you can rename it) in /root. There's a file /usr/bin/vlc inside which modify running the command

sed -i 's/geteuid/getppid/' /usr/bin/vlc

(enter the full path to /usr/bin/vlc).
Already then you'd have a working vlc in xenialpup64 and you should be able to launch it.

The last step - reverting it to an appimage - is only made to convert the AppDir to a single file and to decrease its size.

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#586 Post by RetroTechGuy »

What is everyone's overall impression? I'm still running Lupu (which I like due to the compatibility with Debian code -- but it's starting to show its age -- and the "old" Debian code is often no longer "old enough" for compatibility).

And my question gets me a tracker, so I can find this thread again... ;-)
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]

Lassar
Posts: 235
Joined: Tue 08 Jul 2014, 20:01

#587 Post by Lassar »

Noted all your objections.

A person might have satellite internet, so I set up the script to only get the timezone on first boot.

How's this for getting your timezone & time automatically?


Code: Select all

#!/bin/bash

timezone="`readlink /etc/localtime | sed -e 's%/usr/share/zoneinfo/%%'`"

if [ ! -e /root/checkedtz ] ; then
	# Fetch timezone from Ubuntu's geoip server
	
	timezone=`wget -O - -q http://geoip.ubuntu.com/lookup | sed -n -e 's/.*<TimeZone>\(.*\)<\/TimeZone>.*/\1/p'`
	rm /etc/localtime
	ln -s /usr/share/zoneinfo/$timezone /etc/localtime
	touch /root/checkedtz
fi

TZ=$timezone
export TZ

rdate -s utcnist.colorado.edu

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#588 Post by mavrothal »

Lassar wrote:How's this for getting your timezone & time automatically
Improving :D

I would first check that there is a network connection before it runs and tuck away (var/local ?) the checkedtz flag.

One issue is when/from where to call it. Quicksetup that prompts for timezone is running too early for any startup script and does not need a connection.
Could be integrated in quicksetup and preset timezone when there is wired connection or prompt for autosetup when connection is set.

However, I'm afraid non of these will save you from those that freakout on any connection that was not explicitly authorised... :twisted:
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

Automatic timezone setting

#589 Post by gyro »

mavrothal wrote:One issue is when/from where to call it. Quicksetup that prompts for timezone is running too early for any startup script and does not need a connection.
Could be integrated in quicksetup and preset timezone when there is wired connection or prompt for autosetup when connection is set.
This is the big implementation issue.
Run it before "quicksetup" and "quicksetup" now depends on a working network. (There have been Puppy releases that never reached a working network automatically on first boot.)
Run it after "quicksetup" and the user has most likely already set the timezone manually.

Brazen plug:
In my current "init" rewrite project I will use this methodology in a "mk-timezone-file" utility. The resultant "TIME_ZONE" file is pushed into the "initrd.gz" of the target puppy and used by the new "init" script to set the timezone for "init" processing and in the booted Puppy.

gyro

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: Automatic timezone setting

#590 Post by mavrothal »

gyro wrote:
mavrothal wrote:One issue is when/from where to call it. Quicksetup that prompts for timezone is running too early for any startup script and does not need a connection.
Could be integrated in quicksetup and preset timezone when there is wired connection or prompt for autosetup when connection is set.
This is the big implementation issue.
Run it before "quicksetup" and "quicksetup" now depends on a working network. (There have been Puppy releases that never reached a working network automatically on first boot.)
Run it after "quicksetup" and the user has most likely already set the timezone manually.
Not really. If there is network the timezone is set.
If not the user is presented with the option to be set automatically after a connection is established or do it manually from the drop-down menu as is done now. In the no-connection case the default quicksetup message could be "autodetect upon connection" or something like that.
gyro wrote:Brazen plug:
In my current "init" rewrite project I will use this methodology in a "mk-timezone-file" utility. The resultant "TIME_ZONE" file is pushed into the "initrd.gz" of the target puppy and used by the new "init" script to set the timezone for "init" processing and in the booted Puppy.

gyro
I'm a bit unclear on this.
The mk-timezone-file of a running puppy will push TIME_ZONE into the initrd.gz (ie repackage it) so it can be used in the following boots to setup time zone in the running puppy?
Or everything is going to be within initrd.gz and run from there to setup timezone in the first boot?
Or something else altogether?
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Post Reply