Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, June 15, 2013

If you have a single wired Internet connection – say, in a hotel room – you can create an ad-hoc wireless network with Ubuntu and share the Internet connection among multiple devices. Ubuntu includes an easy, graphical setup tool.
Unfortunately, there are some limitations. Some devices may not support ad-hoc wireless networks and Ubuntu can only create wireless hotspots with weak WEP encryption, not strong WPA encryption.

Setup

To get started, click the gear icon on the panel and select System Settings.
Select the Network control panel in Ubuntu’s System Settings window. You can also set up a wireless hotspot by clicking the network menu and selecting Edit Network Connections, but that setup process is more complicated.
If you want to share an Internet connection wirelessly, you’ll have to connect to it with a wired connection. You can’t share a Wi-Fi network – when you create a Wi-Fi hotspot, you’ll be disconnected from your current wireless network.
To create a hotspot, select the Wireless network option and click the Use as Hotspot button at the bottom of the window.

You’ll be disconnected from your existing network. You can disable the hotspot later by clicking the Stop Hotspot button in this window or by selecting another wireless network from the network menu on Ubuntu’s panel.


After you click Create Hotspot, you’ll see an notification pop up that indicates your laptop’s wireless radio is now being used as an ad-hoc access point. You should be able to connect from other devices using the default network name – “ubuntu” – and the security key displayed in the Network window. However, you can also click the Options button to customize your wireless hotspot.


From the wireless tab, you can set a custom name for your wireless network using the SSID field. You can also modify other wireless settings from here. The Connect Automatically check box should allow you to use the hotspot as your default wireless network – when you start your computer, Ubuntu will create the hotspot instead of connecting to an existing wireless network.

From the Wireless Security tab, you can change your security key and method. Unfortunately, WPA encryption does not appear to be an option here, so you’ll have to stick with the weaker WEP encryption.

The “Shared to other computers” option on the IPv4 Settings tab tells Ubuntu to share your Internet connection with other computers connected to the hotspot.



Even if you don’t have a wireless Internet connection available to share, you can network computers together and communicate between them – for example, to share files.

Saturday, June 8, 2013

Click on image to enlarge
Want to run Android on your PC? The Android-x86 Project has ported Android to the x86 platform from ARM. Android-x86 can be installed on netbooks with supported hardware, but you can also install Android in VirtualBox.
Android can be run as just another virtual machine, like you would run a Windows or Linux virtual machine. This allows you to play with the Android interface and install apps in a full Android environment on your PC.

What You’ll Need

Before you can get started, you’ll need both VirtualBox and an Android-x86 ISO to install inside VirtualBox.

Creating an Android Virtual Machine

You can now open VirtualBox and create a new virtual machine by clicking the New button. Go through the wizard and configure your virtual machine with the following settings:
  • Operating System: Linux – Linux 2.6
  • Memory Size: 512 MB
  • Hard Drive Size: 3 GB or More

Click on image to enlarge
Next, power on your new virtual machine and point VirtualBox at the Android-x86 ISO file you downloaded. The installer will boot up inside your virtual machine.
Select the Installation option and press Enter to continue.
Click on image to enlarge
We’ll need to create a partition for the Android system. Select the Create/Modify partitionsoption and press Enter.
Click on image to enlarge
Select the New option with your arrow keys and press Enter to create a new partition in the free space.
Click on image to enlarge

Choose the Primary option and press Enter, then press Enter again to have the partition take up the entire size of the virtual disk you created.

Click on image to enlarge

Highlight the Bootable option and press Enter to make the partition bootable, then select the Write option and press Enter to write your changes to the virtual disk. You’ll have to type yes and press Enter to confirm writing the changes.

Click on image to enlarge
Activate the Quit option and you’ll go back to the Choose Partition screen.
This time, you’ll see the partition you created at the top of the screen. Select the partition and press Enter to install Android to it.
Click on image to enlarge
Select the ext3 file system, and then select Yes to format the partition.
Click on image to enlarge
Choose Yes to install the GRUB bootloader, and then select Yes to install the /system directory as read-write.
Click on image to enlarge

Once you’re done, you can remove the ISO file and reboot your virtual machine.

Click on image to enlarge

Android should boot up like any other operating system would in your virtual machine. As with an Android smartphone or tablet, you’ll have to go through the setup process and optionally provide Google account details. Skip the Wi-Fi setup screen — Android will use your virtual machine’s standard Internet connection.

Click on image to enlarge

If your mouse cursor doesn’t work, click the Machine menu and select the Disable Mouse Integration option. Click inside the virtual machine and you’ll see the mouse cursor. Press the host key displayed at the bottom-right corner of the virtual machine window (default key: Right Ctrl) to release the mouse cursor from the virtual machine.

Click on image to enlarge
You’ll boot into a live Android environment, complete with Google apps like Gmail, Maps, and the Play Store for installing other apps.
Android is primarily designed for touch input, but it can also be used with a mouse and keyboard — this means that your computer’s mouse and keyboard can function as serviceable input devices. Just don’t try doing anything you need multi-touch for.
Click on image to enlarge
This isn’t the fastest way to run Android apps on your PC — BlueStacks is faster if all you want to do is play Temple Run 2 or another Android game on your Windows PC. However, Android-x86 provides access to a complete Android system in a virtual machine. It’s a great way to get more familiar with a standard Android system or just experiment with it like you would experiment with a virtual machine running any other operating systems.
Go full-screen with an Android virtual machine and you’ll get an idea of what it would be like to use Android on a laptop. If the rumors we’re hearing are correct, we’ll be seeing Android laptops coming out this year — ASUS Transformer devices already function just like Android laptops when in docked mode.