Thursday, July 14, 2011

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.



---

Thursday, May 26, 2011

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 :

radtest ldapuser ldapuser-password localhost 2 testing123

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.



---

Tuesday, March 29, 2011

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.

From http://slaptijack.com/system-administration/warning-documentroot-does-not-exist/



---

Tuesday, January 4, 2011

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

*



---

Monday, January 3, 2011

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 libcanberra-gtk-module.so
sudo yum install libpk-gtk-module.so
sudo yum install libssl3.so
sudo yum install libgtk-x11-2.0.so.0
sudo yum install libfontconfig.so.1
sudo yum install libfreetype.so.6
sudo yum install libXt.so.6
sudo yum install libXext.so.6
sudo yum install libX11.so.6

Original article:

http://www.brighthub.com/hubfolio/matthew-casperson/blog/archive/2010/12/02/run-linux-flash-player-projector-in-fedora-14.aspx



---