DebianDog Utilities

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

#21 Post by saintless »

Change Jwm Theme GUI - included in DebianDog Jwm version.
This is an experiment for me to create something useful for theme changing from Terry's mk-save.gtkdlg script. It works but any improvements are welcome.

Archive containing the files available for download:
http://smokey01.com/saintless/DebianDog ... eme.tar.gz

Start it from Settings -> Change JWM Theme to start the GUI and follow the screen instructions. 12 new themes from Puppy added in /opt/docs/jwm-themes.

Image
Image
Image
Last edited by saintless on Fri 18 Mar 2016, 08:08, edited 8 times in total.

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

#22 Post by saintless »

To change WM use System -> Start Icewm/Start Jwm
The system will exit X to command prompt. Type startx and press Enter.
IceWM pictures with iceWm-Control-Center.
Image
Image
Last edited by saintless on Fri 25 Apr 2014, 15:40, edited 1 time in total.

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

#23 Post by saintless »

mk-jwm-menu from Terry: (Menu Puppy)

Source code download:
http://smokey01.com/saintless/source-code/mk-menu.zip

Menu Puppy is generated from /usr/share/applications/*.desktop files according freedesktop.org standards.
Menu Debian is the default Debian menu generated from /usr/share/menu files:
To switch the menus use System -> Menu Puppy / Menu Debian
In a few seconds the new menu will appear.
ImageImage

DebianDog from February 2015 has included also third menu method - Menu-MJWM:
https://github.com/chiku/mjwm

Image

It gives option to add one or more custom user directories with .desktop files. The menu entries can be different for each user account with Menu-MJWM and Menu-Debian. With Menu-Puppy (mk-jwm-menu) this is not possible - it generates the same menu for root and all user accounts.

.
Last edited by saintless on Sun 06 Mar 2016, 14:41, edited 6 times in total.

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

#24 Post by saintless »

ffmpeg2sfs is mixed GUI script made from Fred's apt2sfs and RemasterDog.

Image

Running ffmpeg2sfs script will create ffmpeg.sfs separate module from downloaded with apt-get packages. You can simply install ffmpeg with apt-get or Synaptic but the size will be 44 Mb uncompressed data in your save file. ffmpeg2sfs will create 8 Mb sfs module in few minutes for the users who like to keep the system size small and load ffmpeg.sfs only when it is needed.
We can not provide ready for use ffmpeg.sfs downloaded with apt-get from multimedia repositiry because it will contain modified version of non-free dependencies. Distribution of such ready for use ffmpeg.sfs will be violation of the license.

But for download and use right away solution we have compiled from Fred without non-free package dependencies:
ffmpeg-static-0.9.4.squashfs- 13 Mb:
http://kazzascorner.com.au/saintless/De ... 4.squashfs
Load the module and type in terminal ffmpeg, ffplay or ffprobe for help menu.

If you like to have ffmpeg separate sfs module with smaller size use ffmpeg2sfs script to create one only in few minutes.

========================================
Last edited by saintless on Sun 06 Mar 2016, 14:42, edited 6 times in total.

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

#25 Post by saintless »

Redeb from Fred - script for extract, edit and repack debian packages.

Source code download:
http://smokey01.com/saintless/source-code/redeb.zip

Single click on deb package in XFE will extract the content in a folder in the same location. Right click on the folder -> Scripts -> Create-deb-from-folder will repack it again.
Same in Rox right click options extract-deb-package and create-deb-from-folder.
From command line:

Code: Select all

redeb /path-to/package.deb
will extract debian package.

Code: Select all

redeb /path-to/folder
will repack the folder as debian package in case it has the needed debian package files included.
Last edited by saintless on Sun 04 May 2014, 08:29, edited 4 times in total.

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

#26 Post by saintless »

OK, open for discussion.

Still much to add and explain but you can read and comment what is added to the moment.

Terry, Fred, William - anything you like to be added/edited is fine.

Toni

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

#27 Post by fredx181 »

Hi Toni,

Very,very nice!

One small thing for apt2sfs:
apt-get clean is already run automatically.

EDIT: Sorry, didn't read well, I now see it just shows that it's done automatically.

Fred

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

#28 Post by saintless »

No, Fred. My mistake, sorry!
I edited the information after reading your post and I thought I posted after you here. Seems I forgot to answer here while posting in other two threads.
Toni

fixit

#29 Post by fixit »

I have read a lot of posts and info,
but I cannot understand how to get DebianDog to save changes automatically.

I installed it to it's own partition.

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

#30 Post by saintless »

fixit wrote:I have read a lot of posts and info,
but I cannot understand how to get DebianDog to save changes automatically.

I installed it to it's own partition.
What is the boot method you use and the file system on DebianDog partition?
Please, post the boot code you use to boot DebianDog. This will help a lot.

Toni

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#31 Post by anikin »

Here's a tiny, nifty utility, that will put you in control of services and startup files in Debian.
rcconf
to install type in the terminal:
#apt-get update
#apt-get install rcconf
to run the utility, type rcconf in the terminal
to enable or disable a service, select an item and press the space bar on the keyboard.
==>http://www.debianhelp.co.uk/unwanted.htm
Attachments
rcconf.jpeg
(23.07 KiB) Downloaded 5135 times

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

#32 Post by saintless »

Resize Save File GUI utility:

Deb package available (included in DebianDog):
http://smokey01.com/saintless/DebianDog ... 1_i386.deb

Use it only with unmounted save file! You need to boot without save-file (no-persistent) option.
You can enlarge mounted save file but it is not recommended and if you try just in case backup important data first.
Shrinking mounted save file will damage the file structure!

Image

Start it from terminal:

Code: Select all

resize-save
or from Utility --> Resize Save File
Choose the save file location (live-rw, changes.dat, etc...) and type new final size in Mb. Click OK button.
In the example on the picture live-rw will be resized to 2000Mb no matter what is the start point size of live-rw.
Last edited by saintless on Fri 18 Mar 2016, 08:10, edited 4 times in total.

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

#33 Post by sunburnt »

anikin; Looks like what I was talking about.

Does it have a back-end cli interface that a GTK gui could be made for.?

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

#34 Post by saintless »

New packages, updated packages and fixes:

Hosting for all DebianDog versions (thanks to KazzaMozz)
DebianDog backup download site
DebianDog second backup download site
Final iso images will be uploaded also here (thanks to KazzaMozz)

All future updates will be provided from apt-get or Synaptic as deb packages from DebianDog repository.
Typing apt-get upgrade will upgrade all packages from official Debian repository and from DebianDog repository.
Typing apt-get install package-name will upgrade only one package.
All fixes will be listed in this post.
All extra packages (not included in DebianDog) will be uploaded here and easy installable with apt-get install package-name or Synaptic.

=========================================


Fixes list moved here.


======================================

Use this command in terminal (after running apt-get update first) and read the Description: line for information about each package:

Code: Select all

apt-cache show package-name
Or download the deb, use XFE file manager and Right click -> View on deb package. (Or Right click -> Open With -> xfp). Read the Description: line for each package.

=======================================

DebianDog package repository - all packages here are available for installing/reinstalling with apt-get or Synaptic.
Packages not included in DebianDog repository - the reason not to include them in repository is these packages work fine for DebianDog but could create some problems in standard Debian.
Building deb files instruction and testing post

===========================================

Saved for later projects information:

For later SID version update
Testing squashfs module with dpkg synchronization scripts for every possible case (universal solution). --> moded from Fred

===========================================
Last edited by saintless on Sun 25 Oct 2015, 14:27, edited 226 times in total.

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

#35 Post by fredx181 »

Hi All,
Here's modified rcconf using Xdialog.
Default is Xdialog but can still also be run from terminal to use dialog or whiptail.
For example:

Code: Select all

rcconf --dialog
Fred
Attachments
rcconf-Xdialog.zip
(8.91 KiB) Downloaded 629 times
rcconf-Xdialog.png
(43.33 KiB) Downloaded 4965 times

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

#36 Post by sunburnt »

Fred; Very nice. What other items can be included for a system control panel like Puppy`s.?
For items below that have gui we can add a button to run it. A tabbed panel is best.
WM & DM selection and control, X key, mouse, & screen, clock, HW setup, sys. info., etc.

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

#37 Post by saintless »

For anyone who prefer to use the default Puppy Firewall here is deb package:
http://smokey01.com/saintless/DebianDog ... 1_i386.deb

Works for both DebianDog versions (OpenBox and Jwm).

Install and start from Settings -> Firewall Puppy.
Image

Confirm your configuration choice:
Image

After every reboot you will see this window:
Image

Configuration files are changed. The main script is in /opt/bin and it creates $HOME/rc.firewall script which is started from $HOME/Startup/firewall-puppy script after login and can have different setup for each user account.
For user account there will be GUI window to type root password.

========================================

Edit: Sancxjo posted alternative firewall startup + log writing:

Starting firewall line in /etc/rc.local:

Code: Select all

/etc/init.d/rc.firewall start
File /etc/init.d/rc.firewall:

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          rc.firewall
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.firewall if it exist
### END INIT INFO


PATH=/sbin:/usr/sbin:/bin:/usr/bin

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_start() {
	if [ -x /etc/rc.firewall ]; then
	        [ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.firewall)"
	        echo "`date +%d.%m.%Y_%T%t`Lanĉo de barilo">>/var/log/user.log
		/etc/rc.firewall
		ES=$?
		[ "$VERBOSE" != no ] && log_end_msg $ES
		return $ES
	fi
}

case "$1" in
    start)
	do_start
        ;;
    restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
    stop)
        ;;
    *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac
It doesn't need password from user account this way and writes log.

===========================================
Last edited by saintless on Fri 18 Mar 2016, 08:11, edited 3 times in total.

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

#38 Post by saintless »

Script for creating new initrd files for live-boot-2x and porteus-boot
Special script mostly for my own use but it may be interested for others.

If new kernel is installed with apt-get it will create initrd.img for live-boot-3x only. This script will auto-create live-boot-2x and porteus-boot initrd files from initrd.img for new installed kernel.

Download and extract the archive in /opt/bin for example:
http://smokey01.com/saintless/DebianDog ... initrd.zip

Make sure you have all three initrd files from DebianDog iso inside /live/image/live (initrd.img, initrd1.img and initrd1.xz).
Boot with live-boot-2x or porteus-boot and run the script from terminal:

Code: Select all

make-new-initrd
Choose initrd.img for new installed kernel (usually it is located in /boot) and click OK button.
Image
In short the default initrd files for DebianDog live-boot-2x and porteus-boot will be extracted. /lib/modules content will be replaced with the one for your new kernel and new repack will be made. XZ compression is used and creating new initrd images may take some time.

When the script finish you will see this window:
Image

/live/image/live/new-initrd1.img - live-boot-2x for your new kernel.
/live/image/live/new-initrd1.xz - porteus-boot for your new kernel.

The script is tested with i486, i686 pae and no-pae architecture. I don't know if it will work properly with others.

.
Last edited by saintless on Fri 18 Mar 2016, 08:13, edited 4 times in total.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#39 Post by Sylvander »

What is an initrd file?
What does it do?
Why would you want to make a new one?

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

#40 Post by saintless »

Sylvander wrote:What is an initrd file?
https://www.ibm.com/developerworks/library/l-initrd/
What does it do?
Just boots the system.
http://murga-linux.com/puppy/viewtopic. ... 571#771571
Why would you want to make a new one?
If you decide to install new kernel on DebianDog with apt-get or synaptic only initrd file for live-boot-3x will be auto-created.
initrd1.img (live-boot-2x) and initrd1.xz (porteus-boot) will not be available if you boot with your new installed kernel. You have to create them manually following the instruction in the link above. make-new-initrd script may save you a lot of work.
Last edited by saintless on Sun 06 Mar 2016, 14:54, edited 1 time in total.

Post Reply