Friday, January 30, 2009

Migrate aNd Manage (mNm) 0.4 Release

In this release, mNm will support space checking with a single command. This will be useful for both command mode and in GUI mode.

And mNm has successfully obtain a space in FedoraHosted. This project's wiki has moved to FedoraHost from zenit's wiki. All the information and source will be found in there. It will be open to public for every one to try out.

Link:
https://fedorahosted.org/mnm/

Thursday, January 29, 2009

What? Linux on iPod??!




Yes, that's right.. and they're working on iPhone also.. They have successfully install kernel 2.6 in iPhone..

I was talking with Chinmay Patel about linux and iPod. I told him that he may able to install linux on his new iPod Nano. And he was interested about it. So, I went home and do some searching.. cool. I am so surprised people has successfully installed linux in different type of iPod...

But.. looks like it dosen't support the new fat iPod Nano yet.. well.. u know, it's fun.. but.. how can you type stuffs there???


Download page from iPodLinux.org

More Screen Shots..

LinuxOniPhone Blog

Monday, January 26, 2009

Disable root ssh...

I've been wanted to run my own testing server. Finally, I set it up today. Sign up an account in DynDNS.com. Set up some setting in my wifi router so it can update my dynamic IP regular. After some configuration, that's it! It was like 10mins work. ssh works, tunneling works, sftp works.. nice!

But of course, having a server that would let people connect to it is quite dangerous. Especially, it's my home network. I was lucky enough to see Professor Raymond Chan online.. oh.. i'm not gonna miss the chance, right? SO, I asked him the best way to setup the iptables. So, I drop all incoming, except ssh port. I'm gonna open port 80 so I can play apache server a bit. ^^ And on my router side, I set more security options in my router. I may setup a VPN or something, just incase if someone hack into my server. They can't access some of my Windows machine.

Then, did some testing from different network... from cdot machines, from my iPhone.. cool.. it worked! But connecting from iPhone needs some trick. The trick is have to make sure the iPhone has an IP first. It's kinda weired...

When I was testing the login, I almost forgot to test if I could ssh with root.. oh.. yeah.. gotta disable it. 30second search on net, found the disable root login. I would love to share with any one...

= First, make sure u have root privilege, u can either use "sudo" or "su -".. then...
vi /etc/ssh/sshd_config
= find the following line.. remove "#" and change "yes" to "no"
PermitRootLogin no
= save and test!!

That's it!

At this point, I'm not sure what I'll be testing on it.. Apache, of course.. I may set up a small Beowulf cluster if it's possible. I hope I'll able to run VM in this machine.. but this machine is only like 700mhz AMD CPU with 512 ram.. it'd be really slow to run VM.

Ideally, I should put this server in front of my home network. Set it as a router with strong firewall protection, put my home network be hide it. I don't have a real plan for this yet... Lets see if I have time for it... ^^

Sunday, January 25, 2009

youtube and my mum.. and.. woodmaking...

I've been doing the lab.. feeling like to relax a bit.. so, let me blog something interesting here...

Recently, my mum just got a new computer, so she can use dictionary with a computer and I can have one more new toy too. ^^ NICE!!

After days of installing and reinstalling... I manage to install Fedora 10.. oh yeah.. but..too bad that the sound card driver dosen't wrok so well.. StarDict dosen't produce some good sound. And Adobe flash dosen't work too.. well.. all expected... SO I just have to let her use XP.. too bad..

Then I showed her youtube.. she loves it. Now, she can watch her favourite show online...looks like.. My dad and I have to eat instance noodle for weeks.. hahaaha..




I read about Comp Study in high school by Chris Tyler few days ago. I woke up in the morning.. day dreaming.. then I thought.. wait.. woodmaking dose related to programing!! hahaha..

Have you guys wiki the story of first PC from Apple? Oh.. yeah.. the hand-made one.. by Stev and Stev (I think "Stev & Stev sounds better than "Apple", more designer feel.. haha..) Common.. maybe one day some Ontario high student can create a hand made computer or robot or something, right?

May Ontario Gov should consider teaching students how to hand draw diagram.. and.. perhaps we should start writing our programming language in papers! Put all your code on the paper.. just like how we did in exams.. ;-p

Of course.. I was joking..



PS: ops.. dunno why the pic appeared so before.. it's fixed now. ^^

Thursday, January 15, 2009

More about Virtual Machine with Sun VirtualBox





I've been working on a little project on Virtual Machine. And I was trying to setup a network for our networking course, so we can do thing like Beowulf clustering. I used VirtualBox, since it's a cross platform. Because I have tri-boot with Vista/OSX/Fedora. So I can turn on my VM in any system and work on it.

After hours of searching and testing. Finally, I can ssh to and from my VMs and even connected to outside world. Thank you John64 and Vyas(Mohak) testing it for me. There are a lot of things that I'm not quite sure too. But since I've gotta stop playing with my VM and go back to my labs works. I can't spend too much time on it.

Anyway, here is the command to enable port fowarding with the build-in command "VBoxManage". This command allow you control VM configuration and even create a VM with one line command...

= enable Foward ports 2222 to 22 in VirtualBox =
# VBoxManage setextradata vm-F10i686 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
# VBoxManage setextradata vm-F10i686 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
# VBoxManage setextradata vm-F10i686 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP

NOte: - vm-F10i686 - is the name in your VirtualBox, not your hostname

= Check configuration with VBoxMange command.
# VBoxManage getextradata vm-F10i686 enumerate

The good thing about using port forwarding is easy. But it has limitation also. Like... if I want to VNC to/from my VM, i'll need to forward another port also. So, instead, my next little project will be working on using DNS server, etc to setup a network (virtual network?) for my VMs. And I'll be using my host (my laptop) as the router, DNS server, etc.

And her are some trick and tips I would like to share with you..
1. If you are setting up same VMs in different machine. You can actually save your image file (.vdi). So you don't have to install again. But it seems a name is writed in the file also. So, I wasn't able to duplicate image file and having two same config VMs running in same host. I may spend sometime to hack about it when I have chance.
2. There is a build-in function called "snapshot" that allow you to capture the system status and recovery it later. But instead, I just copy the image file instead, because it gives me more flexibility when I'm using it in different OS.
3. Install Guest Additions, it's just fun to see a full-screen high resolution Fedora running in your Vista! I was able to have 1440x900 to use my Fedora VM in osx and Fedora host!
4. If you want to have a tri-boot VM with XP, Vista and some Linux. You may want to install XP, Vista and Linux in order. I would suggest to put XP, Vista, Swap as the primary and put all other Linux in your logical drive. Yeah... You can put all different Linux in your vm, Fedora, Ubuntu, FreeBSD... (the list goes on forever)
5. If you have backup, and somehow your vm system is not working. Instead of fixing it, you can just mount the old image file back! It's not a good admin should do, but... if u know the stuffs.. why do it over and over again? ^^

Actually, There are still a lot of things I want to explorer about VM. I could spend a month on it without doing any thing else. But... I'll save this fun later when I'm done the LUX course. Lets put study first. ^^

Nes

Sunday, January 11, 2009

Fedora and my dad..

My dad loves technologies.. but not really brave enough to try new stuffs. I've been asking him to try the Fedora Live CD for months, but he told me there is something wrong to boot. Finally, I got a chance to install F10 for him... hehe..

His desktop is full of virus... no matter his Vista or his XP. You know, once you are using Windows, you don't have to worry about virus, cos you'll get virus for sure, so, why worry? Even if you use it very carefully, you may still need to format and reinstall it after 6 months... well.. in my experience...

Anyway, I setup a Tri-boot for him. He got XP, Linux and Fedora 10 running with a 300Gb big storage for him to spend, since he swap his external 500Gb as the internal now. And I think he kinda like it. I've seen him sometime boot up Fedora and try this and that. Of course, I was a little tricky, I put Fedora if he dosen't press any key at start up, hehe.. so he'll get in Fedora instead of other OS.

And, he always got problem with his video capture card in Vista, cos he couldn't manage to find a driver. Then I found that F10 already support his card. Looks like he's gonna use it more than those Windows....

When my dad really know how to use F10's interface, I think i'll do the same thing to my mum's laptop too. I actually, installed Firefox for her laptop and I think she dosen't even know what's the different tho. If I can manage to find a dictionary with real person speaking... then, she's gonna love it.. ^^

Friday, January 9, 2009

Re-installation for T2107...




On 5th Jan 2009, we all get together and reinstall few different OS in the computers in lab 2107. It was fun and we learned a lot.. here are some photos...

















Since I'm so jealous that people can go to FudCon11, I've gotta post more photos here to cover their news, hahaha.. lol

Objective C developers will like this...


I've been thinking to organize a iPhone and iPod Touch Club since last semester. Finally, I've made my first step, got a form from the office.

It's gonna be a club for end user and developer exchange information and learning together. For regular, they can learn how to use build-in application. For developer, it's a good source to exchange beta softwares, tips and tricks. And you can also let people to try your little code.

Since there are a new objective C class starting coming semester, I think there are a lot of people would be interested. ^^

More detail are coming... if it got approved...

Nes