GPLHost Dedicated and xen servers
GPLHost:>_ Dedicated, shared, Xen virtual private servers, managed and domain name hosting woldwide with open source control panel here
Domain Technologie Control Forum Forum Index Domain Technologie Control Forum
Take the control of your domain name


Debian Lenny install procedure.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Domain Technologie Control Forum Forum Index -> General help and Debian specific support
View previous topic :: View next topic  
FredZ



Joined: 22 Jun 2009
Posts: 76

 PostPosted: Fri Mar 05, 2010 9:28 pm    Post subject: Debian Lenny install procedure. Reply with quote Back to top

Here is an inclusion to the Debian install howto.
This is being supplied because DTC does not install on a Debian Lenny server with a base install only as described.

Assumptions:
Debian Lenny is installed with base only.
Your new Debian Lenny server is behind a NATed firewall.
Hostname=mx
Domain Name=example.com
IP=10.2.3.4
external IP=123.123.123.123
I like to set the -y option for apt-get to prevent it from asking questions.
mx:~# represents a command line action.

This error appears if you attempt to install dtc-toaster as described in the howto.

Code:
mx:~# apt-get install dtc-toaster

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:



The following packages have unmet dependencies:

  dtc-toaster: Depends: dtc-postfix-courier but it is not going to be installed

E: Broken packages



This error appears if you attempt to install dtc-postfix-courier

Code:
mx:~# apt-get install dtc-postfix-courier

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:



The following packages have unmet dependencies:

  dtc-postfix-courier: Depends: postfix (>= 2.0) but it is not going to be installed

                       Depends: postfix-mysql but it is not going to be installed

                       Depends: postfix-tls (>= 2.0) or

                                postfix (>= 2.2.10) but it is not going to be installed

E: Broken packages



New Install section from “Installing dtc-toaster”. All other procedures above this remain the same.

Code:
mx:~# apt-get install -y postfix postfix-mysql postfix-tls


Answers to questions:
OK
Internet Site
mx.example.com
The first user you created when you installed Debian. NOT root
mx.example.com, localhost.example.com, localhost.localdoamin, localhost
No

Code:
mx:~# apt-get install -y dtc-toaster


Answers to questions:
New password for the MySQL "root" user: Your root password for mysql. Make this different to your root login password for security.
Repeat password for the MySQL "root" user: Repeat the above password
Support MySQL connections from hosts running Debian "sarge" or older? No
Directory to put the output in: /var/www/webalizer (default)
Title of the reports webalizer will generate: Usage statistics for (default)
Webserver's rotated log filename: /var/log/apache/access.log.1 (default)
Enable DNSCache Option? No
Should Mailgraph start on boot? Yes
Logfile used by mailgraph: /var/log/mail.log (default)
Count incoming mail as outgoing mail? Yes
Trust new certificates from certificate authorities? Yes
OK
daemon
Select the repository closest to you
HTTP proxy information (leave blank for none): (blank)
Should clamd be notified after updates? Yes
Create directories for web-based administration? Yes
OK
Remove mlmmj lists on purge? No
Run pure-ftpd from inetd or as a standalone server: standalone
Do you want pure-ftpwho to be installed setuid root? No
Enable virtual chroots ? Yes
Backup file name for /etc/sasldb2: /var/backups/sasldb2.bak (default)
Use dtc:dtcgrp for the sbox binary? Yes
Automatically configure MySQL user? Yes
Use Cyrus mail system? No
Domain name: example.com
Use "NATed" vhosts? Yes
Primary IP address: 10.2.3.4
Main domain admin name: dtc (default). You should change this to the first domain admin for you first domain.
Main domain admin password: Your password for the user above. Be careful here as you only enter this once.
Web server to reconfigure automatically: apache2
NATed LAN IP address: 10.2.3.4

Because the install script doesn't do several things we must now reconfigure DTC before we finalise the install.

Code:
mx:~# dpkg-reconfigure dtc-postfix-courier


Automatically configure MySQL user? Yes
Mail Transfer Agent (MTA) type: postfix
Use Cyrus mail system? No
Domain name: example.com
DTC root panel subdomain: dtc (default). This can be changed to whatever you like.
Use "NATed" vhosts? Yes
NATed LAN IP address: 10.2.3.4
Primary IP address: 123.123.123.123
Path for hosted domains: /var/www/sites (default)
Path for the chroot environment template: /var/lib/dtc/chroot_template (default)
Main domain admin name: as above
Main domain admin password: as above
Generate an SSL certificate for DTC? Yes
DTC certificate passphrase: Enter a password here to protect you certificate
Country code for the DTC SSL certificate: FR (default)
City name for the DTC SSL certificate: Paris (default)
Organization name for the DTC SSL certificate: GPLHost (default)
Organizational unit for the DTC SSL certificate: no-unit (default)
Email address for the DTC SSL certificate: example@example.com (default)
DTC SSL certificate challenge password: blank (default)
Skip mknod calls when building the chroot template? No (default)
DNSBL (DNS BlackList) list: zen.spamhaus.org (default)
OK
Local address extension character: +
Subdomain name for the MX server: mx
Network devices to monitor: eth0 (default)
Allow to report anonymous statistics to GPLHost? No (default)


Code:
mx:~# nano /etc/default/saslauthd

To enable saslauthd, edit /etc/default/saslauthd and set START=yes (warning).


Code:
mx:~# /usr/share/dtc/admin/install/install



Code:
mx:~# reboot



I have replicated this procedure on a Compaq server many times over the past couple of days without failure.

The answers given above are obviously not the only answers, but they will get your server operational.

Don't forget to change the hostname, domain name and IPs to suit your own installation.

Make a note of all the logins your using and their respective passwords.
Make a note of your particular configuration should you need to reinstall your server.

Regards

Fred
 
View user's profile Send private message
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3718
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Sat Mar 06, 2010 6:52 am    Post subject: Reply with quote Back to top

Hi,

There's no need to reboot like you did, and no need to edit /etc/default/saslauthd. If you set debconf priority to medium, no need to dpkg-reconfigure.

The howto on the wiki is enough and tell about all of the above. no need to write yet another one.

Thomas
_________________
GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
FredZ



Joined: 22 Jun 2009
Posts: 76

 PostPosted: Sat Mar 06, 2010 5:47 pm    Post subject: Reply with quote Back to top

Sorry to dispute your answer Thomas, but I wouldn't have gone to the effort if it wasn't needed.

To clarify.
/etc/default/saslauthd does need editing as it is not turned on within the script.
dpkg-reconfigure dtc-postfix-courier is required because when your setting up a NATed environment the script doesn't set this up properly and you need to go back and setup the IP again. I have raised that issue before.
And yes I did have to reboot as I couldn't get into the admin managaer consistently after the final setup stage. Apart from the fact that a reboot after you have finished everything is a good idea as it ensures everything is in order as starts properly during a normal startup situation.

Regards

Fred
 
View user's profile Send private message
CrunchyToast



Joined: 08 Aug 2008
Posts: 38

 PostPosted: Fri Jun 25, 2010 7:56 am    Post subject: Reply with quote Back to top

To be honest, this setup does indeed work, BUT I agree with Thomas that you shouldn't need to update /etc/default/saslauthd as DTC may do it automatically in the configuration.

Also, to agree with FredZ, I did have to reboot in order to get the system to resolve.

An issue I was having with this though, is that the git version of DTC wouldn't install so I just used the main repository.
 
View user's profile Send private message
albux



Joined: 21 Sep 2009
Posts: 80
Location: France

 PostPosted: Fri Jun 25, 2010 8:01 am    Post subject: Reply with quote Back to top

I had exactly the same problems during two new installation (must install postfix before DTC, DTC not working at the end of the install script) i just did /etc/init.d/apache2 restart , instead of a reboot.
 
View user's profile Send private message
CrunchyToast



Joined: 08 Aug 2008
Posts: 38

 PostPosted: Fri Jun 25, 2010 8:19 am    Post subject: Reply with quote Back to top

albux wrote:
i just did /etc/init.d/apache2 restart , instead of a reboot.
I suppose it could have been that easy lol. I just decided to reboot anyways. I installed it on a VM so I could see if it would even resolve before I put it on the server.

I guess we also could have waited the ten minutes for the cron to run too.
 
View user's profile Send private message
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3718
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Fri Jun 25, 2010 10:02 am    Post subject: Reply with quote Back to top

Seems to me a quick "apache2ctl start" would be needed at the end of the install script.

As for writing HERE, I say it again, this forum is NOT the place to write howtos. Use the wiki, it's not read only, everyone can edit it. It just would be great if you could say here what you did in the wiki, so I can have a quick look. Note also that the wiki supports attachments. If you want to attach stuffs, just ask me privately, and I will give the password for that (the password is merely just to avoid spammers, but I don't believe a spammer will ask me for the password! Smile ).

For the NAT, yes, you are right, a dpkg-reconfigure is needed, but that's the only case. Maybe someone can add it on the wiki? Smile

Thomas
_________________
GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CrunchyToast



Joined: 08 Aug 2008
Posts: 38

 PostPosted: Fri Jun 25, 2010 11:07 am    Post subject: Reply with quote Back to top

I have added this to the Wiki. I will be making changes to it to make it look more detailed. I didn't yet do it, as it's 4AM and I have to be to work at 10AM lol.

I placed a link on the sidebar, and also a link in the DebianExpressSetup page where it is called to run apt-get install dtc-toaster.

http://dtcsupport.gplhost.com/PmWiki/DebianLenny
 
View user's profile Send private message
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3718
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Fri Jun 25, 2010 5:35 pm    Post subject: Reply with quote Back to top

And why exactly do you think we absolutely need TWO howtos on how to install??? This doesn't make sense, please refrain yourself doing it. One howto is enough. If things are missing in it, feel free to comment and correct.

I have deleted your entry from the sidebar, and will wait for your explanations before deleting the howto itself.

For your information, your howto misses A LOT of points that are in the original one, like for example setting-up your hostname correctly.

Thomas
_________________
GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CrunchyToast



Joined: 08 Aug 2008
Posts: 38

 PostPosted: Fri Jun 25, 2010 6:21 pm    Post subject: Reply with quote Back to top

Like I said in my previous post: It's late and I will fix it.

Today after work I have planned to make sure everything is in the howto is put together.
 
View user's profile Send private message
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3718
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Fri Jun 25, 2010 7:22 pm    Post subject: Reply with quote Back to top

Which doesn't answer my question! Smile

Why 2 howtos? Isn't one enough?

Thomas
_________________
GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
albux



Joined: 21 Sep 2009
Posts: 80
Location: France

 PostPosted: Fri Jun 25, 2010 7:32 pm    Post subject: Reply with quote Back to top

I don't understand why we have to modify the install procedure for DTC ... The one describe in the wiki is really good, the issue here is that DTC since a while can't be installed by it ! don't you think it will be cleverer to modify DTC ?
 
View user's profile Send private message
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3718
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Fri Jun 25, 2010 7:44 pm    Post subject: Reply with quote Back to top

If you think there's an issue with the current howto, change that one, and tell about it here. There's no need to rewrite it from scratch just because of a single issue.

As for the postfix issue, it's only valid with some installation, not all. For a freshly installed VPS for example, exim4 is not there, and the setup works perfectly. Same with a full server if you don't install "Standard system" and "Desktop" in the installer, which is really not what you want to do when you setup a server.

Thomas
_________________
GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
fkiernan



Joined: 24 Dec 2009
Posts: 33
Location: Buenos Aires - Argentina

 PostPosted: Sat Jun 26, 2010 4:07 pm    Post subject: Reply with quote Back to top

Reading this post I came up with the lenny install script asking many questions not in the FreeBSD one... and I think some of them are cool to be added. Where is that install script located??

Thanks
_________________
Fernando Kiernan
DTC Git on FreeBSD 8.0
 
View user's profile Send private message Visit poster's website
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3718
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Sun Jun 27, 2010 9:45 am    Post subject: Reply with quote Back to top

The install script for what Unix flavor? If this is for Debian, this is all made in the debian folder. If it's for other OS without a graphical thing, then this will be in the admin/install folder.

I saw that the above howto content has been totally removed. I wanted to highlight that I was NOT the person doing this removal. Who is it???

Thomas
_________________
GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Domain Technologie Control Forum Forum Index -> General help and Debian specific support 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




Powered by phpBB© 2001-2005 phpBB Group
- Web hosting - Xen VPS hosting
- Seek