• : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.
  • : Function ereg() is deprecated in /home/bulahema/public_html/old/includes/file.inc on line 645.

Allocating swap space

Some people will tell you that you should allocate twice as much swap space as you have physical memory, but this is a bogus rule. Here's how to do it properly:

  • Estimate your total memory needs. This is the largest amount of memory you'll probably need at a time, that is the sum of the memory requirements of all the programs you want to run at the same time. This can be done by running at the same time all the programs you are likely to ever be running at the same time.

How can I get VNC to start automatically at boot time?

(this example is taken from a Solaris environment)

Here's how to setup the usual startup/stop script approach used by other
Solaris programs to get VNC to start at boot time.

First become root. Then create a file called /etc/init.d/rc.vnc with the
following content (modified appropriately, see below):

---------------start file on next line--------------------
#!/bin/sh
#
# Startup/Stop script for vncservers for some users.
#

case "$1" in

'start')

How to setup a Linux VNC Server with KDE or Gnome

The default desktop for the VNC Server is "TWM", though most people are used to KDE or Gnome instead. Here is how to change it:

 

  1. Edit ~/.vnc/xstartup
  2. For KDE, replace "twm &" with "startkde &"
  3. For Gnome, replace "twm &" with "exec gnome-session &"
  4. Kill any existing VNC servers with "vncserver -kill :xxx" where xxx is the display number.
  5. Start a new server.
Thanks to Greg Breland for the post!

VNC server and viewer on Linux

vncserver and vncviewer

Check what's installed

First check if you already have them installed on your system, open a terminal and type:

$ rpm -qa|grep vnc
vnc-server-4.1.1-36
vnc-4.1.1-36


If you get an output something like this then you're all ready, if not you need to install them via yum.

Add a user(s)

Next we need to add at least 1 VNC user, open the file /etc/sysconfig/vncservers as root and add the information shown:

$ vi /etc/sysconfig/vncservers

npkcrypt 服务启动失败

QQ在系统中安装了此虚拟设备,是提供密码保护功能的,但是卸载时却卸不掉。太垃圾了!!! 1、“设备管理器”中,选择“查看”/“显示隐藏的设备”,在“非即插即用驱动程序”中选择“npkcrypt”,卸载。 2、删除注册表中的键项:“HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\npkcrypt”或 “HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\npkcrypt”。 3、删除QQ目录下:npkcrypt.sys、npkcrypt.vxd、npkcusb.sys 三个文件。

Downgrading Office 2007

If you wish to downgrade Office 2007, you can only uninstall it and re-install Office 2003. After the downgrade, you yet have to do something manually to make Outlook work: In C:\program files\Common Files\System\MSMAPI\1033 - 1. Rename MSMAPI32.DLL to MSMAPI32_OLD.DLL 2. Rename MAPISVC.INF to MAPISVC_OLD.INF 3. Restart Outlook and everything comes back up.

ImageMagick, PHP, and Windows 2003

If you wanna call ImageMagick exe's from PHP on Windows 2003, you have to install ImageMagick 5.5.7 Q8

I tried the latest versions but they all fail to work. 

Manually delete a windows service

You can use the command line tool "sc" to delete a service (as well as a whole bunch of other things, like set it to manual/auto, stop/start it, etc).

C:>sc delete
DESCRIPTION:
Deletes a service entry from the registry.
If the service is running, or another process has an
open handle to the service, the service is simply marked
for deletion.
USAGE:
sc delete [service name]

"An unexpected error occurred" when opening network connections properties in windows

Error Message:
An unexpected error occurred.

Translation:
This message may appear when opening the properties of a network connection in the Network Connections folder. It’s possible that Registry settings for the network connection may be damaged.

Solution:
Click Start, Run, and type regsvr32 %systemroot%\system32\netshell.dll. Click OK and try again to open the properties for the affected network connection. If it still doesn’t work, click Start, Run, type regsvr32 %systemroot%\system32\ole32.dll, click OK, and then restart the computer and try to open the properties for the network connection.

Tar and Gzip DIR

tar cvzf /path/to/tar_file.tar.gz /path/to/dir