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 Sat 20 Dec 2014, 05:44
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Puli 3.8.3 bark 6, released Nov 2014
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [35 Posts]   Goto page: 1, 2, 3 Next
Author Message
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Wed 11 Sep 2013, 04:57    Post subject:  Puli 3.8.3 bark 6, released Nov 2014
Subject description: A high security configurable puplet intended to boot from USB pendrive
 

Welcome to Puli 3.8.3 bark 6, released Nov 2014

Puli is a member of the Puppy Linux family: a high security, "kiosk" flavor of pemasu's Upup Precise v3.8.3.1, intended to boot from a USB pendrive and run safely even if the boot device is unplugged.

The Puppy Linux Project was established by Barry Kauler in 2003. See legal notice at the bottom of this page.

Special thanks to smokey01, pemasu and OscarTalks.

Changelog related to its predecessor released Aug 2014:
    # Auto-boot:
    Any number of .pet and/or .sfs packages plus ONE official Chrome .deb file can be auto-booted. Auto-boot is controlled by loadsfs file.
    In loadsfs, package referencing is easy: finds the package on boot device based on the first few characters - even the extension can be omitted. Wildcard "?" is allowed.
    Tip: Keeping in mind that searching on the USB drive takes time (about 1-2 seconds), you can list all your favourite pet, sfs and Chrome deb files in loadsfs with minus sign (-) at the beginning of lines. Then only those will be auto-loaded for which you removed the minus sign.
    Notes:
    1. The files extracted from the packages will be copied into the memory in the order of their appearance (means files in a package may overwrite the same-name files of earlier installed packages).
    2. This is not a regular install but a simple copy thus the dependencies are not examined. Moreover, this "installation" is not registered in the system. To resolve possible collision(s) between packages, try to change the order of listed packages in loadsfs, or remove/replace those conflicting item(s). Also, you may add some workaround script in /root/zsupp.
    Added "Skip auto-loading user packages during boot time" feature. When asked, any char including space can skip loading user packages.

    # Size:
    Footprint is even smaller than of bark5 and before.
    Backup size dramatically reduced (to a few megabytes) in spite of an additional folder (opt) is included. However, you need to use the same auto-load selection in loadsfs to successfully restore the exact status in the past (when the backup happened).
    Full backup option: if you run /usr/bin/fullbackup, the backup file will include the (merged) files of the auto-loaded packages, too. Note that the size of the backup file can be hundreds of megabytes in this case.

    # Bugs fixed:

    Bash "Shellshock" Vulnerability (CVE-2014-6271, 6277, 6278, 7169. 7186, 7187, ////) fixed. Bash upgraded to bash-3.0.22.
    Test vulnerabilities: curl -k https://shellshocker.net/shellshock_test.sh | bash
    Poodle bugfix included for Chrome (Links2 not affected)
    wine collides with Chrome - fixed by uploading new wine package
    shrink provides buggy result (typo fixed in remove_builtin script)
    no default codec defined for mplayer (now vo=xv)
    (workaround) 32-bit PepperFlash in Chrome v38 and above manifests 64-bit fixed (in the updated petget script)
    Heartbleed vulnerability fixed (by updating openssl and also by upgrading LibreOffice to v4.3.2)
    wget ftp symlink vulnerability (CVE-2014-4877) fixed, too.

    Note: extra mplayer options (lavdopts) removed to provide higher quality videos. However, they might be necessary for old and slow PCs. Copy the content of /root/.config/nome-mplayer to /root/.config/gnome-mplayer

    # Builtin modules removed:

    pbackup
    pcd
    pmusic
    cdrkit
    pburn

    # Modules added:

    deadbeef-0.6.1.3-precise
    cdrtools-3.01a16
    nrg2iso-0.4-i486
    pburn-4.3.10
    peasydisc-3.2

    # New auto-loadable packages created/tested/uploaded:

    audacity-2.0.5-wheezy.pet
    azdrawing-1.4.pet
    AzPainter-puli.sfs
    Calibre-2.5p.pet
    gimp-precise-2.8.10p.pet
    inkscape-0.48.0pt.pet
    jre-1.7u71-i586.sfs (and .pet)
    jre-1.8u25-i586.sfs (and .pet)
    LibreOffice-4.3.2p.pet
    linphone-3.6.1-xv-precise.pet
    mypaint-1.1.0_asri20140326_310.pet (and sfs)
    pmusic-4.4.1.pet
    libcdio12-0.82-12.1.2.i586.pet
    libcddb-1.3.2_20130430-wheezy.pet
    Skype-4.3.0.37ap-puli.pet
    Skype-4.3.0.37pa-puli.pet
    wine_puli_wt-1.7.21.pet (includes winetricks)
    xmahjongg_3.7-3_asri20140507_310.pet
    pets2sfsgui-1.3.1.pet

    # New features:

    The browse desktop icon has this preference order to open: Chrome, Links2 - depending on which one is installed.
    The paint desktop icon has this preference order to open: Gimp, Mypaint, AzPainter, mtpaint - depending on which one is installed.
    The draw desktop icon has this preference order to open: Inkscape, AzDrawing, Inklite - depending on which one is installed.
    The Skype desktop icon was replaced by a phone icon. The Chat feature behind it has this preference order: Skype, linphone, xchat - depending on which one is installed. Note that Chrome v35 and above block websites to access microphone/camera thus some popular AV chat URLs such as https://appear.in/puli may not work.
    After boot-up, the adblock feature starts and updates the /etc/hosts file.
    A newly installed/upgraded/downgraded Chrome attempts to import its preferences from the /root/spot/.config/google-chrome/Default/Preferences.ori file (that the user optionally prepared for this purpose, e.g., for language settings).
    Any version of LibreOffice precedes the rest of Office apps, i.e., SoftMaker, and Goffice.

I. How to install Puli:

1. Create a bootable USB pendrive
    a. In any Puppy Linux distro/puplet such as pemasu's Upup Precise 3.8.3.1, run the Setup / BootFlash install Puppy to USB utility and follow the instructions there.
    b. When finished, delete all files from the pendrive except ldlinux.sys.
2. Copy Puli to the pendrive.
    a. Puli and its updates are available at www.smokey01.com/gjuhasz in form of compressed files. Download then unpack the Puli_install.tar.gz file to access the Puli_install folder.
    b. Open the Puli_install folder and copy its content into the (root of the) USB pendrive.
    c. It does worth to download the sfs folder from www.smokey01.com/gjuhasz into the USB pendrive, too. Puli offers advanced Office options and the newest Java runtime module in those sfs files.
* To have SoftMaker FreeOffice, put a SoftMaker line in loadsfs file on your USB boot device. You need to register and obtain your personal license at Softmaker Software GmbH as detailed below. See the related legal restrictions at /opt/freeoffice/license.txt.
* Alternatively, you can use LibreOffice (without registration) by putting a LibreOffice line in loadsfs file.
* You can reference any number of .sfs and/or .pet files simply by referencing their file name in separate lines of the loadsfs file as shown in the above examples. Puli will find those .sfs files (on the USB boot device) and load them during bootup. Note that the first score will be loaded even if the USB pendrive has multiple files with the same file name.

3. Unmount the pendrive. You are ready, Puli is installed.

4. Before rebooting your machine from the pendrive
    a. I recommend to read the following sections, too.
    b. If you know what to do, you may configure some startup parameters in syslinux.cfg right now.
    c. Ensure that the BIOS is configured to boot from pendrive.

5. Give Puli a go!


II. Puli in a nutshell:

1. Boot-up the PC from the USB pendrive pre-installed with Puli.
    a. When asked, log in as root.
    b. Type root as password. Later you can change the password and save it for next logins.
2. The QuickSetup dialog pops up. Here, you may configure the system as you want.
    a. Check whether timezone, locale and keyboard, etc., are correct and change them if needed.
    b. You may right-click the Volume tray icon, select Full window and check/adjust Capture, Mic boost, etc.
3. The USB pendrive gets unmounted. Consider pulling it out when the popup message reminds you.

4. It is recommended to set your own session password.
    a. Open console
    b. Issue the busybox passwd command.
5. Before you finish, be sure that you left no data on the PC.

6. There are different methods to save your work on the (replugged) USB pendrive:
    a. Clicking the backup icon on the right of the Desktop immediately creates a compressed Puli_backup_YYYY_MM_DD_HH_MM.tar.gz backup file in the /backup folder of the USB pendrive. Backups include Backup description. Note that the password files and the content of the .sfs files (installed into /initrd/pup_ro2 and /initr/pup_ro4 folders) are excluded. While those .sfs files are the same, you can restore a previous status from a backup if you drag-and-drop its icon onto the Restore icon next to it.
    b. You can decide to create backup by selecting Save: backup on the Shutdown dialog.
    c. You can preserve the current settings without creating backup file by clicking the Save: patch button on the Shutdown dialog.

* Be wary of hardware keyloggers. From the tray, open the virtual keyboard and use it any time to enter passwords or other sensitive text.

* Based on the preset user profile, some features, such as Office programs, evince, etc., may start in offline mode for your security


III. For advanced users:

* The installed mesa graphics accelerator version is 9.0.2 for Intel video hardware while 8.0.4 for Nvidia and Radeon devices.

* You may add boot parameters, e.g., pkeys=hu plang=hu_HU.UTF-8, to syslinux.cfg on the pendrive (see among the install files).

* The default timezone is GMT. However, Puli overwrites it with the content of the single-line timezone file from the (root of the) pendrive. Take a look into the /usr/share/zoneinfo folder for correct timezone strings such as Australia/Perth

* If the USB pendrive contains a /patch and optionally a /profiles/Common folder, then Puli updates the filesystem with their merged content during bootup (before X starts).

* The last executed script in the /root/Startup folder is zsupp. It may worth looking into it for the tricks it does. Of course, even zsupp could be updated from /patch before it (zsupp) would run.

* In the Puli package, you can find tricky user profile examples realized by different patch structures. They can be selected/activated (copied into /patch folder on the pendrive) by clicking their fantasy-named profile selector icon.

Mild-tempered
    a. This is the default profile, i.e., when there is no /patch folder on the pendrive or it is empty.
    b. The network_tray icon becomes red while suspicious connections are active. They are logged in /var/log/suspicious_connections file.
Rigorous
    a. Barks as soon as suspicious connections are detected (only during browsing). Then, to prevent hacker attacks, updates the firewall's blacklist with the suspicious hosts.
    b. Puli does not release the suspicious host but occupies its available ports in SYN_SENT or similar mode. For details, see profile-specific scripts such as /usr/local/apps/defaultbrowser and /usr/bin/chromium.
    c. If you accidentally get false alarm(s), move those friendly IP addresses from /etc/suspicious_hosts to /etc/friends file (and update your patch structure accordingly).
Crazy
    a. According to the profile name, Puli makes hackers crazy. It disables the network periodically to prevent their session become effective.
    b. Consider to download and enable the Disconnect extension in Crazy profile even if you are in Incognito mode.

* The recommended browser (based on the default settings in the loadsfs file) is a properly sandboxed Chrome version 34 with Flash plugin version 14. You can easily upgrade or even downgrade Chrome using the unique Smart Install feature of Puli:
* In all profiles, clicking the info icon invokes the Links browser configured for smart media recognition capabilities. The Links browser opens also if you click the browse icon while there is no Chrome installed.

* Parental control: Append IP addresses or even domain names (e.g., 1.2.3.4 and/or somename.com) as separate lines to the /etc/suspicious_hosts file (of course, copy it into your favorite patch structure on the UBS pendrive, together with /etc/friends). Puli interprets them and feeds the blacklist automatically.

* Notice that some common Puppy utilities, e.g., default applications chooser and firewall generator, have been removed in favor of the patch-based features.

* Notice also that the .DirIcon of the selected profile folder appears on the Desktop as backup icon.

* If you connected an MTP (Media Transfer Protocol)-capable device (e.g. a mobile phone) via USB cable, open a terminal window and issue mtp+. Now, you can access the device thru the /root/MTP folder. If you finished, issue mtp- before disconnecting the USB cable.


IV. For enthusiasts:

You may need to customize Puli if you want to run it on the same computer. Puli supports this in many ways as follows. But keep in mind that different computers' settings can be incompatible with each other thus their settings should be stored separately, i.e., in different patch profiles.

* During bootup, the .sfs and .pet files listed in loadsfs file on the USB boot device, either as /patch/loadsfs or /profiles/Common/loadsfs, (don't mix - the former overrides the latter, other locations are ignored) will also be loaded if they exist somewhere on the USB boot device. You can reference there as many files as you want - even a truncated but unique basename, e.g., "wine", or (if you are unsure about capitals in the filename) "?ine" is enough to locate "wine_puli-1.7.21.pet". Note that while, on the one hand, only the memory limits the number of the auto-loaded files; on the other hand, they cannot be unloaded in the current session. Puli is prepared to auto-load an (ONE) official chrome .deb package referenced in loadsfs, too. The chrome package name must be like "google-chrome-stable_34.0.1847.137-1_i386.deb" (this is how an official Google Chrome package name looks like).

* Notice that the auto-loaded files are merged into the /initrd/pup_rw folder: they arrive there in the order of their appearence in your loadsfs file. As in other Puppies, you may install five additional .sfs files on-the-fly later (into /initrd/pup_ro4 ... /initrd/pup_ro8). However, Puli offers a workaround if you need to load more than five .sfs files on-the-fly. Menu item Setup > Merge SFS files gets (based on their alphabetical order) the *.sfs files found in /root folder, then merges them into /root/puli.sfs. Move it to the pendrive and reference it as a single item to load/unload it using the Settings > SFS-Load menu item from the desktop.

* You can save your session settings to auto-load them on the same machine next time. The following examples are here only to help understand the basics. However, their result should be similar to what you get by clicking the Save: patch button on the Shutdown dialog.

Example A. Preserving only the audio configuration:
    a. Set up the sounds with the Retrovol tray icon.
    b. Open a terminal.
    c. Issue alsactl -f /etc/asound.state store
    d. Copy the /etc/asound.state file into your machine-specific profile on the pendrive.
    e. Puli restores the same settings at every boot time.
Example B. Preserving only the network configuration:
    a. In Puli, Barry's sns is used to establish network connection. It stores your machine-specific preferences in /etc/simple_network_setup/ folder. Here, wpa_supplicant.conf files contain colons ( : ) in their name which cannot be copied to your pendrive if it is FAT-formatted. If so, replace these colons with equals sign ( = )
    b. Copy the /etc/simple_network_setup/ folder to the patch structure of the machine-specific profile on the pendrive.
    c. Puli restores those filenames when loading the patch files at startup.
Example C. Preserving configuration items using built-in script:
    a. Set up the sounds with the Retrovol tray icon.
    b. Check that sns is configured well.
    c. If you chose the default Softmaker FreeOffice program, click the write desktop icon to enter the Softmaker FreeOffice licence key. The key is free for registered users. You need to do this only once, at the first usage.
    d. In a terminal window, issue permanent
    e. The /usr/bin/permanent script asks for a permanent password then saves the sound and network settings into the /patch folder on the pendrive. You can add more lines to save other session files, e.g., bookmarks, browser profile, desktop background or even downloaded files that have been arrived into the /root/spot/Downloads/ folder.
    f. Puli reads the saved settings at every boot time from the actual content of /patch folder of the pendrive. It is recommended to store those machine-specific sets in separate profiles then populate the pendrive's /patch folder from the appropriate profile when necessary.

* In contrast to other puppies, you cannot save your session as puli.2fs on the USB pendrive or elsewhere. Instead, use the backup desktop icon or the Save: backup option at the Shutdown dialog. Note that the auto-loaded extra packages are not included in the backup file thus you need to use the same loadsfs file next time to restore the same environment. However, you can run the /usr/bin/fullbackup script from a terminal window if you really want to include the auto-loaded files in the backup file. Note that the timestamp (mdate) of the whole stuff controlled by loadsfs are set back to 2001-11-11 11:11.

* You may refresh the puppy_puli_3.8.3.sfs file with the content of the actual patch structure:
    a. Ensure that the pendrive is plugged in (either mounted or unmounted).
    b. Open a terminal and issue refresh
    c. The temporary files are in the /root/squashfs-root folder. You can manually edit their content there when the script asks for this.
    d. Wait until all operations are finished.

* The shrink script does the same as refresh except that it calls the Remove Builtin Files utility before writing back to the USB pendrive. The temporary files are in the /root/squashfs-root folder. You can manually edit the content there when the script asks for this.

* The paint desktop icon has this preference order to open: Gimp, Mypaint, AzPainter, mtpaint - depending on which one is installed.

* The draw desktop icon has this preference order to open: Inkscape, AzDrawing, Inklite - depending on which one is installed.

* The phone desktop icon has this preference order to open: Skype, linphone, xchat - depending on which one is installed.

* Skype installed from Skype-4.3.0.37ap-puli.pet runs as spot but may be silent if the 'apulse' emulator is incompatible with your hardware. Use Skype-4.3.0.37pa-puli.pet to force sound by pulseaudio - but in this case Skype runs as root, which can be insecure.

Have fun!

Regards,
gjuhasz
mild.png
 Description   Icon of the Mild-tempered profile
 Filesize   10.53 KB
 Viewed   3668 Time(s)

mild.png

rigorous.png
 Description   Icon of the Rigorous profile
 Filesize   16.29 KB
 Viewed   3561 Time(s)

rigorous.png

crazy.png
 Description   Icon of the Crazy profile
 Filesize   12.98 KB
 Viewed   3450 Time(s)

crazy.png

Puli_Sandbox.jpg
 Description   
 Filesize   25.69 KB
 Viewed   5512 Time(s)

Puli_Sandbox.jpg


Last edited by gjuhasz on Thu 06 Nov 2014, 14:58; edited 62 times in total
Back to top
View user's profile Send private message 
kros54

Joined: 17 May 2009
Posts: 103
Location: member of Hungarian Puppy Linux Community

PostPosted: Wed 11 Sep 2013, 08:10    Post subject:  

Errö írhatnál a magyar puppy-oldalra is!
www.puppylinux.hu
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2612
Location: www.eussenheim.de/

PostPosted: Wed 11 Sep 2013, 09:15    Post subject: Re: Puli Puppy 3.8.3
Subject description: A high security configurable puplet intended to boot from USB pendrive
 

syslinux.cfg wrote:
default vmlinuz initrd=initrd.gz pmedia=usbflash pfix=ram

I did not see any initrd.gz in Puli

Could not run it Crying or Very sad
Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Wed 11 Sep 2013, 09:27    Post subject: Re: Puli Puppy 3.8.3
Subject description: A high security configurable puplet intended to boot from USB pendrive
 

Oops... Embarassed

I re-uploaded Puli_install.tar.gz to the collection at www.smokey01.com/gjuhasz
HU menu bug fixed: now the default menu is English

Thanks for your notice.

L18L wrote:
I did not see any initrd.gz in Puli

Could not run it Crying or Very sad
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2612
Location: www.eussenheim.de/

PostPosted: Thu 12 Sep 2013, 11:45    Post subject: Re: Puli Puppy 3.8.3
Subject description: A high security configurable puplet intended to boot from USB pendrive
 

Thanks for re-uploading Very Happy

Took me some time to get it running.

Had to change BIOS, pendrive from automatic mode to HDD

Then forgot to set password.
Had to copy from a known /etc/shadow to enable access.

German langpack installed Cool
puli.png
 Description   
 Filesize   58.9 KB
 Viewed   5093 Time(s)

puli.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2612
Location: www.eussenheim.de/

PostPosted: Thu 12 Sep 2013, 13:12    Post subject: Puli Puppy 3.8.3  

Crying or Very sad
Code:
4. It is recommended to set your own session password.

a. Open console
b. Issue the busybox passwd command.
Question
passwd.png
 Description   
 Filesize   23.41 KB
 Viewed   5144 Time(s)

passwd.png

Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Thu 12 Sep 2013, 16:46    Post subject: Re: Puli Puppy 3.8.3  

L18L wrote:
Crying or Very sad
Code:
4. It is recommended to set your own session password.

a. Open console
b. Issue the busybox passwd command.
Question


@L18L: Wow! You discovered a funny set of defense built in Puli...

1. Let me start with "passwd". As written in the intro (Help) text, Puli overwrites the default "root" password with a looong secret one at the earliest possible time. You remain logged in as root, but Puli recommended to set your own session password by issuing the busybox passwd command Laughing
2. I admit, not only is the password overwritten by Puli immediately but the "passwd" command, too Cool Well, this is a simple trick that prevents a friend (or a remote hacker) to change your password while you are working.
There are other common utilities such as ptrace and prctl, which are favorite "tools" of hackers who try to get remote control over your system. Puli knows that only malicious attackers try to act this way, so pops up the same alert message as for passwd. Remind that neither ptrace nor prctl are implemented in the original Precise 3.8.3.1 thus nothing has been lost.
Let me attach an example of setting a default password different from "root" and forcing Puli to replace it with the same one. If you copy /etc from the extracted attachment into the /patch folder of your pendrive, your default password will be L18L at boot time and will remain L18L for the current and future sessions.

Regards,
gjuhasz

P.s:. Ein herzliches Dankeschön an die deutsche Übersetzung!
However... I would appreciate if my Puli logo could appear also in the German version... see as /usr/local/lib/X11/pixmaps/puli96.png
From_now_my_permanent_password_is_L18L.tar.gz
Description  Run it! Love it! Trust it!
gz

 Download 
Filename  From_now_my_permanent_password_is_L18L.tar.gz 
Filesize  664 Bytes 
Downloaded  355 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2612
Location: www.eussenheim.de/

PostPosted: Fri 13 Sep 2013, 05:43    Post subject: Re: Puli Puppy 3.8.3  

gjuhasz wrote:
... set your own session password by issuing the busybox passwd command Laughing
Yes, that is better than just
Quote:
set your own session password by issuing the busybox passwd command
Laughing

gjuhasz wrote:
P.s:. Ein herzliches Dankeschön an die deutsche Übersetzung!
However... I would appreciate if my Puli logo could appear also in the German version... see as /usr/local/lib/X11/pixmaps/puli96.png
There is no German "version".
It is just the langpack_de-20130806 loaded, nothing else.
The translated help page shows puppy logo like the original English help page.

So I think it is up to you to owerwrite puppy logo with (link to ?) Puli logo.

At all,
Since you know my password now try to hack me Laughing Laughing Laughing
Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Sun 15 Sep 2013, 16:43    Post subject: Re: Puli Puppy 3.8.3
Subject description: An example of saving session onto USB boot device.
 

Install material updated.
Now the default page in Chrome is Google Chrome EULA:

http://www.google.com/chrome/intl/en/eula_text.html

Last edited by gjuhasz on Mon 16 Sep 2013, 10:18; edited 1 time in total
Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Sun 15 Sep 2013, 17:09    Post subject: Re: Puli Puppy 3.8.3
Subject description: An example of saving session onto USB boot device.
 

L18L wrote:
Since you know my password now try to hack me Laughing Laughing Laughing


Let me propose to use the below script as an example for how to save some local settings on the pendrive:

Code:
#!/bin/bash
bootdev=`cat /etc/rc.d/PUPSTATE |grep PUPSFS |cut -f1 -d "," |cut -f2 -d "'"`
#asks for password then updates it together with sound settings in /patch/etc folder of the USB boot device
yaf-splash -bg yellow -close box -icon /usr/local/lib/pixmaps/puli48.png -text "To make your sound and password settings be permanent, please ensure that your USB boot device is plugged in."
/usr/bin/urxvt -e busybox passwd
mkdir -p /mnt/$bootdev
mount /dev/$bootdev /mnt/$bootdev
sleep 1
alsactl -f /etc/asound.state store
mkdir -p /mnt/$bootdev/patch
mkdir -p /mnt/$bootdev/patch/etc
mkdir -p /mnt/$bootdev/patch/etc/patch
cp -f /etc/passw* /mnt/$bootdev/patch/etc
cp -f /etc/shado* /mnt/$bootdev/patch/etc
cp -f /etc/shado* /mnt/$bootdev/patch/etc/patch
cp -f /etc/passw* /mnt/$bootdev/patch/etc/patch
cp -f /etc/asound.state /mnt/$bootdev/patch/etc
cp -f /etc/passw* /etc/patch
cp -f /etc/shado* /etc/patch
# Here you can add more lines to save other session files,
# e.g., bookmarks, browser profile, desktop background
# or even downloaded files that arrived into /root/spot/Downloads.
# But keep in mind that some settings, e.g., /etc/asound.state are machine-specific
# thus it is better to store them in machine-specific profiles of Puli.
sleep 1
umount /dev/$bootdev
yaf-splash -bg yellow -close box -icon /usr/local/lib/pixmaps/puli48.png -timeout 120 -text "Permanent password created, sound settings saved. Now you may unplug the USB pendrive. Don't forget to update your profile(s) on the pendrive with the new settings."



The next Puli version will include a desktop icon for a script (or feature) like this.
In Puli, I do not offer automatic or manual saving to pupsave.2fs in favor of the planned "carve in stone" feature.
Back to top
View user's profile Send private message 
pulmar

Joined: 27 Sep 2013
Posts: 2

PostPosted: Fri 27 Sep 2013, 17:25    Post subject: Re: Puli Puppy  

Thanks for the interesting version of Puppy, it works well in my Asus laptop.

In the current version of Puli the Chromium browser default language seems to be Hungarian and this brings Hungarian words e.g. to the menu of www.google.fi page. I can get it work normally if I remove the Hungarian from the Chromium language selection. Obviously this change will not be saved, when I restart Puli the Hungarian language is still there. This applies just Cromium browser, the language and keyboard selections of Puli itself are OK.
Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Sat 28 Sep 2013, 19:52    Post subject: Re: Puli Puppy  

pulmar wrote:
Obviously this change will not be saved, when I restart Puli the Hungarian language is still there.


Thank you for your interest in Puli.
I assume you use it as recommended, i.e., boot from USB pendrive with pfix=ram and your actual profile is in the /patch folder of your pendrive.

I propose to do the following:

1. Change the browser settings as you need
2. Close the browser
3. Issue the below command from a terminal window (replace '$bootdev' with the mount point of your device, e.g., 'sdb1')

Code:
cp -f --parents /root/spot/.config/chromium/Default/Preferences /mnt/$bootdev/patch


From now the browser starts with your preferences.
You can insert this and/or similar commands such as

Code:
cp -f --parents /root/spot/.config/chromium/Default/Bookmarks /mnt/$bootdev/patch


into the script in my above post.
Back to top
View user's profile Send private message 
pulmar

Joined: 27 Sep 2013
Posts: 2

PostPosted: Wed 02 Oct 2013, 02:38    Post subject: Puli puppy  

Thanks for the instructions. Now Puli works as expected, and I will continue studying its specific features.
Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Mon 18 Nov 2013, 14:22    Post subject: Puli 3.8.3 bark 2, released Nov 2013  

Hi all,

I am proud to announce Puli 3.8.3 bark 2

See detailed description at the top of this page.

Changelog related to its predecessor released Sep 2013

    Easier password handling (thanks to your posts above)
    New backup feature with profile icon
    New shutdown dialog with "save to patch" feature.
    Updated "Mild" profile (a bit lighter without decreasing its security level)
    Help icon opens a "milder" browser in each profile
    Updated Chrome browser (to the current live v30 with Flash plugin v11.9.)
    New desktop background
    New jwm skin
    Minor bugfixes


Have fun!

Regards,
gjuhasz
Back to top
View user's profile Send private message 
gjuhasz


Joined: 29 Sep 2008
Posts: 178

PostPosted: Thu 05 Dec 2013, 18:14    Post subject: Restore script  

The simple script below can be used for restoring backups. Copy it into the root of the USB pendrive where the backups are saved. To restore a previous status, simply drag a backup file and drop it on the Restore icon.

Code:

#!/bin/bash
if [ -z "$1" ]               
then
   yaf-splash -bg yellow -close box -icon /usr/share/pixmaps/puli.png -timeout 5 -text "To restore, drag a backup file and drop it on the Restore icon."
else
   bootdev=`cat /etc/rc.d/PUPSTATE |grep PUPSFS |cut -f1 -d "," |cut -f2 -d "'"`  2>/dev/null
   killall -9 abiword 2>/dev/null
   killall -9 gnumeric 2>/dev/null
   killall -9 chrome 2>/dev/null
   killall -9 chromium 2>/dev/null
   killall -9 yaf-splash 2>/dev/null
   killall -9 xchat 2>/dev/null
   killall -9 evince1 2>/dev/null
   killall -9 skype 2>/dev/null
   killall -9 gtkdialog3 2>/dev/null
   killall -9 nome-mplayer 2>/dev/null
   killall -9 mplayer 2>/dev/null
   sleep 1
   #rm -R root/spot/.config/google-chrome/*
   sync
   #cp -R /initrd/pup_ro2/root/spot/.config/google-chrome/* /root/spot/.config/google-chrome/
   sleep 1
   rm -f /tmp/tmp1 2>/dev/null
   sync
   mkdir /tmp/tmp1
   sync
   tar -zxvf $1 -C /tmp/tmp1
   sync
   sleep 1
   cp -rf /tmp/tmp1/* /
   sync
   yaf-splash -bg green -close box -icon /usr/share/pixmaps/puli.png -timeout 5 -text "$1 restored, now X restarts..."
   rm -f /tmp/tmp1
   restartwm jwm
fi


I am actually working on the New Years Eve version of Puli. Among the bunch of new features, you will find a more comfortable Backup and its Restore counterpart. In addition, as a surprise, I will introduce the "crazy" profile.
Fasten seat belts...
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [35 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
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.1670s ][ Queries: 13 (0.0062s) ][ GZIP on ]