Thursday, November 25, 2010

Long Time, No Post Again

Hi Folks,

I know i don't post for very long time cause i'm quite busy these days. Anyway i'm planning to build a central storage and entertainment box for my home environment and upgrade home networking to Gigabits. However i need to purchase the equipments first then we have plenty stories about how to merge them together how to install and configure applications.

Also there will be some other geek stuff is about my new HTC Desire and its OS Android.

So please stay tuned.

Cheers

Typhoon

Friday, September 3, 2010

Windows Bridge vs Linux Bridge

Alright Folks,


Here is another reminder why we should stick with *nix based operational systems.


You may need to use your host's interfaces as Bridge connections in some special situation like i do. I had to bridge a USB network interface and an Ethernet interface in my Windows 7 OS. Well, you may this is a piece of cake operation for Windows. You just select network connection icons and left click, Bridge Connections and you're done. Frankly, yeah it worked that once but after a while it stop working as Bridge for uncertain reason. I dig some netsh commands to fix it, i had failed, succeed. But he real thing is here, there is something fishy about Windows 7 TCP stack when you compare with XP's So i decide to try with more reliable and less complicated XP. Results may vary both fail and success but no logical explanation of why failed or succeeded. 


That reminds me how easy to create bridge connections in *nix operational systems. I wish i had that privilege to use one however the USB interface doesn't have Linux drivers or source codes in any format so i had to go with Windows. What if i could use a Linux system how can i set that bridge connection, here is the answer;


Let say we create the USB interface and named it as eth1 and our native ethernet interface named aas eth0. First you need to make  them up, to do that, 



ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
Then you need to put them in same bridge connection with brctl
Create a bridge-group interface:
brctl addbr br0
Add each interface to the bridge-group br0
brctl addif br0 eth0
brctl addif br0 eth1
You can assign an IP address to this Bridge connection if you like,
Assigned an ip address to the bridge-group br0 for management
ifconfig br0 192.168.1.2 netmask 255.255.255.0

And also maybe a default route so you can manage from another network
route add default gw 192.168.1.1

That's it ;)

Hey, btw that reminds me how poor *nux OS driver support of USB manufacturers in wireless products.

I hope you find it useful.

Cheers

Typhoon Master 

Monday, June 21, 2010

How to Install DLNA Server on Ubuntu 10.4


How to Install DLNA Server on Ubuntu 10.4

Be sure you got root access to your Ubuntu 10.4 system. Then go to http://www.twonky.com for download TwonkyServer. Twonky one of the greatest DLNA server in the air right now.

You should download the version twonkymedia-i386-glibc-2.2.5-6.0.sh . This version is easy to setup when you compare with the source ball.

make sh file executable so you can install with,

chmod 777 twonkymedia-i386-glibc-2.2.5-6.0.sh

then,

./twonkymedia-i386-glibc-2.2.5-6.0.sh

If you see any warnings about installed contect  just say okay, you should see Insallation finished message in the shell if everything went well. It could complain about "couldn't find chkconfig" if it is just ignore it.

Now it's time to configure our new Twonky server. To do that browse http://yourserverip:9000/config with your favorite browser. 

Let's click on First steps linl under Basic Setup,

Give a Server name like: "Ubuntu DLNA Server"

You can set a username and password if you like of course.

Then save the changes by hitting the Save Changes button.

Second step is the setting Sharing points where the put you media stuff in it. To set it up click Sharing link and select you directory by browsing it.

Now you DLNA server is working as it should so you can forward to connected it via DLNA client which in my case this client would be Nokia E72. Nokia 72 has its own build-in DLNA client which can act as a controller and a player. You can push shared content to another DLNA device by using it also you can play/display the content that shared in DLNA home network. To do that go to menu-applications-Home media and select Browse servers.

You must notice that you need to be in same subnet with your Twonky Server to find it. When it finds your server you should see its name in your cell phone. Now you can browse and show/play your contect on your cell phone or another external DLNA device.

That's it for now...

I hope you find it usefull

Cheers

Typhoon Master

Saturday, April 10, 2010

How to install ruTorrent with existing rtorrent on Ubuntu

Hi Folks,


rtorrent is a quite powerful text based torrent client for *nux. GUI is not necessary when you use rtorrent cause its text based user interface so user friendly. However some guys make a GUI interface for rtorrent which uses apache webserver and php called rutorrent. We can say rutorrent is like rtorrent+utorrent with this web GUI.


There is a lot of tutorial about how to install rutorrent on Ubuntu but almost every of them install rtorrent form scratch, it don't work me cause my rtorrent's config and performance is ok and i don't want to mess with it.


rutorrent basically fetch data from rtorrent's text based interface and turn into a web GUI which seems much friendly for many users (actually i doesn't care about how it looks as long as it works properly). So it doesn't have to be installed from scracth, i can make it fetch that data from rtorrent with necessary file installation and configurations.


First of all,


You need to install apache2 and its module scgi,


apt-get install apache2
apt-get install libapache2-mod-scgi


They will be downloaded and automatically installed after that you need to enable necessary modules for ssl, scgi...


a2enmod ssl
a2enmod auth_digest
a2enmod scgi



Apache conf file needs to be aware of scgi support


vi /etc/apache2/apache2.conf


Add the following line at the end of the conf file


SCGIMount /RPC2 127.0.0.1:5000
servername localhost



Reload apache server to enable new settings


/etc/init.d/apache2 reload


Apache installation is ok now if would like to add ssl security and password protection, i strongly recommend that however this guide doesn't cover them.


rutorrent uses php os you need to install php also with,


apt-get install php5


It will be downloaded and automatically installed.


Now we're ready for installation of rutorrent, you need svn for install rutorrent automatically. 


apt-get install subversion


It will be downloaded and automatically installed.


Let get the lastest installation files from rutorrent website,


cd /var/www
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/rutorrent



And it's all plug-ins


cd rutorrent/plugins

sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/erasedata
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/create
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/trafic
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/edit
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/retrackers
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/cookies
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/search
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/scheduler
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/autotools
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/datadir
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/tracklabels
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/geoip
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/ratio
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/seedingtime
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/diskspace
sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/data



Many of this working with the lastest rtorrent version so they might be not working but generally it doesn't effect the way rutorrent work.


Now lets change ownership of the rutorrent files to the web server user, and change the permissions on them


cd /var/www
sudo chown -R www-data:www-data rutorrent
sudo chmod -R 777 rutorrent



That's it now you can access your rutorrent GUI


http://ip or servername/rutorrent


Ok, here is some update about php interpreter problem. According to rutorrent code page, 
rutorrent needs php-cli package installed in system. So to do that


"apt-get install php5-cli"


Then refresh your rutorrent GUI and in logger window you will see less erros and many features
 start to work.


I hope you find it useful


Cheers


Typhoon Master







Friday, March 26, 2010

How to Transfer Data using Bittorrent in LAN

How to Transfer Data using Bittorrent in LAN

Aim of using Bittorrent for data transferring in LAN is manage to get max throughput value that Ethernet interface  can reach or a better value than FTP does.

FTP is not that good transfer protocol if you consider real fast transfer rates in LAN because of nature of File Transfer Protocol. There is a lot of header junk. To avoid this header waste, i decide to go with Bittorrent protocol.

To make this happen,

1) You need a local bittorrent tracker (actually you don't need a tracker in local network if you use DHT, but this tutorial doesn't cover that). It's going to uTorrent in this case.uTorrent is going to be installed in a Windows machine and this PC is going to be the main seeder.
2) You need another computer that connected to same switch with the tracker that i mention above. I use Ubuntu server with rtorrent client.

First we need to configure uTorrent so it can act as a bittorrent tracker

Go to Options>Preferences>Connection and get listening port value, in this case it would be 50012. You will need this value when you creating local tracker address.

Then go to Options>Preferences>Advanced and change bt.enable_tracker true

Apply and Ok

Now you need to create a new torrent file

As you see we select that we want to share (file or directory) and write down your local tracker address. It would be like,
http://:50012/announce

Then click Start seeding and finally create and save as. If you share a large file it takes time to create a new torrent file.

Now our new torrent file is ready and you can put it to other bittorrent client

In rtorrent client (or whatever you're using, it really doesn't matter) you need to point your new torrent file. If everything is ok then your download should be started with high transfer rates like almost 80-90 Mbps. This transfer rate depends many factors (switch quality, disk defrag, dşsk rw speeds, cpu loads etc.) Bottlenecks might be happened in your disk speeds.




I hope you find it useful

Cheers

Typhoon Master

Wednesday, March 24, 2010

How to configure Nokia E72 SIP Client for Asterisk SIP Server

How to configure Asterisk and Nokia E72 SIP Client

Folks i have a special how to document tonight.

This tutorial covers very basic Asterisk user provisioning and Nokia E72 SIP client configuration.

First of all i assume that you have got installed and provisioning ready Asterisk server in any platform. My Asterisk server is on my Ubuntu server and i guess it's 1.4 or something, it doesn't matter actually as soon as i explain the very basic user provisioning.

Asterisk User Provisioning

1) Edit /etc/asterisk/sip.conf and add following lines


[typhoon]
type=friend
username=typhoon
secret=1234
host=dynamic
context=test

[e72]
type=friend
username=e72
secret=1234
host=dynamic
context=test

Therefore you have created 2 new users (one for your Soft Client in your PC, i use X-Lite and one Nokia E72 SIP Client)

2) Edit /etc/asterisk/extension.conf and add following lines


[test]

exten => typhoon,1,Dial(SIP/typhoon)

exten => e72,1,Dial(SIP/e72)

You've created extensions, both clients are soft clients so phone numbers can be alphabetic.

Access Asterisk console to reload SIP settings so they can be activated

# asterisk -r

ASTERISKPC*CLI> reload


Asterisk basic provisioning is done. This two users can make call each other.

Nokia E72 SIP Client Configuration

Nokia E72 has build-in native SIP client by default however its configuration tool must be installed to configure and make it work. So you need to install following application which released by Nokia. You need to download and install SIP VoIP 3.x Setting. (3.x for E72)

http://www.forum.nokia.com/info/sw.nokia.com/id/d476061e-90ca-42e9-b3ea-1a852f3808ec/SIP_VoIP_Settings.html

After installing the sis file you need to go to Menu>Ctrl. Panel>Net settings> Advanced VoIP settings

We will create an new service so we can make call though sip client

1) Select Create new SIP profile
2) Username: e72@192.168.1.2 (you need to put your Asterisk server IP here)
3) Password: 1234 (we set it like that remember)
4) We don't have presence server so say No to presence setting service
5) Now our new service has been created, let's activate it.
6) It will complaint "No connection defined. Search for WLAN networks?" say OK.
7) You need to select your WLAN connection. No worries, i will explain how to use 3G instead.
8) Now your SIP client registered to Asterisk server and ready for making calls. You can indicate this with WLAN and phone handset icon in the main screen.

Make call between you PC soft client and E72. It should be successful.

There is weird place to shutdown this service where is WLAN connection on main screen, click on it, menu shows "Disable 192.168.1.2"

Let's lean on how to make call using 3G connection.

To do that, Menu>Ctrl. Panel>Net settings> Advanced VoIP settings>Service connectivity> Network destinations>192.168.1.2 (or your asterisk IP address) and add you 3G connection there as Priority 1, you can also remove current WLAN connection.

I hope you find this useful

Typhoon Master










Sunday, March 14, 2010

How to fix broken Samsung U600 touch keys

How to fix broken Samsung U600 Touch Keys

Hi Folks,

As i promised, i will explain how to diagnose a broken Samsung U600 then how to replace necessary parts.

First of all you need to diagnose what's wrong with your phone, in my situation, my phone's touch key pads weren't working properly. It's lights were lid however there was no functionality at all. So i decided to fix it myself. I googled couple of websites and read same complaints about this problem. All inputs pointed that i need to change touch keypad.

To do that i had to disassemble my phone, and i need to do that with care. So i searched in youtube and found this http://www.youtube.com/watch?v=gpuJtkR7cYU . This is not that pro work but it gave me necessary knowledge to disassemble.

After disassemble my phone i look for spare part and i found front lid in Ebay. Front lid has touch pad keys so it would probably solve my problem when i replace with spare one.

Soldering could be a pain in the ass if you are not familiar with the equipments but i manage to solder my new lid to main board, after put everything back, i crossed my finger and yes it is working as should be.

Hey hey wait a second it's so easy, there should be a flaw and after 3 days, my touch keys failed again but this time there is another issue that when lid half open it work ok. It makes me think that maybe all the problem with the flex cable which is a data cable between LCD screen and main board.

I noticed that cable worn a little bit, you know opening and closing lid make this cable move, so i decided to order a flex cable after another solder work and place all the the part together and finally my phone back to normal. It works properly for a week.

If your Samsung U600's touch keys (the keys on the front lid) stop working, you should check first your flex cable and if you see a obvious worn, replace it. If it doesn't solve your issue, then change front lid (or touch key pads, but believe it's so tricky and you probably fail)

I hope you find it useful

Cheers

Typhoon Master



Monday, February 15, 2010

Windows 7 59Hz Problem&Fix

Alright, you might be suffer from stupid 59Hz screen resolution stuck in Windows 7. I'm not sure if Microsoft publish a workaround or fix for this but there is a solution if you use Nvidia Control Center.

Usually 60Hz screen resolution is the default value for many CRT/LCD monitors. In Windows 7 it is 59Hz because of a calculation difference. It is ok if you don't care seeing 59Hz instead of 60Hz. However if you're a gamer this might be a nightmare cause many games doesn't activate VSync below 60Hz. So what you gonna do?

First you need to change your resolution value 1024*768 or below (this is a temp value, not the fix itself, no worries)

Then you need to delete 1920-1200 default settings in Nvidia Control Center, after that create your own with the same values but this time set 60Hz for Refresh rate. Set it as your default screen resolution. That should be fix your problem. However i have to admit sometimes it doesn't fit well and 59Hz value stays. Try the procedure couple of time and it should be ok one of them (i cannot give an exact number, and i know this is silly)

I hope find it usefull

Cheers

Typhoon Master


OCZ Reaper 1066 2*2+1*2GB Config on Asus P5Q Pro

This is something different, i usually doesn't give tips about the problem that i couldn't solve however this time there is only one workaround which satisfies my needs (oh yeah i can be satisfied sometimes :))

It was one month ago i decided to upgrade Windows 7 (actually i tried to install a full virtual environment), and i bought 2*2GB OCZ DDR2 1066 RAMs as an addition to my 1*2GB OCZ DDr2 1066 RAMs. However i didn't calculate there is some bus values different and this kind of 2 dual kits configuration does not work well (according to OCZ tech guys). My 6GB giant cannot work on 1066MHz of speed however MHz is quite stable.

By the way MemTest gives couple of errors when i run basic test however i couldn't see any side effect until now (if i have problem you probably hear about it). My mobo is Asus P5Q Pro and it has the lastest 2102 firmware.

OCZ technical support gave me some values for optimum performance however it didn't work for me in 1066Mhz, maybe it is compatible with your configuration.

6-6-6-20 (CAS,tRCD,tRP,tRAS) Command rate of 2t 2.1-2.2 Volts

I hope you find it usefull

Cheers

Typhoon Master

Thursday, February 11, 2010

Long Time, No Posts

I realize it's been a long time since i wrote in here cause i've been so busy with my new job. I'm doing something different now i'm quite happy with.

I know i've never open myself in public especially in the net, all my posts are about technology, problems, fixes and so. I' ll follow technology as my passion and i will share with you what i find out, but it will be a little bit different. Cause i don't have enough equipments, gear and stuff. All i have my passion, enthusiasm, Mayhem and good old friend Sinatra right now.

Mayhem has new abilities, heart and brain. I could say, i broke some old habits of my own these days.

I have couple of solutions in my head about Windows 7 (yeah i know that's so lame to give solutions about Windows), and brand new thing about fixing my cell phone (i've never fixed such a tiny device before, i couldn't save it anyway :))

I also have couple words about our old Asterisk.

Please stay tuned.

I'll keep you posted

Cheers

Typhoon Master