| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
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:
- Edit ~/.vnc/xstartup
- For KDE, replace "twm &" with "startkde &"
- For Gnome, replace "twm &" with "exec gnome-session &"
- Kill any existing VNC servers with "vncserver -kill :xxx" where xxx is the display number.
- Start a new server.
VNC server and viewer on Linux
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 服务启动失败
Downgrading Office 2007
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.

Recent comments