Showing posts from 2011

Mount Blue Ray in linux

mount -o loop -t udf pathtobluray.iso /media/cdrom

SLES LDAP Failure - repair corrupted ldap directory

Previously I had one post about repairing the openldap database in CentOS -Repair Openldap database.

Now this command will be suitable for SLES

/etc/init.d/ldap stop
db_recover -h /var/lib/ldap

Restart the server should be fine.


Radius and WIndows Mount Folder

In Linux , if we need to troubleshoot Radius connect , we will need radtest. We can get this tool but install freeradius2-util package.

The usage of radtest :

radtestldapuser ldapuser-passwordlocalhost2testing123

ldapuser : Radius User name

ldapuser-password : Radius User Password

localhost : IP or host name of the radius server , you can specific the port number by adding :portnumber behind.

2 : Port number use to connect the radius server. Any integer would do.

testing123 : Radius client share password


In Windows , if you would like to mount a folder or path as driver letter, you can use the command : subst

subst e:c:\imagefdr

e: : Driver letter

c:\imagefdr : Path

Use command subst e: /D to remove the mount drive letter e.


DocumentRoot does not exist

If you’re using Red Hat Enterprise Linux (RHEL) or one of it’s variants (CentOS, etc.), you may have noticed that using a non-standard document root for your Apache-based web site results in a DocumentRoot does not exist warning if the directory exists. The most likely cause of this problem is SELinux.

The fix for the problem is to change the security context of your new DocumentRoot to match that of the system’s original document root. Here’s how:

$ ls -la --context /var/www/html
drwxr-xr-x root root system_u:object_r:httpd_sys_content_t .
$ chcon -R system_u:object_r:httpd_sys_content_t /new/docroot

Obviously, /new/docroot in the example above should be the path to your document root.



Best place to get free icon for Linux , Mac and windows.

I found a best place to get free icon for Linux , Mac and windows.


Visual Basic 2010 Express with MySQL Example

If you are like me looking everywhere for Visual Basic 2010 Express with MySQL Example, here is some URL which you refer to :


Shift Cell after enter data

This is the Excel VBA macro for me to shift from column one to column two after enter data, then from column two will switch to next row column one.

Basically column one is item code , we use bar code scanner , then column two will be number of quantity. After enter quantity , then the box will switch to next row and ready to read the next item.


Private Sub Worksheet_Change(ByVal Target As Range)

If ActiveCell.Column = 1 Then
ActiveCell.Offset(0, 1).Select
ElseIf ActiveCell.Column = 2 Then
ActiveCell.Offset(1, -1).Select
End If

End Sub



Run Linux Flash Player Projector in Fedora 14

If you plan to launch the Linux Flash Player Projector (Flash standalone player which allow you to view flash without launching the browser) from the Linux , this might be able to help you.

You're going to need a few additional packages:
sudo yum install libcurl.i686
sudo yum install libcurl-dev
sudo yum install libcurl
sudo yum install curl
sudo yum install
sudo yum install
sudo yum install
sudo yum install
sudo yum install
sudo yum install
sudo yum install
sudo yum install
sudo yum install

Original article: