I was doing my 1st lab in SBR600, which involves installing Fedora that needs to be accessible from the college and we had the choice of installing it on either:
1) The hard drive rack that we use at Seneca
2) Personal Laptop
3) Your machine at home
I sold my laptop due to it being nearly useless when you are in an environment with rooms FULL OF COMPUTERS, and I also use the rack for NDD430, so I decided to go with the third option and install Fedora 19 on a VM in “Virtual Box”, a free virtualization software running on Windows 7 on my graphics accelerated beast at home. Once the installation was done, I had to somehow the configure it so that I could access this machine from anywhere. It did take me 7 hours and a lot of nerves but I did get it done, and it turned out to be VERY easy. So I will outline the steps in this short guide in case anyone else wants to do the same.
WARNING: This method requires you to have a constant IPv4 address given to you by the ISP, worst case scenario, you will need to look up your new IP if you want to access your VM remotely. But usually IPs don’t change that often so it shouldn’t be a big issue.
Here we go:
1) First thing you want to do is is go to your VM settings and change the default network type from the default setting to “bridged adapter”Your VM now has a network adapter on your computer as this pic shows:2) Next thing you want to do is set a static private IP on your fedora VM by changing the /etc/sysconfig/network-scripts/ifcfg-[NIC NAME]. If you are not sure about the contents, look it up it’s really simple.
3) Now, find out the IP given to you by your ISP by going to www.whatismyip.com
4) Now we need to adjust your router to send all incoming port 22 traffic to your VM’s IP address. If your router doesn’t have port forwarding feature, you might want to look into a custom firmware for your router that does have that feature.
Anyway, go to 192.168.1.1 or whatever your router IP is, and find the port forwarding menu and add an entry.
Where 192.168.1.91 is the static IP I assigned on my Fedora VM
5) If you’ve done everything right, you should now be able to remotely ssh into your VM by a command: ssh [fedora account name]@[your external ip]
If you are accessing your VM from Android, you can get an app called “hosts editor” which will allow you to map your IP to a name so you don’t have to type your IP every time. The filesystem on which that file resides in read-only in android, otherwise I would just edit it by hand.
As a final result, I am able to access my machine from anywhere.
Have fun SSHING. That, or carrying your laptop around, yea..