Powered by Blogger.

DO YOU WANT MONEY DAILY


EASY TO EARN DAILY 25$ TO 35$.FOR MORE DETAILS
CALL +919487747807

RSS FEED

Total Pageviews

Blog Archive

Showing posts with label build. Show all posts
Showing posts with label build. Show all posts

Tuesday, 13 March 2012

Apple to build huge campus in Texas

By Stephen Warwick March 9, 2012 2:04 pm EST Comments

According to Reuters, Apple is planning to expand its business by building a $304 million campus in Austin, Texas. The venture will create some 3,600 jobs, doubling the Apple workforce in the city. The jobs will fall under customer support, sales and accounting.

In a statement today Steve Dowling said:

“Our operations in Austin has grown dramatically over the past decade from less than 1,000 in 2004 to more than 3,500 today,”

Apple will recieve $21 million in investment over the next 10 years, and there will also be some contributions from within Austin and Travis County

Apple is also planning to expand operations at home, with a 3.1 million sq ft ‘mothership’ development planned at Cupertino itself.

Via: Reuters

Tags: Apple, Business, Campus, Cupertino, emplyoment, Texas, Tim Cook

Related PostsApple-A51Designed in California, built in… Texas? A5 processor ...Screen Shot 2012-01-30 at 16.09.45Newbie Apple engineers build fakes to earn trustFullscreen capture 03032012 171535Apple creates over half-a-million U.S. jobsLeave a comment

Recent postsAccessory Review: Cygnett Paparazzi flip case for iPhone 4/4S

Mar 9, 2012 : Comments
Accessory Review: Cygnett Paparazzi flip case for iPhone 4/4S

How to: Play YouTube videos in the background [VID]

Mar 9, 2012 : Comments
How to: Play YouTube videos in the background [VID]

Mar 9, 2012 : Comments

New iPad naming is marketing genius

Mar 9, 2012 : Comments
New iPad naming is marketing genius

How to: Create custom ringtones on your iPhone [Jailbreak Basics]

Mar 9, 2012 : Comments
How to: Create custom ringtones on your iPhone [Jailbreak Basics]

16GB WiFi only new iPad most popular [Poll Results]

Mar 9, 2012 : Comments
16GB WiFi only new iPad most popular [Poll Results]

“3rd gen” iPad shipment notifications being received

Mar 9, 2012 : Comments
“3rd gen” iPad shipment notifications being received

New iPad Event Overview [VID]

Mar 9, 2012 : Comments
New iPad Event Overview [VID]

Accessory Review: Sena Sarach Ultraslim for iPhone 4/4S

Mar 8, 2012 : Comments
Accessory Review: Sena Sarach Ultraslim for iPhone 4/4S

Personal hotspot on new iPad? Not for AT&T subscribers

Mar 8, 2012 : Comments
Personal hotspot on new iPad? Not for AT&T subscribers

Stay Updated!RSS FeedSubscribe now!TwitterFollow usFacebookFan usYouTubeOur videosAccessoriesAppsAT&TCases/Skins for iPadCases/Skins for iPhone 4Device ComparisonsGamesiCloudiPadiPhone 101iPhone 4iPhone 4SJailbreakingMusicNews/ArticlesRumorsSpotlight: Offbeat iPhoneTiP VideosTips/TricksVideos: This Week on TiP PhoneDog Media Network   PhoneDog.comT-Mobile tipped to begin offering…HTC Vivid vs. LG Spectrum Dogfight…HTC Vivid vs. LG Spectrum Dogfight…Taylor's Top 5 Android phones…Sprint iPad materializes in Best… TmoNews.comT-Mobile To Introduce Unlimited…Attending SXSW This Weekend? You…Rumor: HTC One X, One S Delayed…T-Mobile MobileLife Album…T-Mobile CMO Says Device Subsidies… DroidDog.comCarriers should offer tablet/phone…Sony Tablet P receives root, now…HTC One X and One S rumored to be…Samsung Galaxy Nexus in white for…Sony Tablet P and XPERIA Play for… VzBuzz.comVerizon announces they are…Verizon implements another new $10…Verizon is getting ready to…HTC ThunderBolt part of an HTC…Verizon confirms stance on locked… CompanyAbout usContact usPrivacy PolicyTerms of UseAdvertisingNewsSubmit NewsDevice ListiPadiPhone 2GiPhone 3GiPhone 3GSiPhone 4iPod Touch

Let's get socialFollow TiP on

© 2012 TiP - All rights reserved

 

Saturday, 31 December 2011

Tutorial: How to build an Android app

How to create an Android app

One of the strengths of the Android platform compared to iOS, for example, is that it has an open source basis, which makes it easier to produce your own applications and distribute them without waiting for a lengthy approval process.

You can set up your own Android app on your PC as long as you have the right software installed, and you can even take it for a test drive using an Android emulator so you can see what it will look like when it's run on a smartphone.

There are two techniques that you can use to produce Android applications with a PC. The first uses the Android Software Development Kit (SDK). This lets you write raw code and helps you get it working in the Android environment. The second uses App Inventor, a Google Labs tool that's still in beta.

This provides you with a simple drag-and-drop environment that you can use to generate new applications made up of building blocks of code and media. It's an attempt to make application development possible for people who aren't hardcore coders, but it's not recommended for production environments.

Assuming that you'd like to try the full coded environment, we'll demonstrate how to produce a simple 'hello world' application. If you'd rather work in a GUI, we'll discuss App Inventor later on. Android apps are written in Java code, so you'll need a Java development kit installed on your PC. You also need an integrated development environment (IDE) so you can write and test the code.

You also need to get your computer ready for the Android SDK. Start by installing a Java Development Kit for your version of Windows.

You also need to install Eclipse IDE for Java developers. When you install Eclipse it will check for the JDK. It's best to unzip Eclipse in the same directory as the JDK. If it can't find the JDK it won't install, but you can always move the required files to whatever directory the Eclipse installer is examining.

With Eclipse up and running, you can download the Android SDK. Extract it to a safe directory on your PC and make a note of where it is.

How to create an android app

Back in Eclipse you need to add the Android Development Tools. To do this, choose 'Help > Install new software'. Next to 'Work with', enter https://dl-ssl.google.com/android/eclipse and click 'Add'. In the pane below this, check 'Development tools' and click 'Next'. Select 'Android DDMS' and 'Android Development Tools'. Click 'Next', accept the terms and restart.

You need to point the ADT plugin to where you extracted the Android SDK. In Eclipse choose 'Window > Preferences > Android'. Next to 'SDK location' click 'Browse' and locate the folder with the SDK. Click 'Apply' and 'OK'

Android platform

How to create an android app

Now that you've sorted out the programming environment, you also need to get at least one version of the Android platform. You can do this in the Android SDK and AVD Manager, which you can launch in Eclipse if you've set your system up correctly.

Choose 'Window > Android SDK and AVD Manager' to open it, then select 'Available packages' and tick the box next to 'https://dl-ssl.google.com/android/repository/repository.xml'.

After a brief scan of the repository, you'll see the available components. Tick those that you want to install and clear the rest. The most important package to install is the latest version of the Android platform. You'll only need older ones if you plan to release your app and need to test it in a range of different versions. At this stage you can also clear the samples, Google APIs and USB driver. If you need any of these later, you can always go back and install them.

Click 'Install selected' and wait for the components to download. Verify and accept the new components if prompted and they will be added to your existing Android SDK folders.

Android virtual devices

How to create an android app

Having downloaded a version of Android, you need to set up an Android Virtual Device (AVD) to run the computer. You can do this in the Android SDK and AVD Manager. Choose 'Window > Android SDK and AVD manager' and select 'Virtual devices'. Click 'New' and provide a name for your new device. Select the Android platform that you want to use as the target. Click 'Create AVD'.

If you want to test your application under different versions of Android, you'll need to create a new virtual device for each version of the platform. You can also specify other parameters here, including the presence and size of an SD card. It's also possible to select a file to use as a virtual SD card.

You can opt to use the built-in skin (recommended) or specify the resolution that you want to use. Under 'Hardware', click 'New' and select a device if you want to add more virtual hardware.

For a simple AVD, you'll generally be fine sticking with the default options. You can now close the Android SDK and AVD Manager.

Create and emulate your Android app

How to create an android app

Assuming you now have all the software in place and you've set up a virtual device in the Android SDK and AVD manager, you can create a new project. In Eclipse IDE choose 'File > New > Project'. In the New Project wizard, select the 'Android' folder and choose 'Android project'. Click 'Next'. You now have a new window for your project details.

To start with, we'll set up a simple 'Hello world' application that just displays some text when launched. In the field marked 'Project name', enter HelloAndroid. For 'Application name' enter Hello, Android. For 'Package name' supply com.example.helloandroid and for 'CreateActivity', enter HelloAndroid. Click 'Finish'. These parameters are used to set up your project in Eclipse.

The project name is also the name for the directory in your workspace that will contain your project files. Eclipse will create it for you. Assuming you accepted the default Windows workspace of C:\Users\[username]\workspace, you'll find the above directory at C:\Users\[username]\workspace\HelloAndroid.

If you browse to this in Windows Explorer, you'll see a number of subfolders and files set up as part of the project.

How to create an android app

The application name is the title of your app, which will be displayed in the Android device. Change this to change the name of the app. You need to be a bit more careful with the package name.

This is the namespace for the package where your source code resides. It needs to follow the rules for naming packages in Java. It also needs to be unique across the Android system, which is why a domain style package is used; 'com.example' is reserved for examples like this.

If you develop an app that's published, you'll need to use your own namespace. This usually relates to the organisation publishing the app.

'Create activity' relates to the class stub generated by the plug-in. An activity is basically an action. It might need to set up a user interface if it needs one. We left other project fields at their default values, but it's useful to know what they do. 'Min SDK version' lets you set the minimum API required by your application.

If 'Use default location' is ticked, your project will be saved in your workspace. You can opt to change this if you want to store the files elsewhere. 'Build target' is the platform target for your application. It's the minimum version of Android that it will run on.

If you develop an app to run on an earlier version of Android, it should run on a later one too, but one developed for a later version of the platform probably won't run on an earlier version. For an example like this, the build target isn't critical as long as you can get your application to run in the emulator. It's more of a concern when you come to release an app.

Finally, the option to create the project from an existing example enables you to select some existing code to modify. You'll find this of more interest as you move on to greater programming challenges.

Modify the code

You should now see your project displayed in the Package Explorer, which is shown in the left-hand pane of Eclipse. Double-click 'HelloAndroid' to expand it. Also expand 'src' and 'com.example.helloandroid'. Double-click 'HelloAndroid.java' to see the code that's already been set up. In the main pane you should see the following text:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}

If you can't see all of this, try looking to the left-hand side of the pane and expanding any plus signs that indicate collapsed code. This defines your application without actually doing anything at this stage. To make it do some work, we need to add an object that will contain your text.

Having done that, we also need to specify the text. Below 'import android. os.Bundle;' add the following line:

import android.widget.TextView;

Also add the following above the two sets of closing curly brackets:

TextView tv = new TextView(this);
tv.setText("My First Android App"); setContentView(tv);

You can replace the text within the quotes to make your app say whatever you like. Check that the code in its entirety reads as the following, assuming you kept the displayed text the same:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("My First Android App");
setContentView(tv);
}
}

Save the changes to your code. You can now try it out in the Android emulator. In Eclipse, choose 'Run > Run > Android application'. The emulator launches. It can take a few minutes to boot into Android, so be patient. Once booted, your app should run automatically and you'll see a grey title bar with the app name in it. Below this, your chosen text is displayed.

Press the 'Home' button in the emulator to return to the Android home screen. Click the 'Applications' button to see the list of available applications. Among these you should see 'Hello, Android'. Select this to launch your app again.

Test your app on an Android device

How to create an android app

Now you've successfully run your app in the emulator, you can try running it on a real device. First you need to ensure that the USB driver is installed in the Android SDK and AVD manager. Choose 'Window > Android SDK and AVD manager > Available packages'. Select the Android repository, ensure that the USB driver is ticked and click 'Install selected'.

Connect your phone to a spare USB port and wait for Windows to detect it. In the New Hardware wizard, choose 'Locate and install drivers' and opt to browse your computer for the driver software. Browse to the 'Android SDK' folder and locate the subfolder for the USB driver. Windows should find and install it from here.

Now you need to declare your app as debuggable. In Eclipse, expand your HelloAndroid application and double-click 'AndroidManifest.xlm'. Move to the 'Application' tab and select 'True' from the Debuggable dropdown list. Save the project.

Go to your Android phone and choose 'Menu' from the home screen, then select 'Applications > Development' and enable USB debugging. Now you can reconnect it to your PC via USB. If you want to check that the SDK can see your phone, browse to the 'Tools' directory in your 'Android SDK' folder. Launch 'adb.exe' and you should be able to see your phone listed as 'Device'.

To launch your application on the connected phone, you need to choose 'Run > Run > Android application in Eclipse'. Now you have both the emulator and your phone connected, you need to specify which you want to run it on. Eclipse presents you with a Device Chooser that lists all the available devices and emulators. Select your phone from this list to install and run the app.

Now you've produced and run a very basic application from raw code in an emulator and on an Android device, you can begin to learn how to develop your own. It helps to have some knowledge of Java programming, but you'll also find a number of stepped tutorials in the Android Developer Resources pages.

These include introductions to the different views available to apps and how to implement them. You'll also find ways to use common resources like location information, and find out how to debug your work.

You can find a full list of sample code on these pages too. This will help you to work through example applications that you can modify to your own ends. These include games such as Snake and Lunar Lander, plus utilities like Note Pad and Wiktionary. You can find even more samples at Apps-for-Android.

How to use App InventorApp Inventor

How to create an android app

For those whose eyes glaze over at the sight of a few lines of code, App Inventor may well be the answer. This Google Labs innovation lets you create applications using your browser and either a connected phone or an Android phone emulator. All your work is stored on the App Inventor servers, so you can come back to it at any point.

App Inventor consists of three main components. The App Inventor Designer lets you select components for your app, including media, buttons, labels and everything else that's related to the way your app looks and feels.

How to create an android app

The App Inventor Blocks Editor is concerned with the processing components of your application. Any decision handling is dealt with here, and it's shown as a kind of puzzle. You drag and drop program pieces like a jigsaw.

The emulator provides a virtual phone so you can try your program out, and it's updated as you make changes in real time.

You can opt to use a real Android phone instead of the emulator, as long as there are Windows drivers to support it that will work with App Inventor.

While it's partially cloud-based, there are still components that need to run locally, with the most important being the most recent version of Java. It's worth running a couple of tests to ensure your browser can execute Java code correctly before downloading the full App Inventor local program. If you have any browser extensions installed that stop code running in the browser, such as No Script for Firefox, it's a good idea to disable or even uninstall these before attempting to run App Inventor.

Once you have App Inventor installed, you need to run it by connecting to the App Inventor site. You can't just launch it from the Start menu. In your chosen browser, head to App Inventor at Google Labs; if you have everything in place, the program will start. You may need to log into your Google Account if you haven't already done so, because this is where your development data will be stored.

Create your first Android app: step-by-step

How to create an android app

To create an Android app in App Inventor, first download the most recent version of your browser and get Java.

Run a couple of tests to ensure that your system is set up to run App Inventor, first by running the Java test. If it works, you'll be presented with a success message. If it fails, reinstall Java. After this, browse to the Check Java for App Inventor page, signing in with a Google account if prompted. The page will tell you if your browser is correctly configured.

How to create an android app

If it is, click the 'Launch' button to check that you can run a simple application in your browser using Java.

Now you know that App Inventor will run in your browser, go to the App Inventor Setup page and click 'Download'. Once downloaded, browse to the file named 'AppInventor_Setup_Installer_v_1_2.exe' and launch it. Follow the installation. Make a note of the installation directory in case you need it later, but don't change it.

The software already supports a number of popular Android phones. These include T-Mobile G1 / ADP1, T-Mobile myTouch 3G / Google Ion / ADP2, Verizon Droid (not Droid X), Google Nexus One and Google Nexus S. If you have a different phone, visit the Windows Drivers page to get its drivers. Alternatively, you can run your app in the emulator.

Next, go to App Inventor at Google Labs and wait for App Inventor to launch. Click 'New' to start a new project, name it 'HelloPurr' as one word and click 'OK'. This project uses two media files: a picture of a cat in PNG format and an MP3 of purring. You can download them from the Building Your First App tutorial webpage or use your own.

How to create an android app

The Designer opens. In the left-hand pane you'll see the palette, which shows each of the components you can use. Click and drag a button onto Screen 1 in the viewer, to the right of the palette. To the right of this is a list of components in use.

How to create an android app

Select Button 1 and click 'None' under 'Image'. Choose 'Add', then browse to your cat picture. This changes the appearance of the button. Click under 'Text' and delete the existing wording.

How to create an android app

You now need to set up the app in the Blocks Editor. This can run your app via its emulator or through your phone. Click 'Open the blocks editor' and wait for the editor to open in a new window. Keep the existing window open. Choose 'Connect to device' and select your phone from the dropdown list. Wait for the editor to connect properly. If all is well, you'll see a picture of a cat on your phone. Alternatively, click 'New emulator'.

How to create an android app

If you're using an emulator, once it's running you need to connect to it in the same way as a phone. Click 'Connect to device' and select the emulator. Once connected, you'll see your cat picture on the emulator's screen. You may need to unlock the emulated phone by dragging the green lock button to the right.

How to create an android app

Return to the Designer window and drag a label from the palette to the viewer in Screen 1 so it appears below the picture. In the label properties on the right, enter the text 'Stroke the cat'. Change the font size to 30 and choose a different colour if you like. We'll now add the purring sound for when the cat is stroked.

How to create an android app

In the Designer window, click 'Palette > Media > Player'. Drag it to Screen 1 in the Viewer. Select 'Components > Player1 > Source and add'. Find the MP3 file of the purring sound, select it and choose 'OK'.

Everything is now in place, but the application needs to know to play the sound only when the cat is touched.

How to create an android app

Return to the Blocks Editor, select the tab 'My blocks' and click 'Button 1'. Drag the element 'when Button1.Click do' into the main editor screen. Now click 'Player1' and drag the element 'call Player1.Start' into the space within the existing element. Now click the cat to play the sound.

Back in the editor, choose 'Package for phone and download to this computer', and that's it.

Once you have the simple Hello Purr program running, you can stretch your wings a little. There's a wide range of tutorials for developing applications at App Inventor. These include a simple painting program, various quiz and arcade style games, and apps that use a phone's GPS chip to help find your way back to your car.

You can use and modify these programs to help you to develop similar ones. If you need to get more information about App Inventor, you can find out more about components, blocks and more in the Reference pages.

]]>

Friday, 23 December 2011

Sony Ericsson releases early Ice Cream Sandwich build

Sony Ericsson releases early Ice Cream Sandwich build

Sony Ericsson has taken the bold and brilliant move of releasing its alpha build of Android 4.0 which can be installed on unlocked Xperia handsets.

The alpha ROM can be installed on unlocked Sony Ericsson Xperia Arc S, Xperia Neo V and the Xperia Ray handsets.

The ROM brings with it most of the features that Ice Cream Sandwich offers, but a few are limited and some are missing altogether. Google Mobile Services like Gmail and Maps aren't included which isn't so bad since Bluetooth, Wi-Fi and the modem are also turned off.

Sand in your sandwiches

Crucially, the SIM card won't be recognised, so you won't actually be able to use your phone as a phone after the install.

So needless to say, this isn't the ROM for your everyday Sony Ericsson phone – as Sony Ericsson puts it, "this software is not intended for ordinary everyday usage – it is for demonstration purposes only".

The other thing to note before you rush off to get the new software is that you won't be able to download and install the final Ice Cream Sandwich software upgrade if you unlock the boot loader in order to install this build.

Okay, enough of what you won't get. Here's what it does include: a new Roboto font (control yourselves), the new Holo theme, an updated UI in the settings, web browser, messaging and for multitasking, as well as music player control from the lock screen and the ability to swipe to dismiss notifications.

YouTube : http://www.youtube.com/watch?v=QoIsNYR7XJ8


Monday, 19 December 2011

Sony Ericsson releases early Ice Cream Sandwich build

Sony Ericsson has taken the bold and brilliant move of releasing its alpha build of Android 4.0 which can be installed on unlocked Xperia handsets.

The alpha ROM can be installed on unlocked Sony Ericsson Xperia Arc S, Xperia Neo V and the Xperia Ray handsets.

The ROM brings with it most of the features that Ice Cream Sandwich offers, but a few are limited and some are missing altogether. Google Mobile Services like Gmail and Maps aren't included which isn't so bad since Bluetooth, Wi-Fi and the modem are also turned off.

Sand in your sandwiches

Crucially, the SIM card won't be recognised, so you won't actually be able to use your phone as a phone after the install.

So needless to say, this isn't the ROM for your everyday Sony Ericsson phone – as Sony Ericsson puts it, "this software is not intended for ordinary everyday usage – it is for demonstration purposes only".

The other thing to note before you rush off to get the new software is that you won't be able to download and install the final Ice Cream Sandwich software upgrade if you unlock the boot loader in order to install this build.

Okay, enough of what you won't get. Here's what it does include: a new Roboto font (control yourselves), the new Holo theme, an updated UI in the settings, web browser, messaging and for multitasking, as well as music player control from the lock screen and the ability to swipe to dismiss notifications.

YouTube : http://www.youtube.com/watch?v=QoIsNYR7XJ8]]>

Monday, 19 September 2011

Tutorial: How to build your own router

How to build your own router | News | TechRadar UK Updated 12 hours ago

Username Password Remember me | Forgotten details?Forgotten details? Close

Email me my password

*Email not recognised

GoGo Please check your inbox for your password reminder email. Thank you.

-->Log in|Join TechRadar and get our free newsletter 15574 products + 260401 members

Home

Premier PartnerSamsungExperian Hitwise winner: Top 10 Website, Jan-Dec 2010 News All newsMobile PhonesTVsTabletsComponentsCamerasComputingLaptopsMore Reviews Browse categoriesMobile phonesComputingTabletsCamerasAVLatest ReviewsHow to buy Blogs New postsAppleHome CinemaPCsSatelliteHardwareMacTechRadarAll Forums Forum homeAdvanced search TR Store Phone dealsMobile phone recycling Magazines Tech magazines All magazines   Like us on FacebookWindows 8iPhone 5Where am I?NewsNews by technologyNetworkingAll feeds Get weekly newsletter Join TechRadar How to build your own router Tutorial: Turn an old computer into a powerful firewall and routerNetworking News By Neil Bothwick December 28th 2010 | Tell us what you think [ 4 comments ]

Tweet how-to-build-your-own-router IPCop works like normal router software - through an internet browser on a PC connected to the network

<>

Linux is built on networking. It's at the core of the operating system, not a bolted on extension. This means that if you want to build an internet appliance, Linux is the obvious choice.

The most popular internet appliance is a router and most homes have one these days, translating your DSL or cable internet connection into Ethernet or wireless to be used by your computer. If you have more than one computer, such a device is even more important because it enables them to use the internet at the same time without getting their packets in a twist.

If you do have a number of computers, it's possible you have at least one that's neglected and gathering dust in a cupboard somewhere because it's no longer considered powerful enough for current needs. You've probably thought about putting it on Ebay, but a combination of apathy and the rapidly diminishing value of older hardware means you never got round to it.

Well, you can give this box a new lease of life as an internet gateway. You may be asking why you would want to do this instead of using a pre-packaged modem/router.

One reason is that you can have far more control over exactly what goes on in the box, what functions it has and who can do what. Another reason for doing it is because it's a fun way of learning about such things, rather than just leaving it all to a magic black (or, more likely, white or silver) box.

There are two ways of approaching this task; the first is to use a distro specifically designed for the job, already set up with the packages you need. The other is to build it entirely yourself, using a minimal Linux installation and adding the software you need to do what you want.

This month, we'll look at the first path, but we'll cover the full DIY approach in the next issue.

Pick a distro

There are quite a few distros intended for use on firewall appliances, and some of them are based on FreeBSD rather than Linux. The distros can be divided into two groups, those that provide a dedicated firewall/router and those that comprise a more complete internet gateway, including things like print, mail, file and even web servers.

For this tutorial, we are concentrating on a pure gateway, a more flexible and powerful alternative to an off-the-shelf modem/router and one that enables the other services to be run more securely behind the firewall.

The distro that we've picked for this example is IPCop. We are using the stable 1.4.21 release, although the more adventurous might consider the 1.9 version.

You will also need a computer, obviously. Just about anything modern enough to be powered by electricity should be acceptable. An i586 or later box can handle the internet requirements of a medium-sized network.

There's no desktop with IPCop – after installation, everything is done remotely via a web browser, so memory requirements on the hardware are minimal. You will need a keyboard and monitor for installation, but these can be removed once the system has rebooted.

The computer will need at least two network interfaces: Ethernet for the local network and whatever your internet connection needs. This could be a PCI DSL modem card, another Ethernet card to connect to a standard cable or DSL modem or even just a USB port if you have no wired connection and are using a 3G dongle.

If you want to set up a demilitarised zone (DMZ) you'll need another Ethernet card, and you'll need a wireless card if you want this box to also act as a Wi-Fi access point. An Ethernet switch or hub plugged into the green Ethernet port will enable multiple computers to be connected to the network.

Installation Boot from the IPCop CD to get into the text-based installer. If you have only used the graphical installers of the likes of OpenSUSE, Mandriva and Ubuntu, this may come as a bit of a shock – use the cursor keys to move around, the Space bar to select options and Enter to proceed.

Heed the warning early on: this installer will wipe your hard drive. You can't dual boot your router with Windows – this is a one-shot machine.

The lack of partitioning or package choices means there's very little for you to do prior to installation. Select Skip at the restore screen. The next step is to pick the Ethernet interface to use for the green network; the other interface(s) will be set up later.

step 1

Letting the installer probe for a suitable interface is generally best, although there are manual configuration options should your network adaptor need special module options passed to it. Because the router will also act as a DHCP server for your network, it must have its address assigned statically. If in doubt what to put here, 192.168.1.1 is a good choice.

You are now given the web address for configuration, so make a note of this. The network configuration type is one of the most important choices during installation; the historical default is to use Ethernet for green and a modem for the red network. If your modem connects via Ethernet, change this to GREEN + RED.

Choose the option that includes ORANGE or BLUE if you also want a DMZ or wireless sector in your network – you can change this later if you would rather keep it simple and just set up the red and green networks to start with.

You then need to tell IPCop what to use for the extra interfaces in the Drivers And Card Assignments section.

Address configuration

The DNS and Gateway section can be left blank if your modem gets this information from your ISP with DHCP, but the DHCP configuration section relates to the addresses that IPCop gives out over the green and blue networks. You specify a range of addresses from which IPCop can choose, but leave some for any computer that may use static addressing.

I generally start the DHCP range at 100 (192.168.1.100 if you used 192.168.1.1 for IPCop itself) and use lower addresses for any static allocations, for no other reason than it makes it immediately obvious whether an address has been given by DHCP.

You must also enable the DHCP server here. The primary DNS server can be left at the address of the IPCop computer, which means IPCop will act as a DNS cache, speeding up lookups when the same domain is referenced by more than one computer – how many computers on your network don't look up www.google.com or www.linuxformat.com?

step 2

Finally, you need to set passwords for three users. The root user is not normally used, unless you want to log in directly on the router, the admin user is the user of the web interface, which you will normally use for configuration, and the backup user. Now you can remove the installation CD and reboot.

Starting up

The computer will reboot to an unhelpful-looking login prompt, but you won't be using this. Open a browser on another computer on the green network and go to https://192.168.1.1:445, replacing the IP address with whatever you set in the installation.

If the computer you're connecting from had its network started after rebooting the router, you can use the hostname set in the installation instead; the default is ipcop (https://ipcop:445). Your browser will probably complain about an untrusted certificate when connecting, which you can tell it to accept.

This is because IPCop is using a self-generated certificate, so your browser can't check its trustworthiness. Since you've just installed it, you know you can trust it.

Step 3

Remember the admin user's password you set up during installation? IPCop enables you to view the home page without it, but selecting anything pops up a password requester.

The first link you should select is System > Updates since the home page will have told you there are updates available. Press the Download button, which doesn't appear to do much, but the description of the updates should appear in the section below, so press Apply Now.

If you see an error that this is not an authorised update, your hardware clock is probably way out. This isn't uncommon on hardware that has not been used for years or had a BIOS reset.

Go to Services > Time server and set the time manually. Then tick the box to use a network time server and press Save. You have to set the time manually first because NTP will not change the time if the jump is too great.

The web interface is where you do everything from now on. If you want, you can now power down the router, disconnect the keyboard and monitor and tuck it away somewhere out of sight and sound before switching back on (but make sure it has enough air to cool itself).

Your new router should now be providing DHCP and DNS services to your local network and giving access to the internet, so it's time to start exploring the options.

Your first stop should be System > Backup, where you can create a DAT file containing all your settings, enabling you to roll back if your changes don't work out as intended. Do this before you start experimenting. You can even use the Export button to transfer this to a USB stick for safe keeping.

STep 4

Explore the features

IPCop provides a number of services that are not enabled by default but are worth investigating and turning on.

These can be found in the Services menu and include a web proxy, to reduce traffic and response times for commonly used pages, a time server, a dynamic DNS feature to update your IP address on services like www.dyndns.org, intrusion detection with Snort and traffic shaping. The last is useful with several machines sharing limited bandwidth, you don't want someone's BitTorrent download of the latest Ubuntu ISO image to slow down your browsing of the Fedora forums.

By setting various port ranges to High for email ports such 25, 110 and 143, Medium for web ports 80 and 443, and Low for FTP (21) and BitTorrent (6881–6999) you can stop file downloads from slowing down browsing by too much while making sure that email always gets through.

We said that you can add a network post-installation, so how do you do this when there doesn't appear to be an option in the web interface? The answer is that this has to be done on the command line, either directly on your IPCop box (assuming it still has a keyboard and monitor) or via an SSH connection from the green network. For the latter, you need to enable SSH access from the System menu, then connect to it with: ssh -p 222 root@ipcop

Then run setup to get a curses GUI similar to the installer from where you can change choices made at that time. Go into Networking > Change Network Type and pick GREEN + ORANGE + RED to add a DMZ, or add a BLUE for a wireless sector. Either way, you must have a suitable network card already installed in the computer.

Step 5

Go to Drivers And Card Assignments to pick the card for the new network, then use Address Settings to pick an address for the new network's interface. This must be on a different subnet, so if you used 192.168.1.1 for green, use 192.168.2.1 for orange.

Once you have done this, turn off SSH for security.

Setting up the DMZ

Now that you have a DMZ, you can begin setting it up. There is no DHCP server on the orange network, so any computer you add here should have a static address, which is a good thing if you're providing access from outside because you need to forward traffic to a specific address.

To set up access to a web server with the address of 192.168.2.2, the first step is to set up port forwarding, just as you would on a standard modem/router, except here we are forwarding to the server on the DMZ.

Go to Firewall > Port Forwarding page. The Source IP Or Network box is normally left blank, to enable access from all external addresses, but you can restrict access to a specific address or range if you wanted your server to only be accessible from one location (although a VPN may be a more suitable approach in this situation).

Set the source and destination ports to 80 (HTTP) and the Destination IP to 192.168.2.2, press Add to see the rule appear in the list below. Now hit Reset and repeat the process for port 443 (HTTPS).

Now you have a web server that is accessible from the internet and from your LAN (the green network), but it cannot access your green network. This means that if the server, or perhaps some PHP code it is running, is exploited, it can only harm itself, not the rest of your computers.

Poking holes

There may be times when your web server needs to communicate with a machine on the green network, for example sending a backup of its MySQL tables.

STep 6

IPCop has a feature called a DMZ pinhole that provides restricted access from one computer in the orange network to one port on one computer in the green network. This is set up in Firewall > DMZ Pinholes but use this option only when you have to, because it partially compromises the security provided by the DMZ.

There is lots more you can do with IPCop, but we've given you enough to get started. Browse around the web interface and read the associated documents on the IPCop website for more information.

------------------------------------------------------------------------------------------------------

First published in Linux Format Issue 139

Liked this? Then check out 7 of the best Linux firewalls

Sign up for TechRadar's free Weird Week in Tech newsletter
Get the oddest tech stories of the week, plus the most popular news and reviews delivered straight to your inbox. Sign up at http://www.techradar.com/register

Follow TechRadar on Twitter * Find us on Facebook

Tags: tutorial, Linux, routers, IPCopTweetreddit!Stumbleupon  Your comments (4) Click to add a new commentantalves


January 20th

4. Is it ready the second part of your tutorial?

Thanks

Alert a moderator

elfsternberg


December 29th 2010

3. "Just about any [computer] modern enough to be powered by electricity should be acceptable."

An amendment, if I may. One thing that you should pay special attention to is the quality of the network cards you're using. I have a home-based router of exactly this kind, running a ten-year-old copy of Trustix on an archaic P5; the cards are 10-base-Ts, which was fine in 2001, but in 2010 they're the limiting factor on the inbound network. Make sure your router, hubs, and everything else are capable of handling the maximum speeds coming out your provider's pipe.

Alert a moderator

tentimes


December 28th 2010

2. lmao! I've just spent the whole weekend (I'm sad) researching this, and I load up my favourite tech site today and here is your article! hahaha :) What a happy coincidence ;) Going to read it now and see if you came to the same conclusion as me ;)

Alert a moderator

bnr1066


December 28th 2010

1. I think the presentation of ADSL or DSL is more important than the brief mention of two lines...

The most common internet connection in the UK uses PPP and is handled by the router so not addressing that aspect of an internet gateway is a bit of a hole in the overall application, no?

Alert a moderator

Tell us what you thinkYou need to Log in or register to post comments

By submitting this form you agree to our Terms of Use and so are legally responsible for anything you submit. DO NOT submit anything which may violate the Terms of Use or another person's rights including copyrighted or offensive materials.

SubmitSubmit Explore News LANWi-fiRouters & storage Related News Top 50 best Linux apps 2011Ignore the speculation, Linux is far from deadGoogle: Chromebooks will succeed where Linux netbooks failed10 best Linux distros for 2011Is Linux on the desktop dead?Best Linux music player: 5 reviewed and rated Related Reviews OpenSUSE Linux 11.1Nero Linux 3 Get the best deals on subscriptions Get the best deals on subscriptions

And find out more about Linux Format Magazine

7 of the best Linux firewalls 7 of the best Linux firewalls

Distributions designed to secure your network

Best Linux apps for managing your media Best Linux apps for managing your media

Organise and edit your music, movies and photos

10 essential Linux security tips 10 essential Linux security tips

Lock down your machine today with our 10-step checklist

25 internet security tips 25 internet security tips

Security advice to help you stay safe online

NEWESTMOST READMOST COMMENTED TECH NEWS HEADLINESWeek in camera news6 of the best mid-price monitors for your MacThis week's hottest reviews on TechRadarThree UK takes legal action over NFC consortiumStar Wars Blu-rays first to offer THX Media Director techAndroid to overtake iPhone app downloads for first timeReports: Nintendo can't get Wii U to workMore TECH NEWS HEADLINESHands on: Samsung Galaxy Note reviewTop 160 best Android apps 20116 of the best mid-price monitors for your Mac10 best Linux distros for 201120 best mobile phones in the world todayTop new camera rumours for 2011Android to overtake iPhone app downloads for first time TECH NEWS HEADLINESiPhone 5 rumours: what you need to know (114)Windows 8: everything you need to know (30)Ice Cream Sandwich: everything you need to know (13)Apples strikes new blow to Samsung in German court kerfuffle (12)Are glasses killing 3D TV? (9)Samsung Galaxy Note UK pre-orders begin (7)Why Sony's Personal 3D viewer is game-changing (6)

Find a review

Get more from TechRadar iPhone 5 rumours: what you need to knowHands on: Samsung Galaxy Note reviewiPad 3 rumours: what you need to knowSamsung Galaxy SHP TouchPadHTC Sensation20 best mobile phones in the world todaySamsung Galaxy AceHTC Wildfire SSony Ericsson Xperia ArcAmazon Kindle 3HTC Desire HDSony Ericsson Xperia PlayHTC WildfireiPhone 4HTC Desire SiPad 2 TechRadar Poll

Which new product shown at IFA 2011 is the most exciting?

Sony Tablet PSony Tablet SSamsung Galaxy NoteIdeaPad U300 SToshiba AT200Xperia Arc SSony VAIO SPhilips 46PFL9706HSamsung Series 7HTC RadarHTC TitanGalaxy Tab 7.7

VoteVote Results Where am I?Technology NewsTech newsApple newsMobile phone newsTablet newsTV newsCamera newsPC component newsPC newsLaptop newsInternet newsGadget newsGaming newsHome cinema newsHi-fi newsTechnology ReviewsDigital camera reviewsCamcorder reviewsMobile phone reviewsMP3 and iPod reviewsNetworking reviewsPC reviewsPC component reviewsLaptop reviewsTablet reviewsTV reviewsBlu-ray reviewsHi-fi reviewsTechRadar UKAbout usContact usSitemapReport this pageAccessibilityMedia enquiriesTerms and conditionsPrivacy policyAdvertising enquiriesJobsMore from TechRadarRegister & email newsletterFacebookTwitterYouTubeRSS feedsForumsPhone dealsSell your old mobileTechRadar Network3D RadarTap! magazineMacFormat magazinePC Format magazinePC Plus magazineLinux Format magazineFuture Publishing Logo

Copyright 2006 - 2011 Future Publishing Limited,
30 Monmouth Street, Bath, BA1 2BW, United Kingdom
England and Wales company registration number 2008885

Digital FutureBikeRadarT3MusicRadarGamesRadarPhotoRadar

Labels

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger