Skip to content

Download chrome browser development version for ubuntu

25-Nov-09

Download chrom development version for ubuntu

You can download the development verion from the url below, there are versions available for other platform also from the url.

http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/pool/main/c/chromium-browser/

Adding the repository:

https://launchpad.net/~chromium-daily/+archive/ppa

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu intrepid main

Adding google repository to Ubuntu or Debian based distros

24-Nov-09

Adding google repository to Ubuntu or Debian based distros.

Add the following rule to e.g. /etc/apt/sources.list, or if your distro has the /etc/apt/sources.list.d/ directory, add it to a file called google.list in that directory:

# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free main

Once the above entry is added we can run apt as usual.

sudo apt-get update
sudo apt-get install picasa

For other distros – check – www.google.com/linuxrepositories/apt.html

running fsck on reboot

24-Nov-09

The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck:

# shutdown -rF now

-F Force fsck on reboot.
-r Reboot after shutdown.
-k Don’t really shutdown; only send the warning messages to everybody.

or

Login as user root and create a file called forcefsck:

# touch /forcefsck

Now reboot the system:

# reboot

Running fsck on your server

24-Nov-09

Q. My laptop partition  /dev/sdb1  is showing file system error, how  do i use fsck command to check for file system error and repair the partition.

Solution  is to use   fsck – check and repair a Linux file system or use e2fsck – check a Linux ext2/ext3 file system.

Device              Start       End Blocks      Id                      System
/dev/sdb1      1               2861              2011014+ 6   FAT16

Step 1 – Go to single user mode if needed and then Unmount the partition.

root@laptop:# init 1     [for my laptop there was no need to go to single user mode, as i was able to unmount the partition]

root@laptop:# umount /dev/sdb1

Step 2 – Run Fsck on /dev/sdb1

root@laptop:# fsck -yvf /dev/sdb1

fsck 1.41.4 (27-Jan-2009)
dosfsck 3.0.1 (23 Nov 2008)
dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID “MSDOS5.0″
Media byte 0xf8 (hard disk)
512 bytes per logical sector
32768 bytes per cluster
4 reserved sectors
First FAT starts at byte 2048 (sector 4)
2 FATs, 16 bit entries
125952 bytes per FAT (= 246 sectors)
Root directory starts at byte 253952 (sector 496)
512 root directory entries
Data area starts at byte 270336 (sector 528)
62835 data clusters (2058977280 bytes)
63 sectors/track, 255 heads
243 hidden sectors
4022029 sectors total
Reclaiming unconnected clusters.
/dev/sdb1: 1050 files, 53941/62835 clusters

You can also user logsave which saves the output of a command in a logfile.

root@laptop:# logsave -asv /var/log/fsck.log fsck -y /dev/sdb1
Log of fsck -y /dev/sdb1
Tue Nov 24 13:25:06 2009

fsck 1.41.4 (27-Jan-2009)
dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN
/dev/sdb1: 1050 files, 53941/62835 clusters

Tue Nov 24 13:25:07 2009

Remount after running fsck

root@laptop:# mount /dev/sdb1 /media/home2/

setuid for programs

23-Nov-09

setuid program are programs, which runs as owner of the program, rather than the user executing the program.

root@laptop:~# ls -l `which su`
-rwsr-xr-x 1 root root 31012 2009-04-04 11:19 /bin/su
root@laptop:~# ls -l `which sudo`
-rwsr-xr-x 1 root root 115136 2009-02-17 08:52 /usr/bin/sudo
root@laptop:~#

Reconfigure PHP5 on cPanel Server for XSL

23-Nov-09

Requirements

This extension uses libxslt which can be found at » http://xmlsoft.org/XSLT/. libxslt version 1.1.0 or greater is required.

CUSTOM_PHP_FLAGS="--with-xsl" /scripts/easyapache

http://in3.php.net/manual/en/xsl.installation.php

On debian –

sudo apt-get install php5-xsl

Fail Open DNS Servers

23-Nov-09

Closing open DNS server. Add the following to your named.conf file.

Add the following, replacing mainIP and secondaryIP with your systems nameservers.

acl "trusted" {
mainIP;secondaryIP;127.0.0.1;
};

Example:

acl "trusted" {

mainIP;secondaryIP;firstserverip;secondserverip;127.0.0.1;

};

Only the trusted IP is allowed for certain functions.

allow-recursion { trusted; };
allow-notify { trusted; };
allow-transfer { trusted; };

Example:

include "/etc/rndc.key";

controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};

acl "trusted" {
ip1;ip2;ip3;ip4;ip5;127.0.0.1;
};

//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
allow-recursion { trusted };
allow-notify { trusted };
allow-transfer { trusted };
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;

The Google Chrome Operating System

23-Nov-09

The Google Chrome Operating System

Google Chrome OS is an open source, lightweight operating system that will initially be targeted at netbooks. Google Chrome OS will run on both x86 as well as ARM chips.

Google Chrome OS is an open source operating system created by Google designed to work exclusively with web applications. Announced on July 7, 2009, Google Chrome OS is set to have a publicly available stable release during the second half of 2010

More – at http://chrome.blogspot.com/

http://chrome.blogspot.com/2009/11/announcing-chromium-os-open-source.html

Recover deleted files in Linux photorec – Recover lost files from harddisk, digital camera and cdrom

16-Nov-09

/usr/sbin/testdisk testdisk – Scan and repair disk partitions
/usr/sbin/photorec photorec – Recover lost files from harddisk, digital camera and cdrom

NAME
photorec – Recover lost files from harddisk, digital camera and cdrom

SYNOPSIS
photorec [/log] [/debug] [/d recup_dir] [device|image.dd|image.e01]

photorec /version

DESCRIPTION

PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (Photo Recovery) from digital camera memory. PhotoRec is safe to use, it will never attempt to write to the drive or memory support you are about to recover lost data from.

OPTIONS

/log create a photorec.log file

/debug add debug information

More in details at http://serversignature.com/serversignature/docs/html/testdisk.html

How to test your java installation.

15-Nov-09

Please visit the following link to test your java installation.

http://www.java.com/en/download/help/testvm.xml