Librepup 6.0.2.2

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#61 Post by 01micko »

This is only posted here because @musher0 popped the question, plus I don't wan't everyone testing it yet. There is potential for data loss. (sorry for OT @iguleder, but it is sort of related)

Here is attempt at a kernel changer script, but be warned I had issues in librepup as noted earlier. It should work in any woof puppy built in 2015 or later (maybe a little earlier). depends on the 'Huge' kernel. (see woof-ce for explanation).

In saying that, we filter out old pups, full installs and live CD boots as obviously we can't write the z-drive and vmlinuz to an early enough part of a cd/dvd.

Tech note: it appends the DISTRO_IDSTRING to vmlinuz and zdrv_XXX_XXX.sfs

WARNING read the help! If not comfortable with recovering then don't do it until we find and figure out bugs! no responsibility accepted!

See this post for the newest gzip version

Code: Select all

#!/bin/bash

# this script changes a kernel in woof-ce based puppy linux

set -e

export TEXTDOMAIN=change_kernels
export OUTPUT_CHARSET=UTF-8

_msg() {
	echo "<window title=\"$1\">
		<vbox>
			<frame>
				<hbox space-expand=\"true\" space-fill=\"true\">
					<text>
						<label>\"$1 message:\"</label>
					</text>
				</hbox>
				<hbox space-expand=\"true\" space-fill=\"true\">			
					<text>
						<label>\"$2\"</label>
					</text>
				</hbox>
			</frame>
			<hbox><button ok></button></hbox>
		</vbox>
	</window>"|gtkdialog -s -c
	exit $3
}

[ -f /etc/DISTRO_SPECS ] && . /etc/DISTRO_SPECS || _msg Error "Your puppy is too old or broken" 65

[ -f /etc/rc.d/PUPSTATE ] && . /etc/rc.d/PUPSTATE || _msg Error "Your puppy is too old or broken" 66

case $PUPMODE in
	2|3)_msg Error "Unfortunately this doesn't work in full installs" $PUPMODE;;
esac

[ "$PMEDIA" = "cd" ] && _msg Error "Unfortunately this doesn't work with live CD installs" 7
[ "$DISTRO_KERNEL_PET" = "Huge_Kernel" ] || _msg Error "Unfortunately this doesn't work with older puppy installs" 255

KERNEL_HOME=/initrd${PUP_HOME}${PSUBDIR}
DATE=`date +%y%m%d`

change() {
	echo "$1" | grep -q 'vmlinuz' || _msg Error "Not a valid kernel file" 11
	echo "$2" | grep -q 'sfs' || _msg Error "Not a valid module file" 12
	mv $KERNEL_HOME/vmlinuz $KERNEL_HOME/vmlinuz.${DATE}
	[ $? -ne 0 ] && _msg Error "Failed to move ${1##*/}" 13
	mv $KERNEL_HOME/$DISTRO_ZDRVSFS $KERNEL_HOME/$DISTRO_ZDRVSFS.${DATE}
	[ $? -ne 0 ] && _msg Error "Failed to move ${2##*/}" 14
	cp -a "$1" $KERNEL_HOME/vmlinuz
	[ $? -ne 0 ] && mv -f $KERNEL_HOME/vmlinuz.${DATE} $KERNEL_HOME/vmlinuz \
	&& _msg Error "Failed to copy vmlinuz: restoring original" 15
	cp -a "$2" $KERNEL_HOME/$DISTRO_ZDRVSFS
	[ $? -ne 0 ] && mv -f $KERNEL_HOME/vmlinuz.${DATE} $KERNEL_HOME/vmlinuz \
	&& _msg Error "Failed to copy $DISTRO_ZDRVSFS: restoring original" 16
	echo -n $DISTRO_IDSTRING >> $KERNEL_HOME/vmlinuz
	echo -n $DISTRO_IDSTRING >> $KERNEL_HOME/$DISTRO_ZDRVSFS
	_msg Success "Now reboot to test your new kernel." 0
}

help_me() {
	echo "HELP
	WARNING!
You may render your system unbootable!

Find a vmlinuz file for the first entry box
Find a zdrive file (which may have an obscure name if you
built it in kernel-kit, so long as 'sfs' is in the name it's ok)
for the second entry box.
Hit ok.
The distro ID string is appended to the vmlinuz and zdrive.
Hopefully you can reboot.
IF IT FAILS
There are backups of the old vmlinuz and zdrive in place appended
with the day you did the operation's date. Remove the date
and reboot.
GOOD LUCK
bugs to 01micko @ murga forum
GPL2
While all care is taken, no responsibility accepted." >> /tmp/kernelhelp.txt
	defaulttextviewer /tmp/kernelhelp.txt
	rm /tmp/kernelhelp.txt
}
export -f help_me

export GUI="<window title=\"Change Kernels\">
		<vbox>
			<frame>
				<hbox space-expand=\"true\" space-fill=\"true\">			
					<text use-markup=\"true\">
						<label>\"<big>$(gettext "WARNING:")</big> $(gettext "Please read the Help")\"</label>
					</text>
				</hbox>
				<hbox space-expand=\"true\" space-fill=\"true\">
					<text><label>$(gettext "Choose the location of kernel file named") vmlinuz</label></text>
				</hbox>	
				<hbox space-expand=\"true\" space-fill=\"true\">
					<entry accept=\"file\">
						<variable>VMLINUZ</variable>
					</entry>
					<button>
						<input file stock=\"gtk-open\"></input>
						<action type=\"fileselect\">VMLINUZ</action>
					</button>
				</hbox>
				<hbox space-expand=\"true\" space-fill=\"true\">
					<text><label>$(gettext "Find the module file named") $DISTRO_ZDRVSFS $(gettext "or perhaps some obscure name if built with kernel-kit. You can try other kernels built in other Puppies")</label></text>
				</hbox>	
				<hbox space-expand=\"true\" space-fill=\"true\">
					<entry accept=\"file\">
						<variable>MODULES</variable>
					</entry>
					<button>
						<input file stock=\"gtk-open\"></input>
						<action type=\"fileselect\">MODULES</action>
					</button>
				</hbox>
				<hbox space-expand=\"true\" space-fill=\"true\">			
					<text>
						<label>$(gettext "We have found that your kernel is located at:")</label>
					</text>
				</hbox>
				<hbox space-expand=\"true\" space-fill=\"true\">			
					<text use-markup=\"true\">
						<label>\"<b>$KERNEL_HOME</b>\"</label>
					</text>
				</hbox>
			</frame>
			<hbox>
				<button>
					<label>$(gettext "Help")</label>
					<action>help_me</action>
				</button>
				<button ok></button>
				<button cancel></button>
			</hbox>
		</vbox>
	</window>"
eval $(gtkdialog -p GUI -c)
case $EXIT in
	OK) change $VMLINUZ $MODULES;;
	*)exit 0;;
esac
	
echo $KERNEL_HOME
Yes there are bashisms. Yes halts on errors. Yes the tests for vmlinuz and zdrv are skimpy, that's why this is not a pet. FFS.. shouldn't even be a GUI but not all CLI allergic folk are idiots. YMMV.
Last edited by 01micko on Tue 29 Sep 2015, 08:35, edited 2 times in total.
Puppy Linux Blog - contact me for access

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

Re: Librepup 6.0.2.0

#62 Post by musher0 »

Billtoo wrote:
musher0 wrote:
Billtoo wrote:I got smplayer and smtube running under wine-1.17.51
Hi, Billtoo.

It's good to know, I suppose... I'm not sure I understand the reason of
this wine test, though, at this early stage in the development of LibrePup.
Are you telling us indirectly that the Linux versions of smplayer and
smtube do not work at the moment on Librepup?
Hi musher0, mplayer 1.1.1 would compile in Librepup but gave an error about a missing libEGL when I tried to run it so I compiled wine 1.17.51 to see if smplayer/smtube would work under wine and they did, vlc as well.
Besides, it was something to do :)
Thanks, Billtoo.

I guess you are "telling us indirectly that the Linux versions of
smplayer and smtube do not work at the moment on Librepup
"...

I didn't compile mplayer 1.1.1 in LibrePup, I downloaded it from the
Trisquel repo through PPM and I got the same lib missing when I tried to
run it. Something fishy going on upstream?

BFN.

musher0
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

#63 Post by musher0 »

Thanks 01micko. Trying it as soon as download of new kernel is done.

Reading this:

> Yes there are bashisms. Yes halts on errors. Yes the tests for vmlinuz
and zdrv are skimpy, that's why this is not a pet. FFS.. shouldn't even be
a GUI but not all CLI allergic folk are idiots. YMMV.


I can't help but think:
Are you being persecuted by pro-CLI or CLI-allergic "folks"?
Are you in any danger?
Should someone be calling 911?
:( or :) because not sure if this is light-hearted or not.

BFN

musher0
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

#64 Post by musher0 »

koz wrote:My 2 cents:I wouldn't recommend Icecat - it's got some security vulnerabilities that have yet to be addressed for quite some time. I would recommend Iceweasel (I use the one provided by Parabola rather than Debian, with Trisquel extension repo) if you need all-singing, all-dancing browsing action.
Thanks for this info, koz.

So "requies-cat" it is, IMO. Besides this distro is made by canines for
canines. No cats should be allowed. :twisted:

BFN.
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

#65 Post by musher0 »

@01micko
Attachments
line-54_2015-09-28.jpg
(8.77 KiB) Downloaded 479 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#66 Post by 01micko »

@musher0

Sorry about that. It's a forum <code> tag thing where trailing white space is added to the trailing '\' on the end of lines 54, and 56. Remove the whitespace and you should be ok. Thankfully it has 'set -e' to catch this sort of crap. I'll attach a gzip'd script to this post.
musher0 wrote:I can't help but think:
Are you being persecuted by pro-CLI or CLI-allergic "folks"?
Are you in any danger?
Should someone be calling 911?
Hold the phone. :lol: I'm not in any immediate danger. :)

Attachment deleted. See newer post.
Last edited by 01micko on Tue 29 Sep 2015, 08:32, edited 1 time in total.
Puppy Linux Blog - contact me for access

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

#67 Post by musher0 »

Phew. :)

Got it. (the new script, I mean)
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

#68 Post by musher0 »

@Iguleder (poor man, being on the receiving end all the time!) :)

Another "Yikes!" about the "Franciscan" wardrobe...

People are superficial, you know. (Before I get any flak for this comment:
I am too, sometimes, generally on subjects I know little about.)

If LibrePup is not dressed up, people will say: "Nah, I won't use this, it's
just another bland distro for nerds." And by themselves, uninformed, they
probably won't know how to "pretty up" the Puppy.

May I suggest that be included a couple of gtk engines, perhaps murrine,
nodoka and xfce. They're not that big.

Just the pixel buffer is not enough. And of course a couple of themes
corresponding to each engine.

BFN.

musher0
Attachments
LibrePup_needs_more_gtk_engines_pre-installed_IMO_2015-09-28(1).jpg
The PPM offering (top) is a bit skimpy, too. Compared to what I've piled
up over the years (and this is not a repo). The only gtk-2 &quot;engine&quot; in
LibrePup now is the pixel buffer (at the right).
(77.04 KiB) Downloaded 453 times
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

#69 Post by musher0 »

BTW, I'm taking back my comment about pekwm-1.17 from the Trisquel
repo being iffy. It's working fine, now.

A case of the shoemaker's son syndrome: I had forgotten to migrate my
own supporting scripts, ha!

BFN.

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

User avatar
Billtoo
Posts: 3720
Joined: Tue 07 Apr 2009, 13:47
Location: Ontario Canada

Librepup 6.0.2.0

#70 Post by Billtoo »

I was trying out Trisquel 7.0 64 bit version and the default browser is Abrowser.
I installed it in PPM in Librepup and it works well, firefox under a different name I guess.

I like 01micko's Qupzilla too.
Attachments
Abrowser.jpg
(88.67 KiB) Downloaded 429 times

Pelo

Librepup

#71 Post by Pelo »

"it is based on tahrpup 6.0.2 but uses Triquel 7 packages instead of Ubuntu ones"
That could be worth the pain to try Librepup, Libre does not mean Libre office, ouf :) , let that monster for typists to typists.
Triquel packages could change the daily pudding of the menu. Tahrpup did he first step including Qt in its library.
Downloading. Test will began next week in our workshops (France). We are a little busy now, and no longer spend time on Puppies with nothing new.
About desktop icons and wallpapers, and even window managers, don't worry. Users, even recent users, will know how to make Librepup fit what they like.
Tested :
it's a joke : it's an empty shell.
NDLR
Dépôt Trisquel
Last edited by Pelo on Wed 30 Sep 2015, 03:13, edited 3 times in total.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#72 Post by 01micko »

So I successfully changed kernels this time. All working well except of course radeon graphics (for me, because mine needs darn firmware - curse you RADEON!)

I have updated the kernel changer script to be a bit more rigorous and a bit more user friendly. Just tested successfully.

Same warnings apply.

----------------------------------------------------------------------------------------------

radeon dmesg

Code: Select all

# dmesg|grep -iE 'radeon|ati'
Using ACPI (MADT) for SMP configuration information
Preemptible hierarchical RCU implementation.
	RCU dyntick-idle grace-period acceleration is enabled.
tsc: Fast TSC calibration using PIT
Calibrating delay loop (skipped), value calculated using timer frequency.. 6027.18 BogoMIPS (lpj=3013590)
Freeing SMP alternatives memory: 28K (c37e1000 - c37e8000)
x86: Booting SMP configuration:
PCI: Using configuration type 1 for base access
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-580)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-580)
scsi4 : pata_atiixp
scsi5 : pata_atiixp
Copyright (c) 1999-2008 LSI Corporation
tsc: Refined TSC clocksource calibration: 3013.327 MHz
ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[drm] radeon kernel modesetting enabled.
radeon 0000:01:05.0: VRAM: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF (512M used)
radeon 0000:01:05.0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF
[drm] radeon: 512M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
radeon 0000:01:05.0: Direct firmware load failed with error -2
radeon 0000:01:05.0: Falling back to user helper
radeon 0000:01:05.0: Fatal error during GPU init
[drm] radeon: finishing device.
[drm] radeon: ttm finalized
radeon: probe of 0000:01:05.0 failed with error -22
# 
Attachments
change_kernels.sh.gz
(2.05 KiB) Downloaded 147 times
Puppy Linux Blog - contact me for access

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#73 Post by Iguleder »

I generated a testing build with all fixes, new looks and QupZilla - everything works great except SSL certificates.

I tried to add the ca-certificates package from Trisquel but the problem persists, not sure why yet. If we can use this package with a package template in woof-CE, it's much better than maintaining our own package for obvious reasons, especially because SSL certificates are ... well, SSL certificates :)

Will investigate this later. Besides this, as I said - everything seems fine. I'll fix this issue, then release 6.0.2.1.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

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

#74 Post by pemasu »

Iguleder, did you run in console: update-ca-certificates

That command updates or creates symlinks inside /etc/ssl/certs, which are missing after you install ca-certificates_20141019ubuntu0.14.04.1+7.0trisquel1.deb file.

After running that command Qupzilla is happy.

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#75 Post by Iguleder »

Yes - I tried that but it didn't work for some reason and I haven't found the time to investigate. I'll try to add a package template that does this and confirm /etc/ssl looks sane in rootfs-complete.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

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

#76 Post by pemasu »

ssl-certificate-fix-0.0.1.pet which you have included contains only /etc/ca-certificates.conf file. That file is quite outdated. It might be good idea to update the file content with recent one.

sheldonisaac
Posts: 902
Joined: Mon 22 Jun 2009, 01:36
Location: Philadelphia, PA

Re: Librepup 6.0.2.0

#77 Post by sheldonisaac »

Iguleder wrote:Librepup 6.0.2.0
Downloaded this morning. Installed manual frugal on Dell E6410 laptop.
Installed Opera 11.64 from .deb, using it now.
Installed claws-mail 3.9.3 from trisquel
It needed libpisock9, I managed to find it via trisquel

Many thanks,
Sheldon
Dell E6410: BusterPup, BionicPup64, Xenial, etc
Intel DQ35JOE, Dell Vostro 430
Dell Inspiron, Acer Aspire One, EeePC 1018P

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

#78 Post by musher0 »

Iguleder wrote:I generated a testing build with all fixes, new looks and QupZilla - everything works great except SSL certificates.

(...)

Will investigate this later. Besides this, as I said - everything seems fine. I'll fix this issue, then release 6.0.2.1.
Hi.

With a full-featured abiword 3 with all plugins? :)
Or without any and tell people to install it from the Trisquel repos.

BFN.

musher0
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

#79 Post by musher0 »

Iguleder?

Almost forgot. Before you publish, test this out please. (See attached.)

The way you name the kernel, the sensors package can not be used.
(About the sensors package, please see rcrsn51's thread named
CPU Temp.)

sensors-detect thinks this kernel is too old! Funny, eh? I looked at the perl
code for it and its "kernel_version" variable expects a kernel named in
four parts, not 3.14-librepup, but perhaps 3.14.n.librepup.

Anyway, I don't know anything about kernels, you be the judge. This is
just a heads-up.

Or should I give a mouthful to the sensors-detect people? ;)

BFN.

musher0
Attachments
Kernel_too_old!!!_2015-09-29.jpg
Yeah, right!
(18.65 KiB) Downloaded 369 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#80 Post by Iguleder »

Which package have you used? Try to install lm-sensors from PPM. If this isn't the trisquel package, I'll investigate.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

Post Reply