Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 17, 2004 11:55 am 
Offline
Junior Member

Joined: Thu May 13, 2004 8:08 am
Posts: 27
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


Top
   
 Post subject:
PostPosted: Thu Jun 10, 2004 1:11 pm 
Offline
Junior Member
User avatar

Joined: Sat Jun 05, 2004 1:22 pm
Posts: 40
AOL: fester516
Location: Brooklyn, NY
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


Top
   
 Post subject:
PostPosted: Thu Jun 10, 2004 1:54 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
It's in the modutils package.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Thu Jun 10, 2004 2:04 pm 
Offline
Junior Member
User avatar

Joined: Sat Jun 05, 2004 1:22 pm
Posts: 40
AOL: fester516
Location: Brooklyn, NY
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


Top
   
 Post subject:
PostPosted: Thu Jun 10, 2004 2:32 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
PostPosted: Thu Jun 10, 2004 10:34 pm 
Offline
Senior Member

Joined: Sun Nov 02, 2003 2:05 pm
Posts: 58
sufehmi great info on your site thanks very helpful


Top
   
PostPosted: Fri Jun 11, 2004 6:18 am 
Offline
Junior Member

Joined: Thu May 13, 2004 8:08 am
Posts: 27
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


Top
   
 Post subject:
PostPosted: Sat Jun 19, 2004 9:26 pm 
Offline
Senior Newbie

Joined: Sat Jun 19, 2004 9:15 pm
Posts: 6
any progress on this? :D


Top
   
 Post subject:
PostPosted: Sat Jun 19, 2004 9:27 pm 
Offline
Senior Newbie

Joined: Sat Jun 19, 2004 9:15 pm
Posts: 6
as in: I got several errors while trying to install this all... especially with OpenSSL - a lot of missing file errors :(


Top
   
 Post subject:
PostPosted: Sun Jun 20, 2004 5:50 am 
Offline
Senior Newbie

Joined: Sat Jun 19, 2004 9:15 pm
Posts: 6
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


Top
   
 Post subject:
PostPosted: Mon Jun 21, 2004 7:33 am 
Offline
Junior Member

Joined: Thu May 13, 2004 8:08 am
Posts: 27
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


Top
   
 Post subject:
PostPosted: Mon Jun 21, 2004 9:24 am 
Offline
Senior Member

Joined: Wed Sep 17, 2003 7:39 pm
Posts: 124
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 :)


Top
   
 Post subject:
PostPosted: Mon Jun 21, 2004 12:45 pm 
Offline
Junior Member

Joined: Thu May 13, 2004 8:08 am
Posts: 27
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


Top
   
 Post subject:
PostPosted: Tue Jul 06, 2004 10:34 am 
Offline
Senior Newbie

Joined: Thu Jun 24, 2004 4:45 pm
Posts: 19
Website: http://jeffmacmichael.com
Location: Maryland, USA
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


Top
   
 Post subject:
PostPosted: Sun Jul 11, 2004 1:45 am 
Offline
Junior Member

Joined: Thu May 13, 2004 8:08 am
Posts: 27
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group