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

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

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# (^_^)

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

| September 4th, 2008

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

| July 21st, 2008

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! =)

htpasswd -m svn-auth-file user

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.

that is for you to know and for me to find out, lol
macbook pro and macbook

macbook pro and macbook

another shot of macbook pro and macbook

macbook pro keys

Why i purchased a mac

| June 17th, 2008

I have been evaluating hackintosh for a month now and the experience is unparalleled. OSX has been a fusion of an OS that I always wanted. Applications are very easy to install because they are self contained, the UI makes me feel good about creativity, accessibly is just phenomenal and the console is just the linux experience I always liked when running a Gentoo machine. This is considering that I have an erratic install that does not have a proper Sleep and Speedstep.

I have been looking for months on the Apple Store refurb section for great deals. Since last week, it has been a serious spotting and I have learned that they do put current generation machines there. Realizing that Penryn and 45nm are great technologies to start with so I decided to get my first Mac. I am now waiting for a 15″ 2.4Ghz macbook pro with its multitouch and efficient battery life.

Since my wife is doing some serious photography now with her 450d, I also have to get her a current gen Macbook , clocked at 2.4Ghz and with a superdrive. This will reduce some tension if you know what I’m talking because she is just as tech savvy as I am.

I think I was slightly affected by the demo of Google Appengine because they are using macbook pros in one of their campfire and I was enticed to get a Textmate as well. I would like to understand this technology though I have very limited experience with python. It will be nice if they can add in language support for ruby and php.

Addtionally, I have been watching JK Rowling on her Harvard commencement address and when the video is about to be finish, I was slapped with the dreadful blue screen of death. I guess my T30 is due for retirement and Windows XP is just shooting itself on the foot.

So there you go, I bought a macbook pro and a macbook for the first time because of my hackintosh experience, google appengine and to run away from the dreadful BOD! If that makes any sense at all.