Category Archives: Computer

Upgrade a Cisco Catalyst 2950 Switch

First you need to download a new firmware on Cisco homepage to that you need a cisco login.

Then you need a tftp server. Klever’s pumpkin is free.

Then we need to take backup of the cisco switch before upgrading.
Login to enable mode.
wr mem
copy running-config tftp://192.168.0.1/config
copy flash:vlan.dat tftp://192.168.0.1/vlan.dat
copy flash:c2950-i6q4l2-mz.121-22.EA6.bin tftp://192.168.0.1/c2950-i6q4l2-mz.121-22.EA6.bin

Then we need to delete old HTML files.
delete /r /f flash:html
Then we need to get the new software on the Cisco router.
archive tar /xtract tftp://192.168.0.1/c2950-i6q4l2-tar.121-22.EA10a.tar flash:

And then you just need to reload the cisco router.
reload

Debian and build a package from source

I want to build pure-ftpd from source becurs my debian server dosent support capabilities.
So first i download the package:
host:/usr/local/src/# cd /usr/local/src
host:/usr/local/src/# apt-get -b source packagename

Then i change the debian/rules files in the package, so that pure-ftpd not support capabilities. (–without-capabilities)

host:/usr/local/src/# cd pure-ftpd-1.0.21/debian

host:/usr/local/src/#nano rules

Then i compile pure-ftpd.

host:/usr/local/src/# cd ..

host:/usr/local/src/# dpkg-buildpackage -rfakeroot -uc -b

Then I install the pure-ftpd-common and pure-ftpd-mysql

host:/usr/local/src/# cd ..

host:/usr/local/src/# dpkg -i pure-ftpd-common_1.0.21-11.1_all.deb

host:/usr/local/src/# dpkg -i pure-ftpd-mysql_1.0.21-11.1_i386.deb

XO Soft Wansync seminar…

Har været på en dags seminar omkring XOSoft, et fantatisk program. Kan replikere Exchange til en anden server, det i sig selv er ikke det store, men det der er spændende er er deres Wansync HA, hvor den kan skifte rundt fuldstændig automatisk hvis der opstår et problem på den ene server. Det bliver et spændende produkt.

Apache and Certificate

If you want a sign certificat to use with apache, you need to do this:

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr

openssl rsa -in server.key -out server.key.insecure
mv server.key server.key.secure
mv server.key.insecure server.key

Mail the server.csr file to certificat trust. Then you get a file back, rename that file to server.crt

Then you need to change this 2 lines, in apache.conf

SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key

CA BrightStor 11.5 under linux (Arcserve R11.5)

I have tonight install CA Brightstor 11.5, on my Linux servers. I am running Debian so it’s pretty easy; we just need these two files:

/cdrom/cmagent/babcmagt.deb
/cdrom/babagent/babagtux.deb

So it’s just: dpkg –i /cdrom/cmagent/babcmagt.deb
dpkg –i /cdrom/cmagent/babagtux.deb

Then we need to setup the 2 files:
/opt/CA/BABuagent/uagentsetup
/opt/CA/BABcmagt/caagentsetup

Then wee need the agent to start automatic
cd /etc/init.d/
ln –s /opt/CA/BABcmagt/caagent .

Then wee to change something in BABcmagt config fil:
/opt/CA/BABcmagt/agent.cfg
ENV LD_ASSUME_KERNEL=2.4.18
This should be: #ENV LD_ASSUME_KERNEL=2.4.18
update-rc.d caagent defaults
caagent disable all
caagent enable all

If you forget to change this line you get some error about:
12/15 02:47:39(8282) – (_AGBRSpawnSubBrowser), major=11, minor=5 12/15 02:47:39(8283) – (chuid) (root), uid=0, gid=0
12/15 02:47:39(8282) – (_AGBRSpawnSubBrowser): child pid=8283
12/15 02:47:39(8282) – (stcpSend)Failed in send(4), tosnd=8, length=8, Broken pipe
12/15 02:47:39(8282) – (AGBRSendHeader) Failed to send BROWSER_HEADER
12/15 02:47:39(8282) – (_AGBRAppendSubBrowser) Failed in _AGBROpenDir(), ret=-1
12/15 02:47:39(8282) – (_AGBRSpawnSubBrowser): Failed in _AGBRAppendSubBrowser(), ret=-1
12/15 02:47:39(8282) – (uniBrowser) no sub-browser is available

If you are using Ubuntu, please do this also:

If you want to install on Ubuntu (which uses dash as /bin/sh), you need to go through some additional steps.

Go to this page:
http://ubuntuforums.org/showthread.php?t=474790

Download and install getlibs

Right after you dpkg -i the 2 .deb’s, you need to change /bin/sh to /bin/bash in all files in /opt/CA. Then you can proceed as directed above, and all is good.

Thanks to Craig Andrews and Clark Burns, for this Ubuntu trick.

Linux RAID og nye diske

Nå man vil komme en ny disk i sit raid og ens bootloader er grub, skal man huske efter man har tilføjet disken til raidet, at tilføje den nye disk til grup. (Installere grub på den), ellers kan man ikke boote sit system, hvis man står med en defekt disk lige pludseligt, dette gøres ved at man skriver:

Husk evt. at redigere /bot/grup/device.map, så den passer til dit nye setup.

#grub –device-map=/boot/grub/device.map

>> root (hd0,0)
>> setup (hd0)
>> root (hd1,0)
>> setup (hd1)
>> quit

#update-grub