LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Move server from SUSE E10 to Slackware 12.2 (https://www.linuxquestions.org/questions/linux-server-73/move-server-from-suse-e10-to-slackware-12-2-a-739274/)

hua 07-10-2009 05:21 PM

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 ...

archtoad6 10-30-2010 07:44 AM

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.


All times are GMT -5. The time now is 07:37 PM.