Fedora iTOps Tube

Tuesday, April 10, 2012

Fantasy life fundamental key

I'll take her to go to the sea, and then we all fell down on the beach; I will take her to the phoenix town, then I don't have to paddle boat with a bamboo pole she play water; I'll take her to ice skating, and then we all crazy wrestling; I will take her to the river, and she was wearing big sun hat wearing the quicksand CaiQun, I still fishing; I will take her to the restaurant to eat small wine, and then a drink together sing together; I'll take her to drive, and she came to open to sit on my; I open SanXiang buy her LiangXiang, occasionally change to open; Designed for her to buy a SLR cameras, I ought to amateur photographer; At the same time buy two backpacks, together when prude backpackers; We wear the same hat wearing the same clothes in the same cell phone; We wear the sportswear hip-hop together with 2 B youth; She wears loose shirt I wear tight T-shirt; She when yellow hair girl I installed the old uncle; She when mature sister I pretend I take; I'll let her have a sentimental moved a comfort; I wish she had crazy passion have stories; Her tears I fragile hold she said all your man I in; I upset, she can be deactivated her bothersome and babyish; I said a you said two, don't indulge me; You shopping I pay, never to have opinions; We do not consider the future only live in the present; We have our ever-changing target and dream... ... Just find a can to reassure yourself and uneasy cent of her?




phpmyadmin

Hi,



I installed phpmyadmin for my mysql database. It is not running properly. when I entered this http://localhost/phpmyadmin

it shows an error. that means, source code of the web page is displayed.



how to overlook this problem.



my os is fedora 13 64 bit

browser: firefox 10



please help me.



henry




NIS and NFS

Hi,

I searched everywhere, but couldnt find an answer:

Im using NIS with ypbind to connect to our login-server and I also use NFSvia fstab to mount some network shares, including the one providing the user home folders. Now at boot time the nfs shares wont get mounted (i think because the nfs binding are made before the nis deamon is stared). So everytime I boot my computer i have to login as root, type "mount -a" and then i can login as user. Is there any way to change this?



From what I found out this has been reported at https://bugzilla.redhat.com/show_bug.cgi?id=201099 . But how do I change the order of the startup services and which service is used to mount nfs shares in fstab?




Install Tomcat And Deploy Web Applications With Rex


Install Tomcat And Deploy Web Applications With Rex




In this tutorial I will show you how to manage your Tomcat
installations and how to deploy Webapps in a repeatable way with Rex. In
this tutorial I will use Debian Squeeze, but Rex is also available for
other distributions.





Installing Alfresco 3.4.d On Fedora 15 (+ Tomcat + PostgreSQL)

Installing Alfresco 3.4.d On Fedora 15 (+ Tomcat + PostgreSQL)



This document describes how to install and setup Alfresco Content
Server Community Edition by "Alfresco Software inc." on a Fedora 15
based webserver from a WAR package on a Tomcat webserver with PostgreSQL
database as backend. This guide will not
only help install the product, but also understand why certain points
are done the way they are done (this is most helpful for users with
little or no knowledge who, like me some time ago, have only started
using Linux).





Installing Lighttpd With PHP5 And MySQL Support On Fedora 15

Installing Lighttpd With PHP5 And MySQL Support On Fedora 15



Lighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can install
Lighttpd on a Fedora 15 server with PHP5 support (through FastCGI) and
MySQL support.





Installing Apache2 With PHP5 And MySQL Support On Fedora 15 (LAMP)

Installing Apache2 With PHP5 And MySQL Support On Fedora 15 (LAMP)



LAMP is short for Linux, Apache, MySQL, PHP.
This tutorial shows how you can install an Apache2 webserver on a
Fedora 15 server with PHP5 support (mod_php) and MySQL support.





The Perfect Desktop - Fedora 16 i686 (GNOME)

The Perfect Desktop - Fedora 16 i686 (GNOME)



This tutorial shows how you can set up a Fedora 16
desktop (GNOME) that is a full-fledged replacement for a Windows
desktop, i.e. that has all the software that people need to do the
things they do on their Windows desktops. The advantages are clear: you
get a secure system without DRM restrictions that works even on old
hardware, and the best thing is: all software comes free of charge.





How To Upgrade From Fedora 15 To Fedora 16 (Desktop & Server)


How To Upgrade From Fedora 15 To Fedora 16 (Desktop & Server)



This article describes how you can upgrade your Fedora 15 system to
Fedora 16. The upgrade procedure works for both desktop and server
installations.





Serving CGI Scripts With Nginx On Fedora 15

Serving CGI Scripts With Nginx On Fedora 15



This tutorial shows how you can serve CGI scripts (Perl scripts) with
nginx on Fedora 15. While nginx itself does not serve CGI, there are
several ways to work around this. I will outline two solutions: the
first is to proxy requests for CGI scripts to Thttpd, a small web server
that has CGI support, while the second solution uses a CGI wrapper to
serve CGI scripts.





Editing Images With Pinta

Editing Images With Pinta


This article is about how to use the Pinta graphical editor to edit pictures and covers some of its most important features. Pinta is a lightweight image editor for Linux and is far more easier
to handle than Gimp but still has a large variety of tools and features
to use. It can be used for quick editing like resizing images or
adjusting the colours of photographs, but also for more professional
tasks which depend on layered images and more. It is a good mixture
between MS Paint and professional image editing tools and is
recommendable for most purposes of image-editing-everyday-use.





Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 15

Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 15



Nginx (pronounced
"engine x") is a free, open-source, high-performance HTTP server. Nginx
is known for its stability, rich feature set, simple configuration, and
low resource consumption. This tutorial shows how you can install Nginx
on a Fedora 15 server with PHP5 support (through PHP-FPM) and MySQL support.





Installing Apache2 With PHP5 And MySQL Support On Fedora 16 (LAMP)

Installing Apache2 With PHP5 And MySQL Support On Fedora 16 (LAMP)



LAMP is short for Linux, Apache, MySQL, PHP.
This tutorial shows how you can install an Apache2 webserver on a
Fedora 16 server with PHP5 support (mod_php) and MySQL support.





PDNSD HowTo - A DNS Caching Personal Server (Fedora 16)


PDNSD HowTo - A DNS Caching Personal Server (Fedora 16)



PDNSD is a non authoritative caching DNS server. It maintains a disk
cache of the queries that your system performs and subsequent queries
will be faster from the cache. It is safe enough to be used on a personal
Unix/Linux system as a home Desktop or a Laptop.





Enabling Compiz On A Fedora 16 GNOME Classic Desktop (NVIDIA GeForce 8100)

Enabling Compiz On A Fedora 16 GNOME Classic Desktop (NVIDIA GeForce 8100)



This tutorial shows how you can enable Compiz
on a Fedora 16 GNOME classic desktop (the system must have a 3D-capable
graphics card - I'm using an NVIDIA GeForce 8100 here). With Compiz you
can use beautiful 3D effects like wobbly windows or a desktop cube on
your desktop. I will use the free nouveau
driver in this tutorial instead of the proprietary NVIDIA driver.
nouveau is an accelerated Open Source driver for NVIDIA cards that
comes with experimental 3D support on Fedora 16 - on my test system 3D
support was working without any problems.





Installing Lighttpd With PHP5 And MySQL Support On Fedora 16

Installing Lighttpd With PHP5 And MySQL Support On Fedora 16



Lighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can install
Lighttpd on a Fedora 16 server with PHP5 support (through FastCGI) and
MySQL support.





Installing Cinnamon Desktop On Fedora 16 And OpenSuse 12.1

Installing Cinnamon Desktop On Fedora 16 And OpenSuse 12.1



This tutorial will show you how to install the Cinnamon desktop, Mint's new desktop
environment to be used in Linux Mint 13, on Fedora 16 as well as on OpenSUSE 12.1. Cinnamon concentrates on
holding on to classic design and functionality in times where Gnome 3
and Unity come up with different innovations to the user interface.





Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 16

Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Fedora 16



Nginx (pronounced
"engine x") is a free, open-source, high-performance HTTP server. Nginx
is known for its stability, rich feature set, simple configuration, and
low resource consumption. This tutorial shows how you can install Nginx
on a Fedora 16 server with PHP5 support (through PHP-FPM) and MySQL support.





Editcap Guide: 11 Examples To Handle Network Packet Dumps Effectively




 
Editcap utility is used to select or remove specific packets from dump file and translate them into a given format. Editcap does not perform packet captures like ethereal. Instead, it operates on the captured packets and writes some of the required packets into another file. We can pass various options to editcap to get our preferred packets.

In this article, let us review 11 practical examples on how-to use editcap to handle the packet dumps effectively.

Primary Purpose of editcap

Following are the main reason to use editcap command.

§  Divide a dump file into multiple files.

§  Select only the required packets.

§  Translate the capture file from one format to another.

§  Ability to read from a compressed dump file.

§  Make the job easier for network analyzer tool by loading only selective packets, instead of loading whole dump.

§  All feature results in less time consumption when processing or analyzing packets.


Let us assume the scenario where you have to analyze only some specific packet types in a huge dump file. In this situation, we cant use the network packet analyzer (wireshark or ethereal) to load the huge dump file in a single shoh, as it will be a CPU intensive process and the system may hang. Editicap utility makes the job easier by giving only relevant packets, so it could be loaded by network analyzer tool in quick time.

editcap is available in the wireshark package. Make sure wireshark/ethereal package is installed to use the editcap.
 

11 Practical Examples Of edicap Usage

Example 1: Discard set of packets from the beginning of input_dump file

The output_dump file will contain all packets except the first 10 packets.

# editcap -v input_dump output_dump 1-10

Example 2: Discard set of packets from the middle of input_dump file

The output_dump file will contain all packets except packets from 200 to 210.

# editcap -v input_dump output_dump 200-210

Example 3: Select multiple range of packets (from beginning and middle)

The output_dump file will contain first 10 packets and packets from 100 and 200.

# editcap -r  -v input_dump output_dump 1-10  100-200

Example 4: Change the encapsulation type of the capture file using option -T

By default the encapsulation type of the dump file is ether. The example below, translates the capture file into ieee-802-11-bsd format

# editcap -v -T  ieee-802-11-radiotap input_dump output_dump

Example 5: Process the compressed input_dump files

editcap automatically detects the compressed capture file formats. Currently it supports for the gzip format. In the example below, it takes packets from the compressed input file and writes the first 10 packets and the packets in-between 100 and 200 into the output_dump file.

# editcap -r -v input_dump.gz output_dump 1-10 100-200

Example 6: Extract packets between a specific timeperiod using option -A and -B

This example create the output_dump, which contains the packets that are captured between the time mentioned in option A and the time mentioned in option B.

# editcap -v -A "2009-02-11 11:26:30" -B "2009-02-11 11:27:00"  input_dump output_dump

Example 7: Change packet’s timestamp (reduce or advance) using option -t

To advances the timestamp of packets to one hour.

# editcap -t 3600 input_dump output_dump


To reduces the timestamp of packets to 30 minutes,

# editcap -t -1800 input_dump output_dump

Example 8: Remove duplicate packets from the output_dump file using option -d

The example below looks back the previous frames to find the duplication. Finally it gives the dump which does not contain duplication.

# editcap -v -d input_dump output_dump

Example 9: Truncate the packets to the specific length using option -s

Produces the ouptut_dump file with packets length limited to 100. This can be very helpful under lot of situations. For example, you can use this method if you want to get only the IP layer of all the packets and does not require other layer.

# editcap -s 100 -v -A "2009-02-11 11:26:30" -B "2009-02-11 11:27:00"  input_dump.gz output_dump

Example 10: Divide input_dump file into multiple files using option -c

Divide the single dump into multiple file and each contains specified number of packets.

# editcap -v -c 1000 input_dump output

 
If the input_dump contains 5000 packets, editcap will generate the following 5 different output files.

output-00000
output-00001
output-00002
output-00003
output-00004

Example 11: Remove certain bytes from the bottom of all packets using option -C

This example removes 10 bytes from every packets and writes into the output file. You can confirm this, by viewing the output file in wireshark, the frame layer of every packet will show “50 bytes bytes on wire, 40 bytes captured” (here the actual size of a packet is 50 bytes).

# editcap -C 10 input_dump output

 

 

7 Powerful Firefox Bookmark Add-ons To Enhance Your Browsing Experience


 

Like most of you, I’m a huge fan of Firefox and use it intensively both at home and work. There are lot of useful add-ons available for Firefox, which makes customizing the browser very easy. A while back we discussed about 7 Essential Firefox Security add-ons that will help you browse the internet securely.
 
In this article, let us discuss about 7 powerful Firefox bookmark add-ons along with screenshots that will enhance your browsing experience drastically.

Did I miss any of your favorite Firefox bookmark add-ons? Please leave a comment and let us know which one is your favorite Firefox bookmark add-ons from this list.
 

1. Foxmarks Bookmark Synchronizer

If you are using Firefox on multiple computers, Foxmark is an essential add-on. I use Windows laptop at work, Ubuntu laptop at home and Fedora server at home. On all these three systems the bookmarks on my Firefox browser is exactly the same. If I add a bookmark on my Firefox browser at work, Foxmarks syncs it across all my systems automatically.
 

Fig: Foxmarks Overview

 
Following are the main advantages of foxmarks:

§  Synchronize Firefox bookmarks across multiple systems

§  Backup your bookmark to a central server

§  View your bookmarks online anytime at my.foxmarks.com

§  Add tags while adding bookmarks

 
Password Synchronization is an optional feature that allows you to securely synchronize your saved passwords between your computers. With this feature, you can save your passwords at work and have them automatically available on your computer when you get home!
 
Foxmarks can also synchronize and backup your saved password. This is an optional feature that can be enabled if required. Please read Formarks wiki to understand this feature in detail.
 
To create a Foxmarks account, click on Tools Menu on the Firefox browser, -> Foxmarks -> Foxmarks Settings, which will display the Accounts Tab as shown below. Click on ‘Run Setup Wizard’ and follow the instructions.

 

Fig: Foxmarks Settings – Account Tab. (Tools Menu -> Foxmarks -> Foxmarks Settings)

 
If you are new to Foxmarks, this
 Video Tour will explain the details of how this add-on works.

2. Delicious Bookmarks

Delicious is the most popular social bookmarking site. For those who are used to the traditional way of organizing bookmarks using folders, delicious may be little different, where you should bookmark using tags. Once you get used to bookmarking using tags, you’ll never go back to organizing bookmarks using folder.
 
This add-on was developed by Yahoo!. After you’ve installed it, it will add the following three buttons on the Firefox tool bar next to the home button, as shown below.
 

Fig: Delicious Bookmark Buttons

 

1.    Bookmarks Button: This will open the delicious bookmark panel on the right side of the browser. To retrieve a bookmark, enter the tag in the search box in this side panel.

2.    Tag Button: When you are visiting a website, click on this button to bookmark, which will bring up the bookmark dialog as shown below, where you can add tags.

3.    Delicious Button: Clicking on this button will take you to delicious.com website, where it will display all your bookmarks.

 

Fig: Delicious bookmarks

 
You can also import your existing firefox bookmarks to delicious and share the bookmarks with your friends and family.
 
Get a
 Full Tour of delicious Firefox add-on.

3. Smart Bookmarks Bar

Smart bookmarks will save space on the bookmark toolbar by hiding bookmark names and display only the icons. When you mouse-over on a specific bookmark icon, it will display the full name of that particular bookmark.
 

Fig: Smart Bookmarks Bar displaying bookmark icons

 

Fig: Smart Bookmarks Options

4. ScrapBook

Following are few highlights of ScrapBook add-on:

§  Save a local copy of a webpage.

§  Save full or part of the webpage to your local system.

§  Specify whether you would like to download the image, music, movie or archive files that are located on a webpage that you are visiting

§  Perform a Full-text search on all the webpages that was captured

 
A new ScrapBook menu will be added to Firefox, which will give the following sub-menu items.

§  Capture Page

§  Capture Page As

§  Bookmark with Scrapbook

§  Capture all Tabs

§  Show in Sidebar

 
To get the ScrapBook option dialog, click on ‘Show in sidebar’ and click on the ‘Tools’ menu in the side bar and click on ‘Options”, which will display ScrapBook option dialog as shown below.

Fig: ScrapBook Options

5. Read It Later

Using Read It Later, you can save webpages to a reading list, which is different than bookmarking. For example, when you are visiting social media sites or news sites, you may not want to add all articles or news items to your bookmark. However, you may want to add it to your temporary reading list. Once you’ve read it, you can mark it as read, which will remove the news item from your reading list.  
You can also save the reading-list to your system for offline reading.
 

Fig: Read It Later reading list

The Read It Later Video Tutorial explains this in more detail.

6. UrlbarExt

This awesome add-on will add icons for the following features on the address bar.

§  Make Tiny URL

§  Copy URL

§  Search site

§  Go up

§  Tag pages easily

§  Navigate through sequential URL’s

§  View page cached version

§  Unblock filtered websites

§  Surf anonymously using online phproxy servers

 

Fig: UrlbarExt Address bar

 
Using the UrlBarExt option, you can choose what icons will be displayed on the address bar.
 

Fig: UrlBarExt Options

7. Fast Dial

Fast Dial is a visual bookmark. Install Fast Dial and press Ctrl+T to open a new tab in Firefix and launch the Fast Dial. You can also add “about:blank” as home page, to open Fast Dial while starting Firefox.
 
The Figure below shows how Fast Dial visual bookmark will look-like on a new Firefox tab, when you press Ctrl+T.
 

Fig: Fast Dial Visual Bookmark

 
Add a site to the Fast Dial visual bookmark using one of the following methods:

§  Right click on the website you are visiting and select ‘Add to Fast Dial’, which will add the website to one of the visual empty slots in the Fast Dial.

§  Click on one of the visual empty slots in the Fast Dial, which will prompt for the URL to be added.

 
You can also assign logos to the Fast Dial visual bookmark. There are lot of nice logos available from userlogos.org that you can use. Follow the steps below to add Google website to the Fast Dial and assign a logo.

§  Visit Google on your Firefox browser

§  Right Click on the Google home page and click ‘Add to Fast Dial’

§  Press Ctrl-T to open a new tab, which will display the Fast Dial page, where you’ll see Google home page added to one of the empty Fast Dial box

§  Right Click on the newly added Google box and select properties

§  Click on the advanced tab, that will display the dialog as shown in Fig below.

§  Click on the Finder-glass icon next to the Logo field, which will automatically go to userslogo.org and show the available Google logo. Download one of the logos you like and use it.

 

Fig: Add logo to Fast Dial

 

 

Linux NBD Tutorial: Network Block Device Jumpstart Guide


 
Network block devices are used to access remote storage device that does not physically reside in the local machine. Using Network Block Device, we can access and use the remote storage devices in following three ways on the local machine:

1.    SWAP

2.    File System

3.    RAW



NBD presents a remote resource as local resource to the client. Also, NBD driver makes a remote resource look like a local device in Linux, allowing a cheap and safe real-time mirror to be constructed.
You can also use remote machine storage area as local machine swap area using NBD.

To setup the NBD based file system, we need a nbd-server (on remote machine, where we like to access/create the content) and nbd-client (on local machine, where we like to access the remote storage device locally).

I. NBD Server Side Configuration Steps

1. Install nbd-server

If you working on Debian flavor, get the nbd-server through apt-get.

# apt-get install nbd-server

2. Create a file content

Create a file using dd as shown below.

# dd if=/dev/zero of=/mnt/dhini bs=1024 count=36000


Use mke2fs to make the /mnt/dhini as a filesystem.

# mke2fs /mnt/dhini


When you try to make /mnt/dhini as ext2 file system, you may get a warning message as show below. Press y to continue.

/mnt/dhini is not a block special device.

Proceed anyway? (y,n) y

3. Start the NBD Server Daemon

Syntax: nbd-server  port-number   filename/filesystem

 

# nbd-server 1043 /mnt/dhini


You can also run the nbd-server on multiple ports as shown below.

# nbd-server 1043 1077 1076 /mnt/dhini

You can also specify the timeout to make the server to run N idle seconds

II. NBD Client Side Configuration Steps

Perform the following steps in the client machine, where you like to access the remote storage device.

1. Install nbd-client

If you working on debian flavor, get the nbd-client through apt-get.

# apt-get install nbd-client

2. Using nbd-client create a filesystem on client machine

Syntax: nbd-client  server-ip  server-port#  filename/filesystem
 
# nbd-client 192.168.1.11 1043 /mnt/dhini
 
Starting NBD client process: Connecting...Negotiation: ..size = 36000KB
bs=1024, sz=36000
connected /mnt/dhini
Activating...
fsck 1.39-WIP (31-Dec-2005)
/mnt/dhini: Superblock last write time is in the future.  FIXED.
/mnt/dhini has gone 49710 days without being checked, check forced.
/mnt/dhini: |===============================| 56.0%
/mnt/dhini: |===============================| 100.0%


Once it gets to 100%, you will get the block device on your local macine on the same path.

$ls -lh /mnt/dhini
brw-r--r-- 1 root root 43, 0 2009-02-05 17:31 /mnt/dhini


If you face any issues during the NBD configuration process, you may also configure the nbd-server and nbd-client through dpkg-reconfigure.

III. Mount the File System on Client-side

# mkdir /rem_space
# mount /mnt/dhini /rem_space

Once mounted, you may get the directory with “lost+found”. You can start accessing the files and directories properly from this point.

IV. Get Client Changes on Server-side

Mount the nbd filesystem locally

# mount  -o loop /mnt/dhini /client_changes


If you are not using “-o loop” option, you may get the following error:

mount: /mnt/dhini is not a block device (maybe try `-o loop'?)


When you list the /client_changes, You will get all the client created files and directories properly.

V. Access Remote Storage as Local Swap Memory Area

Configuration On Server side:

1. Create a file

 

# dd if=/dev/zero of=/mnt/dhini bs=1024 count=16000

2. Instead of create a file in ext2 filesystem create it as swap file, using mkswap

 

# mkswap /mnt/dhini

3. Run the server daemon

 

# nbd-server 1043 /mnt/dhini

Configuration On Client side:

1. Get the filesystem as swap area

 

# nbd-client 192.168.1.11 1043 -swap  /mnt/dhini

2. Cross check using “cat /proc/swaps “. This will list the swap areas

 

$ cat /proc/swaps
Filename    Type       Size      Used    Priority
/dev/hda4   partition  650624     57732  -1
/mnt/dhini  partition  15992    0        -4