Posts

Showing posts from 2009

collabtive 0.6.1 bug fix

Found one bug in collabtive 0.6.1 , you will received the following error whenever you try to update the task. Fatal error: Call to a member function callSignalFuncs() on a non-object in /opt/lampp/htdocs/pm/include/class.task.php on line 118 To fix this error , change line 25 & 26 in the file \include\class.task.php from $this->mylog = new mylog; $plugin = new plugin(); to $this->mylog = new mylog(); $this->plugins = new plugin(); . Hope this will help. I found the fix from this page : http://www.penglixun.com/life/diary/frist_contribution_for_open_source.html ---

安裝Fedora12值得參考的文獻。

這是一篇值得參考的文獻,特此記載下來,方便日後有用到的時候,可以參考。 http://nosay.haee.org/2009/11/fedora-12.html ---

a script that will check the md5sum of all the files and directory in the source directory

If you need a script that will check the md5sum of all the files and directory in the source directory, this is the command: find . -type f -exec md5sum {} \; ---

Huawei 3G modem E1762 and Linux

If you are having difficulty using Linux with Huawei 3G modem , this might give you an idea on how to resolve your problem. The problem is Linux always recognize Huawei 3G modem as storage instead of modem, so need to use usb_modeswitch to switch it become a modem. Here is the command: 1. yum install usb_modeswitch 2. modify /etc/usb_modeswitch.conf Here is my example : #Huawei E1762 DefaultVendor= 0x12d1 DefaultProduct= 0x1446 ;DefaultProduct= 0x1003 TargetVendor= 0x12d1 ;TargetProduct=0x1003 TargetProduct= 0x1446 # choose one of these: ;DetachStorageOnly=1 ;HuaweiMode=1 MessageEndpoint=0x01 MessageContent="5553424300000000000000000000001106 0000000000000000000000000000" 3. Modify /etc/udev/rules.d/15-huawei-e1762.rules SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/lib /udev/usb_modeswitch" 4. Restart the system and use Network Manager to configure the connection. Hope this will help you. ---

bash Script to remove string from filename

This bash script is to remove or replace a string from the filename. #!/bin/bash for THISFILE in * do filename=${THISFILE%\.*} extension=${THISFILE##*\.} newname=${filename//./_} echo "mv $THISFILE ${newname}.${extension}" #mv $THISFILE ${newname}.${extension} done ---

Fedora 10 64 bit Xmms and APE plugin

If you have a Fedora 10 64bits system and want to play APE media file with XMMS , you will need this file. ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/files/x86_64/RPMS/xmms-in-mac-0.3.1-alt3.x86_64.rpm Download and install , then you will be able to play APE with your XMMS in your Fedora 10 64bits system. ---

Create icon on the desktop that prevent user from deleting it

Basically to create an icon that prevent user from deleting it, we call this icon as shell object. If you don't what keyword to search in google, I would suggest using "create shell object". Anyway I found these two article which might help, if you are looking for article that help you create icon that cant be deleted by user or we call it shell object. Add Custom Folder to My Computer or the Desktop (All Windows) Popular http://www.pctools.com/guides/registry/detail/73/ Shellfolders & -objects Create and add your own folders/objects at places you're not supposed to, and make them behave like shell objects. http://www.virtualplastic.net/html/ui_shell.html ---

Free Desktop Management Software

I found this Free Desktop Management Software , it might be something that you are looking. http://www.spiceworks.com/ Manage Everything IT... for Free! Spiceworks is the complete network management & monitoring, helpdesk, PC inventory & software reporting solution to manage Everything IT in small and medium businesses. Powered by 750,000 IT Pros Like You The Spiceworks IT Community is available to answer questions while you work directly in the application. It’s 100% Free. Download Now! Spiceworks is completely free…and you can get started in less than 5 minutes. Download now . ---

Boot Acronis from PXE

Image
I found these two articles about booting into acronis environment using PXE. Source : http://thesystemadministrator.com/the_system_administrator/tips_%26_tricks/pxe%2c_aka_pre-execution_environment_-_part_1/ http://thesystemadministrator.com/the_system_administrator/tips_&_tricks/pxe,_aka_pre-execution_environment_and_acronis_-_part_2/ Few days ago, I’ve received 50 new servers without any OS preinstalled. The servers came without floppy drive and CD/DVD. I tried to connect an external CD (USB) or Disk on Key, but servers didn’t start. So, I decided to run PXE Boot . If you don't know what PXE is, here’s what is written in Wikipedia: “The Preboot Execution Environment (PXE, aka Pre-Execution Environment, or 'pixie') is an environment to boot computers using a network interface card independently of available data storage devices (like hard disks) or installed operating systems.” There are several solutions of PXE implementation. Microsoft has its Remote Installation Ser...

Mastering the VI editor

For those who still need to use vi instead of vim, this might be a good guide. Introduction The VI editor is a screen-based editor used by many Unix users. The VI editor has powerful features to aid programmers, but many beginning users avoid using VI because the different features overwhelm them. This tutorial is written to help beginning users get accustomed to using the VI editor, but also contains sections relevant to regular users of VI as well. Examples are provided, and the best way to learn is to try these examples, and think of your own examples as well... There's no better way than to experience things yourself. EX Commands Conventions In this tutorial, the following convention will be used: ^X denotes a control character. For example, if you see: ^d in the tutorial, that means you hold down the control key and then type the corresponding letter. For this example, you would hold down the control key and then type d . Before You Begin The VI editor uses the fu...

Configure SSH automation login

If you need a guide on how to configure SSH automation login, here is the steps. SSH Automatic Login Of course this is not the right phrase for it. It should be something like “key-based authorization with SSH”. Or simply “publickey authorization”. Or “unattended ssh login”. But I guess you know what I mean. Here are the steps: 1. Create a public ssh key, if you haven’t one already. Look at ~/.ssh. If you see a file named id_dsa.pub then you obviously already have a public key. If not, simply create one. ssh-keygen -t dsa should do the trick. Please note that there are other types of keys, e.g. RSA instead of DSA. I simply recomend DSA, but keep that in mind if you run into errors. 2. Make sure your .ssh dir is 700: chmod 700 ~/.ssh 3. Get your public ssh key on the server you want to login automatically. A simple scp ~/.ssh/id_dsa.pub remoteuser@remoteserver.com: is ok. 4. Append the contents of your public key to the ~/.ssh/authorized_keys and remove it. ...

Howto: Install Skype (dynamic) on Fedora 10 64-bit

Found the solution at here : http://forums.fedoraforum.org/showthread.php?p=1185767 Howto: Install Skype (dynamic) on Fedora 10 64-bit I downloaded and installed Skype on Fedora 10, 64-bit, and it came up just fine. I recommend the dynamic version, since it makes use of the existing system libraries that are managed by Fedora. This will minimize any potential library conflicts. All that is needed is to make sure you have all the 32-bit versions of the libraries Skype requires. Using the "ldd" command, I analyzed the library requirements of the "skype" program. So that you don't also have to do this, I crunched the results into a giant yum command. Become root (enter root's password when prompted): Code: su Now that you are root, cut and paste this, all on one line: Code: yum install alsa-lib.i386 dbus-libs.i386 e2fsprogs-libs.i386 expat.i386 fontconfig.i386 freetype.i386 glib2.i386 glibc.i686 keyutils-libs.i386 krb5-libs.i386 libcap.i386 libgcc.i386 libICE.i...

Bash and VIM issue with SFU

After BASH is running , I am facing issue with the key at BASH and VIM and facing delay when trying to launch VIM. I found this http://www.suacommunity.com/forum/tm.aspx?m=7935. 1. Fix delete, home and end in bash $HOME/.inputrc: # Delete "\e[3~" : delete - char # Home "\e[1~" : beginning - of - line # End "\e[4~" : end - of - line 2. Fix home and end in vim To get "^[[1~" you need to press , to get "^[[4~" you need to press . $HOME/.exrc: map ^[[ 1 ~ 0 map ! ^[[ 1 ~ ^[ 0i map ^[[ 4 ~ $ map ! ^[[ 4 ~ ^[ $a 3. Fix backspace and delete in vim To get "^?" you need to press . The "I" at the end of shortmess disables the startup blurb. $HOME/.vimrc: : set t_kb =^? : fixdel : set shortmess = filnxtToOI 4. Alias vi and vim The -X stops vim wasting 10 seconds trying to connect to a non-existant X server. Appended to /etc/profile.lcl alias vim = "vim -X" alias vi = "vim -...

Bash Crash in Windows Services for UNIX enviroment

After install Windows Services for UNIX and install BASH by using the package from http://www.suacommunity.com/Default.htm, whenever I launch BASH directly or launch it after entering C shell , I will received an error saying that segmentation fault (core dumped). At first , I install KB942312 hotfix as suggested from this page http://www.interix.com/tools/printable.aspx?m=14618 . The error still occur. According to the page , this KB942312 hotfix will allow BASH to run even with DEP active. So I would say this hotfix is a must in order to resolve this issue. Then I keep browsing until I come to this page : http://www.suacommunity.com/forum/tm.aspx?m=16510&mpage=1#16540 . They suggest to install KB929141 hotfix. After I did that, the BASH is running. If you keep reading further, one of them say instead of installing KB929141, we should install KB953191 because KB953191 is the newer version of KB929141. But since my BASH is running now, I would rather keep it until I face another pr...

Retrieve Windows Hotfix without need to contact Support.

When you come across this: If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix. You can request windows hotfix without need to contact windows support. Copy the URL below, paste it into your browser URL , then replace XXXXXX with the kb number and hit enter to visit the page. Fill in you email and the requested hotfix will be sending to the mailbox no more than 5 mins if the connection is good. http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum= XXXXXX . For example: This http://support.microsoft.com/kb/929141 will need us to contact Microsoft Customer service and Support in order to obtain the hotfix. All I need to do is visit the following URL , fill in my email address and submit. After 5 mins , I will be able to receive a link to download the file and a password to extract the ...

To Check your own web browser user agent header.

You can visit this web site if you would like to know your current web browser user agent header. http://macfaq.org/hacks/useragent.html For example, my current web browser user agent header is : Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061118 Fedora/3.0.11-1.fc10 Firefox/3.0.11 If you like to find out more user agent , you can visit this : http://www.user-agents.org/index.shtml. ---

Install Fedora 11 with vmware workstation, boot issue

When you are installing Fedora 11 using Vmware workstation, you might facing an issue, that the system keep trying all SCSI device before boot into the system. Add a line scsi0.virtualDev = "lsilogic" to the vmx file. Use it carefully, because when you start up the vmware image, it will erase all the data on the virtual disk. If you would like to change back to BUS logic, change to scsi0.virtualDev = "buslogic". ---

Using the cat Command To Hide Files Inside Other Files

Image
I found this from : http://filthypants.blogspot.com/2008/01/using-cat-command-to-hide-files-inside.html Using the cat Command To Hide Files Inside Other Files cat is a standard command from Unix operating systems, such as BSD and Mac OS X, and Unix-like operating systems, such as Linux, that can be used to concatenate and display files. In this tutorial, I'm going to teach you how to hide any file inside any other file using cat , such that no one will every know the hidden file is there. This obviously has a number of uses, including providing another layer of protection for sensitive information such as bank numbers, personal information, etc. WARNING : this is an advanced trick that requires the use of the command line. If you are scared of using the command line, don't bother continuing. Ok, now that that's out of the way, pick a file you want to hide and another file you want to hide it in and place both files on your desktop. In my case, I'm going to hide an...

ASR Backup with USB Hard Drives

I found an article about ntbackup ASR. * Well what do you do when you need to resize partitions or change perhaps from a volume to RAID status or rebuild a RAID array? How do you get that SBS box up and running again? Many use some great disk cloning or imaging solutions out there. I've heard great things about Aconis True Image Server or Paragon Drive Backup . In the past I've used products like this with great success. However now Windows Server 2003 and thus SBS 2003 come with some great backup items out of the box to get you going again. And perhaps you don't want to pay the $899 and $399 respectively for the products above. How about using the ASR backup with ntbackup included with SBS? Microsoft has an SBS backup/restore whitepaper out there but it doesn't mention ASR. It's more from the standpoint of what if the server croaked. Well in this situation we're preparing for a change. The reason that the ASR backup is nice and I like it is that you don't...

How to Create Checksums for ALL Files and Sub-folders etc?

find -type f -exec md5sum "{}" \; > checksum.txt Where checksum.txt is your file. You can do some sedding/perling/awking/even bashing to get it into FreeMD5Checker format. I found this solution from here: http://ubuntuforums.org/showthread.php?t=557112 ---

How to extract Icons from Windows executeables in Linux

From this page : http://jamesmcdonald.id.au/gnu-linux/how-to-extract-icons-from-windows-executeables-in-linux, I found a way to extract icon from the windows executable. Install the icoutils package and using wrestool command. wrestool -l eXeSMS.exe You will see heaps of output but look for the line that identifies the icon e.g. --type = 14 --name = 'MAINICON' --language = 3081 [ type =group_icon offset =0x15d6d8 size = 20 ] Once you have identified your icon you need extract it to a file wrestool -x -n MAINICON eXeSMS.exe > myicon.ico ---

Some link that help if you are dealing with Exchange 2003 and Backexec 11d.

How to use Recovery Storage Groups in Exchange Server 2003 Exchange 2003 mailbox data backup - Backup Exec 11d How to Backup individual Exchange mailboxes and Public Folders in Backup Exec 11d for Windows Servers ---

Exchange 2003 and Backup Exec 11d

Two Links you can't if you having problem restoring exchange database using Recovery Storage Groups and Backup Exec 11d. http://briandesmond.com/blog/backup-exec-exchange-2003-bug-workaround/ http://support.microsoft.com/kb/824126 Inside these two links, these are the two registry key that you should look into: If you do not want to restore data to the Recovery Storage Group and you do not want to delete the Recovery Storage Group, create the Recovery SG Override value in the following registry key, and then set the value to 1: HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \MSExchangeIS \ParametersSystem To create and configure the Recovery SG Override registry value: 1. Click Start, and then click Run. 2. In the Open box, type regedit, and then click OK. 3. Locate and then click the following registry key: HKEY_LOCAL_MACHINE \System \CurrentControlSet \Services \MSExchangeIS \ParametersSystem 4. On the Edit menu, point to New, and then click DWORD Value. ...