I’m making the assumption that you have a working 12.04 installation that’s connected to the internet. 🙂
First, your going to add the freenx repository, then update. Followed by installing the freenx software.
sudo add-apt-repository ppa:freenx-team/ppa
sudo apt-get update
sudo apt-get install freenx-server
Now tht you have the Freenx server installed, you will want to configure it to use the ubuntu-2d session for any Freenx clients. The ubuntu-3d session doesn’t work with Freenx and will give you an error message “Failed to load session “gnome-fallback””.
sudo echo -e "\n#Use unity 2d for client sessions\nCOMMAND_START_GNOME='gnome-session --session=ubuntu-2d'" |sudo tee -a /etc/nxserver/node.conf
All done, you should be able to connect using NoMachine’s free client. 🙂
Installation of FreeNX Server on Ubuntu 12.04 Precise Pangolin
How to Install FreeNX Server on Ubuntu 12.04 Precise Pangolin
What is DNSMASQ?
A caching DNS forwarder. Dnsmasq is lightweight, easy to configure DNS forwarder designed to provide DNS (domain name) services to a small network where using BIND would be overkill. It can be have its upstream DNS servers automatically configured by PPP or DHCP and it can serve the names of local machines which are not in the global DNS. It can integrate with the ISC DHCP daemon to serve the names of local machines which are configured using DHCP. Dnsmasq is ideal for networks behind NAT routers and connected via modem, ISDN, ADSL, or cable-modem. Continue reading
The IPv6 standards define an algorithm to generate temporary random IPv6 addresses that are less traceable over time. This is documented in RFC 4941 “Privacy Extensions for Stateless Address Autoconfiguration in IPv6”. The following instructions apply to a network card called eth0, if your is different, then change to suit.
To enable the use of Privacy Extension under Ubuntu and other Debian derivatives, you need to edit the following. Continue reading
To disable isatap teredo and 6to4 on a Windows 7 workstation, type the following at the prompt. You do of course need Administrative access on the workstation to do this.
If like myself your running dual stack IPv6 via your router or gateway, then there is really no need to have them running.
netsh int ipv6 isatap set state disabled
netsh int ipv6 6to4 set state disabled
netsh interface teredo set state disable
Thanks for the input guys, I’ve changed the following to set it back to default.
To re-enable isatap teredo nd 6to4, just replace the disabled with type=default.
ISATAP – Wikipedia
6to4 – Wikipedia
Unfortunately a lot of devices don’t pass on RDNS information from radvd even though it’s included in the RFC. The best it can do is a default gateway and an IPv6 address. You are supposed to be able to pass RDNS information, but I’ve found that the devices that I’ve tried (Windows 7 and Android Gingerbread, still don’t support that part of the Request for Comment) hence the use of DHCPv6.
Got a guaranteed place in the New York Marathon this year, Yehh! Perseverance does pay off it seems. 🙂
This is basically a reminder to myself in case I need to set this up again, if you want to do this for more than one PC behind a NAT firewall-router, then you will of course have to use a different port range for each PC. I’m using 20 ports per PC so that I can have 20 simultaneous connection.
I’m making the assumption that your router has the ability to create a virtual servers (an inbound port range that can map to an Internal Class C Private address range). I’ve called the Virtual server below “DCC Chat Workstation”, since workstation is the hostname of my main PC (original ehh). I’ve also given it an internal and external port range of 54000 to 54019, to be forwarded to the IP address of my Workstation.
On my workstation I start the XChat IRC client, select Settings –> Preferences –>File Transfer and change the First DCC send port to 54000 then change the Last DCC send port to 54019. That will give you 20 ports to play with. Also select (tick) “Get my address from the IRC server”.
All done. 😀
If you happen to run iptables or similar on your linux/unix box, then remember to allow the port range listed above access. If like me, your running ufw on ubuntu then the command is
sudo ufw allow proto tcp from any to any port 54000:54019
Making outgoing IRC DCC work with NAT