Most linux distribution uses the zero configuration network ( ZEROCONF) suite to automatically configure themselves and communicate on a network without the need of DHCP or DNS servers. ZEROCONF is an IETF organ that planned and coordinated a series of dynamic protocols to allow many operating systems to automatically configure themselves.

 

ZEROCONF commonly referred to as IPv4 Link-Local (IPv4LL) and Automatic Private IP Addressing (APIPA) utilises the 169.254.0.0/16 network address to auto-configure a network interface. It uses a series of unanswered “ARP” queries and then assumes an address if the queries yield an empty result. As a result, a route to the ZEROCONF network is added to the routing table by the network initscripts. Example:

The ZEROCONF route

ZEROCONF can be disabled by adding the following entry to the “/etc/sysconfig/network” configuration file.

 

[bash] # vi /etc/sysconfig/network
NOZEROCONF=yes or no (either answer will disable the “ZEROCONF route”)

It is important to note that the value of the “NOZEROCONF” parameter can actually be set to any value. The initscripts can only check to determine whether the parameter has a zero length or not. In other words, setting “NOZEROCONF=no” will have the same effect as setting it to “yes”. In order to reactivate ZEROCONF, the above entry “NOZEROCONF=yes/no” will have to either be commented out or removed entirely.

The network service must be restarted for the changes above to take effect.

[bash] # vi /etc/init.d/network restart

To see if the ZEROCONF route has been disabled, we have to check the routing table again.

The IP routing table

If you ever wonder and want to know more about the the makeup and history of the ZEROCONF, check this very informative zeroconf article written by John C. Welch and this zeroconf article on wikipadia.

Leave A Comment, Written on January 10th, 2012 , Linux, Networking, Recent Posts

A swap file is an ordinary file that is in noway special to the kernel. The purpose of the swap file is to reserve the disk space so that the kernel can quickly swap out a page without having to go through all the things that are necessary when allocating a disk sector to a file.Because a hole in a file means that there are no disk sectors allocated (for that place in the file), it is not good for the kernel to try to use them.

In order to create the swap file without holes, use the following command:

1.) Assuming we want to create a swap file with 2GB size (1024 x 1024 x 2 = 2097152).

[bash]# dd if=/dev/zero of=/swapfile bs=1024 count=2097152

     where if is source, of is output file for dd to write to which is /swapfile in this case, bs is read/write byte size at a time and count is number of blocks.

2.) The next step is to make it a swap file

[bash]# mkswap /swapfile

3.) Activate the swap file

[bash]# swapon /swapfile

4.) Check the newly created swap space usinf free or top

[bash]# free -m

     or 

[bash]# top

5.) Write it to fstab to make it available for the system even after a reboot

[bash]# echo swapfile swap swap defaults 0 0 >> /etc/fstab

 

**) Using cat give you the following output:

[bash]# cat /etc/fstab
/swapfile1 swap swap defaults 0 0
Leave A Comment, Written on December 20th, 2011 , Linux, Linux Installation, Recent Posts

 

I recently had to update Navigon Mobile Navigation App on my iPhone 3GS. On my previous Navigon updates, I always had to re-enter all my favourites manually after update. This time, I had to figure out a way to do this without manually entering them like in previous updates. After a little research, here is what I came up with.

Navigon v1.82 and below 

export: 

1.) Tap on the Navigon icon to start the program.

2.) Tap on “More”

3.) Tap on “Options” and select “Send Favourites”

4.) Scroll down to the very last line and select “Send Favourites”

5.) Tap on “Send” to open up the email program

6.)  Enter the email address you want to use on the receiving device

7.) Tap on send to finally send the email with the favourites as an attachment

import:

7.) Open up the email on the device you want to import the favourites to

8.) Click on the link “Favourites”

9.) A warning will pop-up asking if you want to import the new favourites and lost the old ones (only if the are any old favourites)

10.) Go ahead a click “Yes” to import the new favourites

Navigon v2.0

export:

1.) Tap on the Navigon icon to start the program.

2.) Tap on “My Destinations”

3.) Tap on “Edit” and select “Send Favourites”

4.) Tap on Send to open the email program

5.) Enter the email address you want to use on the receiving device

6.) Tap send to finally send the email with the favourites as an attachment 

import:

7.) Open up the email on the device you want to import the favourites to

8.) Click on the link “Favourites”

9.) A warning will pop-up asking if you want to import the new favourites and lost the old ones (only if the are any old favourites)

10.) Go ahead a click “Yes” to import the new favourites

That it!

Enjoy ;-)

 

Leave A Comment, Written on December 5th, 2011 , iPhone, Navigation, Navigon, Recent Posts

As reported today by iPhoneHacks.com, you can install Siri0us using these simple steps:

1.) Launch Cydia (Please note you need iOS 5 or iOS 5.0.1 for this to work)

2.) Tap on the Manage tab

3.) Tap on Sources

4.) Tap on the Edit button and then on the Add button

5.) Enter the following URL to add the Siri0us source: http://apt.if0rce.com

6.) After the sources has been successfully downloaded, tap on the Return to Cydia button.

7.) While still on sources, either tap on iF0rce.com or tap on the Search tab and search for Siri0us

8.) Select Siri0us from the search results

9.) Tap on the Install button

10.) And then on the Confirm button to successfully install it.

That’s it, you should now be able to use Siri’s Dictation feature on your iPhone 4, iPhone 3GS and iPad by tapping on the small microphone button next to the space bar.

According to iPhoneHacks, Day has the following advice if your iOS device keeps respringing.

DONOT restore! Use iFunBox/iPhone Explorer/SSH to remove /System/Library/PrivateFrameworks/AssistantServices.framework from your device.

Kudos to Eric Day! It is just amazing what the hackers can do.

Update (01.12.2011):

I know this is really creepy but I’ve got bad news for you guys… I’m sorry!

Siri0us: The Jailbreak tweak that brought Siri dictation to non-iPhone 4S devices has been removed from cydia. No one really knows if this tweak will ever make it to cydia again.

According to the latest feed on iPhoneHacks.com, Eric Day (the developer of this tweak) had got the hack to work by relying on Nuance speech recognition system on the device rather than communicating with Apple’s servers and the result is just like using Siri on iPhone 4S.

It looks like Day was making unauthorised use of Nuance’s speech regonition technology and hence has removed Siri0us from Cydia to avoid getting into trouble. Meanwhile his request to Nuance to use the service has gone unanswered. He has tweeted that he will release it again if he finds a another voice recognition service.

Well, let’s hope Eric finds a way to bring this awsome tweak to cydia again. That’s it! Sorry guys ;-)

Leave A Comment, Written on November 28th, 2011 , 3GS, 3GS 3.1.2, 3GS 3.1.3, iPhone, Jailbreake, Recent Posts

iPhone applications uses IPA files for installation. Downloading applications with huge files using installous can sometimes be a pain in the ass. Speaking of such applications, navigation applications like Navigon, TomTom comes to mind. Such applications can easily be downloaded using BitTorrent clients like uTorrent. Once dowaloaded syncing with iTunes in order to install these application may also be difficult or rather impossible sometimes.

 

In such situations, it is pretty easy to just copy the downloaded file to installous and let installous take care of the installation. Follow these steps to copy the huge file to installous:

Requirement:

a.) iFunBox or any other iPhone browser

 

Steps:

1.) Download iFunBox v0.992 BUILD374.323 or the latest version from i-funbox.com

2.) Connect the iPhone to the computer using USB cable

3.) Start the downloaded iFunBox

4.) Navigate to the iPhone directory “Raw File System/User/Documents/Installous/Dowloads”

      (All Installous downloaded files are stored)

5.)  Click on “Copy from PC” and locate the IPA file you want to copy and select it

      (The file will be copied in few seconds – High speed due to USB connection)

6.) Open Installous on the iPhone and click “Downloads”. The copied IPA file should be visible

7.) Just click to install the application

 

That’s it! Enjoy ;-)

6.) 

Leave A Comment, Written on August 31st, 2011 , i-FunBox, iPhone, Jailbreake, Recent Posts

OMOTECH Tips & Tricks is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

OMOTECH Tips & Tricks

this blog offers tutorials based on various it-subjects