@Raymond Yang: Yes, that's the right direction. Although currently I don't have an Ubuntu machine, as far as I know everything works well under Ubuntu.
You said that you are encountering errors, but you didn't post any. What sort of issues are you seeing?