Wednesday, June 28, 2006

farewell to you my notebook





Let me introduce you to my notebook.

Yes, a humbly notebook she is. Her name's HP zd8342ea notebook, she just turned 7 months old, born last November 2005 in Dubai DutyFree Shopping mall, took me years of dreaming these wonderful moments with her. A breed from Hewlett Packard Pavillion clan, that has roamed mountains of companies around the globe and still achieving continuous credibility of satisfactory-producing genes commonly distributed throughout these technology lands.

I still remember...

Three hours of pain-staking walking labor inside DDFS mall, trying to choose which one would capture my very own dull mind and would inevitably convince me of these feature-enriched built-in choices of factors that were all overly up close and personally displayed.

Never mind the once-in-a-lifetime millionnaire coupon ticket that comes with her as this predefined non-production notebook customizations, that was amazingly-built, has provided me endlessly joyful sleepless nights, awakening my sleeping molecular bed of thinking-cells during those months of stay with her....

Have served her my best. Have spoonfed her different operating systems distro, customization setups targeted on gaining maximized resource throughput as well, 11 burning OS to be precised. It was fun feeding her dumb hungry-liking interrupts and data sockets with 1s and 0s. Reviving her empty memory and non-colliding hyperthreaded-enabled processors was unimaginable happy hours. On which, returns all favor to her during these six months...and I must admit, yours truly is a sole witness here.

Sad but true.

My desires and interests of letting her go for adoption at her early age was not an easy one for me.

SOLD!

My HP zd8342ea (series 8000), farewell then...I'll see you at cyber space!



Her at a Glance :

HP Pavilion zd8342EA Notebook PC (EL028EA#ABV)
Microsoft® Windows® XP Home Edition
supporting Hyper-Threading Technology, Intel® SpeedStep® technology
3.20 GHz
512 MB
80 GB
DVD Writer Dual Format (+/-R +/-RW) with Double Layer support
ATI MOBILITY RADEON X600 graphics
12-cell Lithium-Ion (Li-Ion) battery
54g™ 802.11b/g WLAN
290 mm (L) x 398 mm (W) x 50 mm (H)
4.22 kg (9.3 lbs)

Inner ones, specs and details:


Processor, Operating System and Memory
Operating System Installed
By Default: Microsoft® Windows® XP Home Edition
Current: Fedora Core Linux 5, PCLinux OS 0.92, Ark Linux beta RC2


Processor
Intel® Pentium® 4 Processor 640

processor technology
supporting Hyper-Threading Technology, Intel® SpeedStep® technology

processor speed
3.20 GHz

System Bus
800 MHz Bus speed

Cache
Level 2 cache 2 MB

Standard Memory
512 MB upgradeable to 2GB

Memory Type
DDR2 533 MHz

memory layout
(2 x 256 MB)

Maximum Memory
Supports up to 2 GB DDR2 memory

Internal drives
Internal Hard Disk Drive
80 GB

Hard disk controller
EIDE hard drive, ATA 100

Hard Disk Drive Speed
4200 rpm

optical drive type
DVD Writer Dual Format (+/-R +/-RW) with Double Layer support

System features
Memory card device
Digital Media Reader (6 in 1) (xD, SD, Smart Media, Memory Stick, Memory Stick Pro, Multimedia Card)

External drive bays
HP USB Digital Drive

Network interface
10/100 LAN Ethernet integrated

Wireless Technologies
54g™ 802.11b/g WLAN

Wireless capability
Bluetooth® wireless networking

External I/O Ports
1 VGA port; 4 USB 2.0 ports; 1 IEEE-1394; 1 RJ 11 modem connector; 1 RJ 45 Ethernet connector; S-video TV out; Remote control infrared port (Remote Control optional); 1 Headphone-out, 1 Microphone-in ports; Cable docking connector

video capture interface
IEEE 1394 Interface

Expansion Slots
One ExpressCard/54 slot (also supports ExpressCard/34)

Display size
17" WXGA+ High Definition BrightView Widescreen

Display resolution
1440 x 900

Video adapter
ATI MOBILITY RADEON X600 graphics

Video RAM
128 MB dedicated video memory

Video adapter, bus
PCI Express®

Handheld Remote Control
HP Mobile Remote Control

Internal Audio
3D Sound Blaster Pro compatible sound 16 bit integrated

Speakers and microphone
Altec Lansing® speakers

power supply type
180 W AC Power Adapter

Battery Type
12-cell Lithium-Ion (Li-Ion) battery

Software
Software - Productivity & Finance
Microsoft® Works 8.0

Included/Pre-installed Software
Microsoft® Internet Explorer 6.0; Microsoft® Outlook® Express; Adobe® Reader 5.0

optical drive driver software
InterVideo WinDVD 5.0; Sonic™ Digital MediaPlus 7.0: Sonic™ RecordNow; Sonic™ MyDVD; Sonic™ Easy Archive; Sonic™ Express Labeler; Microsoft® Windows® Media Player 10; Apple iTunes; Apple QuickTime; HP Image Zone Plus

Software - Education / Reference / Entertainment
InterVideo Home Theater™

Software Included
Symantec™ Norton Internet Security™ 2005 (60-day liveupdate); Notebook Help & Support

dimensions / weight / warranty
Weight
4.22 kg (9.3 lbs)

Dimensions (w x d x h)
290 mm (L) x 398 mm (W) x 50 mm (H)

Maximum Dimensions (W x D x H)
465 x 190 x 365 mm

Toshiba, here I come.

in life:
Happy with HP,..now let us see the world from Toshiba...

Saturday, June 24, 2006

useful health trivia

WELLNESS,aficionados will probably appreciate this did-you-know list. It isn't true that a little knowledge is a dangerous thing. In this case, it can help improve your state of well-being.

*

One cigarette can destroy 25-100 mg of Vitamin C.
*

Most store-bought milk with synthetic Vitamin D added can rob the body of magnesium.
*

Elderly people do not get enough Vitamin D due to lack of exposure to the sun.
*

Oral contraceptives interfere with the extraction of Vitamin C, B6, B12, folic acid from most diets.
*

Children need more protein than adults (about 11/2-2 times more per pound of body weight), and babies require three times more.
*

Daily "happy hours" can rob the body of Vitamin C and B.
*

The immune system will be depressed from constant consumption of foods with monosodium glutamate or vetsin, artificial colors/flavors, preservatives and other additives.
*

Raw peanuts have enzyme inhibitors that make it difficult for the body to digest all kinds of protein.
*

Natural fat (saturated fat) is better for the body than hydrogenated fat (found in low-fat butter substitutes like margarine). Hydrogenated oil is a trans fatty acid that has been linked to cancer.
*

Vitamin B1 can ease sea and air sickness.
*

Carpal tunnel syndrome and hormonal imbalance could indicate Vitamin B deficiency.
*

Magnesium is a muscle relaxant and is considered nature's equivalent of calcium channel blocker drugs.
*

The United States Department of Agriculture Human Nutrition Research Center on Aging at Tufts University says daily consumption of Vitamin C supplements have been found to reduce the risk of developing cataracts.
*

For more brain power, 100 mg of the phospholipid supplement phosphatidyl serine (PS) daily is suggested. It can help those with normal age-related memory problems regain at least 12 years of brain power.
*

Recent studies have shown that the mineral selenium may significantly slow the progression of the human immunodeficiency virus (HIV), which causes the acquired immune deficiency syndrome (AIDS).
*

Flavonoids found in red grapes can be 1,000 times more powerful than Vitamin E.
*

People who consume nuts five or more times a week have a lower risk of developing heart disease compared to those who eat nuts less than once a week.
*

Drinking soda and eating foods with sugar substitutes stimulate the body to consume more fat.
*

An onion a day keeps stomach cancer away. Onion's allylic sulfides (anti-cancer compounds) activate enzymes that neutralize cancer-causing substances.
*

Many people lose enzymes necessary to digest milk after the age of 12. This is why adults suffer from lactose intolerance, like having gas/indigestion, after drinking milk.
*

Taking Vitamin E supplements can lower the risk of heart disease.
*

The American Cancer Society says new studies reveal that the life expectancy of non-smokers can be longer by 18 years compared to smokers.
*

Boron can be a woman's best friend. The trace-mineral (found in apples, grapes, raisins) may retard bone loss in women after menopause. It also helps women on ERT (estrogen replacement therapy) by keeping estrogen in the blood longer.
*

The swallowing of toothpaste should be avoided as there may be a connection between the oral hygiene product (with its additives) and bowel diseases.
*

Aspirin may triple the rate of the body's release of Vitamin C.

Calmness:



style="font-family:verdana;">Walk with purpose but with calmness. Speak with passion but with peace. Act with energy but with serenity. These are the ways to manage the forces within you, using them not against but together with the flow of life.


Choose an affirmation each morning to start your day with inspiration not aggravation.

Breathe in a relaxed manner. Close your eyes and affirm: "I walk with the Spirit today." Visualize yourself bathed in brilliant white light.

Calming drink:

Take a hot or chilled cup of peppermint tea. For extra energy, add a slice of fresh ginger for that zing.

Love and light!

Tuesday, June 20, 2006

google spreadsheet now



How do you create, edit, share spreadsheet from the internet?

Now, introducing Google spreadsheet!

Duh, tell me more about it dude.

Create, store and share spreadsheets on the web. Imagine a spreadsheet that's always current and that others can update from their own computers, even at the same time anywhere.

Get started quickly. Import your existing spreadsheets or create new ones from scratch.

Edit your spreadsheets from anywhere. All you need is a Web browser - your spreadsheets are stored securely online.

Share changes in real-time.Invite people to your spreadsheets and make changes together, at the same time.
Wow. New innovations again by Google.
I am a noobs, now what?
No laptop and flash drive, but with internet? Create your spreadsheet online from other place and get back to it as soon as you get back to work or at home. You can now have data convenience at your point of place anytime anywhere online.
Share it with your officemates and friends as easy as 1 2 3. You can now have distributed convenience of live file sharing among others.
My disk is full. Have an extended online data storage and capacity.
Data CRC check and corruption, lost storage media, missing and forgotten folder location, computer back at home? Offline and online backup availability? Internet cafe's are all around us nowadays. Data availability when needed. Hurry-free.
So what are you waiting for, try now and see for yourself, get the google spreadsheet!
This is not a paid advertisement, LOL.

Tuesday, June 13, 2006

bird's eyeview - google earth

i was evaluating google's latest google earth. glad they release a linux version.
it was amazing trip, moving around earth's X and Y axis. a virtual trip you cant get
just around it and spend a couple of hours looking to places, buildings and maps.

What is Google Earth anyway?

It is Explore, Search and Discover.

Nice, so any other definitions that I can simply understand?

Google Earth puts a planet's worth of imagery and other geographic information right on your desktop. View exotic locales like Maui and Paris as well as points of interest such as local restaurants, hospitals, schools, and more.

You can actually pinpointed and marked your own point of residence, your school, its there and updated!

When are these maps and pictures updated from Google Earth?

Three years ago taken from satellite and some aerial flights above.
As you will notice, most maps were taken at a very early time of the day.

What?! I need the hardware requirements?

Yep, just copy and paste it.

What are you talking about?

Here.
Google Earth takes advantage of the 3D graphics capabilities standard on most computers. If you are using Google Earth on an older machine, or a notebook computer that does not have 3D graphics capabilities, you may not be able to run the application.

The 3D graphics capabilities of your machine have a lot to do with how well Google Earth performs. Google Earth will work on most graphics cards from the following manufacturers:

NVIDIA
ATI*
3D Labs
Intel**
Matrox
S3
* The following ATI cards are not supported: ATI Rage Mobility, ATI Xpert, ATI 3D Rage.

** Intel 3D graphics machines can use the default OpenGL version, but work better in DirectX (choose Start > Programs > Google Earth > Start Google Earth in DirectX).

Matrox card users must use the OpenGL version. S3 cards must use the DirectX version.

See my attached google earth captured point of residence back home!

Thanks.


Links: Google Earth http://earth.google.com/faq.html#1

in life: unidentified aliens are providing google amazing technology!

Sunday, June 11, 2006

novell xgl demo tube

Below is Novell XGL tube demo. If you are using a dialup-like internet connectivity, it is not advisable for you to play the demo tube by Novell, however, if you havent seen one XGL 3d desktop demo under Novell Linux, just be patient and click play now.

Friday, June 9, 2006

my 3d xgl screenshots






Introduction:

Novell is announcing its contribution of the Xgl graphics subsystem and the 'Compiz' compositing manager to the X.org project. These enhancements open up a whole world of hardware acceleration, fancy animation, separating hardware resolution from software resolution, and more. As a result, Linux desktops will become more usable, end-user productivity will increase, and Linux is firmly positioned at the forefront of client computing technology.Under the leadership of Novell's David Reveman, Novell has sponsored and led the development of this powerful new graphics subsystem for Linux since late 2004. Xgl is the X server architecture layered on top of OpenGL and takes advantage of available accelerated 3D rendering hardware. It is designed to integrate well with the composite extension and performs best when a compositing manager is running. 'Compiz' is the new OpenGL compositing manager from Novell and is the framework that enables the development of graphical plug-ins.Xgl is an Xserver that uses OpenGL for its drawing operations. Together with compiz, an opengl compositing and window manager, it allows for some cool desktop effects. Xgl relies on an extension to mesa, GLX_EXT_texture_from_pixmap, that is present only in CVS mesa.

XGL Code:
Both projects are being hosted on freedesktop.org and the latest code can be found in the CVS repository.
Sofware Prerequisites:
Installed 3D driver for 3d-enabled video driver, better performance with ATI/NVidia video cards
How do I enable 3D support for my ATI Radeon card in Fedora Core 5?

See how to do that here
http://www.fedorafaq.org/#radeon

How do I enable 3D support for my nVidia graphics card in Fedora Core 5?

Link here
http://www.fedorafaq.org/#nvidia

Major XGL desktop features:

1. True transparency and shadow
2. Zoom In / Zoom out
3. Desktop Organization
4. 3d Spinning Cube
5. Moving-film like
This rpm-based xgl under FC5 mini-howto work with my ATI Radeon X600 under FC5. Hope it works for you also.

Package list to install:

compiz OR compiz-quinn
xorg-x11-server-Xgl
fedora-xgl-settings
gset-compiz
xgl-hardware-list
glitz
libsvg-cairo libsvg

Let's go install. Show me now please.

First, make sure you have a 3d vga driver working already and the latest kernel.

Now, for this to work under FC5, you need to install Fedora Xgl Repository as root, issue:


Then import proper GPG key
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AL-CAPCOM

Follwed by installing Xgl and Compiz rpm packages:

# yum --enablerepo=fedora-xgl install compiz xor-x11-server-Xgl

Verify that you have the correct xgl values after the installation:

$ gnome-xgl-info

This command must return results like this:

G nVidia Corporation
1 kmod-nvidia is installed for the kernel release 1.2111_FC5
1 -accel glx:pbuffer -accel xv

Enable Xgl:
gnome-xgl-switch --enable-xgl --auto
When the script ask you for applying the modifications, say (y)es.

To disable Xglgnome-xgl-switch --disable-xgl

Use Gnome, for now, it doesnt work with KDE yet.
Modify your /etc/gdm/custom.conf and append these :

[servers]0=Xgl
[server-Xgl]
name=Xgl
servercommand=/usr/bin/Xgl :0 -fullscreen -ac -accel glxbuffer -accel xv:buffer
chooser=false
handled=true
flexible=true
priority=0

And save.
**Note that /usr/bin is the location, others had /opt/bin.

XGL is not yet fully stable, its still on development process and most users from different distros find hardtimes doing the installation. Once or twice it would work for them, but after reboot, it does not!

Then, create a executable bash scripts named XGL like below. This one would launch XGL under init 3 properly.

#/bin/sh

#start XGL on display :1
export DISPLAY=:1<


br />/usr/bin/Xgl :1 -ac -accel glx:buffer -accel xv:buffer -fullscreen &
sleep 33

#start compiz

DISPLAY=:1 /opt/Xgl/bin/compiz gconf &
DISPLAY=:1 gnome-window-decorator &
DISPLAY=:1 dbus-launch gnome-session &

#avoid backspace to kill Xgl

DISPLAY=:1 /usr/bin/xmodmap -e "keycode 22 = BackSpace"

And save.
Change /usr/bin if necessary. This one comes from my own settings though. You will notice sleep 33 is there, it works for me, if I changed that to sleep 10, it wont do the work, you need to give it some loading time, maybe 60 would do for some slower systems as I have 3.2 GHz processor here, 33 is just fine for me.

Then from Gnome, click Administration, look and click for Compiz configuration, from the left pane of the newly appeared dialog box, make sure the following plugins are checked:

gconf

decoration
wobbly
fade
minimize
cube
rotate
zoom
scale
move
resize
place
switcher

Reboot to init 3, and run the XGL script as root, wonderful, works like a charm!

The above worked with my ATI Mob Radeon X600 with 128 dedicated video mem running under FC5.

If you wish to run it when Gnome is loaded, change the display redirection from :1 to :0, edit /etc/inittab to init 5, and do some tweakings from your xorg.conf, gnome-sessions and startup programs.

Some sweet-candy XGL keyboard shortcuts commands:

Ctrl+Alt+Left - rotates the 3d cube going to the left.

Ctrl+Alt+Right - and right ofcourse.
Alt+Left Button - drags the currently selected window with effects
Ctrl+Alt+Left Button - rotates the cube on mouse directionand more!

Lastly, find an internet cafe, do some show offs. LOL


Future Readings:
http://www.novell.com/linux/xglrelease/
http://en.wikipedia.org/wiki/Xgl
http://fedoraforum.org
http://www.freedesktop.org/wiki/Software/Xgl

All their trademarks and licenses.

in life: desktop linux are getting more and more sweet nowadays

Wednesday, June 7, 2006

more with system uptime



Underlying Technology.

There is no underlying technology of having your own uptime.

So what is server uptime?

Accdg. to wikipedia definitions:

"Uptime is a measure of the time a computer system has been "up" and running. It came into use to describe the opposite of downtime, times when a system was non-operational. The uptime and reliability of computer and communications facilities is sometimes measured in nines. "Five nines" means 99.999% reliability, which translates to a total downtime of no longer than five minutes per year.

It is often used as a measure of computer operating system reliability and stability, in that this time represents the time a computer can be left unattended without crashing, or needing to be rebooted for administrative or maintenance purposes. Long uptime can also indicate negligence as many critical updates require reboot.

The uptime(1) command on Unix systems will show the current time, the uptime, the number of users, and load averages, from the last 1, 5, and 15 minute intervals"

Basically, its a counter of a system not being down from service availability.

So how can I get my own uptime? Is it free? Shareware?

It's free, its already there, just turn on your system.

Show me please.

Easy, even newbies, noobs can easily know his system or server uptime. If you are using Window$ XP, it doesnt matter if its genuine or not, nor internet-connected or not, as long as you have remote or physical admin access on it. You simply launch the infamous DOS command prompt and issue:

C:\systeminfo find "Up Time"

This command will seize all vital hardware details including OS components version and updates. But since it includes parsing 'find' command, it will just show you your XP uptime.

How to launch DOS. Click Start, Run, and type "cmd" and hit OK!

With Linux, simply issue, root or normal user:

#uptime

What else?

There are lots of site offering free uptime monitoring service. Netcraft is one famous among them. You can see netcraft uptime server here
http://uptime.netcraft.com

State your point!

Oh sorry, let' see.


My current uptime is 266 days under FC and 1 day with window$ XP, see screenshot.
Last year was like 345 days, restarted by epileptic UPS arg!

Based from uptime netcraft, current longest uptime is 1461 days running under BSD OS and 50th highest uptime is 768 days as of today, 11AM GMT.


Further reading: Google defines it here


Life: uptime is alive but doesnt breath!
More: graph it using MRTG

not to much to create and append, ..

maintenance are on automatic mode,
now more on monitoring and see how it looks, ..
browse the net, home sweet home is coming soon!





Saturday, June 3, 2006

ATI Radeon X600 3d FC5 Howto



Introduction:

Under Fedora Core OS distro, there has been many forums and plug list discussions about their problems and experience of having NVidia and ATI video card driver working with their system, specially to 3d-enabled VGA support.

Show your point!

Last night, I did a full dual boot reinstall of my notebook, FC 5 and XP2, for beginners and hobbyist just in case when the need arises.


Hardware details.

I have an ATI Radeon X600 with dedicated 128MB video memory card. 2MB of L2 cache memory and 512MB CPU memory, and 1GB swap space.

Where did you get your ATI Radeon X600 driver?

Enriched packages with yum repos for FC distro leads me unto it.
By default, ATI X600 are detected automatically by FC5, but the screen reso is not properly configured, so you need to do tweaks with your xorg.conf.

How did you install it?

Before you do this, make sure you already made a backup copy of your /etc/X11/xorg.conf.


The below commands would require livna repository. It is not installed by default so you need to integrate your yum repos to include and enable livna-repos. See /etc/yum.repos.d for more. Now, simply issue the following commands, considering you have a fresh FC install like I had.

As root with SELinux disabled,

#yum install kmod-fglrx

For some dependencies from your system, this may install necessary kernel upgrades for your system. Note that fglrx driver wont work without the needed current kernel updates, unless you compile it yourself! If you dont feel happy upgrading your kernel to latest one, you have an option to press N to cancel everything when prompted.

However, if you choose to continue, this command will install the open source fglrx non-propriety software package that works with most ATI video cards and will provide your with 3D acceleration support for most intel chips.

What about NVidia video card drivers, almost the same approach.

#yum install kmod-nvidia

If you have ATI cards, don't ever issue the above one. You might get confused.

If SELinux is enabled, simply issue as root,

setsebool -P allow_execmod=1

Check /etc/selinux/config if you dont know your SELinux status.

Noticed from xorg.conf a few modifications like

Driver "fglrx"Option "UseInternalAGPGART" "no"

Make sure you also set your default screen reso there just down below of that lines.

Reboot.

How can I see that 3d gears graphics working?

Issue

#fgl_glxgears

and screen-capture it. Works like a charm!

Now check out its performance, go and play heavy 3D games! Ever heard of XGL or 3d desktop? Try that!

For debug purposes,

tail -f /var/log/messages


tail your Xorg log file

If it doesnt work for your OS, just copy back your /etc/xorg.conf.backup copy and overwrite the xorg.conf. You may need to restart GDM by logging out. Or alternatively, hit Ctrl+Alt+Backspace to restart X. No need to reboot.

See some captured desktop I have. Useless pretry candies huh.

For ATI feedback, see http://apps.ati.com/linuxDfeedback/index.asp


For Livna repos, see http://rpm.livna.org/
SELinux, see http://fedora.redhat.com/docs/selinux-faq/
See Fedora Forums

Thursday, June 1, 2006

shutdown using non-root


How to enable a non-root user to shuwdown a linux system

First, you need a non-root user, go and create it using root account

[root@deniro ver]# useradd -d /home/vertito vertito -s /bin/bash && passwd vertito

This would create a new bash-enabled user prompting you for a new password.

You then edit /etc/sudoers file by launching your favorite editor like so

[root@deniro ver]# nano -w /etc/sudoers


or simply

[root@deniro ver]# visudo


and inserting

SHUTDOWN localhost=/sbin/shutdown -h now

and save.

Logout as root and login as user vertito. User vertito was the last user created a while ago.

[vertito@deniro ~]$ /sbin/shutdown -h now


Just make sure /sbin/shutdown is world readable and executable as mine is not! !

Further readings:
man sudo
man shutdown
man sudoers

sources: WWW

application: dont reboot, shut it down, makes work simple!


VNC server howto


A brief VNC howto introduction:


What is VNC?

VNC stands for Virtual Network Computing. It is remote control software which allows you to view and interact with one computer (the "server") using a simple program (the "viewer") on another computer anywhere on the Internet. The two computers don't even have to be the same type, so for example you can use VNC to view an office Linux machine on your Windows PC at home. VNC is freely and publicly available and is in widespread active use by millions throughout industry, academia and privately.

VNC server Howtos in Fedora Core OS.

Do yout think I have it in installed from my system?

Type the following command to check if you have the client and server installed from your system.

As root
[root@deniro mail]# rpm -qa vnc vnc-server
vnc.i386.4.1.1-10.1
vnc-server.i386.4.1.1-10.1

Or as non-root user
[vertito@deniro ~]$
vnc.i386.4.1.1-10.1
vnc-server.i386.4.1.1-10.1

If it's not yet installed, you can install it using the easy to use yum command.

[root@deniro mail]# yum install vnc-server

Now, to configure vncserver as a service on your system, add yourself in following config file.

[vertito@deniro ~]$ sudo vi /etc/sysconfig/vncservers

# VNCSERVERS="1:myusername"
VNCSERVERS="1:vertito"

To add more users
VNCSERVERS="1:vertito 2:ver"

OPTIONAL:
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"
VNCSERVERARGS[2]="-geometry 800x600 -depth 8"

Before starting vncserver as a service, let's create a vnc password with vncpasswd command.
Notice it creates a hidden directory .vnc under your home account with file passwd which contains your vnc password.

[vertito@deniro ~]$ vncpasswd
Password:
Verify:
[vertito@deniro ~]$ ls -d .vnc
.vnc
[vertito@deniro ~]$ ls .vnc
passwd
[vertito@deniro ~]$

Now let's start vncserver as a service.

[vertito@deniro ~]$ sudo /sbin/service vncserver start
Starting VNC server: 1:vertito [ OK ]
[vertito@deniro ~]$

Take a look at the contents of .vnc directory now. You should have something similiar to following.

[vertito@deniro ~]$ cd .vnc
[vertito@deniro ~]$ ls
passwd vertito:1.log vertito:1.pid xstartup
[vertito@deniro ~]$

If you edit the script called xstartup, you will see UNSET SESSION_MANAGER 2 lines,
uncomment those two lines! Otherwise, you will get nothing but grey screen.
#!/bin/sh

# Uncomment the following two lines for normal desktop:

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

After editing vnc startup script, we need to restart the vncserver service

[vertito@deniro ~]$ sudo /sbin/service vncserver restart
Shutting down VNC server: 1:vertito [ OK ]
Starting VNC server: 1:vertito [ OK ]
[vertito@deniro ~]$

So how do I connect to vncserver?
Use vncviewer command in vnc client as following.
[vertito@deniro ~]$ vncviewer localhost:1

Enter your password there.

General usage is:
vncviewer [Server's IP]:[Port]:[Display]

To connect to a remote system with iptables firewall, port 5901 needs to be open.
Add following line to open port 5901 and restart iptables service.

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT

/sbin/service iptables restart

If you have 2 users, you may
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901:5902 -j ACCEPT

These would listen on ports 5901, 5902 respectively.

And restart again the following services,
/sbin/service iptables restart
/sbin/service vncserver restart

To load vncserver during reboot, add as startup service

#chkconfig vncserver on

To know vnc-server status

/sbin/service vncserver status

Basically, this is it. You are happy to go!

Further Reading
Read the man pages. Everything is in there:

man vncserver
man Xvnc
man vncconfig
man vncviewer
VNC with SSH. See http://www.ltsp.org/contrib/vnc.html

sources: Fedora, Fedora Forum, Fedora FAQ, Google

life:
teleportation is a must

Trademarks are their own copyrights.

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy