Showing posts with label technology. Show all posts

Friday, February 19, 2010

0

Google Buzz in the house!!!

Posted in
     I would like to share with you about new product of google which is the google buzz that recently launch last February 9, 2010. Google Buzz is a social network sites and sharing product built by Google. Based within Google Profiles, Buzz offers a stream of status updates, pictures, links, and videos from your friends. Buzz focuses on integrating photos, videos, and links as part of the “conversations” aspects of Gmail like conversation threading. Like other social networking sites we expect more great feature of buzz in the future. So let us use and discover things what inside these google buzz and how it can help us communicate with collaboration.





Tuesday, December 8, 2009

1

Friendster relaunches new website; targets Asia for growth

Posted in


Checking this new look and new environment on friendster, finally the management had taken to change their website but needs to catch up other social networking site by adding new games and application for better social interaction on it's user...

Sunday, November 29, 2009

0

How to install IPCOP

Posted in ,
Firewalls are everywhere. They are standard issue, par-for-the-course, ticket-to-ride technology that every network, system, and device that is connected to the Internet now requires. Firewalls also take on a lot of different forms, from software solutions to small devices you can pick up at an electronics store to high-end boxes from vendors such as Cisco.

All of the different firewall choices can get a little overwhelming for IT professionals, especially when you only need to set up a simple firewall to protect a small or remote office network. In that case, one of the best solutions for combining low-cost, ease-of-use, and beefy functionality is IPCop.

What is IPCop?
Essentially, IPCop is a Linux-based firewall that turns an x86 system into a firewall appliance. You could call IPCop a Linux firewall distribution, because it has a self-contained kernel and operating system. In other words, you do not have to install IPCop on top of a standard Linux distribution such as Red Hat. You install IPCop like you would an operating system, and once it is installed it completely monopolizes the machine for use as a firewall appliance.

After installation, IPCop is controlled by a Web-based GUI and does not require any knowledge of Linux. It leverages the strengths of open source—it's free and continually updated and patched—and it takes advantage of the power of Linux firewall and security software such as IPTables, Snort IDS, and FreeS/WAN VPN and simplifies their usage and configuration into its Web-based interface.

The following are some of the features that IPCop includes:
  • Network Address Translation (NAT)
  • DHCP server
  • VPN server
  • Transparent Web proxy
  • Secure Shell (SSH) access
  • Port forwarding
  • DMZ setup
  • Detailed, well-organized logs
  • Intrusion Detection System (IDS)
  • Traffic statistics and graphics

For more details on the features and development of IPCop, take a look at my TechRepublic article on the subject.

Other firewall distributions
IPCop is not the only Linux firewall distribution. Most notably, IPCop is a derivative of the free version of SmoothWall, which is now a subset of a commercial firewall product called CorporateServer 3.0. Other firewall distributions include Devil-Linux and the Coyote Linux Floppy Firewall.


What does it require?
IPCop is software that turns an x86 machine into a hardware appliance—a firewall/gateway/router in this case. You can run an IPCop firewall on minimal hardware. However, for a business deployment I would recommend the following minimum requirements:
  • 300-MHz CPU
  • 256 MB of RAM
  • 5-GB hard disk
  • Two 3Com NICs

These minimum requirements assume that we're dealing with a small or remote office with a DSL Internet connection (or equivalent) and up to about 30 client machines. You can get by with less than the hardware I've recommended, but this is a solid starting point. If you are supporting more than 50 client machines, you should probably go with at least a 500-MHz CPU, 512 MB of RAM, and a 10-GB hard disk (the extra disk space is needed for IPCop's Web proxy).

As you can see above, I also recommend using 3Com NIC cards. That's for two reasons. First, they tend to fail less than other NICs (Intel cards are pretty sturdy, too). Second, IPCop usually has an easy time recognizing these cards, and that makes installation a lot easier. You can use up to three NICs with IPCop—one for the internal network, one for the Internet, and one for a DMZ.

Pre-installation preparations
In this tutorial, I'm going to be walking through the most common configuration for IPCop, which is to set it up as a firewall/gateway running two interfaces and no DMZ. During the IPCop installation, this setup is called a GREEN + RED configuration, in which the green interface is the NIC connected to the local network (usually a hub or a switch) and the red interface is the NIC connected to the Internet (such as a DSL/Cable/T1 router).

Before you start the installation, you need to make sure you have the following information ready:
  1. The static IP address that will be used for the green interface (this will eventually become the default gateway address for the client systems on your network)
  2. How you need to obtain the IP address for the Internet (RED) interface—this could be static, DHCP, PPTP, or PPPoE (if the address is obtained via DHCP, check to see if you need to provide a hostname)
  3. Whether you will be running a DHCP server from the firewall/gateway, and if so, what range of addresses will be handed out by the DHCP server

Once you have this information hammered out, you are ready to install. You will need to download the IPCop software. This comes in the form of an ISO image that can be turned into a bootable installation CD using a CD burner. For example, you can download the ISO and burn it in Windows using Easy CD Creator or similar programs (you can look in the help files of your CD-burning software for information on how to burn ISOs).

Perform the installation
Once you have your IPCop installation CD made, pop it in the CD drive of the target system and restart. The system should automatically boot into the CD (if it doesn’t, then you probably need to change the boot order in the system's BIOS so that the CD is the first device that the system tries to boot from). If you have successfully booted from the IPCop CD, you'll see the welcome screen in Figure A.

Figure A



At the welcome screen, press [Enter] to start the installation. After the installer loads, the first thing you will be prompted to do will be to select a language (Figure B).

Figure B



The next selection you will have to make involves the installation media. Choose CDROM (Figure C). You may get a message that tells you to insert the CD into the computer. It should already be there, but if not then insert it and click OK.

Figure C



The next message you get on the screen will tell you that IPCop is about to repartition the target hard drive and will tell you which drive it is going to format (e.g. /dev/hda1), as shown in Figure D. Once this operation is completed all the data on the selected disk will be wiped out, so make sure you have the correct hard disk installed in your system and that IPCop has selected it correctly.

Figure D



Once the partitioning is complete, you'll get a message asking if you would like to restore an IPCop system configuration (from a past installation), as you can see in Figure E. I assume you don't have a backup from a previous IPCop installation, but if you do, put the floppy disk in the system and select Restore. Otherwise, select Skip.

Figure E



Next, it's time to start the preliminary network configuration. You will be prompted to configure the GREEN (internal network) interface (Figure F). Click Probe.

Figure F



IPCop shouldn’t have any trouble identifying your network adapters (especially if you’re using 3Com NICs, as I recommended). You'll get a message telling you the vendor name of the NIC that IPCop identified as the GREEN interface, and then you will be prompted to enter a static IP address (Figure G).

Figure G



After you set the IP address and subnet mask of IPCop's GREEN interface, the installation will spit out the IPCop CD and you will get a message telling you that the installation was successful, but that there are a few more steps to complete (Figure H). Remove the CD and select OK.

Figure H



You'll then be prompted to select the keyboard type that you are using and select your time zone. Then you select a hostname for the IPCop machine (Figure I). The default is "ipcop" (which I would recommend changing so that you don't simply give away its identity to potential attackers).

Figure I



The ISDN Configuration Menu pops up next (Figure J). This is only needed if you have an internal ISDN card. If you do want to use ISDN, I would recommend using a separate ISDN router and then connecting its network interface to the RED interface of IPCop. On this menu, simply select Disable ISDN.

Figure J



You are now prompted with the Network Configuration Menu (Figure K). Highlight Network Configuration Type, then press [Tab] to select OK and press [Enter].

Figure K



In the Network Configuration Type Menu (Figure L), select GREEN+RED to set up a standard firewall in which one network adapter goes to the internal network (GREEN) and the other adapter connects to the Internet (RED).

Figure L



After you select GREEN+RED, you'll go back to the Network Configuration Menu in Figure K. This time you should select Drivers And Card Assignments, then tab over to OK and press [Enter]. You'll receive a screen that shows the current card assignments and asks if you want to make changes (Figure M). Click OK and IPCop will probe for your NICs and attempt to allocate the second NIC to the RED interface.

Figure M



Once that's complete, you'll return to the Network Configuration Menu (Figure K) again. This time you should select Address Settings, and then you'll be prompted to select the appropriate interface (Figure N). You should select RED.

Figure N



This will lead you to the RED interface configuration screen. It looks similar to the GREEN interface configuration screen back in Figure F, except that you have four selections at the top: Static, DHCP, PPPOE, and PPTP. In most cases, this basically comes down to a choice between Static and DHCP, and it simply depends on whether your ISP has assigned you a static IP address or if the address is assigned automatically via DHCP. If the answer is DHCP, highlight that option and press the spacebar to select it. If it is Static, you'll also need to enter the IP address and subnet mask.

When you're finished and you select OK, you'll return to the Network Configuration Menu. If you are using DHCP on the RED interface, you can select Done. However, if you have a static IP address, you need to select DNS And Gateway Settings, which will provide a screen for you to enter two DNS servers and a default gateway (Figure O).

Figure O



Select Done, and you will then be prompted with the DHCP Server Configuration (Figure P) dialog box. IPCop can act as a DHCP server for the internal network (via the GREEN interface). If you would like to use IPCop as a DHCP server, simply press the spacebar to select Enabled, then enter the range of addresses you would like to allocate and fill in other DHCP settings.

Figure P



After you're done with the DHCP server configuration, you will be prompted to enter passwords (Figure Q) for three users: root, setup, and admin. The root account is for console access, the setup account is for getting back into the installation menus, and the admin account is for logging into the Web administration interface.

Figure Q



Once you have entered the passwords, you will receive a message that says Setup is complete (Figure R). Click OK to reboot the IPCop server.

Figure R



Confirm that it works
After the IPCop firewall restarts and is ready to go, you'll hear a unique series of three beeps that tells you IPCop is now live. The first test you should run is to open up a command prompt from a machine on the same internal network as the GREEN interface of IPCop and try to ping the IP address of IPCop's GREEN interface.

If that works, then you can open up a Web browser and connect to IPCop's Web administration module. You can connect via HTTP or HTTPS and you can use either the IP address or the hostname of the GREEN interface, but you have to append specific port numbers (81 for HTTP and 445 for HTTPS). For example, these four URLs demonstrate the format:
  • http://ipcop:81
  • https://ipcop:445
  • http://192.168.1.1:81
  • https://192.168.1.1:445

Obviously, you should replace ipcop and 192.168.1.1 with the hostname or IP address that you assigned for your firewall. When you successfully connect to the Web interface, you see the screen in Figure S. When you click the menu items on the left navigation bar (e.g. Information, Logs, System) you'll be prompted for a username and password. You should use the "admin" username along with the password you assigned to it.

Figure S

Saturday, November 14, 2009

1

How to install hp P1006 in ubuntu

Posted in
On your terminal type in the command below to download the driver
$ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz Now unpack it:
Unpack:
$ tar zxf foo2zjs.tar.gz
$ cd foo2zjs
Compile:
$ make

Get extra files from the web, such as .ICM profiles for color correction,
and firmware. Select the model number for your printer:
$ ./getweb P1005 # Get HP LaserJet P1005 firmware file
$ ./getweb P1006 # Get HP LaserJet P1006 firmware file
$ ./getweb P1007 # Get HP LaserJet P1007 firmware file
$ ./getweb P1008 # Get HP LaserJet P1008 firmware file
$ ./getweb P1505 # Get HP LaserJet P1505 firmware file

Install driver, foomatic XML files, and extra files:
$ su OR $ sudo make install
# make install

(Optional) Configure hotplug (USB; HP LJ P1005/P1006/P1007/P1008/P1505):
# make install-hotplug OR $ sudo make install-hotplug


Installing HP 1020 1022n HP2550

Open Terminal and type in the following
  1. Plug in and turn on your printer(1020, 1022n, 2550)
  2. su root then supply the admin password
  3. Install the follwing packages (apt-get install cups cups-pdf)
  4. the type in hpsetup and follow the instructions
0

How to restore and backup with backuppc

Posted in
After you had setup backuppc lets try to access it by typing the ip address of the server

http://ip address/backuppc

it will ask you the username and password
screenshot
Click on 'Start Full Backup' button to start your first backup. Note that this first backup will take a while. The next time you back up, it will be an 'incremental' backup and should only take a few minutes.
If you get any error messages, let the administrator know of that message




7. Retrieve backed-up data

To restore files / folders, simply click on 'browse backups' link on the left menu.
screenshot
You should see a screen like the above.

Then click the checkboxes next to the files and folders you want to restore and click on 'restore selected files.'

Once you click on 'restore selected files,' a screen like the below should show up. There are 3 options to what to do with the files / folders you've selected.

screenshot
  • Option 1: Direct Restore
  • Option 2: Download Zip archive
  • Option 3: Download Tar archive
Option 1 will write the backed up files / folders to your harddrive (if the same file is there, it will overwrite).

Option 2 and 3 will archive the files / folders and let you download the archived package as .zip or .tar respectively. This feature has other potential uses than just backup / restoration; you can access the backed up files / folders from anywhere in the world!

0

How to set up backuppc in windows client

Posted in

1. Download the software package (zip)

Get it here!
Sourceforge.net (get the 'zip' package)

2. Unpackage it

make a folder named 'rsyncd' in C:

unzip the content into C:\rysncd

3. Edit Configuration Files

1.) rsyncd.secrets file

Located at C:\rsyncd\rsyncd.secrets

The file should look like this:

#
# The format of this file is user:password. You can have as many entries
# as you wish. These accounts are sepecifc to the rsync daemon and share
# no relation to Windows local/domain accounts, nor Cywin entries in the
# passwd file.
#
# SECURITY WARNING: Don't use these defaults of UUU for the user name
# and PPP for the password! Change them!!
#
# Also: make sure this file ends in a newline. Otherwise the last
# username/password pair will be ignored.
#
UUU:PPP

Read the instructions. As it says, make sure that the last line is a new blank line.Replace 'UUU' with a username (no, it does not code for phenylalanine).
You can just make up this username. Replace 'PPP' with a real password (should at least have numbers and alphabets).
2) C:\cygwin\rsyncd.conf File
Required modification:

Find the following section:

#
# What user(s) have access to this module. The user(s) must be
# defined in the secrets file. A comma or space separated list.
#
# Example:
# auth users = backup, root, larry
# auth users = backup root larry
#
auth users = username, backuppc

Where it says 'auth users = .....', replace any existing name(s) with the username that you placed in 'rsyncd.secrets' file AND add the user 'backuppc' (as shown in the example above).

Also find the following section in the file.

#
# What hosts are allowed access to this module? By default, all
# hosts are allowed access. If you wish to further strengthen
# the security of your setup, uncomment and replace with the IP
# address your BackupPC server. This is a flexible setting and
# can be one of:
#
# a dotted decimal IP address: 172.16.0.17
# a address/mask in the form a.b.c.d/n: 172.16.0.0/24
# an address/mask in the form ipaddr/maskaddr: 172.16.0.0/255.255.255.0
# a hostname: backupserver
# a hostname pattern using wildcards: backup
#
# hosts allow =

hosts allow = xxx.xxx.xxx.xxx
IMPORTANT: Make the same modifications for the variables shown at the end of the file. ie for
  • hosts alow
  • auth users
Optional Modifications.

By default, the backup software will back up practically everything in your 'C:\Documents and Settings'folder. If you want to specify the

folders to be backed up, find the following section and modify.
#
# Exact DOS style path to the file or directory to be rsync accessible
#
path = c:/Documents and Settings
#
# A short description of the module. This is what is printed when
# using rsync to 'browse' the server for what modules are available.
#
comment = Documents and Settings

Note that the slash is forward (not backward).
Also note that everything inside the specified folder will be backed up. However, you can exclude certain folders by specifying them on the

config file on the server; you can let the administrator know what folders to be excluded.
Moreover, you can only specify one path here (to specify multiple paths, see below). Here is an example,

path = c:/stuff/important_stuff/really_important_stuff
The 'comment' should only be 1 line. It would be a good idea to write this description for future reference
Automatic Restoration - if you would like BackupPC to automatically restore files on your computer (ie the backup server has the privilege to
write to your computer), then you must turn on this option (it's off by default). If you are planning on backing up system files so that you can restore the system (not just the data), this may be a good idea.
Otherwise, you will have to download the desired files/folders from BackupPC and manually restore them.

To turn on the option, find the following section and change 'true' to 'false'

#
# Only allow clients to READ from the server. This prevents uploads
# from remote machines. If you wish to allow uploads, change this too
# "true".
#
# WARNING: Setting this to true means that BackupPC restores via
# rsyncd will fail. You most likely want to set this to "false".
#
read only = true


4. Change the Permission

Now we want to make the 'resyncd.secrets' file read-only.
C:\rsyncd\rsyncd.secrets

To do this, right click the file and choose 'Properties.'

Check where it says 'Read-Only'

5. Set Up rsyncd Service

Next, set up the rsync job as a service to be started at boot-up.
Click on Start --> Run
type 'cmd' and press enter. In the terminal,
cd \rsyncd
Then,
cygrunsrv.exe -I rsyncd -e CYGWIN=nontsec -p c:/rsyncd/rsync.exe -a "--config=c:/rsyncd/rsyncd.conf --daemon --no-detach"
the second command is a long one liner. You must issue these commands without any misspelling.
To test to see if the above command was properly issued,

Go to Control Panel --> Administrative Tools --> Services

Find 'rsync' and click on 'start' to see if the service starts properly.

6. Open a Port

Finally, open a port for rsync in the firewall.
Control Panel --> Firewall --> Exceptions

  • Name: rsyncd
  • Port number: 873
  • Type: TCP

7. Submit config files to Administrator

Now the final step is to create and submit configuration files to the administrator.
cleintname.pl file

Copy and paste the following in Notepad:

# Tell BackupPC we wish to use rsyncd: requires rsync to be running as
# a service/daemon on the client system
#
$Conf{XferMethod} = 'rsyncd';
#
# Tell BackupPC which user name and password to use. This should
# match the userName:password pair in the C:\rsyncd\rsyncd.secrets
# file on the client.
#
$Conf{RsyncdUserName} = 'username';
$Conf{RsyncdPasswd} = 'password';
#
# Tell BackupPC which share to backup. This should be the name
# of the module from C:\rsyncd\rsyncd.conf on the client (the
# name inside the square brackets). In the sample rsynd.conf
# file the cDrive module is the entire C drive.
#
$Conf{RsyncShareName} = 'cDrive';
#
# Link the IP address to the host name
$Conf{ClientNameAlias} = 'XXX.XXX.XXX.XXX';

Now change the bolded items; username and password.
0

How to set up backuppc in ubuntu client

Posted in

1. Generate SSH keys

First, become the root user and generate SSH keys. If you already have SSH keys (id_rsa and id_rsa.pub) in /root/.ssh/, then you can skip the first 2 commands.
sudo -i
ssh-keygen -t rsa
It will ask for where to store the file and passphrase. Do not enter anything and just keep pressing enter. Now let's make a copy of the public key for the server.
cd ~/.ssh
ls
The above is to make sure you have id_rsa & id_rsa.pub
cp id_rsa.pub clientname_id_rsa.pub
clientname is the name of your computer (which appears in your terminal; eg linus@linusbox:~$ - in this case linusbox is your computer name). I am assuming that you have a unique computer name on your network. The private key file (id_rsa) is something that you must guard with your life! (ok i'm exaggerating) Let's make sure that it's non-readable by anyone else but the root;
chown root:root id_rsa
chmod 600 id_rsa

2. Exchange SSH keys with Server

Email 'clientname_id_rsa.pub' to the administrator so that they can put it in the server's .ssh directory.

To allow the server access to your computer, obtain the public SSH key of the server from the administrator.

Once you have the server public key (BackupPC_id_rsa.pub), you must add it to the authorized key list. If you already have a file named 'authorized_keys2' in your /root/.ssh directory, you can skip the third command.
sudo -i
cd /root/.ssh/
touch authorized_keys2
mv /location/of/the/file/BackupPC_id_rsa.pub /root/.ssh/
cat BackupPC_id_rsa.pub >> authorized_keys2
/location/of/the/file/ is obviously where you downloaded and placed the file. Now for additional security, we want to limit the allowed host to the backup server. Note that I use the text editor gedit, but you can use vi, nano, kate, or anything else.
gedit /root/.ssh/authorized_keys2
Add the address of the server at the beginning of the file to make the file look like this: (bolded part)
from="xxx.xxx.xxx.xxx" ssh-rsa [base64 key, eg: ABwBCEAIIALyoqa8....]
Make sure again the permission is set correctly.
chmod -R go-rwx /root/.ssh

3. Create Config File

Now in your home directory as the regular user, create your configuration file named 'clientname.pl' where clientname is the name of your computer.
gedit clientname.pl
Copy and paste the following.
$Conf{XferMethod} = 'rsync';
$Conf{BackupFilesExclude} = ['/tmp', '/media', '/mnt', '/floppy', '/stuff/unwanted'];
$Conf{ClientNameAlias} = 'xxx.xxx.xxx.xxx';
This file assumes that you want to back up everything in your harddrive except for the directories specified in the config file. To add more directories to be excluded, simple add the paths to the directories in the second line following the syntax shown above (ie wrap the path with '' and have a comma and a space in between).
If you wish to back up only the specified files, then replace the second line with the following and likewise add desired directory paths to that line following the syntax.
$Conf{BackupFilesOnly} = ['/myFiles', '/important', '/home/linus/stuff'];

4. Submit Files to Administrator

Now let us send the following files to the administrator (by email or whatever) if you have not dones so already.
  1. clientname_id_rsa.pub
  2. clientname.pl