Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix > OCNix

Reply
 
LinkBack Thread Tools
Old 02-13-08   #1 (permalink)
The Game
 
lattyware's Avatar
 
intel nvidia

Join Date: Feb 2007
Location: In A Faraday Cage
Posts: 2,656

Rep: 280 lattyware is a proven memberlattyware is a proven memberlattyware is a proven member
Unique Rep: 206
Folding Team Rank: 564
Hardware Reviews: 1
Trader Rating: 0
Default Here is my first contribution: SimpleConf

Edit: V1.2 (Update): http://www.box.net/shared/me760ne888

Code:
SimpleConf(1)                                                    SimpleConf(1)

NAME
       SimpleConf - A program to load configurations from devices.

SYNOPSIS
       SimpleConf

Description
       This manual page will briefly explain SimpleConf

       SimpleConf   is a program that runs scripts off a device you choice via
       a GTK+ frontend. It is designed to load configurations or  set  up  the
       system  automatically,  and  is  primarily for the use of LiveCD users.
       LiveCD users do not have any form  of  non-volatile,  writable  storage
       space,  and  hence, loose all configuration upon a reboot.  SimpleConf
       allows the user to store scripts to auto-configure the system onto  any
       device (the primary idea is USB memory sticks).

OPTIONS
       SimpleConf  has no options

USAGE
       To  use  SimpleConf   simply create a .simpleconf directory on a device
       (use example.simpleconf as a template) and then  run  SimpleConf    and
       select that device.

ADDING SCRIPTS
       To  use  a  script  simple copy the script folder into your .simpleconf
       directory on your simpleconf device, then configure it as  needed  (see
       the  scripts  README  file for more). Once done, simply add the name of
       the script (the name of the folder) into the scripts file in your .sim‐
       plconf directory.

CREATING SCRIPTS
       Writing  scripts for SimpleConf  is very simple. The scripts can be any
       standard bash script (and hence, you can call anything  you  want  from
       these bash scripts).

       Where  scriptname  is the name of the script, a script must be a folder
       named scriptname, an executable file named scriptname.sh,  and  prefer‐
       ably  a  README  file.   The README file should contain information for
       users on how to configure the script.

       The easiest way to see how scripts are made is to look at  an  existing
       one and then make your own using it as a template.

BUGS
       No known bugs as of writing.

AUTHOR
       Gareth "Lattyware" Latty (info@lattyware.co.uk)

SimpleConf V1.2                  23rd Feb 2008                   SimpleConf(1)
This has two example scripts (helloworld and networksetup) and a slightly improved scripting system. Should be backwards compatible to most extents and purposes.

Old Stuff:

Edit: V1.2: (Old Version, Please See Top)

Once again, It's 4AM when I push out another new version. This is pretty full featured, it's a little more fool-friendly now.



So It all Makes Sense, The Old Stuff:

Edit: Just made V1.1 - mainly graphical updates and a few things to make it more streamlined.

(Old Version, Please See Top)

This picture is from V1.0, Not oh-so-much has changed:


Quote:
WARNING: SimpleConf indicriminitely runs scripts without any checks. NEVER run SimpleConf as root (scripts requiring root access should call using 'gksudo'), and NEVER run SimpleConf on devices you cannot verify. There could be malicious scripts there. SimpleConf is designed for usage with Read-Only mediums, and should not be used on permanent systems (where it should not be necicary anyway) as there a malicious script could cause permanent damage.

This code is GPL V3d. See LICENCE for more.

SimpleConf is a Python program that runs scripts to configure your LiveCD or LiveCD-style system.

To run SimpleConf do ./simpleconf from within the simpleconf directory.

You will need to put a simpleconf configuration folder into the root directory of a volume to be able to do anything with simpleconf.
The basic structure is this:

/path/to/device/mountpoint/
.simpleconf/
simpleconf.sh
simpleconf
(other files and directories as required)

An example is included as example.simpleconf.

Scripts for simpleconf should be distributed as follows:

scriptname/
scriptname.sh
(other files and directories as required)

this should then be placed in the .simpleconf directory by the user, who should also add a cal to scriptname.sh in simpleconf.sh.

Dependancies: Dbus, GTK, Python

Written by Gareth Latty (Lattyware)
It's 2AM here, so I'm off. Hopefully this'll be useful. The basic idea is that it automatically sets things up and runs things so you don't have to do it every time if you use the LiveCD a lot. This has not been tested much (read: at all) so it'll probably be buggy (for now, at least).
__________________
Lattyware | Main (Sig) Rig: gBOX42 | Lan Rig: gLAN42
Never been convinced by Linux? Here is a challenge. | Using LVM
Scratched Disc? | Guide To LAN Parties | Writing a GUI application in Python/Glade
Etching an image into your case. | Wireless Access Points: Easy wireless networking.
A Member Of The OCN Anime/Manga Club

"I disapprove of what you say, but I will defend to the death your right to say it." --Evelyn Beatrice Hall

System: gBOX42
CPU
Core 2 Duo E6600 @ 3.51GHz
Motherboard
Asus P5B Deluxe/WiFi-AP
Memory
2 x OCZ DDR2 Platinum 1Gb PC6400 C4
Graphics Card
256MB MSI 8600GTS
Hard Drive
2x 1TB SATA, 2 x 500GB SATA
Sound Card
Creative Soundblaster Audigy SE
Power Supply
SEASONIC S12-600
Case
CoolerMaster Cosmos
CPU cooling
XSPC X2O Delta CPU Waterblock V2
GPU cooling
D-Tek FuZion GFX Block
OS
Arch Linux x64
Monitor
Dell 2407WFP, Dell E248WFP

Last edited by lattyware : 02-23-08 at 04:12 PM Reason: New Version.
lattyware is offline I fold for Overclock.net Overclocked Account lattyware's Gallery   Reply With Quote
Old 02-14-08   #2 (permalink)
Programmer
 
intel nvidia

Join Date: Nov 2006
Posts: 1,971

Rep: 132 version2 is acknowledged by manyversion2 is acknowledged by many
Unique Rep: 111
Folding Team Rank: 1763
Trader Rating: 9
Default

Interesting. I'm not sure I fully understand what configs it loads.

Slight changes to make (web developer's perspective):
+ The information text "label" and the warning text "label" start at different x positions.
+ You don't need to repeat the title "SimpleConf" because it already says that on the title bar.
+ Why are the information/warning text labels so far to the right? Why are those icons so small?

Otherwise, great!
__________________
System: Duo
CPU
Core 2 Duo E6600 (B2)
Motherboard
Asus P5B Deluxe
Memory
G.SKILL HZ 2x1gb DDR2 800
Graphics Card
EVGA 9600GSO 384mb (G92)
Hard Drive
1TB + WD 640gb, Maxtor 160gb
Sound Card
Audigy 2 ZS
Power Supply
FSP 450W
Case
Ultra Aluminus
CPU cooling
Noctua U12P
GPU cooling
Stock
OS
Win 7 x64, Ubuntu
Monitor
20.1'' SOYO LCD
version2 is offline I fold for Overclock.net   Reply With Quote
Old 02-14-08   #3 (permalink)
:wheee:
 
mrtn400's Avatar
 
intel nvidia

Join Date: Aug 2007
Location: Carmichael, CA
Posts: 4,357
Blog Entries: 2

Rep: 278 mrtn400 is a proven membermrtn400 is a proven membermrtn400 is a proven member
Unique Rep: 236
Hardware Reviews: 1
Trader Rating: 1
Default

Nice. +Rep.
__________________
Woodwind instruments are "all your money are belong to us"ing my wallet.

$2,500+ for a half decent oboe?


System: Evolution (Alt Rig)
CPU
2x 3.06Ghz Xeon Prestonia (SL6VP) w/ HT off
Motherboard
MSI E7505 Master-LS2
Memory
4x 512MB Registered DDR-266
Graphics Card
BFG 7300GT 512MB @ 590Mhz Core/380Mhz Memory
Hard Drive
Hitachi 120GB
Sound Card
ASUS Xonar DX w/ shielding
Power Supply
450w
Case
Stock IBM
CPU cooling
Stock
GPU cooling
Stock
OS
Windows XP Professional SP3
Monitor
1x Acer 19" @ 1400x900, 1x Sceptre 19" @ 1280x1024
mrtn400 is offline Overclocked Account mrtn400's Gallery   Reply With Quote
Old 02-14-08   #4 (permalink)
The Game
 
lattyware's Avatar
 
intel nvidia

Join Date: Feb 2007
Location: In A Faraday Cage
Posts: 2,656

Rep: 280 lattyware is a proven memberlattyware is a proven memberlattyware is a proven member
Unique Rep: 206
Folding Team Rank: 564
Hardware Reviews: 1
Trader Rating: 0
Default

Quote:
Originally Posted by version2 View Post
Interesting. I'm not sure I fully understand what configs it loads.

Slight changes to make (web developer's perspective):
+ The information text "label" and the warning text "label" start at different x positions.
+ You don't need to repeat the title "SimpleConf" because it already says that on the title bar.
+ Why are the information/warning text labels so far to the right? Why are those icons so small?

Otherwise, great!
Yeah, blame glade for that. I'm still trying to work out how to make it all expand out how I want it to.

Edit: V1.1 fixes it.
__________________
Lattyware | Main (Sig) Rig: gBOX42 | Lan Rig: gLAN42
Never been convinced by Linux? Here is a challenge. | Using LVM
Scratched Disc? | Guide To LAN Parties | Writing a GUI application in Python/Glade
Etching an image into your case. | Wireless Access Points: Easy wireless networking.
A Member Of The OCN Anime/Manga Club

"I disapprove of what you say, but I will defend to the death your right to say it." --Evelyn Beatrice Hall

System: gBOX42
CPU
Core 2 Duo E6600 @ 3.51GHz
Motherboard
Asus P5B Deluxe/WiFi-AP
Memory
2 x OCZ DDR2 Platinum 1Gb PC6400 C4
Graphics Card
256MB MSI 8600GTS
Hard Drive
2x 1TB SATA, 2 x 500GB SATA
Sound Card
Creative Soundblaster Audigy SE
Power Supply
SEASONIC S12-600
Case
CoolerMaster Cosmos
CPU cooling
XSPC X2O Delta CPU Waterblock V2
GPU cooling
D-Tek FuZion GFX Block
OS
Arch Linux x64
Monitor
Dell 2407WFP, Dell E248WFP

Last edited by lattyware : 02-14-08 at 07:31 AM
lattyware is offline I fold for Overclock.net Overclocked Account lattyware's Gallery   Reply With Quote
Old 02-14-08   #5 (permalink)
Folding Fanatic
 
amd nvidia

Join Date: Dec 2007
Posts: 3,404
Blog Entries: 2

Rep: 307 R3ap3R is a proven memberR3ap3R is a proven memberR3ap3R is a proven memberR3ap3R is a proven member
Unique Rep: 164
Folding Team Rank: 889
Hardware Reviews: 3
Trader Rating: 15
Default

Awesome; once it is set up on the build, I will write a FAQ for it... probably ask you a bunch of questions...

REP +
__________________
System: Scythe II
CPU
X2 5200+ 2.93GHz
Motherboard
Asus M2N68-LA
Memory
Buffalo FireStix PC6400 DDR2 800MHz 4GB (1gb * 4)
Graphics Card
EVGA 8800GT 512 @ 690/1620/825
Hard Drive
2 x 500GB RAID0, 1 x 1TB int & 1TB ext (3TB total)
Sound Card
Stock: Boycotting Creative; replacement soon :)
Power Supply
Eagle 700W
Case
Media center w/tv tuner
CPU cooling
Massive Heatsink, Lapped
GPU cooling
Fans
OS
Vsta HP & Ult, XP Pro, Ubntu 7.10, Win2k, & OCNix
Monitor
LG 42" HD & AOC 22"
R3ap3R is offline I fold for Overclock.net R3ap3R's Gallery   Reply With Quote
Old 02-14-08   #6 (permalink)
The Game
 
lattyware's Avatar
 
intel nvidia

Join Date: Feb 2007
Location: In A Faraday Cage
Posts: 2,656

Rep: 280 lattyware is a proven memberlattyware is a proven memberlattyware is a proven member
Unique Rep: 206
Folding Team Rank: 564
Hardware Reviews: 1
Trader Rating: 0
Default

It's actually pretty easy to use (that was kinda the idea :P) and develop for. The idea is anyone can write scripts for it, but we set up a repository of useful stuff & stuff people can customize to suit them so it's easy to setup.
__________________
Lattyware | Main (Sig) Rig: gBOX42 | Lan Rig: gLAN42
Never been convinced by Linux? Here is a challenge. | Using LVM
Scratched Disc? | Guide To LAN Parties | Writing a GUI application in Python/Glade
Etching an image into your case. | Wireless Access Points: Easy wireless networking.
A Member Of The OCN Anime/Manga Club

"I disapprove of what you say, but I will defend to the death your right to say it." --Evelyn Beatrice Hall

System: gBOX42
CPU
Core 2 Duo E6600 @ 3.51GHz
Motherboard
Asus P5B Deluxe/WiFi-AP
Memory
2 x OCZ DDR2 Platinum 1Gb PC6400 C4
Graphics Card
256MB MSI 8600GTS
Hard Drive
2x 1TB SATA, 2 x 500GB SATA
Sound Card
Creative Soundblaster Audigy SE
Power Supply
SEASONIC S12-600
Case
CoolerMaster Cosmos
CPU cooling
XSPC X2O Delta CPU Waterblock V2
GPU cooling
D-Tek FuZion GFX Block
OS
Arch Linux x64
Monitor
Dell 2407WFP, Dell E248WFP
lattyware is offline I fold for Overclock.net Overclocked Account lattyware's Gallery   Reply With Quote
Old 02-14-08   #7 (permalink)
Folding Fanatic
 
amd nvidia

Join Date: Dec 2007
Posts: 3,404
Blog Entries: 2

Rep: 307 R3ap3R is a proven memberR3ap3R is a proven memberR3ap3R is a proven memberR3ap3R is a proven member
Unique Rep: 164
Folding Team Rank: 889
Hardware Reviews: 3
Trader Rating: 15
Default

Quote:
Originally Posted by lattyware View Post
It's actually pretty easy to use (that was kinda the idea :P) and develop for. The idea is anyone can write scripts for it, but we set up a repository of useful stuff & stuff people can customize to suit them so it's easy to setup.
I was being sarcastic

But we do need to make it easy enough that a win-dose user can figure it out....
__________________
System: Scythe II
CPU
X2 5200+ 2.93GHz
Motherboard
Asus M2N68-LA
Memory
Buffalo FireStix PC6400 DDR2 800MHz 4GB (1gb * 4)
Graphics Card
EVGA 8800GT 512 @ 690/1620/825
Hard Drive
2 x 500GB RAID0, 1 x 1TB int & 1TB ext (3TB total)
Sound Card
Stock: Boycotting Creative; replacement soon :)
Power Supply
Eagle 700W
Case
Media center w/tv tuner
CPU cooling
Massive Heatsink, Lapped
GPU cooling
Fans
OS
Vsta HP & Ult, XP Pro, Ubntu 7.10, Win2k, & OCNix
Monitor
LG 42" HD & AOC 22"
R3ap3R is offline I fold for Overclock.net R3ap3R's Gallery   Reply With Quote
Old 02-14-08   #8 (permalink)
The Game
 
lattyware's Avatar
 
intel nvidia

Join Date: Feb 2007
Location: In A Faraday Cage
Posts: 2,656

Rep: 280 lattyware is a proven memberlattyware is a proven memberlattyware is a proven member
Unique Rep: 206
Folding Team Rank: 564
Hardware Reviews: 1
Trader Rating: 0
Default

If you try it out you'll see - it should run fine with most distros stock.

It's literally click on the device that looks like the one you want and hit load.

I'll probably make an update where it identifies the device automagically (problem is this means mounting stuff automatically, which might be considered objectionable) - so you don't get a list of devices that some people might not understand.
__________________
Lattyware | Main (Sig) Rig: gBOX42 | Lan Rig: gLAN42
Never been convinced by Linux? Here is a challenge. | Using LVM
Scratched Disc? | Guide To LAN Parties | Writing a GUI application in Python/Glade
Etching an image into your case. | Wireless Access Points: Easy wireless networking.
A Member Of The OCN Anime/Manga Club

"I disapprove of what you say, but I will defend to the death your right to say it." --Evelyn Beatrice Hall

System: gBOX42
CPU
Core 2 Duo E6600 @ 3.51GHz
Motherboard
Asus P5B Deluxe/WiFi-AP
Memory
2 x OCZ DDR2 Platinum 1Gb PC6400 C4
Graphics Card
256MB MSI 8600GTS
Hard Drive
2x 1TB SATA, 2 x 500GB SATA
Sound Card
Creative Soundblaster Audigy SE
Power Supply
SEASONIC S12-600
Case
CoolerMaster Cosmos
CPU cooling
XSPC X2O Delta CPU Waterblock V2
GPU cooling
D-Tek FuZion GFX Block
OS
Arch Linux x64
Monitor
Dell 2407WFP, Dell E248WFP
lattyware is offline I fold for Overclock.net Overclocked Account lattyware's Gallery   Reply With Quote
Old 02-16-08   #9 (permalink)
The Game
 
lattyware's Avatar
 
intel nvidia

Join Date: Feb 2007
Location: In A Faraday Cage
Posts: 2,656

Rep: 280 lattyware is a proven memberlattyware is a proven memberlattyware is a proven member
Unique Rep: 206
Folding Team Rank: 564
Hardware Reviews: 1
Trader Rating: 0
Default

Testing and feedback would be great, if anyone has some spare time.
__________________
Lattyware | Main (Sig) Rig: gBOX42 | Lan Rig: gLAN42
Never been convinced by Linux? Here is a challenge. | Using LVM
Scratched Disc? | Guide To LAN Parties | Writing a GUI application in Python/Glade
Etching an image into your case. | Wireless Access Points: Easy wireless networking.
A Member Of The OCN Anime/Manga Club

"I disapprove of what you say, but I will defend to the death your right to say it." --Evelyn Beatrice Hall

System: gBOX42
CPU
Core 2 Duo E6600 @ 3.51GHz
Motherboard
Asus P5B Deluxe/WiFi-AP
Memory
2 x OCZ DDR2 Platinum 1Gb PC6400 C4
Graphics Card
256MB MSI 8600GTS
Hard Drive
2x 1TB SATA, 2 x 500GB SATA
Sound Card
Creative Soundblaster Audigy SE
Power Supply
SEASONIC S12-600
Case
CoolerMaster Cosmos
CPU cooling
XSPC X2O Delta CPU Waterblock V2
GPU cooling
D-Tek FuZion GFX Block
OS
Arch Linux x64
Monitor
Dell 2407WFP, Dell E248WFP

Last edited by lattyware : 06-18-09 at 12:53 PM
lattyware is offline I fold for Overclock.net Overclocked Account lattyware's Gallery   Reply With Quote
Old 02-16-08   #10 (permalink)
Folding Fanatic
 
amd nvidia

Join Date: Dec 2007
Posts: 3,404
Blog Entries: 2

Rep: 307 R3ap3R is a proven memberR3ap3R is a proven memberR3ap3R is a proven memberR3ap3R is a proven member
Unique Rep: 164
Folding Team Rank: 889
Hardware Reviews: 3
Trader Rating: 15
Default

Quote:
Originally Posted by lattyware View Post
I would not mind some testing and feedback on this? I put in quite a lot of work :P
I was playing with it last night... had a hard time accessing the config file because of "user permission error", but figured it out.... pretty amazing, actually. Check this ppl: If you don't install the OS, but just run off of a liveCD, you lose all your configuration settings and customizations. This lets you have a local file that remembers everything for you... pretty awesome work
__________________
System: Scythe II
CPU
X2 5200+ 2.93GHz
Motherboard
Asus M2N68-LA
Memory
Buffalo FireStix PC6400 DDR2 800MHz 4GB (1gb * 4)
Graphics Card
EVGA 8800GT 512 @ 690/1620/825
Hard Drive
2 x 500GB RAID0, 1 x 1TB int & 1TB ext (3TB total)
Sound Card
Stock: Boycotting Creative; replacement soon :)
Power Supply
Eagle 700W
Case
Media center w/tv tuner
CPU cooling
Massive Heatsink, Lapped
GPU cooling
Fans
OS
Vsta HP & Ult, XP Pro, Ubntu 7.10, Win2k, & OCNix
Monitor
LG 42" HD & AOC 22"
R3ap3R is offline I fold for Overclock.net R3ap3R's Gallery   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 04:17 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.14927 seconds with 8 queries