Wednesday, 14 November 2012

Ubuntu Upgrade 12.04 problems

Problem 1.

Ubuntu Disappearing Unity bar after Upgrade to 12.04

After upgrading to 12.04 and rebooting I noticed that the Unity (sidebar) was missing, I tried a couple of commands to no avail:
unity --reset
unity --reset-icons
sudo apt-get update
sudo apt-get install upgrade (i did this as it looked like the upgrade had got stuck and didn't finish)
And then rebooted, alas this didn't solve the problem
The next method that I tried (and worked) was to install additional drivers, in my case i have an Nvidia graphics card, drivers were installed.


After switching to the recommended driver this solved the problem.


Problem 2.

"Buffer I/O error on device fd0, logical block 0" error


Switching to  console mode, this error continuously appeared, so as we know this means that its looking for a floppy drive that isnt attached.
Simplest way to fix this is to disable it with
vi /etc/modprobe.d/blacklist
and adding this line
blacklist floppy
And then reboot


Tuesday, 3 April 2012

MAME!

MAME
After digging around in an old external HDD that was lying around, I found the collection of MAME roms I'd forgtotten about!
So first things to do: Get the MAME emulator!
http://rapidshare.com/files/1612483/Mame32_v109u4___All_Bios_pack.rar
The emulator is a precompiled version for those who cant be bothered compiling it!
This includes the BIOS pack as well for roms such as Metal Slug x
Whip out a controller and fire up that sucker!
Heres a few screens from a few classics!






Wednesday, 22 February 2012

One-liners

One liner for random password generation
dd if=/dev/random count=1 bs=8 2>/dev/null | base64 | sed -e 's/=*$//'

Setting up test users(sip) in Asterisk


Setting up test users(sip) in Asterisk
Two files to modify
-sip.conf
-extensions.conf
Software needed:
Twinkle for Ubuntu 11.04
Ekiga for Windows (7)
Of course the softphone can be anything you choose but this is what im using

This is a demonstration of a call between a Ubuntu sip user and windows user who both can connect to the Asterisk server as set up in previous steps. The GUI can be used for this,but as recommended getting to know the files personally is a lot better in the long run.


Ok so here goes:
Adding sip users

open ter
sudo su root
navigate your way to /etc/asterisk
vi sip.conf
Only add the text in bold
[test]
--user register
type=friend
--user can make or recieve calls peer =inbound only, user = outbound only
username=test
--username
secret=password
--password
host =dynamic
sets dynamic ip for the host
context=tutorial
sets the group test will belong to.
Our second user
[test1]
type=friend
username=test1
secret=password1
host =dynamic
context=tutorial

Adding the users to the extensions

navigate your way to /etc/asterisk
vi extensions.conf
[tutorial]
exten => 1234,1,Dial(SIP/test)
exten => 4321,1,Dial(SIP/test1)
exten => number,prioirty,Dial(protocol/user)

Now asterisk -r
reload
sip show peers
The users should now be there!

Adding the softphones

Twinkle for Ubuntu
Install twinkle
wizard
enter name for profile
user name test
domain 192.168.0.23 –this is what the domain was for me,so whatever your ip address is that the asterisk server resides on

authentication name test
password password

Ekiga for windows 7

Once installed
Accounts->Add a sip account
name test1
Registrar 192.168.0.23
user test1
authentication user test1
password password
enable account (ticked)


To test the call functionality
From either machine
(ubuntu in this case and twinkle)
make sure user is registered(logged in)
Call 4321
Hopefully it will come up as an incoming call on the ekiga machine :-)

From windows machine using Ekiga
sip:1234@192.168.0.23
hit call icon

To see the communication between both login into the asterisk server
asterisk -r

This was done on my home network so modifications for accessing the asterisk server from outside the home network will be done soon

Update: 
The ip for the registrar is the outside ip address of the server which you are using. provided that port forwarding is enabled and working properly then connecting to the asterisk server should not be a problem. From a clean install on a VM outside my network I was able to connect and register the SIP user without having to change any network configuration files for asterisk.