Re: [SLUG] Easy way to duplicate a setup?

2008-04-28 Thread Glen Turner

DaZZa wrote:

OK guru's. :-)

I'm in a situation where I need to duplicate on a mass basis - to the
order or 3000-5000 units - a Linux setup off a headless box.

All the destination boxes will be identical in specification, and the
same as the original. At this point (trial - only 15 to do), I've made
an image of the disk using DD to a USB attached drive - which works,
and gets the new boxes working, but takes 3+ hours to dump the image
back to the new boxes.

3+ hours over 5000 machines is not really acceptable. :-)

Is there a better way to do this? Something which will make a smaller
image and dump back quicker - most of the disk is empty, there's only
about 15 gig of actual data/setup on a 160 gig drive - and still
maintain the partition setup/bootability like using DD does?

Willing to listen to anyone who has a cluestick and is willing to apply it.


We use PXE to boot RedHat's kickstart. That installs the OS. It then runs
a script. We have a RPM file which contains as dependencies the names of
all of the packages we want installed and the second-last step of the
kickstart is a yum install ... of that RPM (and all of its dependencies,
which is the point). The last step is to run cfengine to update and maintain
the configurations. Total takes about 20m from power-on to running across
a 1Gbps network.

You're not clear what these boxes are and what they are for.  If they
are for general PC use, then I'd do exactly as we have done. Because
then when fielded the machines will be easy to maintain (if you want
to add a package, then you add it to the meta-RPM, and the overnight yum
update will pull it in; similarly if you want a widespread change of
config cfengine can do that fine). I'd probably substitute puppet for
cfengine, for no other reason than its newer.

Have a look at past lca miniconfs and SAGE-AU conferences. Running
up thousands of machines across the university break is a popular
uni sysadmin topic.  As is the subsequent administration of those
machines.

If not, then you've got some alternatives:
 - put the shipping config into RPMs as well, and drive the
   whole thing from kickstart.
 - format the disk, then drop the 15GB of data on top
   (like this: the dev machine create a 15GB partition,
create the filesystem, save it using dd.  On the target,
dd the file into the disk. Use growfs to expand the
fileysystem to the end of the 150GB partition.) Now
you've copied only 15GB to get your 150GB filesystem.

Either way, I'd drive the build from packages. That is one of
the big lessons of the OpenWrt project -- packages have benefits
for embedded software too (configuration control, etc).

--
 Glen Turner
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Easy way to duplicate a setup?

2008-04-28 Thread Peter Chubb

DaZZa wrote:
 OK guru's. :-)
 
 I'm in a situation where I need to duplicate on a mass basis - to
 the order or 3000-5000 units - a Linux setup off a headless box.
 
 All the destination boxes will be identical in specification, and
 the same as the original. At this point (trial - only 15 to do),
 I've made an image of the disk using DD to a USB attached drive -
 which works, and gets the new boxes working, but takes 3+ hours to
 dump the image back to the new boxes.

Sounds like systemimager may fit your needs.  You set up a `golden
image', replicate it (once) to the server, then boot the rest via
DHCP/TFTP.  You can use bittorrent once the first few are booting to
get the rest of the stuff.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Easy way to duplicate a setup?

2008-04-28 Thread Jeff Waugh
quote who=DaZZa

 I'm in a situation where I need to duplicate on a mass basis - to the
 order or 3000-5000 units - a Linux setup off a headless box.
 
 All the destination boxes will be identical in specification, and the same
 as the original. At this point (trial - only 15 to do), I've made an image
 of the disk using DD to a USB attached drive - which works, and gets the
 new boxes working, but takes 3+ hours to dump the image back to the new
 boxes.
 
 3+ hours over 5000 machines is not really acceptable. :-)

You've gone down the imaging route when you *probably* should have gone down
the automated installation route. Here's why:

Pretty much every distro has some form of automated installation system. Red
Hat (and Fedora) have kickstart, Debian has debconf preseeding, while Ubuntu
actually has both (it translates from kickstart into preseed, so you can use
similar tools to deploy Ubuntu as you use with Red Hat).

Once the automated installs are complete, you can execute a configuration
management tool such as puppet or cfengine to make local customisations. One
obvious use of this is to ensure network settings are correct (and in many
cases, unique).

A massive advantage of using a configuration management tool is that you can
roll out changes to some or all of the machines really easily, based on a
centralised change management scheme. The best bit? Next time you do an auto
install of a machine, it will be as up to date as all the others, straight
away, and you don't have to keep on regenerating a binary image.

Rock on,

- Jeff

-- 
OSCON 2008: Portland OR, USA   http://conferences.oreilly.com/oscon/
 
 No shit, [EMAIL PROTECTED] - Mr. Bad
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Easy way to duplicate a setup?

2008-04-28 Thread Lindsay Holmwood
On Mon, Apr 28, 2008 at 12:51 PM, DaZZa [EMAIL PROTECTED] wrote:
 OK guru's. :-)

  I'm in a situation where I need to duplicate on a mass basis - to the
  order or 3000-5000 units - a Linux setup off a headless box.

  All the destination boxes will be identical in specification, and the
  same as the original. At this point (trial - only 15 to do), I've made
  an image of the disk using DD to a USB attached drive - which works,
  and gets the new boxes working, but takes 3+ hours to dump the image
  back to the new boxes.

  3+ hours over 5000 machines is not really acceptable. :-)

  Is there a better way to do this? Something which will make a smaller
  image and dump back quicker - most of the disk is empty, there's only
  about 15 gig of actual data/setup on a 160 gig drive - and still
  maintain the partition setup/bootability like using DD does?

  Willing to listen to anyone who has a cluestick and is willing to apply it.

Building a provisioning infrastructure is the easy part. Managing a
deployment of 3000+ machines is going to be a challenge.

Are these set-and-forget machines, or are you going to have to change
stuff on them in the future?

Even if they are set and forget, I can imagine that your requirements
*will* change in the future and you'll be up shit creek if you've done
just plain imaging.

My suggestion (speaking as someone who's done a 400+ seat deployment, twice):
 - use your distro's network boot + auto install system to install the
most miminal of base images you can get. (kickstart, debian-preseed
and PXE are your friend)
 - hook a configuration management system in an the end of the prep
process and have it configure the machines (Puppet is perfect for
this)

Jeff hit the nail on the head when he explained why you need to use a
configuration management system.

If you don't have that infrastructure in place you're going to hate
yourself when you have to change some seemingly trivial setting across
3000+ machines. You'll end up duplicating whatever work you do,
because you'll need to check that the change works on existing
machines *as well as* new machines that you provision.

Put really simply: keep as much logic as you possibly can *out* of
your provisioning process and rely on a configuration management
system like Puppet.

Lindsay

-- 
http://slug.org.au/ (the Sydney Linux Users Group)
http://holmwood.id.au/~lindsay/ (me)
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] perl equivalent for cd $(dirname $0)?

2008-04-28 Thread Sonia Hamilton
On Thu, 2008-04-24 at 22:05 +1000, Amos Shapira wrote:
 On Wed, Apr 23, 2008 at 5:37 PM, Sonia Hamilton [EMAIL PROTECTED] wrote:
  In my bash scripts I often use this (to change to the directory where
   the script is):
 
   cd $(dirname $0)
 
   Is there an equivalent in perl?
 
 1. Short answer: http://perldoc.perl.org/File/Basename.html, and $0
 in perl works like in the shell.

Thanks everyone for all your replies about this.

 2. Longer answer: install the FF search engines for perldoc.perl.org
 and CPAN and you'll always be a simple search away from answers to all
 perl-related questions you'll ever have.

The difficulty in solving problems in any new topic is often knowing
what question to ask :-) I searched and searched (got the perl doco
locally), but didn't know what to look for...

-- 
Thanks,
.
Sonia Hamilton
http://soniahamilton.wordpress.com
http://www.linkedin.com/in/soniahamilton
.
Your manuscript is both good and original; but the part that is good is
not original and the part that is original is not good - Samuel Johnson.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] April SLUG Monthly Meeting — this Friday

2008-04-28 Thread Sridhar Dhanapalan
You can read the full version of this announcement on the Web at 
http://www.slug.org.au/node/97



== April SLUG Monthly Meeting ==

NOTE: Due to a clash with ANZAC Day, the April SLUG meeting has been deferred 
by one week to 2 May. The official May meeting will not be affected.

Also, please note that our originally-scheduled SLUGlets talk has been 
postponed, given its common subject matter with the In-Depth talk.


When:
   18.30 - 20.30, Friday, 2 May, 2008

We start at 18:30 but we ask that people arrive 15 minutes early so we can all 
get into the building and start on time. Please do not arrive before 18:00, 
as it may hinder business activities for our host!

Appropriate signage and directions will be posted on the building.


Where:
   Atlassian[0], 173-185 Sussex Street, Sydney
   (corner of Sussex and Market Street)

Entry is via the rear on Slip Street. There are stairs going down along the 
outside of building from Sussex St to near the entrance. A map of the area 
and directions can be found here[1].



= Talks =

** General Talk **
Matthew Palmer: Deploying and Managing large scale Linux deployments


** In-Depth Talk **
Martin Visser: Wireshark — Packet Sniffing

Wireshark 101 or how-can-i-figger-out-wot-the-flamin'-network-is-doing!
For many system administrators, what happens on the Ethernet and beyond is 
quite opaque and unfathomable. However, being able to efficient examine the 
network is a great boon to troubleshoot system issues, understand performance 
issues, and the like. Developers of network-centric applications should have 
a good understanding of the impact of their application on the wire. Martin 
has used Wireshark (formerly known as Ethereal), the packet sniffer and 
analyser, many times to objectively finger-point at configuration issues and 
steer sysadmins in the right direction. This talk will show how to use the 
important features of Wireshark, how it teaches you about networking and how 
it makes your life better.
Martin has been involved in network engineering and consulting for nearly 20 
years, working as a Network and Security Consultant with HP in Sydney for 10 
years. He has been using Linux since 1992 and have been irregularly attending 
SLUG meetings since then.



= Meeting Schedule =

See here[2] for an explanation of the segments.

* 18:15 : Open Doors
* 18:30 : Announcements, News, Introductions
* 18:45 : General Talk (see above)
* 19:30 : Intermission
* 19:45 : Split into two groups for
* In-depth Talk (see above)
* SLUGlets: Linux QA and other miscellany
* 20:30 : Dinner

Dinner is at Golden Harbour Restaurant, in Chinatown. We will be having the 
$24 Banquet[3], but we will be collecting $25 per head for ease of accounting 
and to cover a tip. We will be taking numbers during the break to confirm the 
reservation size. If you have any particular dietary requirements (e.g. 
vegetarian), or if you would prefer to order separately, let us know 
beforehand. Dinner is a great way to socialise and learn in a relaxed 
atmosphere :)

We hope to see you there!


[0] http://www.atlassian.com
[1] http://tinyurl.com/35fxes
[2] http://www.slug.org.au/meetings/meetingformat
[3] http://www.goldenharbour.com.au/specials.html


-- 
Sridhar Dhanapalan
President
Sydney Linux Users Group
http://www.slug.org.au


signature.asc
Description: This is a digitally signed message part.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

[SLUG] Deleting a mailman list

2008-04-28 Thread Peter Chubb

Hi,
How do I delete a mailman list (as far as being able to send
new messages to it goes) but leave the archive website up?

The documentation suggests 
rmlist list-name
deletes the list but leaves the archives; but they've disappeared from
the website too.
--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Multiple Domains - Apache

2008-04-28 Thread Deepan
Hi All,
I am serving two domains from the same machine
using Apache. I want www to be used in both of the
domains, hence I redirect  urls without www to
appropriate urls with www. I have the following
configuration in httpd.conf to achieve this.
   


NameVirtualHost *:80

VirtualHost  *:80
DocumentRoot /var/www/html/domaina/
ServerName www.domaina.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domaina\.com$ [NC]
RewriteRule ^(.*)$ http://www.domaina.com$1
[R=301,L]
/VirtualHost


VirtualHost *:80
DocumentRoot /var/www/html/domainb/
ServerName  www.domainb.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainb\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainb.com$1
[R=301,L]
/VirtualHost





However all requests to http://domainb.com/ gets
redirected to http://www.domaina.com  whereas the
expected behaviour is to get redirected to
http://www.domainb.com/ . 
Regards 
Deepan 

Photographic Memory Game:
http://www.photographicmemorygame.com/
Sudoku Solver: http://www.sudoku-solver.net/ 


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Multiple Domains - Apache

2008-04-28 Thread Deepan
Hi All,
I am serving two domains from the same machine
using Apache. I want www to be used in both of the
domains, hence I redirect  urls without www to
appropriate urls with www. I have the following
configuration in httpd.conf to achieve this.
   


NameVirtualHost *:80

VirtualHost  *:80
DocumentRoot /var/www/html/domaina/
ServerName www.domaina.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domaina\.com$ [NC]
RewriteRule ^(.*)$ http://www.domaina.com$1
[R=301,L]
/VirtualHost


VirtualHost *:80
DocumentRoot /var/www/html/domainb/
ServerName  www.domainb.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainb\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainb.com$1
[R=301,L]
/VirtualHost





However all requests to http://domainb.com/ gets
redirected to http://www.domaina.com  whereas the
expected behaviour is to get redirected to
http://www.domainb.com/ . 
Regards 
Deepan 

Photographic Memory Game:
http://www.photographicmemorygame.com/
Sudoku Solver: http://www.sudoku-solver.net/ 


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Easy way to duplicate a setup?

2008-04-28 Thread jam

On Mon, 2008-04-28 at 17:09 +1000, [EMAIL PROTECTED] wrote:
 I'm in a situation where I need to duplicate on a mass basis -
 to the
 order or 3000-5000 units - a Linux setup off a headless box.
 
 All the destination boxes will be identical in specification,
 and the
 same as the original. At this point (trial - only 15 to do),
 I've made
 an image of the disk using DD to a USB attached drive - which
 works,
 and gets the new boxes working, but takes 3+ hours to dump the
 image
 back to the new boxes.
 
 3+ hours over 5000 machines is not really acceptable. :-)
 
 Is there a better way to do this? Something which will make a
 smaller
 image and dump back quicker - most of the disk is empty,
 there's only
 about 15 gig of actual data/setup on a 160 gig drive - and
 still
 maintain the partition setup/bootability like using DD does?
 
 Willing to listen to anyone who has a cluestick and is willing
 to apply it.

For 1000s units ... make a custom install CD (or usb).
Ubuntu/redhat/suse have easy to use tools. No doubt others do too.

In addition you can replicate to a known start point anytime in future.

James

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Multiple Domains - Apache

2008-04-28 Thread Peter Chubb
 Deepan == Deepan  [EMAIL PROTECTED] writes:

Deepan Hi All, I am serving two domains from the same machine using
Deepan Apache. I want www to be used in both of the domains, hence I
Deepan redirect urls without www to appropriate urls with www. I have
Deepan the following configuration in httpd.conf to achieve this.
   


Deepan NameVirtualHost *:80

Deepan VirtualHost *:80 DocumentRoot /var/www/html/domaina/
Deepan ServerName www.domaina.com 

Suggest you add 
ServerAlias *.domaina.com
ServerAlias domaina.com
and likewise for domainb.com


Otherwise, any unrecognised name will go to the default (first)
config.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Deleting a mailman list

2008-04-28 Thread Sonia Hamilton
On Tue, 2008-04-29 at 09:21 +1000, Peter Chubb wrote:
 Hi,
   How do I delete a mailman list (as far as being able to send
 new messages to it goes) but leave the archive website up?
 
 The documentation suggests 
   rmlist list-name
 deletes the list but leaves the archives; but they've disappeared from
 the website too.

From memory, an easier way is to delete the mailserver archive that
forwards to mailman, rather than deleting the list within mailman.

-- 
Thanks,
.
Sonia Hamilton
http://www.snowfrog.net
http://training.snowfrog.net
http://www.linkedin.com/in/soniahamilton
.
Your manuscript is both good and original; but the part that is good is
not original and the part that is original is not good - Samuel Johnson.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Multiple Domains - Apache

2008-04-28 Thread Sonia Hamilton
On Tue, 2008-04-29 at 05:05 +0530, Deepan wrote:
 Hi All,
   I am serving two domains from the same machine
 using Apache. I want www to be used in both of the
 domains, hence I redirect  urls without www to
 appropriate urls with www. I have the following
 configuration in httpd.conf to achieve this.

Setting up aliases in your dns is probably the way to do this:

ie domaina.com is an alias for www.domaina.com.

-- 
Thanks,
.
Sonia Hamilton
http://www.snowfrog.net
http://training.snowfrog.net
http://www.linkedin.com/in/soniahamilton
.
Your manuscript is both good and original; but the part that is good is
not original and the part that is original is not good - Samuel Johnson.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Deleting a mailman list

2008-04-28 Thread Sonia Hamilton
On Tue, 2008-04-29 at 10:02 +1000, Sonia Hamilton wrote:
 On Tue, 2008-04-29 at 09:21 +1000, Peter Chubb wrote:
  Hi,
  How do I delete a mailman list (as far as being able to send
  new messages to it goes) but leave the archive website up?
  
  The documentation suggests 
  rmlist list-name
  deletes the list but leaves the archives; but they've disappeared from
  the website too.
 
 From memory, an easier way is to delete the mailserver archive that
 forwards to mailman, rather than deleting the list within mailman.

Duh! That should read delete the mailserver *alias* that forwards
emails to mailman *for that list*, rather than deleting the list within
mailman

-- 
Thanks,
.
Sonia Hamilton
http://www.snowfrog.net
http://training.snowfrog.net
http://www.linkedin.com/in/soniahamilton
.
Your manuscript is both good and original; but the part that is good is
not original and the part that is original is not good - Samuel Johnson.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Multiple Domains - Apache

2008-04-28 Thread Dean Hamstead

you need the ServerAlias directive

Dean

Deepan wrote:

Hi All,
I am serving two domains from the same machine
using Apache. I want www to be used in both of the
domains, hence I redirect  urls without www to
appropriate urls with www. I have the following
configuration in httpd.conf to achieve this.
   



NameVirtualHost *:80

VirtualHost  *:80
DocumentRoot /var/www/html/domaina/
ServerName www.domaina.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domaina\.com$ [NC]
RewriteRule ^(.*)$ http://www.domaina.com$1
[R=301,L]
/VirtualHost


VirtualHost *:80
DocumentRoot /var/www/html/domainb/
ServerName  www.domainb.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainb\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainb.com$1
[R=301,L]
/VirtualHost





However all requests to http://domainb.com/ gets
redirected to http://www.domaina.com  whereas the
expected behaviour is to get redirected to
http://www.domainb.com/ . 
Regards 
Deepan 


Photographic Memory Game:
http://www.photographicmemorygame.com/
Sudoku Solver: http://www.sudoku-solver.net/ 





--
http://fragfest.com.au
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Ubuntu 8.04 issues - are there any?

2008-04-28 Thread david
I got this comment from another list (Cinepaint):

After the CinePaint problems I found several other difficulties that
would not resolve on my system and I have now abandoned this latest
Ubuntu release. ... much more comfortable!

Has anyone else had any problems? I'm thinking of upgrading several machines.

thanks

David


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Postfix, SASL, old-skool

2008-04-28 Thread Mary Gardiner
On Mon, Apr 21, 2008, Jeff Waugh wrote:
 Well, how about using multiple parameters in the postfix relayhost setting?
 
   relayhost =
 [usual.server.on.normal.port]:25
 [usual.server.on.submission.port]:587
 [fascist.university.server]:25
 
 Then set up multiple entries in /etc/postfix/sasl_passwd like so:
 
   usual.server.on.normal.port  p4ssw0rd
   fascist.university.serverp4ssw0rd

In case anyone finds this useful, what I actually had to do:

First, the relevant fascist server does not support the modern STARTTLS
way of doing secure SMTP, they use the old wrapper mode on port 465
which Postfix DOESN'T support in client mode. (Before anyone mails, no,
they don't support STARTTLS on port 587 either, that seems to be wrapper
mode too.)

In order to get Postfix to do this, I used stunnel to forward a local
port per http://www.postfix.org/SASL_README.html#client_sasl and
http://www.postfix.org/TLS_README.html#client_smtps

stunnel is an absolute pain in the neck on Ubuntu: it refuses to log
errors in any meaningful way and will often claim to start without
actually having done so. To debug it, I suggest running it on the
command line sudo stunnel4 /etc/stunnel/stunnel.conf so you can see
what it really thinks it is doing. In addition, don't forget to set
ENABLED=1 in /etc/default/stunnel4 so that the init scripts will at
least try and work.

This is what my /etc/stunnel/stunnel.conf ended up looking like:


#; very simple config from 
http://archives.neohapsis.com/archives/postfix/2007-03/1350.html

pid = /var/run/stunnel.pid
key = /etc/stunnel/stunnel.pem

[smtp-tls-wrapper]
accept = 11125
client = yes
connect = fascist.university.server:465


I generated /etc/stunnel/stunnel.pem with openssl req -new -x509 -days
3650 -nodes -out stunnel.pem -keyout stunnel.pem per
http://ubuntuforums.org/showthread.php?t=679779

According to most guides to Postfix and stunnel around, the key
shouldn't be required, but I didn't get stunnel to work without it.

Then in /etc/postfix/main.cf:


relayhost = [127.0.0.1]:11125
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = 


The last line is required because the server in question ALSO isn't
strict enough in terms of password transmission for our good friend
Postfix, so I needed to turn off the security checking. You can tell
from the Postfix logs, you will get messages like warning: SASL
authentication failure: No worthy mechs found

Finally, make sure that /etc/postfix/sasl/passwd has the relay host and
not the fascist.university.server:465 value:


[127.0.0.1]:11125   USERNAME:PASSWORD


-Mary
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ubuntu 8.04 issues - are there any?

2008-04-28 Thread David Gillies
david wrote:
 I got this comment from another list (Cinepaint):
 
 After the CinePaint problems I found several other difficulties that
 would not resolve on my system and I have now abandoned this latest
 Ubuntu release. ... much more comfortable!
 
 Has anyone else had any problems? I'm thinking of upgrading several machines.

For my basic purposes (web browsing, email, listening to music, irc'ing,
compiling the occasional program etc) 8.04 has been good to me since I
upgraded to it back in the alpha phase. The only real showstopper I ever
saw was some wacky gnome-settings-daemon/xrandr/compiz-related bug which
didn't affect me hugely since I'm using fluxbox as my window manager.
I'm pretty sure that one was resolved before the final release was
pushed out though.

There was even some annoying things that I couldn't fix in previous
versions that are sorted now without me having to do anything (for some
reason the NVIDIA driver didn't work properly for me in gutsy).

-- 
dave.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ubuntu 8.04 issues - are there any?

2008-04-28 Thread Heracles

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi David,
Since upgrading to 8.04 it removed my proprietary drivers for my nVidia
6200 and I had to reset my video as it did not even recognise my monitor
(7.10 had no problems) also I can no longer run Doom2 (the only
shootemup I play) and I am sure there are other issues. Maybe my problem
stems from doing the upgrade online (2 GB of download) rather than just
starting from scratch.

Heracles

david wrote:
| I got this comment from another list (Cinepaint):
|
| After the CinePaint problems I found several other
difficulties that
| would not resolve on my system and I have now abandoned this
latest
| Ubuntu release. ... much more comfortable!
|
| Has anyone else had any problems? I'm thinking of upgrading several
machines.
|
| thanks
|
| David
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIFnlUybPcBAs9CE8RAjyeAJ4ieqlIH4HG55k9F3Fnmnt2qEcKKACfVgDB
d/LiHfRWggq04kUdaW1NeHM=
=Nmwe
-END PGP SIGNATURE-
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Deleting a mailman list

2008-04-28 Thread Peter Chubb
 Sonia == Sonia Hamilton [EMAIL PROTECTED] writes:

Sonia On Tue, 2008-04-29 at 10:02 +1000, Sonia Hamilton wrote:
 On Tue, 2008-04-29 at 09:21 +1000, Peter Chubb wrote:  Hi,  How
 do I delete a mailman list (as far as being able to send  new
 messages to it goes) but leave the archive website up?
  
  The documentation suggests  rmlist list-name  deletes the list
 but leaves the archives; but they've disappeared from  the website
 too.
 
 From memory, an easier way is to delete the mailserver archive
 that forwards to mailman, rather than deleting the list within
 mailman.

Sonia Duh! That should read delete the mailserver *alias* that
Sonia forwards emails to mailman *for that list*, rather than
Sonia deleting the list within mailman

Thanks for the suggestion.  Except there aren't any :-)
My exim4.config has:

mailman_director:
driver = accept
require_files = MAILMAN_HOME/lists/$local_part/config.pck
local_part_suffix_optional
local_part_suffix = -bounces : -bounces+* : \
 -confirm+* : -join : -leave : \
 -owner : -request : -admin
transport = mailman_transport


So I guess what I should have done is just remove
MAILMAN_HOME/lists/list-to-delete/config.pck ... ???

But I believe this file is shared with the code that generates the
archive stuff.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Deleting a mailman list

2008-04-28 Thread Sonia Hamilton
On Tue, 2008-04-29 at 11:37 +1000, Peter Chubb wrote:
 Sonia Duh! That should read delete the mailserver *alias* that
 Sonia forwards emails to mailman *for that list*, rather than
 Sonia deleting the list within mailman
 
 Thanks for the suggestion.  Except there aren't any :-)
 My exim4.config has:
 
 mailman_director:
 driver = accept
 require_files = MAILMAN_HOME/lists/$local_part/config.pck
 local_part_suffix_optional
 local_part_suffix = -bounces : -bounces+* : \
  -confirm+* : -join : -leave : \
  -owner : -request : -admin
 transport = mailman_transport
 

That's because Exim seems to be very sensible (I'm migrating away from
Postfix, to get away from horrors like what Mary is dealing with).

Last time I played with mailman it was on a qmail machine (doubleplus
horror), where multiple .qmail files under /var/qmail/something were
used for each mailman list eg .qmail-foo-join .qmail-foo-admin etc. Ergo
remove them to stop the list working.

-- 
Thanks,
.
Sonia Hamilton
http://www.snowfrog.net
http://training.snowfrog.net
http://www.linkedin.com/in/soniahamilton
.
Your manuscript is both good and original; but the part that is good is
not original and the part that is original is not good - Samuel Johnson.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Ubuntu 8.04 issues - are there any?

2008-04-28 Thread Amos Shapira
On Tue, Apr 29, 2008 at 10:31 AM, david [EMAIL PROTECTED] wrote:
 I got this comment from another list (Cinepaint):

 After the CinePaint problems I found several other difficulties that
 would not resolve on my system and I have now abandoned this latest
 Ubuntu release. ... much more comfortable!

  Has anyone else had any problems? I'm thinking of upgrading several machines.

I upgraded my laptop to 8.04 from 7.10 and don't know if the upgrade
left the system at a broken state because of a local fault (I didn't
stay to watch it when it failed, and my wife may have drained the
battery), special setup (I use LVM) or simply because it's screwed. I
ended up re-installing from an image of rc1 and this is what I now
have on the laptop (I wanted the upgrade because of Firefox 3 and
Evolution which can actually talk to an Exchange server).

My desktop shows the upgrade button and starts it but just fails after
a long time and gets back to 7.10, so that's where it is right now.

A colleague who tried 7.10 because the Vista that he got with his
brand new laptop just Didn't Work (TM) was happy with it but when he
tried to upgrade nothing worked. I hope I won't loose another
Windows-Linux convert because of this.

So my conclusion for now - you might be better off waiting a little
until the wrinkles are sorted out.

Cheers,

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Outputing progress counters with PHP/HTML

2008-04-28 Thread Howard Lowndes
I have a need to output a progress counter from a PHP script that takes a
while to run whilst writing a large number of records out to an SQL
database, mainly so that the user knows that things are still happening
and not hung.

It seems a simple thing to do, but when I try it, the progress counter
(say, every 100 records) instead of being output at the correct time, gets
delayed until the whole process has finished.

What is the best way to get around this problem.


-- 
Howard
LANNet Computing Associates http://lannet.com.au
When you want a computer system that works, just choose Linux;
When you want a computer system that works, just, choose Microsoft.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Outputing progress counters with PHP/HTML

2008-04-28 Thread Jeff Waugh
quote who=Howard Lowndes

 I have a need to output a progress counter from a PHP script that takes a
 while to run whilst writing a large number of records out to an SQL
 database, mainly so that the user knows that things are still happening
 and not hung.
 
 It seems a simple thing to do, but when I try it, the progress counter
 (say, every 100 records) instead of being output at the correct time, gets
 delayed until the whole process has finished.
 
 What is the best way to get around this problem.

flush() liberally. :-) You might want to do it every loop, or every five or
so depending on what kind of performance:visibility ratio you're aiming for.

- Jeff

-- 
GUADEC 2008: Istanbul, Turkey http://www.guadec.org/
 
   No match for LINUSWEARSTHEPANTS.ORG.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Outputing progress counters with PHP/HTML

2008-04-28 Thread justin randell
On Tue, Apr 29, 2008 at 3:45 PM, Howard Lowndes [EMAIL PROTECTED] wrote:
 I have a need to output a progress counter from a PHP script that takes a
  while to run whilst writing a large number of records out to an SQL
  database, mainly so that the user knows that things are still happening
  and not hung.

  It seems a simple thing to do, but when I try it, the progress counter
  (say, every 100 records) instead of being output at the correct time, gets
  delayed until the whole process has finished.

  What is the best way to get around this problem.

not necessarily the *best* way:

?php
$i = 0;
do {
  print hai tharbr /;
  flush();
  sleep(1);
  $i++;
} while ($i  15);
?
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html