LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-10-2009, 05:21 PM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 393

Rep: Reputation: 49
Move server from SUSE E10 to Slackware 12.2


The time is right now - I'm going to move my server from SUSE Enterprise to Slackware. It is not about that I don't like SUSE, I just like Slackware more.
The main job will be the mail server - I did use postfix and cyrus imap in SUSE with maildirs. Now, I will use Sendmail with imapd and mailboxes. And I want to save my old mails of course. Actually, I will move one old Slackware server to this new as well (up to 40 mailboxes).
There is also difference in the secured smtp and IMAP I used before - in SUSE I used TLS and in Slackware SSL (stunnel). Some of the MUA on the client side I will have to reconfigure.

When I started up my first Slackware server, I did things in which I was not sure that they are done well. And so I started this thread, where I will write the steps that I make.
Please if anybody sees something that is not "how it should be", please comment it. I have the complete weekend (two days) to do this work so I will write continuously the progress.

1. Step

The first step is the setup of the new Slackware 12.2 to my old hardware with two new SATA hard drives. These hard drives will be in RAID 1 - software mirroring.
I created my partitions on /dev/sda - sda1 - 78 GB and sda2 - 2 GB (the swap).
I created my partitions on /dev/sdb - sdb1 - 78 GB and sdb2 - 2 GB (the swap).
I created the /dev/md0 device with
Quote:
mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sda1 /dev/sdb1
.
I used ext3 file system. (If reiserFS or ext2 is better I will use it)
I didn't create any other partitions, I put the complete file system to md0. If there is any reason to put some directories (/boot,/var for example) to separate partitions, please tell - I am ready to do the partitioning process from the beginning again.

Now I start the setup. I will do the default setup process, with all the packages offered. Later, when everything will work, I want to remove any unnecessary package. Optionally recompile the kernel to fit exactly to my hardware.

lets start...

Added 8.8.2009 21:14:


I moved the SUSE server to slackware. I convert the maildirs to mailboxes. I made a oldmails imap folder from which I just moved the mail (by thunderbird) to the inbox.
Now I have my old mails on Slackware.

I created encryption certificates for sendmail and used stunnel for imapd.
I enabled spam blocking by dnsbl.
Used clamav to scan attachments.

The packages I used for my server are now only the necessary applications. Here is the list:
Code:
Package group [A] 

aaa_base 
aaa_elflibs 
aaa_terminfo 
acl 
acpid 
apmd 
attr 
bash 
bin 
bzip2 
coreutils 
cpio 
cryptsetup 
cxxlibs 
dcron 
device-mapper 
devs 
dialog 
dosfstools 
e2fsprogs 
eject 
elvis 
etc 
file 
findutils 
floppy 
gawk 
gettext 
glibc-solibs 
glibc-zoneinfo 
grep 
gzip 
hdparm 
infozip 
isapnptools 
kbd 
kernel-huge-smp 
kernel-modules-smp 
less 
lilo 
logrotate 
lvm2 
mdadm 
module-init-tools 
openssl-solibs 
patch 
pciutils 
pcmciautils 
pkgtools 
procps 
quota 
reiserfsprogs 
rpm2tgz 
sdparm 
sed 
shadow 
slocate 
smartmontools 
sysfsutils 
sysklogd 
syslinux 
sysvinit 
sysvinit-functions 
sysvinit-scripts 
tar 
time 
tree 
udev 
usbutils 
utempter 
util-linux 
which 
xfsprogs 

Package group [AP] 

at 
cdrdao 
cdrtools 
diffutils 
dmapi 
dmidecode 
dvd+rw-tools 
groff 
lm_sensors 
lsof 
lsscsi 
man 
man-pages 
mc 
most 
screen 
sudo 
sysstat 
texinfo 
vim 
xfsdump 

Package group [D] 

autoconf 
automake 
binutils 
bison 
doxygen 
flex 
gcc 
gcc-g++ 
gettext-tools 
kernel-headers 
libtool 
m4 
make 
perl 
pkg-config 


Package group [F] 

linux-faqs 
linux-howtos 

Package group [K] 

kernel-source 

Package group [L] 

db42 
db44 
gdbm 
glibc 
glibc-i18n 
libusb
libxml2
lzo 
ncurses 
pcre 
popt 
readline 
zlib 

Package group [N] 

apr
apr-util
dhcpcd 
inetd 
iproute2 
iptables 
iptraf 
iputils 
lftp 
libgcrypt 
libgpg-error 
lynx 
mtr 
net-tools 
netkit-ftp 
netket-rsh 
netwatch 
network-scripts 
nmap 
ntp 
openssh 
openssl
php
tcp_wrappers 
telnet 
traceroute 
wget 
whois 
wireless-tools 
wpa_supplicant
I did not check if all those packages are needed. I just used it to decrease the number of unneeded packages. 155 packages.
If anybody sees any unneeded package please write.
For more info about packages:
http://slackwiki.org/Minimal_System

Good luck ...

Last edited by hua; 10-31-2010 at 02:38 AM.
 
Old 10-30-2010, 07:44 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Thanks for the write up, let's hope others find it useful.

One suggestion: put the package list in a "Code:" block (or even a pastebin), not a "Quote:" -- it will save space.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mail server from SUSE to Slackware hua Slackware 9 04-29-2009 03:04 PM
moving files from command line from server A to server B graziano1968 Linux - Server 3 08-25-2008 10:23 AM
Moving a server to another part of network and still keeping it as a server paolopunzalan Linux - Networking 6 09-26-2007 09:13 PM
Moving to Slackware monday90 Slackware 4 11-10-2006 08:42 PM
Linux and Sony NW-E10 NSKL Linux - General 3 01-02-2003 03:05 AM


All times are GMT -5. The time now is 05:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration