Ubuntu 8.04 Hardy – Go ahead

April 27, 2008 by tibor · Leave a Comment 

In case you are hesitant trying Ubuntu 8.04 Hardy, well? Don’t be! It works like a charm. Works flawlessly on my Lenovo R61i laptop.

Update:
May 7 2008 – Hardy also works flawlessly on a HP Pavilion Elite m9252p Quad-core sweetness ;-P (Believe it or not but directly from Office Depot. Ouch!)

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. :-)

Html validator – tidy plugin install for gedit – / Ubuntu Gutsy 7.10 /

December 22, 2007 by tibor · Leave a Comment 

You can read up on the tidy plugin for gedit at: http://www.eng.tau.ac.il/~atavory/gedit-plugins/html-tidy/

The tidy plugin for gedit can be downloaded from: http://www.eng.tau.ac.il/~atavory/gedit-plugins/html-tidy/html-tidy-gedit-plugin.tar.gz

Extract the downloaded ******.tar.gz file into the following 2 directories
/usr/share/gedit-2/plugins/
/usr/lib/gedit-2/plugins/

How to mount a Windows ( = Samba) network share from Ubuntu linux automatically at boot?

December 19, 2007 by tibor · Leave a Comment 

Assumed variables
Windows ( = Samba) network share’s server IP:
192.168.1.100
(FYI: you can use the server’s name instead of the IP address as long as you have internal name resolution within your network so that the server’s name can resolve to your server’s IP)
Share name on server:
share
Name of the local folder that we mount the remote share under: joes_share

username to access the Windows (samba) share:
joe
password to access the Windows (samba) share:
pass

Steps:
1. Open a terminal session such as gnome-terminal

2.
Type sudo mkdir /mnt/joes_share then push ENTER
#This will create a local folder called share under folder /mnt

3. Type sudo nano -w /etc/fstab
#This will open the file /etc/fstab in the nano command line text editor

4. Type //192.168.1.100/share /mnt/joes_share smbfs credentials=/etc/samba/cred-file,uid=userid,gid=users 0 0
#THE LINE ABOVE SHOULD BE ONE LINE ONLY IN FSTAB! This command will mount the windows server share called “share” (with server IP address 192.168.1.100) to your local folder /mnt/joes_share

5. Push CTRL+X and then push Y to save this file

6.
Type sudo nano -w /etc/samba/cred-file then push the ENTER key

7.
Type username=joe then push the ENTER key

8.
Type password=pass then push CTRL+X and then push Y to save this file

9.
To make sure that it works Type: sudo mount -a and push ENTER

Now you should be able to:
#1 See the content of your SHARE from your remote computer mounted locally under /mnt/joes_share
#2 Add, Delete and Create any files under /mnt/joes_share as a regular (non-root) user without having to use the sudo command all the time
#3 Have the share automatically mount at boot time from now on

Firefox skins

November 4, 2007 by tibor · Leave a Comment 

One of my favorite firefox skins is macfox II at http://www.webether.com/macfox/. Thank you Kelly Cunningham. :-)

Gutsy DVD playback not working even after libdvdcss2 install

November 2, 2007 by tibor · Leave a Comment 

DVDs wouldn’t play back not even after successfully installing libdvdcss2 from medibuntu repository. As it turns out you might also have to install regionset (sudo apt-get install regionset) and set your region to 1. After a reboot your DVDs should play fine now.

The way I found the solution was:
1. Initiated the VLC media player from command line: wxvlc
2. I started playback of DVD from the GUI interface and received the error in the command line: “libdvdnav: Suspected RCE Region Protection!!!”
3. I googled the error message and found this page from 2006: http://ubuntuforums.org/archive/index.php/t-314380.html
4. Interestingly I never had to do this before. I currently have a Lenovo R61i Thinkpad.

Hardware Compatibility Posting for 2 printers and an HP Jetdirect for Ubuntu Gutsy 7.10

October 23, 2007 by tibor · Leave a Comment 

HP Laserjet 2300 works for network printing
By tiborh, using Ubuntu 7.10 on Tue, 23 Oct 2007 12:00:53 -0400 (Edit | Delete)

I am using the 2300 that is connected to an external HP Jetdirect 175x USB print server. Ubuntu Gutsy 7.10 didn’t find the Jetdirect automatically on network scan so after Clicking new printer, under Select Connection, Devices I chose AppSocket/HP JetDirect and manually entered the printserver’s IP address and left the port on the default 9100, Chose manufacturere HP, Chose Model Laserjet 2300.
http://ubuntuhcl.org/pub/reviews.php?product_id=339

Konica Bizhub C351 as a network printer works well
By tiborh, using Ubuntu 7.10 on Tue, 23 Oct 2007 13:45:39 -0400 (Edit | Delete)

This is a huge Multi-Function Networked Document Center type color laserjet Copier/Printer/Scanner/… I haven’t tested any network scanning or any other advanced functions but the network printing capability of the Bizhub C351 worked automatically right out of the box. The device was found on the network automatically when I clicked on New printer, the default recommended Konica driver worked as well.
http://ubuntuhcl.org/pub/reviews.php?product_id=340

Ubuntu Gutsy Gibbon 7.10 screenshots

October 18, 2007 by tibor · Leave a Comment 

« Previous PageNext Page »