Light-Debian-Core-Live-CD-Wheezy + Porteus-Wheezy

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#2146 Post by fredx181 »

saintless wrote:Hi, Fred.
New folder for Porteus-Wheezy apps only:
http://smokey01.com/saintless/Porteus-W ... us-Wheezy/
I will also test mostly in the next few days and then I will add all fixes we find.

Toni
Thanks Toni, that was fast.
Nice organizing of the site btw!

Fred

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#2147 Post by mcewanw »

fredx181 wrote: Maybe it's me but I have same problem as William described about Wallpapers; stretch doesn't work, tested it with 06.jpg and still see bars on left and right (I have normal monitor, not wide-screen).
Fred, this is how saintless explained the method to me (though I haven't tried it):
saintless wrote: Terry is right and GUI option to use Stretch is working. Here is how to do it. I also did not notice it works this way till now.
Open Wallpapers GUI and remove all pictures from Remove button. Then set Stretch and add first pictire. It will be set to stretch. Add the rest as Stretch this way or choose Scale, Tile, Center for each one before adding the picture with Add button.
I see the wallpapers are now activated by default with 'Stretch'.

Since this issue keeps cropping up, it may be that the method to change between Stretch, Scale etc is non-intuitive to the user, so perhaps that needs to be looked at. Best would be if the pictures didn't all need to be removed first, so that when user chooses mode (Stretch, Scale etc) from the drop down list and clicks Apply is all just happens. I think most people won't think of having to remove all the pictures first, then select mode and then re-add the pictures; that is unexpected procedure. It is not an urgent thing to consider for the beta iso release though, if it does all work as it currently is.
github mcewanw

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2148 Post by sunburnt »

Guys; I setup Wallpapers to show the wallpaper`s "mode" at left side in the selected list.
If a wallpaper has the correct mode then there`s no need to remove it.
A Wallpaper and it`s mode must be selected before the Add button is clicked.
It does not matter if mode or wallpaper is picked first. The selected list shows what you got.
To change a wallpaper`s mode, you must remove it and add it again, of course.
With the add, remove, up, and down buttons, the list can be edited completely as is.
Apply reads the selected list & writes the file directly from the list box ( they look identical ).
# Again, Stretched distorts, if pic`s aspect ratio is close to the screen`s, then it looks okay.
For pics not close to the screen ratio, mtPaint can crop the pic so it`s close, then Stretch.
Like some of my girlie pics were 1440x968, so I cropped off the non-girlie side to 1200x968.


Toni; I`ll try the copy command, I think you`re right ( as usual...). It worked in Vterm though...
I`ll do more test with Grub4Dos. I`ve used SysLinux and ExtLinux before too, with good luck.

I was thinking of boot options in a "Text gui panel" making them "user friendly".

It looks like the Porteus folks think as I do, it seems to have most of what I`ve talked about.
# I think the next version of Debian Live may have some of the things I`ve discussed.


William; I read it and many others, but as I said, only the Puppy help described anything.
# There should be a law that full and complete descriptions are required, no hiding stuff...
.

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#2149 Post by mcewanw »

sfs wrote:
sunburnt wrote:
### HELP... I`m stuck on grub4dos. Nothing explains what`s really going on.
bootlace - does not work with ext4
weesetup need
http://forum.puppyrus.org/index.php/topic,15557.0.html
Terry, looks like Puppy Linux maybe uses some kind of workaround for booting from ext4 using grub4dos but mikeb in the link below unfortunately can't remember what:

http://www.murga-linux.com/puppy/viewto ... 509#728509

It's the grub4dos mbr which can't load grldr from an ext4 partition apparently. It isn't clear to me if shinobar is suggesting that the following grub4dos version will boot from ext4 (reads like that):

http://www.murga-linux.com/puppy/viewto ... 995#384995

I guess this is the grub4dos Puppy (shinobar's grub4dosconfig) instructions you referred to already:

http://shino.pos.to/linux/puppy/grub4dosconfig.html

Here is a 2010 post about ext4 issues; includes info about using 'wee' MBR:

http://code.google.com/p/grub4dos-chena ... etail?id=3

I think shinobar's grub4dosconfig uses that 'wee' mbr so should work loading grldr from ext4 partition.

IMPORTANT: Note that ext4 is now recommended if using usb flash drives since it contains several performance improvements compared to ext2, BUT it is important that you turn of ext4 journalling to prevent excessive usb flash writing, which would otherwise shorten its life. To turn off ext4 journaling you just use:

Code: Select all

sudo mkfs.ext4 -O ^has_journal /dev/xxxx
(or some variation of that such as sudo mkfs -t ext4 -O ^has_journal ... or sudo mke2fs -t ext4 -O ^has_journal ...)

I suggest using sudo above since normal user may wish to install to usb.
-----

As I've discussed earlier, it is also important to consider erase block alignment issues to speed up usb flash writing in particular:

http://www.thomas-krenn.com/en/wiki/Partition_Alignment

anikin pointed me to a radical (but somewhat complicated) approach to ensuring optimum alignment:

http://murga-linux.com/puppy/viewtopic. ... 958#766958

However, it seems from my reading that modern linux partitioning tools do a reasonable job at it nowadays (I'm not sure). Still good to have a quick read of the above thomas-kern link so you no what to check for.
github mcewanw

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2150 Post by sunburnt »

Thanks William; Looking at the info. you`ve posted. I`m going to have to let this soak in.
Parted wants to start at 1 MB, but blogofterje shows an even better performance setup.

# Grub2 is looking like a good choice as it will boot ext4. But I`ll try to get info. on wee.
It`s good you pointed out the ext4 USB advantage, I hadn`t heard ext4 improved much over ext3.
If that`s the case, then ext4 for O.S. and persistence parts. on all media: HD, Flash, SD, and MMC.
Still the option for a first FAT32 part. for Weeners compatibility, but no O.S. or persistence on it.
The only other option is to use the existing partition, so I should say something about performance.
Also tell about swaps, a swap part. or file on a HD will be used. Else use another cheap USB.
# I think at this point a Help button with a popup dialog is the way to go.


Toni; If you have time, explain what`s needed to make mk-menu do localizations.

# Also vovchik has told me I don`t leave enough room for foreign languages on my guis.
# Do you guys have any feed back on this.? ### And how to localize my gui apps...
.

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#2151 Post by saintless »

sunburnt wrote:Toni; If you have time, explain what`s needed to make mk-menu do localizations..
I don't know what is needed, Terry, but I will try to find out.

Toni

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#2152 Post by fredx181 »

# Grub2 is looking like a good choice as it will boot ext4. But I`ll try to get info. on wee.
Hi Terry
I've done some searching on wee and put together a little script "weeinst"
It's in the attached zip.

Code: Select all

weeinst /dev/sdb
for example will put the MBR in sdb.
Note that the included wee.mbr needs to be in /opt/bin
No needfor bootlace.com
After installing MBR , only grldr and menu.lst are needed.
Fred
Attachments
wee-install.zip
Install MBR using wee
(136.37 KiB) Downloaded 159 times

sfs
Posts: 49
Joined: Sat 02 Nov 2013, 04:49
Location: Russia
Contact:

#2153 Post by sfs »

fredx181 wrote:new porteus-boot savefile-create
make-changes - of Porteus (en,ru gettext)
create-save-pfs - only russian, ntf
.pfs ~ .sfs

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#2154 Post by mcewanw »

sunburnt wrote:Thanks William; Looking at the info. you`ve posted. I`m going to have to let this soak in.
Parted wants to start at 1 MB, but blogofterje shows an even better performance setup.

# Grub2 is looking like a good choice as it will boot ext4. But I`ll try to get info. on wee.
...
### And how to localize my gui apps...
.
I think starting at 1MB boundary probably aligns things quite well and is good enough for our purposes. If someone wants to preformat some other scheme (e.g. per blogofterje) we just don't want to overwrite that. I'm not sure about Grub2 - I had a look into it (since my netbook Lubuntu install uses that) Grub2 seems pretty big and complicated - grub4dos is relatively small, easy, and seems to work well.

As for localising apps - I use gettext in xrecord, which is the preferred practice I believe. L18L is the guy who handles most of the details of that in Puppy and he helped me out in the past with how to do it; it's easy to add to normal apps. Don't know how it fits in with the menu writing though.
github mcewanw

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#2155 Post by saintless »

sfs wrote:
fredx181 wrote:new porteus-boot savefile-create
make-changes - of Porteus (en,ru gettext)
create-save-pfs - only russian, ntf
.pfs ~ .sfs
Thank you, Sfs!
This download link does not work:
http://cdn.2safe.com/661292033760/make-changes.tar.bz2
I will look for make-changes in PRA iso.

Fred, unfortunately only in Russian but if you like to test PRA here is download link:
http://sourceforge.net/projects/puppyrusa/
For frugal install copy all the content of the iso in /pra folder (as example for the boot code) and use this code:

Code: Select all

title PuppyRus-A
root=(hd0,0) 
kernel (hd0,0)/pra/pra/vmlinuz-3.13.5-pf dir=/pra/pra  quiet
initrd (hd0,0)/pra/pra/initrd.xz
I'm happy i can use it in Russian :)

Toni

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#2156 Post by saintless »

sunburnt wrote:Toni; If you have time, explain what`s needed to make mk-menu do localizations..
Hi, Terry.
made trials today and here is how I see the option for localization mk-jwm.menu. No need to rush on this because we still are testing and any changes in mk-jwm.menu now without proper testing are not good idea.

After installing locales package and choosing different locales new file appear: /etc/default/locale
I will give bulgarian language as example and the content of /etc/default/locale will be:

Code: Select all

#  File generated by update-locale
LANG=bg_BG
mk-jwm.menu should chek if there is /etc/default/locale file and read its content. If LANG=bg is taken as base for .desktop file reading debmenu2desktop.convert should read Name[bg]=5=846J@ =0 ?0:5B8 (Synaptic) inside desktop file. if there is no Name[bg]= inside desktop file then read Name=
This will make localization af programs names inside start menu. Something that Debian menu system does not support reading /usr/share/menu files.

Localization of root menu categories is more difficult I think. Debian menu uses language and encoding functions in /etc/menu-methods/menu.h; jwm; icewm-common while reading /etc/menu-methods/lang.h
We can not use anything from this method.

What we can do is to make separate menu-root.lst files with corresponding categories.lst translations for every language and to change them based on the information in /etc/default/locale
Or to make only separate root-menu.lst for each language and to use in the beginning of menu-puppy change to default root-menu while translating categories.lst with new installed or removed package and at the end of menu-puppy to copy back root-menu.lst for locale language. The same dirty fix as Fred's one changing link to bash/dash for Frisbee at the beginning.

Or in my oppinion not to make root-menu localization at all for mk-jwm.menu. It looks confusing for me at least to read root-menu in my native language.

Toni

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2157 Post by sunburnt »

Toni; A very good explanation of what`s going on, thank you.
Yes, literal translations only work for discrete words, but the meaning is the important thing.

I`m thinking this... Few desktop files are localized, so localizing them must be automated.
The desktop file concept is fairly good. but it`s so poorly supported, as localizing is difficult.
Example: How do you write Audacious in Bulgarian language text.? It`s meaning gets lost...

I put forth the idea of a key in desktop files setting user group type to control the menus.
A key to control each user would be overkill I think. So Group=(group) is used for control.
Most apps are common, so only original desktop file`s needed to show for all. No Group=.
# Also then main menu desktop files, key "Main=true" and Group=. So no menu-root.lst file.
If no Group= or Root= keys in the desktop file, then it`s a common app and shows for all.
If there is a Main=true key but no Group= , then it`s a main menu item that shows for all.
# This setup makes desktop files control all of the aspects of the menu except Categories.

# Don`t get worried, this is just thinking about solutions for desktop file fixing.
.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2158 Post by sunburnt »

Toni; It sounds like the Debian menu does localizations well, right.?

And the Debian menu is well setup now, shouldn`t it be default.?
But there may be other reasons to not use it for default menu.

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#2159 Post by mcewanw »

sunburnt wrote:Toni; It sounds like the Debian menu does localizations well, right.?

And the Debian menu is well setup now, shouldn`t it be default.?
But there may be other reasons to not use it for default menu.
The main reason not to use it as default is that it is ugly compared to the one your code creates Terry, and that is a very good reason not to use Debian menu system as default! Users should be given the nicest menu we have by default. The default distribution itself is released in English anyway, so users can choose Debian menu system then if they so want.
github mcewanw

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#2160 Post by saintless »

Hi, Terry.

I see no problem Debian menu to be the default one but since your mk-jwm.menu is working really well in the last test iso I think we should keep it as default menu. It looks easier to navigate and has different icons for root menu.
We have easy switch command (menu-debian) to get back debian menu and locale files are not included in DebianDpg iso. We have them as separate sfs module for download.

I attach pictures for debian menu on English and Bulgarian. Personaly I will never use it in Bulgarian. Looks confusing to me.

Toni
Attachments
bg_320x449.jpg
(39.68 KiB) Downloaded 206 times
en_320x518.jpg
(44.54 KiB) Downloaded 233 times

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#2161 Post by mcewanw »

saintless wrote:Terry, I think to make DebianDog autologin as root without using XDM by default.
I'm hoping to find out how Porteus manages the following since it would be ideal if the alternatives (root, puppy, xdm) could be chosen by boot cheat codes:

From Portues FAQ:
As of Version 1.0, Porteus will log you in as a non-root user called 'guest' by default. This is done to increase the security of your system. If you would like to boot into KDE, XFCE or LXDE as the root user, just use the 'login=root' cheatcode.
From:

http://www.porteus.org/tutoriels/57-gen ... cheatcodes
login=user_name

... Lets you specify the name of the user (could be also 'root')
which will be autologged into GUI session.
If username is not provided then booting stops on the lxdm/kdm
login screen.
github mcewanw

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2162 Post by sunburnt »

William; And a "text gui" of checks, entries, and combos for the boot options would be trick.

# Guys; Fred`s weeinst worked great.! Got a USB flash to build and boot.

The copy -r command copies the dir. in the script, but /* works fine when run in Vterm.
# Check this out please, it`s driving me nuts..!

I have not tried the ISO Install yet, it took all day to get it this far.
# I figured the installer would progress faster with some help...

As instructed, I have the partition starting at 8MB and custom formatted to ext4.
The article says even fat was made faster by the partition alignment.
GPT boot is faster too, but old PCs don`t handle it, so it`s out for this installer release.

# Toni; Defaulting to auto. login at boot is my choice also. We`ll make a sys. control gui.
And this is from the instructions, telling how to mount any flash media for performance.
We can work this into DebianDog`s mounting of all types of flash media ( sometime...):
[quote]### Changes to mount
To further reduce IO and increase performance, the following seem to be common recommendations, that I did.

Change /etc/fstab so that entry for root partition fourth parameter is changed from “default
Attachments
install+drvinfo.zip
New debdog-install and drive-info.
(3.6 KiB) Downloaded 137 times
Last edited by sunburnt on Fri 04 Apr 2014, 06:01, edited 3 times in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2163 Post by sunburnt »

I noticed these Toshiba USB drives OVERPRICED at Amazon. Sizes are: 3.1 x 4.7 x 0.6 inches.
It`s interesting that this Puppy web site insists on adding the word "OVERPRICED".
$70 U.S. for a 1 TB USB-3 HD... And also a 1.5 TB model that`s only $88 U.S... WOW.!
Portable 2.5 inch HDs, so it can have a swap without tearing it up like a flash drive.
http://www.amazon.com/s/?ie=UTF8&keywor ... is5mf3zd_b

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#2164 Post by saintless »

Hi, Terry.
some changes from me in debdog-install.
This way it will copy only /live from the iso on top of usb flash drive. I guess it is the only dir we need from the iso?
Unfortunately I can't make it boot on my machine. I don't know if it is old hardware issue or not.
Had to make some changes from your script to create /opt/apps/weeboot folder and symlinks to /opt/bin
This is the only way I can make debdog-install work with iso
I made separate squashfs module with the changes. Just load it with sfs-loader or place it in /live and reboot
Type debdog-install in terminal to start GUI.
http://smokey01.com/saintless/Fredx181/ ... l.squashfs

BTW tested with Unetbootin and it makes bootable and working DebianDog flash drive on my PC.

Toni

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#2165 Post by mcewanw »

saintless wrote:Hi, Terry.
some changes from me in debdog-install....
I made separate squashfs module with the changes. Just load it with sfs-loader or place it in /live and reboot
Type debdog-install in terminal to start GUI.
http://smokey01.com/saintless/Fredx181/ ... l.squashfs
I'll try and find time this weekend to try these also. This machine will boot from usb since I've made bootable usb sticks of Puppy in the past, but it's a pretty old machine so a reasonable test.
github mcewanw

Post Reply