Sunday, September 30, 2012

[CRASH] Bad news from my penguin :(

A week ago I tried to upgrade my Ubuntu 12.04 into 12.10. With my slow internet connection, its ran about 24 hours to download the upgrade. After waiting for it, I choose the wrong options about to kill the KDM DAEMON.... anddd its crash. Im so confused about this.

Nothing can restore my linux config :(
finally, I reinstall my linux, and now I try to always backup my installed packages.

Wednesday, September 19, 2012

[Linux] XFCE - Missing Window Border and System Button

This problem happen to me in last 2 days. When I login with xcfe desktop, I always found my window had no border and no minimize, maximize, and close button. I try to search this problem, and found the solution. Delete all files in this folder, and try to login again.
/home/youraccount/.cache/sessions/
*the folder .cache is hidden. Check the Show Hidden Files inside View Menu. 

Monday, September 10, 2012

WUBI - Install Inside Windows Missing

Have you ever when you trying to install Linux alongside with Windows and use WUBI, the install inside windows option is missing ? That's suck, because I must install from boot menu, so I must burn it into CD/DVD or flashdisk. Some forum said that the computer needs a big chunk to install inside Windows and other said you must download the latest WUBI to get this thing work.

But the problem, that two solutions above doesn't work for me :(
I tried to delete some files on my disk and hope the first solution works, but NO. Second, I have Kubuntu 12.04 which the latest version of Kubuntu. BUT, the WUBI still doesn't show the install alongside windows!!

The solution is, open your command prompt on windows and go into your DVD/CD or flashdisk where linux's master is. 
  1. Type (drive letter) :
  2. Type wubi --force
WUBI should open up and show the Install inside windows option ! :)

Friday, September 7, 2012

Download videos from Youtube with Chrome

In my linux, I confused to search any software to download videos from youtube. Because the Youtube downloader (PyTube)'s server seems to be down. So, the simple way, I download Chrome web browser and download this extension :
http://www.mandel-design.xf.cz/Chrome-Youtube-Downloader/?action=chrome
Everytime you open videos from youtube  pages, there will be a download button and which format that will you download. So simple, and I'm proud to use Chrome browser :)

HACK : Playing DNS Spoofing with Ettercap

Before sleep, I want to play with some tutorial on the net. It's about DNS spoofing, and used ettercap to do it! First, you must have ettercap installed on your computer. To download ettercap, type
sudo apt-get install ettercap-graphical
Now lets redirect our victim to websites of our choosing. First open a new console and change to our dns configuration file located in the following directory:
/usr/share/ettercap
Enter the following command to open the configuration file so we can edit it, I use gedit to edit it but you can use many other programs such as kedit:
gedit etter.dns
Now see the line that says microsoft.com A 198.182.196.56

That line will redirect the victim to 198.182.196.56 if they attempt to visit microsoft.com

I will give you an example by showing you I can redirect the victim to my own malicious web server running on my IP address (192.168.1.118) if they attempt to visit lets say http://www.facebook.com This example also uses a wildcard (*)We do this by adding the following line:
*.facebook.com A 192.168.1.118
Save it. Now We can issue the actual command that begins Ettercap and uses the dns spoofing addon:
ettercap -T -q -M arp:remote -P dns_spoof //
or if we want to target a specific victim IP address use this:
ettercap -i yourinterface -T -q -P dns_spoof -M ARP /herevictimslocalip/ //
Leave that running. The output that ettercap displays will clearly notify you as people are redirected.

[Linux] kde-config not found !

If you stuck with this error :
'The important program kde-config was not found! Please check whether you installed KDE correctly." 
Nothing to worry about, it's simple to fix it. This error happens because on KDE 4, kde-config is renamed to kde4-config. To fix the error, follow these steps :

  1. Enter /usr/bin
  2. Copy or rename (not recommended) kde4-config into kde-config. I suggest to copy it into kde-config, just type cp kde4-config kde-config
Good Luck !

Thursday, September 6, 2012

[Linux] Kernel Panic - not syncing: Attempted to kill idle task

I was opening my ubuntu last morning and the system loading for the long time. I thought that it still working on something, but I realize it gone freezes. So, I had to turn it off manually and try to booting again, and it's still the same.

It say that : 
Kernel panic - not syncing: Attempted to kill the idle task
PID 0, comm: swapper/1 Tainted: P  D   0
Call Trace: bla bla bla. 

(look at the screenshot below)

My laptop - Kernel panic

I try to google on it, and found some solutions :

  1. The error because of bug on ubuntu 12.04. (read this)
  2. It's the RAM problem, try to swap your RAM to another slots. If you have 2 RAMs in your computer, try to swap it. If you just have 1 RAM in your computer, try to move it into another slot.
  3. This works for me, try to use MemTest at your boot menu selection. After testing my memory, I can startup my linux again. 
I dont know exactly about this problem, I think it just a memory problem. Just in case, I update my linux's kernel.

BEST SOLUTION : UPGRADE YOUR KERNEL INTO THE LATEST ONE! 

Saturday, September 1, 2012

Repairing GRUB on Linux

Have you ever lost your GRUB loader because overwritten by Windows loader ? It's happen to me today, and I want to recovery it! It's not hard to do, you just need a Linux live CD/DVD to recovery your GRUB and these commands below. 
  1. First, boot your live linux and open the terminal. 
  2. Make sure you are login into root. If you're not, type sudo su and type your password . 
  3. Type fdisk -l to show all your harddisk drive partition list. 
  4. Search for your linux partition and remember it ! example my linux is at /dev/sda5
  5. okay then. I should mount it, so type mount /dev/sda5/ /mnt
  6. You should mount another system components by type this :
    • mount --bind /dev/ /mnt/dev
    • mount --bind /proc/ /mnt/proc
    • mount --bind /sys/ /mnt/sys
  7. Now, set your new root, type chroot /mnt
  8. Type update-grub to check if my Windows loader is detected too. 
  9. To install grub, type grub-install /dev/sda
  10. Okay, thats all, now try to reboot your computer, type reboot.
Oh , i tried this scenario also ! I try to delete the /boot/grub folder and try to recovery it, simple, just type grub-install /dev/sda and it will be created again by GRUB. 

And it works perfectly on my computer, may it will help you someday.

Share