Linux, windows, asterisk, vmware

Running dual screens within linux is awesome! Setup with Deal Head = Two seperate desktops across multiple monitors.

Note: Before starting this, please disable your current proprietary drivers (if in use) from ‘Hardware Drivers’ in the system menu

Card = ATI Radeon

Drivers = ati-driver-installer-9-4-x86.x86_64.run download from http://ati.amd.com/support/driver.HTML

Once download, open a terminal alt+F2 type in gnome-terminal

cd to the location downloaded, firefox default is the desktop.

cd ~/Desktop
sudo sh ./ati-driver-installer-9-4-x86.x86_64.run

This will run you through the setup, follow the prompts on the screen.

Here is the trick to get dual x sessions working correctly from the command line with little fuss.

sudo aticonfig –initial=dual-head –screen-layout=right

Change -screen-layout=right to the position of your second screen. e.g -screen-layout=left

Popularity: 11% [?]


Tags: , , ,

Each time a user send’s and receives from outlook 2007, an error was received (0×8004010f)

This error can be caused by a number of issues, however in this particular case, the migration of exchange servers caused the error whereby the Generation Server of the Offline Global Address Book was no longer available.

RESOLUTION

Open up Exchange MMC

  • Expand Organization Configuration
  • Select Mailbox
  • Select Offline Address Book tab
  • Select ‘New Offline Address Book…’

Follow the wizard, once the address book is created, select if from the list, right lick and select ‘Set as Default’

All outlook clients should now send and receive with no errors.

Popularity: 7% [?]


Tags: ,

When trying to connect an external sip client to my home Asterisk (Trixbox) after setting up the extension with nat=yes and qualify=yes I could connect and register to the machine, you can check this by using ‘sip show peers‘ from the asterisk CLI

To resolve this issue, I manually edited the sip_nat.conf file, below is my configuration.

nat=yes
externhost=XXXXXXX.dyndns.org
localnet=192.168.1.0/255.255.255.0
externrefresh=120

If you have a static ip, you can use externip=xxx.xxx.x.xx instead of externhost

Also, in my sip.conf file I have the following.

bindport=5060 ; UDP Port to bind to
bindaddr=0.0.0.0 ; (0.0.0.0 binds to all)
rtpstart=10000
rtpend=20000

You can edit these files via the config editor built into trixbox, or from an SSH terminal using Putty with the easy to use nano text editor

You may also need to point the following ports to your asterisk / trixbox from your router

SIP port: 5060
RTP Ports: 10000 – 20000

Popularity: 13% [?]


Tags: , , ,

I had alot of trouble trying to find updated information in regards to Asterisk configuration when connecting to iiNet, i’m using Naked DSL with iiNet, the package comes with a free voip service *claps*

Here is my trunk configuration for asterisk.

Sip Trunk

Outbound Caller ID:07XXXXXXXX (Your iiNet number)

Outgoing Settings

Trunk Name: iiNetOut

Peer Details:

disallow=all
allow=alaw&ulaw
canreinvite=no
context=from-trunk
fromdomain=iinetphone.iinet.net.au
fromuser=07XXXXXXXX (Your iiNet number)
host=203.55.228.194
insecure=very
dtmfmode=auto
nat=no
pedantic=no
secret=XXXXXXX (Your iiNet voip password)
type=friend
registersip=yes
username=07XXXXXXXX (Your iiNet number)

Incoming Settings

User Context: iiNetin

User Details:

canreinvite=no
context=from-trunk
fromuser=07XXXXXXXX (Your iiNet number)
host=203.55.228.194
insecure=very
secret=XXXXXXX (Your iiNet voip password)
type=friend
username=07XXXXXXXX (Your iiNet number)
qualify=yes
nat=no

Registration String:

07XXXXXXXX@iinetphone.iinet.net.au:voippassword:07XXXXXXXX@iiNetOut/07XXXXXXXX

Popularity: 12% [?]


Tags: , ,

1. Download the sysprep files from http://www.microsoft.com/download

Alternatively, you can extract them from deploy.cab file on your Xp installation CD.

2.  Extract the package and copy the files to the directory C:\Documents And Settings\Application Data\All Users\Vmware\VMware VirtualCenter\sysprep\xp

The sysprep folder above contains a folder for each different operating system, 2k, svr2003, svr2003-64, xp, xp-64. Extract the sysprep files to the appropriate folder.

This will enable you to use the  Customization wizard when deploying from a template, you can save the sysprep settings for further Virtual Machine deployment.

Popularity: 4% [?]


Tags: , ,

Nokia, has very limited information and support in regards to the sip client, asterisk and nokia phones ‘took hours’ to figure out!

So, here is a working configuration, tested with Nokia 6100 Navigator and Nokia N95

Got into the Menu -> settings -> Phone Settings – > Connection -> SIP settings

Profile Name: Your desired profile name
Service Profile: IETF
Default Access Point: Your service provider access point, in my case ‘Planet 3
Public user name: sip:206@domain.com

Public username is in the format ’sip:ext@ip/domain’ ext is the extension setup on your asterisk server, the IP is the public IP of your asterisk server, if you do not have a static IP, use dyndns.org service.

Use Compression: No
Registration: When needed

You can set this to ‘Always On‘ if you want your sip client ready when you are

Use security: No

Proxy server

Proxy server address: sip:domain/ip
Realm: asterisk
Username: ext ‘Asterisk extention’
Password: pass ‘Asterisk extentsion password’
Allow loose routing: No
Transport type: UDP
Port: 5060


Registrar server

Registrar server address: sip:ip/domain
Realm: ip/domain
Username: ext ‘Asterisk extention’
Password: pass ‘Asterisk extentsion password’
Transport type: UDP
Port: 5060

Have fun :-) Hopefully everything will register for you with those settings, you will need to have the appropriate ports in your router and your sip_nat.conf and sip.conf configuration corrected as  outlined in the bottom of my previous post Trixbox – External sip clients, no audio

Popularity: 10% [?]


Tags: , , ,

NAB Mobile Internet Banking will allow you to mostly do not much.

However, if you follow the below link on your mobile phone, you should be presented with a login page for your mobile.


nab-login

Once logged in you will be presented with your account list.

Select your preferred account, you can browse transactional history. At the time of writing, very limited functionality exists within the application.

Popularity: 5% [?]


Tags: , ,

network-manager does not contain the package to setup a PPTP vpn environment, from a terminal window or Synaptic install the following package

network-manager-pptp

terminal cmd:  sudo apt-get install network-manager-pptp

Once the package is installed do the following:

  1. Left click on the Network Manager applet in your system tray, and select VPN Connections > Configure VPN
  2. Click Add, follow connection wizard,  Enter a name for the connection, and the address / IP of the VPN server.
  3. Select Advanced your settings should look like the screen below.

nm-connection-editor

Note: Do not enter the domain you are connecting to, in the username field, enter it like the following domain\username

network-manager does not contain any options to refuse eap, this will need to be done via the command line or gconf-editor

I have provided both options below as chrunchbang linux EEE PC release, does not contain networking in gconf-editor.

1. open up a terminal window, type is sudo gconf-editor expand  system expand networking expand Connections expand either folder, 1,2,3,4 then VPN folder 3 contained my vpn connection settings.

2. right click, create a new key

3. Name: refuse-eap -> Type: String -> Value: Yes

if Networking folder is available in gconf you should now be able to connect to the PPTP VPN without any troubles.

However, if the folder in gconf is not there, please follow the steps below.

1. Open a terminal window.
2. cd ~/.gconf/system/networking/connections/
3. ls -la

output : 1 2 3 4 5 6 %gconf.xml

The folder above represent different connections, you will need to find the connection with the VPN folder, mine is 3, so I would enter the following.

cd 3/vpn/

4. check the  full current working director, mine is /home/username/.gconf/system/networking/connections/3/vpn this can be found by issuing the command pwd
5.  issue the command: nano %gconf.xml
6. The XML file contains specific values for the VPN connection, add the refuse-eap option in bold below and save the file, more information on using nano can be found on google.com

<!–[if gte mso 9]> Normal 0 false false false EN-US ZH-TW X-NONE MicrosoftInternetExplorer4 <![endif]–><!–[if gte mso 9]> <![endif]–>

<?xml version=”1.0″?>
<gconf>
<entry name=”require-mppe” mtime=”1238198504″ type=”string”>
<stringvalue>yes</stringvalue>
</entry>
<entry name=”refuse-eap” mtime=”1238198504″ type=”string”>
<stringvalue>yes</stringvalue>
</entry>

<entry name=”user” mtime=”1238198504″ type=”string”>
<stringvalue>intabill\shayne</stringvalue>
</entry>
<entry name=”gateway” mtime=”1238198504″ type=”string”>
<stringvalue>220.157.75.66</stringvalue>
</entry>
<entry name=”service-type” mtime=”1238198504″ type=”string”>
<stringvalue>org.freedesktop.NetworkManager.pptp</stringvalue>
</entry>
</gconf>

7. restart networking, command: sudo /etc/init.d/networking restart

Reconnect to your Local Area Network / Mobile broadband and you should now be able to connect to your VPN :-)

Popularity: 9% [?]


Tags: , ,

After having further issues with using externhost=yourdomain.dyndns.org in my sip_nat.conf file I decided to use the dynamic IP address and have trixbox update the sip_nat.conf file automatically using a bash script coupled with a cron job.

Your sip clients can still connect with the Dynamic DNS name without any troubles as long as the externip= is the valid public IP.

Please refer to my previous post Trixbox – External sip clients, no audio for additional information on how to setup your external sip clients.

The process is as follows.

1. Create a bash script
2. Update crontab to include an hourly update check against the IP
3. Sit back and relax :-)

Log into your trixbox via SSH, once logged in issue the command: nano /root/update_dyndns.sh

Paste the below contents into your new file, you should only need to change the following two values

localnet=
mask=

#interogates whatismyip.org to determine the outside IP of the
#!/bin/bash
# Interogates whatismyip.org to determine the outside IP of the
# machine and checks it against what it was at the last check.
# Then it creates a sip_nat.conf file, moves it to the proper
# directory and performs a sip reload.

# set some variables
localnet=”192.168.1.0″ #change this number to your local network subnet
mask=”255.255.255.0″ #change this to your subnet mask
nat=”yes” #Set the nat parameter if you like. If set to no
#this line will not be included in the final file

# change to a working directory. Make sure this directory exists
cd /root/

rm -f index.html # Remove the last file

wget whatismyip.org

read newaddy < “index.html”

read oldaddy < “oldindex.html”

if [ $newaddy != $oldaddy ]
then
mv index.html oldindex.html
echo “externip=$newaddy” > sip_nat.conf
echo “localnet=$localnet/$mask” >> sip_nat.conf

if [ $nat == "yes" ]
then
echo “nat=$nat” >> sip_nat.conf
fi

chmod 775 sip_nat.conf
chown asterisk:asterisk sip_nat.conf
cp sip_nat.conf /etc/asterisk/sip_nat.conf
asterisk -rx “sip reload”
fi

#THE LAST THING IN YOUR NEW FILE SHOULD BE fi DO NOT PASTE ANYTHING ELSE BELOW.

The above script was taken and modified from an unknown website, if it’s yours! thanks and let me know so I can link back to you.

Once you have pasted the above contents into the new file, save the file ctrl+x then enter y then press enter.

The first time you run the script it will fail with errors, here is the work around.

1. run the script, command: /root/update_dyndns.sh

This will create an index.html file in the /root/ dir.

2. command: mv /root/index.html /root/oldindex.html
3. command: nano /root/oldindex.html

Edit one of the numbers where you see the IP address, this will force the script to notice the change and update your sip_nat.conf file for the first time!

4. command: /root/update_dyndns.sh

You should see the following output.

[trixbox1.localdomain ~]# /root/update_dyndns.sh

–16:57:50–  http://whatismyip.org/
Resolving whatismyip.org… 75.147.234.41
Connecting to whatismyip.org|75.147.234.41|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/plain]
Saving to: `index.html’

[ <=>                                                                                                                  ] 13          –.-K/s   in 0s

16:57:51 (147 KB/s) – `index.html’ saved [13]
[trixbox1.localdomain ~]#

If you have followed the above steps correctly, looking at your /etc/asterisk/sip_nat.conf file should look like this..

[trixbox1.localdomain ~]# less /etc/asterisk/sip_nat.conf

externip=203.xx.xx.xx
localnet=192.168.1.0/255.255.255.0
nat=yes

Now comes the question? I don’t want to run this script each time I feel like updating the IP address, you want this to happen automatically, this is where the magic of cron jobs come into play *claps*, the basic concept is to run our script at a predefined time.

Using the website below, I created a cron task that runs, every day, every hour of every month of every year, you can use the website link below in order to customize this to suite your own needs.

58 * * * * /root/update_dyndns.sh > /dev/null

information taken from http://www.htmlbasix.com/crontab.shtml

  1. At the prompt, type in ‘crontab -e‘. This will open up your crontab file, or create a new one if it doesn’t exist.
    When this file opens, you will see other cron jobs listed in here, or if you haven’t any – you’ll see a bunch of lines with ‘~’ on them.
  2. Use the cursor to go down until you can’t move the cursor down any more. This is where you start your new line. Press ‘o‘ to insert a new line.
  3. Press ‘o‘ to insert a new line. If you want to edit a line, press ‘i‘.
  4. Copy the code above, then right click into your SSH or telnet client to paste the above code in. This should all go in as a new line.
  5. Press the ‘esc‘ key to exit out of edit mode.
  6. To save the changes and exit, type the following in: ZZ
    If you want to exit without saving changes, type in: :q!

  7. Once you have exited, to view the new entry in your crontab file type crontab -l in at the prompt. This will list the contents of your crontab file.

That’s it! everything is now done :-)

Comments or questions welcome.

Download the Bash Script here!

Or use the following command from your terminal

wget http://blog.simplic8.com/wp-content/uploads/update_dyndns.sh

Popularity: 23% [?]


Tags: , ,

Aptana studio is platform indipendant, meaning it will confortably run using sun java on most platforms.

Without following the instructions below, you would receive an error in the .log file similar to below.

!MESSAGE Unable to find feature.xml in directory: /home/homdir/Aptana-Studio/features/com.aptana.ide.feature.professional_1.2.4.022837_200903111829.jar

Ubuntu 8.10 specific install instructions:

Aptana needs xulrunner 1.8 and sun-java installed to work.

Command: sudo apt-get install xulrunner

Command: sudo apt-get install sun-java-bin

I found launching Aptana from a bash script was the easiest work around.

Command: cd ~/

Command: nano ~/aptana.sh

copy and paste the below into your terminal window.

#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
~/Aptana-Studio/AptanaStudio -os linux /usr/lib/jvm/java-6-sun/jre/bin/java

NOTE: change the path ~/Aptana-Studio/ to the same directory that you extracted Aptana to from the downoaded package.

Launch Aptana

Command: ./aptana.sh

Popularity: 4% [?]


Tags:

Powered by Wordpress
Theme © 2005 - 2009 FrederikM.de
BlueMod is a modification of the blueblog_DE Theme by Oliver Wunder

80 views