Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


How to setup your server with Debian (small)

Click here to go to the original topic
Goto page 1, 2  Next
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Author Message
sufehmi



Joined: 13 May 2004
Posts: 27

Posted: Mon May 17, 2004 10:55 am    Post subject: How to setup your server with Debian (small)  

I chose Debian for my Linode because it's using the least space compared to other distro, and it makes managing packages in the server much easier (install: apt-get install <package>, upgrade them all: apt-get upgrade)

It can be confusing for beginners though (eg: me :) ) - for example: installing from source may not always work straight away because the software may require another software that's not installed yet, etc.

So here it is, a guide for other Debian Linode users. Hope it'll help you in configuring your Linode:

http://www.harrysufehmi.com/phpwiki/index.php/SettingUpLinuxServer

I'll update it along as I add more services to my server, when I do I'll post in this thread to let you know.


cheers,
Harry
Back to top  
ronpoz



Joined: 05 Jun 2004
Posts: 39
Location: Brooklyn, NY

Posted: Thu Jun 10, 2004 12:11 pm    Post subject:  

Hey Harry,

I tried out your little walkthrough by got stuck on the firehol install. Going step by step with Debian on my linode, i got to the part where you start the shell script. I got the following error

Code: (none):/downloads/firehol-1.191# ./firehol.sh start

ERROR:  Command 'less' not found in the system path.
        FireHOL requires this command for its operation.
        Please install the required package and retry.


So, i installed less via apt-get install less, then retried the install:


Code:
(none):/downloads/firehol-1.191# ./firehol.sh start                             
ERROR:  Command 'lsmod' not found in the system path.
        FireHOL requires this command for its operation.
        Please install the required package and retry.


At this point, there is no lsmod on my debian linode and I cant see where it exists in any apt-get package.

Any thoughts?

Thanks
Ron
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 462
Location: Netherlands

Posted: Thu Jun 10, 2004 12:54 pm    Post subject:  

It's in the modutils package.
Back to top  
ronpoz



Joined: 05 Jun 2004
Posts: 39
Location: Brooklyn, NY

Posted: Thu Jun 10, 2004 1:04 pm    Post subject:  

more fun...


Quote: IMPORTANT WARNING:
------------------
FireHOL cannot find your current kernel configuration.
Please, either compile your kernel with /proc/config,
or make sure there is a valid kernel config in:
/usr/src/linux/.config

Because of this, FireHOL will simply attempt to load
all kernel modules for the services used, without
being able to detect failures.

FireHOL: Saving your old firewall to a temporary file: OK
FireHOL: Processing file /etc/firehol/firehol.conf: OK
FireHOL: Activating new firewall (167 rules):

--------------------------------------------------------------------------------
WARNING : This might or might not affect the operation of your firewall.
WHAT : A runtime command failed to execute (returned error 255).
SOURCE : line FIN of /etc/firehol/firehol.conf
COMMAND : /sbin/modprobe ip_conntrack_ftp -q
OUTPUT :

modprobe: Can't open dependencies file /lib/modules/2.4.26-linode29-1um/modules.dep (No such file or directory)

OK
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2346
Location: Galloway, NJ

Posted: Thu Jun 10, 2004 1:32 pm    Post subject:  

You can find the most recent .config here:

http://www.linode.com/forums/viewtopic.php?p=2690#2690

It hasn't changed much at all since the linode21 kernel, and CONFIG_IP_NF_CONNTRACK is enabled.

Modules are disabled inside the Linode kernels for security reasons. You can ignore that warning message, most likely.

-Chris
Back to top  
You_Wish



Joined: 02 Nov 2003
Posts: 58

Posted: Thu Jun 10, 2004 9:34 pm    Post subject: sufehmi great info on your site thanks very helpful  

sufehmi great info on your site thanks very helpful
Back to top  
sufehmi



Joined: 13 May 2004
Posts: 27

Posted: Fri Jun 11, 2004 5:18 am    Post subject: Re: sufehmi great info on your site thanks very helpful  

You_Wish wrote: sufehmi great info on your site thanks very helpful

You're welcome.

However please be advised that it's not ideal. My goal is to create a tutorial to setup a webhosting server (on Debian), however I'm still compiling some packages (instead of installing via apt-get)
This is a problem because everytime there's a new release for that package (eg: security patch), then you'll have to recompile again.
(while updating Debian packages is as simple as apt-get update then apt-get upgrade)

FYI.


Thanks,
Harry
Back to top  
Moose



Joined: 19 Jun 2004
Posts: 6

Posted: Sat Jun 19, 2004 8:26 pm    Post subject:  

any progress on this? :D
Back to top  
Moose



Joined: 19 Jun 2004
Posts: 6

Posted: Sat Jun 19, 2004 8:27 pm    Post subject:  

as in: I got several errors while trying to install this all... especially with OpenSSL - a lot of missing file errors :(
Back to top  
Moose



Joined: 19 Jun 2004
Posts: 6

Posted: Sun Jun 20, 2004 4:50 am    Post subject:  

Ok, found a little mistake :)

apt-get install make
apt-get install gcc
apt-get install libgcrypt-dev

You need those - the first 2 are logical, but the last one isn't that obvious :p
Back to top  
sufehmi



Joined: 13 May 2004
Posts: 27

Posted: Mon Jun 21, 2004 6:33 am    Post subject:  

Moose wrote: Ok, found a little mistake :)
apt-get install make
apt-get install gcc

Sorry - now I've put those steps at the beginning of the guide.


Quote: apt-get install libgcrypt-dev

Strange... I think if you have installed OpenSSL, then you shouldn't need to do that.

Anyway, I'm very busy at the moment, but I'll reinstall the server in a few weeks time. Then I'll use that opportunity to change as much of the install routine to use apt-get (instead of manual compile), get them in the right order, and add more stuff to that documentation.
I'll let you know when I do.


Thanks,
Harry
Back to top  
Quik



Joined: 17 Sep 2003
Posts: 124

Posted: Mon Jun 21, 2004 8:24 am    Post subject:  

It might also be a good idea to edit out the additional OpenSSH instance, and remind users that they can just connect directly to their Linode's console through the host. This saves a few minutes of time setting up and removes the need to keep checking for updates :)
Back to top  
sufehmi



Joined: 13 May 2004
Posts: 27

Posted: Mon Jun 21, 2004 11:45 am    Post subject:  

Quik wrote: It might also be a good idea to edit out the additional OpenSSH instance, and remind users that they can just connect directly to their Linode's console through the host. This saves a few minutes of time setting up and removes the need to keep checking for updates :)

Excellent idea !

It's just that I'm used to installing at least 2 instances of sshd, because I've had enough of being locked out from my own server :)

Well that's very true for a dedicated server, but as you said, we don't need it for a Linode server :D


Thanks,
Harry
Back to top  
ged



Joined: 24 Jun 2004
Posts: 19
Location: Maryland, USA

Posted: Tue Jul 06, 2004 9:34 am    Post subject:  

Great work Harry.

I've taken your page, and combined it with other information I've found and tried, to begin creating a similar tutorial. I'm no fan of forks - perhaps we can combine at some point?

I'm using .deb packages wherever possible to simplify and shorten the setup.

The downside is that a config from my tutorial will be behind the "latest and greatest" as much as the official Debian packages are.

http://wiki.gednet.com/DebianServerSetup

It's not complete (no web/db/email services yet), but I'm making progress. Commenting is enabled, so everyone feel free to let me know if I've missed - or messed up - any items.

Cheers,

ged
Back to top  
sufehmi



Joined: 13 May 2004
Posts: 27

Posted: Sun Jul 11, 2004 12:45 am    Post subject:  

ged wrote: Great work Harry.

I've taken your page, and combined it with other information I've found and tried, to begin creating a similar tutorial. I'm no fan of forks - perhaps we can combine at some point?

I have no problem at all with that, in fact I'll be happy to.


Quote: I'm using .deb packages wherever possible to simplify and shorten the setup.

The downside is that a config from my tutorial will be behind the "latest and greatest" as much as the official Debian packages are.

After a few problems in the past, my primary concerns now are security, maintainability, and reliability; that's why I stick to Debian stable :

# They're maintained by Debian's security team
# Using Debian packages enable Webmin to pick them up automatically (I've tried getting Webmin to recognise manually-installed package - it's very time consuming at least)
# Upgrading / updating is a snap
# Some people may say you're lame for using Webmin - but my concern is to manage as many servers using as little time as possible (including time needed to learn each software packages)


Quote:
http://wiki.gednet.com/DebianServerSetup

It's not complete (no web/db/email services yet), but I'm making progress. Commenting is enabled, so everyone feel free to let me know if I've missed - or messed up - any items.


Great stuff ged... finally I found some info on setting up Apache+SSL using Debian packages (still messes this one up) - thanks. Also some other very interesting information.

One question - why installing qmail from source ? (the link to qmail install tutorial)
I've tried it, and it's still painful even after using easy to follow guide such as qmailrocks.org; I ended up using postfix (it's a one-page config using webmin). My friend uses ezmlm-qmail and he installed the Debian package.
Let me know if I'm missing something obvious here.


cheers,
Harry
Back to top  
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials Goto page 1, 2  Next
Page 1 of 2