Wednesday, October 14, 2009

Using mplayer, find & play mp3 files from command line in Ubuntu Linux

Save precious CPU and memory by using mplayer to play mp3s, also keep your playlist file up to date with all your mp3 media files.
First and foremost we need to have mplayer installed, if your on a ubuntu-debian based system use the following commandto install mplayer, if not then you can download the appropriate packages and install them.

apt-get install mplayer

Lets make a home for our script file, and set the appropiate permissions

mkdir ~/scripts; touch ~/scripts/playme.sh; chmod +x ~/scripts/playme.sh; gedit ~/scripts/playme.sh

Paste the following code into your new script file, if you keep your Music files in a different location then change the variable musdir to match your setup.

#/bin/bash
#VARS###################################
tmpdir='/tmp'
musdir='/home/osamad/Music'
filename='playlist.m3u'
# CODE ##########################################
find $musdir -name '*.mp3' -o -name '*.ogg' 2>/dev/null >> $tmpdir/$filenamemplayer -playlist $tmpdir/$filename -shuffle -loop 0 -radio volume=80






Using find we build a list of all our mp3s, in this case we have multiple types of media files we want to play so we can specify that by adding the -o -name flags and add them in.
-playlist ;flag we set the playlist file we just created
-shuffle ; enables shuffle mode
-loop 0 ; enables loop 0=forever
-radio volume=80 ; set the default volume to 80% (use * or / to adjust when playing)

RunTime
Push ALT+F2 or launch from a terminal

./scripts/playme.sh





MORE
To find out more information, or to customize your mplayer settings
man mplayer
Create a custom launcher and run your script from the gnome-panel

.

Tuesday, October 13, 2009

Creative Sound Blaster Audigy series Audio Driver

Creative Sound Blaster Audigy is a driver providing Microsoft® Windows Vista® and Windows® XP support for Creative Sound Blaster® Audigy® series audio devices.
This download supports the following audio devices only:
* Creative Sound Blaster Audigy including Platinum and Platinum eX series

* Creative Sound Blaster Audigy 2 including Platinum, Platinum eX, and Value series

* Creative Sound Blaster Audigy 2 ZS including Platinum and Platinum Pro series

* Creative Sound Blaster Audigy 4 Pro and Sound Blaster Audigy 4

* Creative Sound Blaster Audigy 2 ZS Notebook PCMCIA


Added Features:
For systems using Windows Vista
* Dolby® Digital and DTS® decode re-established for sound cards that included decoding in their Windows XP drivers.

* DVD-Audio playback re-established for sound cards that included the application in their Windows XP software suite (For Windows Vista 32-bit only).Requires the latest Creative MediaSource DVD-Audio Player software.


Fixes:
* Resolves issues of intermittent and random application/system crash when playing games or running applications that use EAX®, DirectSound®, OpenAL and/or ASIO features.

* Resolves issue of system crash when running DTM - Device Path Exerciser test in Windows Vista 64-bit.

* Resolves issue of volume mapping leading to very soft volume level in systems using Windows Vista with Service Pack 1.

* Resolves issue with distortion and noise occuring in systems with 4 GB of RAM or greater.

* Resolves issue with OpenAL playback of multichannel formats.

* Resolves issue of system crash when performing immediate system shutdown after exiting Battlefield 2.

* Optimizations to OpenAL to improve performance in Unreal Tournament 3, DiRT, and other games.


Known Issues:
* Applications from the original Sound Blaster Audigy CD will not work with this download on Windows Vista.

* Users are advised to use Audio Console included in this download to change speaker configurations.

* Gameport is not supported in Windows Vista and Windows XP Professional x64 Edition.

* 6.1 speaker mode is not supported by Windows Vista.


Requirements:
* Windows Vista 64-bit, Windows Vista 32-bit, Windows XP Professional x64 Edition, Windows XP Service Pack 2 (SP2), Windows XP Media Center Edition (MCE) 2005 or Windows XP MCE 2004

* Creative Sound Blaster Audigy audio devices listed above.


Notes:
* DO NOT install this driver for Sound Blaster Audigy LS, Sound Blaster Audigy SE, or Sound Blaster Audigy Value.

* To install this driver1. Download the file onto your local hard disk.2. Double-click the downloaded file.3. Follow the instructions on the screen.

download now

Nvidia GeForce for Windows Vista/7 32/64-bit

Nvidia GeForce is a WHQL-certified driver for GeForce 6, 7, 8, 9, and 200-series desktop GPUs.
New in Release 181.22:
* This driver is recommended for the best GPU PhysX experience in EA’s hot PC title Mirror’s Edge.* This driver package automatically installs the new PhysX System Software version 9.09.0010.
New in all Release 181 drivers:
Exciting New Features:
* Added support for GeForce GTX 295 and GeForce GTX 285.

* Enables NVIDIA SLI technology on SLI-certified Intel X58-based motherboards with all SLI-certified GPUs.

* Enables NVIDIA SLI Multi-monitor support, giving you the ability to use two monitors with your GeForce graphics cards in SLI mode. Now you can easily switch between multi-monitor desktop mode and full screen 3D gaming mode. Learn more here.

* Enables NVIDIA PhysX acceleration on a dedicated GeForce graphics card. Use one card for graphics and dedicate a different card for PhysX processing for game-changing physical effects. Learn more here. (Note: GPU PhysX is supported on all GeForce 8-series, 9-series and 200-series GPUs with a minimum of 256MB dedicated graphics memory. This driver package automatically installs PhysX System Software version 8.10.13).

* Supports GeForce Plus Power Pack #2. Download these free PhysX and CUDA applications now!

* Added support for the new NVIDIA CUDA Video Encoder with H.264 optimization.

download-64bit-now

download-32bit-now

Nvidia GeForce for xp 32/64 bit

Nvidia GeForce is a WHQL-certified driver for GeForce 6, 7, 8, 9, and 200-series desktop GPUs.
Exciting New Features:
* Added support for GeForce GTX 295 and GeForce GTX 285* Enables NVIDIA SLI technology on SLI-certified Intel X58-based motherboards with all SLI-certified GPUs.* Enables NVIDIA PhysX acceleration on a dedicated GeForce graphics card. Use one card for graphics and dedicate a different card for PhysX processing for game-changing physical effects. Learn more here. (Note: GPU PhysX is supported on all GeForce 8-series, 9-series and 200-series GPUs with a minimum of 256MB dedicated graphics memory. This driver package automatically installs PhysX System Software version 8.10.13).* Supports GeForce Plus Power Pack #2. Download these free PhysX and CUDA applications now!* Added support for the new NVIDIA CUDA Video Encoder with H.264 optimization
Blazing Fast Performance:
* Boosts performance in numerous 3D applications. The following are some examples of improvements measured with Release 180 drivers vs. Release 178 drivers (results will vary depending on your GPU, system configuration, and game settings):o Up to 10% performance increase in 3DMark Vantage (performance preset)o Up to 13% performance increase in Assassin's Creedo Up to 13% performance increase in BioShocko Up to 15% performance increase in Company of Heroes: Opposing Frontso Up to 10% performance increase in Crysis Warheado Up to 25% performance increase in Devil May Cry 4o Up to 38% performance increase in Far Cry 2o Up to 18% performance increase in Race Driver: GRIDo Up to 80% performance increase in Lost Planet: Colonieso Up to 18% performance increase in World of Conflict
And More:
* Supports single GPU and NVIDIA SLI technology* on DirectX 9 and OpenGL.* Supports CUDA.*

download-32bit-now

download-64bit-now

Microsoft Intellipoint Driver

IntelliPoint software enables you to customize the unique features of your Microsoft mouse to fit your needs. With IntelliPoint mouse software, you can reassign each mouse buttonincluding the wheel buttonto perform a command or keyboard shortcut, like Undo, Close, or an application-specific function. You can also modify mouse settings, such as pointer speed and updated horizontal scrolling.
IntelliPoint 6.1 even offers biometrics support for advanced identity management. If you have a Bluetooth mouse or keyboard, you will need to have Windows XP with Service Pack 2 installed.
Compatible with:
* Wireless IntelliMouse Explorer for Bluetooth
* Wireless Optical Mouse Blue
* Optical Mouse Blue
* Wireless IntelliMouse Explorer
* Notebook Optical Mouse
* IntelliMouse Explorer
* IntelliMouse Optical
* Wheel Mouse Optical
* Wireless Wheel Mouse
* IntelliMouse
* Wheel Mouse
* Basic Mouse
* TrackBall Explorer
* TrackBall Optical
* IntelliMouse with IntelliEye
* Cordless Wheel Mouse

download-64bit-now
download-32bit-now



Google Talk

Google Talk is a lightweight Jabber-based instant messaging client with voice capabilities. Google Talk is easy and intuitive to use. All you need to make free calls is an Internet connection, a microphone, and a speaker. After you download Google Talk, sign in with your Gmail username and password. Invite your friends to download Google Talk, and once they do, you'll be able to talk or IM with them instantly.Google Talk currently does not encrypt chats or calls. When you use Google Talk, you can choose to have your IM chats stored locally on your own computer so that you have a chat history. Google does not collect the content of instant message chats or voice conversations.

download now

Realtek AC'97 Drivers A4.06

Realtek AC'97 Drivers A4.06 This driver supports all ALC series audio chipsets from ALC101 up to ALC861. It is used as onboard sound on many motherboards. Chips covered include ALC101 /201/ 202/ 203/ 250/ 650/ 653/ 655/ 658/ 861.The package includes: Driver/Application Setup Program; RtlRack for Win98/Me/2000/XP and AvRack for Win95/NT4; Realtek Sound Effect Manager.Windows 98Gold/98se/Me/2000/XP/2003(32/64 bits) for Driver only. For Windows 98 SE, DirectX(R)8 is required to enable advanced features.This is a general audio Realtek driver and may not offer the customizations made by your system/motherboard manufacturer. To be sure you obtain the full features/customizations provided in your original audio product, please download the latest drivers from your system/motherboard manufacturer's website.

download now


Adobe PhotoShop CS3

Adobe PhotoShop CS3
If you use images to communicate or gather and analyze information, then download a FREE trial of the Adobe Photoshop CS3 software and experience the power first-hand. Whether you're simply retouching or optimizing an image or building complex composites or animations, you'll have the power and precision you need for superior results. New features include simplified file handling with Adobe Bridge, revolutionary Vanishing Point, Multiple Layer Control, Smart Objects, Multi-image Raw Processing, Image Warp, Advanced Noise Reduction, 32-bit High Dynamic Range Support, Customizable Workspaces and Menus, Spot Healing Brush, One-click Red-eye correction. Make your vision a reality. Learn more about Adobe Photoshop CS3 and try it now for free.

download now




Easy GIF Animator

Easy GIF Animator is powerful yet very easy to use software for creating and editing animated GIF images. With this animated GIF editor you can easily create animated pictures, banners and buttons in no time. You can use special features to add stunning visual effects, reduce file size and prepare your animation for publishing on your web page.
download now



Linux Networking Setup

Linux Networking Setup

To enable networking, you must configure your network interface card or cards with an IP address and netmask. The kernel must have support for your cards compiled in, either as modular support or direct support. If you don't have kernel support read the sections about the kernel and how to compile it. To set your cards up, do the following.

example:
192.168.1.0, IP=192.168.1.100, broadcast=192.168.1.255, netmask=255.255.255.0, gateway-192.168.1.1, nameserver=192.168.1.10.
Determine your machines IP address from your network administrator
Your network mask. This determines which portion of the IP address specifies the subnetwork number and which portion specifies the host.

Class C (most networks) 255.255.255.0
Class B 255.255.0.0

Your network address which is your IP address bit wise anded with the network mask.

Ex: IP: 192.168.1.100 Mask: 255.255.255.0 Net Addr:: 192.168.1.0

Your broadcast address. Used to broadcast packets to every machine on your subnet.

Ex: IP: 192.168.1.100 Mask: 255.255.255.0 Net Addr: 192.168.1.255
Your gateway address. The address of the machine that is your gateway to the outside world.
Ex: IP: 192.168.1.100 Gateway: 192.168.1.1

Your nameserver address. Translates host names into IP addresses. 192.168.1.10

Configuration tools
There are many network configuration tools today. They are:
netconf A GUI interactive interface available on Redhat 6.1
linuxconf A GUI interactive interface available on Redhat 6.1 which includes netconf configuration.
netconfig A GUI step by step interface
ifconfig A text based program to configure the network interface. Type "man ifconfig" for info.
These programs will modify values in the following files:

/etc/sysconfig/network - Defines your network and some of its characteristics.
/etc/HOSTNAME - Shows the host name of this host. IF your name is "myhost" then that is exactly the text this file will contain.
/etc/resolv.conf - Specifies the domain to be searched for host names to connect to, the nameserver address, and the search order for the nameservers.
/etc/host.conf - Specifies the order nameservice looks to resolve names.
/etc/hosts - Shows addresses and names of local hosts.
/etc/networks - Provides a database of network names with network addresses similar to the /etc/hosts file. This file is not required for operation.
/etc/sysconfig/network-scripts/ifcfg-eth* - There is a file for each network interface. This file contains the IP address of the interface and many other setup variables.

Analysis Tools
netstat - Displays information about the systems network connections, including port connections, routing tables, and more. The command "netstar -r" will display the routing table.
traceroute - This command can be used to determine the network route from your computer to some other computer on your network or the internet. To use it you can type "route IPaddress" of the computer you want to see the route to.
nslookup - Used to query DNS servers for information about hosts.
arp - This program lets the user read or modify their arp cache.
tcpdump - This program allows the user to see TCP traffic on their network.
dig(1) - Send domain name query packets to name servers for debugging or testing.

Manual Configuration
You can use one of the above tools or configure the network the old fashioned way as follows:
First to use networking on any permanent basis you should setup the file /etc/sysconfig/network similar to the example shown below.
Assign an ip address with "ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up".
Tell your machine that a hub is ready for information with the command "route add -net 192.168.0.0 netmask 255.255.255.0 eth0"
To contact hosts outside your network if a machine with IP address 192.168.1.1 is the gateway use the command "route add default gw 192.168.1.1 eth0"
If using a dialup connection use the command "route add default ppp0" The word default says if the packet is not for a machine on your local network, send it to the default device.
These settings are not permanent, but go away the next time you boot. They are normally set up in the directory /etc/sysconfig/network-scripts. Add the network interface to the file /etc/sysconfig/network-scripts/ifcfg-eth*. For example the file ifcfg-eth0 if for the first ethernet interface, ifcfg-eth1 for the second, ifcfg-lo is for the local interface. An example file from my system is:

DEVICE="eth0"
IPADDR="192.168.1.100"
NETMASK="255.255.0.0"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

Unless you know what you're doing it is best to use a network configuration tool. I cannot guarantee the accurateness of how to set these files up on your system.
Configuring an interface for multiple IP addresses
If you want to configure your network card to act as more than one IP address, issue the following command:
ifconfig dummy 192.168.1.102 netmask 255.255.255.0
This uses the dummy system interface capability supported in the kernel to setup another virtual interface which operates at IP address 192.168.1.102. Substitute the IP address that you want your virtual interface to be with an appropriate netmask for your network. To disable this, issue the following command.
ifconfig dummy down
Another way to use multiple IP addresses on one ethernet card is to set up a new file in your /etc/sysconfig/network-scripts directory. Copy your ifcfg-eth0 role to ifcfg-eth0:0. Edit that file and rename the device to "eth0:0" and the IP address to the desired IP address. You may also want to modify BROADCAST, NETWORK, or NETMASK. You can continue adding IP addresses by using :1, :2, etc such as ifcfg-eth0:2.
To make it effective, you must reboot your system or issue the command "/etc/rc.d/init.d/network restart" as root.
Dynamically allocated IP addresses
To get the IP address of a dynamically allocated network interface in a script file enter the following:
dynip=`/sbin/ifconfig grep -A 4 ppp0 awk '/inet/ { print $2 } ' sed -e s/addr://`
Substitute the correct interface that you get your dynamic IP address in for ppp0 in the example above. This script line gets your dynamic IP address for use in a masquerade script. You can use the variable $dynip as in any other configuration. The next time you make a new connection you will need to extract the dynip value again and re-run the masquerade script.
Networking file formats, examples and considerations
Below are listed some more in depth information about the networking files.
/etc/sysconfig/network
The /etc/inittab file contains the entry "si::sysinit:/etc/rc.d/rc.sysinit" which causes the system at startup to run the rc.sysinit script. The rc.sysinit file expects to find the file /etc/sysconfig/network if networking is to be enabled.
The network file looks like this:

NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=mymachine.mycompany.com
DOMAINNAME=mycompany.com
GATEWAY=192.168.1.1
GATEWAYDEV=eth0
Where GATEWAYDEV is the network interface card that is attached to the network the gateway machine is on. The GATEWAY is the actual IP address of the gateway machine.
/etc/hosts - Defines local hosts.
127.0.0.1 localhost localhost.localdomain
192.168.1.100 mymachine.mycompany.com mymachine
/etc/services - Internet network services list. It associates port numbers with names of services. The file contains three fields which are name, port/protocol, and aliases with an optional comment.
/etc/protocols - Describes DARPA internet protocols available from the TCP/IP subsystem. Maps protocol ID numbers to protocol names. It includes protocol name, number, and aliases. The protocol file on my system:
# /etc/protocols:
# $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $
#
# Internet (IP) protocols
#
# from: @(#)protocols 5.1 (Berkeley) 4/17/89
#
# Updated for NetBSD based on RFC 1340, Assigned Numbers (July 1992).
ip 0 IP # internet protocol, pseudo protocol number
icmp 1 ICMP # internet control message protocol
igmp 2 IGMP # Internet Group Management
ggp 3 GGP # gateway-gateway protocol
ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'')
st 5 ST # ST datagram mode
tcp 6 TCP # transmission control protocol
egp 8 EGP # exterior gateway protocol
pup 12 PUP # PARC universal packet protocol
udp 17 UDP # user datagram protocol
hmp 20 HMP # host monitoring protocol
xns-idp 22 XNS-IDP # Xerox NS IDP
rdp 27 RDP # "reliable datagram" protocol
iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4
xtp 36 XTP # Xpress Tranfer Protocol
ddp 37 DDP # Datagram Delivery Protocol
idpr-cmtp 39 IDPR-CMTP # IDPR Control Message Transport
rspf 73 RSPF #Radio Shortest Path First.
vmtp 81 VMTP # Versatile Message Transport
ospf 89 OSPFIGP # Open Shortest Path First IGP
ipip 94 IPIP # Yet Another IP encapsulation
encap 98 ENCAP # Yet Another IP encapsulation
/etc/named.conf - Used for domain name service to configure named. Other files used are dependent on this file. This file is explained further in the DNS section
/etc/resolv.conf - Specifies the domain to be searched for host names to connect to, the nameserver address, and the search order for the nameservers.
domain mycompany.com
search mycompany.com mynet.net
nameserver 192.168.1.100
nameserver 192.168.199.1
nameserver 192.168.1.10
The third line specifies that DNS should be tried on my machine first then use the normal nameserver on the fifth line. The fourth line specifies that my machine is running nameservices on another network which is using interface 192.168.199.1. This assumes the nameserver is set up on my machine which is explained in another section.
/etc/host.conf - Specifies the order nameservice looks to resolve names. An example file:
order hosts, bind
multi on
nospoof on
The order specifies that when resolving names to first look in the /etc/host file, then use BIND8 (DNS) to resolve the name. The line "multi on" specifies that all valid addresses for a host found in the hosts file should be returned.
The files in /etc/sysconfig/network-scripts control your network interfaces. The network interface file is described above in the section "Manual Configuration". If you want or need more in depth knowledge about how these files are used, you will need to read the document "How Linux Works CTDP Guide" or "The CTDP Linux Startup Manual". Otherwise you will need to analyze the system startup scripts which is no small task.

Xwindows a working configuration is set up as follows:

NAMES:
hostname: mymachine.mycompany.com
Domain: mycompany.com
Nameservers: 192.168.1.10

HOSTS:
IP - 192.168.1.100
Name - mymachine.mycompany.com

INTERFACES:
Interface - eth0
IP- 192.168.1.100
proto - none
atboot - yes
Netmask: 255.255.255.0
Network: 192.168.1.0
Broadcast: 192.168.1.255

ROUTING:
Default gateway: 192.168.1.1
Default gateway device: eth0
Interface - 192.168.1.100
Network Address - 192.168.1.0
Network gateway 192.168.1.1
Netmask - 255.255.255.0
Routing
Routing table information is used to route incoming and outgoing network diagrams to other machines. On most simple configurations, there are three routes. One for sending packets to your own machine, one for sending packets to other machines on your network and one for sending packets to other machines outside your network through the gateway. Two programs (ifconfig and route) are used to configure these parameters. They are described in more detail in the routing section.

.

Saturday, October 10, 2009

Microsoft Office 2003

Microsoft Office 2003: You can run this application on Windows 2000, 2003, XP and Vista. Office 2003 has significant improvement on security and better stability. This service pack combine the fixes included with SP2 together into one update. The updates including the following programs of 2003 :
Microsoft Office Professional Edition 2003, Small Business Edition, Standard Edition, Basic Edition, Excel, FrontPage, Access Runtime, Access, PowerPoint, Word, Publisher, InfoPath, Outlook and Web Components.

download now

Youtube downloader

Youtube downloader: Easily download videos from famous Youtube dot com with this freeware. It is simple to use you just copy the web page URL address of the online video. Click on the URL button and paste the the copied web address into the provided box and click the Download button. I use the free youtube video downloader and it successfully get me the video I want. Plus with the tool you can download several videos at once. It is offered as free software with no string attached.

download now

Yahoo Internet Messenger 10

Yahoo Internet Messenger or Yim in short freeware download is now in version 10. The popular online chatting software is a big favorite among internet citizen. Its a free service that allows us to see when our friends are online and send them instant messages / buzz them. With lots of interactive graphics and games making your online communication more fun. Here is a review from publisher's site. Yim also can alert you to new e-mail in your Yahoo Mail or Yahoo Personals accounts, or when you have upcoming events recorded in your Yahoo Calendar. Yahoo Messenger offers firewall support, a standby mode that minimizes the program until an Internet connection is made, the ability to save and print your conversations, and a tabbed interface that provides quick access to your favorite stocks, news, and sports scores.
Other features include the ability to create a chat room automatically, stock price alerts, the ability to send messages to friends (even if they're not online when you are), a Quick Compact mode that hides the Messenger tools to maximize your viewing area, Messenger Themes, and voice chat, which allows you to talk for free to anybody else on the Internet. It also includes Launchcast Radio, Yahoo Games, and Yahoo Audibles. Using a Webcam, you can see who you're chatting with or view the Webcam of any Yahoo member who has granted you access.
Yahoo Messenger Version 9.0 adds a redesigned interface, the ability to view Flickr photos and videos in the chat window, and friend importing from other e-mail and chatting networks. Yim also adds Yahoo Pingbox, which lets you chat with Web site owners in real time.

download now

Free Google Icons set

Free Google Icons set to be used for non-commercial purpose. The set contains nice and colorful Knol, Google Earth, Gmail, Gtalk, Picasa, Google Desktop and Blogger icons. The download size only 377 KB, image size of 148 KB and resolution at 750x904. Google icons are perfect to replace common file icon for your favorite folders. Give it a try and refresh your dekstop with new icons. You can also use it to make a link to Google services.

download now

Ashampoo Burning Studio 6

Ashampoo Burning Studio 6 is a free download CD or DVD burning software. It is available for Windows-based computer. Burning Studio 6 is an easy to used tool with integrated audio CD ripper, multi-disc file backup and capability to burn 25 Gigabyte per layer for Blu-ray format. Burning DVD or CD is simple and quick with maximum quality in the end. Disc now can be verified instantly without ejected first. The integrated Audio CD ripper enable user to store audio tracks as WAV, WMA or MP3 files. You can also set the number of copies you wish to burn.

download now

Free download CD Burner XP

CD Burner XP lets you burn files into DVD, CD, Blu-Ray and HD-DVD discs. You can also burn ISO file and there is no limitation on usage. This freeware software is free from adware or other malicious software. It has multi-lingual interface and available for computer system runs on Windows 2000, 2003, XP, Vista and Server. Other features of CD Burner XP 4.2.3:

download now

Audacity


Audacity is an open source freeware which you can easily use to edit and record audio. It is developed to be operational in Windows, Mac OS X, GNU/Linux and other operating system. It is an open source free software means anyone can study and use its available source code. Example of other open source freeware including OpenOffice.org and Mozilla Firefox internet browser. Below are the features of Audacity free audio editor and recorder.


Monday, August 3, 2009

Learning how Linux boots up

Learning how Linux boots up is critical. When you have this information you can use it to alter the type of login screen you get as well as which programs start up. Read on for the details.
The Linux Boot Sequence

You might remember when you installed Linux that the installation process prompted you for a list of partitions and the sizes of each in which your filesystems would be placed.

When allocating disk space for the partitions, the first sector, or data unit, for each partition is always reserved for programmable code used in booting. The very first sector of the hard disk is reserved for the same purpose and is called the master boot record (MBR).

When booting from a hard disk, the PC system BIOS loads and executes the boot loader code in the MBR. The MBR then needs to know which partitions on the disk have boot loader code specific to their operating systems in their boot sectors and then attempts to boot one of them.

Fedora Linux is supplied with the GRUB boot loader which is fairly sophisticated and therefore cannot entirely fit in the 512 bytes of the MBR. The GRUB MBR boot loader merely searches for a special boot partition and loads a second stage boot loader. This then reads the data in the /boot/grub/grub.conf configuration file, which lists all the available operating systems and their booting parameters. When this is complete, the second stage boot loader then displays the familiar Fedora branded splash screen that lists all the configured operating system kernels for your choice.

Note: In some operating systems, such as Debian / Ubuntu, the /boot/grub/grub.conf file may also be referred to by the name /boot/grub/menu.lst.

A typical grub.conf file for a system that can boot both Fedora Linux and Windows 2000. This structure of this file is discussed in Chapter 33, "Modifying the Kernel to Improve Performance".


Sample grub.conf file

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.8-1.521)
root (hd0,0)
kernel /vmlinuz-2.6.8-1.521 ro root=LABEL=/
initrd /initrd-2.6.8-1.521.img
title Windows 2000
rootnoverify (hd0,1)
chainloader +1


When Linux begins to boot with its kernel, it first runs the /sbin/init program, which does some system checks, such as verifying the integrity of the file systems, and starts vital programs needed for the operating system to function properly. It then inspects the /etc/inittab file to determine Linux's overall mode of operation or runlevel. A listing of valid runlevels can be seen in Table 7-1.


Linux Runlevels
Mode Directory Run Level Description
0 /etc/rc.d/rc0.d Halt
1 /etc/rc.d/rc1.d Single-user mode
2 /etc/rc.d/rc2.d Not used (user-definable)
3 /etc/rc.d/rc3.d Full multi-user mode (no GUI interface)
4 /etc/rc.d/rc4.d Not used (user-definable)
5 /etc/rc.d/rc5.d Full multiuser mode (with GUI interface)
6 /etc/rc.d/rc6.d Reboot

Based on the selected runlevel, the init process then executes startup scripts located in subdirectories of the /etc/rc.d directory. Scripts used for runlevels 0 to 6 are located in subdirectories /etc/rc.d/rc0.d through /etc/rc.d/rc6.d, respectively.

Here is a directory listing of the scripts in the /etc/rc.d/rc3.d directory:


[root@bigboy tmp]# ls /etc/rc.d/rc3.d
... ... K75netfs K96pcmcia ... ...
... ... K86nfslock S05kudzu ... ...
... ... K87portmap S09wlan ... ...
... ... K91isdn S10network ... ...
... ... K92iptables S12syslog ... ...
... ... K95firstboot S17keytable ... ...
[root@bigboy tmp]#

As you can see, each filename in these directories either starts with an "S" which signifies the script should be run at startup, or a K, which means the script should be run when the system is shutting down. If a script isn't there, it won't be run.

Most Linux packages place their startup script in the /etc/init.d directory and place symbolic links (pointers) to this script in the appropriate subdirectory of /etc/rc.d. This makes file management a lot easier. The deletion of a link doesn't delete the file, which can then be used for another day.

The number that follows the K or S specifies the position in which the scripts should be run in ascending order. In our example, kudzu with a value 05 will be started before wlan with a value of 09. Fortunately you don't have to be a scripting/symbolic linking guru to make sure everything works right because Fedora comes with a nifty utility called chkconfig while Debian / Ubuntu uses the update-rc.d command to do it all for you. This is explained later.
Determining the Default Boot runlevel

The default boot runlevel is set in the file /etc/inittab with the initdefault variable. When set to 3, the system boots up with the text interface on the VGA console; when set to 5, you get the GUI. Here is a snippet of the file (delete the initdefault line you don't need):

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault: # Console Text Mode
id:5:initdefault: # Console GUI Mode


Note the following:

* Most home users boot up with a Windows like GUI (runlevel 5)
* Most techies will tend to boot up with a plain text-based command-line-type interface (runlevel 3)
* Changing initdefault from 3 to 5, or vice-versa, has an effect upon your next reboot. See the following section on how to get a GUI login all the time until the next reboot.
* Of course, don't set the initdefault value to 6 or your system will constantly reboot. Setting it to 0 will never allow it to start!


Getting a GUI Console

Manual Method: You can start the X terminal GUI application each time you need it by running the startx command at the VGA console. Remember that when you log out you will get the regular text-based console again.

[root@bigboy tmp]# startx

Automatic Method: You can have Linux automatically start the X terminal GUI console for every login attempt until your next reboot by using the init command. You will need to edit your initdefault variable in your /etc/inittab file, as mentioned in the preceding section to keep this functionality even after you reboot.

[root@bigboy tmp]# init 5

When the CPU capacity or available memory on your server is low or you want to maximize all system resources, you might want to operate in text mode runlevel 3 most of the time, using the GUI only as necessary with the startx command.

Servers that double as personal workstations, or servers that might have to be operated for an extended period of time by relatively nontechnical staff, may need to be run at runlevel 5 all the time through the init 5 command. Remember you can make runlevel 5 permanent even after a reboot by editing the /etc/inittab file.


Get a Basic Text Terminal Without Exiting the GUI

There are a number of ways for you to get a command prompt when running a Linux GUI. This can be important if you need quick access to commands or you are not familiar with the GUI menu option layout.
Using a GUI Terminal Window

You can open a GUI-based window with a command prompt inside by doing the following:

* Click on the Fedora logo button in the bottom left hand corner of the screen.
* Click on Systems Tools and then Terminal

Using Virtual Consoles

By default, Linux runs six virtual console or TTY sessions running on the VGA console. These are defined by the mingetty statements in the /etc/inittab file. The X terminal GUI console creates its own virtual console using the first available TTY that is not controlled by mingetty. This makes the GUI run as number 7:

* You can step through each virtual console session by using the Ctl-Alt-F1 through F6 key sequence. You'll get a new login prompt for each attempt.
* You can get the GUI login with the sequence Ctl-Alt-F7 only in run level 5, or if the GUI is running after launching startx.

System Shutdown and Rebooting

It is usually not a good idea to immediately power off your system when you are finished using it. This can cause files that are being updated to become corrupted, or worse, you could corrupt the filesystem directory structure. Linux has a number of ways to gracefully shut down and reboot your system which will be outlined in this section.


Halt/Shut Down The System

The init command will allow you to change the current runlevel, and for a shutdown, that value is 0. Here is an example:

[root@bigboy tmp]# init 0

Fedora also has a shutdown command which can also be used to the same effect. It often prompts you as to whether you are sure you want to execute the command, which can be avoided with the -y switch. The -h switch forces the system to halt, and the first argument tells it how long to wait before starting the procedure, in this case 0 minutes. You can also specify shutting down at a specific time of the day; please refer to the man pages for details. Another advantage of the shutdown command is that it warns people that the shutdown is going to occur.

[root@bigboy tmp]# shutdown -hy 0

Broadcast message from root (pts/0) (Sat Nov 6 13:15:27 2004):

The system is going down for system halt NOW!
[root@bigboy tmp]#

Reboot The System

You can also use the init command to reboot the system immediately by entering runlevel 6.

[root@bigboy tmp]# init 6


The "reboot" command has the same effect, but it also sends a warning message to all users.

[root@bigboy tmp]# reboot

Broadcast message from root (pts/0) (Sat Nov 6 12:39:31 2004):

The system is going down for reboot NOW!
[root@bigboy tmp]#

More graceful reboots can be done with the shutdown command using the -r switch and specifying a delay, which in this case is 10 minutes.

[root@bigboy root]# shutdown -ry 10

Broadcast message from root (pts/0) (Sat Nov 6 13:26:39 2004):

The system is going DOWN for reboot in 10 minutes!

Broadcast message from root (pts/0) (Sat Nov 6 13:27:39 2004):

The system is going DOWN for reboot in 9 minutes!
...
...
...
Broadcast message from root (pts/0) (Sat Nov 6 13:36:39 2004):

The system is going down for reboot NOW!

Entering Single-user Mode

Some activities require you to force the system to log off all users, third-party applications and networking so that only the systems administrator has access to the system from the VGA console. A typical scenario is the addition of a new hard disk, as mentioned in Chapter 27, "Expanding Disk Capacity", or the troubleshooting of a failed boot process.

Another reason is the recovery of your root password.
Switching to Single-user Mode

When the system is running normally, this can be done by using the init command to enter runlevel 1. It is best to do this from the console, because if you do it from a remote terminal session you'll be logged out.

[root@bigboy root]# init 1
...
...
bash-2.05b#

Unfortunately, this gives no prior warning to users, and the shutdown command doesn't have a single-user mode option. This can be overcome by running the shutdown command with a delay in minutes as the only argument.

[root@bigboy tmp]# shutdown 1

Broadcast message from root (pts/0) (Sat Nov 6 13:44:59 2004):

The system is going DOWN to maintenance mode in 1 minute!

Broadcast message from root (pts/0) (Sat Nov 6 13:45:59 2004):

The system is going down to maintenance mode NOW!

...
...
bash-2.05b#

Entering Single-user Mode At The Grub Splash Screen

You can enter single user mode directly after turning on the power to your system. The steps to do this are listed below.

1. Power on your system. Wait for the "Grub loading" message to appear and, depending on your Linux distribution, get ready to hit either any key or the ESC key to enter the grub boot menu.

Grub loading, please wait ...
Press ESC to enter the menu

or

Grub loading, please wait ...
Press any key to enter the menu

2. You will then get grub's main menu which will display a list of available kernels. Use the arrow keys to scroll to your desired version of the kernel and then press e for "edit".

Fedora Core (2.6.18-1.2239.fc5smp)
Fedora Core (2.6.18-1.2200.fc5smp)

3. The kernel's boot menu will appear. Use the arrow keys to scroll to the "kernel" line and then press e for "edit".

root (hd0,0)
kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=LABEL=/
initrd /initrd-2.6.18-1.2239.fc5smp.img

4. A grub edit prompt will appear. Use the arrow keys to move to the end of the line and add the word "single" to the end, separated by a space. Change

grub edit> kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=LABEL=/

to

grub edit> kernel /vmlinuz-2.6.18-1.2239.fc5smp ro root=LABEL=/ single

5. Press enter to save your changes, and then b for "boot". 6. The system will continue to boot, but will go straight to the root # prompt without first asking for a username and password.
Reverting To Your Default runlevel From Single User Mode

The exit command forces the system to exit runlevel 1 and revert to the default runlevel for the system. You can also use the init command (for example init 3 and init 5) to alter this default behavior:

bash-2.05b# exit
INIT: Entering runlevel: 3
...
...
...
Fedora Core release 2 (Tettnang)
Kernel 2.6.8-1.521 on an i686
bigboy login:

Root Password Recovery

Sometimes you might forget the root password, or the previous systems administrator may move on to a new job without giving it to you. To do this, follow these steps:

1. Go to the VGA console and press Ctrl-Alt-Del. The system will then shut down in an orderly fashion.
2. Reboot the system and enter single-user mode.
3. Once at the command prompt, change your password. Single user mode assumes the person at the console is the systems administrator root, so you don't have to specify a root username.
4. Return to your default runlevel by using the exit command.

Starting and Stopping Daemons

A simple definition of a daemon is a programs that runs unattended even when nobody is logged into your system. Common examples of daemons are the syslog daemon which receives system error messages and writes them to a log file; the apache or httpd daemon that serves web pages to Internet web browsers and the sendmail daemon that places email it receives into your inbox.

The startup scripts I have been mentioning in the /etc/init.d directory govern the activation of daemons that were installed with some of your Linux packages. The commands to start and stop them are universal.
Starting a Daemon

If a startup script exists in the /etc/init.d directory, then its daemon can be started by specifying its filename followed by the keyword "start" as seen here:

root@u-bigboy:~# /etc/init.d/apache start
* Starting apache 1.3 web server...
...done.
root@u-bigboy:~#

Stopping a Daemon

Daemons can be stopped by specifying its script filename followed by the keyword "stop":

root@u-bigboy:~# /etc/init.d/apache stop
* Stopping apache 1.3 web server...
...done.
root@u-bigboy:~#

Restarting a Daemon

Daemons usually only read their configuration files when they are started, therefore if you edit the file, you have to restart the daemon for the new settings to become active. This can be done with the keyword "restart":

root@u-bigboy:~# /etc/init.d/apache restart
* Restarting apache 1.3 web server...
...done.
root@u-bigboy:~#

Don’t worry about configuring your daemons. Later we'll be covering some commonly used daemons and will discuss them with ample examples.
The service command

Some operating systems such as Fedora and Redhat also come with the shortcut service command which allows you to control daemons with the "start", "stop" and "restart" keywords, but with less typing. Here are some quick, intuitive examples of doing this:

[root@bigboy ~]# service httpd start
[root@bigboy ~]# service httpd stop
[root@bigboy ~]# service httpd restart

The service command also has the "status" keyword which will provide a brief report on what the daemon is doing.

[root@bigboy ~]# service httpd status
httpd (pid 6135 6133 6132 6131 6130 6129 6128 6127 1561) is running...
[root@bigboy ~]#

Using chkconfig to Start Daemons at Each runlevel

As stated earlier, the chkconfig command can be used to adjust which applications start at each runlevel. You can use this command with the --list switch to get a full listing of packages listed in /etc/init.d and the runlevels at which they will be on or off:

[root@bigboy tmp]# chkconfig --list
keytable 0:off 1:on 2:on 3:on 4:on 5:on 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
gpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off
wlan 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sendmail 0:off 1:off 2:off 3:on 4:off 5:on 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
random 0:off 1:off 2:on 3:on 4:on 5:on 6:off
...
...

chkconfig Examples

You can use chkconfig to change runlevels for particular packages. Here we see sendmail will start with a regular startup at runlevel 3 or 5. Let's change it so that sendmail doesn't startup at boot.
Use Chkconfig to Get a Listing of sendmail's Current Startup Options

The chkconfig command can be used with grep to determine the run levels in which sendmail will run. Here we see it will run at levels 3 and 5.

[root@bigboy tmp]# chkconfig --list | grep mail
sendmail 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@bigboy tmp]#

Switch Off sendmail Starting Up in Levels 3 and 5

The chkconfig command with the --level switch indicates that some action needs to be done at the runlevels entered as its values. The first argument in the command is the package you want to affect and the second defines whether you want it on or off. In this case we want sendmail not to be started when entering runlevels 3 and 5:

[root@bigboy tmp]# chkconfig --level 35 sendmail off
[root@bigboy tmp]#

By not specifying the runlevels with the --level switch, chckconfig will make the changes for runlevels 3 and 5 automatically:

[root@bigboy tmp]# chkconfig sendmail off

Because the intention is to permanently shutdown sendmail permanently, we might also have to stop it from running now.

[root@bigboy tmp]# service sendmail stop
Shutting down sendmail: [ OK ]
Shutting down sm-client: [ OK ]
[root@bigboy tmp]#

Double-check that sendmail Will Not Start Up

We can then use chkconfig to double-check our work.

[root@bigboy tmp]# chkconfig --list | grep mail
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@bigboy tmp]#

Turn On sendmail Again

To reactivate sendmail, we can use chkconfig once more, but with the on argument. Start sendmail again to get it running immediately, not just after the next reboot.

[root@bigboy tmp]# chkconfig sendmail on
[root@bigboy tmp]# chkconfig --list | grep mail
sendmail 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@bigboy tmp]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
[root@bigboy tmp]#

Using chkconfig to Improve Security

A default Fedora installation automatically starts a number of daemons that you may not necessarily need for a Web server. This usually results in your system listening on a variety of unexpected TCP/IP ports that could be used as doors into your system by hackers.

The screen output of the netstat -an command below shows a typical case. Some ports are relatively easy to recognize. TCP ports 25 and 22 are for mail and SSH, respectively, but some others are less obvious. Should you use the chkconfig command and the scripts in the /etc/init.d directory to shut these down permanently?

[root@bigboy tmp]# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
udp 0 0 0.0.0.0:32768 0.0.0.0:*
udp 0 0 0.0.0.0:930 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
...
...
[root@bigboy tmp]#


For example, how do you know which startup script is responsible for TCP port 111? The answer is to use the lsof command which lists all open, or actively used, files and can be given additional options to extend its scope to include the TCP/IP protocol stack.

In the next examples we see that TCP ports 111 and 32769, and UDP port 123 are being used by the portmap, xinetd and ntp daemons respectively. The portmap daemon is required for the operation of NFS and NIS, topics that are covered in Chapters 29, "Remote Disk Access with NFS", and 30, "Configuring NIS". portmap also has many known security flaws that makes it advisable to be run on a secured network. If you don't need any of these three applications, it's best to shut down portmap permanently. NTP, which is covered in Chapter 24, "The NTP Server", is required for synchronizing your time with a reliable time source, and may be necessary. A number of network applications are reliant on xinetd, as explained in Chapter 16, "Telnet, TFTP, and xinetd", and it might be required for their operation:

[root@ bigboy tmp]# lsof -i tcp:111
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 1165 rpc 4u IPv4 2979 TCP *:sunrpc (LISTEN)
[root@ bigboy tmp #

[root@bigboy tmp]# lsof -i tcp:32769
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 1522 root 5u IPv4 2764 TCP probe-001:32769 (LISTEN)
[root@bigboy tmp]#

[root@bigboy root]# lsof -i udp:123
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
ntpd 1321 ntp 4u IPv4 3390 UDP *:ntp
...
...
[root@bigboy root]#

In some cases it's tricky to determine the application based on the results of the lsof command. In the example below, we've discovered that TCP port 32768 is being used by rpc.statd, but there is no rpc.statd file in the /etc/init.d directory. The simple solution is to use the grep command to search all the files for the string rpc.statd to determine which one is responsible for its operation. We soon discover that the nfslock daemon uses it. If you don't need nfslock, then shut it down permanently.

[root@bigboy tmp]# lsof -i tcp:32768
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
rpc.statd 1178 rpcuser 6u IPv4 2400 TCP *:32768 (LISTEN)
[root@bigboy tmp]# ls /etc/init.d/rpc.statd
ls: /etc/init.d/rpc.statd: No such file or directory
[root@bigboy tmp]# grep -i statd /etc/init.d/*
/etc/init.d/nfslock:[ -x /sbin/rpc.statd ] || exit 0
...
...
[root@bigboy tmp]#

As a rule of thumb, applications listening only on the loopback interface (IP address 127.0.0.1) are usually the least susceptible to network attack and probably don't need to be stopped for network security reasons. Those listening on all interfaces, depicted as IP address 0.0.0.0, are naturally more vulnerable and their continued operation should be dependent on your server's needs. I usually shutdown nfs, nfslock, netfs, portmap, and cups printing as standard practice on Internet servers. I keep sendmail running as it is always needed to send and receive mail (see Chapter 21, "Configuring Linux Mail Servers", for details). Your needs may be different.

Remember to thoroughly research your options thoroughly before choosing to shut down an application. Use the Linux man pages, reference books and the Internet for information. Unpredictable results are always undesirable.

Shutting down applications is only a part of server security. Firewalls, physical access restrictions, password policies, and patch updates need to be considered. Full coverage of server and network security is beyond the scope of this book, but you should always have a security reference guide on hand to guide your final decisions.
Final Tips on chkconfig

Remember the following:

* In most cases, you want to modify runlevels 3 and 5 simultaneously and with the same values.
* Don't add/remove anything to other runlevels unless you absolutely know what you are doing. Don't experiment, unless in a test environment.
* chkconfig doesn't start the programs in the /etc/init.d directory, it just configures them to be started or ignored when the system boots up. The commands for starting and stopping the programs covered in this book are covered in each respective chapter.

Using sysv-rc-conf to Start Daemons at Each runlevel

With Debian / Ubuntu Linux, the update-rc.d command replaces chkconfig as the default package for modifying /etc/init.d script links. Unfortunately, the utility was written to facilitate link modification when packages are installed or removed, but is less friendly when you need to alter links for existing packages you want to keep.

Fortunately there is hope for the harried systems administrator in the form of the sysv-rc-conf package which uses an almost identical syntax to chkconfig, and has a GUI mode if you run it from the command line without any arguments. This section will show you some important tips in using sysv-rc-conf.
Installing sysv-rc-conf

The sysv-rc-conf package can be installed easily using apt-get. Here is an example.

root@u-bigboy:~# apt-get install sysv-rc-conf

Listing the runlevels for Daemons

This can be done with the --list option. In this example below we get a listing for only the apache daemon.

root@u-bigboy:~# sysv-rc-conf --list apache
apache 0:off 1:off 2:on 3:on 4:on 5:on 6:off
root@u-bigboy:~#

Here we get a listing for everything.

root@u-bigboy:~# sysv-rc-conf --list
acpi-support 0:off 1:off 2:on 3:on 4:on 5:on 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
alsa-utils 0:off 6:off



vbesave 2:on 3:on 4:on 5:on
x11-common S:on
root@u-bigboy:~#

Setting the runlevels for Daemons

The sysv-rc-conf program has further similarities to the chkconfig syntax. Here we set the apache daemon to start automatically at levels 2 through 5.

root@u-bigboy:~# sysv-rc-conf apache on

Similarly, we can set the apache daemon not to start at levels 2 through 5 with this command:

root@u-bigboy:~# sysv-rc-conf apache off

Finally we can use set the apache daemon to start only at levels 3 and 5.

root@u-bigboy:~# sysv-rc-conf --level 35 apache on

Saturday, July 25, 2009

Change Notepad Font

The notepad font is not editable but you can change it through the registry. Go to HKEY_LOCAL_MACHINE\config\0001\display\settings modify fixedfon.fon to a new font name. We haven't tried True Type fonts yet (.TTF). Restart to take effect.

.

Restore Start Menu To Alphabetical Order

We always liked the alphabetical order of the Start Menu. It will help organize things. But we noticed that with IE4 (and Windows 98), Windows will arrange all items that is in the Start Menu in alphabetical order first during installation.

Now for the problem. You will also notice that after the installation of Windows, all new folders added will be placed below the single items that comes with Windows. This means that there will be 3 sections, one for folders, one for single items and another one for new folders after installation. Wondering why Windows can't just group all the folders together in alphabetical order but to put new folders apart from the old ones after install?

The answer lies in the registry. Open your registry editor and go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu Click once on Menu and on the right pane, you will see a string value named Order. Double-click this value. On the right side, you will see a list of folder and shortcut names This string was created during install to record all folders and shortcuts. All new entries added after install will be recorded in the end of the value rather than placing them in the middle of the key which is why, although all new folders created will be placed in alphabetical order too but not together with the folders after setup.

The workaround is simple - just delete the Order value and the registry will create a new one without any order. Since the registry has lost all records on how the start menu should be arranged, restart and you will see that the start menu has been rearranged in alphabetical order - together.

This tip works on all the Start Menu branch.

.

Disabling My Computer

In areas where you are trying to restrict what users can do on the computer, it might be beneficial to disable the ability to click on My Computer and have access to the drives, control panel etc.

To disable this:
1.Open RegEdit
2.Search for 20D04FE0-3AEA-1069-A2D8-08002B30309D
3.This should bring you to the HKEY_CLASSES_ROOT\CLSID section
4.Delete the entire section.

Now when you click on My Computer, nothing will happen.

You might want to export this section to a Registry file before deleting it just in case you want to enable it again. Or you can rename it to 20D0HideMyComputer4FE0-3AEA-1069-A2D8-08002B30309D. You can also hide all the Desktop Icons, see Change/Add restrictions

.

Automatic Screen Refresh

When you make changes to your file system and use Explorer, the changes are not usually displayed until you press the F5 key
To refresh automatically:
1. Open RegEdit
2. Go to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Update
3. Set the value name "UpdateMode" to 1

.

Adding an Application to the Right Click on Every Folder

Here is how to add any application to the Context Menu when you right click on any Folder. This way you do not have to always go to the Start Menu. When you right click on any folder, you can have access to that application, the same as using Sent To.

1. Open RegEdit
2. Go to HKEY_CLASSES_ROOT\Folder\shell
3. Add a new Key to the "Shell" Key and name it anything you like.
4. Give it a default value that will appear when you right click a folder, i.e. NewKey (use an "&" without the quotes, in front of any character and it will allow you to use the keyboard)
5. Click on the Key HKEY_CLASSES_ROOT\Folder\shell\NewKey
6. Add a New Key named Command
7. Set the (Default) value of the application you want to run

For example: c:\program files\internet explorer\iexplore.exe (Include the full path and parameters if you need them)

.

Changing Windows' Icons

You can change the Icons Windows uses for folders, the Start Menu, opened and closed folder in the Explorer, and many more.

1. Open RegEdit
2. Go to
HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ Shell Icons
3. Add a string value for each Icon you wish to change.
Example: "3" ="C:\Windows\Icons\MyIcon.ico,0" This will change the closed folders in the Explorer to "MyIcon.ico". Here is a complete list for each value.

0= Unknown file type
1= MSN file types
2= Applications Generic
3= Closed Folder
4= Open Folder
5= 5.25" Drive
6= 3.25" Drive
7= Removable Drive
8= Hard Drive
9= NetWork Drive
10= Network Drive Offline
11= CD-ROM Drive
12= RAM Drive
13= Entire Network
14= Network Hub
15= My Computer
16= Printer
17= Network Neighborhood
18= Network Workgroup
19= Start Menu's Program Folders
20= Start Menu's Documents
21= Start Menu's Setting
22= Start Menu's Find
23= Start Menu's Help
24= Start Menu's Run
25= Start Menu's Suspend
26= Start Menu's PC Undock
27= Start Menu's Shutdown
28= Shared
29= Shortcut Arrow
30= (Unknown Overlay)
31= Recycle Bin Empty
32= Recycle Bin Full
33= Dial-up Network
34= DeskTop
35= Control Panel
36= Start Menu's Programs
37= Printer Folder
38= Fonts Folder
39= Taskbar Icon
40= Audio CD
You need to reboot after making changes. You may need to delete the hidden file ShellIconCache if after rebooting the desired Icons are not displayed

.

Add Open With to all files

You can add "Open With..." to the Right click context menu of all files.This is great for when you have several programs you want to open the same file types with.

1. Open RegEdit

2. Go to HKEY_CLASSES_ROOT\*\Shell

3. Add a new Key named "OpenWith" by right clicking the "Shell" Key and selecting new

4. Set the (Default) to "Op&en With..."

5. Add a new Key named "Command" by right clicking the "OpenWith" Key and selecting new

6. Set the (Default) to "C:\Windows\rundll32.exe shell32.dll,OpenAs_RunDLL %1", C:\ being your Windows drive. You must enter the "OpenAs_RunDLL %1" exactly this way


.

Backup / Restore the Registry

To Backup/Restore the Windows Registry:

If you are in MSDOS, at the C:\Windows prompt type
Attrib -s -r -h C:\Windows\System.dat (press Enter)
Attrib -s -r -h C:\Windows\User.dat (press Enter)

To make the backup copies type:

copy C:\Windows\System.dat C:\Windows\System.000 (press Enter)
copy C:\Windows\User.dat C:\Windows\user.000 (press Enter)

To Restore the Registry

copy C:\Windows\System.000 C:\Windows\System.dat (press Enter)
copy C:\Windows\User.000 C:\Windows\user.dat (press Enter)


.

Tuesday, July 21, 2009

Fedora / Red Hat Network Configuration Files

/etc/sysconfig/network
Red Hat network configuration file used by the system during the boot process.

File: /etc/sysconfig/network-scripts/ifcfg-eth0
Configuration settings for your first ethernet port (0). Your second port is eth1.
File:
/etc/modprobe.conf (kernel 2.6)
/etc/modules.conf (kernel 2.4)
(or for older systems: /etc/conf.modules)
Example statement for Intel ethernet card:
alias eth0 eepro100

Modules for other devices on the system will also be listed. This tells the kernel which device driver to use if configured as a loadable module. (default for Red Hat)


Fedora / Red Hat Network GUI Configuration Tools:
The following GUI tools edit the system configuration files. There is no difference in the configuration developed with the GUI tools and that developed by editing system configuration files directly.

TCP/IP ethernet configuration:
Network configuration:
/usr/sbin/system-config-network (FC-2/3) GUI shown here --->
/usr/bin/redhat-config-network (/usr/bin/neat) (RH 7.2+ FC-1)
Text console configuration tool:
/usr/sbin/system-config-network-tui (Text User Interface (TUI) for Fedora Core 2/3)
/usr/bin/redhat-config-network-tui (RH 9.0 - FC-1)
Text console network configuration tool.
First interface only - eth0: /usr/sbin/netconfig
/usr/bin/netcfg (GUI) (last available with RH 7.1)



Gnome Desktop:
Gnome Desktop Network Configuration
/usr/bin/gnome-network-preferences (RH 9.0 - FC-3)
Proxy configuration. Choose one of three options:
Direct internet connection
Manual proxy configuration (specify proxy and port)
Automatic proxy configuration (give URL)

.

Usefull Linux networking commands

• /etc/rc.d/init.d/network start - command to start, restart or stop the network
• netstat - Display connections, routing tables, stats etc
* List externally connected processes: netstat -punta
* List all connected processes: netstat -nap
* Show network statistics: netstat -s
* Kernel interface table info: netstat -a -i eth0
• ping - send ICMP ECHO_REQUEST packets to network hosts. Use Cntl-C to stop ping.
• traceroute - print the route packets take to network host.
(Ubuntu Note: Typically Ubuntu installs tracepath for IPv4 and traceroute6 for IPv6. One can install traceroute: apt-get install traceroute)
* traceroute IP-address-of-server
* traceroute domain-name-of-server
• mtr - a network diagnostic tool introduced in Fedora - Like traceroute except it gives more network quality and network diagnostic info. Leave running to get real time stats. Reports best and worst round trip times in milliseconds.
* mtr IP-address-of-server
* mtr domain-name-of-server
• whois - Lookup a domain name in the internic whois database.
• finger - Display information on a system user. i.e. finger user@host Uses $HOME/.plan and $HOME/.project user files. Often used by game developers. See http://finger.planetquake.com/
• iptables - IP firewall administration (Linux kernel 2.6/2.4) See YoLinux firewall/gateway configuration.
• ipchains - IP firewall administration (Linux kernel 2.2) See YoLinux firewall/gateway configuration.
• socklist - Display list of open sockets, type, port, process id and the name of the process. Kill with fuser or kill.
• host - Give a host name and the command will return IP address. Unlike nslookup, the host command will use both /etc/hosts as well as DNS.
Example: host domain-name-of-server
• nslookup - Give a host name and the command will return IP address. Also see Testing your DNS (YoLinux Tutorial) Note that nslookup does not use the /etc/hosts file.

.

Activating and De-Activating your NIC

Commands for starting and stopping TCP/IP network services on an interface:
Activate: /sbin/ifup eth0
(Also: ifconfig eth0 up - Note: Even if no IP address is assigned you can listen.)
De-Activate: /sbin/ifdown eth0
(Also: ifconfig eth0 down)
These scripts use the scripts and NIC config
files in /etc/sysconfig/network-scripts/
GUI Interface control/configuration:



Start/Stop network interfaces
/usr/bin/system-control-network (Fedora Core 2/3)
/usr/bin/redhat-control-network (RH 9.0 - FC-1)
Configure Ethernet, ISDN, modem, token Ring, Wireless or DSL network connection:
/usr/sbin/system-config-network-druid (FC2/3)
/usr/sbin/redhat-config-network-druid (RH 9 - FC-1)

.

Network IP aliasing

Assign more than one IP address to one ethernet card:

ifconfig eth0 XXX.XXX.XXX.XXX netmask 255.255.255.0 broadcast XXX.XXX.XXX.255
ifconfig eth0:0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
ifconfig eth0:1 192.168.10.14 netmask 255.255.255.0 broadcast 192.168.10.255

route add -host XXX.XXX.XXX.XXX dev eth0
route add -host 192.168.10.12 dev eth0
route add -host 192.168.10.14 dev eth0
In this example 0 and 1 are aliases in addition to the regular eth0. The result of the ifconfig command:
eth0 Link encap:Ethernet HWaddr 00:10:4C:25:7A:3F
inet addr:XXX.XXX.XXX.XXX Bcast:XXX.XXX.XXX.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14218 errors:0 dropped:0 overruns:0 frame:0
TX packets:1362 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:100
Interrupt:5 Base address:0xe400

eth0:0 Link encap:Ethernet HWaddr 00:10:4C:25:7A:3F
inet addr:192.168.10.12 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0xe400

eth0:1 Link encap:Ethernet HWaddr 00:10:4C:25:7A:3F
inet addr:192.168.10.14 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0xe400

Config file: /etc/sysconfig/network-scripts/ifcfg-eth0:0

DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.168.10.255
IPADDR=192.168.10.12
NETMASK=255.255.255.0
NETWORK=192.168.10.0
ONBOOT=yes
Aliases can also be shut down independently. i.e.: ifdown eth0:0
The option during kernel compile is: CONFIG_IP_ALIAS=y

.

Sunday, July 19, 2009

Disable Microsoft Error Reporting



* Method #1 Using Control Panel
+ Open Control Panel
+ Click Performance and Maintenance
+ Click System
+ Click Advance Tab
+ Click Error Reporting button at the bottom
+ Select Disable Error Reporting
+ Click the "But notify me when a critical error occurs" (This is user's choice, personally I would leave this disabled too)


* Method #2 Using The Registry
+ Click Start
+ Click Run
+ Type in
regedit.exe

.

+ Find the following Registry Key

HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main

+ Highlight the Main Key
+ Create a new DWORD and name it IEWatsonEnabled
+ Double click the IEWatsonEnabled name and give it a value of "0" to Disable, "1' to Enable

.

Multiple Login In GMAIL

Create a shortcut of your Google talk.
Right click the shortcut ----> choose Properties.
In the "Target" you will find this
Code:
"C:\Program Files\Google\Google Talk\googletalk.exe"
Assuming you have installed in C:
Now at the end of target add this "/nomutex" without the quotes.
It should be like this
Code:
"C:\Program Files\Google\Google Talk\googletalk.exe" /nomutex
There is a space after googletalk.exe"

Thats it .Click OK and you can open more than one Google talk

.

Setup Network File Sharing Server In Red-Hat Linux

NFS server gives user ability to share his/her works in the network. Here is setup method of NFS server in just 4 simple steps.

Setup Network File Sharing Server

Basic: Configuration file exits in /etc/exports


Step 1: Create a directory you want to share



Step 2: Edit exports file



Step 3: now restart the portmap & nfs services

service portmap restart

service nfs restart



Step 4: check NFS Server




U can also use #mount t NFS 192, where tis use to define the server type

And NFS is the type of the server.

.

Uploading multiple images

The Blogger post editor has a photo upload icon Blogger photo upload icon which when clicked upon will open the photo upload dialog window (see screen shot below):

Click CHOOSE FILE and select the image you want to upload from your computer, then tick the radio button for one of 4 layouts - none, left, center right. If you have only 1 photo to upload, then click UPLOAD IMAGE. If you have multiple images and you want the same layout for all of them, then click ADD ANOTHER IMAGE, in which case another CHOSE FILE button will appear. Chose your second image from your computer. Repeat for more images, and when you have finished selecting all the images, click UPLOAD IMAGE.

.

Saturday, July 18, 2009

Change Windows XP Home to Windows XP Professional

Please try this at your own risk

Follow these steps

1. Copy the root directory and the i386 directory of the WindowsXP CD to your hard drive.

2. Extract the Bootsector of your Windows XP CD. You can use BBIE to do this.

3. Click START–>RUN–>REGEDIT

4. Highlight HKEY_LOCAL_MACHINE

5. Click FILE–>LOAD HIVE and select the Setupreg.hiv file
This file is located in the i386 folder. Use the one you extracted to your hard drive from your Windows XP CD.

6. Locate the following registry key:

HKEY_LOCAL_MACHINE\Homekey\ControlSet001\Services\setupdd

7. Edit the DEFAULT key and change the following values:

01 to 00
02 to 00

8. Change the name to the value HOMEKEY to anything.

9. Locate the following registry key:

HKEY_LOCAL_MACHINE\Homekey\ControlSet001\Services\setupdd

Edit the DEFAULT key and change the following values:

01 to 00
02 to 00
10. Highlight HOMEKEY and select FILE–>UNLOAD HIVE

.

Error - ''boot_unmountable_drive'' when installing XP

For those who are getting this error when you try to install WinXP on a motherboard that has UDMA 100 Promise Controllers you need to do the following in order to get XP to install correctly if your hard drives are connected to the UDMA 100 controller.

Now there are two ways to get XP installed, the first one I am going to mention is the easiest way and the second is a bit more complicated but will work never the less.

#1 - Easiest Way
I have an Asus A7V motherboard and I have run into this more than once. What you need to do (this is the easiest way to do it that I have found) is to move your hard drives cable off the UDMA 100 controller (normally color coded blue) over to the UDMA 66 master controller on the motherboard. Once you have done that make sure your PC still boots into your current OS correctly. If it does then start your XP install or upgrade. Everything should be fine. Now, once XP is up on My Computer and choose Manage. Look under Device manager and you will see an error with a yellow exclamation point on it. Right click on it and install the Promise Drivers. You can download them directly from here -
ftp://ftp.promise.com/Controllers/IDE/Ultra66/UltraFamily/U100d160b32.zip
Once you have the drivers installed re-boot the system and make sure the yellow exclamation points are gone and the promise drivers are listed under SCSI devices, if they are then turn off your system, move the HD's back to the UDMA 100 controller and boot it up. That should fix it.


#2 - Fresh Install
If you plan on installing XP to a freshly formatted hard drive the easiest way I have found to do this is to use the above method but for those with only one UDMA 66 controller on there motherboard you may need to do the following:

- First use the URL above and download the Promise drivers from the Promise website.
- Second you need to extract the drivers to a floppy or to the partition on your hard drive that XP can see (FAT32 works great for this) but there is a trick to this in order to make XP see the drivers. Once you extract the drivers the promise drivers automatically make folders for each individual OS (see screen shot), what you need to do is move the files from under the Win2K directory to the of the Promise Folder. So you take the three files under the Win2K folder and copy them, don't move them but copy them to the root of the main folder where you extracted the Promise drivers to (if you don't see three files go to Tools/Folder Options/View and check "show hidden files"). The three files you need to copy to the area are:
- Ultra.cat- Ultra.inf- Ultra.sys
Now that you have all the files in the copy them to a floppy, reboot (if needed) and start your install of XP.

Now pay attention here - at the bottom of the very first blue setup screen you will see a prompt to hit F6 to install third party SCSI or RAID drivers. HIT F6 A FEW TIMES NOW!!! Now it might take a couple of seconds but you should be prompted to insert your drivers into your floppy drive. Do so and choose the Promise ATA100 controller. Keep this disk handy as you will be prompted for it one more time during the install.

Once XP has the drivers and loads them successfully XP should install just fine, well at least as far as the controller goes.

.

How to Rename the Recycle Bin

To change the name of the Recycle Bin desktop icon, open Regedit and go to:

HKEY_CLASSES_ROOT/CLSID/{645FF040-5081-101B-9F08-00AA002F954E}

and change the name "Recycle Bin" to whatever you want (don't type any quotes).

.

Windows XP Step-by-Step Installation Instructions

These steps are for a clean install of XP. Read this article for steps on upgrading your current system to XP.

First, you're going to need to change your BIOS boot order to boot from CD-ROM. Once you do this you'll then be able to boot your computer from the Installation CD.

After changing the boot order in BIOS, save the changes, and then reboot your computer. Make sure your Installation CD is in your CD-ROM. If it is you'll be prompted to press your space bar to directly boot from CD-ROM emulation. Press your space bar as soon as you see this message.

Wait a few minutes while the installation begins to copy the preliminary setup files to your computer. After this completes you'll be ready to start directing the install process.

You will be asked if you want to perform a new installation, repair an existing installation, or quit. In this case, you will be performing a new install. Press the correct key to perform a new installation.

Read the terms of the end user license agreement, and press F8 to agree.

The next phase of the installation is real similar to that of Windows 2000. So, if you're familiar with the Windows 2000 installation process this should be a cinch.
Basically, you need to decide which partition of your hard drive you will install Windows XP on. You will have the opportunity to create and/or delete partitions or just allocate the available disk space to one partition. However, try to keep your partitions within reasonable size.

We recommend using multiple partitions of 4-8GB, preferably on more than one hard drive. This will help you back up your data and optimize system performance later on down the road. Once you have figured out which partition XP will be installed on it's time to format it.


Choose to format the partition to either FAT32 or NTFS (recommended for single OS install). You'll also see two additional choices to perform a quick format of each option. Stick with doing a full format of either option instead. After you've determined which option is right for you, press the correct key to format the partition.

This would be a good time to take a break and come back in a few minutes. The setup program will automatically start copying files after the partition is formatted.
From this point on, you're going to see each and every file name that's being copied over to your hard drive appear in the lower left corner. As the file names go from A to Z, the installation completion percentage will increase.


Choose the region and language.

Type in your name and organization.

Enter your product license key.

Name the computer, and enter an Admin password. Don't forget to write down your Administrator password. After the installation is complete it would be extremely wise to create a password restore disk in the event you forget your Administrator password someday.

Enter the correct date and time.

Choose your network settings. Leave on automatic if you use a dhcp server to assign IP addresses. If you have static IP address for broadband access, enter the settings that your ISP has provided you.

Choose workgroup or domain name.

Register this copy of Windows XP if you've installed all the current hardware on your machine. Otherwise, wait until you've finished installing any additional hardware so you don't have to activate your copy of XP again.

Add users that will sign on to this computer.

Log in, and update drivers.

Driver install

XP found drivers for all of the hardware in our test machines, with the exception of a wireless network adapter that was added. Update all drivers that had updates available for download.

It takes about 30 minutes to perform this installation. After that, you will be a few personalized settings away from getting started on your XP-experience. With a little use, the GUI even starts to grow on you.

.

Optical Character Recognition

Free-OCR.com is a free online OCR (Optical Character Recognition) tool. You can use this to perform OCR on any image you supply.

This service is free, no registration necessary. We also do not need your email address.

Just upload your image files. Free-OCR takes either PDF, JPG, GIF, TIFF or BMP format.

The only restriction is that the images must not be larger than 2MB, no wider or higher than 5000 pixels and there is a limit of 10 image uploads per hour.

to convert, pleez visit
http://www.free-ocr.com/

.

Why is your computer running slow?

It could be due to a number of issues, but in the end it's either a software or hardware related issue. The big culprits are file fragmentation, spyware, and not enough RAM in your computer.

Hardware issues

* Computers running with less than 1GB of RAM are generally going to be slow
Using a computer with less than 1GB RAM on Windows XP, and especially Vista can slow your programs to a crawl. Upgrading your RAM is the best and most cost-effective way to improve the speed of your computer. RAM memory upgrades are also cheap--typically less than $200, and should be closer to $100 for a decent upgrade.

Mac users should not run OS X with less than 1GB of RAM, especially if they're planning on doing anything with music, movies, or photos.

* Your computer does not have a dual-core processor
Dual-core processors are not a necessity, however, you'll notice a significant speed improvement with a dual-core processor.

* Your hard drive is overfilled
If your hard drive has less than 20% of it's free space remaining, you could be noticing slowdowns because the computer has to look longer for files before opening them. With the size of today's hard drives, typically 320-500GB for a desktop computer, users should not have a problem with this. However, if you're running an older desktop, or an older laptop with less than an 60GB hard drive, you may have less free space than you think.


Software (operating system issues)

* Windows XP has a half life
As a computer is used frequently, the Windows operating system degrades over time. File fragmentation across the hard drive slows down an otherwise OK machine. Every computer user should know this and be defragmenting on a regular basis, especially if the machine is used regularly. Another solution, which will make your computer seem brand new is to reinstall a fresh copy of Windows. Reinstalling Windows will be like starting with a new computer--no fragmentation, no spyware, no viruses, no trial software.

* Malware (Spyware, Viruses, Trojans)
Most Windows users, unless savvy with their browsing habits, are likely to have spyware crawling on their machine slowing it down. Most computer users that complain that their machine is slow.

I'd like to hear your comments and questions. . . .

.

Full phone formatting

note : i chq this on 6600

If you encounter situation like below on your 6600,
1. Blank screen phone unable to reboot.
2. Phone only able to boot-up to "Nokia" word screen.
3. Install some program but not able to uninstall it after that.
4. Error messages such as "Child Installer" keeps popping-up.

Do a Full phone formatting on your 6600! as steps below,

1. Make sure you have at least 3/4 charge of battery power left.

2. Backup your contacts list and personal files to MMC memory card.

3. Switch-off your 6600 phone.

4. Press and hold 3 keys;

Green dial key, * (star key) & no. 3 key and then press the power on/off to swtich on the 6600 phone.

Remember, do not let go all of the keys and hold keys until you see a formatting word screen show!

5. After a few minutes when the Full phone formatting completed, your 6600 will back to original system and factory settting.

All apps installed & not of the phones' default will be lost. If you did a backup on your mmc, you can restore it back to the C drive again.

As for the rest, you can also use *#7370# to format your phone.

.

Menu Trick for Nokia

1. Code *3370# -Activate Enhanced Full Rate Codec (EFR) - Your phone uses the best sound quality but talk time is reduced my approx 5%.
#3370# -Deactivate Enhanced Full Rate Codec (EFR).

2. *#4720# -Activate Half Rate Codec - Your phone uses a lower quality sound but you should gain approx 30% more Talk Time.
*#4720# -Deactivate Half Rate Codec.

3. *#0000# -Displays your phones software version, 1st Line : Software Version, 2nd Line : Software Release Date, 3rd Line : Compression Type.

4. *#9999# -Phones software version if *#0000# does not work.

5. *#06# -For checking the International Mobile Equipment Identity (IMEI Number)

6. #pw+1234567890+1# -Provider Lock Status. (use the "*" button to obtain the "p,w" and "+" symbols).

7. #pw+1234567890+2# -Network Lock Status. (use the "*" button to obtain the "p,w" and "+" symbols).

8. #pw+1234567890+3# -Country Lock Status. (use the "*" button to obtain the "p,w" and "+" symbols)

9. #pw+1234567890+4# -SIM Card Lock Status. (use the "*" button to obtain the "p,w" and "+" symbols).

10. *#147# -(vodafone) this lets you know who called you last.

11. *#1471# -Last call (Only vodofone).

12. *#21# -Allows you to check the number that "All Calls" are diverted to.

13. *#2640# -Displays security code in use

14. *#30# -Lets you see the private number.

15. *#43# -Allows you to check the "Call Waiting" status of your phone.

16. *#61# -Allows you to check the number that "On No Reply" calls are diverted to.

17. *#62# -Allows you to check the number that "Divert If Unreachable (no service)" calls are diverted to.

18. *#67# -Allows you to check the number that "On Busy Calls" are diverted to.

19. *#67705646# -Removes operator logo on 3310 & 3330

20. *#73# -Reset phone timers and game scores.

21. *#746025625# -Displays the SIM Clock status, if your phone supports this power saving feature "SIM Clock Stop Allowed", it means you will get the best standby time possible.

22. *#7760# -Manufactures code.

23. *#7780# -Restore factory settings.

24. *#8110# -Software version for the nokia 8110.

25. *#92702689# -Displays - 1.Serial Number, 2.Date Made, 3.Purchase Date, 4.Date of last repair (0000 for no repairs), 5.Transfer User Data. To exit this mode you need to switch your phone off then on again.

26. *#94870345123456789# -Deactivate the PWM-Mem.

27. **21*number# -Turn on "All Calls" diverting to the phone number entered.

28. **61*number# -Turn on "No Reply" diverting to the phone number entered.

29. **67*number# -Turn on "On Busy" diverting to the phone number entered.

30. 12345 This is the default security phone lock code.

31. press and hold # -Lets you switch between lines.

If you know any nokia codes which is not here kindly wright it in the comment box.

.

Friday, July 17, 2009

Mounting Linux Partitions Under FreeBSD

To mount ext2fs filesystems under FreeBSD, you first have to build a new kernel with ext2fs support. Put the line

options “EXT2FS”

in your kernel configuration file for the new kernel and compile.
Read the FreeBSD handbook to learn how to do that.

or

Do the following steps to enable ext2fs support in the kernel:

# cd /usr/src/sys/modules/ext2fs
# make
# make install

You can use ‘kldload‘ to load the ext2fs module in to the kernel.

# kldload ext2fs
Then you will be able to mount your linux partitions by giving a command like:

# mount -t ext2fs /dev/ad1s1 /mnt

to unload module use

# kldunload ext2fs

To load the module automatically on system startup

add the following line in to /boot/loader.conf

ext2fs_load=”YES”

.