Friday, August 29, 2008

View Hidden Files and Folders in File Browser of Ubuntu Hardy

By Default Ubuntu file browser does not show hidden files or folders

Press Ctrl+H for display Hidden files and Folders

If you like to make this be the default setting

Go to the Edit menu --> Preferences--> Views

tick on show hidden and backup files

Thursday, August 28, 2008

Scribefire easy blogging tool from firefox

I have tested BloGTK Weblog Client, Drivel Journal Editor and Windows
Live Writer
, First Two are not professional, Live Writer good, but it
cannot use with Google's Blogger. Firefox Scribefire is the best tool for
bloggers and it is very easy to use and install.


Using Firefox Browser Goto site
http://www.scribefire.com/

Click on Install Scribefire Now

You will get a small notepad like icon at bottom right corner of
your browser

Click on it and configure your url (if you are not an expert don't try manual configuration)

By using settings tab at left panel You can change full screen mode by
selecting a New tab option

It is very easy

Ubuntu security patch for kernel flaw

On Tuesday, Canonical released a kernel patch to address security issues in the 6.06, 7.04, 7.10 and 8.04 releases of Ubuntu, Edubuntu and Xubuntu. The vulnerability could allow an attacker to execute arbitrary code as root, or crash the system, leading to a denial of service.

"It was discovered that there were multiple NULL-pointed function de-references in the Linux kernel terminal handling code," wrote Ubuntu administrators in the e-mail. "A local attacker could exploit this to execute arbitrary code as root, or crash the system, leading to a denial of service."

The e-mail also detailed a number of other bugs that could be exploited by an attacker who already had some level of access to a computer running Ubuntu.

Wednesday, August 27, 2008

Intel Core i7 with Quick Path


Nehalem is the codename of the new Intel CPU with integrated memory controller that will reach the market next month and that will be called Core i7; this architecture will also be used on CPUs targeted to servers (Xeon) and, a few years from now, it will also be used on entry-level CPUs. CPUs based on this architecture will have an embedded memory controller supporting three DDR3 channels, three cache levels, the return of HyperThreading technology, a new external bus called QuickPath and more.


Features :-
Based on Intel Core microarchitecture. Two to eight cores. Integrated DDR3 triple-channel memory controller. Individual 256 KB L2 memory caches for each core. 8 MB L3 memory cache. New SSE 4.2 instruction set (seven new instructions). HyperThreading technology. Turbo mode (auto overclocking).
  • Improved virtualization performance (60% improvement on round-trip virtualization latency compared to 65-nm Core 2 CPUs and 20% improvement compared to 45-nm Core 2 CPUs, according to Intel).
  • New QuickPath Interconnect external bus.
  • New power control unit.
  • 45 nm manufacturing technology at launch, with future models at 32 nm (CPUs codenamed “Westmere”).
  • New socket with 1366 pins.

It is important to remember that Core 2 CPUs manufactured under 45-nm technology have extra features compared to the Core 2 CPUs manufactured under 65-nm technology. All these features are present on Nehalem-based CPUs are the most significant ones are:

  • SSE4.1 instruction set (47 new SSE instructions).
  • Enhanced Intel Dynamic Acceleration Technology (only on mobile CPUs).
  • Fast Radix-16 Divider (FPU enhancement).
  • Super Shuffle engine (FPU enhancement).
  • Enhanced Virtualization Technology (between 25% and 75% performance improvement on virtual machine transition time).

AMD New Processors

Almost stealthy, AMD has launched four new processors. See them below.

Processor

Model

Internal Clock

L2 Cache

L3 Cache

Price

Phenom X4

9750B

2.4 GHz

512 KB per core

2 MB

US$ 250

Phenom X3

8759B

2.4 GHz

512 KB per core

2 MB

US$ 200

Athlon X2

5600B

2.9 GHz

512 KB per core

-

US$ 125

Athlon X2

4850B

2.5 GHz

512 KB per core

-

US$ 100

see more in http://www.amd.com/us-en/

Compare DDR2 and DDR3

Compare DDR2 and DDR3

Considering the ever growing need of speed and efficiency, understanding Double-Data-Rate (DDR) memory is important to system developers.

Characteristics
DDR memory's primary advantage is the ability to fetch data on both the rising and falling-edge of a clock cycle. DDR1, DDR2, DDR3 memories are powered up with 2.5, 1.8 and 1.5V supply voltage respectively. Temporization is another characteristic of of DDR memories, memory temporization is given in a series of numbers, such as 2-3-2-6-T1, 3-4-4-8 or 2-2-2-5 (CL-tRCD-tRP-tRAS-CMD) for DDR1. These numbers indicate the number of clock pulses that it takes to perform a certain operation- smaller the number faster the memory.
CL - Column Address Strobe, tRCD - Row Access Strobe to CAS delay

Type of DDR Memories

DDR1 with a maximum rated clock of 400MHz and a 64bit(8 bytes) data bus ( Now it is obsolete) .
DDR2 with a maximum rated clock of 800Mhz and a 64bit(8 bytes) data bus. DDR2 memory is physically incompatible ith previous generation of DDR memories.
DDR3 starts where DDR2 left off(800 MHz) and bring the speed up to 1.6 GHz. The 1.5V DDR3 voltage also save power( it will work in 1.36v also)

DDR2 Vs DDR3

DDR2 memories include 400Mhz, 533Mhz, 667Mhz and 800MHz versions, while DDR3 includes 800MHz, 1066Mhz, 1333MHz, and 1666Mhz versions.

Besides the enhanced bandwidth, DDR3 also uses less power than DDR2 by operating on 1.5V(16.3% reduction)

A newly introduced automatic calibration feature for the output data buffer enhances the ability to control the system timing during variations in voltage and temparature.

DDR3 devices introduce an interrupt reset for system flexibility.

Difference in the CL ( Column Address Strobe)

The controller in DDR2 memories works by preloading 4 data bits from the storage are(prefetch) while DD# works by loading 8 bits in advance.

For more details read ECN August 2008, Understanding RAM timings (article) www.hardwaresecrets.com/article/26/1 and powerelectronics.com/mag/power_ddr_memories_require/

Monday, August 25, 2008

Installing PHP5 and Apache on Ubuntu

Installing PHP5 and Apache on Ubuntu

If you are doing any kind of PHP development, you'll almost always be using Apache along with it. Here's the way to get PHP up and running on your Ubuntu box.


From a command shell, you will run the following commands:

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart

Your web files will now be found in /var/www/

Installing Tomcat 6 on Ubuntu

Installing Tomcat 6 on Ubuntu

If you are running Ubuntu and want to use the Tomcat servlet runner, Some times the apt will not work correctly. You can try the following method it will work.

Before you installing Tomcat you must install Java. I would assume if you are trying to install Tomcat you've already installed java, otherwise install Java as per my previous posting. If you aren't sure about your Java installation, you can check with the dpkg command like so:

dpkg --get-selections | grep sun-java

This will give you this output if you already installed java:

sun-java6-bin install
sun-java6-jdk install
sun-java6-jre install



Installation

Now we'll download and extract Tomcat from the apache site.

wget http://apache.hoxt.com/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz

tar xvzf apache-tomcat-6.0.18.tar.gz

The best thing to do is move the tomcat folder to a permanent location. I chose /usr/local/tomcat, but you could move it somewhere else if you wanted to.

sudo mv apache-tomcat-6.0.18 /usr/local/tomcat

Tomcat requires setting the JAVA_HOME variable. The best way to do this is to set it in your .bashrc file. You could also edit your startup.sh file if you so chose.

The better method is editing your .bashrc file and adding the bolded line there. You'll have to logout of the shell for the change to take effect.

vi ~/.bashrc

Add the following line:

export JAVA_HOME=/usr/lib/jvm/java-6-sun

At this point you can start tomcat by just executing the startup.sh script in the tomcat/bin folder.

Wednesday, August 20, 2008

Install rpm files in linux ubuntu hardy

Install rpm files in linux ubuntu hardy

open a terminal windows

sudo apt-get install alien

Use the following command to install your rpm file

sudo alien -i name_of_rpm_file.rpm

You can also convert rpm file to deb file
sudo alien -k name_of_rpm_file.rpm

for install deb file use
sudo dpkg -i name_of_created_deb_file.deb





proc filesystem tutorial Part-2

$ ls -l /proc will give a listing of files inside /proc

A brief walkthrough of the most important files

  • cmdline - The command line issued when starting the kernel.

  • cpuinfo - Information about the Central Processing Unit.

  • dma - Contains information about all DMA channels available, and which driver is using it.

  • filesystems - Contains short information about every single filesystem that the kernel supports.

  • interrupts - Gives you a brief listing of all IRQ channels, how many interrupts they have seen and what driver is actually using it.

  • iomem - A brief file containing all IO memory mappings used by different drivers.

  • ioports - Contains a brief listing of all IO ports used by different drivers.

  • kcore - Contains a complete memory dump. Do not cat or anything like that, you may freeze your system. Mainly used to debug the system.

  • kmsg - Contains messages sent by kernel, is not and should not be readable by users since it may contain vital information. Main usage is to debug the system.

  • ksyms - This contains the kernel symbol table, which is mainly used to debug the kernel.

  • loadavg - Gives the load average of the system during the last 1, 5 and 15 minutes.

  • meminfo - Contains information about memory usage on the system.

  • modules - Contains information about all currently loaded modules in the kernel.

  • mounts - Symlink to another file in the /proc filesystem which contains information about all mounted filesystems.

  • partitions - Contains information about all partitions found on all drives in the system.

  • pci - Gives tons of hardware information about all PCI devices on the system.

  • swaps - Contains information about all swap partitions mounted.

  • uptime - Gives you the uptime of the computer since it was last rebooted in seconds.

  • version - Gives the exact version string of the kernel currently running, including build date and gcc versions etcetera.

And here is a list of the main directories and what you can expect to find in there:

  • bus - Contains information about all the buses, hardware-wise, such as USB, PCI and ISA buses.

  • ide - Contains information about all of the IDE buses on systems that has IDE buses.

  • net - Some basic information and statistics about the different network systems compiled into the system.

  • scsi - This directory contains information about SCSI buses on SCSI systems.

  • sys - Contains lots of variables that may be changed, including the /proc/sys/net/ipv4 which will be deeply discussed in this document.

As you can see, there is literally hundreds of files in the /proc filesystem that may be read and checked for information, and we haven't looked at half of them here.

linux proc filesystem tutorial Part-1

A brief /proc walkthrough

The /proc filesystem contains a few basic directories and entries

$ ls -l /proc

First of all, the filesystem contains a large set of numbered directories that come and go. These numbered directories contains information about all of the currently active processes on the machine. When a new process is started, a new directory is created in the /proc filesystem for it, and a lot of data is created within it. eg: commandline with which the program was started with, a link to the "current working directory", environment variables, where the executable is located, and so on.

Most of the information in the files are readable , except a few of them. However, a few of them you should not touch, such as the kcore file. The kcore file contains debugging information regarding the kernel, and if you try to 'cat' it, your system may very well hang up and die. If you try to copy it to a real file on the harddrive, you will very soon have filled up your whole partition, and so on. What all of this tells you is to be very careful. Mostly, none of the variables or entries in the /proc filesystem is not dangerous to watch, but a few of them are.

A brief walkthrough of the most important files in part - 2 wait......

More gnome and apt easter Eggs in ubuntu

Another for apt

sudo apt-get moo will give output like
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...

One more
type and press enter the following in a terminal one by one

aptitude help
aptitude moo
aptitude -v moo
aptitude -vv moo
aptitude -vvv moo
aptitude -vvvv moo
aptitude -vvvvv moo
aptitude -vvvvvv moo

Tuesday, August 19, 2008

Virtualization made easy with ubuntu hardy

Virtualbox is a powerful virtualization tool in ubuntu hardy

Repository settings are same as my previous post (Java Installation)

sudu apt-get install virtualbox-ose virtualbox-ose-modules

After the installation is finished you’ll need to do just one of the following.

  • Add yourself to the vboxdrv group (sudo usermod -G vboxusers -a username), and then re-login.
  • change permissions on the vboxdrv device (sudo chmod 666 /dev/vboxdrv)

(if any failure try this commands before installing
1. sudo apt-get install build-essential linux-headers-`uname -r`
2.
wget http://www.virtualbox.org/download/1.5.6/virtualbox_1.5.6-28266_Ubuntu_hardy_i386.deb
3.
sudo dpkg -i virtualbox_1.5.6-28266_Ubuntu_hardy_i386.deb
4.
sudo adduser $USER vboxusers)

It is worked in my core2 duo e8200 machine with 2GB RAM and INTEL G33 Motherboard
Linux kernel version 2.6.24-16

Its Great I have created virtual machine with 512 MB RAM and 8 GB hard disk , tested with my Ubuntu hardy live CD , it worked and with out any configuration I have connected to internet and browsed, and also tested open office very fast and no complications.

Monday, August 18, 2008

INSTALL SUN JAVA IN UBUNTU LINUX

INSTALLATION OF SUN JAVA 6 IN UBUNTU HARDY

Run System-->>Administration-->>Synaptic Package Manager
(if it ask for passwd enter your sudo passwod)

In Synaptic Package Manager

select Settings-->>Repositories

in ubuntu software tab select first FOUR options
(main, universe, restricted, multiverse)

select Third-party Software tab and
tick
first option ( http://archive.canonical.com/ubuntu hardy partner)
and close it

Press reload button

after reloading the list
select search and type sun java
select sun-java6-bin, sun-java6-fonts, sun-java6-jdk, sun-java6-jre,
sun-java6-plugin (don't select sun-java6-doc it will make some problem)

then select apply

To work your browser plugins

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

  • Open a Terminal window
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.

  • Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun

  • Run java -version to ensure that the correct version is being called.

Sunday, August 17, 2008

Beware of GPS SPY in your pocket

A COMPANY CALLED QSTARZ has announced a tiny GPS tracker, which will able to show you where you are and where you’re going. The 60 x 40 x 7 mm BT-Q1300 travel recorder apparently includes the latest GPS chipset MTK with 66-CH. Whose partners want to keep track of them, BAR, PARK, CINIHOUSE .................. My god....

Solid State Disk (SSD) Will Replace Harddisk


The new Solid State Disks (SSD) will replace HDD soon, MICRON has announced two new lines of flash memory solid state drives (SSDs) using high-performance single-level cell (SLC) NAND technology, aimed at enterprise server and notebook PC applications.

SSDs offer performance advantages, power savings and reliability benefits over hard disk drives (HDDs).SSDs perform about ten times faster than HDDs, exhibiting 0.8 ms data access latency compared to average HDD data seek latency of approximately 8 ms.

SSDs consume about one-tenth the electrical power of typical HDDs, running at 0.3 watts when idle and only 2.5 watts while active, whereas HDDs usually draw between 8 to 28 watts. Since they use so little power, SSDs also require virtually no cooling, which also reduces power consumption.

SSDs are also more reliable than HDDs. Using wear-leveling technology, SSDs offer mean time before failure (MTBF) ratings of approximately two million hours compared to typical HDD MTBF ratings of between 300,000 to 500,000 hours.

SSDs for notebook PCs will come in 1.8-inch and 2.5-inch modules with capacities from 16GB to 256GB.

500 GB DVD from Pioneer

Leading hardware Pioneer has developed a technique which will allow optical drives to store 500GB of data. Nikkei Business Daily reported that the technique will use ultraviolet lasers, which emit shorter wavelength rays than blue lasers,
the beam to write data holes in a master disk, each separated by 70 nanometres.

Ultraviolet lasers are a good topic for engineering students seminar

Saturday, August 16, 2008

ADSL Configuration in ubuntu

ADSL Broadband Internet connection configuration

open a terminal
sudo apt-get install pppoe
sudo apt-get install pppoeconf

after installation
sudo pppoeconf

if you are not an expert select default and enter username and password when asking

after configuration
$ pon dsl-provider

Friday, August 15, 2008

DOSBOX RUN DOS APPLICATIONS AND GAMES IN UBUNTU LINUX

DOSBOX RUN DOS APPLICATIONS AND GAMES IN UBUNTU LINUX

sudo apt-get install dosbox
(Your can use Synaptic Package Manager and search for dosbox)

After Installation you can make a folder xxxxx in your home directory
(eg: $mkdir mydos)

copy your favorite dos programs and games like Turboc, dave, digger etc in this directory

Now you can run dosbox by typing dosbox in a terminal or
by select it from menu

You will get a small dos window with Z:\> prompt

in Z prompt type the following

Z:\>mount c /home/xxx/mydos
This command for mounting your dos directory to C Drive
(in my case my dos files are in /home/xxx/mydos )

Now You are ready for running your dos programms

Z:\> c: ( change drive to c:)
Z:\>dir (this will list your dos files placed in /home/xxx/mydos)

if ther is our old famous digger game

Z:\>digger and Enjoy it.

Thursday, August 14, 2008

LIST OF WIRELESS NETWORK ADAPTERS IN UBUNTU

You can find the list of wireless devices supported by ubuntu
here

SOME USEFULL COMMANDS FOR LINUX NETWORKING

Ping
ifconfig
- lists IP address (similar to ipconfig in Windows)
iwlist scan - scan for wireless networks available in the area
lshw -C network - Shows network interfaces and drivers
route -n - Lists kernel IP routing table -- Good for troubleshooting problems with the internet connection
dmesg | more - Lists boot log -- good for troubleshooting problems with modules/drivers not being loaded
cat /etc/resolv.conf - Lists DNS servers

CONNECT TO WIRELESS LAN IN UBUNTU

If your wireless card is properly installed use the following command for connect to a wireless access point

sudo ifconfig eth0 down
sudo ifconfig wlan0 down
sudo dhclient -r wlan0
sudo iwconfig wlan0 essid "ESSID_IN_QUOTES"
sudo iwconfig wlan0 mode Managed
sudo ifconfig wlan0 up
sudo dhclient wlan0

Monday, August 11, 2008

Javascript form validation help

see the following links

http://www.pantz.org/software/javascript/formvalidation.html

http://psacake.com/web/jb.asp

Sunday, August 10, 2008

gksu and kdesu

You can run graphical utilities like gedit in superuser mode by using

gksu and kdesu commands in command line

Thursday, August 7, 2008

Make an ISO from files

This will help you to make an iso image of your files and directories

mkisofs -o cd.iso /home/myhome/myfolder

Make iso image of a CD/DVD

This can use for backup your CD/DVD

dd if=/dev/dvd of=dvd.iso # for dvd drives in IDE/ATA
dd if=/dev/cdrom of=cd.iso # for cdrom in IDE/ATA
dd if=/dev/scd0 of=cd.iso # if CD/DVD is scsi/SATA


if your CD/DVD automount , unmount it before running this command that is safer

Recover Ubuntu Grub Bootloader After Windows Wipes it Out

This steps can be done from Windows
  • Download software Auto Super Grub Disk

  • Double-click auto_super_grub_disk_1.0 icon, install it, and reboot.

  • On the next boot, select the UNetbootin-supergrubdisk menu entry; this will launch the Auto Super Grub Disk.

  • Do nothing till you see your Grub menu again.

  • Next time you boot Windows, click yes when asked to remove UNetbootin-supergrubdisk to remove the Super Grub Disk menu entry.

Tuesday, August 5, 2008

Disable IPv6 in ubuntu 8.04

Disable IPv6 in ubuntu

Steps
1. sudo gedit /etc/modprobe.d/aliases
2. Find the line: alias net-pf-10 ipv6
3. Edit this to: alias net-pf-10 off
4. Save the file and reboot

Friday, August 1, 2008

Linux Tips Shutdown and Init levels

Linux Commands for Shutdown and Reboot

halt
poweroff
reboot
shutdown

Linux has SEVEN Runlevels( Operating Modes)

init 0 - System Halted

init 1 - Single User Mode

init 2 - Single User Mode with Networking

init 3 - Multi User Mode - Text Mode

init 4 - Not yet Defined

init 5 - Multi User Mode - X Windows

init 6 - Shutdown and Reboot