Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet server in a box, powered by Gentoo?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Sun Jun 19, 2005 8:32 pm    Post subject: Internet server in a box, powered by Gentoo? Reply with quote

I'm a recovering Slackware user who rebuilt all his server boxen with Gentoo about this time last year. I love this distro unconditionally and Portage alone has saved me a lot of time and headaches.

I use Gentoo primarily for Internet servers - LAMP plus email, content scanning, virus scanning, spam filtering, and sometimes other internet-related things like IRC or Icecast. While Portage makes grabbing, building, interconnecting, and upgrading packages a snap, I'd like to take it to the next level. And that's something that's missing from ANY distro, not just our distro of choice.

For example: to get started with a LAMP system with e-mail, I can type
Code:
emerge mod_php postfix
(provided my USE flags are correct, that should emerge Apache, MySQL, PHP, mod_php, Postfix, and all their dependencies). That alone has saved me so much time (I remember doing it by hand in Slackware, and it made me want to set up NT/IIS). But say I want virtual mailhosting with Postfix. Now I have to do everything in http://www.gentoo.org/doc/en/virt-mail-howto.xml by hand. Then if I want content filtering with amavisd, SpamAssassin, and ClamAV, I have to do everything in http://www.gentoo.org/doc/en/mailfilter-guide.xml by hand. Then of course are all the nickel-and-dime things one has to do, such as making sure your phpMyAdmin and webmail pages are never spidered by search engines.

Now don't get the wrong idea - I'm not against working on Linux, and I'm certainly not a Windows script kiddie. I understand in Linux circles (though not so much Gentoo) there are those people to whom any sort of automation is the devil's work. What I really want out of this idea is something like CPanel users have - not only a way for the server admin to get more work done easier, but to also offload client-specific admin tasks (i.e. subdomains, mail aliases, site-specific setup) off to the clients themselves.

So I got thinking, what if there was almost an internet-appliance-like Gentoo-based distro, that took advantage of the power of Portage, that could just be dropped on any box ("dropped" as in the box is cleanly formatted and this is intstalled, not "dropped" in the sense of emerging it onto a running system). After a few small hardware setup things (which could even be bypassed because the LiveCD is good at detecting network cards, for instance), the system would be installed to strict and secure but generic defaults: Apache in chroot jail, mod_gzip, PHP with every possible option, PHP Accelerator, MySQL (set up with a superuser), Postfix WITH amavisd-new, SpamAssassin, RulesDuJour, and several antivirus daemons, the structure for Postfix virtual mail hosts set up in MySQL already, Courier-IMAP and POP3 daemons, DNS services, phpMyAdmin installed and working, a good open-source webmail client (or two) for each site, log analyzers, and (here's the only really difficult part, because we'd have to write it) a CPanel-style web-based administration facility that allowed the sysadmin to access all relevant customization/config options system-wide (much like Webmin, but not as clunky), and allowed specific clients on the box to manage their own virtual server, check e-mail, view logs, do log analysis.

Anything one doesn't use could be disabled (for example, my domain registrar does my DNS so I'd just disable the DNS daemon on this system).

If you're feeling like this is the Windowsization of Gentoo, let me try to ease your mind: The beauty of Linux is that open-source programs are often rock-solid and more reliable than anything else out there, especially when they're as mature as some of the packages I'm talking about here. However, computers are supposed to work for us, not the other way around. Every time I set up a new server box there's so much to do by hand that's almost exactly the same. I think the vast majority of people running servers out there would be well served by a solution such as this: When you get down to it, just how different are our respective setups anyway? Sure, some of us need IRC and some of us don't; some of us use Postfix and some Exim. But how much would it really matter what packages were installed if it just works? For example, I just moved from Exim to Postfix because after researching for almost two years, I still can't figure out how the hell to do virtual email hosting in Exim, and Postfix spells it all out nicely, though it's still a bit of work. Plus, Exim's only interface to content filtering systems was a freakin' patch. Anyway, any personal differences in server setups can be addressed by the web-based admin interface.

Red Hat people do this all the time with CPanel, and it costs them money (plus, they have to run Red Hat). I envision a system that's open source and free from the ground up. Better, more complicated open source software has already been written. This shouldn't be all that bad.

So I'd like to ask the Gentoo community, who have given me a lot of help over the past year even though my post count doesn't reflect it, what do you think of such an idea? And who would be on board to work on it? I would of course host whatever we need. I know I need a solution like this right now (especially the client-side administration), and will need it much more in the future as I continue to host sites for people who not comfortable with working on the command-line. I'm very interested in the opinions of the Gentoo community on this. Thanks.
Back to top
View user's profile Send private message
Tyir
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 172
Location: Montreal

PostPosted: Mon Jun 20, 2005 12:36 am    Post subject: Reply with quote

wow, I think that is a great idea. Perhaps a better way is that it would ask what packages you want installed (PostgreSQL instead of MySQL, for ex) but I like the idea of the simple system-wide configuration.

Anyway, I'd help test it once it gets started.
_________________
There are two things I have learnt in life:
1. Don't reveal everything you know.
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Tue Jun 21, 2005 6:37 am    Post subject: Reply with quote

Tyir wrote:
wow, I think that is a great idea. Perhaps a better way is that it would ask what packages you want installed (PostgreSQL instead of MySQL, for ex) but I like the idea of the simple system-wide configuration.

Anyway, I'd help test it once it gets started.


Thanks! I appreciate that. Yeah, perhaps the best way for non-conflicting packages would be to install them all and let each client decide what they want to use.

Love the Avatar btw.
Back to top
View user's profile Send private message
mdshort
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 157

PostPosted: Wed Jul 13, 2005 11:17 pm    Post subject: Reply with quote

What we could do is reverse engineer Webmin for our cpanel, it runs ok, but it's somewhat insecure and doesn't have support for everything.
_________________
"With every rise, there is a fall."
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Wed Jul 13, 2005 11:34 pm    Post subject: Reply with quote

Is that even possible? I've never owned a copy of Webmin (hence the need for this project).
Back to top
View user's profile Send private message
mdshort
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 157

PostPosted: Thu Jul 14, 2005 2:22 am    Post subject: Reply with quote

...Webmin is available in portage...
_________________
"With every rise, there is a fall."
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Thu Jul 14, 2005 3:44 am    Post subject: Reply with quote

But as I understand it, it is not usable without an $1100 license?
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu Jul 14, 2005 4:17 am    Post subject: Reply with quote

Fuzzplug Jones wrote:
But as I understand it, it is not usable without an $1100 license?

Where did you hear that?
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Fri Jul 15, 2005 4:50 am    Post subject: Reply with quote

Headrush wrote:
Fuzzplug Jones wrote:
But as I understand it, it is not usable without an $1100 license?

Where did you hear that?


Well I certainly hope I'm mistaken, but I could've sworn a fair amount of threads on this forum were lamenting the fact that CPanel isn't free. CPanel.com says you can try it free for 15 days - and I guess I was wrong on the price. CPanel.com says, "One time licenses are currently priced at USD $1250.00."

So I was off a bit :-)

In case I'm not being clear, I'd like it to work for more than 15 days and I don't have $1250.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Jul 15, 2005 4:56 am    Post subject: Reply with quote

Fuzzplug Jones wrote:
Well I certainly hope I'm mistaken, but I could've sworn a fair amount of threads on this forum were lamenting the fact that CPanel isn't free. CPanel.com says you can try it free for 15 days - and I guess I was wrong on the price. CPanel.com says, "One time licenses are currently priced at USD $1250.00."

So I was off a bit :-)

In case I'm not being clear, I'd like it to work for more than 15 days and I don't have $1250.

I thought you were talking about Webmin since your comment followed the post mentioning Webmin.
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Fri Jul 15, 2005 4:58 am    Post subject: Reply with quote

Oh crap, my bad. I was talking about CPanel, but the other day I must've blanked when he said Webmin. Yeah I have Webmin installed, it's cute, but there's a lot it doesn't do, or doesn't do right. I know the one time I tried to edit some Apache virtual domain settings with it, it was actually HARDER than editing the conf file by hand.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Jul 15, 2005 5:01 am    Post subject: Reply with quote

Fuzzplug Jones wrote:
Oh crap, my bad. I was talking about CPanel, but the other day I must've blanked when he said Webmin. Yeah I have Webmin installed, it's cute, but there's a lot it doesn't do, or doesn't do right. I know the one time I tried to edit some Apache virtual domain settings with it, it was actually HARDER than editing the conf file by hand.

I just setup port knocking and sshd and use the command line for administration.
I find its faster if you know what and where the files you need to edit are.
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Fri Jul 15, 2005 5:07 am    Post subject: Reply with quote

I appreciate the advice, but go back and read my original message... I was talking about some sort of uber-ebuild or something that would set up a lot of the mundane things on a new server (virtual mailboxes with postfix and whatever else it needs, for example, without all the repetitive work).
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Jul 15, 2005 6:50 am    Post subject: Reply with quote

Fuzzplug Jones wrote:
I appreciate the advice, but go back and read my original message... I was talking about some sort of uber-ebuild or something that would set up a lot of the mundane things on a new server (virtual mailboxes with postfix and whatever else it needs, for example, without all the repetitive work).

Try www.clarkconnect.com

It's not Gentoo, but quickest easiest gateway/server Linux disto I have seen.


Last edited by Headrush on Fri Jul 15, 2005 6:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Fri Jul 15, 2005 6:53 am    Post subject: Reply with quote

Interesting, but the nice one costs almost $1,000. Thought maybe somebody would be interested in doing it in an open-source fashion. Maybe I'm wrong. I'm sure there are other distros out there but this is 75% about wrapping cool stuff around Portage. I certainly don't want to stop using Gentoo, and most of the Linux boxen I touch are Internet servers.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Jul 15, 2005 6:57 am    Post subject: Reply with quote

Fuzzplug Jones wrote:
Interesting, but the nice one costs almost $1,000. Thought maybe somebody would be interested in doing it in an open-source fashion. Maybe I'm wrong. I'm sure there are other distros out there but this is 75% about wrapping cool stuff around Portage. I certainly don't want to stop using Gentoo, and most of the Linux boxen I touch are Internet servers.

It's free. The free version includes all the things you mentioned in the first post.

I love Gentoo myself, but after awhile I found this was a faster and easier setup for my servers.
Back to top
View user's profile Send private message
mdshort
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 157

PostPosted: Mon Jul 18, 2005 1:17 pm    Post subject: Reply with quote

Well what I was saying about what you said, is that we could reverse engineer webmin, and recode it the right way (theres alot of things they did very messy, such as themes etc).
_________________
"With every rise, there is a fall."
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Jul 18, 2005 1:40 pm    Post subject: Reply with quote

mdshort wrote:
Well what I was saying about what you said, is that we could reverse engineer webmin, and recode it the right way (theres alot of things they did very messy, such as themes etc).

No need to reverse engineer, the code is freely available.

More power to ya, but for how little config screens like this are used once your production system is running, seems like a lot of work. Like I hinted at above, when I started I wanted a nice GUI for configuring my servers but eventually logging in by ssh, editing a config file and restarting the service ended up being easier and faster. ;-)

Of course if you're searching for something and don't know what option you're looking for, the GUI really helps.

You could easily design your own Web configuration pages.
Make the web page forms and then use the data from them in a cgi scipt to edit the files as needed and restart the service.
Back to top
View user's profile Send private message
trickypicky75
n00b
n00b


Joined: 02 Apr 2004
Posts: 69
Location: Downingtown, PA

PostPosted: Mon Jul 18, 2005 5:01 pm    Post subject: Reply with quote

Well I hope no one lights me up for this one but here I go.

Fuzzplug, I know exactly what you mean.

In my opinion, the "easy administrator tools" have always been a weak point in linux.

Don't get me wrong. I love linux, I even ran nothing but linux for over a year just to prove to my nay-saying co-workers, that I can do everything in linux that can be done in Win.

However, although I can do a config via a text file, it would be easier if there was a little more "Smarts" when I install it.

For example, lets say I want to install BIND

It would make sense to me if the installation asked me some up front questions like:
What do I want to call my domain, Do I want to use forwarders, if so what are the IP's of those forwarders.
Then to top it off, if I had a GUI that would allow me to add records, or confiugre DDNS, or anything else I could configure, that would make it easier, not just easier for me, but easier for someone who may understand DNS, but may not understand how to do it via the text file.

Furthurmore, although you can do everything via text files, it's easy to make mistakes, whether typos, syntax, or use of a special charachter. It can be confusing! Something I didn't understand back in the SAMBA 2.x days, was why I had a /etc/passwd file, but then needed a different file for samba, and then when I was using POPTOP for VPN access, I had to have a differnt password file for it too, and all 3 of them had different formats.

Once again, don't get me wrong. I love linux, and I understand that there aren't a lot of paid developers out there like M$ I know, in time, linux could have all of this functionality, It's just a matter of time....

If I could write code, I'd totally jump in on it, but I'm an Administrator type...

-TrickyPicky75
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Jul 18, 2005 5:32 pm    Post subject: Reply with quote

trickypicky75,

I know what you are saying and there are several specialized Linux distros out there that do exactly that, Gentoo is just not one of them.

That's why I suggested clarkconnect.
Very easy for even the newest Linux users to setup and administer a gateway and/or server.
Even easier than Windows. :D

Try using the GUI wizards for setting up IPSec filters in Windows 2000 Server and tell me how much GUIs make things easier and less confusing. :P
Back to top
View user's profile Send private message
Fuzzplug Jones
n00b
n00b


Joined: 22 Jun 2004
Posts: 23

PostPosted: Mon Jul 18, 2005 5:35 pm    Post subject: Reply with quote

For the last time I'M NOT A NEW USER I just thought it would be neat to have a solution that got rid of some of the redundant tasks (if it's in a 24-page howto, it should just be a damned USE flag or something). But nobody's biting at this and the only passion I'm getting here is from textfile zealots and my intention was not to piss you off. Just forget it.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Jul 18, 2005 7:19 pm    Post subject: Reply with quote

Fuzzplug Jones wrote:
For the last time I'M NOT A NEW USER I just thought it would be neat to have a solution that got rid of some of the redundant tasks (if it's in a 24-page howto, it should just be a damned USE flag or something). But nobody's biting at this and the only passion I'm getting here is from textfile zealots and my intention was not to piss you off. Just forget it.

Easy.

Threads often take their own path and veer from what the original poster asked.
A lot of these posts aren't just for you and are useful for other people that might have similar questions.

Maybe nobody cares or isn't interested in your idea that much! Lighten up. Yelling, calling people zealots, and pouting because you don't get exactly what you want won't help your cause. Maybe just try to restate your idea or add a new idea to support your position.

I'm not pissed off . 8)

Edit: I think maybe what you want is something more like support for custom groups in portage. We have system and world now, but additional ones like kdedesktop, gnomedesktop, emailserver, webserver. Each would pull in packages that someone predetermined fit this model. Of course you would have to add some type of wizard that established default entries for the config files.

There's a new project.... get to it! :P


Last edited by Headrush on Mon Jul 18, 2005 7:27 pm; edited 2 times in total
Back to top
View user's profile Send private message
trickypicky75
n00b
n00b


Joined: 02 Apr 2004
Posts: 69
Location: Downingtown, PA

PostPosted: Mon Jul 18, 2005 7:25 pm    Post subject: Reply with quote

HeadRush,
I'm aware of the Distro's you're talking about. But it would be nice to see some more GUI's and Wizards work it's way into Gentoo (and other Distros)

I totally agree what you said about setting up IPSec Filters in 2k Server, but, stuff like that keeps some one else in buisness, or MS can make thier own product (Like ISA Server) and charge you $1500 + CAL's!

I understand it would be insane to say "Make a GUI for each thing that can somehow be configured."

In Linux most everything is somehow configured using a file.

In Windows most everything is somehow configured using a file (the registry)

I guess to most people using linux it's just not a big deal. (It isn't to me either) But to compete with another O/S, that's a critical feature.

Now it just clicked to me, part of what Fuzzplug was saying...

If I'm going to follow http://www.gentoo.org/doc/en/virt-mail-howto.xml
I'm going to haveto do these configurations, so, once I'm done emerging them, why don't I just automatically get asked:
Please enter your host name =
Please enter your domain name =
What interfaces would you like postfx to run on (lo, eth0, all) =
Please enter your networks=
Please enter your home mailbox =
etc.. etc.. etc..

Generally, a reduced amount of "by hand" editing during setup. If so many people are using a how-to, why not have something like:
emerge postfix --ask-config-questions

That would give you the option to either, do it all manually (like in the how-to) or to emerge, and ask the usual config questions that you would normally type in manually anyhow.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Jul 18, 2005 7:32 pm    Post subject: Reply with quote

trickypicky75 wrote:
Generally, a reduced amount of "by hand" editing during setup. If so many people are using a how-to, why not have something like:
emerge postfix --ask-config-questions

That would give you the option to either, do it all manually (like in the how-to) or to emerge, and ask the usual config questions that you would normally type in manually anyhow.

That seems like a good idea.

Using the post_install section of an ebuild you can have a script run that does that.
(doesn't necessarily have to be GUI)

This way you wouldn't be affecting the original ebuild at all for people that didn't want to use that part and would only be a trivial adjustment to existing ebuilds.
(Add a call to script and download the script into the files directory of the ebuild)

One thing about Gentoo is choice. I've noticed before in the forums that generally Gentoo devs stay away from implementing overly "aggressive" defaults for anything. I have seen many times where it would help, but they like to keep options open.

I thought Fuzzplug original post actually involves three different things: installation, configuration, and administration. Each is actually a separate problem. My point to him was that I thought a customized distro like clarkconnect, was pretty close to what he wanted except that they have chosen which app for each type of program for you. So all he needed was a similar setup that let him choose which app he wanted. (aka which DNS server, which ftp server, or mail server)

I have nothing against anyone trying to implement what he said for Gentoo.
Back to top
View user's profile Send private message
Maxwell
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 97

PostPosted: Tue Jun 27, 2006 3:42 pm    Post subject: Reply with quote

Where any follow-ups in this discussion? I mean, one year passed, maybe some application or feature appeared in the mean time that could do what you guys were talking about. I sure wanted something like that!!
_________________
Freedom works. Use it!
Linux, by Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum