Change kernels GUI in recent woof-ce puppies

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

Change kernels GUI in recent woof-ce puppies

#1 Post by 01micko »

Here is a gtkdialog script I put together to change kernels in recent woof-ce puppies. updated 20151004

It will install a valid vmlinuz and kernel-modules sfs (zdrv_xxx_nnn.sfs) to where your currently running kernel lives and will work after a reboot.

WARNING - if you don't really know what you are doing don't use this script! No guarantees that data loss won't occur - but you know how to avoid that don't you? [ :wink: ]


All you do is drag and drop (in rox - other FM may work - untested) (or use the file selector) vmlinuz (it can have an extension as kernel-kit names vmlinuz with an extension) to the top entry box then drag (or file select) the corresponding zdrv_xxx_nnn.sfs to the second entry box. Don't mix and match! :lol:

Click a few OK's and reboot.

This has been tested in slacko64 and librepup and will work in tahrpup. It won't work in slacko-5.7 or precise or anything older. There is code to catch these anyway. It won't work in a full install, a save to CD/DVD install or if you boot off the live CD/DVD and save session elsewhere. It should work in frugals to HDD or USB. I haven't tested USB yet but the directories are grokked out of /etc/rc.d/PUPSTATE so if that's ok it should work. All errors should be caught before damage occurs - no guarantees though.

If after reboot you decide that the new kernel sucks then you can Rollback.

The script is gettext'd so if you want to translate feel free to do so and post here.

If tests go well I will make this a pet, but for now please run on the CLI. When the program exits it throws different exit codes. If it fails for you I don't want to know unless you post the exit code! :)

To get your exit code do this when the program completes:

Code: Select all

echo $?
Happy testing.
Attachments
kernels-gui.jpg
main gui
(36.04 KiB) Downloaded 3401 times
change_kernels-0.3.tar.gz
(6.22 KiB) Downloaded 1392 times
Last edited by 01micko on Sun 04 Oct 2015, 21:01, 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

#2 Post by musher0 »

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

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: Change kernels GUI in recent woof-ce puppies

#3 Post by ASRI éducation »

01micko wrote:Here is a gtkdialog script I put together to change kernels in recent woof-ce puppies.

The script is gettext'd so if you want to translate feel free to do so and post here.
@ 01micko
Thank you !

@ musher0
Peux-tu t'occuper de la traduction française ?

Regards
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

Re: Change kernels GUI in recent woof-ce puppies

#4 Post by musher0 »

ASRI éducation wrote:
01micko wrote:Here is a gtkdialog script I put together to change kernels in recent woof-ce puppies.

The script is gettext'd so if you want to translate feel free to do so and post here.
@ 01micko
Thank you !

@ musher0
Peux-tu t'occuper de la traduction française ?

Regards
Salut, ASRI.

Bon, un autre point à ajouter à mon emploi du temps ! (C'est un "oui" déguisé !)

À+

/ (Translation)
Hi, ASRI.

Shucks, another entry to add to my agenda. (This is a "yes" in disguise !)

BFN.

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

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: Change kernels GUI in recent woof-ce puppies

#5 Post by ASRI éducation »

musher0 wrote:C'est un "oui" déguisé !
Merci à toi. :wink:
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

#6 Post by musher0 »

@ASRI :
Bon ben, ASRI, t'es obligé de me réviser. ;)
J'ai essayé d'adopter un français international. Dis-moi si ça marche ?
S.t.p. m'informer de toute erreur, je corrigerai.
Merci d'avance.

~~~~~~~~~

@01micko:
I think I translated everything.
Unsure if I saw a couple of stray, un-get-texted words.

Never get-texted before, so it's presented as a column in a gnumeric file.
You'll have to create the get-text file, I guess. Sorry.

I aimed for neutral, "international" French as level of language for the
translation. (This is translator lingo, you don't need to understand the
details!) ASRI who speaks European French will infirm or confirm.

Please wait until ASRI sends me back the corrected file and I correct
my text (if need be). To err is human.

What do you suggest as a license to be in concordance with your GPL2?
CC? I never paid attention to these things before.

Thanks in advance.

musher0
Attachments
Change-kernels-FR.gnumeric.gz
INTERIM French translation in gnumeric file. ("Alpha" version, to translate
into programmer's lingo.) Please wait for validation before using. Thanks.
(4.6 KiB) Downloaded 868 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:

#7 Post by 01micko »

Thanks Christian!

I think GPL2 is ok for the translations, however if you feel more comfortable with a CC licence that's ok too.

One thing I haven't gettext'd yet is the OK, Cancel, Yes and No buttons. That will be in the next iteration and I will also structure the the directory hierarchy like a pet.
Puppy Linux Blog - contact me for access

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#8 Post by ASRI éducation »

musher0 wrote:ASRI who speaks European French will infirm or confirm.
I just do it, everything seems ok.
Regards,
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

#9 Post by musher0 »

01micko wrote:Thanks Christian!

I think GPL2 is ok for the translations, however if you feel more comfortable with a CC licence that's ok too.

One thing I haven't gettext'd yet is the OK, Cancel, Yes and No buttons. That will be in the next iteration and I will also structure the the directory hierarchy like a pet.
Here you go :

Code: Select all

English || French
OK = Valider
Cancel = Annuler
Yes = Oui
No = Non
As you no doubt noticed, ASRI has confirmed the previous text.
I think I'll go for a Creative Commons license.

TWYL.

musher0
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:

#10 Post by 01micko »

Thanks guys. CC it is then.

I have attached a new version in the top post which includes a .pot file for others to translate and the French .po file to be fixed up a little. EDIT: when fixed I'll compile it into a .mo file and then we can see if it works well enough.

There are couple of additional dialogues plus all the buttons (yes/no, ok, Cancel etc) are now i18n gettext'd.

I also put in the top of the comments the exit values and what they mean, in case any testers get errors they may want to know why themselves.
Puppy Linux Blog - contact me for access

stemsee

#11 Post by stemsee »

Does it check arch in case of x64 system loading x86 vmlinuz and modules?

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

#12 Post by musher0 »

01micko wrote:Thanks guys. CC it is then.

I have attached a new version in the top post which includes a .pot file for others to translate and the French .po file to be fixed up a little. EDIT: when fixed I'll compile it into a .mo file and then we can see if it works well enough.

There are couple of additional dialogues plus all the buttons (yes/no, ok, Cancel etc) are now i18n gettext'd.

I also put in the top of the comments the exit values and what they mean, in case any testers get errors they may want to know why themselves.
Hi, Mick.

I double-checked on the CC site, and I think a "CC BY-NC-SA" license
is what I'm looking for.

Sorry for the jargon : it means: "Creative Commons license with by-line,
no commercial use allowed, and same conditions attribution if 're-mixed'
by others."

Correct me if I'm wrong (I'm new to this), but I think it's GPL2 compatible.

Looking up your edited text | new version now.

TWYL.

musher0
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:

#13 Post by 01micko »

stemsee wrote:Does it check arch in case of x64 system loading x86 vmlinuz and modules?
No, and there is no intention to do this, simply because, if configured properly, a 64 bit kernel runs fine with 32 bit user space (yes I know it braks the other way - appropriate warnings are in place). There is no way to tell if this is the case though without a lot of unnecessary bloat (mount the zdrv, check the DOTconfig - etc).

This is never going to have a menu entry. I don't want complete noobs poking around with it and then complaining.

If you feel that I am wrong, go ahead and fork it! :)
Puppy Linux Blog - contact me for access

Pelo

for older puppies see how to switch the kernels

#14 Post by Pelo »

It won't work in slacko-5.7 or precise or anything older.
for older puppies see how to switch the kernels here by jrb 2010 topic

In fact the process creates a zdrv, by hand with the modules and firmware from Newer puppy, ... or older if needed.

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

change_kernels script

#15 Post by norgo »

Installed Slacko 6.3.0 ( 32bit ) on a USB flash drive ( frugal installation ).
Used for installation F2FS Installer and recommended partitioning.

1st partition 32 MB ext2 (sdb1 in my case)
2nd partition xy MB f2fs (sdb2 in my case)

Installation went good and system is working fine.
Unfortunately change_kernels script don't work at this installation.

If change_kernels script is running I get the message
"This is NOT where the kernel lives: /mnt/sdb1 .. unmounting
We'll try /initrd/mnt/dev_save/slacko_6.3.0"

If F2FS Installer was used for installation
kernel lives (in my case, if partition is mounted) in /mnt/sdb1/slacko_6.3.0 ( NOT in /mnt/sdb1 )

"# find where kernel and modules live" section of change_kernels script
should contain search path /mnt/${VHOME}${PSUBDIR} too.

@01micko
Thank you

User avatar
norgo
Posts: 388
Joined: Fri 13 Nov 2015, 17:19
Location: Germany
Contact:

#16 Post by norgo »

Hey Mick could you take a look at this please
Attachments
change_kernels.diff.tar.gz
(732 Bytes) Downloaded 492 times

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#17 Post by darry19662018 »

Puppy Linux Wiki: [url]http://wikka.puppylinux.com/HomePage[/url]

[url]https://freemedia.neocities.org/[/url]

User avatar
gychang
Posts: 414
Joined: Sat 29 Nov 2008, 20:30
Location: San Diego, CA

this correct?

#18 Post by gychang »

My internal SD card reader does not work with BionicPup64 kernel (installed frugal to HD), but it does work with Tahrpup64 kernel.
as pictured, I open iso file of Tahrpup64 and place vmlinz on the top slot and BionicPup64 zdrv_bionicpup64_8.0.sfs on the bottom, and reboot.
after reboot uname -r command shows the original BP64 kernel (4.19.23). Kernel did not change and SD card does not work.

what am I doing wrong here?

thanks
Attachments
kernel.png
(143.08 KiB) Downloaded 415 times
---
trying to learn puppylinux... :D
---

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

#19 Post by bigpup »

That info on that page is misleading for the bottom slot.
The slots take the files from the new kernel source.
I open iso file of Tahrpup64
Drag and drop the vmlinuz in the Tahrpup64 iso and place it in the top slot.
Drop the tahrpup64 zdrv sfs in the bottom slot.

The kernels button, at the bottom, will take you to the web page, where all the kernel packages, for most Puppy versions, are stored.
You can also get the needed files from them.

Whatever name the file you use from the new kernel source.
This program will correctly name them in the frugal install you are changing kernel.
Should also make backups of the files you replace.
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
gychang
Posts: 414
Joined: Sat 29 Nov 2008, 20:30
Location: San Diego, CA

cannot change kernel...

#20 Post by gychang »

bigpup wrote:That info on that page is misleading for the bottom slot.
The slots take the files from the new kernel source.
I open iso file of Tahrpup64
Drag and drop the vmlinuz in the Tahrpup64 iso and place it in the top slot.
Drop the tahrpup64 zdrv sfs in the bottom slot.
thanks for the instructions, I placed correct files (from Tharpup64.iso) as shown on both top and bottom slots and rebooted, but the kernel did not change. Still 4.19.23 (BP64)... no SD card recognition...
Attachments
kernel1.png
(88.83 KiB) Downloaded 365 times
---
trying to learn puppylinux... :D
---

Post Reply