Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › OCNix › OCNix Archives › Here is my first contribution: SimpleConf
New Posts  All Forums:Forum Nav:

Here is my first contribution: SimpleConf - Page 2

post #11 of 23
Thread Starter 
http://www.box.net/shared/me760ne888

Updated version. Now the scripting system should be more usable and obvious on what to do (other minor updates, a man page, READMEs, etc...)

Again, testing and the like would be good. If anyone feels like writing a script then that'd be cool. Obviously, it's useless without any scripts, but I'm hoping people will write stuff for their own use, and then share with others, so people can just use from a library of available ones.
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
post #12 of 23
Following your instructions, I can't get simpleconf to run. I get:
Code:
sh: ./simpleconf: Permission denied.
I've tried root, I've tried the ocnix user, I've tried sudo with the ocnix user...

Edit: It may be a problem on my end, my OCNix build got screwed up, it seems.
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
post #13 of 23
Thread Starter 
You need to set the file as executable. Apparently whatever you use to extract your files does not keep the executable file permission. Do 'chmod a+x simpleconf' and then './simpleconf' or just right click the file in Nautilus, choose properties, permissions, make file executable, and then double click simpleconf and choose run from the popup (You could also just do 'python simpleconf', but it's impossible to do that with a GUI, so...).
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
post #14 of 23
I get all sorts of errors:


Also, for whatever reason, I can't get the dbus dependancy even though it is in the debian sid repositry?!?

I installed python-gtk and the error message surprisingly stayed the same.
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
post #15 of 23
I had the same problem, gave up.... figured it was my fault (user error)
post #16 of 23
Thread Starter 
That's because you are running it with sh ./simpleconf - sh runs it as a bash script - it's a python script.

python simpleconf or ./simpleconf will work (it has a shabang, so if you set it as executable, the latter will work).
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
post #17 of 23
Quote:
Originally Posted by lattyware View Post
That's because you are running it with sh ./simpleconf - sh runs it as a bash script - it's a python script.

python simpleconf or ./simpleconf will work (it has a shabang, so if you set it as executable, the latter will work).
It had given me the same error.

To my knowledge, running sh ./simpleconf should work anyway, because it calls for the python binary in the file, right?

I'll try again.
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
post #18 of 23
Thread Starter 
what, 'python simpleconf' gave you the same error? Something is going wrong with your setup, then...
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
post #19 of 23
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
Quad
(16 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 925 ASUS M4A87TD EVO Gigabyte HD 5770 1GB G.SKILL 2x2GB 1600MHz 
RAMHard DriveOptical DriveCooling
G.SKILL 2x4GB 1600MHz Intel 320 DVD-RW Noctua U12P 
OSMonitorPowerCase
Windows 7 x64 23'' Acer X233H bid Thermaltake TR-600 LIAN LI Lancool PC-K9WX 
MouseAudio
Razer Copperhead JVC HA-RX700 
  hide details  
Reply
post #20 of 23
Thread Starter 
OK, the problem is, it was written for python 2.5, and you are using 2.4 (I tried 2.4 and got that error).

Quote:
gareth@gBox42:~/Documents/development/simpleconf$ python2.4 ./simpleconf
File "./simpleconf", line 186
class devices():
^
SyntaxError: invalid syntax
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
Shinobu
(16 items)
 
Nodoka
(16 items)
 
Index
(4 items)
 
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus P8Z77-I Deluxe HD6450 Flex Crucial 16GB (2x 8GB) Ballistix Elite 
Hard DriveHard DriveOSMonitor
Samsung SSD 840 EVO 250GB TOSHIBA DT01ACA300 Arch Linux Dell UltraSharp U2713HM 
MonitorMonitorKeyboardPower
Dell U2410 Dell 2407WFP Cherry - Cherry Blue Switches (Unlabeled keys) Seasonic X-650 
CaseMouseAudioAudio
BitFenix Prodigy Black Logitech M570 Trackball Sennheiser HD595 Creative GigaWorks T20 
CPUMotherboardGraphicsRAM
Intel Core i5 3570K Zotac Z77-ITX WiFi EVGA 680 GTX Samsung 
Hard DriveHard DriveOSMonitor
Samsung 256GB 830 Samsung SpinPoint HD501LJ Windows 7 Dell U2410 
MonitorMonitorKeyboardCase
Dell 2407WFP Dell E248WFP Cherry Black (MX Blue Switches, Blank Keys) Silverstone Sugi SG08B 
MouseAudioAudio
Logitech Trackman Logitech Z-5500 Sennheiser HD595s 
CPUMotherboardRAMHard Drive
AMD Athlon II X2 240e Asus M5A78L-M/USB3 Crucial 8GB (2x4GB) DDR3 1600Mhz Ballistix Sport 1.5TB Hard Drives 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: OCNix Archives
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › OCNix › OCNix Archives › Here is my first contribution: SimpleConf