Switch 3COM 2952SFP Plus to HP 1910 Branded Software

Telent or remote console cable to your switch.
login as: admin
password: Your Admin Password
<SW01>_cmdline-mode on
All commands can be displayed and executed. Continue? [Y/N] Y
Please input password: 512900
Warning: Now you enter an all-command mode for developer's testing, some commands may affect operation by wrong use, please carefully use it with our engineer's direction.
System View: return to User View with Ctrl+Z.
Now you enter a hidden command view for developer's testing, some commands may affect operation by wrong use, please carefully use it with our engineer's direction.
[SW01-hidecmd]brand 1910

Lotus Domino C API Visual Studio Express 2012 C++ 64 bit how to.

You will need the IBM Lotus C API Toolkit for Notes and Domino 8.5.x. Download and install the latest Intel C++ Compiler for Windows “Redistributable library package for Intel 64”. This prevents any “LNK1004 libirc.lib error” errors. See http://software.intel.com/en-us/articles/redistributable-libraries-of-the-intel-c-and-fortran-compiler-for-windows Now to get started. Open Visual Studio Express 2012 Select File -> New Project Expand Templates -> Visual C++ -> Win32 and Win32 Console Application , Name: Your application name, Location: Where you would like to store the project, and Click OK Click Next, Application Type -> Console Application, Additional options -> Empty project, and then click Finish. Go to Build -> Configuration Manager and select under Platform. Select x64 for the new platform and Win32 to copy settings from and then click OK. Change Active solution configuration to Release. Click Close. Go to Project -> Properties Select Configuration Properties, then ensure Configuration -> All Configurations. Configuration Properties -> General -> Character Set and change to Not Set and the click Apply Configuration Properties -> C/C++ -> General -> Additional Include Directories and change to "PATH TO UNPACKED NOTESCPP API"\include folder. Configuration Properties -> C/C++ -> General -> Debug Information Format and change to Program Database (/Zi) and then click Apply. Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions and to: WIN32; W32;W64; NDEBUG; _CONSOLE; _AMD64; ND64 and then click Apply. Configuration Properties -> C/C++ -> Code Generation -> Runtime Library and change to Mutli-threaded (/MT) Configuration Properties -> C/C++ -> Code Generation -> Struct Member Alignment and change to 1 Byte (/Zp1) and then click Apply. Configuration Properties -> Linker -> General -> Additional Library Directories and add C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\Lib\Intel64 Configuration Properties -> Linker -> Input -> Additional Dependencies add the following "PATH TO UNPACKED NOTESCPP API"\lib\mswin64\notes.lib "PATH TO UNPACKED NOTESCPP API"\lib\mswin64\notes0.obj "PATH TO UNPACKED NOTESCPP API"\lib\mswin64\notesai0.obj version.lib Click OK Click Apply then Click OK

Resolving ARP issues for Windows 2008 (LVS DR mode)

Install the MS Loopback adapter on windows 2008 Start -> Settings -> Control Panel -> Add Hardware Next -> Install the hardware I manually select from a list (Advanced) -> Network Adapters -> Microsoft on the left, Microsoft Loopback Adapter on the right -> Next -> Next -> Finish In Windows 2008 however we have a whole new way of controlling networking, and I must admit it looks like Microsoft finally have a sensible way of controlling network interfaces. Weak and Strong Host Behaviour in Windows “Windows XP and Windows Server® 2003 use the weak host model for sends and receives for all IPv4 interfaces and the strong host model for sends and receives for all IPv6 interfaces. You cannot configure this behaviour. The Next Generation TCP/IP stack in Windows Vista and Windows Server 2008 supports strong host sends and receives for both IPv4 and IPv6 by default.” You still need to configure the loopback adapter with the VIP (but you don’t need to set the metric) You still need to disable the firewall (or enable traffic to and from the loopback) Then you need to use the following command line magic : netsh interface ipv4 set interface "net" weakhostreceive=enabled netsh interface ipv4 set interface "loopback" weakhostreceive=enabled netsh interface ipv4 set interface "loopback" weakhostsend=enabled

Live boot Debian to setup LSI RAID Card via MegaRAID Storage Manager

First off grab the debian live boot CD. I used debian-live-7.0.0-i386-standard.iso for this example. Pop the CD in the drive, mount via IPMI KVM usb or however you would like to boot the cd/iso. Once booted into the live environment NON GUI if you have DHCP setup your live environment should have an IP assigned to it. I do my configuration via IPMI, so it's a PITA using the remote console so I ssh in to do the configuration from the comforts of my desktop. Add a password for root.
sudo su
passwd root
Login via ssh as root. Download the LSI MegaRAID Storage Manager bundle I'm using You will need some additional tools to get the LSI MegaRAID storage manger installed.
apt-get install alien
cd ~
wget http://SOMEWHERE/
tar zxvf
cd disk
alien --scripts *.rpm
dpkg --install lib-utils2_1.00-3_all.deb
dpkg --install megaraid-storage-manager_13.01.04-1_all.deb
At this point you will get a bunch of errors but the MSM has started enough for you to use a remote MSM to setup your disks and the like. Then reboot your server and install whatever OS you intended to install.

Symantec Backup Exec Agent on Ubuntu 10.04.4 64Bit

To install the Backup Exec Linux agent you will need the installation tar.gz
cd ~
wget http://SOMEPLACE/RALUS_RMALS_RAMS-2896.9.tar.gz
RALUS_RMALS_RAMS-2896 requires libstdc++5, alas Ubuntu in there wisdom ships with libstdc++6 now.
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-25ubuntu1_amd64.deb
dpkg-deb -x libstdc++5_3.3.6-25ubuntu1_amd64.deb ia64-libs
cp ia64-libs/usr/lib/x86_64-linux-gnu/libstdc++.so.5.0.7 /usr/lib64/
cd /usr/lib64/
ln -s libstdc++.so.5.0.7 libstdc++.so.5
-> Installation of the agent.
cd ~
tar zxvf RALUS_RMALS_RAMS-2896.9.tar.gz RALUS/
-> Accept all the default details, make sure you put the IP address of your media server when requested. Cheers Ad

Ubuntu + Apache2 + vsftpd + virtual hosts

After a fresh install of Ubuntu complete the following.

sudo su
passwd root

-> login as root

dpkg-reconfigure tzdata
dpkg -P apparmor apparmor-utils
apt-get update
apt-get upgrade

-> login as root

apt-get dist-upgrade

-> login as root

apt-get autoremove
apt-get install ssh openssh-server openntpd

-> ssh as root

apt-get install apache2
apt-get install php5 php-pear php5-mysql php5-gd

-> Setup of MTA send ONLY

apt-get install exim4-daemon-light mailutils
dpkg-reconfigure exim4-config

-> Select "internet site;" -> Ok -> Enter/Accept default entry as the FQDN -> Enter "" to listen on -> Enter/Accept default in recipient domains -> Leave relay domains and relay machines blank -> Select No to keep DNS queries to a minimum -> Select "Maildir" for locally delivered email -> Select No to split file configuration -> Setup vsftpd

apt-get install vsftpd libpam-pwdfile

Edit vsftpd.conf

mv /etc/vsftpd.conf /etc/vsftpd.conf.bak
vi /etc/vsftpd.conf

Add the following


Register the virtual users

mkdir /etc/vsftpd
htpasswd -cd /etc/vsftpd/ftpd.passwd user1
htpasswd -d /etc/vsftpd/ftpd.passwd user2
mv /etc/pam.d/vsftpd /etc/pam.d/vsftpd.bak
vi /etc/pam.d/vsftpd

Add the following

auth required pam_pwdfile.so pwdfile /etc/vsftpd/ftpd.passwd
account required pam_permit.so

Create the local vsftpd user without shell access

 useradd --home /home/vsftpd --gid nogroup -m --shell /bin/false vsftpd

Restart vsftpd

service vsftpd restart

Now we create the users directories

mkdir /var/www/user1
chmod -w /var/www/user1
mkdir /var/www/user1/www
chmod -R 755 /var/www/user1/www
chown -R www-data: /var/www/user1

The main one to not forget is the removal of write access to the users root directory /var/www/user1