Archive for April 14th, 2009

How to install OpenVZ under CentOS4.6_x86_64

We have three Servers installed CentOS4.6_x86_64, for special usage, I installed OpenVZ on these servers, and the following is the note I took when I tried to install OpenVZ.

# cd /etc/yum.repos.d
# wget http://download.openvz.org/openvz.repo
# rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ
# yum install ovzkernel.x86_64
Note : When using a 64-bit processor and operating system, you need only select the SMP or non-SMP version. 64-bit linux can access the entire 64Gb of ram in ZONE_NORMAL (low memory). PAE and 4GB/4GB splitting are only needed for 32-bit OS, and so are not necessary and are disabled by default in 64-bit kernels.

when yum update or yum install ovzkernel.x86_64, maybe you will meet this error,

–> Running transaction check
–> Processing Conflict: lksctp-tools conflicts kernel >= 2.6.10
–> Finished Dependency Resolution
Error: lksctp-tools conflicts with kernel >= 2.6.10

You may need to remove the lksctp rpm (#rpm -e lksctp-tools) if you’re still stuck in a dependency loop.

After successfully installed ovzkernel.x86_64, the default boot kernel would be set to
title CentOS (2.6.18-92.1.13.el5.028stab059.6)
if not, please modify default parameter.

modify /boot/grub/menu.list
title CentOS (2.6.18-92.1.13.el5.028stab059.6)
root (hd0,2)
kernel /vmlinuz-2.6.18-92.1.13.el5.028stab059.6 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-92.1.13.el5.028stab059.6.img

to
title OpenVZ(2.6.18-92.1.13.el5.028stab059.6)
root (hd0,2)
kernel /vmlinuz-2.6.18-92.1.13.el5.028stab059.6 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-92.1.13.el5.028stab059.6.img

modify /etc/sysctl.conf

# On Hardware Node we generally need
# packet forwarding enabled and proxy arp disabled
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0

# Enables source route verification
net.ipv4.conf.all.rp_filter = 1

# Enables the magic-sysrq key
kernel.sysrq = 1

# We do not want all our interfaces to send redirects
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0

modify /etc/sysconfig/selinux:
SELINUX=disabled

reboot into openvz kernel

#yum install vzctl.x86_64 vzquota.x86_64
#service vz start
#chkconfig vz on

References:

http://wiki.openvz.org/Quick_installation

http://www.howtoforge.org/installing-and-using-openvz-on-centos5.2-p2

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

Convert XPS to PDF in two ways

First,
1. Download GhostPDL 1.54: http://ghostscript.com/releases/ghostpdl-1.54.tar.bz2
2. Extract it, enter xps folder, build xps.
3. After the build you will find gxps.exe in xps\obj
4. Convert your XPS file to PDF format like this: gxps -sDEVICE=pdfwrite -sOutputFile=test.pdf -dNOPAUSE test.xps
gxps also support other format,
ljet4, wtsimdi, bmpmono, bmp16m, bmp32b, bitcmyk, bitrgb, bit, pkmraw, ppmraw, pgmraw, pbmraw, pcx16, pcx256, pcx24b, cljet5, pcxmono, pcxcmyk, pcxgray, pxlmono, pxlcolor, tiffcrle, tiffg3, tiffg32d, tiffg4, tifflzw, tiffpack, tiff12nc, tiff24nc, png16m, pngmono, jpeg, pswrite, pdfwrite, wtscmyk, imdi, nullpage
download the last version gxps here,
http://ghostscript.com/snapshots/gxps-win32.exe
or
http://ghostscript.com/snapshots/win-gxps.exe

Second,
Microsoft XPS Viewer(Integrated into Internet Explorer, version 6.0 or higher). or Microsoft XPS Essentials Pack(aka XPSEP, XPS EP, Opens XPS documents in a stand-alone viewer application) with PDF Printer, for example PDFCreator.

References,
GhostPCL, GhostXPS, Ghostscript and GhostPDF
PdfCreator

btw, I just noticed some body developed XPS2PDF bases on gxps.exe

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

PDFCreator 0.98 supports export SVG

PDFCreator easily creates PDFs from any Windows program. Use it like a printer in Word, StarCalc or any other Windows application. and it is an open source project.

PDFCreator 0.98 has some improvements ,

* Uses GPL-Ghostscript 8.64 now.
* Improved PDF/A compatibility.
* New output format SVG (experimental)
* Improved check for updates on PDFCreator.
* Improved COM interface
* plus small fixes and improvements

For details, please visit
http://sourceforge.net/projects/pdfcreator/

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride