Tuesday, May 27, 2008

Fedora 9: Fix No Flash Sound Issue with Firefox 3.0

Are you wondering why after a successful Fedora 9 Adobe Flash installation still produces a no sound issue with your Firefox browser? How to fix a no sound issue with flash-enabled websites?
Why Firefox 3 with adobe flash installed gives a no sound issue even your sound card works fine?

Here's a quick tip on how to fix a no sound flash issue with browser?

Fedora 9: Fix No Sound Firefox with Flash-Enabled Websites

After installing adobe flash plugin, simply install the needed flash library support modules via yum like so

# yum -y install libflashsupport

Restart firefox and test.

Enjoy.

Monday, May 26, 2008

Fedora 9: Disable IPv6 Completely

On previous post, I have covered on how to disable IPv6 on older Fedora versions. Considering major and rapid changes with Fedora rpm packages and installation manner, here again a quick post on how to disable IPv6 completely.

Disabling IPv6 protocol is only recommended if your network is not using IPv6 IP addresses and/or you are not offering any IPb6-based host services. I have heard stories about IPv4-based networks making their network a little bit slower than normal when IPv6 IP address is being enabled from their hosts. If you wish to disable your IPv6, read on.

Fedora 9: Disabling IPv6 Protocol Completely

1. Append the below lines to /etc/modprobe.d/modprobe.conf.dist using your favorite text editor

alias ipv6 no
alias net-pf-10 off

IPV6 slows down the IPV4 environment if the router out the door does not understand IPV6 and for most people IPV6 is not needed.

2. Append the below lines to /etc/sysconfig/network

NETWORKING_IPV6=no

and from the same above file, make sure that you comment out or insert a # (sharp) sign before the word IPV6_DEFAULTGW that would make it look like

#IPV6_DEFAULTGW

3. Edit /etc/hosts and comment out the lines that shows

::1 localhost6.localdomain6 localhost6

to reflect

#::1 localhost6.localdomain6 localhost6

and restart your network service like so

# /sbin/service network restart

4. Save all changes and restart your Fedora box. Welcome to IPv6-less host club.

Enjoy.

Related Articles:
Enabling and Disabling Telnet Services
Additional SSH User Login Restrictions
Fedora First Boots
Administration and Management of Daemon Services

Fedora 9: Drumrolls with Linux Hydrogen

Fedora 9 includes more than 15,000 ready to install rpm packages. These rpm packages can be easily fetched using the Fedora's yum installer that install the needed application's dependencies as well. Fedora and Redhat rpm packages covers from simple linux binary tool, publishing tool to music and video editing applications. One of the great music tools Fedora is comprised of is Hydrogen.

Hydrogen is an advanced drum machine for GNU/Linux. It's main goal is to bring professional yet
simple and intuitive pattern-based drum programming. Hydrogen has user-friendly, modular, fast and intuitive graphical based interfaced powered by QT 3. This makes music operation easy as point, drag and click which gives great operational confidence of a user to the said software.


Besides from this, hydrogen covers a lot of features namely

* Sample-based stereo audio engine, with import of sound samples in .wav, .au and .aiff formats.
* Support of samples in compressed FLAC file.

Sequencer and mixer

* Pattern-based sequencer, with unlimited number of patterns and ability to chain patterns into a song.
* Up to 64 ticks per pattern with individual level per event and variable pattern length.
* 32 instrument tracks with volume, mute, solo, pan capabilities.
* Multi layer support for instruments (up to 16 samples for each instrument).
* Ability to import/export song files.
* Unique human velocity, human time, pitch and swing functions.
* Multiple patterns playing at once.

Other

* JACK, ALSA, PortAudio and OSS audio drivers.
* ALSA MIDI and PortMidi input with assignable midi-in channel (1..16, ALL).
* Import/export of drumkits.
* Export song to wav file.
* Export song to midi file.

Fedora 9: Hydrogen Installation
To install hydrogen to Fedora 9 sulphur, simply issue yum like so

# yum -y install hydrogen

Sample Screnshot:


More documentation can be found here.
Thanks to http://www.hydrogen-music.org/

Sunday, May 25, 2008

Fedora 9: All in One Kopete Messenger Installation

I am sure almost everybody of us have heard the linux multi-messenger alternative, that comes with KDE environment. If you have not installed KDE as one of your alternative X logon environment, chances are kopete and its dependency libraries were not installed.

KDE and the Kopete developers had made and improved a lot of messenger's feature and intuitive interface design. One noticeable changes was the usage and management of messenger's avatar images. Avatar images adds up some sweetness to application's taste that believed to spice up little of using the said messenger. Pop up menu interface on choosing messenger identity is also added from its main interface design, which complete removes the standy icon that always sits down at the bottom and right hand side of kopete.

Kopete currently supports more than 11 major messaging system that is currently available on different OS platforms. You get to enjoy these highlights when using kopete messenger. Just a simple account setup is the only thing needed on accounts creation. Account creation simply requires you to feed authentication details into kopete such as login username and password, which is easy from the most part and does not require you to install any modules or external application at all compared to different platforms.

All in all, kopete had made a tremendous improvement on making linux messaging system a much more enjoyable experience.

Now, here's how to install Kopete messenger with Fedora 9 OS.

FEdora 9: Kopete Messenger Installation

The installation is really simple. Launch yum to fetch all the kopete network library modules via yum as shown

# yum -y install kopete

Enjoy.

Friday, May 23, 2008

Fedora 9: Filezilla 3.0 Installation

One latest application that covered a nice interface and logic revamp besides from Firefox is Filezilla.

As we all know, Filezilla has been around for quite some time and had proven to be very stable,
flexibile and reliable FTP linux application - with multiple major features a FTP user is seeking for. Filezilla does not only transfer files using the traditional file transfer mode, but it makes use of multi-threading live transfer mode giving you more control and flexibility. Noticeable, major menus are still available while the transfer is in progress. This simply shows how effective and simple FTP file transfer and operations are on using Filezilla.

Filezilla FTP Features
FileZilla is a FTP, FTPS and SFTP client for Linux with a lot of features:

- Supports FTP, FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP)
- Cross-platform
- Available in many languages
- Supports resume and transfer of large files >4GB
- Easy to use Site Manager and transfer queue
- Drag & drop support
- Speed limits
- Filename filters
- Network configuration wizard


Fedeora 9: Filezilla FTP Installation

Worry not of dependency hell on rpm-based distro, yum solves it all. To install, simply

# yum -y install filezilla

and you're good to go.

Fedora 9: Root-Lock Your Desktop Screen

Am sure you have heard a lot of insecurities of running root as the default login user with GNOME or X. Maybe some Fedora users feel more in control of their system when running root as their default login user. Problem is, you cannot lock your desktop screen when you logged on as root.

Here's how to fix that.

Lock Desktop Screen While Being Root

Desktop screen can easily be secured and locked while you are gone and away from your desktop table by simply doing xlock fedora installation.

Xlockmore is a linux desktop screen saver linux application. Xlockmore helps securing your desktop privacy by locking and securing it with your screen saver with a username and passord. Xlock offers a lot of desktop screen saver ranging from bubbles, 3Ds, arts, animations and more. However, Xlock rpm package is not included with Fedora 9 shipments.

Fedora 9: Xlockmore Screen Installation

To install xlock more, simply launch yum to retrieve xlockmore from Fedora extra repos

# yum -y install xlockmore.i386 xlockmore-gtk.i386

Xlock Setup and Execution.


To create a single click xlock screen saver activation, create a shortcut by simply right-clicking the task bar and Adding a new shortcut command. Remember to supply a name to identify your shortcut. From there, the Xlock binary can be supplied by a similar binary command like

/usr/bin/xlock

You can supply xlock mode parameter as well, say for a pacman screen saver, the binary command should be like

/usr/bin/xlock -mode pacman

Click OK to save.

You can choose from several xlock screen saver mode shown below

ball    Shows bouncing balls.

bat     Shows bouncing flying bats.

biof    Shows 3D bioform.

blot    Shows Rorschachâs ink blot test.

bouboule Shows Mimiâs bouboule of moving stars.

bounce  Shows bouncing footballs.

braid   Shows random braids and knots.

bubble  Shows popping bubbles.

bubble3d Shows Richard Jonesâs GL bubbles.  May not be available depending on how it was configured.

bug     Shows Palmiterâs bug evolution and a garden of Eden.

clock   Shows Packardâs oclock.

coral   Shows a coral reef.

crystal Shows polygons in 2D plane groups.

daisy   Shows a meadow of daisies.

dclock  Shows a floating digital clock or message.

deco    Shows art as ugly as sin.

demon   Shows Griffeathâs cellular automata.

dilemma Shows Lloydâs Prisonerâs Dilemma simulation.

discrete  Shows various discrete maps.

drift   Shows cosmic drifting flame fractals.

cage    Shows the Impossible Cage, an Escher-like GL scene.  May not be available depending on how it  was configured.

euler2d Shows a simulation of 2D incompressible inviscid fluid.

eyes    Shows eyes following a bouncing grelb.

fadeplot Shows a fading plot of sine squared.

fiberlamp Shows a Fiber Optic Lamp.

fire    Shows a 3D fire-like image.  May not be available depending on how it was configured.

flag    Shows a waving flag image.  This may be text or a graphic image.  Default text is the hostname and operating system.

flame   Shows cosmic flame fractals.

flow    Shows dynamic strange attractors.

forest  Shows binary trees of a fractal forest.

fzort   Shows a metallic-looking fzort.

galaxy  Shows crashing spiral galaxies.

gears   Shows GLâs gears.  May not be available depending on how it was configured.

glplanet Animates texture mapped sphere (planet)

goop    Shows goop from a lava lamp.

grav    Shows orbiting planets.

helix   Shows string art.

hop     Shows real plane iterated fractals.

Success, have fun while your desktop screen saver is active.

Thursday, May 22, 2008

Fedora 9: Sun Java on Fedora 9 Install HowTo


Fedora keeps on getting better and better. Redhat hell-dummy package management is forever gone together with conflicting library modules and inconsistent library usage. This has been possible and now more effective handled by yum rpm package installer.

For you to be able to browse java-enabled websites on Fedora 9, here's a quick howto on Sun Java installation on Fedora 9. Read on.

Fedora 9: Sun Java Installation on Fedora 9

1. Download Sun Java.

Sun Java executable binary package can be downloaded here. Download the Linux RPM version (self-extracting file) with current version of jre-6u6-linux-i586.rpm.bin.

2. Extract and execute rpm package.

After successful download, as root simply follow as shown

# chmod 700 jre-6u6-linux-i586.rpm.bin
# ./jre-6u6-linux-i586.rpm.bin

Answer and agree with Java's terms and agreement before you can proceed with full installation.

3. By default installation, there's a some kind of browser glitch with the installation resulting to Firefox misbehaviour loading java-enabled sites. To globally fix this, simply

# cd /usr/lib/mozilla/plugins
# ln -s /usr/java/jre1.6.0_06/plugin/i386/ns7/libjavaplugin_oji.so

4. Restart Mozilla Firefox 3.0 browser (default) and you're good to go.

Success. Enjoy.

Related Posts:

Sun Java Installation on Fedora 8

Adobe Flash Plugin on Fedora 9

Java IcedTea on Fedora 8

Sun Java and Java IcedTea Simultaneous Installation

Fedora 9: Fix Embedded Youtube Video Browser Problem

Are you experiencing problems viewing youtube video using Firefox 3.0 browser from Fedora 9? Tired of thinkering why the embedded youtube videos are not showing up from your Firefox browser? Eager to fix and enable firefox embedded youtube / multimedia plugins?

Below is an embedded Fedora 9 youtube video. If you are not seeing the video below, read on to fix that.

Here's how to fix them. Here's a browser plugin that enables embedded multimedia and audio-enabled website.

Fedora 9: Mozpluger- Multimedia Browser Plugin Installation via Yum
MozPlugger is a generic Mozilla plug-in that allows the use of standard Linux programs as plug-ins for media types on the Internet.

Mozplugger project was created with the goal of providing a minimalist, clean and stable general purpose Mozilla plugin module that allows the user to embed and launch their favourite application to handle the various different types of media found on the Internet.

Simply proceed with yum to install the mozplugger multimedia

# yum -y install mozplugger

Mozplugger Local Installation

Mozplugger ships with Fedora ISO CD and DVD. Zoom in to Packages folder and you will noticed that Fedora 9 ships with mozplugger rpm packages. You can then install mozplugger addon using rpm installer like so

# rpm -ivh mozplugger-1.10.1-1.i386.rpm

Head on to Youtube and enjoy those multimedia videos now.

Wednesday, May 21, 2008

Fedora 9: Adobe Flash Plugin Installation with Firefox 3.0



Problems doing installation of Adobe Flash plugin into Fedora 9's Firefox 3? Read on.

We all know that Fedora 9 ships with the latest Firefox 3 internet browser as the default internet browser. By default Firefox 3.0 rpm package, Adobe flash browser plugin is not installed by restrictions. Now, here's how to install Adobe Flash plugin into your Firefox 3.0 browser.

Fedora 9: Adobe Flash Browser Plugin Installation

Adobe flash plugin can easily be installed using yum by following the below steps:

1. Head on to Adobe site and download the rpm package for Fedora. As of this posting, the current adobe flash plugin rpm version is

flash-plugin-9.0.124.0-release.i386.rpm .

2. After successful download, simply install Adobe flash plugin package via rpm package installer like so

# rpm -ivh flash-plugin-9.0.124.0-release.i386.rpm

3. Restart your firefox and enjoy surfing flash-enabled websites.

Thanks to Adobe.

Related Posts:


Sun Java Installation on Fedora 9

Java IcedTea Installation on Fedora 8

Sun Java and Java IcedTea Simultaneous Installation on Fedora

Fedora 9: Automatically Select Fastest Yum Repo Source

Ever experience a slow connection when doing yum installation? Heard the fuzz of slow yum updates and turtle-speed rpm queries?

Worry not, here's a quick sky post on how to make yum faster than its first-run speed.

One way to make yum to yum faster is to automatically select the nearest and available yum repo mirror list and sort them according to their yum rpm query speed. When installed, this yum addon actually sorts your repo mirror list based on your current geo IP address location and internet download speed from those yum repo lists.

Considering that you have successfully installed livna, read on.

Here's a quick post on how to make your yum operates and yum faster.

Fedora 9: Yum-FastestMirror Installation

Simply, install yum-fastestmirror using yum as shown

# yum -y install yum-fastestmirror

Success, enjoy new Fedora 9 rpm packages using yum add on.

Head on to Yum-fastestmirror site.

Related Posts:

How To Make Yum Download RPM Packages Faster on Fedora 8
How To Install Livna Repo on Fedora 9

Fedora 9: Livna Repo RPM Installation

Here goes my first blog post after Fedora 9 desktop installation.

First and foremost, my blog posting is now powered by Fedora 9 OS muscles. At last, I am again excited, happy to roam new stuff and enjoy more fun with Fedora Core 9 OS. Since its first launch of Fedora Core 1, the said OS had served me more nice desktop tweaks, learning curve tricks and server deeds. The need for me to trickle of twisting Fedora tricks is back again.

Yes, I have just installed Fedora Core 9 into one of my desktop systems and here goes my first posts from it. I hope you can go along with me as I travel this Fedora Core 9 linux road.

Why Livna, you say?

First, since this post is concerned about fedora applications as desktop its desktop nerves, there is a need to install livna yum repo.

How to install livna repo to Fedora 9?

Most likely, rpm.livna.org provides many useful packages that can not be distributed in Fedora (previously known as Fedora Core and Extras) for one reason or another, including multimedia applications such as xine, VideoLanClient, video drivers for ATI and Nvidia cards. Head on here to know the various benefits of having livna rpm repo into your Fedora 9 repo list.

Fedora 9 - Livna Repo Installation

1. To get the latest repo addon packages, simply install livna repo rpm. Head on here , choose Fedora 9 repository RPM as your selected download.

2. You can install it directly from linux terminal as shown

# rpm -ivh http://rpm.livna.org/livna-release-9.rpm

Success, we now have livna repo rpm installed into Fedora 9.

Enjoy.

Thursday, May 15, 2008

Fedora 9 Released



Been waiting for this for weeks. Am glad to announced that Fedora community had recently released its Fedora 9 OS.

Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.

The Fedora Project is out front for you, leading the advancement of free, open software and content.

What's new with F9 can be viewed here. Get your hot Fedora now.

Enjoy.

Tuesday, May 6, 2008

HowTo: Install YouTube Video Download in Fedora

This quick post should have been here since but I keep on forgetting to post this howto of downloading youtube via youtube downloader.

Download Videos from Youtube from Fedora box

Tired of watching and browsing the same old video files from Youtube? Do you wish to collect Youtube video clips of your favorite video files from youtube? Now, you can do it inside your Fedora box. If you wish to download video clip files from YouTube.com into your desktop, read on.

Youtube Download Installation

Simply install youtube video downloader called Youtube-dl. Youtube downloader is a command line-driven linux tool designed to download youtube videos into your desktop, you got it right. Download youtube videos from youtube into your Fedora box.

Simply folow this yum installation

# yum -y install youtube-dl

Youtube-Dl Usage

The video clip shown below is one of the fastest one-handed rubix cube solver that solves rubix cube in less than 18 seconds as you can see.



Now, if you with to download the above video using youtube video downloader, simply

# youtube-dl http://www.youtube.com/watch?v=vnRJROskpp4

File output would be saved as vnRJROskpp4.flv file format.

Play Youtube Video from your Desktop

To play video file from youtube, simply follow the vlc install procedures from here.
# youtube-dl http://www.youtube.com/watch?v=2BA9om9iy0c

Alternatively, you can use a browser to download youtube videos from here.

Enjoy viewing youtube video from your desktop!

Related Post:

How To Download MetaCafe/Google Video/YouTube Videos From Terminal

Non-Related Articles:
Real-Time 3D Earth Visualization
3D Earth and Sky Visualization
Scorched 3D Tank Game
3D Table Lawn Tennis Game
Warzone 3D Strategy Game
113 Amazing Fedora Games

Monday, May 5, 2008

HowTo: Install FFMpeg on Fedora Linux

FFMpeg is a complete and free Internet live audio and video broadcasting solution for Linux/Unix. It also includes a digital VCR. FFMpeg can encode in real time in many formats including MPEG1 audio and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.

FFmpeg can generate a lot of different types of multimedia files with a variety of audio and video codecs inside. Sometimes these formats do not adhere to "accepted" specifications. Many open source multimedia playback applications have been specifically tuned to play all manner of multimedia files, no matter how incomplete or broken. However, certain widespread, proprietary multimedia applications, such as Microsoft Windows Media Player and Apple's QuickTime Player, are a little more rigid in the types of files they will accept.

FFMPEG Fedora Installation

Fedora repo supports FFMpeg. To install, simply issue

# yum -y install ffmpeg

FFMPeg Usage

# ffmpeg -i inputfile.ext outfile.mov
# ffmpeg -i inputfile.ext outfile.mp4
# ffmpeg -i inputfile.ext outfile.mpg


To convert a movie file into a playable AVI file
# ffmpeg -i inputfile.ext -vcodec msmpeg4 -vtag MP43 -acodec mp3 outfile.avi

To use Microsoft MPEG-4v2 video
# ffmpeg -i inputfile.ext -vcodec msmpeg4v2 -acodec mp3 outfile.avi

To create MPEG file with MPEG-1 video and MP2 audio.
# ffmpeg -i inputfile.ext outfile.mpg

To convert FLV to MPG using ffmpeg
# ffmpeg -i inputfile.flv -ab 56 -ar 22050 -b 500 -s 320x240 outputfile.mpg

Yes, you can use MPEG to convert video files from one format to another format, with a different video quality and pass. File output from FFMpeg was also tested to work with Windows Media player, Apple Video Player, Quick Time players and more.

All is done.

Related Articles:
JPG to MPG in Fedora Linux
Linux Screencasting and Screen Recording
VCD/DVD Video Authoring Linux Tool
Amazing MultiMedia Browser Plugins

Wednesday, April 30, 2008

HowTo: Powerful Metric and Units Linux Conversion Tool

Does a scientific calculator scares you or your visitor aways from your seat? An online metric conversion site is miles away from your linux desktop internet connection? Worry not, here's a quick tip on how to have an offline metric conversion linux tool that could help most metric and scientific calculations that you might have. Read on.

Linux Metric Conversion Tool
On Fedora, there exist a linux application that can accomplish any metric conversion or most scientific calculations. This metric conversion linux tool can do a wide variety of mathematical conversion and calculations covering areas such as length, size, weight, time, linear, non-linear, speed, pressure, volume, temperature and more known mathematical unit conversions.

More specifically, this linux conversion tool can do 2439 units, 71 prefixes, 33 nonlinear units mathematical conversions in a flash!

What is Units

Units converts an amount from one unit to another, or tells you what mathematical operation you need to perform to convert from one unit to another. The units program can handle multiplicative scale changes as well as conversions such as Fahrenheit to Celsius.

Units Installation on Fedora
As small as 127K of bytes is needed to install units rpm on Fedora. Simply

# yum -y install units

If you want to the list of units this tool is capable of conversion, view /usr/share/units.dat.

Some sample usage:

# units 1hr+1minute seconds
result:

* 3660
/ 0.00027322404


The above basically means that 1 hour and 1 minute have 3660 seconds.

# units 3ft m
result:

* 0.9144
/ 1.0936133


More unit samples:

# units $5/yard cents/inch
# units 2btu+450ft lbf
# units 1/2kg kg/meter


Execute units without any parameters would give you interactive inputs and results like so

# units
You have: sqrt(acre)
You want:
Definition: 63.615034 m


Linux makes desktop operations complete. Enjoy!

Related Post:
Handy Network Linux Diagnostic Tool
Another GTK-based Linux Tool
Linux - Draw that thing from your Mind
Motion Picture and Animation Linux Tool

Tuesday, April 29, 2008

HowTo: Prevent Non-Root From Rebooting/Shutting Down The System

Have you experienced a scenario where your users make use of reboot or halt command? Did somebody user just reboot your own server? Do you want to prevent your users from shutting down your linux box or even rebooting it?

Here's a quick entry on how to prevent users from rebooting or shutting down your fedora linux box.

Prevent Non-Root From Using Reboot/Shutdown Commands

In order to avoid non-scheduled downtime of your linux box via reboot/halt/shutdown command usage by non-root users, carefully follow the below three steps

1. Edit /etc/inittab file, find the below line that says

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and edit the line to look like

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ca::ctrlaltdel:ech0 Reboot/Shutdown is not possible at this time.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2. Additionally, you can delete,rename, or move the files reboot, poweroff, and halt binary files from /etc/security/console.apps/ directory folder to another binary file names or to a different folder location.

3. Additionally, you can also remove, rename, or change file permissions to these files
/usr/bin/poweroff
/sbin/shutdown
/usr/bin/halt
/usr/bin/reboot

You can also apply these changes to folders where these binary resides, but be careful as some needed binaries are not suid-enabled and cannot be executed specially during boot time that might cause a problem to your setup. Alternatively, the renamed or moved binaries, or aliases can also be set to be immutable at your own discretion.

Take note that when renaming or moving binary files, make sure you remember their new names or command aliases. There are other patch up scenario to avoid users from executing them, but most likely the approach could be the same.

The above scenario are taken without any consideration to selinux settings, sudoers file or jailed ssh user environment or any X-based applications calling those mentioned root binaries.

Goodluck.

HowTo: UDP Connectivity Host Test

Are you wondering how would you be able to test and probe a port that listens for UDP connections? Or how would you test a listening UDP port?

How to test a listening UDP port

If you have managed to create a daemonized service that opens port for UDP connections, here's how to test that listening UDP port for UDP connections. Read on.

To test a listening UDP port, simply use nmap.

# nmap -p [port] -sU -P0 [host name | ip address]
# nmap -p 123 -sU -P0 example.com
# nmap -p 123 -sU -P0 123.123.123.123

From the command shown above, I am assuming that the host example.com is currently serving NTP service on UDP port 123.

Sample opened UDP port output:
~~~~~~~~~~~~~~~~~~~
Starting Nmap 4.52 ( http://insecure.org ) at 2008-04-29 10:56 WAT
Interesting ports on host.example.com (123.123.123.123):
PORT STATE SERVICE
123/udp open|filtered ntp
MAC Address: 00:02:A5:EC:00:8C (Compaq Computer)

Nmap done: 1 IP address (1 host up) scanned in 1.043 seconds
~~~~~~~~~~~~~~~~~~~

Not only you get to test and scan the UDP port, you also get the host's current MAC address.

If you have a closed UDP port, you should be seeing similar lines as shown
~~~~~~~~~~~~~~~~~~~
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
123/udp closed ntp
~~~~~~~~~~~~~~~~~~~

Goodluck.

Similar Posts:
Nmap Port Scanning
Install NMap GUI FrontEnd
List Out Opened Linux Ports
MAC Address Network Scan

HowTo: Secure SSH by Disabling Root Logins

Securing SSH is one major thing on server boxes regardless of server location. Here's one quick tip of adding security to your SSH connection by disabling any root logins.

How to secure SSH by disabling root logins?

To disable direct root logins, edit /etc/ssh/sshd_config file and replace this line

#PermitRootLogin yes

with the below line

PermitRootLogin no

Remember to remove the # comment character. Then restart SSH service

# service sshd restart

Quick tip, enjoy.

HowTo: Retrieve Current Latitude and Longtitude from Linux

Do you know your exact zone longitude and latitude coordinates? Knowing your current zone coordinates won't hurt a bit. Here's how to retrieve latitude and longitude coordinates inside your linux box via terminal.

To pinpoint your latitude and longitude of your current location from your Fedora box, follow the following command sample

How to Retrieve Latitude/Longitude Coordinates from Linux box

# grep -i manila /usr/share/zoneinfo/zone.tab
result:
PH +1435+12100 Asia/Manila

Legend:
First Column : Country Code
Second Column: Latitude and Longitude Coordinates
Third Column: Time Zone (usually following the continent/city format)

Let's try another one.

# grep -i singapore /usr/share/zoneinfo/zone.tab
# grep -i new_york /usr/share/zoneinfo/zone.tab

result:
SG +0117+10351 Asia/Singapore

That's it.

Friday, April 18, 2008

HowTo: Install Wallpapoz

What is Wallpapoz?

Wallpapoz application enables you to configure Gnome desktop wallpapers in unique way. You could have Gnome desktop wallpaper changes when the specified time has passed. The most important feature is you could have Gnome desktop wallpaper changes when you change workspace. This simply means you could group your wallpapers into specific workspace. Wallpapoz offers quick orientation cues where you are. You can manage it so when you change to first workspace, your desktop wallpaper will be picked from wallpapers group for that workspace. When you change to second workspace, it will be picked from wallpapers group for second workspace. So you could have situation like this. You change to third workspace and you will get cartoon desktop wallpaper (wallpapers group for that workspace consists of cartoon wallpapers only). You change to fourth workspace and you will get abstract desktop wallpaper (wallpapers group for that workspace consists of abstractwallpapers only). I think you get the idea. Off course you can disable this feature if you just want your desktop wallpaper changes when the specified time (specified by you) has passed and does not change when you change workspace.

Wallpapoz Run Time
Wallpapoz application consist of two programs.

First is "wallpapoz". "wallpapoz" is the program to make the configuration file. What wallpapers
do you want to use? It just like that. So before doing anything else, run this program first. The file configuration is located in $HOME/.wallpapoz/ .wallpapoz.xml. Although you can edit the file with text editor, I don't recommend it. If the file is corrupted, then remove it first before run
"wallpapoz" again. Don't run "wallpapoz" if the file is corrupted.

Second is the daemonized wallpapoz version. "daemon_wallpapoz" is the "real" program it self. The program will read the configuration file and will change the wallpaper if you change the work-
space or the specified time has passed (depended on your options in configuration file).

You can run the "daemon_wallpapoz" from "wallpapoz" program.You can terminate it too from there.
If you are happy enough, you can start automatically running this program when you load the gnome desktop by adding "daemon_wallpapoz" to gnome session start up program.

Wallpapoz Fedora Installation
Wallpapoz is python based linux application that can easily be installed into Fedora desktop via yum like so

# yum -y install walpapoz

Wallpapoz Webshots



Wallpapoz is here!

That is all folks. Check this out.

HowTo: Join Two Text Files with Common Columnar Field via Terminal

From my recent post, we have covered to merge data contents two text files without a common columnar field. We have also covered joining two text files into one text file separated by a delimiter character. Now, from this post, we are going to go thru merging two text files with a common columnar field. Read on.

HowTo: Join Two Text Files with Common Columnar Field via Terminal
Say we have two text files, namely test1.txt and test2.txt, with data content as follows

# cat test1.txt
first Fedora
second Redhat
third CentOS


# cat test2.txt
first Core 9
second Enterprise Version
third Free OS


Now, the simplest approach to merge data contents of text-based file is by using linux join command like so

# join test1.txt test2.txt
result:
first Fedora Core 9
second Redhat Enterprise Version
third CentOS Free OS


As you noticed, the two text files are basically merged using the common columnar fields namely first, second and third words.

To make it a little bit complex, here we would be joining the first field of the first text file with the second field of the second text file, that would simply be

# join -o 1.1 -o 2.2 test1.txt test2.txt
result:
Fedora Core
Redhat Enterprise
CentOS Free


The above join command matched the first field of first text file with the second field of the second text file.

Here's another one matching the second columnar data field of the first text file with the third columnar field of the second text file.

# join -o 1.2 -o 2.3 test1.txt test2.txt
result:
Fedora 9
Redhat Version
CentOS OS


Basically, using this approach, text files with and without common field can be joined and merged together with or without consideration to specific field columns,and saved to as another set of data text file. This could also be useful to UNIX text files mostly used by banks and to text files that needs to be merged and joined for a common data use.

Cool. Today is Friday, have a nice weekend!

If you have just subscribed recently and you are new around here, here are my old linux quick tips.
50 Quick Linux Terminal Command Tips Part 1
50 Quick Linux Terminal Command Tips Part 2
50 Quick Linux Terminal Command Tips Part 3
50 Quick Linux Terminal Command Tips Part 4

And if you are more on linux gaming, check out these 113 amazing fedora games. Thanks!

Wednesday, April 16, 2008

HowTo: Copy and Paste A Text File into Another Text File via Terminal

Yes, you read correct. This time around, we are going to paste data content of one text file into another text file and we are going to approach this issue using linux command via terminal. This one could be easily done inside X or GNOME, but let us assume we are going to do it from a linux system without X, say server or remote non-X linux box, something like that.

Let's start.

Let us view two example of text files namelyh textfile1.txt and textfile2.txt

# cat textfile1.txt
RedHat
Fedora
CentOS

# cat textfile2.txt
Enterprise Version
Core Version 9
Linux Distro


Now, let us merge or combine two text files using the linux paste command

# paste textfile1.txt textfile2.txt
result:
RedHat Enterprise Version
Fedora Core Version 9
CentOS Linux Distro


Making it permanent as file would be as easy as

# paste textfile1.txt textfile2.txt > output.txt

Did you noticed that the contents of textfile2.txt was merged with the data contents of textfile1.txt? Noticed also the fixed columnar width making the 2nd column word vertically aligned.

Merging two text file using paste could be very useful on specific scenarios of merging related data contents.

Here's another scenario.

# cat test1.txt
Citybank
Citybank
BPI Bank
Citybank

# cat test2.txt
New York, USA
San Francisco, USA
Manila, Philippines
London, UK

Again, using paste to merge contents of first file and second text file

# paste test1.txt test2.txt
result:
Citybank New York, USA
Citybank San Francisco, USA
BPI Bank Manila, Philippines
Citybank London, UK

If you want to insert a delimeter character between two columnar data or data field, that could be done using the same linux paste command like so

# paste -d", " test1.txt test2.txt
result:
Citybank,New York, USA
Citybank,San Francisco, USA
BPI Bank,Manila, Philippines
Citybank,London, UK


Neat and nice, isn't it? Hope you enjoy it, and oh, it was an old idea reminded to me by pinoyskull.

Merging two text files with a common field or column marker would be my next post, so watch out for it. And sorry for late updates, been very busy these past few weeks.

Related Posts:
Merging Linux Non-Text and Binary Files
Concatenating Multiple Linux Files
Simple Linux Text Line Formatter
Math the Beauty and Linux the Beast
Retrieve MySQL data via Bash Shell

Saturday, April 12, 2008

HowTo: Install Ioncube PHP Encoder/Decoder

Are you a PHP geek coder by profession or by hobby? Do you ever wish to hide your PHP source codes but still sell it to the market without even buyers having to view your PHP source codes?

If your intention is to hide PHP codes of your work and still distribute it, read on.

How To Install IonCube PHP Encoder in Fedora 8

1. Register and download the latest Ioncube PHP Encoder from here. We are going to go through installing Ioncube PHP Encoder via .tar.gz installation method.

2. Unpack the files and copy to default PHP module folder location like so

# tar ioncube-encoder.tar.gz
# cd ioncube

Copy the latest .so file into your PHP module folder like so

# cp ioncube_loader_lin_5.2.so /usr/lib/php/modules/

The module name, module version and PHP module folder could be different from your platform.

3. There are two ways to install Ioncube PHP Encoder, one is via PHP. Edit your /etc/php.ini
After the line [PHP], insert the next line

zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.2.so

Save and exit.

4. Now, if you are serving your web pages from /var/www/html/test1 , simply copy

# cp ioncube-encoded-file.php /var/www/html/test1
# cp ioncube-loader-helper.php /var/www/html/test1

5. Restart Apache and browse the above two Ioncube PHP Encoder PHP test files

# service httpd restart

If you installation is successful, you should be seeing similar lines like

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This file has been successfully decoded. ionCube Loaders are correctly installed.
An ionCube encoded file has been loaded successfully.
Encoded files should now function correctly.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If Ioncube encoder tells you that your code has expired, simply re-register and download a new copy of the Ioncube PHP encoder file for evaluation purposes.

If problem persist, consult Ioncube but basically, browsing ioncube-loader-helper.php should be helpful enough.

Get a grip of Ioncube here. That is all, enjoy the weekend.

Wednesday, April 2, 2008

HowTo: Identify your IPv4/IPv6 Loopback Address

Most likely, administrators are familiar with IPv4 and IPv6 loop back address. The need to identify and reach IPv4/IPv6 loop back IP addresses remains basic but a need to know knowledge.

Here's a quick entry on how to identify IPv4/IPv6 loop back address status. Read on.

IPv4 Loop back Address

IPv4 loopback address typically refers to your network interface IPv4 loop back address. Here's how to identify and test your loopback address from linux terminal.

# ping localhost
# ping 127.0.0.1

The above ping commands gives you similar lines shown below

64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.026 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.026 ms

More detailed explanations of ping results has been bloged here.

IPv6 Loop Back Address

The loopback address on an IPv6 network however is 0:0:0:0:0:0:0:1 which is basically abbreviated as ::1. If you want to test your network interface from your platform where IPv6 is enabled by default, you can type

# ping ::1

That is all, thanks.

Tuesday, April 1, 2008

HowTo: Get Disk, Partition And Folder Space Usage

Quick and brief.

Here's a swift blog entry on how to retrieve and get disk usage of the following items:

a. directory folder
b. mounted disk partition
c. disk

To get the disk usage of a folder and return a human readable summarized usage

# du -sh /folder1
# du -sh /folder1/folder2
# du -sh /folder1 /folder2


To get the disk usage of a mounted partition

# du -sh /mnt/windows
# du -sh /mnt/ISO
# du -sh /mnt/USB


To get the disk usage of each folder on current working directory

# du -sh .

To get the disk usage of a folder excluding specific files, like excluding all MP3 files.

# du -sh /folder1/folder2 --exclude='*.mp3'
# du -sh /folder1 --exclude='*.jpg'


To get the disk usage of disk partition or mounted partition

# df -ah
# df -ah /dev/sda1
# df -ah /dev/sda1 /dev/sda2


To get the default partition usage where a system user belongs to
# df -ah ~username

The above shows the total usage of the partition where the user's default home partition belongs to.

That is all. Enjoy.


Related Articles:
More Disk Usage on Linux
Monitoring Large MailBox Users
Linux Resource Monitoring Tool
Disk Report Usage Tool
Harddisk Monitoring Linux Tool
Watching How Linux Log File Grows

Sunday, March 30, 2008

Shell: Shortcut To Last Command Line Argument

Have you noticed at times that you have been entering same command line parameter over and over again during a certain portion of your shell works?
Have you ever been tired of entering the last command line argument over and over again?

Here's a quick and simple short tip on how to execute shortcut combination keys to make that long-typing parameter words easy to shell redo again.

If you were trying CD into a particular folder like

# cd /home/www/cpanel/com/level2/shared/customers/public_html
bash: cd: /home/www/cpanel/com/level2/shared/customers/public_html: No such file or directory

Now, enter the combination short cut keys for entering the last parameter like so

# mkdir !*
# cd !*
# ls -la !*

The above '!*' would be substituted by /home/www/cpanel/com/level2/shared/customers/public_html when executed by bash.

Wednesday, March 26, 2008

HowTo: Motion Picture Linux Paint and Retouching Tool

Have you been told that Holywood uses Linux tools and software too? Do you know one? Read on.

CinePaint is a painting and retouching tool primarily used for motion picture frame-by-frame retouching and dust-busting. CinePaint was used on THE LAST SAMURAI, HARRY POTTER and many other films. From The Last Samurai movie,CinePaint was used to add flying arrows. It's also being used by pro photographers who need greater color fidelity than is available in other tools.

CinePaint runs on all popular flavors of Linux and on Mac OS X as an X11 application. CinePaint for Windows is still on development as of this writing.

CinePaint is different from other painting tools because it supports deep color depth image formats up to 32 bits per channel deep. For comparison, GIMP is limited 8-bit, and Photoshop to 16-bit.

CinePaint was originally based on GIMP and consequently is a GTK1-based application. A new FLTK-based version of CinePaint, called Glasgow, is nearing alpha. There's also a new image core in development, called img_img, That will enable CinePaint to operate on images from the
command-line and to integrate with other projects such as Blender.

Top Reasons to Use CinePaint

1. Support for 8-bit, 16-bit and 32-bit color channels of deep paint.
2. High fidelity image file types such as DPX, OpenEXR and 16-bit TIFF. These files can't be opened in ordinary 8-bit image applications (e.g., GIMP) without crushing them.
3. High Dynamic Range. HDR images can go brighter than white. Ordinary images can't be brighter than a white sheet of paper (0=black, 1.0=white).
4. Gallery-quality printing. B&W photographs have only one color channel and degrade quickly when manipulated as 8-bit images. CinePaint has higher fidelity and offers a 16-bit printing path to the print-head using GutenPrint.
5. Color Management System. CinePaint uses LittleCMS.
6. Flipbook. Movie playback of short sequences of images in RAM.
7. Innovation. CinePaint offers features that go beyond ordinary painting tools.
8. It's used to make feature films at major studios.
9. Open Source. With various OSS licenses, because it uses code from various sources, including GPL, LGPL, BSD, and MPL.
10. Free.
11. Friendly professional developers. Polite discussion forums.
12. Being a CinePaint developer can be a good career move. CinePaint developers have gotten jobs at companies such as DreamWorks Animation, Sony Pictures Imageworks, and Apple.

Top Reasons Not to Use CinePaint

1. You're content with Adobe Photoshop, Corel Painter X, Corel Paint Shop Pro, GIMP, Krita, or Seashore.
2. No working Windows CinePaint version.
3. We're resolving build and packaging issues with the Mac version.
4. CinePaint originated as a rewrite of the GIMP 8-bit engine in 1998 and still superficially resembles GIMP. (CinePaint reuses code from many projects, not just GIMP.)


Cinema Paint Installation
Fedora Project supports Cinema Paint, and can be installed using yum like so

# yum -y install cinepaint

The above command downloads CinePaint binary installer which is about 5MB.

Binary CinePaint Launch

# cinepaint

At first run, the binary package prompts for installation folder destination, where in it will install itself. Simply supply your destination location.

If you deal on digital images, pictures, and photos on your daily basis, Cinema Paint is a great cool tool for you to start with for a better change. To know more of Cinema Paint and documentation, you can visit their site here.

CinePaint Webshots




Related Articles:
Image Magic with Linux ImageMagick
JPG to MPG and HowTo?
Web Photo Album from your Desktop
Mind-Mapping Labyrinth Linux Tool
GIF to PNG and HowTo?
Paint with Tux - TuxPaint
Website Thumbnail in Linux
Photos and Videos under the Hood

Thursday, March 13, 2008

HowTo: Convert First Letter of Dir Folder to Uppercase

Well, if we can convert the first letter of each lines from a text file, we can use the same approach to convert the first letter of a directory or folder name to its uppercase as well, simply add the linux mv command.

If you have hundreds of directory name in one location that starts their directory folder name with small letters, and you with to rename directory where its first letter is in uppercase form, read on.

With reference to recent post, here is a short entry where you can convert all first letter of all directory folder names into its uppercase form.

How To Convert First Letter of Directory Folder To Its Uppercase Form

Taking a longer approach would be like creating an executable bash shell script like so

# cat rename-folder.sh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash
ls -la | grep dr | grep -v "\." | awk '{print $8}' | while read -r FOLDER
do
newfoldername=`echo $FOLDER | sed -e 's/\(.\)\(.*\)/\u\1\2/'`
echo OLD Name: [$FOLDER] TO NEW Name: [$newfoldername]
# You know what to do from this line -
# Rename the old to new
# using mv linux command
done
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enjoy the weekend.

Wednesday, March 12, 2008

HowTo: Lightning Speed Big Claws

Who gets tired of Thunderbird and Evolution mail client software? How about, "You've Got Claws Mail!"

Do you want to try a new GTK+-based lightweight but heavy duty email client for linux?

Let's give Claws a shot.

What is Claws?

Claws Mail is an email client (and news reader), based on GTK+, which offers a lightweight, full featured, with wide array of email plugins for email clients. Claws provides quick interactive response, graceful, and sophisticated email client interface, grandma-type easy configuration, intuitive operation with abundant mail client features, mail extensibility, robustness and stability.

Claws' appearance and GUI interface are designed to be familiar to new users coming from other popular email clients, like Outlook users,Gmail users as well as experienced users. Almost all commands are accessible with the keyboard, just like the now popular GMail.

Email messages are managed in the standard MH format, which features fast access and data security. You'll be able to import your emails from almost any other email client, and export them just as easily how grandma does it.

Want more? Claws has lots of extra functionality, like an RSS aggregator, calendar, or laptop LED handling - these are provided by extra plugins.

Claws on Fedora
Yes, Fedora got it for you. Claws can easily be downloaded from Fedora repos using the old-timer Fedora rpm package installer called yum.

Claws Installation on Fedora

# yum -y install claws

Claws Plugins

Additionally, Claws supports a very wide array of mail client plugins. Some of these Claws plugins can be easily installed using yum and are listed below.

claws-mail-plugins-acpi-notifier.i386 : ACPI notification plugin for claws-mail
claws-mail-plugins-attachwarner.i386 : attachment warner plugin for claws-mail
claws-mail-plugins-att-remover.i386 : Attachments remover plugin for claws-mail
claws-mail-plugins-bogofilter.i386 : Bogofilter plugin for claws-mail
claws-mail-plugins-cachesaver.i386 : A cache saving plugin
claws-mail-plugins-clamav.i386 : Clamav antivirus plugin for claws-mail
claws-mail-plugins-dillo.i386 : Dillo HTML viewer plugin for claws-mail
claws-mail-plugins-fetchinfo.i386 : Inserts headers containing some download information
claws-mail-plugins-gtkhtml2-viewer.i386 : GTK Html Viewer
claws-mail-plugins.i386 : Additional plugins for claws-mail
claws-mail-plugins-mailmbox.i386 : Support for mailboxes in mbox format
claws-mail-plugins-newmail.i386 : Write a msg header summary to a log file
claws-mail-plugins-notification.i386 : New mail notifications
claws-mail-plugins-pdfviewer.i386 : PDF Viewer plugin for claws-mail
claws-mail-plugins-perl.i386 : Extended filtering engine
claws-mail-plugins-pgp.i386 : PGP plugin for signing and encrypting mail
claws-mail-plugins-rssyl.i386 : RSS plugin for claws-mail
claws-mail-plugins-smime.i386 : S/MIME signed and/or encrypted
claws-mail-plugins-spamassassin.i386 : Spamassassin plugin for claws-mail
claws-mail-plugins-spam-report.i386 : Report spam mail to various places
claws-mail-plugins-synce.i386 : Keeping the addressbook of a Windows CE device in sync
claws-mail-plugins-tnef.i386 : Tnef message parsing
claws-mail-plugins-vcalendar.i386 : vCalendar message handling

To install all of the above Claws plugins, simply
# yum -y install claws-mail-plugins*

Claws is fast and is convincing as an alternative linux mail client. You should try it, its pretty neat and very easy to get along with, no to mention a lot of plugins available for mail feature extensibility.

Claws Screenshot


Tuesday, March 11, 2008

HowTo: Convert First Letter of Text Line to Uppercase

Real quick and easy, I just need to drop it here as I was using it most of the times handling tens of thousand keyword text files.

If you need to convert the first letter of the word or first letter of a text line to its uppercase, read on.

Here's how to convert the first letter of a word from text files.

Say, we have thousands of text lines like
# cat testfile.txt
~~~~~~~~~~~~~~~~~~~~~~~~~
linux blog
sysad linux blog
systems admin blog
linux blogs
fedora blog
foss
gnu
...

...
gnome
redhat blog
linux blogging
~~~~~~~~~~~~~~~~~~~~~~~~~

and we wish to convert all first letters of each lines to its uppercase letter or capitalized form.

Am going to approach this using one of the powerful command-line drive linux tool called sed. Here's how it can be simply done.

# cat testfile.txt | sed -e 's/\(.\)\(.*\)/\u\1\2/'

Alternatively,

# sed -e 's/\(.\)\(.*\)/\u\1\2/' testfile.txt

which gives you a similar output like so
~~~~~~~~~~~~~~~~~~~~~~~~~
Linux blog
Sysad linux blog
Systems admin blog
Linux blogs
Fedora blog
Foss
Gnu
Gnome
Redhat blog
Linux blogging
~~~~~~~~~~~~~~~~~~~~~~~~~

Hope this helps, enjoy!

Some Articles

Why Choose Fedora over Ubuntu?
Fedora vs RHEL

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