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 30 Sep 2014, 18:15
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
DebianDog - beta changed to stable version
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 24 of 29 [431 Posts]   Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, 27, 28, 29 Next
Author Message
Tm_mT

Joined: 03 Aug 2014
Posts: 41

PostPosted: Sat 09 Aug 2014, 05:07    Post subject:  

saintless wrote:
You can make new encrypted save file and mount it and copy all files from non-encrypted save file inside from command line but it is better to start with encrypted save file for the moment.
I will try to make script to help porting non-encrypted to encrypted save in the next days. Read the thread for update about this.


OK, nice. Care to share the command to mount a save file? Mount -o loop?

Sorry for all the questions, feel free to refer to tutorials or links to more detailed info.
Back to top
View user's profile Send private message 
Tm_mT

Joined: 03 Aug 2014
Posts: 41

PostPosted: Sat 09 Aug 2014, 06:24    Post subject:  

One of the first things I usually do after installing any kind of distro is installing Firefox (Iceweasel) and flash. Tried to install from the repo - apt-get install flashplugin-nonfree, but flash was not automatically detected by the browser. I am using DebianDog-Wheezy-jwm_icewm-beta.iso

solution:

http://get.adobe.com/flashplayer/
download tar.gz for other Linux
extract libflashplayer.so from the tarball in /usr/lib/mozilla/plugins/
restart Iceweasel
Back to top
View user's profile Send private message 
stemsee


Joined: 27 Jun 2013
Posts: 402
Location: London

PostPosted: Sat 09 Aug 2014, 06:42    Post subject:  

Hi Saintless everyone

I wrote an unattended remaster script for puppy, it works also with fatdog-700 and should work with any live system with some minor modifications. During multiple tests I realised that I was recreating the puppy filesystem in a directory over and over again for minor modifictaions in the running system. As I test it on my own EmSeeV2.2 @ 2.1GB it takes a while. So I wrote this small script 'ursync' to rsync a running live system with a remaster directory, and if you are willing, to advise on any refinements to improve its function also with DebianDog, particularly the exclude option and maintaining correct permissions I would appreciate it. Not a high priority I know.

Code:
#!/bin/bash
echo
echo "Enter the path, drive and directory you wish to sync with running system.
For example 'mnt sda2 apupsys' which are defaults in Unattended-Remaster script."
echo
read path drive dir
if [ -d /$path/$drive/$dir ]; then
xmessage "Press ok to rsync running system with /'$path'/'$drive'/'$dir'.
Or press 'ok' then 'Ctrl + c' to exit script without syncing."
sleep 8
rsync -urDElpH -e --delete /* /$path/$drive/$dir -F --exclude={run,media,live,aufs,dev,proc,mnt,sys,tmp,initrd,archive,audit,/var/cache/apt/archives,/var/cache/slapt/archives}
else
xmessage "Hmm ... '$dir' on '$path'/'$drive' wasn't found.
      Is there a spelling mistake?
   Is '$drive' the right partition?
        Is '$drive' mounted?
   Is the path /mnt or /media ? Please check!

Press 'ok' to try again. Or 'ok' then 'Ctrl + c' to exit script."
fi
exec ursync
exit
Back to top
View user's profile Send private message MSN Messenger 
saintless


Joined: 11 Jun 2011
Posts: 2486
Location: Bulgaria

PostPosted: Sat 09 Aug 2014, 07:49    Post subject:  

Tm_mT wrote:
One of the first things I usually do after installing any kind of distro is installing Firefox (Iceweasel) and flash. Tried to install from the repo - apt-get install flashplugin-nonfree, but flash was not automatically detected by the browser. I am using DebianDog-Wheezy-jwm_icewm-beta.iso

solution:

http://get.adobe.com/flashplayer/
download tar.gz for other Linux
extract libflashplayer.so from the tarball in /usr/lib/mozilla/plugins/
restart Iceweasel

Thanks , Tm_mT, I think also you can use the same way from the menu Settings -> Flashplayer Choice:



Quote:
Care to share the command to mount a save file? Mount -o loop?

This will work only for non-encrypted mount.
Code:
mount -o loop /path-to/chages.dat /path/mount-point

For encrypted save file something like this:
Make new encrypted save file changes.dat with Make Save File from the menu in /live/image (for example).
Code:
losetup /dev/loop6 /live/image/changes.dat
cryptsetup luksOpen /dev/loop6 crpt # you will be asked for password here
mkdir /mnt/temp
mount /dev/mapper/crpt /mnt/temp

Now /live/image/changes.dat is mounted in /mnt/temp
If non-encrypted changes.dat is in use at the moment all content is available in /live/cow
This should be enough to paste the content in encrypted save file:
Code:
 cp -a /live/cow/* /mnt/temp


Or you can mount non-encrypted save file this way:
Right click from XFE on the non-encrypted save file and choose Open with -> type mnt-img -> Accept
New window will open with the content of changes.dat (mark and paste the path from this new window in terminal with Scroll button)
Code:
 cp -a /media/path-with-many+++changes.dat/* /mnt/temp

Then unmount the encrypted save file, remove /mnt/temp, close /dev/mapper/crypt and free /dev/loop6:
Code:
umount /mnt/temp
rm -fr /mnt/temp
cryptsetup luksClose crpt
losetup -d /dev/loop6


Something like this should work.

_________________
Farewell, Nooby, you will be missed...

Last edited by saintless on Sat 09 Aug 2014, 08:04; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger 
saintless


Joined: 11 Jun 2011
Posts: 2486
Location: Bulgaria

PostPosted: Sat 09 Aug 2014, 07:55    Post subject:  

Hi, Stemsee.
Fred is the master of remaster DebianDog script and I'm sure he can give you better advise. I'm not good at all in script writing.
What I can give you is very simple and easy to understand command line version of DebianDog remaster script that does not need Yad or gtkdialog. It may help you with some idea for improvement. Zip archive attached.
remasterdog-cli.zip
Description  remasterdog-cli script
zip

 Download 
Filename  remasterdog-cli.zip 
Filesize  1.09 KB 
Downloaded  24 Time(s) 

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
stemsee


Joined: 27 Jun 2013
Posts: 402
Location: London

PostPosted: Sat 09 Aug 2014, 08:32    Post subject:  

Thanks. That gives me all the info I need, in an easy to understand script.
Back to top
View user's profile Send private message MSN Messenger 
fredx181

Joined: 11 Dec 2013
Posts: 788
Location: holland

PostPosted: Sat 09 Aug 2014, 08:38    Post subject:  

stemsee wrote:

I wrote an unattended remaster script for puppy, it works also with fatdog-700 and should work with any live system with some minor modifications.


Hi stemsee,
Yes, you could have a look at the script Toni has send.
This is only for when $dir already exists full of files and folders, right?
I'm not exactly sure what your intention is, you have the --delete option in the rsync command.
In case you also want to have files deleted in the target directory synced with what you deleted/uninstalled from the filesystem I'd do just this:
Code:
rsync -v -a --delete /* /$path/$drive/$dir --exclude={run,media,live,aufs,dev,proc,mnt,sys,tmp,initrd,archive,audit,var/cache/apt,var/lib/apt/lists}

(with added var/lib/apt/lists to exclude and the whole var/cache/apt folder excluded )
To be honest I don't know about all the rsync options you use (-urDElpH -e)

Some more tips:

Code:
# After recreating /tmp give it the right permissions.
chmod a=rwx,o+t /$path/$drive/$dir/tmp


Also you might want to "zerosize" man and doc files in /usr/share, it's like this then:
Code:
cd /$path/$drive/$dir
zerosize() {
  find $* | while read file; do
    echo -n "."
    rm -f $file
    touch $file
  done
}

    zerosize usr/share/doc -type f -size +1c
    zerosize usr/share/doc -type l

    zerosize usr/share/man -type f -size +1c
    zerosize usr/share/man -type l


    zerosize usr/share/info -type f -size +1c
    zerosize usr/share/info -type l

    zerosize usr/share/gnome/help -type f -size +1c
    zerosize usr/share/gnome/help -type l

    zerosize usr/share/gtk-doc -type f -size +1c
    zerosize usr/share/gtk-doc -type l

    chown -R man:root usr/share/man

You might want to do some more cleaning in /$path/$drive/$dir, look at the lines starting with "rm" in the remasterdog script.

Fred
Back to top
View user's profile Send private message 
stemsee


Joined: 27 Jun 2013
Posts: 402
Location: London

PostPosted: Sat 09 Aug 2014, 10:21    Post subject:  

Thanks Fredx181

I intend to use this after a remaster for updating the 'work-di'r which I like to leave in existence for using chroot and adding apps flat. This will allow me to experiment more without having to go through the whole remaster. Yes, I know on Debiandog and most pups there is only about 150-200mb (compressed) fatdog about double that and EmSeeV2+ about 4x fatdog's size @ 2.2GB (8.2GB decompressed). There are few differenes in the structure so i am making one remaster script for all three distros and a 'developers' tool to quickly test builds with minor modifications using ursync (unattended-remaster sync).

But even for the Unattended-Remaster script I need to learn more about cache cleaning, and your zero size man, and any other tools to improve efficiency and size. The rysnc part of the script is itself a remaster tool right there, especially if all caches were found and excluded. Then cleaning would be unnecessary perhaps.

Also I am enjoying the challenge of a building a script that behaves exactly as I want, and forcing me to learn the commands and their options/syntax etc

Thanks for the advise.

Edit: rsync -urDElpH -u=skip newer files on dest -r=recursive -D=preserve devices, preserve special files -E=preserve execcutability -l=copy links as symlinks -H=preserve hard links -p=preserve permissions

I think it is a surer way to keep attributes.
Back to top
View user's profile Send private message MSN Messenger 
fredx181

Joined: 11 Dec 2013
Posts: 788
Location: holland

PostPosted: Sat 09 Aug 2014, 10:50    Post subject:  

stemsee wrote:
Edit: rsync -urDElpH -u=skip newer files on dest -r=recursive -D=preserve devices, preserve special files -E=preserve execcutability -l=copy links as symlinks -H=preserve hard links -p=preserve permissions


Ok, good to know.
I forgot to mention before that when I tested your rsync command I found that it doesn't delete files in the target directory (synced with the deleted files on the filesystem).
The command I wrote does that (really "syncs" it) but maybe you don't need that really.

Fred
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 493

PostPosted: Sat 09 Aug 2014, 11:05    Post subject:  

Hi everyone,

stemsee,

For additional remastering inspiration, you might also want to have a look at refracta and UCK (Ubuntu Customization Kit). Sorry, no links. I'm using Fred's GUI and Toni's CLI scripts - both are excellent tools.
Back to top
View user's profile Send private message 
Tm_mT

Joined: 03 Aug 2014
Posts: 41

PostPosted: Sat 09 Aug 2014, 11:31    Post subject:  

saintless wrote:

Thanks , Tm_mT, I think also you can use the same way from the menu Settings -> Flashplayer Choice:


Hmm.. I was looking for it but couldn't find it (probably in other menus). Oh well..
Thanks for the clear mount explanation! Very useful.

One additional comment.

Everytime I start DebianDog I am seeing a message that it was incorrectly unmounted. I think it says something like "uncleanly unmounted persistence..". I use the standard log-out method and then shut down. No errors shown during shutting down.

If you need a more accurate error description or like to see a log file please let me know.
Back to top
View user's profile Send private message 
fredx181

Joined: 11 Dec 2013
Posts: 788
Location: holland

PostPosted: Sat 09 Aug 2014, 11:47    Post subject:  

Tm_mT wrote:
Hmm.. I was looking for it but couldn't find it (probably in other menus). Oh well..

That's because:
Quote:
I am using DebianDog-Wheezy-jwm_icewm-beta.iso

You are using a very, very outdated version from ages and ages ago.
Very Happy
No, seriously now, the beta version is not that bad but indeed it doesn't include flashplayer-choice.
Better use the latest stable.

Edit: Sorry, I see just now in the download section it's still called "beta"
Quote:
Two versions are available for download:
1. DebianDog-Wheezy-jwm_icewm-beta.iso -116 Mb

But when downloading name is: "DebianDog-Wheezy-jwm_icewm.iso"
I'm sure Toni will correct it when he reads this.

Fred

Last edited by fredx181 on Sat 09 Aug 2014, 12:14; edited 1 time in total
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 2486
Location: Bulgaria

PostPosted: Sat 09 Aug 2014, 12:10    Post subject:  

fredx181 wrote:
Tm_mT wrote:
Hmm.. I was looking for it but couldn't find it (probably in other menus). Oh well..

That's because:
Quote:
I am using DebianDog-Wheezy-jwm_icewm-beta.iso

You are using a very, very outdated version from ages and ages ago.

Good find, Fred Smile

Tm_mT, where did you get this old one? It is not on the site since the stable is uploaded. Here is the latest and the only stable version on the site (Jwm and OpenBox):
http://www.smokey01.com/saintless/DebianDog/
The beta also works fine but much more was added for the stable here:
http://www.murga-linux.com/puppy/viewtopic.php?p=790639#790639

Quote:
Everytime I start DebianDog I am seeing a message that it was incorrectly unmounted. I think it says something like "uncleanly unmounted persistence..". I use the standard log-out method and then shut down. No errors shown during shutting down.

I do not use porteus boot much. I will check if I get the same message. Save file changes.dat (encrypted or non-encrypted) should be cheked for errors every boot with fsck. Do you see this fsck save file message on boot (before modules loading 01-filesystem.squashfs message).

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send private message MSN Messenger 
fredx181

Joined: 11 Dec 2013
Posts: 788
Location: holland

PostPosted: Sat 09 Aug 2014, 12:19    Post subject:  

Toni, you see my edit?:
http://murga-linux.com/puppy/viewtopic.php?p=793731#793731
Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 180

PostPosted: Sat 09 Aug 2014, 12:26    Post subject:
Subject description: how to skip starting X during live boot?
 

What code/config changes do you recommend to skip starting X during live boot-3x? I want live boot to fully set up everything, but leave DebianDog running at the command line prompt without X graphics. Then if root wanted to start X she could just type startx. TIA.
_________________
FatDog64 631|Blue Pup 4|DebianDog+OpenMediaVault stick
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 24 of 29 [431 Posts]   Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, 27, 28, 29 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.1185s ][ Queries: 13 (0.0138s) ][ GZIP on ]