Static IPs

Posted by John
on Saturday, 19 July 2008
/sbin/ifconfig eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255

Network address by convention would be the lowest: 192.168.1.0 Broadcast address by convention would be the highest: 192.168.1.255 The gateway can be anything, but following convention: 192.168.1.1

Note: the highest and lowest addresses are based on the netmask. The previous example is based on a netmask of 255.255.255.0

also,

/usr/bin/neat  ..gnome gui tool
/usr/bin/netcfg  ..handles all network interfaces
/usr/sbin/system-config-network-tui  ...text user interface
/usr/sbin/netconfig  ..(Only seems to work for first network interface eth0 but not eth1,...)

The ifconfig command does NOT store changes permanently. On reboot changes are lost. Manually add your commands to the end of the file /etc/rc.d/rc.local to execute them upon boot.

Otherwise use the commands netcfg and netconfig, which make permanent changes to the system network configuration files located in /etc/sysconfig/network-scripts/

Google Apps as your CDN

Posted by John
on Saturday, 19 July 2008

Setting up Goggle Apps as your own CDN

  • Install Python
  • Download Google Apps SDK
  • Signup for Google App Engine and create an application
  • Download CDN Example, nicely put together by Andreas Krohn of digitalistic.com
  • Extract archive and edit app.yaml, changing application:digitalisticcdn to application:
  • Put all the images you want to upload in the images directory, etc.
  • Download Digitalistic's batchfile uploader here. Edit it so it points to your Python install directory, your Google App Engine SDK and your digitalisticcdn / customapp directory.
  • Double-click on this newly edited batch file to run it, the first time it'll ask for your username & password afterwhich your files will then be uploaded (hopefully) to your newly created appengine cdn.

So after all that, you should be able to access your images via,

[application identifier].appspot.com/images/[myimage.gif]

Thanks go to Andreas Krohn of digitalistic.com for putting together the zip archive example, batch file and original tutorial.

Fedora 8 on my HP dv2742se

Posted by John
on Wednesday, 20 February 2008

Fedora

My excellent fiancee came back from her dad's bowling trip with a nice new Intel Core 2 Duo laptop for little ole' me, ain't she great.

Anyway I decided to put two fingers to Vista, install Fedora 8 and see how things went. Well I can tell you, things are pretty damn good.

Here's how,

Install Fedora

First download your 64-bit image from the fedora site at...

Click [get fedora] and select the 64-bit build because the new Intel core 2 duo chip is a 64-bit chip (the previous 'core duo' chip wasn't).

Burn the 4gb image to DVD and boot from it, install, check Office / Web / etc. so you get everything and give it 30 minutes to install and you to go thru the install process.

After Installing

First off you'll notice the touchpad is a bit over-reactive and the WIFI doesn't work, this we'll fix.

For this you'll need a network cable to hook up directly to your router, a standard CAT5 network cable will do, nothing too posh.

Getting Wifi and everything else

Once hooked up, boot up with the ROOT account so you've got admin rights OR boot in normally, open Terminal (Applications / System / Terminal) and type...

sudo wget http://dnmouse.webs.com/scripts/dangermouse
sh dangermouse

A dialog will popup, this is the best bit and will hopefully fix all your problems, choose...

  • flash plugin
  • dvd-playback
  • madwifi
  • webcam drivers
  • java
  • touchpad
  • lightscribe

and any others you want and hit OK, after the lengthly install and a reboot you should have wifi working and drivers for your touchpad, webcam, java, etc.

For this I really have to thank DangerMouse and his work at http://dnmouse.webs.com/, really well done!

Touchpad

Now lets fix that over-reactive touchpad, click System / Preferences / Hardware / Touchpad. Select [Tapping] tab and untick tapping, bingo, that's done.

DVD Playback Slow

Uh-oh, you're video might be slow when playing DVD's (which the DangerMouse script just enabled!). Select System / Desktop Effects, and disable Desktop Effects, ok it's not the best of fixes but should sort it out.

Otherwise try re-installing your ffmpeg drivers and other builds, in Terminal...

sudo yum remove ffmpeg
sudo yum install ffmpeg mjpegtools libquicktime

The others are just incase.

System Beep

Really easy to get rid of, System / Preferences / Hardware / Sound. Select the [System Beep] tab and untick [Enable System Beep].

Rails ?

Real easy,

sudo yum install ruby ruby-devel rubygem-rails rubygem-mongrel lighttpd lighttpd-fastcgi

Then,

sudo gem update --system
sudo gem install rails
sudo gem install rake

Interrogate Hardware

To see what USB devices you have on your system...

su root
lsusb -v | less

Good for finding what model of webcam you've got.

Tweaks

You might agree, but I didn't much like the big lettering in the default view, so i changed the font size down to 8 (system / preferences / appearance / look & feel / fonts).

Knocking the font sizes down a bit made it look a bit more professional, along with inverting the colours to green-on-black is much easier on the eyes.

The default editor in Fedora 8 is gEdit (listed as Text Editor), in this it has many plugins to make your life eaiser (edit / preferences / plugins), with some tweaking you can quickly turn it from a basic tool to something very powerful.

Afterwards

Get yourself a coffee or cocoa, you now have a very fast, very powerful 64-bit O/S with firewall and wifi to keep you going for many years to come.

Enjoy, you're sitting on the future ;-)

Accessing the Slingbox Remotely

Posted by John
on Monday, 18 February 2008

setup

One of the beauty's about the Slingbox is it's ability to stream video around your WIFI network, and more potentially accessing it remotely via some router changes.

Router Settings

So, first off log into your router with your internet browser...

http://192.168.1.1

Enter your admin username + password and get into the system.

Now first off you need to put the Slingbox into the DMZ (demilitarized zone), basically in front of the firewall so that you can connect to it remotely in cyberspace.

So with a belkin router, click [firewall], then [dmz]

Now add a static ip entry for your slingbox, like...

public ip : 82.23.44.92
static ip : 192.168.1.237

So in the first line of the DMZ screen it will show your router's currently assigned IP address, on the right it will list static ip's assigned to devices within your network that you want out in the open.

Because the Slingbox uses the default IP of 192.168.1.237, we set the first line to : 192.168.1.237 or 237

Hit save, now you need to setup a port for the slingbox.

So click [firewall], then [virtual servers]

Now add an entry for your slingbox's internal port.

lan ip address: 192.168.1.237
protocol type: TCP
lan port: 5001
public port: 5001
enable: tick this

make sure the entries are correct and you've ticked [enable], click [set] and you're done!

Your Slingbox is now available online.

So open your slingbox software, click [get info] and tick [access remotely], enter your router's ip address (from the DMZ screen, public ip or in this case 82.23.44.92) and the port 5001, click [save] and sit back and watch TV from your slingbox anywhere in the world.

Further Note

You can also apply this to other devices such as if you are like me and buy an ICYBOX NAS enclosure with a BitTorrent tool in it, by putting it in the DMZ it then has free access to the internet and you can load up torrent files into it and leave it to download them for you.

Nothing illegal mind, for me it's Fedora 9.

;-)

Take care,

MX Records, do i ? don't i ?

Posted by John
on Sunday, 17 February 2008

Note to self...

You don't need an MX entry in your DNS records if your only sending mail. An MX record is only used to broadcast to others about where mail should go when it's sent to you.