1) if you have a static IP set up your machine with that ip address, you'll most likely have to edit /etc/network/interfaces with some like:
auto eth0 iface eth0 inet static address 192.168.1.60 netmask 255.255.255.0 gateway 192.168.1.1
or what ever your appropriate address are
2) install ssh sudo apt-get install ssh 3) install apache sudo apt-get apache2
reboot after install both
you can test apache using your browser and pointing it to http://locahost
you can test ssh by opening a terminal window and typing "ssh <username>@localhost" this should ask you for a password.
if your not already logged into the machine with a gui I find vnc difficult, if you have the gui already and your logged just use System->Preferences->Remote desktop and turn that on. otherwise just use ssh to get a command shell. You can also download and install nomachie which works really well and is my personal favorite way to log in remotely to my home machine
As for port forwarding and the rest, it kind of depends on how things are set up, do you have a router? will the router get the static ip from your ISP or will your home computer get it?
Assuming that you have a router and it will get the static IP you'll have to set your router to forward port 80 and port 22 to your home computer. Google exactly how to do that with your router its a little different with every maker and model
Hope this helps, Jose
gvanto said: I would like to get ssh, vnc and a webserver set up on my Linux Hardy (Ubuntu 8.04) machine.
I've obtained a static ip from my ISP, but trying to figure out how to get the whole networking thing set up (port forwarding, etc) so I can ssh into my box from anywhere, run a webserver on it, vnc into it, etc.
I know there's some static (internal) ip's I need to configure but a good step-by-step tutorial on getting this set up in Hardy would be so awesome. I've google a fair bit but no luck. Got a good tutorial on networking but for Fedora linux and alot of the examples are Fedora-specific.
Any help / advice appreciated a million on this!
Gerry Networking noob :-)