| nonux scripts |
|
On this page you can find some free Python/GTK scripts which are
written for and used in the Dutch Linux desktop distribution Nonux
(Dutch | English).
Maybe these scripts can be useful for your own purposes with
some slight modifications or you could reuse parts of the code.
The libraries pygtk and libglade have to be installed in order to run these scripts.
Of course you can see these scripts in action by running the Nonux LiveCD.
You can (re)use these scripts for free under the
GNU General Public License.
|
Installer script
This script is for installing Nonux from the LiveCD onto the hard disk drive.
It consists of a separate installer menu, partition selector and main installer. The main
installer can also be run from a text console instead of using the GTK GUI.
Download (24 KB): nonux-install-script.tar.gz
View main script:
#!/usr/bin/env python
# -*- coding: UTF8 -*-
import os
import gtk
import time
import sys
import getopt
g_exedir = '/hd_install'
g_mntdir = '/hd_install/mount'
g_bootfilesdir = '/hd_install/bootfiles'
g_installdev = ''
g_gui = 0
g_writelilo = False
g_installok = False
g_bootdisk = ''
.......... click for more
|

|
advertisement
|
| |
Backup and restore script
These scripts are used for a simple complete backup and restore of a user's home directory.
The backup script will create one compressed backup file (tar/bz) for easy
transfer to an external storage medium like a network disk or USB stick.
Download (17 KB): nonux-backup-script.tar.gz
View backup script:
#!/usr/bin/env python
# -*- coding: UTF8 -*-
import os
import gtk
import time
from SimpleGladeApp import SimpleGladeApp
homedir = os.environ['HOME']
backupdir = homedir + '/backup'
backupfile = backupdir + '/nonux.backup'
glade_dir = ""
def run_backup():
if os.access( backupdir, os.F_OK ) == 0:
os.mkdir( backupdir, 0640 );
.......... click for more
|
|
|
|
|