Archive

Archive for February, 2007

Ubuntu 6.10 Edgy Eft Local Repository using debmirror

February 27, 2007 Leave a comment

I published a howto a while back for a local Dapper repository, and really Edgy is just a minor variation of that.

At 3:30 AM each night a cron job runs a script called repupdate.

Here is that script:

#!/bin/bash -x

/usr/bin/debmirror /var/www/ubuntu –nosource -m –passive –host=archive.ubuntulinux.org –root=ubuntu/ \
–method=ftp –progress –dist=edgy –ignore-release-gpg –section=main,multiverse,universe,restricted \
–arch=i386 /backups/ubuntu/

It updates the repository mirror for Edgy each morning. I now have the repository mirror on a web server in the ubuntu directory. To use the repository, you open /etc/apt/sources.list, and do a search and replace:

http://us.archive.ubuntu.com/ubuntu

with

http://(your web server IP)/ubuntu

You do need to set up Apache on the machine first, and modify the script to match your www data files location if it is  different from mine. After the initial download of several gigabytes, all updates and installations from the LAN are lightning quick.

Advertisements
Categories: DIY, networking, ubuntu

Making Apache case-insensitive

February 19, 2007 9 comments

Apache is case sensitive on *nix systems, since the underlying file system is case sensitive. This can cause trouble with sites brought over from case-insensitive systems. It is relatively easy to remove that sensitivity with the apache module check_speling (funny name, huh?). It will also remap mistyped urls when possible, mapping index.htm to the proper index.html, etc.

This is the procedure for Ubuntu/Debian systems.

  1. From the command line, type sudo su to get root privileges.
  2. nano /etc/apache2/mods-available/speling.conf
  3. Type CheckSpelling on and hit ctrl-x, y to exit and save the file.
  4. type a2enmod and then speling and hit enter.
  5. type /etc/init.d/apache2 reload to reload apache.
  6. Mistype a url to test it.

I learned about Debian Apache module management from here.

Categories: Software, ubuntu

Scalix Community Edition

February 14, 2007 Leave a comment

This week we migrated to Scalix 11.0 from MacOSX Server 10.3 (cyrus). The migration went smoothly and seems to be working very well. The only problems so far: Apple Mail seems to put a lot of junk characters into replies, so we will not be using that as much for now. You really need to be using a groupware client to exploit the features of scalix anyway. Also the authentication is case sensitive on the user name – that caused a few minor problems.

The Outlook connector works perfectly as far as I can tell, and the web client is fantastic. Using Outlook I can’t tell I’m not using an Exchange server. The web client is good enough you could use it as your only interface to the system.
You can’t beat the price – $0 for small businesses for the community edition. That edition includes 25 full groupware clients (with shared calendars) and unlimited email only clients.  That fits the profile of most of our clients.

Categories: scalix, Software

Importing Contacts into Outlook

February 14, 2007 Leave a comment

Outlook handles individual vCards (2.1, not 3.0) just fine, but importing a batch can be a problem. Here is a procedure for getting an Apple Address Book into Outlook, via the Windows Address Book. This is tested with OSX 10.4.8 and Outlook XP on a terminal server session on Server 2003. Other versions are probably similar.

  1. Apple Address Book: Preferences > vCard Format> Click 2.1 format, and close the preferences window
  2. Highlight the contacts to export and choose File> Export vCard… Choose a location. It will export one combined file.
  3. Copy the file to the computer you’re importing from
  4. Go to Start: Program Files: Accessories: Address Book
  5. In Address Book, go to File > Import > Business Card (vCard)… and select your vCard 2.1 file. Address book will now import all the records from the file. You’ll have to OK each as it imports each one, but you can just sit hitting the ENTER key so it’s actually pretty quick.
  6. Fire up Outlook and pretend you’re importing addresses from Outlook Express. Go to File > Import and Export, choose “Import Internet Mail and Addresses” as the action, then “Outlook Express 4.x, 5.x, 6.x” as the source and untick “Import Mail” and “Import Rules”. Make sure you can view invisble files. Specify \\<computer>>\Documents and Settings\<<user>>\Application Data\Microsoft\Address Book\<<user>>.wab. Choose Outlook Contacts Folder as the destination and tell it what you want to do with duplicates. Click Finish and Outlook will automatically import all the address you imported into Address Book into your Outlook Contacts folder.
    (Detailed instructions here.).

This was adapted from an entry at njivy.org.

Categories: OSX, Software, Windows Server

Outbound dialing problem with Digium TDM400 and Trixbox

February 11, 2007 Leave a comment

I began seeing problems with the upgrade to Trixbox 1.2.3 and now with a fresh install of 2.0. I have not tested it thoroughly enough to say for sure, but I believe it was introduced with a newer version of zaptel. Asterisk began sending digits before the CO was ready, resulting in incorrect digits received. Adding a pause before dialing clears it up. To do that, you need to add a w or ww to the outbound dial prefix for each affected trunk in FreePBX. Cleared it right up for me.

Categories: Asterisk, Software

Quick DNS (bind9) setup for ubuntu dapper server

February 11, 2007 Leave a comment

Setting up a DNS server in Ubuntu:

1. Type in sudo su to get get root privileges for the session
2. Type in apt-get install bind9 to install the BIND name server.
3. There is no need to edit the main configuration, so leave that.
4. Edit the “local” conf file: nano /etc/bind/named.conf.local.
5. Add the following lines to that file, which will define our domain names for the virtual hosting:
zone “” {
type master;
file “/etc/bind/zones/example.com.zone”;
};
zone “1.0.10.in-addr.arpa” {
type master;
file “/etc/bind/zones/1.0.10.in-addr.arpa.zone”;
};
6. Save and close the file. (Ctrl-X, Y)
7. Edit the options file: nano /etc/bind/named.conf.options
8. Uncomment the “forward” lines, and replace the address there with the IP address of an upstream DNS server. The easiest way to get that is to connect to the internet, and then take the top IP address from your resolv.conf file.
forwarders {
x.x.x.x; # replace with your upstream DNS server (I used 10.0.1.1 since my router is a forwarder)
};
9. Now we need to create our zone files. Type mkdir /etc/bind/zones.
10. Create and edit the forward zone file. Type nano /etc/bind/zones/lan.zone and then write this in it:
;
; BIND data file for “example.com” network
;
$TTL 604800
@ IN SOA example.com. admin.example.com. (
101 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
;
IN NS ns
;
ns IN A 10.0.1.3
server IN A 10.0.1.100
11. Create and edit the reverse zone file. Type nano /etc/bind/zones/1.0.10.in-addr.arpa.zone and then write this in it:
;
; BIND reverse data file for “lan” network
;
$TTL 604800
@ IN SOA lan. root.server.lan. (
102 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
;
IN NS ns
3 IN PTR ns
100 IN PTR server
12. Now restart bind by typing nano /etc/init.d/bind9 restart.

Adapted from: http://blog.saturnlaboratories.co.za/2007/01/01/howto-ubuntu-home-lan-server.html

Categories: DIY, networking, ubuntu