Create Local Repository Ubuntu Jaunty (9.04) With .iso DVD on Hardisk

To create a local repository in need cd image repository, it is require. to create it, follow these steps...!!

1. create a directory for each repository .iso on /media example : /dir1 /dir2 /dir3 /dir4 /dir5 /dir6 by type :
Login as root
 

$ mkdr /media/dir1 /media/dir2 /media/dir3 /media/dir4 /media/dir5 /media/dir6


After you successfully create a folder, mount repository image on /media by type :

$ sudo mount -o loop /xxx.iso /media/dir1
$ sudo mount -o loop /xxx.iso /media/dir2
$ sudo mount -o loop /xxx.iso /media/dir3
$ sudo mount -o loop /xxx.iso /media/dir4
$ sudo mount -o loop /xxx.iso /media/dir5
$ sudo mount -o loop /xxx.iso /media/dir6

2. edit sources repository in /etc/apt/sources.list and add the local repository sources by type :

$ gedit /etc/apt/sources/.list

add following line :


deb file:///media/dir1/ jaunty main restricted
deb file:///media/dir2/ jaunty main multiverse restricted
deb file:///media/dir3/ jaunty universe
deb file:///media/dir4/ jaunty universe
deb file:///media/dir5/ jaunty universe
deb file:///media/dir6/ jaunty universe

close and save...!!

3. Update soures.list by type


$ apt-get update

Finish and you can install ubuntu packages on your local repository.

Happy Testing...!!
Read More...!!

Install Firefox 3.5.1 on Ubuntu Jaunty


Firfox 3.5.1 have been released, Much people using it as default web browser especially me. to install firefox on ubuntu jaunty first download Firefox 3.5.1 and follow these steps :

1. Backup your current profile by type command

$ cp -r ~/.mozilla/firefox/ ~/firefox_backup

2. Now install firefox 3.5 by type

$ wget -O - http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.5/linux-i686/en-US/firefox-3.5.tar.bz2 | tar xj -C ~

To run Firefox 3.5, move to your Home Folder, look for the firefox directory. Double-click on the firefox file in that directory.
You can also run Firefox 3.5 from the command-line with ~/firefox/firefox .
You can now add it to your Applications Menu. Go to System->Preferences->Main Menu
In the “Command Field”: /home/username/firefox/firefox.
In the “Name field”: Firefox 3.5
Make sure Firefox 3.0.11 is closed before running firefox 3.5
Firefox 3.5 will begin with an update. It will update your Bookmarks, Browser History, Passwords. It will also update your Extensions and will check for compatibility.
Read More...!!

Migration From ext3 to ext4 Need Manually Update Grub on Ubuntu Jaunty (9.04)


If you choose to upgrade the filesystem /or/boot in the place of ext2 to ext3 or ext4 (as documented on the wiki ext4), then you must also use the command grub-install after upgrading to Ubuntu 9:04 to re-install the boot loader. If you do not do this, the version of GRUB installed on the boot sector will not be able to read the kernel of the ext4 file system and your system will boot failed.

Converting your file system from ext3 to ext4

1. boot the computer from the Ubuntu 9.04 Desktop CD
2. Once you are booted into the live environment, run the following command replacing /dev/DEV with the drive partition that you want to upgrade.

tune2fs -O extents,uninit_bg,dir_index /dev/DEV

[NOTE : the -O is the capital letter O, not zero]
3. You then need to run fsck to fix up some on-disk structures that tune2fs has modified.

e2fsck -fD /dev/DEV

4. Next, mount the drive

mount -t ext4 /dev/DEV /mnt

5. Edit fstab and change ext3 to ext4 on the drive you upgraded

UUID=xxxx / ext4 relatime,errors=remount-ro 0 1

6. Finally, you need to run grub-install on your new partition. The version of grub that shipped with Ubuntu 8.10 cannot boot from ext4 partitions so if you skip this step, your computer won't boot.

grub-install /dev/DEV –root-directory=/mnt –recheck

7. Now reboot the computer and enjoy your new ext4 filesystem


EXT4 features
Compatibility

Any existing Ext3 filesystem can be migrated to Ext4 with an easy procedure which consists in running a couple of commands in read-only mode (described in the next section). This means that you can improve the performance, storage limits and features of your current filesystems without reformatting and/or reinstalling your OS and software environment. If you need the advantages of Ext4 on a production system, you can upgrade the filesystem. The procedure is safe and doesn't risk your data (obviously, backup of critical data is recommended, even if you aren't updating your filesystem :). Ext4 will use the new data structures only on new data, the old structures will remain untouched and it will be possible to read/modify them when needed. This means, that, of course, that once you convert your filesystem to Ext4 you won't be able to go back to Ext3 again (although there's a possibility, described in the next section, of mounting a Ext3 filesystem with Ext4 without using the new disk format and you'll be able to mount it with Ext3 again, but you lose many of the advantages of Ext4).
Bigger File System and File Sizes

Currently, Ext3 support 16 TB of maximum file system size and 2 TB of maximum file size. Ext4 adds 48-bit block addressing, so it will have 1 EB1 of maximum file system size and 16 TB of maximum file size. Why 48-bit and not 64-bit? There are some limitations that would need to be fixed before making Ext4 fully 64-bit capable, which have not been addressed in Ext4. The Ext4 data structures have been designed keeping this in mind, so a future update to Ext4 will implement full 64-bit support at some point. 1 EB will be enough (really :)) until that happens.
NOTE!
The code to create file systems bigger than 16 TB is, at the time of writing this article, not in any stable release of e2fsprogs. It will be in future releases.
Read More...!!

Printer Configuration on Ubuntu Gutsy (7.10) and Hardy (8.04)


  1. .On the Start Menu, choose Administration → Printing to display the dialog box as below. Then click the New Printer button
  2. Select the option Windows Printer Via Samba. Then click Browse to display a list of printer sharing in the
  3. Note the picture below, the display shows the printer disharing-printer on the network using samba. Then select the printer you want to use.
  4. Make sure you know the type of printer driver and you want to use it. Then select the type of start and printer drivers available in the list
  5. Note the picture below shows the printer has been successfully entered. Then click Print Test Page button to try to print, or click the Make Default to make as the default printer

Configuring samba sharing printer

We can make Ubuntu as a server sharing the printer. Configuration process must be done as user root. open the terminal.

Start Menu -> Accesories -> Terminal
Next login as root, and type the command:


$ gedit /etc/samba/smb.conf

Some lines must be edited is;


  1. In the authentication, security add a security = share
  2. In the authentication, encrypt passwords = true
  3. In the authentication, guest account = nobody
  4. In the printing, load printers = yes
  5. In the printing, printing = cups
  6. In the printing, printcap name = cups
  7. On the share definition, tag printers, browseable = yes
  8. On the share definition, tag printers, public = yes


You can enter some additional configuration to make sure samba is running smoothly, as follows;


  • In the networking, the interface is filled with the engine at that time
  • At the global - browsing identification, give a new value called NetBIOS name with the desired name. Most easily, the user name of the machine

Save and restart the samba service using the command:

$ /etc/init.d/samba restart


This is example configuration file samba server that has been modified :


#====================== Global Settings =======================
[global]
workgroup = MSHOME
netbios name = MUSTOFA-TU
server string = %h server (Samba, Ubuntu)
dns proxy = no
interfaces = 10.3.100.200/16 eth0
log file = /var/log/samba/log.%m

max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
passdb backend = tdbsam
obey pam restrictions = yes
guest account = nobody
invalid users = root

passwd program = /usr/bin/passwd %u
passwd chat = *EntersnewsUNIXspassword:* %nn *RetypesnewsUNIXspassword:* %nn
*passwordsupdatedssuccessfully* .
load printers = yes

printing = cups
printcap name = cups
socket options = TCP_NODELAY
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
public = yes
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no


Bonus :

Printer Configuration Ubuntu 7.04



  1. On the Start Menu, choose Administration → Printing. Then click the New Printer icon
  2. At Step 1, select Network Printer option with Windows Printer (SMB). Wait some time, the system will try to detect the printer on-shared
  3. Next view some of the printer is detected, click cancel pendeteksian process continues until the printer is finished. The name that appears under the name of the server hostname in printer sharing
  4. following list of hostnames that do printer sharing. Select a course in accordance with their needs. Be sure to identify the type of printer and the drivers that will be used. Do not forget to choose a printer that disharing. Then click Forward. (Username and password are blank)
  5. the next step, select the printer driver used. Then the printer is ready to use.
Finish....!!


Happy Testing....!!!
Read More...!!

Monitoring Network Latency With Smokeping in Ubuntu Jaunty (9.04)


I have tested this on an Ubuntu 9.04 system. I will use the hostname www.example.com for this system in this tutorial. We need a web server on the system to display the graphs. I will install Apache2 and use Apache's default vhost for hosting the graphs. If you use a different vhost, you might have to adjust its settings or copy the smokeping.cgi script from /usr/lib/cgi-bin/smokeping.cgi to the appropriate location.

I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:

$ sudo su

1. Installing smokeping


To install Smokeping along with some other recommended packages, we simply run:

aptitude install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2


2. Configuring


SmokepingThe Smokeping configuration is in the file /etc/smokeping/config. This file just includes some other files from the /etc/smokeping/config.d directory so we have to modify these files. First we modify /etc/smokeping/config.d/General. In this file, you find some email settings and the URL of the Smokeping web interface. Change them like this:

$ gedit /etc/smokeping/config.d/General

*** General ***
@include /etc/smokeping/config.d/pathnames

# Please edit this to suit your installation
owner = Falko Timme
contact = me@example.com
cgiurl = http://www.example.com/cgi-bin/smokeping.cgi
mailhost = smtp.example.com
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour

# concurrentprobes = no


(Make sure that mailhost contains the primary MX for your email domain!)

Open /etc/smokeping/config.d/Alerts and set the correct to and from addresses for emails sent by Smokeping:

$ gedit /etc/smokeping/config.d/Alerts


*** Alerts ***

to = me@example.com

from = smokealert@example.com

[...]


Next open /etc/smokeping/config.d/Targets. In this file, you find the remark line. Modify it to your likings:

$ gedit /etc/smokeping/config.d/Targets


[...]

remark = Welcome to the SmokePing website of 'Example Company'

[...]


Basic Example

We will now do a basic configuration to measure the network latency to certain servers in various countries (e.g. Germany, UK, USA). In this example, I'm going to test the network connection to the servers www.heise.de (Germany), bbc.co.uk (UK), and web.mit.edu (USA). You should choose different servers to avoid a DOS!


Open /etc/smokeping/config.d/Targets again:

$ gedit /etc/smokeping/config.d/Targets

At the end of this file, you should see this:

[...]

+ Local

menu = Local
title = Local Network

++ LocalMachine

menu = Local Machine
title = This host

host = localhost

[...]


Add the following lines to the file:


[...]

+ World

+ Local

menu = Local
title = Local Network

++ LocalMachine

menu = Local Machine

title = This host

host = localhost

menu = World

title = World

++ Europe

menu = Europe
title =European Connectivity

+++ Germany

menu = Germany

title = German Connectivity

alerts = bigloss,someloss,startloss

++++ Heise

menu = Heise

title = Heise

host = www.heise.de

+++ UK

menu = United Kingdom

title = United Kingdom

++++ BBC

menu = BBC

title = BBC

host = bbc.co.uk

++ USA

menu = North America

title =North American Connectivity

+++ MIT
menu = MIT
title = Massachusetts Institute of Technology Webserver

host = web.mit.edu


Save your changes and restart Smokeping:

/etc/init.d/smokeping restart

Smokeping will now probe the servers by pinging them (by using /usr/bin/fping) - this is the default test.

Now open a web browser and go to http://www.example.com/cgi-bi/smokeping.cgi.

After a few minutes you should see the first graphs. This is how the latency of localhost looks (which is configured by default in /etc/smokeping/config.d/Targets unless you changed that):

In the menu on the left side we can now go to the countries/servers that we configured earlier and take a look at their graphs:

Advanced Example


Until now, we are only pinging servers, but it would be good if we could do some other tests as well (e.g. measure how fast a DNS server resolves a domain or measure HTTP latency). Therefore we open /etc/smokeping/config.d/Probes and add the following section.

$ gedit /etc/smokeping/config.d/Probes


[...]
+ DNS
binary = /usr/bin/dig
lookup = domain-to-lookup.com
pings = 5
step = 180

+ Curl
# probe-specific variables
binary = /usr/bin/curl
step = 60

# a default for this target-specific variable

urlformat = http://%host%/

As you see, we've now added tests for DNS (the lookup line should contain a domain/hostname that you'd like the name servers (that we still have to configure in Smokeping) to look up) and HTTP / FTP (using Curl).

Now at the end of /etc/smokeping/config.d/Targets, we can add the name servers /HTTP servers /FTP servers we'd like to monitor (you can enable/disable tests by uncommenting them/commenting them out):

[...]
+ services
menu = Service Latency
title = Service Latency (DNS, HTTP)

++ DNS
probe = DNS
menu = DNS Latency
title = DNS Latency

+++ dns1
host = ns1.example.com

+++ dns2
host = ns2.example.com

++ HTTP
probe = Curl
menu = HTTP Latency
title = HTTP Latency

+++ server1
menu = server1
title = HTTP Latency for server1
host = server1.example.com

+++ server2
menu = server2
title = HTTP Latency for server2
host = server2.example.com

#+++ server3
#menu = server3
#title = HTTP Latency for server3 (port 8080!)
#host = server3.example
#urlformat = http://%host%:8080/

#++ FTP
#probe = Curl
#menu = FTP Latency
#title = FTP Latency
#urlformat = ftp://%host%/

#+++ server1
#menu = server1
#title = FTP Latency for server1
#host = server1.example.com

#+++ server2
#menu = server2
#title = FTP Latency for server2
#host = server2.example.com


As you see, we are monitoring the name servers ns1.example.com and ns2.example.com using the DNS probe we've configured in /etc/smokeping/config.d/Probes. We are also measuring the HTTP latency of server1.example.com and server2.example.com by using the Curl probe. If you like, you can also measure FTP latency using the Curl probe, but make sure that you specify a new urlformat for the FTP section (the default, urlformat = http://%host%/, is configured in /etc/smokeping/config.d/Probes; for FTP it should be urlformat = ftp://%host%/).

Restart Smokeping after your changes:

/etc/init.d/smokeping restart

After a few minutes, you should see some data for your new tests in the Smokeping web interface (http://www.example.com/cgi-bin/smokeping.cgi): You can read up on the Smokeping configuration and further configuration examples

here: http://oss.oetiker.ch/smokeping/doc/smokeping_examples.en.html

Debbunging

If you think that Smokeping isn't working as expected, you can try to find the problem by running Smokeping in debug mode:

/etc/init.d/smokeping stop
smokeping --debug


Happy Tersing...!!

Sources : http://www.ubuntu.com
http://www.howtoforge.com/
http://oss.oetiker.ch/smokeping/index.en.html
Read More...!!

Installing TOR in Ubuntu Jaunty (9.04)


OpenSSH is a great means to protect your connection from being sniffed by others. However, this isn't always enough. Simply proving that you connected to a server is enough to get incriminated. Unfortunately, SSH doesn't provide a native way to obfuscate to whom it connects. Instead, a proxy server can be set up. And this is where TOR comes to play. This howto covers installing TOR on a Debian based system and setting up SSH to use TOR.

Installing TOR

First you should to add the TOR repository to your system. It's only necessary if there's no package in the default repositories.

Add the following line to your /etc/apt/sources.list file. You have to replace lenny with your distribution.

by type command

$ gedit /etc/apt/sources.list

and add following line :

deb http://mirror.noreply.org/pub/tor lenny main

$ apt-key adv --recv-keys --keyserver subkeys.pgp.net 0x94C09C7F

Update your sources.list by type

$ apt-get update

Install TOR :

$ apt-get install -y tor

If you want to use TOR with OpenSSH, you have to install another program called connect-proxy.

$ apt-get install -y connect-proxy


Setup OpenSSH to use TOR for all connections

However, this is not recommended, but here is how it works. Add the following block to the top of your ~/.ssh/config file.

Host *
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050)

Set up OpenSSH to use TOR for a specific connection

I recommend using TOR only for a specific connection. All other connections won't be affected.

Add this block to your ~/.ssh/config. You have to replace mydomain with the host domain name or IP address and myaccount with your user name.

Host mydomain
HostName mydomain.com
User myaccount
CheckHostIP no
Compression yes
Protocol 2

Set up OpenSSH to use TOR for a bunch of connections

Instead of setting up TOR for every single connections, you can do this for a bunch of connections at once. Following example shows how it works.

Host anon_*
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p
Host anon_mydomain
HostName mydomain.com
User myaccount
Host anon_mydomain2
HostName mydomain2.com
User myaccount
Port 980


Finish....!!!


Happy Testing...!!

Sources : http://www.howtoforge.com/
Read More...!!

Install Sun's JDK 6 on Ubuntu Jaunty (9.04)


In the following article I’m going to log a few steps to setup the latest Java SDK and Eclipse IDE on Ubuntu. It is the first in a series of posts I plan to write as I migrate my development environment from Windows to Ubuntu. Other frameworks, SDKs, APIs, tools, database or application servers will be covered separate posts later.

Ubuntu’s latest distribution ships with a very old version of Eclipse (3.2.2) still. On my old system I sometimes dealt with different SDK versions simultaneously, so I didn’t want to rely on the package manager alone, too. I started by downloading the latest Java SDK from http://java.sun.com. I downloaded jdk-6u14-linux-i586.bin and saved the file in /usr/local/, made it executable and ran the file

chmod +x jdk-6u14-linux-i586.bin
./jdk-6u14-linux-i586.bin

I extracted all files to /usr/local/jdk1.6.0_14. Next I added an environment variable JAVA_HOME and added the bin-path to the PATH variable.

$ gedit /etc/bash.bashrc

And add:

# Java SDK
export JAVA_HOME=/usr/local/jdk1.6.0_14
export PATH=$JAVA_HOME/bin:$PATH

The command java -version should now display

java version “1.6.0_14″
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
Eclipse

Eclipse could be installed as easily as the Java SDK. I downloaded the Eclipse IDE for Java Developers from Eclipse.org, extracted the archive to /usr/local, and added it to the PATH variable as well.

$ gedit tar -xvf eclipse-java-galileo-linux-gtk.tar.gz
$ gedit /etc/bash.bashrc

# Eclipse
export PATH=/usr/local/eclipse:$PATH

Finally, the Java SDK has to be added to Eclipse’s Preferences in Window|Preferences|Java|Installed JREs|Add. The dialog is pretty self-explanatory.

That’s it for now. I might add additional steps to configure and fine-tune this development environment later.

Happy Testing...!!


Sources : http://blog.wessendorf.org/

Read More...!!

Install Firefox 3.5 in Ubuntu Jaunty (9.04) using Ubuntuzilla


installing Firefox 3.5 on Ubuntu 9.04, I explained how to install Ubuntu’s firefox-3.5 package. As myself and several commenters realized, this may not be the best solution. The package is branded Shiretoko instead of Firefox 3.5, including the user agent string which can cause compatibly problems with some websites.

Manually downloading and installing Firefox from Mozilla every time there is a security update is not a great option either. Instead, let’s use Ubuntuzilla, a script that can install and update Mozilla applications outside of Ubuntu’s repository system.

Ubuntuzilla can integrate the new version of Firefox into your system as well as undo its changes if you want to go back. All your extensions, bookmarks, plugins, and settings should transfer over to the new version. The only thing that didn’t transfer was my open tabs from my previous session.

1. Visit the Ubuntuzilla download page to find the latest deb package appropriate for your system (32 or 64-bit). Download and install the package.
2. At this point you should completely close Firefox.
3. You’ll need to use a terminal to let Ubuntuzilla guide you through the installation. Run this command to start:
ubuntuzilla.py -a install -p firefox

Ubuntuzilla will ask a few questions: confirming that it has found the correct version to install, choosing a localization (14 for en-US), confirming the localization, a sudo prompt, and a prompt for enabling automatic updating.
4. Near the end of the process you should see The new Firefox version 3.5 has been installed successfully.

You can now use your normal Firefox item in the menu to start Firefox 3.5, or by running the command firefox. Check out Ubuntuzilla’s website for the simple removal instructions as well as what do do when you are notified there is a Firefox update available.


Happy Testing..!!


Sources : http://tombuntu.com/
Read More...!!

Install Xmms in Ubuntu Jaunty (9.04)



To install xmms on ubuntu jaunty (9.04), the steps are as follows:

1 first, we must add the sources list on the directory /etc/apt/sorces.list by type command :

$ gedit/etc/apt/sources.list

and add following this line

deb http://www.pvv.ntnu.no/~knuta/xmms/intrepid./

then update :

$ apt-get update

Install Xmms

$ apt-get install xmms

This command will install 4 library that needed to make xmms running well. the library are libglib1.2ldbl (1.2.10-19build1), libgtk1.2 (1.2.10-18.1build2), libgtk1.2-common (1.2.10-18.1build2), libmikmod2 (3.1.11-a-6ubuntu3) But if you have follow my past article about download non-free-codecs, then when installing xmms you just need xmms and libmikmod2 package After installed was finished, you can run xmms in two different way :

Open your terminal and type :


$ xmms

or

press Alt+F2 and type xmms

Happy Testing...!!

Read More...!!

Create a Load Balancing Router Using Ubuntu Jaunty (9.04)


With its increasingly complex network, we sometimes have some connection to the Internet simultaneously. My own home has two (2) connection to the Internet at once, ie, ADSL Speedy and RT/RW-net. To have a second connection to the Internet can be used maximally, we need to do load balancing with 2 connections in parallel in order to access the Internet can be done.

Specifications/network topology that I use at home are as follows:

ADSL connection through eth2 IP address 192.168.1.222 with a gateway to the ADSL router IP 192.168.1.1.

Connections RT / RW-net via eth0 IP address 10.0.148.48 via WiFi / Wireless with gateway 10.0.148.254.

LAN connection via eth1 IP address 192.168.0.222.

Router installation steps are as follows.

Enter the CD / DVD Ubuntu installer, choose "install a command line system"

Set the root password so that we can run the command "su" command through


$ sudo passwd root

Moving into Super User mode


$ su --

Edit the information on the interface /etc/network/interfaces, can be done using gedit
 

$ gedit /etc/network/interfaces

Important information on the need to edit the file interfaces is

auto eth0 iface eth0 inet static address 10.0.148.48 netmask 255.255.255.0 auto eth1 iface eth1 inet static address 192.168.0.222 netmask 255.255.255.0
auto eth2 iface eth2 inet static address 192.168.1.222 netmask 255.255.255.0

Install some applications that support your life easier, such as
 

$ apt-get install openssh-server $ /Etc/init.d/ssh restart

Next we need to set up routing and load balancing which is simply as follows


/sbin/ip link set lo up /sbin/ip link set eth0 up / sbin/ip link set eth1 up /sbin/ip link set eth2 up

/sbin/ip route flush table adsl /sbin/ip route flush table rtrwnet /sbin/ip route flush table internet

/sbin/ip addr add 127.0.0.1/8 brd 127.0.0.255 dev lo

/sbin/ip addr add 192.168.1.222/24 brd 192.168.1.255 dev eth2 # /Sbin/ip addr add 10.0.148.48/24 brd 10.0.148.255 dev eth0 /sbin/ip addr add 192.168.0.222/24 brd 192.168.0.255 dev eth1

/sbin/ip rule add prio 10 table main /sbin/ip rule add prio 20 table adsl /sbin/ip rule add prio 30 table rtrwnet /sbin/ip rule add prio 40 table internet /sbin/ip route del default table main /sbin/ip route del default table adsl /sbin/ip route del default table rtrwnet /sbin/ip route del default table internet

/sbin/ip rule add prio 20 from 192.168.1.0/24 table adsl /sbin/ip route add default via 192.168.1.1 dev eth2 src 192.168.1.222 table static Proto adsl /sbin/ip route append prohibit default table adsl Proto static metric 1 /sbin/ip rule add prio 30 table rtrwnet from 10.0.148.0/24 /sbin/ip route add default via 10.0.148.254 dev eth0 src 10.0.148.48 Proto static table rtrwnet /sbin/ip route append prohibit default table rtrwnet Proto static metric 5

Set up load balancing gateways
/sbin/ip rule add prio 40 table internet /sbin/ip route add default Proto static table internet \ nexthop via 192.168.1.1 dev eth2 weight 1 \ nexthop via 10.0.148.254 dev eth0 weight 1

The above configuration requires three (3) additional routing table, namely, adsl, internet rtrwnet and our entry in the file /etc/iproute2/rt_tables, its content is approximately as follows,


120 adsl
121 rtrwnet
123 internet

Next we need to set up NAT/proxy that can do NAT at the same time to two (2) the interface is different, ie, 192.168.1.222 and 10.0.148.48. The command is as follows,


/bin/echo 1> /proc/sys/net/ipv4/ip_forward

/sbin/iptables-F
/sbin/iptables-P INPUT DROP
/sbin/iptables-A INPUT-i eth1-j ACCEPT
/sbin/iptables-A INPUT-i eth0-p tcp-s 0/0-DPort 25-j ACCEPT
/sbin/iptables-A INPUT-i eth2-p tcp-s 0/0-DPort 25-j ACCEPT
/sbin/iptables-A INPUT-m state-state established, RELATED-j ACCEPT
/sbin/iptables-A INPUT-p tcp-i eth0-j reject-reject-with tcp-reset
/sbin/iptables-A INPUT-p tcp-i eth2-j reject-reject-with tcp-reset
/sbin/iptables-A INPUT-p UDP-i eth0-j reject-reject-with ICMP port-unreachable
/sbin/iptables-A INPUT-p UDP-i eth2-j reject-reject-with ICMP port-unreachable

/sbin/iptables-t nat-A POSTROUTING-o eth2-j SNAT-to 192.168.1.222
/sbin/iptables-t nat-A POSTROUTING-o eth0-j SNAT-to 10.0.148.48


So Confused...!!!

Happy Testing.

Article By : Ono W. Purbo, Thanks Brother...!!!
Read More...!!

Setting vsftpd FTP on Ubuntu Jaunty (9.04)

vsftpd is a GPL licensed FTP server for UNIX systems, including Ubuntu. To use vsftpd on ubuntu jaunty follow these steps:

1. Install vsftpd type command in terminal as root :


$ apt-get install vsftpd

2. Edit file configuration at /etc/vstpd.conf

$ gedit /etc/vstpd.conf

Replace the word below :

anonymous_enable=YES

Change with :

anonymous_enable=NO

Then Save

Configuration file has anomim will prohibit access to your FTP server for security reasons.

#local_enable=YES

3. Adding a “fake” shell

Edit /etc/shells file and add a non-existent shell name like /bin/false, for example. This fake shell will limit access on the system for FTP users.


$ gedit /etc/shells


# /etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/false

4. Setup FTP user account

For users of FTP that you do not have access to a shell account on your ubuntu system and Use the following command to create a user account in directory /etc/passwd .


$ mkdir -p /home/ftp/ftpuser
$ useradd ftpuser -d /home/ftp/ftpuser/ -s /bin/false
$ passwd ftpuser

Once you’ve made these changes, restart the vsftpd service with this command:


$ /etc/init.d/vsftpd restart

5. Replace file configuration specified in the manual page on a per_user

If you want to make custom changes in the behaviour of the ftp server on a per-user basis, you should know that vsftpd has a powerful option that allows you to do this.
If you set user_config_dir to be /etc/vsftpd_user_conf and then log on as the user “chris”, then vsftpd will apply the settings in the file /etc/vsftpd_user_conf/chris for the duration of the session. The format of this file is detailed in the manual!
Please note that not all settings are effective on a per-user basis. For example, many settings only prior to the user’s session being started. Examples of settings which will not affect any behviour on a per-user basis include listen_address, banner_file, max_per_ip, max_clients, xferlog_file, etc.

Happy Testing.....!!!

Read More...!!

Open System Monitor With Ctrl+Alt+Del in Ubuntu Jaunty (9.04)


Usually, you open the Task manager in windows os to use Ctrl+Alt+Del, in ubuntu there is a System monitor , almost the same as the task manager in windows. Opening the System monitor ubuntu by pressing Ctrl+Alt+Del simply follow the steps below:

To enable Ctrl+Alt+Del go to System>Preferences>Keyboard Shortcuts and search for "logout" and you will see a logout shorcut is Ctrl + Alt + Del, click the shortcut is there and replace the other shortcut, or you can also disable the shortcut.

Close the Appilcation and open gconf-editor, with: write the entry to the terminal

$ gconf-editor 

go to:


  • Apps> Metacity
  • Select "Global_keybindings" and seek "run_command_X" value where X is between 1 and 12 and is not used
  • Add this value: Delete
  • Now select "Keybindings_commands" on the left tree. Goto "command_X" where X is the same number of the selected option in run_command_X.
Add this value: gnome-system-monitor

There are other ways to activate the Crtl + Alt + Del to open System Monitor by running gconf-editor through the terminal.


follow the steps below :

  
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_1 "Delete"
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_1 "gnome-system-monitor"


Happy Teting...!!!


Sources : http://cviorel.easyblog.ro/

Read More...!!

Installing Ubuntu Jaunty (9.04) after Mac OS X


To install ubuntu jaunty after you install mac os x, you should follow the following steps:
  • prepare cd desktop edition of ubuntu jaunty
  • install Ubunt as usual and follow the steps to complete
  • after you restart the machine
If you get an error message during boot such as HFS+error in the bootloader, you can also use the Super Grub Disk for recovering Linux GRUB and the Windows MBR (Master Boot Record).

Once you have installed Ubuntu, edit the Grub start-up list:
Login to your Ubuntu, go to the terminal and type cammand :
sudo nano /boot/grub/menu.lst

and add the following lines:

title Mac OS X
root (hd0,0)
makeactive
chainloader +1


If you have issues with Mac OSX or Windows in GRUB, try changing the Mac OS X Grub entry

change root (hd0,0) to root (hd0,1)

This means you will boot into partition number 1. You can try any partition number until you get it right.

Happy Testing..!!

Sources : http://ubuntuguide.org/ 
Read More...!!

Sharing Mouse and Keyboard Using Quicksynergy


QuickSynergy is a graphical interface (GUI) for easily configuring Synergy service, an application that allows users to share the keyboard and mouse between two or more computers without using external hardware. Synergy uses TCP-IP protocol to share resources, even between machines with different operating systems, such as Mac OS, Linux and Windows.QuickSynergy is a graphical interface (GUI) for easily configuring Synergy service, an application that allows users to share the keyboard and mouse between two or more computers without using external hardware. Synergy uses TCP-IP protocol to share resources, even between machines with different operating systems, such as Mac OS, Linux and Windows.

Installation
The steps as follows:

1. Open the Synaptic Package Manager application by clicking the menu System -> Administrations -> Synaptic Package Manager, click in the list of packages quicksynergy right on the package and select Mark For Installation and click the Apply button;
2. Or through a terminal, by typing the following command:

$ Sudo apt-get install quicksynergy

How to Use

* QuickSynergy run by clicking the menu Applications -> Accesories -> QuickSynergy
* In the QuickSynergy, following a description of each tab to its:


1. Share, configure the server. Mouse and keyboard from the computer will be used. To add a new client, fill the fields with the client IP / hostname. Save the file, then run the server in the Start. To stop, click the Stop button.

2. Use, sinergy configured to run as Client. Just enter the IP address / host name of the server and click the Start button. A dialog box will be present with the pid (process id) of syngery2 client daemon). To stop the client, click Stop.

3. Settings, if the dialogue "Keep running synergy QuickSynergy closed after" given the check, the synergy service road will remain even if the application QuickSynergy in close.

Example Cases :

1. Check the computer's IP to be used as a server and the keyboard mouse. Example: 192.168.1.4

2. Check the computer's IP to be used as a client that will use the keyboard and mouse. Example: 192.168.1.3

3. Run QuickSynergy on a computer that will fill the server with the IP or hostname field in the Share tab on the Right;

4. And then QuickSynergy on the client computer, fill in the IP or Hostname field in the tab Use;

5. This last step is optional, click on the check "Keep running after synergy QuickSynergy closed" to Synergy service running even though the background in close the application QuickSynergy .

6. To use, slide the server on the computer mouse towards the right until the screen cursor moves to monitor the client, after the mouse and keyboard can be in use on client computers without having to move.

Happy Testing

Sources : http://www.ugos.ugm.ac.id/
Read More...!!