LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-08-2010, 03:59 PM   #1
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Rep: Reputation: 15
Menu based Administration tool for LINUX


I just need to develop a menu based Administration tools in LINUX similar like SAM - HP and SMIT - AIX , should be in a position to work with tab and space bar and arrow keys , can any one suggest how to start...should i write a code in c language only or i can implement the same in shell script itself.


regds,
Jaikris
 
Old 09-08-2010, 04:26 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
There's already yast2 for SuSE.. why do you want to reinvent the wheel?
 
Old 09-08-2010, 05:21 PM   #3
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I just need to develop a similar tool for RHEL .. this am doing as my MS dissertation work , can you pls guide me on this..
 
Old 09-08-2010, 07:34 PM   #4
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,520

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
What is an "MS dissertation"?

Anyway assuming you want something with all the bells and whistles, as already suggested, you can start by looking at yast. Get the source and explore it (be careful to check its licence though).

Cheers,

Evo2.
 
Old 09-08-2010, 08:23 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
just a guess but MS= master of science and of course the dissertation is the final step of earning a masters degree or doctorate degree
and yes i would start by looking at the source code of something like yast
 
Old 09-08-2010, 08:47 PM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 13,231

Rep: Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774Reputation: 1774
for rhel / centos/fedora there is yumex

you could port all the fedora 13 Gnome/python2.6 tools from fedora over to the python2.5 of rhel5
or the kde4-qt4 gui tools to the rhel5 qt3 kde3.5

but yast on SUSE in nice ( although i like the terminal )
 
Old 09-08-2010, 09:35 PM   #7
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,520

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
Quote:
Originally Posted by frieza View Post
just a guess but MS= master of science
Ahh, where I'm from that would be an MSc.

Quote:
and of course the dissertation is the final step of earning a masters degree or doctorate degree
I guessed that, but again where I'm from that would be a thesis.

Cheers,

Evo2.
 
Old 09-09-2010, 05:07 AM   #8
l2y3n2
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
I would suggest you try ncurses

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
 
Old 09-09-2010, 04:50 PM   #9
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
From where we can download the source code of yast .
 
Old 09-09-2010, 10:52 PM   #10
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,520

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
Yast is a SUSE tool, so you should be able to get it from an OpenSUSE repository: GIYF.

Evo2.
 
Old 09-09-2010, 11:27 PM   #11
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
There is also webmin
 
Old 09-10-2010, 07:25 PM   #12
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by jiml8 View Post
There is also webmin
yes but his point is he wants to WRITE something for his project
and webmin is an web based interface, not a text based

there is also linuxconf
http://www.solucorp.qc.ca/linuxconf/
which is a horribly outdated text based configuration tool for linux systems, but could be a good starting point as to figure out how it does certain things since the source code is readily available
 
Old 09-11-2010, 10:07 PM   #13
jaikris
Member
 
Registered: Sep 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Hi freiza ,

Ya you are right , i just need to develop just a menu based admin tool .

LIke

sample .....................................
1 . Users & group
2> backup & recovery
3. LVM
4 . Networking
enter your choice.
............................................

like sam am not using tab / arrow keys for navigating am planning to use by number selection only ..

user wil be entering his choice .

for eg if he enter 1 .. again he will be promped for the users & group sub menu


as

1 .New user.
2.Modify existing user
enter your choice .

based on his input need to accept the details from user and need to process.



I dont know how to use arrow keys / tab keys for navihgating instead of asking enter your choice , pls anyone help me out ..
 
Old 09-11-2010, 10:40 PM   #14
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
The challenge will be not to destroy some user configured data in the config file. You need to parse and update the files without overwriting them with your value. Otherwise it will not be usable in real life. The advantages of config file over user interface is the fine grained control without bloated interface. The Unix philosophy dict that everything should be a file and every application do one thing, but do it right. User interface based configuration tools have so far failed to gain traction on Unix/Linux because they lack the flexibility and completeness of a comprehensive and well documented config file.

About how to do it, forget C, it is not really good for parsing text. C++ or higher level languages are recommanded. Bash is fine for parsing, but it will be hard to manage the data you are working with, so the code will become a mess sooner than later. An object oriented String implementation is what I would use. I don't really like when languages implement it as a base type. For the menu, if you want to go command line, use ncurse or just pring text. If you want to go graphical, GTK2 or Qt4 are for you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any php-based webmin-like administration tool ? golien Linux - Software 0 04-05-2005 11:42 PM
Web administration tool? Green_cheek Linux - Software 3 03-21-2005 07:03 PM
Tomcat Administration Tool jonnycarlos Linux - Software 1 11-23-2004 05:30 AM
command line control center/ text-based administration tool kpachopoulos Linux - General 1 09-17-2004 07:07 PM
Server Web Administration tool treedstang Linux - Software 3 04-27-2004 06:49 PM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration