Technology
Have you looked around lately?
Have you had a look around this house of mine lately?
If you haven't, you really should.
Today, I took some time to do a bit of a clean up. YOu might notice a few little changes here and there.
The Has had some new documentation added to it.
A few weeks ago, I added more recordings to the Music room
There's always things happening here. Even if I don't blog about them when they happen.
Have a look! Have fun!
The Mad For Trad stream is now available.
People have been asking me to put an on demand stream of Mad For Trad up for months now. Sorry I'm only getting around to it now, I had other issues to work out before I could even consider working on this.
So, Here goes: This should be available every week now.
This weeks Mad For Trad featured music from Aselin Debison, Nancie Ker, Moving hearts, Mairin Fahy, Toss the Feathers, Dave Donohoe and Tony Daverin, Robbie Harris, celtic Tenners, davy Spillan, Niall and Cillian Vallely, and others.
We also spoke to Kerrie Doyle and she tells us about Nancie Ker and what drew her to Nancy's singing.
Click Here to listen to the archive ofMad For Trad from the 6th March 2010.
System statistics at a glance.
It's important to see how servers are doing regularly to enable you to to take a proactive approach to resolving problems.
But, when your using a Linux server with no GUI, it can be easy to become complacent. After all, they so rairly go down and it can take time to type all the commands required to get the information you need.
That's where Bash scripting comes in. Creating a script to provide you with memory, CPU, disk and bandwidth usage is very useful. Having this available to you on a day to day basis is even better again.
I've been looking for something that would give me a tailored report of what's happening on a server that I run but nothing gave me what I needed. Everything was either too complicated, too process intensive, too graphical or had too many dependencies. So, after looking around for a while, I decided that it would take less time to throw something together my self.
As I say with all these scripts. This is only one way of doing things. It's not necessarily the best way, but it works none the less.
The first script obtains all the information I need and simply writes it to a text file. This can be sent by email or just stored somewhere for analysis.
#!/bin/bash
logfile=/YourDirectory/output.log
echo Logged in users: >> $logfile
w >> $logfile
echo >> $logfile
echo Processor stats: >> $logfile
mpstat >> $logfile
echo >> $logfile
echo Virtual memory stats: >> $logfile
vmstat >> $logfile
echo >> $logfile
echo Top twenty memory hog applications: >> $logfile
ps -A -o pid,pcpu,pmem,start_time,state,time,comm | perl -e '($_ = join "",<>) =~ s/(\t)/ /g; print;' |sort -g -k 3 -r | head -20 >> logfile
echo >> $logfile
echo Top twenty CPU hogging applications: >> $logfile
ps -A -o pid,pcpu,pmem,start_time,state,time,comm | perl -e '($_ = join "",<>) =~ s/(\t)/ /g; print;' | sort -g -k 2 -r | head -10 >> $logfile
echo >> $logfile
echo Free memory: >> $logfile
free -m >> $logfile
echo >> $logfile
echo Processor information: >> $logfile
procinfo >> $logfile
echo >> $logfile
echo Established connections: >> $logfile
netstat -na |grep -i esta |grep -v 127.0.0.1 |sort -n -t. -k2 >> $logfile
This next script though is where it gets interesting. I've created a virtual host and all the files are written to a it's directory. There's an index and a separate html file for each day of the week. When the script is called, it populates the html file for the day with the data I want and it adds a line to the index to point to the new file that has just been created. So, instead of getting email every day from a server that is ordinarily very reliable, Touch Wood, I can visit this page every so often to check that everything is ok.
You'll notice that in this script, I've also included checks for mail, Apache2, MySQL and Icecast errors as these are the most important services running on this server.
#!/bin/bash
logfile=/YourDirectory/logs/$(date +%Y%m%d).html
WHO=`w`
MPSTAT=`mpstat`
VMSTAT=`vmstat`
PS_MEM=`ps -A -o pid,pcpu,pmem,start_time,state,time,comm | perl -e '($_ = join "",<>) =~ s/(\t)/ /g; print;' |sort -g -k 3 -r | head -20`
PS_CPU=`ps -A -o pid,pcpu,pmem,start_time,state,time,comm | perl -e '($_ = join "",<>) =~ s/(\t)/ /g; print;' | sort -g -k 2 -r | head -10`
FREE=`free -m`
PROCINFO=`procinfo`
NETSTAT=`netstat -na |grep -i esta |grep -v 127.0.0.1 |sort -n -t. -k2`
APACHE2LOGS=`tail /var/log/apache2/error.log`
MYSQLLOGS=`tail /var/log/mysql.err`
MAILLOGS=`tail /var/log/mail.err`
ICECASTLOGS=`tail /var/log/icecast2/error.log`
cat <<- _EOF_ > $logfile
->
Server statistics for $HOSTNAME
Updated on $(date +"%x %r %Z") by $USER
Logged in users:
$WHO
Processor stats:
$MPSTAT
Virtual memory stats:
$VMSTAT
Top twenty memory hog applications:
$PS_MEM
Top twenty CPU hogging applications:
$PS_CPU
Free memory:
$FREE
Processor information:
$PROCINFO
Established connections:
$NETSTAT
Errors
In the mail logs:
$MAILLOGS
MySQL logs
$MYSQLLOGS
Apache2 logs
$APACHE2LOGS
Icecast2 logs
$ICECASTLOGS
Return to the index
_EOF_
echo "$(date +%Y%m%d)" >> /YourDirectory/logs/index.html
Internet connectivity problems for the past four weeks.
I really must write about this in more detail.
I have mentioned it once or twice before on the blog. The last time, I thought I had fixed it by changing the DNS. I've however since reversed these changes as they did not make a lasting difference.
Really simply, and without going too much into it right now, I can access Irish websites but I cannot access websites in other countries. Hence, I can write to this blog but I cant access twitter.com at the moment.
I want to see what the difference is between a tracert on this connection and the tracert on another vodafone connection. I know their not static routes but still, it will be interesting to see what the difference is.
Here is the output of the tracert on my machine.
Tracing route to twitter.com [128.121.146.228]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.2.1
2 33 ms 33 ms 33 ms 89.19.64.2
3 34 ms 35 ms 37 ms 89.19.64.73
4 35 ms 36 ms 37 ms 213.233.129.93
5 138 ms 107 ms 108 ms 193.95.147.61
6 53 ms 51 ms 52 ms vlan72.rt001.cwt.esat.net [193.95.130.209]
7 51 ms 52 ms 50 ms ge3-0.br003.cwt.esat.net [193.95.129.6]
8 54 ms 54 ms 55 ms xe-0-1-0-104.dub20.ip4.tinet.net [213.200.67.253
]
9 135 ms 138 ms 138 ms xe-5-1-0.was12.ip4.tinet.net [89.149.184.34]
10 * * * Request timed out.
11 191 ms 190 ms 191 ms as-3.r20.snjsca04.us.bb.gin.ntt.net [129.250.2.1
67]
12 191 ms 191 ms 192 ms xe-1-1-0.r20.mlpsca01.us.bb.gin.ntt.net [129.250
.5.61]
13 192 ms 193 ms 189 ms mg-1.c20.mlpsca01.us.da.verio.net [129.250.28.81
]
14 190 ms 192 ms 189 ms 128.121.150.245
15 293 ms 188 ms 186 ms 128.121.146.213
16 261 ms 191 ms 191 ms 128.121.146.228
Trace complete.
Interestingly, I cannot access twitter from this machine. I can try on any one of the computers here. Not one will load the twitter page. If I ping it, I get a response. If I tracert it get a response also. But it jsut will not load http://www.twitter.com It's not confined to Twitter either as I said earlier. I was trying to install winamp today from http://www.winamp.com and I couldn't access that either. Again, I could tracert to it without any problems.
Here however is the output of tracert on another vodafone connection. Note, this check was done within two seconds of the first on my machine. This connection has no problems accessing any website. The configuration of this connection almost completely mirrors my own. The internal P address structure is the only noticeable difference.
Tracing route to twitter.com [128.242.240.20]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.1.254
2 9 ms 10 ms 11 ms 89.19.64.129
3 13 ms 12 ms 12 ms 89.19.64.181
4 12 ms 13 ms 13 ms 193.95.147.65
5 11 ms 11 ms 11 ms vlan73.sw002.cwt.esat.net [193.95.130.217]
6 11 ms 11 ms 10 ms ge1-1.br003.cwt.esat.net [193.95.131.57]
7 11 ms 11 ms 12 ms xe-0-1-0-104.dub20.ip4.tinet.net [213.200.67.253
]
8 124 ms 98 ms 97 ms xe-5-0-0.was12.ip4.tinet.net [89.149.185.17]
9 * * * Request timed out.
10 165 ms 168 ms 169 ms as-3.r20.snjsca04.us.bb.gin.ntt.net [129.250.2.1
67]
11 166 ms 164 ms 168 ms xe-1-1-0.r20.mlpsca01.us.bb.gin.ntt.net [129.250
.5.61]
12 168 ms 166 ms 171 ms mg-1.c20.mlpsca01.us.da.verio.net [129.250.28.81
]
13 170 ms 170 ms 167 ms 128.241.122.197
14 163 ms 165 ms 168 ms 128.242.240.5
15 175 ms 202 ms 174 ms 128.242.240.20
Trace complete.
Again, I'll vent at another stage about my frustrations while trying to get this fixed. Not now though, it's late.
Update on Monday 01st March 2010 at 10:37PM.
Around twenty four hours after writing this blog post, internet connectivity seems to be back to normal. I expect it will stay this way for a day or so but unless resolved, the problem described earlier will return. As a demonstration of the change in the connection to the internet tonight, I will provide the output of the tracert command with Twitter continuing to be the required destination.
Tracing route to twitter.com [168.143.162.116]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.2.1
2 34 ms 34 ms 34 ms 89.19.64.129
3 35 ms 34 ms 34 ms 89.19.64.181
4 34 ms 34 ms 34 ms 193.95.147.65
5 35 ms 37 ms 35 ms vlan73.sw002.cwt.esat.net [193.95.130.217]
6 35 ms 34 ms 34 ms ge1-1.br003.cwt.esat.net [193.95.131.57]
7 35 ms 35 ms 34 ms xe-0-1-0-104.dub20.ip4.tinet.net [213.200.67.253
]
8 121 ms 124 ms 123 ms xe-5-1-0.was12.ip4.tinet.net [89.149.184.34]
9 * * * Request timed out.
10 191 ms 193 ms 190 ms as-3.r20.snjsca04.us.bb.gin.ntt.net [129.250.2.1
67]
11 191 ms 220 ms 191 ms xe-1-1-0.r20.mlpsca01.us.bb.gin.ntt.net [129.250
.5.61]
12 194 ms 193 ms 192 ms mg-1.c20.mlpsca01.us.da.verio.net [129.250.28.81
]
13 194 ms 192 ms 191 ms 128.121.150.133
14 202 ms 189 ms 191 ms 168.143.162.85
15 191 ms 187 ms 189 ms 168.143.162.116
Trace complete.
Interestingly, the destination address of Twitter has changed and hop 9 timed out.
I cant explain the change, I just know that it exists.
All I can say is I really hope that the people responsibility for providing this connection can do something.
using RSA or DSA for authentication to a Linux server via SSH or SCP.
Following on from my post yesterday about backups, I thought I'd give a further explination as to how to copy down the archives that I created in the script.
For this, I'm using SCP. However, if using SCP, you ordinarily need to log on.
If your prompted for a username and password every time your script runs an scp command, it's kind of pointless having cron run the script at all.
So, to get around the requirement to log in, while at the same time keeping the set up secure, we use an RSA or DSA key.
for the rest of this post, I'm going to call the machines backup and server. The backup is the machine I am copying the backup files to.
On the backup machine, type the following commands to generate the files and copy the public file across to the server. I suggest you use a very restricted account on the backup and server for this.
ssh-keygen -t rsa
hit enter for the first question to agree to save the key to /home/YourUserName/.ssh/id_rsa
Hit enter without typing anything for the second and third questions as we don't want a password for this particular key. Note, this is usually not recommended but it should be ok for this type of situation.
It will tell you that a public and private key has been created and it will give you the finger print of the newly created key as well.Next, you will want to copy the public key across to your server. Note, the server is the machine that hosts your backup scripts.
scp .ssh/id_rsa.pub YourUserName@ServerName:.ssh/If this is the first time you've used a public key then use the following command as it will make things easier for you.
scp .ssh/id_rsa.pub YourUserName@ServerName:.ssh/authorized_keysIf however you have used other keys, do the following:
ssh YourUserName@ServerAddressType your username and password to log in.
Now, type the following to append the id_rsa.pub to the authorized_keys file.
echo .ssh/id_rsa.pub >> .ssh/authorized_keysNow, leave the ssh session by typing exit.
From the backup machine, you can now log in via ssh without providing a password.
Note!!!
You might want to secure your public key. If it goes missing, this could go very very baddly for you as this key does not require a password.
Log into the server by typing:
ssh YourUserName:ServerAddressNow, change the permissions of the file so that this restricted user account is the only one with read and write access to the public key
chmod 600 .ssh/authorized_keysNow, get out of the ssh session by typing exit.
The next step will be running scp to download your backups and verify that their readable. If their not, we'll want to log the failure.
backing up a drupal site.
I host a number of Drupal sites as well as wordpress and custom made ones as wel.
When you host a site, one of the first questions your asked is do you have the ability to back up and restore my site if something breaks?
For obvious reasons, that's an important question. But, it's a balancing act. It's important to make sure you back up regularly but you don't want to over do it and use up all your bandwidth on copying said backups off the server.
So, for backups you need to separate them in to four parts.
- Nightly Full server backups.
If the server goes down, I want to be able to bring it back within 5 minutes. - Monthly Full site backups.
These will be compressed archives that contain everything from the site including content and databases. - Weekly differential site backups
These are stored on a server that mirrors the configuration of the primary. It is used for testing new server configs before they go live on the production server. - Daily site backups
This is a backup of important site files that can become dammaged as a result of errors during an upgrade or configuration change. This does not contain a database backup but is very useful for very quick restores.
With that in mind, I have created the final part of this puzzle. The following daily backup script archives the important directories in a drupal installation so their ready to be coppied by the remote server. I have these scripts saved to a location in the home folder of a very restricted account that is used simply for this task. A simbolic link in /etc/cron.daily points back to each of these scripts.
#!/bin/bash
thisdate=$(date +%Y%m%d)
backupstatus=false
tar -zcvf /home/UserName/backups/UserName.tar.gz /home/UserName/public_html/sites/all /home/UserName/public_html/sites/default/settings.php /home/UserName/public_html/sites/default/files/playlists /home/UserName/public_html/sites/default/files/js /home/UserName/public_html/sites/default/files/css /home/UserName/public_html/cron.php /home/UserName/public_html/includes /home/UserName/public_html/index.php /home/UserName/public_html/install.php /home/UserName/public_html/misc /home/UserName/public_html/modules /home/UserName/public_html/profiles /home/UserName/public_html/scripts /home/UserName/public_html/themes /home/UserName/public_html/update.php /home/UserName/public_html/xmlrpc.php && backupstatus=true
if [ $backupstatus = false ]; then
echo Error $thisdate Backup failed. >> /home/UserName/backups/UserName.log
else
echo $thisdate Backup completed without errors. >> /home/UserName/backups/UserName.log
fi
backupstatus=
thisdate=
chown RestrictedAccount UserName
So, what am I doing there?
- First, I declare a variable to hold the date.
- Second, I declare a variable that holds the value false. If the archive command doesn't work, this will never be set to true.
- Next, I archive very specific folders. Notice, I'm not archiving /home/UserName/public_html/sites/default/files because that contains audio, pictures and videos and I really don't want or need to include them in every days backup file because it would be far too large.
- Notice that there's a change to the BackupStatus variable at the end of the archive command. Because this starts with an &&, it will not be run unless the archive command is successfull.
- Next, I use an if statement. If the backup status is false, I write to the error file. Notice that I put error at the start of the line. This just makes things a bit easier because I can look through the start of the log for a line that doesn't start with a date.
- Of course, if the variable comes back true, then the log file is updated to reflect that the archival job was successfull.
- Finally, I do some clean up. I set both variables to blank values and make sure that the user who has only very few access privlidges can get the file.
I don't doubt that there may be a better way of doing that, but this way works very well.
On the other machine, a cron job is set to run very early in the morning to copy down these archives. With every archive it copies, it logs it on the remote server. That way, if what I call the copy job fails, I can see it and take any required action.
I may be doing too many backups at the moment. With any process like this, it will take some analysis for a few weeks to determine if I can reduce the frequency of backups depending on the number of updates made to each site. Because I don't host a huge amount, I can even tailor the back up schedule per site so as sites that are updated frequently are backed up more often.
The history of DigitalDarragh
GTK v QT.
This is a response to my Blog post about Linux accessibility. I wrote it in response to another comment. It turned into a bit of a long one though and the information is applicable to a lot of things. So, have a read of this:
KDE is based on QT and Gnome is based on GTK. It's important to recognise the differences in these environments from the start. QT doesn't support AT-SPI. It was planned to support this but it never happened. This is down to a decision by the QT developers.
Here's an article that discusses how Gnome communicates with Orca. http://accessibility.kde.org/developer/atk.php
There's information about the accessibility of QT packages at http://doc.trolltech.com/4.5/qt4-accessibility.html
GTK is not the only standard for the graphical desktop manager in Linux. QT is just as much of a player. That's where the problem comes in. Any application that is written for Gnome and follows the Gnome development guidelines will communicate the necessary information to Orca. The problem arises when you launch a QT based application such as Acrobat reader as Orca doesn't get the required information from it.
I understand your point about the limited progress in some areas due to developers not making enough progress with their compliants with the accessibility guidelines but tell me one platform where that isn't an issue. It's nothing to do with communication. It's a problem with bad coding. Simple.
In relation to the problems you have encountered accessing applications that run as root in Ubuntu, there are a number of well documented fixes to this. Basically, Orca, like every other Linux application can not obtain information from a process running as a more privlidged user. This is the reason why Linux is such a secure platform. However, there are work arounds to this as I said earlier. In fact, Listen to one of the recordings in the Linux section of www.lalrecordings.com and you will hear one of the ways of getting around this. In Vinux, the environment is preconfigured for optomal accessibility. Perhaps you should try this out? You might find that with the environment configured to provide the most accessibility, most of your issues are resolved. If nothing else, it will illustrate to you that on most distributions of Linux running Gnome, problems can be ironed out if your willing to spend some time on configuration.
I'd also suggest you read http://live.gnome.org/Orca as I'm almost certain that you'll find an alternative and accessible PDF reader. As for skype, use the plug in for Pidgin. I would bet that you will not find an application that doesn't have a gTK counterpart in LInux. There are very few things in Linux that you will not be able to access if you keep at it. Just like the same can be said in windows or even OSX if your that way inclined.
Oracle to stop supporting Gnome accessibility.
Updating your mouse driver without a mouse.
A question was just asked on twitter that I thought might be of use to some people.
So, here goes. Follow the following distructions:
These are for Windows XP.
- Start system properties by pressing the windows key plus pause. Pause is usually on the top right of desktop keyboards.
- Press the control + tab combination twice to move to the hardware tab.
- Press alt + d to activate the Device manager button. If you can see the screen, you will notice that under lined letters for buttons, radio buttons, checkboxes and even some edit fields can be accessed quickly by using the alt key + that letter. For menu items, pressing the letter alone will activate that option. In the case of menus with two of the same underlined letters, pressing the letter will set focus to one of these.
- To jump to the list of hardware, press the tab key once.
- Press the letter m to jump to the item labeled:"Mice and other pointing devices".
- Expand this item by pressing the right arrow.
- You will usually only see one item in this list. Press the down arrow to highlight it.
- Activate the context menu. ON a mouse, this is usually obtained by clicking the right button. On a keyboard, press the applications key. This is three to the right of the space bar on most desktop keyboards. If you are using a laptop that does not have an applications key, you can press shift + F10.
- The first item in this list is "Update driver". Use the down arrow to highlight this and press enter to activate it.
- The following wizzard will walk you through the process of updating your driver. You may use the tab key to cycle around the options on this screen, the enter key to activate buttons and of course, as explained earlier, use alt + underlined letters to quickly activate buttons and other controls. For example, alt + n for next.
For users of Windows Vista and Windows 7:
- Go to the start menu by pressing the windows key or control + escape.
- You will automatically be in the search box. Type the following without the quotes. "device manager".
- To jump to the list of hardware, press the tab key once.
- Press the letter m to jump to the item labeled:"Mice and other pointing devices".
- Expand this item by pressing the right arrow.
- You will usually only see one item in this list. Press the down arrow to highlight it.
- Activate the context menu. ON a mouse, this is usually obtained by clicking the right button. On a keyboard, press the applications key. This is three to the right of the space bar on most desktop keyboards. If you are using a laptop that does not have an applications key, you can press shift + F10.
- The first item in this list is "Update driver". Use the down arrow to highlight this and press enter to activate it.
- The following wizzard will walk you through the process of updating your driver. You may use the tab key to cycle around the options on this screen, the enter key to activate buttons and of course, as explained earlier, use alt + underlined letters to quickly activate buttons and other controls. For example, alt + n for next.
Hopefully that works for you. If not, please post a comment.
Talking watches.
- Their loud. Imagine this. Your sitting in a quiet office. people are typing on their computers around you and you want to find out what time it is. This booming voice shatters the silence by screaming out: "THE TIME IS NOW 6:15 PM!!!!!!!!!" Everyone in the office turns and gasps at this distraction and you go bright red with shame as a result.
- They talk too slowly. You need to know what time it is and you need to know now! You press the button and in it's booming voice, it screams in the slowest voice ever, "THE TIME IS NOW 6:15 PM!!!!!!!!" All you need to know in a hurry was that it was a quarter past 6, but by the time it's finished, it's now twenty past! Ok. that's a huge exageration but you know what I mean.
- Their big and clunky. A talking watch on your arm is like having a huge sign on you saying to people, hay! I'm blind! and I love my talking watch! Listen to it roar!
Two cool Windows 7 shortcuts.
How?
Live Music on DigitalDarragh.com
It's no secret that I really love Irish traditional music. From Cara Dillon, Julie Fowlis, Kate Rusby, Michael Mcgoldrick, Tommy Cunnif, Zoe Conway, Mick Ó Brian, Sharon Shannon and John McKusker to Guidewires, Lúnasa, flook, Grada, Stocktons Wing, Slide, Tripswitch and Téada just to name a few, I love it all. I have over a Terabyte of Irish traditional music and I want to share some of this with you.
There are no decent Irish traditional music radio shows at the moment. This aims to fill that void.
The show will air on Saturdays at 7PM GMT, 2PM Eastern and 11AM Pacific time.
At the moment, there are a lot of ideas for making this show something you will want to listen to. Just some of the aims at the moment are:
- Interviews and live performances by known and not so known Irish traditional musicians.
- If permitted by musicians, short recordings of live gigs.
- Interviews with lovers of Irish traditional music.
- Reviews of specific new albums,/li>
- Requests! Tell me what you want to hear. If I don't have it, I'll certainly get it.
The content and format of the show is currently not set. It's going to change and evolve over the next few weeks as people decide what they want. Get your say in by commenting on this post.
This online broadcast is licensed by The Irish Music Rights Organization (IMRO.) Every step possible has been taken to ensure that copyrighted material is respected and artists are recognised appropriately.
The stream will be available at the following address. If this doesn't open in Internet Explorer or Firefox, paste the address into your media player of choice. http://digitaldarragh.com:8000/madfortrad.m3u
Fixing DNS issues.
Problem
You cannot connect to certain sites.
You can ping IP addresses on the internet but you cant ping some or all domain names.
Background
DNS look ups are basically where you give your computer a domain name like google.com and it resolves it to an IP address such as 216.239.59.137. Generally you will have two or more DNS look up servers. These are generally given to you by your Internet Service Provider (ISP).
Solution
If your ISP is having problems with their Domain Name Servers (DNS) for short, you may want to consider using a service called OpenDNS. This service does exactly what your ISP's DNS servers do. You will continue to have a primary and secondary DNS server but instead of looking up names using your ISP's servers, you'll use OpenDNS instead.
First, go to www.opendns.com and create an account. When your done, you will see instructions for adding the DNS servers to all versions of windows and Linux. If you continue down the page, you'll also see a heading for geeks. Here, you will find the primary and secondary addresses. Keep these somewhere for a moment.
To configure Windows, Just follow these really simple steps.
- Go to run.
- Type the following Without the quotation marks: "control netconnections"
- Are you using wireless to connect to the router? If so, go to Wireless network connection with your mouse / arrows. If your using a wired connection, find Local area connection..
- press alt and enter if your using the keyboard, or right click on local area connection or wireless connection then click properties if your using a mouse.
- If using the keyboard, press i until you land on Internet protocol TCPIP. If your using Windows 7 or Vista, you'll see IPv4 TCPIP or something like that. If using the mouse, click on this. NOw, press alt p for properties. If your using windows 7 or vista, press alt and r. If using the mouse, click on the properties button.
- Tab once to the radio button for obtain DNS IP address automatically and press the down arrow once to select Use the following DNS IP address. IF your using the mouse, click on this option.
- Tab to the primary dns field or left-click on it.
- Now, type the Primary DNS address that you got from the OpenDNS site.
- Do the second for the secondary DNS address. Just tab to that field or click on it with the mouse.
- When your done, click the OK button, then at the network properties, click close.
Right, that's the hard bit done. Now, you just need to flush your DNS cache.
Your DNS cache is a local log of addresses that have been looked up. This cache reduces the amount of look ups that are carried out. However, when your change your DNS server due to problems, you need to remove this cache so that at the start, all further look ups are sent out to the primary or secondary DNS servers.
Doing this is really simple.
- Go to run.
- Type "cmd" and hit enter or click ok.
- In the resulting command prompt window, type the following without the quotations: "ipconfig /flushdns" and hit the enter key.
- Now, type exit.
Your done.
Close any and all Internet Explorer windows open at the moment and try going back to a site you previously couldn't access.
If your a boards.ie user,
Setting up the IceCast Audio streaming server.
I decided on Sunday that I was going to set up a service on a Linux box for streaming audio. It's not for me... not for the moment anyway. It's for Stuart Lawler He wanted to stream his weekly podcast, the Stuart Lawler Show live to listeners while also making it available as a downloadable podcast. He's planning to air it every week at 2PM. So, if your around at that time which is 7AM in Canada and 9AM in most parts of the US, Hop on over to The live show feed. Note, that feed doesn't work when he's not broadcasting so be warned, it will probably just give you a page not found error message.
I wanted to write a few notes to explain the process that I used to get IceCast running on this Ubuntu 8.04 machine. Firstly, I made a mistake. I didn't realise the Icecast2 package was available in the apt repositories. So, I compiled all of the dependencies and the actuall Icecast package my self from source. So, I could have made it much easier on my self if I had checked the repositories before hand but... hay, that's life.
So, when installing Icecast from source, you'll need to download, configure, make and install LibXML, LibXXLT, LibTool, Curl and make. You'll also need libvorbis, libogg and possibly a few other packages depending on what your doing.
You should install your dependencies in that order before moving on to IceCast as the make clean option didn't work after the make process failed due to dependency problems.
Of course, if your compiling Icecast from source, you'll need to add it as a service to run so you'll need to grab or manually create a file to run it for /etc/init.d/
But, that isn't probably necessary if you bother to check the package repository first though.
simply, go and grab it by typing sudo apt-get install icecast2 and your done. Don't do what I also stupidly did when I installed icecast-server as that is version 1 of the package. Why they still have that in the repository I will never know.
Right. Is that done?
The config files are in /etc/icecast2.
Hay, I noticed a little funny thing when I installed it. I created a group called icecast with limited access and then a user with a similar name. Then, the installer created a new group... But what wsa funny was that in the config it generated in /etc/icecast2/icecast.xml, it elft the last bit commented out where the user name and the group is specified for better security. Something must have been left out somewhere when the package was created for the Ubuntu repositories. anyway, it's simple enough to customise the xml file. The only problem is figuring out what addesses it's looking for. The howtos, forums and every other bit of documentation out there is confusion at it's best. Forget it all! Just use the release notes and the comments in the config file to guide you because they won't stear you wrong.
Change the hostname to yourdomain.com.
Leave the port.
uncomment the changeowner part of the config at the bottom. comments start with <!-- and end with -->. If your reading this with a screen reader, that last bit will make no sense to you. Use your read by character functions to see it.
Finally, when that's done, create your mount point. At this stage, look at the sample mount points in the config. Only take what you need from them. Start the block with
That's all there is too it really. It's really much easier than I thought it was going to be. Actually, by complicating it, I probably made it more difficult than it needed to be.


