Results 1 to 10 of 17
I am writing a small program in C++ to help handle day to day maintenance in Gentoo because I don't always like to type the long commands out, and because ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-07-2013 #1
Gentoo Maintenance Program
For now, this program is only for Gentoo, but as time permits and if I get good feedback, then I will expand this for other distros. That is a while down the road though, and for now it is a crude console menu driven program to do some things that you should already know how to do.
So, for anyone using gentoo, please download and try it, and let me know what you think. That way I know whether to just scrap the idea or continue working on it. You can consider this alpha software, because I am a beginner and because I am constantly adding new things and changing the menu around.
If you do want to try it out, I have included a tarball with the program and source code. If you want to make changes and compile it yourself, that is fine, all I ask is that you share your changes back so I can add to the program. It probably isn't the most efficient program, but hey, I am learning.
g++ -o gentoo-maint.bin gentoo_maint.cpp
*This program should work with any gentoo based distro, but I really don't know enough about them to say for sure. It is just a frontend for some basic portage commands and linux commands*
*Updated and uploaded on 04/07/2013*
Last edited by gruven; 04-07-2013 at 04:50 PM.
- 04-07-2013 #2
It sounds really interesting. I'd love to give this a run around the block Gruven, but my Gentoo box is currently gathering dust in my office. I think the PSU is toast. Might be a few weeks before I get that beast back online.
- 04-07-2013 #3
- 04-07-2013 #4
Using Gentoo, you have to run a lot of maintenance stuff as root to keep the system up, and this program just takes those commands and puts them in a menu. Easier for me to just type a number than a whole command.
Anyway, I plan on updating this with another distro in mind, so you can choose between distros. In my experience, it is extremely hard to do system maintenance without being the root user, so this will still have the stipulation of having to be run by root to be able to make changes. You are welcome to run as a user, but it won't change anything. Maybe when I get time I will implement some of the sudo libraries (maybe, because I don't like external libs for this project), but this is a crude program, and I am just learning with this prog.
It is really meant for admin maintenance anyway.
- 04-07-2013 #5
As programing experience - great, but really I'd aim at minimum rights possible. I compile kernel as a regular user and only run as root to install modules and copy kernel image. Some admin tasks are root only, but not all ... my point ...
complete all operations with minimum rights possible, it maybe more challenging but it's the best way of working.
As for reviewing source code before allowing something to execute ... if it was 2 lines of code I could probably work out most logical combinations and convince myself it's OK in just about all instances. I doubt you only have two lines of code, so working out if all logical combinations are OK is much more of a challenge. That's why I suggested an output of a script the user can review before running ... particularly for root stuff.
it's only my view of things ... it's not meant to be an attack on your approach
- 04-08-2013 #6
Sounds almost like smxi for Gentoo to me. I run it outside of X as root user for maintenance in AntiX.
$ locate smxi /usr/sbin/smxi /usr/share/antiX/FAQ/smxi.html /usr/share/doc/smxi-inxi-antix /usr/share/doc/smxi-inxi-antix/changelog.gz /usr/share/doc/smxi-inxi-antix/copyright /var/cache/apt/archives/smxi-inxi-antix_0.1.5.1_all.deb /var/cache/apt/archives/smxi-inxi-antix_0.1.5_all.deb /var/cache/apt/archives/smxi-inxi-antix_0.1.6_all.deb /var/cache/apt/archives/smxi-inxi-antix_0.1.7_all.deb /var/lib/dpkg/info/smxi-inxi-antix.list /var/lib/dpkg/info/smxi-inxi-antix.md5sums
Kinda apples vs oranges.
Good luck with it gruven
- 04-08-2013 #7
The program is kind of like that, but not really. I plan on expanding it later on when time permits, but for now it is just for making my life easier.
It runs in a console, xterm, whatever, is completely system independent (except it uses system calls to portage for package management so it is essentially gentoo only for now), and relies on no outside libraries to compile and run.
Scripts have their place, but most of the time I prefer an actual program simply for portability. Scripts sometime require certain versions of libs, but this program shouldn't. That is my goal.
I have plans for internet connection setup (even wireless to a certain extent) and possibly a multi distro expansion. That will be down the road though.
- 04-10-2013 #8
Wow, I wish I could edit this post with an update. I will just put it on sourceforge I guess.
- 04-10-2013 #9
- 04-10-2013 #10
I have moved the project to sourceforge, because it is easier to update and they have a git repo to update to.
I have also named the project Upkeep.
Upkeep / Wiki / Home
I wouldn't mind keeping the thread updated here as my development continues, but without being able to edit the main post at will, it really wouldn't work for me at all.