Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 12 Dec 2017, 20:10
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Change kernels GUI in recent woof-ce puppies
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
01micko


Joined: 11 Oct 2008
Posts: 8660
Location: qld

PostPosted: Tue 29 Sep 2015, 23:39    Post subject:  Change kernels GUI in recent woof-ce puppies
Subject description: ONLY for very recent woof-ce versions.
 

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! Laughing

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! Smile

To get your exit code do this when the program completes:
Code:
echo $?


Happy testing.
change_kernels-0.3.tar.gz
Description 
gz

 Download 
Filename  change_kernels-0.3.tar.gz 
Filesize  6.22 KB 
Downloaded  514 Time(s) 
kernels-gui.jpg
 Description   main gui
 Filesize   36.04 KB
 Viewed   2078 Time(s)

kernels-gui.jpg


_________________
Puppy Linux Blog - contact me for access

Last edited by 01micko on Sun 04 Oct 2015, 17:01; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11256
Location: Gatineau (Qc), Canada

PostPosted: Wed 30 Sep 2015, 03:12    Post subject:  

Thanks, Mick.
_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Wed 30 Sep 2015, 08:25    Post subject: Re: Change kernels GUI in recent woof-ce puppies
Subject description: ONLY for very recent woof-ce versions.
 

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 => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11256
Location: Gatineau (Qc), Canada

PostPosted: Wed 30 Sep 2015, 16:50    Post subject: Re: Change kernels GUI in recent woof-ce puppies
Subject description: ONLY for very recent woof-ce versions.
 

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
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Wed 30 Sep 2015, 16:56    Post subject: Re: Change kernels GUI in recent woof-ce puppies
Subject description: ONLY for very recent woof-ce versions.
 

musher0 wrote:
C'est un "oui" déguisé !

Merci à toi. Wink

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11256
Location: Gatineau (Qc), Canada

PostPosted: Wed 30 Sep 2015, 18:16    Post subject:  

@ASRI :
Bon ben, ASRI, t'es obligé de me réviser. Wink
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
Change-kernels-FR.gnumeric.gz
Description  INTERIM French translation in gnumeric file. ("Alpha" version, to translate
into programmer's lingo.) Please wait for validation before using. Thanks.
gz

 Download 
Filename  Change-kernels-FR.gnumeric.gz 
Filesize  4.6 KB 
Downloaded  260 Time(s) 

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8660
Location: qld

PostPosted: Wed 30 Sep 2015, 20:12    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Sun 04 Oct 2015, 15:13    Post subject:  

musher0 wrote:
ASRI who speaks European French will infirm or confirm.

I just do it, everything seems ok.
Regards,

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11256
Location: Gatineau (Qc), Canada

PostPosted: Sun 04 Oct 2015, 16:06    Post subject:  

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:
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
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8660
Location: qld

PostPosted: Sun 04 Oct 2015, 17:04    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
stemsee

Joined: 27 Jun 2013
Posts: 2001
Location: In The Way

PostPosted: Mon 05 Oct 2015, 05:34    Post subject:  

Does it check arch in case of x64 system loading x86 vmlinuz and modules?
Back to top
View user's profile Send private message MSN Messenger 
musher0


Joined: 04 Jan 2009
Posts: 11256
Location: Gatineau (Qc), Canada

PostPosted: Mon 05 Oct 2015, 14:23    Post subject:  

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
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8660
Location: qld

PostPosted: Mon 05 Oct 2015, 17:14    Post subject:  

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! Smile

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Wed 11 Nov 2015, 12:55    Post subject: for older puppies see how to switch the kernels
Subject description: ZDRV is made by hand
 

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.

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
norgo


Joined: 13 Nov 2015
Posts: 166
Location: Germany

PostPosted: Fri 04 Dec 2015, 13:27    Post subject: change_kernels script  

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
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0595s ][ Queries: 12 (0.0050s) ][ GZIP on ]