Saturday, November 28, 2009

How to connect VPN via PPTP with Ubuntu

I had tried to connect to my office local network with my Karmic machine via PPTP protocol. I saw a VPN stuff when clicked 'Edit Connections' of NetworkManager Applet (normally on top left of you screen) but couldn't do anything to it. So I started googling and found below.

First, I had to install PPTP for NetworkManager
sudo apt-get install network-manager-pptp
Now, we can do setting PPTP VPN.

Just enter gateway, username and password your PPTP VPN will be now ready to work.

But for me, I want to go out to normal internet with my internet router not to go through my office network. I have to do something a bit.

In editing vpn, click on tab IPv4 setting -> Routes.

Enter ip(s) that want to use vpn and netmark.

You can leave another 2 columns, gateway and metric blank.

Thick in box "Use this connection only for resources on its network"

done.


Credit : VPN - Ubuntu Wiki, Howto configure PPTP VPN in Ubuntu Intrepid and Jaunty
Testing OS : Ubuntu 9.10 (Karmic Koala)

Friday, June 5, 2009

[FIXED] This project needs to migrate WTP metadata

After I checkout code from SVN repository, some of my Eclipse's projects alert this error

"This project needs to migrate WTP metadata"

and it's no provide clue for solve them.

I found this thread Eclipse error: This project needs to migrate WTP metadata

There's a way to solve this error almost bottom of the page.

Just right-click at alerting project and click "Validate"

Then the problem must be solved

Sunday, May 31, 2009

Advance Ubuntu keybindings setting

You can go to System -> Preferences -> Keyboard Shortcuts for normal shortkey setting but it isn't enough for me because it isn't work with "Windows" key.

I want Windows+d to bind to "show desktop" as used in Windows but Keyboard Shortcuts doesn't work in this case.

And I found from here How come pressing Super+D doesn't show my desktop?

There's deeper setting.

Run gconf-editor (at command line)

and went to apps -> metacity -> global_keybindings and change "show_desktop" from "d" to "d" (Mod4 is represent Windows key)

And I have also binded "run_command_terminal" to "t"

Configurations after installation my Jaunty Jackalope

After clean installation new Ubuntu - Ubuntu 9.04 or Jaunty Jackalope, I have made many configurations and installing softwares.
Font size
For softwares installations, I chose from Add/Remove so nothing to remember just tick and click but I might forget what and how to make some configurations next installtion time so below is my jot down about these.

That's all for now. I will add it if more configurations are added

Ubuntu : Automount NTFS Drive

For my Ubuntu (9.04), automount ntfs drive don't come out-of-box. It might have been happening for many versions but I didn't notice.

This automount have made some problem to me. For instance, my Rhythmbox Library. Because my musics file was keeping in ntfs drive, so everytime the system was boot the library was error because the drive hadn't mounted. So I want automount very much.

I think I might have fixed it for my 8.04. For 8.10, I used synaptic upgrade from 8.04 so it might still have the configuration from 8.04.

The issue was happended again when I have a clean installation with Jaunty Jackalope.

After some googling, there are many ways to fix this issue but it's too many things to do than I think it should be. Such as fix fstab blah blah. With a great community, there must be easy way to do this.

And now I have found it. Easy one

credit from Joeb454 : HowTo: Automount NTFS Drives

You can follow this link to tg/showthread.php?t=785263he solution or see the summarization for myself below.
  • Install ntfs-config (via apt-get)
  • Unmount wanted drive (if it had mounted)
  • Open it (somewhere in menus or run with command line)
  • Choose drive(s)
  • Enable Write Support for Internal Drives
That's all! After you boot up your system again, you drive will be automounted.

Tuesday, April 7, 2009

How to show hidden and protected files in OS X Finder

I have followed the method from the following blog How To Show Hidden and Protected Files in OS X Finder

but for my convenient I will make a summarize here.

There is just only 2 steps
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

boom!!! Your hidden files is shown.

Thursday, March 19, 2009

Add more Listenning port to Apache Http Server for Ubuntu

I have to tell you that this is my method. I'm not sure is there any better workaround to handle this. I'm on Ubuntu Intrepid Ibex.

First, I add this 2 lines to /etc/apache2/ports.conf (I'm gonna add listenning port at port 8000)

NameVirtualHost *:8000
Listen 8000

Second, Edit file named /etc/apache2/site-enabled/000-default by following step

copy content of all in and paste text next to the old one and change *:80 of the new one to *:8000

So you have something similar to this ......

Last, restart your apache with this command "/etc/init.d/apache2 restart"

Booom! Your Apache Http Server will now can listen to 8000 port.

Failed memo :
1. can't restart apache with this command apache2 -k restart
2. If adding just Listen 8000 in /etc/apache2/ports.conf, the 8000 port query is listenned but no thing is displayed.

Shared folders for Windows XP guest on Virtualbox

After set shared folders at Virtualbox, Windows XP finds that folder by itself.

It's at

My Network Places -> Entire Network -> VirtualBox Shared Folders

notice : one thing I'm not sure is that I have already install Virtualbox guest addtions before set this shared folders

Wednesday, March 18, 2009

Ubuntu video screen capture

This blog is my memo.

I have use recordMyDesktop for do a video screen capture. Its functions is ok for me. I was install it via Synaptic Package Manager.

Shared folders for Windows 7 Beta guest in Virtualbox 2.1.4

I found the trick here. I have tried it and it's work for me. My machine is Ubuntu Intrepid Ibex which running Virtualbox 2.1.4

- open Regedit (as administrator)
- navigate to this key and change the value to 0 (zero): HKLM\SYSTEM\CurrentControlSet001\Services\VBoxGuest\Start
- reboot the Windows 7 guest
- create a shared folder
- Navigate to (or map to a letter) \\vboxsvr\SHARENAME

Monday, March 16, 2009

[Solved] Can't connect with wired DHCP enabled ADSL router in Ubuntu Intrepid (8.10)

I got a problem that my Intrepid can't connect with wired DHCP enabled ADSL router, which it works fine with other machines running Windows XP

After googling awhile, I found this thread Can't connect to internet via ADSL with 8.10. And my problem was solved with the method in it.

I will summarize it here once :

1. Remove the words "interface-mtu" out of /etc/dhcp3/dhclient.conf

2. Edit /etc/NetworkManager/nm-system-settings.conf and changed managed=false to managed=true.

3. Reboot

done.

hope it's also work with your machine.

Saturday, February 14, 2009

OGV to AVI with mencoder

I have a problem with importing video file that extension is ogv to Openoffice Impress so I decided to convert it to avi. After googling a while I got following commands (I just copy & paste it, will examine it later)

mencoder input.ogm -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output.avi

and

mencoder -idx input.ogv -ovc lavc -oac mp3lame -o out.avi

Sunday, February 8, 2009

How to save flash file (swf) using firefox

call following command in address bar

about:cache?device=disk

ctrl-F to find swf you want by search the URL name of web page where wanted flash reside

then you can download as usual file


Testing platform : Ubuntu8.10 with Firefox 3.0.5


credit : Download & Save Flash Animation Files in Firefox or IE

Friday, January 23, 2009

How to convert unreadable mp3 tag in Ubuntu?

In Asian language (for me, Thai) always suffer unreadable mp3 tag. Here is a workaround to solve it.

install python-mutagen with this command

sudo apt-get install python-mutagen

cd to directory that your files at

and use it with this command

find . -iname "*.mp3" -execdir mid3iconv -e [encode] {} \;

done.

you can choose encode that suit to your language here. For Thai user use ISO-8859-11

credit : ConvertingMP3Tags


Monday, January 19, 2009

Copy non-formatted(plain) text in Ubuntu

Sometime, when we are browsing in the rich text place such as web page and we want to copy some text to our writing field (also rich text field too) without text format but normally it can not do.

In Ubuntu, there is a tool to help you called "Glipper"

you can install it with this command

sudo apt-get install glipper

and then you can add it to your panel. Its name is "Clipboard manager" in Add to Panel menu.

Ubuntu CPU temperature monitor

To monitor temperature of CPU, I'm using panel's item called "Computer Temperature Monitor"

To get it use this command

sudo apt-get install computertemp

then you have to add it to you panel by right-click at a panel, select Add to Panel. Then search with word "temp". There, that's your item to add

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresql