netfrag.org . Pad . Joko-2004-09-20Migration-sorceress-quepasa
|
========================================================================
move/merge/migrate sorceress.netfrag.org to quepasa.netfrag.org:
========================================================================
sorceress.netfrag.org:
old ip-address: 213.133.125.248
new ip-address: 213.133.125.247
--------------------------------------------------------
1. Accounts:
copy & paste accounts from /etc/passwd from sorceress to /etc/passwd on quepasa
run "pwconv" afterwards, this will convert all passwords and writes them into /etc/shadow:
#> pwconv
[-] NOTE: "sam" is now "natraj"
2. Home-Directories
#> cd /home
#> mkdir sam/backup
#> CTRL+D
h1 #> cd /home/vsd/vs/sorceress/home
#> mv software_bkup/ sam/backup/
#> tar -czf sorceress-home.tar.gz huba sam yang
#> scp sorceress-home.tar.gz bd@quepasa.netfrag.org:/data2/tmp/
quepasa #> cd /data/home
#> tar -xzf sorceress-home.tar.gz
set permissions and stuff
4. web-directory (DocumentRoot)
[+] public html directory: /home/httpd/docs
root@h1: # cd /home/vsd/vs/sorceress/home/httpd
#> tar -czf sorceress-htdocs.tar.gz docs/
#> scp sorceress-htdocs.tar.gz bd@netfrag.org:/data2/backup/
root@quepasa:/data/www/virtual#
#> mkdir deranger
#> cd deranger
#> tar -xzf /data2/backup/sorceress-htdocs.tar.gz docs
#> mv docs/* .
#> rmdir docs
#> cd ..
#> chown -R natraj.staff deranger
[+] log files: /home/web/log
root@h1: # cd /home/vsd/vs/sorceress/home/web
#> tar -czf sorceress-httpd-logs.tar.gz log/
#> scp sorceress-httpd-logs.tar.gz bd@netfrag.org:/data2/backup/
root@quepasa:/data/www/virtual/deranger#
#> mkdir log
#> cd log
#> tar -xzf /data2/backup/sorceress-httpd-logs.tar.gz
[+] configure apache on quepasa
#> cd /data/www/virtual/deranger
#> mkdir conf
#> cp ../wac/conf/httpd.conf conf/
#> nano conf/httpd.conf
#> nano /data/www/global/conf/httpd.conf
#> /etc/init.d/apache stop
#> killall -9 apache
#> /etc/init.d/apache start
[/] copy /home/httpd/icons???
[+] http://sorceress.netfrag.org/webalizer/
[-] NOTE: http://sorceress.netfrag.org/stats/
5. mysql databases
quepasa #> mysql --version
mysql Ver 11.16 Distrib 3.23.49, for pc-linux-gnu (i686)
#> h1 # bevs sorceress
sorceress #> mysql --version
mysql Ver 11.15 Distrib 3.23.38, for pc-linux-gnu (i686)
#> /etc/rc.d/init.d/mysql stop
[-] NOTE: MySQL-Account "root/huba_fx" will not work any more.
Migrated MySQL-Account "huba/..." for "localhost".
[-] CHECK: http://sorceress.netfrag.org/~huba/movies/
[huba@deranger /tmp]$
#> mysqldump -uroot -phuba_fx huba > huba.mysqldump
#> scp huba.mysqldump bd@netfrag.org:/data2/backup/sorceress-mysql-huba.mysqldump
quepasa# mysql
mysql> update user set password='28369b7f16b0096d' where user='huba';
mysql> flush privileges;
mysql -uhuba -p huba < /data2/backup/sorceress-mysql-huba.mysqldump
6. mail services
[+] move /var/spool/mail
[+] is pop3 enabled on quepasa? yes, qpopper via inetd
7. ftp access
#> nano /etc/vsftpd.user_list
added huba, natraj and yang
8. convenience:
#> nano /etc/profile
alias pico='nano'
9. Open Questions?
[+] ippl
#> apt-get install ippl
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
ippl
0 packages upgraded, 1 newly installed, 0 to remove and 406 not upgraded.
Need to get 42.3kB of archives. After unpacking 197kB will be used.
Get:1 ftp://ftp.de.debian.org unstable/main ippl 1.4.14-3 [42.3kB]
Fetched 42.3kB in 3s (10.7kB/s)
Selecting previously deselected package ippl.
(Reading database ... 43236 files and directories currently installed.)
Unpacking ippl (from .../ippl_1.4.14-3_i386.deb) ...
Setting up ippl (1.4.14-3) ...
Starting IP Protocols Logger: ippl.
[-] NOTE: Logging data goes to /var/log/ippl/all.log
for configuration see /var/run/ippl.conf
10. misc / what about?
[/] majordomo, not active
[/] cronjobs
[+] cancel nikuja
[+] change config.inc.php in huba's phpMyadmin
[+] grep for "213.133.118.38", replace through "sorceress.netfrag.org"
#> cd /data/www/virtual/deranger
#> grep -ri "213.133.118.38" * | more
log/*
Binary file pub/pliction/film2.swf matches
pub/stats/*
pub/webalizer/*
#> cd log
#> replace 213.133.118.38 sorceress.netfrag.org -- *
access_log converted
error_log converted
#> cd ../pub
#> rm -rf webalizer
[-] NOTE:
#> cd /data/www/virtual/deranger
#> grep -ri "213.133.118.38" * | more
Binary file pub/pliction/film2.swf matches
Die IP-Adresse gibt's nicht mehr. Am besten "sorceress.netfrag.org" verwenden.
[-] /etc/security/.htpasswd
#> cd /data/www/virtual/deranger
#> grep -ri "/etc/security/.htpasswd" * | more
----- Revision r1.2 - 21 Sep 2004 - 21:08 - Main.joko
|