Project: Active Directory with roaming profiles and secondary backup

Active Directory on Windows 2003 R2 – Primary
1. A fully working AD is complemented by DHCP and DNS.

2. When sharing DOS based application with database, turn off offline caching to prevent unwanted lockups and corruption of files.

3. Roaming profile files should be stored in another server and offline chaching must be turned off as well. Everything is copied in a roaming profile except of Internet Cache and temporary data.

4. An email server within the domain must be entered in the DNS with its IANA IP.

Windows 2003 SP2 – Secondary AD
1. Must be the backup station with DDS3 tape and External raid storage.

2. Logon script must be updated to reflect the drive mapping relevant to change in 1

Resources

Working with Roaming User Profiles

Profile and Folder Redirection In Windows Server 2003

Step by Step Guide to Settiing Up Addtional Domain Controller

Alfresco on Centos 5.2

Hardware:
SMP ASUS CUV4X-DLS motherboard (VIA Apollo Pro 133A)
1GZ dual Pentium 3
1GB DDR Ram
6 x 35GB Scsi
2 x 8GB Scsi

Install Centos 5.2
– LVM Storage
– Installed using net install and ISO on external USB
– Server and Server GUI on package selection

Installing Alfresco
Objective: To setup a a basic Alfresco for Files to be available over WCM and Samba. Authentication is just simple but will be ported to OpenLDAP. Afterward, Image repository will be implemented.

yum - y update
 
yum install tomcat5 tomcat5-common-lib tomcat5-jasper \
tomcat5-jsp-2.0-api tomcat5-server-lib tomcat5-servlet-2.4-api openoffice.org-base \
openoffice.org-calc openoffice.org-core openoffice.org-draw openoffice.org-graphicfilter \
openoffice.org-impress openoffice.org-math openoffice.org-writer openoffice.org-xsltfilter \
mysql-server mysql xml-commons-apis wget
 
wget \
http://superb-west.dl.sourceforge.net/sourceforge/alfresco/alfresco-community-war-2.1.0.tar.gz \
http://superb-west.dl.sourceforge.net/sourceforge/alfresco/alfresco-community-sample-extensions-2.1.0.tar.gz \
http://easynews.dl.sourceforge.net/sourceforge/alfresco/alfresco-community-wcm-2.1.0.tar.gz \
http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/RPMS/java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm \
http://download.softagency.net/MySQL/Downloads/Connector-J/mysql-connector-java-5.1.5.tar.gz
 
./jdk-6u6-linux-i586-rpm.bin
 
rpm –Uvh java-1.6.0-sun-compat-1.6.0.06-1jpp.i586.rpm
 
alternatives --config java
/* put +* on 1.6 */
 
rpm -qa | grep java
sun-javadb-core-10.4.1-3.1
gcc-java-4.1.2-42.el5
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
sun-javadb-demo-10.4.1-3.1
java-1.6.0-sun-compat-1.6.0.06-1jpp
sun-javadb-common-10.4.1-3.1
sun-javadb-docs-10.4.1-3.1
sun-javadb-javadoc-10.4.1-3.1
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
sun-javadb-client-10.4.1-3.1
 
vi /etc/sysconfig/tomcat5
JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx512m"
 
tar -xzf alfresco-community-war-2.1.0.tar.gz
 
chkconfig mysqld on
 
service mysqld start
 
mysql -u root -p < ./extras/databases/mysql/db_setup.sql
/* check for the db alfresco if it exist */
 
mkdir -p /var/lib/alfresco/alf_data/
 
chown -R tomcat:tomcat /var/lib/alfresco
 
cp mysql-connector-java-5.1.5-bin.jar /usr/share/java/
 
cd /var/lib/tomcat5/common/endorsed/
 
rebuild-jar-repository /var/lib/tomcat5/common/endorsed mysql-connector-java-5.1.5-bin.jar
 
cd /opt/alfresco/
 
cp alfresco.war /var/lib/tomcat5/webapps
 
service tomcat5 start
 
service tomcat5 stop

Reference:
http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_WAR_on_Centos_5

Alfresco on Gentoo in a 10 year old Pentium 3

This guide is based on the lost Gentoo Wiki  that was obtained from Google Cache. The machine is a Pentium 3 with 256Mb of ram.

The Motherboard

emerge -p java-config
 
emerge -p virtual/jdk
 
java-config --list-available-vms
*)      Sun JDK 1.6.0.10 [sun-jdk-1.6]
 
nano -w /etc/java-config-2/build/jdk.conf
*=sun-jdk
 
nano -w /etc/java-config-2/build/compilers.conf
COMPILERS="ecj-3.1 jikes javac"
 
 
Tomcat 6
emerge -v tomcat
 
vi /etc/tomcat-6/tomcat-users.xml
<tomcat-users>
  <role rolename="manager"/>
  <user username="tomcat" password="s3cret" roles="manager"/>
</tomcat-users>
 
/etc/init.d/tomcat-x.y start
 
Add tomcat to startup on boot
rc-update add tomcat5 default
 
emerge dev-java/hibernate dev-java/log4j dev-java/lucene \
 dev-java/sun-jce-bin jdbc-mysql media-gfx/imagemagick
 
Unmask Hibernate /*db abstraction*/
nano -w /etc/portage/package.keywords
~dev-java/hibernate-3.1.3 ~x86
~dev-java/oscache-2.0.2 ~x86
~dev-java/asm-2.2.3 ~x86
=dev-java/cglib-2.2* ~x86
~dev-java/sun-jacc-api-20070102 ~x86
~dev-java/ehcache-1.1 ~x86
 
 
 
*  1. Visit https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/
 
-/USD/ViewProductDetail-Start?ProductRef=7542-jms-1.1-fr-doc-oth-JSpec@CDS-CDS_Developer
 *  2. Accept the License Agreement
 *  3. Download jms-1_1-fr-apidocs.zip
 *  4. Move the file to /usr/portage/distfiles
 
 
 
emerge -v jta
 *
 *  Due to license restrictions, we cannot fetch the
 *  distributables automagically.
 *
 *  1. Visit http://java.sun.com/products/jta/
 *  2. Select 'Java Transaction API Specification 1.0.1B Class Files 1.0.1B'
 *  3. Download jta-1_0_1B-classes.zip
 *  4. Move file to /usr/portage/distfiles
 *  5. Restart the emerge process
 
emerge -v dev-java/sun-jce-bin
Please download jce_policy-6.zip from:
 * https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-
 
Start?ProductRef=jce_policy-6-oth-JPR@CDS-CDS_Developer
 * (JCE Unlimited Strength Jurisdiction Policy Files 6)
 * and move it to /usr/portage/distfiles
 
Download alfresco-community-war-2.9.0B.tar.gz from here: http://sourceforge.net/project/showfiles.php?
 
group_id=143373&package_id=157460
 
tar xzvf ./alfresco-community-war-2.9.0B.tar.gz -C /opt/alfresco
 
vi /etc/mysql/my.cnf
default-storage-engine          = innodb
 
mkdir -p /var/lib/alfresco/{alf_data,tmp}
 
chown -R tomcat:tomcat /var/lib/alfresco/
 
cp /opt/alfresco/alfresco.war /var/lib/tomcat-6/webapps/
 
chown tomcat:tomcat /var/lib/tomcat-6/webapps/alfresco.war
 
rc-config restart tomcat-6
 
Check /var/log/tomcat-6/catalina.out and watch for the line "INFO: Deploying web application archive 
 
alfresco.war".
 
vi /var/lib/tomcat-6/webapps/alfresco
dir.root=/var/lib/alfresco/alf_data
 
db.schema.update=true
db.driver=com.mysql.jdbc.Driver
db.name=<your Alfresco database name>
db.url=jdbc:mysql:///${db.name}
db.username=<your Alfresco database user name>
db.password=<your Alfresco database user password>
db.pool.initial=10
db.pool.max=20
 
db.url=jdbc:mysql:///${db.name}?useUnicode=true&characterEncoding=utf-8
 
vi /var/lib/tomcat-6/webapps/alfresco/WEB-INF/classes/log4j.properties
log4j.appender.File.File=/var/log/tomcat-6/alfresco.log
 
rc-config restart tomcat-6
 
ln -svf $(awk 'BEGIN {FS="="}/^CATALINA_LIBDIR/{print $2}' /etc/conf.d/tomcat-6) $(awk 'BEGIN 
 
{FS="="}/^CLASSPATH/{print $2}' /usr/share/jdbc-mysql/package.env|sed "s/[\"]//g")
 
cd /usr/share
 
wget http://download.aquafold.com/download/jdbc-drivers/MySQL/mysql-connector-java-5.1.6.zip
 
http://www.google.com/search?hl=en&lr=&q=mysql.jar+%2Bdownload&btnG=Search
 
wget http://download.aquafold.com/download/jdbc-drivers/MySQL/mysql.jar
 
cp mysql.jar /usr/share/tomcat-6/lib/jdbc-mysql.jar
 
vi /etc/conf.d/tomcat-6
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M"
/* Changed to 200M bec system is only 256M; ;-) */
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Xms200M -Xmx200M -XX:PermSize=128M -XX:MaxPermSize=128M"
 
/etc/init.d/tomcat-6 restart
 
http://192.168.40.43:8080/alfresco/
 
/* determine physical ram */
emerge -v dmidecode
 
dmidecode > dmi.out
 
vi dmi.out

Umbraco: playing with the dark side

Since the long wait has been over, here I am full of hopes and time to spend on my sudden feeling of skills improvement — a better way to put this tech-bladging.

I have been using IIS for quite some time now to server static pages and Windows Media streaming. My attempt to go in-depth will be to try Umbraco, a .NET CMS that runs on IIS with MS Ajax and MS SQL Server Express. One thing, it is quite weird dealing with MS products that bear these enterprisey names that sound similar.

Anyway, I will try to create a module or extension or a cool theme with this product and hopefully it will open my world to the dark side of C# (^_^)

Merging partitions in OSX 10.5.5 and moving User directory into a different Volume

Since I have been editing a lot of photos in Aperture and doing hibernation at mode 5, the startup disk has been easily filled up to the limit.

I decided to delete my Windows Partition and move completely to OSX Leopard because I can still run Vmware Fusion just in case I need it. I guess my PC gaming has ended and luckily I have a console to cover that.

I am also waiting for a 4gb kit ram for an upgrade to give this machine a boost of 8gb at 64 bit. I will be testing Photoshop scratch disk to run solely from the memory.

Now back to business.

First. Moving the users directory in a new partition

root# dscl localhost
cd /Local/Default/Users
change user dsAttrTypeNative:NFSHomeDirectory /Volumes/UserData /Volumes/Data/Users

Log-off

2nd. Merging Journaled HFS+ Partition

Since my 2 partition of a 74GB raptor is making the Startup Disk insufficient, I have to merge them.

Create a Journaled HFS+ on the second partition then on the Terminal

sudo su
mergePartitions "Journaled HFS+" Macintosh disk1s1 disk1s2
 
Merging partitions into a new partition
Start partition: disk1s1 Mac
Finish partition: disk1s2 disk1s2
Attempting resize
Changing filesystem size on disk 'disk1s1'...
Attempting to change filesystem size from 32346472448 to 74348273664 bytes
/dev/disk1
#:                       TYPE NAME                    SIZE       IDENTIFIER
0:     FDisk_partition_scheme                        *69.2 Gi    disk1
1:                  Apple_HFS Mac                     69.2 Gi    disk1s1

The last saving grace. Boot using the OSX Installer. Open Terminal.

diskutil list
fdisk -e /dev/rdisk0
p
f 1
write
y
exit

Seeing it work…priceless

Chrome plating the internet

Google Chrome will change the internet landscape. The browser is fast and I noticed that the picture is being rendered with a vibrant color as well. I do not know if it has to do with the rendering engine Webkit or it is a different experience browsing in an almost default fullscreen.

The interface is very intuitive and there is no clutter. It is all about the experience in browsing and getting the information that you want.

The Opera style quickdial is also fascinating as it automatically detects the history. Even the Ctrl T is working.

My coworker told me that I am having an orgasm with Chrome because judging by my reaction, I am. I am really anticipating an OS X version as I use mac at home. And well, I hope Chromium will shake the linux world as well.

What a day to get excited by a browser. Google has already a hold in Dell by distributing the toolbar on its PCs. Hopefully, they can find a way to distribute chrome as a default web broser like Internet explorer and surely they will gain leverage.

Google is huge and they are doing great things that’s why.

The beauty of this NAS

Since I have some free cash from Acer Cashback, I went to BBC to buy a D-link 323 NAS (Network Attached Storage). I installed to it a new 740GB Samsung 32MB cache sata 3 and an old 320GB Seagate 16MB cache sata 3. By the way, Samsung is so genius that you need a software to run their disk into 16MB cache because it won’t follow its jumper.

First off, I loaded fun_plug. If you are not going to use raid or jbod, the right disk will be volume 1 and it is where you install fun_plug. And from there, you can put in a robust iTunes Server, a torrent client and many more. I might explore the UPNP media server and PS3 in the future.

You have to put cleanboot in it as well for the best way to shutdown your machine. Using the power button will render the an improper unmounting of drives and might corrupt precious data. You need to telnet or ssh and do a halt.

If you are already suffering from this:

# dmesg
 
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

Mount your drive into a Linux machine and do

e2fsck -f /dev/sde1
e2fsck -f /dev/sde4

If you don’t have linux, you can use a livecd like Ubuntu. Since the drive is already mounted, it is also practical to transfer old files this way because it will be faster than rely solely on gigabit network. From my experience, it will take about 4 hours to transfer 300GB of data on a gigabit network and just less than an hour in sata.

To save my drive from unwanted spinning and separate all these scripts from the data, I moved fun_plug into a usb. Good thing the Queensland government has given away their interactive tour in a 1Gb usb flash disk.

Not bad for a NAS because you can extend its functionality and the filesystem is not the proprietary out of this world Fat32 being used by a lot of pseudo NAS devices.

My current firmware is 1.04 and I have spent the whole Saturday until 5:00am Sunday doing this and finishing Season 3 of Beauty and the Geek with my wife.

Of course she is a beauty and I am a not a geek! =)

A lesson on Apple refurbished products

Since we bought our first Apple machines, we have gone into the trouble of experiencing Macintosh — the other sides of it.

The Macbook has been returned already because of the noise issue. It was very hard to get a replacement refurb for this one as it is selling like hotcakes from the store. So I opted for a Macbook Pro and waiting for its delivery tommorrow.

The Macbook Pro on the other hand is showing the dreadful vertical band stripes and I cannot live with Ctrl-Shift-Eject everytime I wake up this machine from sleep. The usual method to remove this is to do a PSAR but after a while the annoying vertical bands occur again. They said this is due to the hightech LED powered displays but I guess I rather have the old LCD technology that wears out its color over time than be annoyed by these banding for the life of this product.

I called Apple today and they are going to pick this MPB on Wednesday. Hopefully, I can get a replacement by this week.

I also have bitten the apple further by going Airport. But I have to replace the Apple Extreme last weekend with a newer model with gigabit ethernet. It scales well especially my external NAS connected to its USB. I was able to stream a video that is not possible before in SuperG. The current setup now is a WIFI b/g compatible from the ADSL router and a pure N to cater the NAS and the Mac machines.

Getting a refurbished mashine will save you a lot but be very careful on observing their issues and you have 14 days to do that beginning from the receipt of the item. Also, be aware of the 10% restocking fee if ever you messed up the item too hard.