Wordpress Revolution Theme - How do I create a page that doesn’t appear in the navigation

September 18, 2008 by tibor · Comments Off 

http://www.revolutiontheme.com/support/viewtopic.php?f=3&t=5847&p=31221&hilit=+menu+link#p31221

Re: How do I create a page that doesn’t appear in the navigation

You can create a page in the normal way then exclude it from the navbar. Find this in header.php:

Code:
<div id="navbarleft">
<ul id="nav">
<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?>
</ul>
</div>

and change it to:

Code:
<div id="navbarleft">
<ul id="nav">
<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
<?php wp_list_pages('exclude=XX&title_li=&depth=2&sort_column=menu_order'); ?>
</ul>
</div>

Replace XX with the ID number of the page to be excluded.

To exclude more than one page, the code looks like this:

Code:
<?php wp_list_pages(’exclude=1,4&title_li=&depth=2&sort_column=menu_order’); ?>

Ade

GLText screensaver - Change displayed text

August 31, 2008 by tibor · Leave a Comment 

Edit the /usr/share/applications/screensavers/gltext.desktop file as root.

1. Alt+F2
2. “gksu gedit /usr/share/applications/screensavers/gltext.desktop”

Change the line that currently says Exec=gltext -root to the following line instead:

Exec=gltext -root -front -no-spin -text “Mind is your conditioning\n always seeking expression\n IN THOUGHT\N through NOW!”

3. Save, Exit

4. Set your Screensaver to GLText under System, Preferences, Screensavers

VNC through SSH

May 29, 2008 by tibor · Leave a Comment 

INTERNAL: ssh -p10000 -X -L 5900:localhost:5900 user@internalIPaddress
EXTERNAL: ssh -p10000 -X -L 5900:localhost:5900 user@externalIPaddress
vncviewer localhost

Firefox 2 on Hardy cannot install extensions/addons

May 24, 2008 by tibor · Leave a Comment 

The error message in the Firefox 2 error console says: “installlocation has no properties”

Solution: Close firefox, delete extensions.rdf file in your firefox path, restart firefox

Fix Flash audio not playing in Ubuntu Hardy under PulseAudio

May 23, 2008 by tibor · Leave a Comment 

sudo apt-get install –reinstall pulseaudio libflashsupport

Flyback on Ubuntu Hardy 8.04 LTS

May 22, 2008 by tibor · Leave a Comment 

Original code homepage: http://code.google.com/p/flyback/

$sudo apt-get install python python-glade2 python-gnome2 python-pysqlite2 python-gconf rsync gnome-schedule
$ mkdir ~/Applications
$ cd ~/Applications
$ wget http://flyback.googlecode.com/files/flyback_0.4.0.tar.gz
$ tar -zxvf flyback_0.4.0.tar.gz
$ cd flyback
$ cp GPL.txt ~
$ ln -s flyback.py ~/flyback.py #it expects flyback to be installed to yourhome directory, ie the cron line is looking for the file /home/user/flyback.py
$ python flyback.py

Create a custom application launcher in Gnome Panel to create an icon:
python /home/t/Applications/flyback/flyback.py

Turn off X on Ubuntu 7.04 Feisty server

May 7, 2008 by tibor · Leave a Comment 

$ cd /etc/rc2.d/
$ sudo mv S13gdm K87gdm
$ sudo reboot

This way the server stays at the console login prompt instead of booting into X (GDM)

FreeNX server setup on Debian Lenny Sid Server

April 24, 2008 by tibor · Leave a Comment 

Create folder for freenx packages:
$cd ~
$mkdir freenxpkg

Download all packages manually (one by one) from http://krnl.nl/freenx/ to ~/freenxpkg/

Add the following line listed below to your /etc/apt/source.list:
$su -
#nano -w /etc/apt/sources.list
Type the following line at the bottom of the sources.list file “deb file:/home/username/freenxpkg/ ./” (without the quotes)

#apt-get update
#apt-get install freenx

Optional Configuration

Changing SSH port Number

By default, nxserver uses port 22 for communicating over SSH. On some machines or networks, port 22 may be blocked. For example, some providers block port 22. To make the SSH server listen on port 8888, you can do the following:

Edit the file /etc/ssh/sshd_config
#nano -w /etc/ssh/sshd_config

Find Port 22 and change it to Port 8888

You then need to restart SSHD. Try

#/etc/init.d/ssh restart

Edit the file /etc/nxserver/node.conf
#nano -w /etc/nxserver/node.conf

Find # The port number where local ’sshd’ is listening.
#SSHD_PORT=22 and change it to:

# The port number where local ’sshd’ is listening.
SSHD_PORT=8888

That is, change the port number to the one that sshd is listening to, and uncomment the line.

P.S.: You can also download all the freenx files as one zipped up package from: http://www.milehighlinux.com/freenx.zip

Convert MPEG video to Flash

April 18, 2008 by tibor · Leave a Comment 

Source: http://www.tsewdry.net/wordpress/?p=27

Excerpt:

“After quite a bit of toying around, I got the following to work to convert an MPEG Video to Flash format. The original video(s) were off my digital camera, and uploaded in AVI format. I used kino to edit the videos and created one output in mpeg format.

ffmpeg -i input.mpeg -ab 64 -ar 44100 -acodec pcm_s16le output.flv

Then run:

flvtool2 -U output.flv

To add duration information, etc.”

Quick reverse DNS lookup how to in CLI (command line interface)

February 5, 2008 by tibor · Leave a Comment 

A reverse DNS query is where you know the IP address and would like to know what domain name is tied to that IP. I have been using http://www.dnsstuff.com/ for a while now and have been happy with their product, which is online DNS queries, but they turned to a pay model recently. Unfortunately, I don’t use them enough to warrant paying their yearly fees. Here is where the “host” command comes to the rescue.

Usage example:
host 64.233.187.99
99.187.233.64.in-addr.arpa domain name pointer jc-in-f99.google.com.

Host –info:
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
[-R number] [-m flag] hostname [server]
-a is equivalent to -v -t ANY
-c specifies query class for non-IN data
-C compares SOA records on authoritative nameservers
-d is equivalent to -v
-l lists all hosts in a domain, using AXFR
-i IP6.INT reverse lookups
-N changes the number of dots allowed before root lookup is done
-r disables recursive processing
-R specifies number of retries for UDP packets
-s a SERVFAIL response should stop query
-t specifies the query type
-T enables TCP/IP mode
-v enables verbose output
-w specifies to wait forever for a reply
-W specifies how long to wait for a reply
-4 use IPv4 query transport only
-6 use IPv6 query transport only
-m set memory debugging flag (trace|record|usage)

The “host” command combined with “dig” will save me $36/year. :-)

Next Page »