ubuntu vnc slow fix

Vino / VNC was not refreshing the screen on the remote desktop of an Ubuntu machine. Found a fix for ubuntu 11.04:

v_2ryann (v-2ryann) wrote on 2010-07-30: #18
Here is the answer guys, on how to do it without changing the effects:
1) Open a terminal o press ALT+F2, then run/type: gconf-editor
2) Go to /desktop/gnome/remote_access and enable “disable_xdamage”

some launchpad bugs for this issue:

https://bugs.launchpad.net/ubuntu/+source/vino/+bug/299112

https://bugs.launchpad.net/ubuntu/+source/vino/+bug/772873

related ubuntu forum posts:

http://ubuntuforums.org/showthread.php?t=1744161

Please note: This workaround does NOT appear to work on the new ubuntu 11.10. There is no “disable_xdamage” in the remote_access keys:

No disable_xdamage key available for 11.10

No disable_xdamage key available for 11.10

Posted in Linux, Ubuntu | Leave a comment

centos set dns

domain name not resolving on a CentOS box?

[root@localhost ~]# ping -c2 www.google.com
ping: unknown host www.google.com

Edit /etc/resolv.conf to add some nameservers:

# Googles Public DNS
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain

No reboot necessary!

(writing this basic step because Googling does not provide simple answer. ) This is not obviously how to set up a DNS server – it is just how to get the box to resolve DNS. old school basics that no one seems to want to document.

Posted in CentOS, Linux | 2 Comments

html to pdf including the css

.. because I wasted way to much time on finding easiest way to convert an html file to pdf , including the css :

1. On apt based Linux, install wkhtmltopdf and its dependencies :
sudo apt-get install wkhtmltopdf

2. Usage:

To convert a remote HTML file to PDF:
wkhtmltopdf http://www.google.com google.pdf

To convert a local HTML file to PDF:
wkhtmltopdf my.html my.pdf

You can also convert to PS files if you like:
wkhtmltopdf my.html my.ps

The eler2.pdf sample file
wkhtmltopdf http://geekz.co.uk/lovesraymond/archive/eler-highlights-2008 eler2.pdf -H --outline

source: http://code.google.com/p/wkhtmltopdf/wiki/Usage

Creator/maintainer has also recently created some PHP bindings for this as well. More on this version at http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/

Posted in Linux, Ubuntu, WebTechnology | Leave a comment