19 May 2009

Error updating on Fedora 9

Errors were encountered while downloading packages.
1:perl-ExtUtils-ParseXS-2.18-68.fc9.i386: failure: perl-ExtUtils-ParseXS-2.18-68.fc9.i386.rpm from updates-newkey: [Errno 256] No more mirrors to try.

I tried to find article with keyword "perl-ExtUtils-ParseXS-" on Google, but I can't find it. I'm looking for the solution.

17 May 2009

How to set up a TFTP Server for your Cisco routers

How to set up a TFTP Server for your Cisco routers

I have same problem
root@ppin-msmunir2:/opt/tftpservermt # ./tftpserver -v
TFTP Server MultiThreaded Version 1.58 Unix Built 1580

202.46.3.71 Port 69, bind failed, Address already in use
no listening interfaces available, stopping..

root@ppin-msmunir2:/opt/tftpservermt #

I tried to know the process related with the TFTP

root@ppin-msmunir2:/opt/tftpservermt # ps -aux | grep tftp
Warning: bad syntax, perhaps a bogus ‘-’? See /usr/share/doc/procps-3.2.7/FAQ
root 26684 0.0 0.0 976196 1424 ? Ssl 06:04 0:00 ./tftpserver
root 26785 0.0 0.0 4064 752 pts/4 S+ 06:04 0:00 grep tftp
root@ppin-msmunir2:/opt/tftpservermt #


After I known, I kill the process by kill the PID :

root@ppin-msmunir2:/opt/tftpservermt # kill 26684

I run it again :
root@ppin-msmunir2:/opt/tftpservermt # ./tftpserver -v
TFTP Server MultiThreaded Version 1.58 Unix Built 1580

starting TFTP…
alias / is mapped to /home/msmunir/Download/
permitted clients: 202.46.3.72-255.255.255.224
server port range: 30000-30010
max blksize: 65464
default blksize: 512
default timeout: 3
file read allowed: Yes
file create allowed: No
file overwrite allowed: No
thread pool size: 95
listening on: 202.46.3.71:69


Don't forget to check this site.

mplayer, libcaca, libcucul problems on Fedora 9

Once in a time, may be you have problem with updating your Fedora 9. The error message usually like this :

libcucul.so.0 is needed by package mplayer-1.0-0.100.20090204svn.fc9.i386 : Success - empty transaction

To solve these problems, follow these steps :

1. Erase mplayer :
[root@lenovo ~]# yum erase mplayer

2. Download new packet of libcaca
[root@lenovo ~]# wget http://download.fedora.redhat.com/pub/fedora/linux/releases/9/Everything/i386/os/Packages/libcaca-0.99-0.4.beta11.fc9.i386.rpm


3. Erase libcaca on your Fedora
[root@lenovo ~]# rpm -e libcaca

4. Install new packet of libcaca, not by YUM, but with RPM
[root@lenovo ~]# rpm -ivh libcaca-0.99-0.4.beta11.fc9.i386.rpm

5. Install new mplayer with YUM
[root@lenovo ~]# yum install mplayer

I have found and tested this method after I have compared with many techniques from many web sites, include blogs. I hope this method usefull for you all. Thanks.

11 May 2009

Routing for multiple uplinks/providers

A common configuration is the following, in which there are two providers that connect a local network (or even a single machine) to the big Internet.


________
+------------+ /
| | |
+-------------+ Provider 1 +-------
__ | | | /
___/ \_ +------+-------+ +------------+ |
_/ \__ | if1 | /
/ \ | | |
| Local network -----+ Linux router | | Internet
\_ __/ | | |
\__ __/ | if2 | \
\___/ +------+-------+ +------------+ |
| | | \
+-------------+ Provider 2 +-------
| | |
+------------+ \________


There are usually two questions given this setup.

Split access

The first is how to route answers to packets coming in over a particular provider, say Provider 1, back out again over that same provider.

Let us first set some symbolical names. Let $IF1 be the name of the first interface (if1 in the picture above) and $IF2 the name of the second interface. Then let $IP1 be the IP address associated with $IF1 and $IP2 the IP address associated with $IF2. Next, let $P1 be the IP address of the gateway at Provider 1, and $P2 the IP address of the gateway at provider 2. Finally, let $P1_NET be the IP network $P1 is in, and $P2_NET the IP network $P2 is in.

One creates two additional routing tables, say T1 and T2. These are added in /etc/iproute2/rt_tables. Then you set up routing in these tables as follows:

ip route add $P1_NET dev $IF1 src $IP1 table T1
ip route add default via $P1 table T1
ip route add $P2_NET dev $IF2 src $IP2 table T2
ip route add default via $P2 table T2

Nothing spectacular, just build a route to the gateway and build a default route via that gateway, as you would do in the case of a single upstream provider, but put the routes in a separate table per provider. Note that the network route suffices, as it tells you how to find any host in that network, which includes the gateway, as specified above.

Next you set up the main routing table. It is a good idea to route things to the direct neighbour through the interface connected to that neighbour. Note the `src' arguments, they make sure the right outgoing IP address is chosen.

ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src $IP2

Then, your preference for default route:

ip route add default via $P1

Next, you set up the routing rules. These actually choose what routing table to route with. You want to make sure that you route out a given interface if you already have the corresponding source address:

ip rule add from $IP1 table T1
ip rule add from $IP2 table T2

This set of commands makes sure all answers to traffic coming in on a particular interface get answered from that interface.

Warning : Reader Rod Roark notes: 'If $P0_NET is the local network and $IF0 is its interface, the following additional entries are desirable:
ip route add $P0_NET dev $IF0 table T1
ip route add $P2_NET dev $IF2 table T1
ip route add 127.0.0.0/8 dev lo table T1
ip route add $P0_NET dev $IF0 table T2
ip route add $P1_NET dev $IF1 table T2
ip route add 127.0.0.0/8 dev lo table T2

Now, this is just the very basic setup. It will work for all processes running on the router itself, and for the local network, if it is masqueraded. If it is not, then you either have IP space from both providers or you are going to want to masquerade to one of the two providers. In both cases you will want to add rules selecting which provider to route out from based on the IP address of the machine in the local network.

Load balancing

The second question is how to balance traffic going out over the two providers. This is actually not hard if you already have set up split access as above.

Instead of choosing one of the two providers as your default route, you now set up the default route to be a multipath route. In the default kernel this will balance routes over the two providers. It is done as follows (once more building on the example in the section on split-access):

ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \
nexthop via $P2 dev $IF2 weight 1

This will balance the routes over both providers. The weight parameters can be tweaked to favor one provider over the other.

Note that balancing will not be perfect, as it is route based, and routes are cached. This means that routes to often-used sites will always be over the same provider.

Furthermore, if you really want to do this, you probably also want to look at Julian Anastasov's patches at http://www.ssi.bg/~ja/#routes , Julian's route patch page. They will make things nicer to work with.

Sumber : http://lartc.org/

10 May 2009

Sound on Flash Movie on Fedora 9

If you open a movie from YouTube, and you can not hear the sound, it's better to re-install your flash-plugin. This is the steps :

1. Remove the flash-plugin
Code :
[root@lenovo Download]# yum remove flash-plugin

2. Download new flash-plugin "flash-plugin-10.0.22.87-release.i386.rpm" from Adobe or form my site.


3. Install it
Code :
[root@lenovo Download]# rpm -ivh flash-plugin-10.0.22.87-release.i386.rpm

4. Install another one :
Code :
[root@lenovo Download]# yum install libflashsupport

5. Reboot your computer
6. Play your YouTube's movie again.

Thanks to Clunixchit.

If you can hear the sound, please check your volume control. Click Start -> System -> Preferences -> Hardware -> Volume Control -> Playback Tab -> Choose : Master Front, Headphone, PCM, Front, or CD depend on your desire.

09 May 2009

Install Java Plug-in on Fedora 9

For some sites, you need java plug-in on your web browser, such as YouTube. Without this plug-in, you can not see the content of sites entirely. To check out, is your web browser java enabled? Please go to http://javatester.org/enabled.html. Or, you can go to http://javatester.org/version.html to know more about your java version what you are using.

Hint: before you install java plug-in, please print the screen from the two sites above.

To enable Java plug-in on your web browser, follow these steps :
1. Download
2. Install
3. Enable and configure
4. Test installation

Download
To download this plug-in, please go to Java. or
my site. After download, move the file (jre-6u11-linux-i586-rpm.bin) to /usr/java directory.

Code
[msmunir@msmunir ~]$ su -
Password:
[root@msmunir ~]# cd /usr/
[root@msmunir usr]# mkdir java
[root@msmunir usr]# cd java/
[root@msmunir java]# cp /home/msmunir/Download/jre-6u11-linux-i586-rpm.bin .

Install
For install, see http://java.com/en/download/help/5000010500.xml#rpm

Code
[root@msmunir ~]# cd /usr/java/
[root@msmunir java]# chmod a+x jre-6u11-linux-i586-rpm.bin
[root@msmunir java]# ./jre-6u11-linux-i586-rpm.bin
[root@msmunir java]# rpm -ivh jre-6u11-linux-i586.rpm


Enable and configure

Code
[root@msmunir java]# cd /usr/lib/mozilla/plugins
[root@msmunir plugins]# ln -s /usr/java/jre1.6.0_11/plugin/i386/ns7/libjavaplugin_oji.so .


Close web browser and run again.

Test installation
Check out again these sites : http://javatester.org/enabled.html and http://javatester.org/version.html to know your java version.

After install java plug-in, print screen again from two sites above and compare it with print screen before install java.

Activate AntiSpam on FreeBSD

If you receive spam in your mailbox and you are the mail server Administrator or Operator, you can activate the antispam or sa-spamd by your self. To do this, just run a command line as a root privilege. Before you start the anti spam, it's better you need to know the status. Just make sure. Usually, the anti spam was placed on /usr/local/etc/rc.d/folder.



Code :
[root@serpong4] /usr/local/etc/rc.d # ./sa-spamd status
spamd is not running.
[root@serpong4] /usr/local/etc/rc.d # ./sa-spamd start
Starting spamd.
[root@serpong4] /usr/local/etc/rc.d #

NAT on Fedora 9

I want to access my computer with Private IP (192.168.1.3) from Internet. To do this, I need a computer can act as NAT (Network Address Translator). This computer was called as proxy server. Proxy server use Public IP = 202.46.3.71. To access Private IP from Internet, I use combination between Public IP and Port. For instance, we use port 9002. To activate NAT, I must run these command lines below on Proxy Server as root user.


Example:

# iptables -I FORWARD -i eth0 -o eth1 -p tcp --dport 9002 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
# iptables -I PREROUTING -t nat -p tcp -d 202.46.3.71 --dport 9000 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.1.3:80

To access my computer with Provate IP from Internet, I just use address : http://202.46.3.71:9000/

Install OpenOffice.org 3.0 on Fedora 9

If you Fedora 9 users, this is the steps how to install OpenOffice.org 3.0

  1. Download OOo_3.0.0_LinuxIntel_install_wJRE_en-US.tar.gz
  2. Copy OOo_3.0.0_LinuxIntel_install_wJRE_en-US.tar.gz to folder /tmp
  3. Run a Terminal and than go to Root
    [msmunir@lenovo ~]$ su -
    Password:
    [root@lenovo ~]#
  4. Change directory to /tmp/
    [root@lenovo ~]# cd /tmp/
    [root@lenovo tmp]#
  5. Extract OOo_3.0.0_LinuxIntel_install_wJRE_en-US.tar.gz
    [root@lenovo tmp]# tar xvfz OOo_3.0.0_LinuxIntel_install_wJRE_en-US.tar.gz
    Wait until process done
  6. Change direcory to /tmp/OOO300_m9_native_packed-1_en-US.9358/
    [root@lenovo tmp]# cd OOO300_m9_native_packed-1_en-US.9358/
    [root@lenovo OOO300_m9_native_packed-1_en-US.9358]#
  7. Setup
    [root@lenovo OOO300_m9_native_packed-1_en-US.9358]#  ./setup
    Checksumming...
    Extracting ...
    93396 blocks
    Done.
    Using /var/tmp/install_15987/usr/java/jre1.6.0_07/bin/java
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)

    Running installer
    /var/tmp/install_15987/usr/java/jre1.6.0_07/bin/java -DHOME=/root -DJRE_FILE=jre-6u7-linux-i586.rpm -jar JavaSetup.jar
    System locale: in_ID
    Root privileges
    OS: Linux
    Mode: installation
    Path to packages: /tmp/OOO300_m9_native_packed-1_en-US.9358/RPMS/
    Jar file: /tmp/OOO300_m9_native_packed-1_en-US.9358/JavaSetup.jar
    [root@lenovo OOO300_m9_native_packed-1_en-US.9358]#
    Along this setup, you will see a new window for setup purpose. Follow the instructions : click Next -> choose Typical -> click Next -> click Install now -> wait a moment -> click Finish
  8. Make menu
    [root@lenovo OOO300_m9_native_packed-1_en-US.9358]# cd RPMS/desktop-integration/
    [root@lenovo desktop-integration]# rpm -Uvh --force openoffice.org3.0-redhat-menus-3.0-9354.noarch.rpm
    Preparing... ########################################### [100%]
    1:openoffice.org3.0-redha########################################### [100%]
    /usr/bin/gtk-update-icon-cache
    gtk-update-icon-cache: Cache file created successfully.
    /usr/bin/gtk-update-icon-cache
    gtk-update-icon-cache: Cache file created successfully.
    [root@lenovo desktop-integration]#
  9. Check the menu on Applications -> Office
  10. For first time, you will ask. Follow this steps : click Next>> -> Entry your First name, Last name and your Initial -> click Next>> -> disable "Check for updates automatically" -> click Next>> -> choose "I do not want to register" -> click Finish
  11. Reboot
  12. Try open a ODT file with double click. If, the file was opened by other OOo3 Writer, make modification. Right Click the ODT file -> click Properties -> choose tab Open With -> click Add -> choose OpenOffice.org 3.0 Writer -> click Add -> click Close
  13. Do same thing with ODS and ODP files.
  14. Now, you can open the ODT files with double click

Uninstall OpenOffice.org 2.4

For Fedora 9 users, sometime, after you install new OpenOffice.org 3.0, old OOo still exist. To remove the old one, you can follow these steps :
[root@lenovo /]# rpm -e openoffice.org-draw-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-math-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-writer-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-writer2latex-0.5-2.fc9.i386

[root@lenovo /]# rpm -e openoffice.org-graphicfilter-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-xsltfilter-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-impress-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-calc-2.4.2-18.3.fc9.i386
[root@lenovo /]# rpm -e openoffice.org-core-2.4.2-18.3.fc9.i386

lenovo is my host name.

Mode Track on OpenOffice.org 3.0 Writer

For Word users, actually you can activate mode track too on OpenOffice.org 3.0 Writer. Therefore, don't worry about that. This is the steps :


  1. Open an ODT or a DOC file with OpenOffice.org 3.0 Writer
  2. Click menu Tools -> Options... -> OpenOffice.org Writer -> Changes -> change your display for insert and delete, if you wish -> click OK.
  3. Click menu Edit -> Changes -> Record
  4. Let's make editing.

To know more about differences beetween Word dan Writer, please visit : http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Migration_Guide/Writer_and_Word

08 May 2009

How to Create Yahoo Group or Mailing list

Create Yahoo Group or Mailing list is easy. You just follow the instructions., only 3 steps.
  1. Visit this site : http://groups.yahoo.com/
  2. Click link : "Easy as 1-2-3. Start your group today" or http://groups.yahoo.com/start
  3. Sign in to Yahoo! with your Yahoo!ID. If you don't have it, please Sign Up at https://login.yahoo.com/config/mail?.intl=us
  4. Step 1 of 3: Select a Yahoo! Groups Category. For instance, if you want to make community mailing list, you just click "Cultures & Community", then "Other", than "Miscellaneous".
  5. Step 2 of 3: Describe Your Group, such as "Group Name", "Enter Your Group Email Address", "Describe Your Group" and then click "Place my group here".
  6. Step 3 of 3: Select your Yahoo! Profile and Email Address, such as "Email Address", and "Word Verification".
  7. Invite peoples.
I hope usefull for you all.

Yahoo! Groups Guidelines

Yahoo! Groups give Yahoo! users a place to meet, interact, and share ideas with each other. Just like a real community, you may have different opinions than other Yahoo! Groups users. The Yahoo! Groups experience is best when people remember a few rules. Yahoo! sets out the terms and conditions of your use of our services in the Yahoo! Terms of Service, our Guidelines, and in other rules that we may place on our site. For your use of Yahoo! Groups, some of the key things to remember are:

  1. You may not harass, abuse, threaten, or advocate violence against other members or individuals or groups.

  2. You may not post content that is harmful to minors.

  3. You may not post content that is obscene, otherwise objectionable, or in violation of federal or state law.

  4. Stay on topic. Although all groups are different, most groups appreciate it when you stay on topic. If you constantly stray from the topic you may be moderated or removed from a group altogether by its owner.

  5. You may not add members to a group without their permission.

  6. You may not use Yahoo! Groups for commercial or advertising purposes.

  7. You may not post content which infringes the intellectual property, privacy or other rights of third parties.

  8. You may only post adult-oriented content in age-restricted areas. You must be 18 years old or over to access these areas.

  9. Some content may be more appropriate in some contexts than others. Yahoo! reserves the right to remove content that it determines, in its sole discretion, to be inappropriate and in violation of our rules. For example, discussions or depictions of bestiality, incest, excretory acts, or child pornography may be inappropriate if placed in a sexual or otherwise exploitative context.

  10. You may not use Groups solely for the purpose of storing and archiving files.

  11. You cannot re-post or re-transmit content that belongs to another user without that user's permission. A Groups owner or moderator (or any other user) cannot re-post or re-transmit Groups content to any other site unless the person has the explicit permission of every group member whose content is being re-posted or re-transmitted.


If you are unsure whether your content is consistent with these policies, please err on the side of caution and do not post your content in Yahoo! Groups or any other Yahoo! community area.

NOTE: While Yahoo! does allow users to post adult-oriented content to the appropriate age-restricted areas, please remember that the Guidelines apply whether or not you are in an age-restricted area.

Yahoo!'s Right To Terminate

Yahoo! Groups, in its sole discretion, may terminate or remove any content, Group or your Yahoo! ID immediately and without notice if (a) Yahoo! believes that you have acted inconsistently with the spirit or the letter of the Yahoo! Terms of Service or the Yahoo! Groups Guidelines, or (b) Yahoo! believes you have violated or tried to violate the rights of others. Please help us keep Yahoo! Groups an enjoyable and positive experience. If you see a Group or content that violates our rules, please let us know by contacting us.


Scan Viruses with miniPE, bootable CD-ROM

If your computer was infected by viruses, you don't have way out without scan from CD-ROM or other computer. For windows user, you can use Live CD based on miniPE. These the steps :
  1. Download miniPE at http://minipe.org/. Or you can download from my server ftp://dl1.batan.go.id/.

  2. Extract the file "MiniPE.v2k5.09.03-XT_2oo8.o8.20.rar" with password "thecavern", and you will find a file with name "MiniPE.v2k5.09.03-XT_UPDATED.ISO".

  3. Burn this an ISO image file to a blank CD-ROM.

  4. Now you can use this bootable CD-ROM to scan your windows computer. Don't forget to make your computer can boot form CD-ROM.


Disable Windows Genuine Activation (wga)

These are few steps to disable your Windows Genuine Activation (WGA) message on your Windows XP :
  1. Boot your computer and bring to Safe Mode. Use F8
  2. Erase folder c:\windows\system32\wgatray.exe
  3. Lauch RegEdit.
  4. Browse to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify
  5. Delete the folder ‘WgaLogon’ and all its contents
  6. Reboot your computer
Have nive a day

Usefull Links

In my age, remember something is more hard than I was younger. To remember something I used gadget, and this blog of course. These the link I usually use :
  1. To translate language : http://translate.google.com/
  2. Yahoo Milis : http://groups.yahoo.com/
  3. Windows Bootable CD-ROM : http://minipe.org/
  4. Download testing : http://www.indowebster.com/
  5. Debian GNU/Linux device driver check page : http://kmuto.jp/debian/hcl/

How to Invite People to your Yahoo Groups or mailing list

How to invite people to your Yahoo Groups or mailing list

  1. Visit : http://groups.yahoo.com/

  2. Click Sign In to Yahoo!, with enter your Yahoo! ID and it's Password.

  3. Click your desire group, for instance http://groups.yahoo.com/group/fisika_83/


  4. Click "Members" -> Click "Invite People" -> Please enter one person per line. For example: jsmith@domain.com. You may enter up to 50 email addresses OR Yahoo! IDs

  5. Click "Submit Invite"

  6. Click "Invite people"

I hope these steps usefull for you, and please send a comment. Thanks a lot.

E-mail abuse, sample #1

Subject:   Contact Person: Mr Bryan Williams
From: "Siemens Award Office"
Date: Tue, March 3, 2009 09:25
To: undisclosed-recipients:;
Priority: Normal

Your e-mail address attached to ticket number: 4565389723 with Serial
number M7-4038-581, which subsequently won you the promotion in our
SIEMENS ONLINE PROMO . You have therefore been approved to claim the sum
of £750,000,00 in cash. To file for your claims, provide us with your
information below:

Contact Person: Mr Bryan Williams
Email: siemens@onlineclaimsdept.com

PAYMENT PROCESSING FORM

1.Your Name:.....
2.Address:.......
3.Occupation.....
4.Country........
5.Age............
6.Nationality:.............
7.Tel Phone..............

Once again, congratulations!!!

Mrs. Roseline Douglass.
Information/Notification Officer.