Category Archives: Computer

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

Self-Signed IIS SSL Certificates using OpenSSL

Læs mere her omkring: Self-Signed IIS SSL Certificates using OpenSSL
Self-Signed IIS SSL Certificates using OpenSSL

Self-Signed IIS SSL Certificates using OpenSSL

This tutorial assumes that you have a Linux box with OpenSSL installed,and that you want to create a self-signed certificate for IIS5.0

1. Set up your CA (you only have to do this once)
ON THE LINUX BOX…
* Create a private key

openssl genrsa -des3 -out CA.key 1024

(You’ll need to supply a passphrase. DON’T FORGET THIS!!)

* Set this to read-only for root for security

chmod 400 CA.key

* Create the CA certificate

openssl req -new -key CA.key -x509 -days 1095 -out CA.crt

(Provide appropriate responses to the prompts…for Common Name, you might want to use something like “OurCompany CA”)

* Set the certificate to read-only for root for security

chmod 400 CA.crt

2. Obtain a CSR
ON THE IIS BOX…
* Open the Internet Manager
* Select the site for which you want to create a key
* Right-click and choose Properties
* Select the “Directory Security” tab
* Click the “Server Certificate” button
* Follow the prompts to create a CSR
* Save your CSR, then transfer it to the Linux box for further processing. (For the following steps, we’ll refer to your CSR as “new.csr”)

3. Sign the CSR
ON THE LINUX BOX…
* Sign the CSR (all of this on one line)

openssl x509 -req -days 365 -in new.csr -CA CA.crt
-CAkey CA.key -CAcreateserial -out new.crt

* Transfer the new.crt file back to the IIS box

4. Install self-signed certificate
ON THE IIS BOX…
* Open the Internet Manager
* Select the site to install the key
* Right-click and choose properties
* Select the “Directory Security” tab
* Click the “Server Certificate” button
* Specify that you want to complete the pending request
* Select the .crt file that you just transferred

That’s it!

Installation of tinydns and axfrdns. djbdns

This is a small howto in installation of djbdns, with tinydns and axfrdns services.
First install daemontools

mkdir -p /package
chmod 1755 /package
cd /package
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
gunzip daemontools-0.76.tar.gz
tar -xf daemontools-0.76.tar
cd admin/daemontools-0.76
wget http://djbware.csi.hu/patches/daemontools-0.76.errno.patch
patch < daemontools-0.76.errno.patch
#Ask: /package/admin/daemontools-0.76/src/error.h
#to the question about witch file you want to patch
#
package/install

Now install ucspi-tcp

cd /usr/local/src
wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
gunzip ucspi-tcp-0.88.tar.gz
tar -xf ucspi-tcp-0.88.tar
cd ucspi-tcp-0.88
wget http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch
patch < ucspi-tcp-0.88.errno.patch
make setup check

Then install djbdns

cd /usr/local/src
wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz
gunzip djbdns-1.05.tar.gz
tar -xf djbdns-1.05.tar
cd djbdns-1.05
wget http://djbware.csi.hu/patches/djbdns-1.05.errno.patch
patch -p1 < djbdns-1.05.errno.patch
make setup check

Global:

useradd dnslog

TinyDNS (DNS Server)

useradd tinydns
tinydns-conf tinydns dnslog /etc/tinydns 1.2.3.5
ln -s /etc/tinydns /service

DNS Cache (DNS Resolv)

useradd dnscache
dnscache-conf dnscache dnslog /etc/dnscache 1.2.3.5
ln -s /etc/dnscache /service

AXFR Server

useradd axfrdns
axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns 1.2.3.4
ln -s /etc/axfrdns /service

Windows XP Service Pack 2 problem

Jeg har haft et problem idag, hvor jeg ikke kunne installere Service pack 2, til windows den gik fast ved “Checking Product Key”. Jeg fulgte denne guide, og det virkede herefter. Super.

1) Open a CMD prompt
2) Then type cd /d %windir%\inf
3) Then type ren oem*.inf oem*.old
4) Then type ren oem*.pnf oem*.old1
5) Then find the file by name INFCACHE.1 and remove it from the inf directory
6) Close all windows and reboot the computer to safe mode and
start the installation of SP2 and it should go fine

Hjemmeside Referencer

Sundsvenstre.dk
Her har jeg lavet designet og programmeringen bag hjemmesiden.
Sundsvenstre.dk
dalbjerg.dk
Her har jeg lavet div. ændringer i forbindelsen med skift af firma navn, til Byggefirmaet Dalbjerg ApS.
Dalbjerg.dk
Posthuset.nu
Her er jeg drivkraften bag, og har tilpasset designet, samt lavet programmeringen bag selve hjemmesiden.
Posthuset.nu
Senddet.dk
Her er jeg drivkraften bag, og har tilpasset designet, samt lavet programmeringen bag selve hjemmesiden.
Senddet.dk