Category: Linux

How to use Wiconnect in Ubuntu Linux to set up a WiFi access point that Android devices can connect to (NOT an ad hoc network!)

If you run Ubuntu Linux, and you have a wired ethernet connection to your system, and it also has wireless connectivity, then at some time you might have tried to set it up as a WiFi access point.  And what you probably discovered is that you can create a WiFi access point using Ubuntu’s “Create New Wireless Network” panel, but unfortunately this creates what is termed an “ad hoc” network, and for reasons we don’t fully understand, Android devices and some other types of wireless devices apparently can’t connect to that kind of network.

Ubuntu's method for creating a WiFi access point will NOT allow Android devices to connect
Ubuntu’s method for creating a WiFi access point will NOT allow Android devices to connect

Why this should be so difficult in Ubuntu is hard to fathom because Windows users can easily set up an access point using Connectify.  This provides an actual access point.  It turns out that there’s a similar program for Ubuntu but it’s not well known, because it’s not in the official Ubuntu repository.  The program is called Wiconnect Infrastructure Wireless Connection Manager and it is described as follows:

Wiconnect is an infrastructure wireless connection manager built specifically for ubuntu. This is an Ubuntu’s open source alternative for connectify. It aims to provide network that is compatible with android devices.
current features:
– Compatible to connect with android devices
– Flexibility to change wifi username and password
– ability to check devices that connects to your wifi

future aim :
– ability to create repeater
– a much better gui
– ability to check devices that connects to wifi via device name and not mac address

The program is hosted on Launchpad and is available as a .deb file.  So, go to the download page and download the software to your system.  Then, double click on the file once it’s been downloaded, and Ubuntu Software Center will load and display this:

Wiconnect Install page as displayed in Ubuntu Software Center
Wiconnect Install page as displayed in Ubuntu Software Center

Again, just in case you didn’t quite understand what we wrote above above, you cannot at this time find Wiconnect by searching for it in the Ubuntu Software Center – you have to download the .deb file and then double click on it to cause Ubuntu Software Center to bring up the above page. Once you read the page, if you want to install the software, just click the Install button. Once the software is installed, you need to run it to configure it. We have Classic Menu Indicator installed, and it appears under Other | Wiconnect, but you can also start it by going to the Dash and typing in Wiconnect. The first screen you will see when you invoke the program is this:

Wiconnect Connection tab
Wiconnect Connection tab

Before you go any further, you should check your network connections and make sure that “Enable Wireless” is on (there should be a check mark next to it) but also make sure you are not actually connected to a WiFi network. Unless you have two network adapters, you can’t both be connected to a WiFi network and simultaneously acting as an access point.

Now on the Wiconnect Connection screen, click the About tab to bring up this screen:

Wiconnect About tab
Wiconnect About tab

Click the button that reads “How to use this software” – it should bring up a text file that will help you if you get stuck at any point. Now click the Connection tab to go back the original screen, and then click the Setup/Resetup Wizard button. It will then bring up several screens asking for information:

Wiconnect Root Password window
Wiconnect Root Password window
Wiconnect Root Password confirmation window
Wiconnect Root Password confirmation window

The above two windows are asking for the password you use on your system when installing new software or making system changes. Some of what it has to do requires root privileges, so that’s why it needs the password.

Wiconnect Wifi Settings
Wiconnect Wifi Settings

On the above screen it wants you to enter the name of wireless network as it will be seen on your WiFi devices, also called the SSID. Use something unique, but not too personally identifying, so that if you are in an area where there are multiple WiFi networks you will be able to easily find your access point. As for the password, this might be called either the “password” or “key” on some devices, but you should use a really strong one here if you don’t want to be hacked. If you don’t have a program that you can use to generate a truly random password, then search online for a random password generator. The longer and more random the password is, the better. Remember that if a hacker can see your access point, he can run a program that can try millions of password combinations over time, so don’t make yourself an easy target.

Wiconnect Connection Settings
Wiconnect Connection Settings

On the above screen you need to select your internet source, which in most cases will be your wired ethernet connection on eth0.

Wiconnect Save Root Password query
Wiconnect Save Root Password query

On the screen above, it is asking whether you want to be prompted to enter your password any time you make a change, such as starting or stopping your wireless access point. By saving the root password, it won’t ask for it each time, but as it notes, that is less secure. If you are not the only user of your system, you probably do not want to save the root password, so that no one else can start or stop your access point without your permission. After you have answered that question, you should see this screen:

Wiconnect Setup Completed screen
Wiconnect Setup Completed screen

This completes the setup but doesn’t start your access point. To do that, go back to the original window and select the Connection tab:

Wiconnect Connect Tab, updated with correct ssid name
Wiconnect Connect Tab, updated with correct ssid name

Note that the SSID name should now be showing the name you selected (if not, you might need to restart Wiconnect). Now click the Create Connection button. After several seconds, your access point should be operational. Whenever you want to turn it off, click the “Stop Connection” button. Note that if you answered “No” to the question about saving the root password, then you will be prompted to enter it each time you start or stop the wireless connection.

Note that if your device (that you want to connect to your access point) asks you to specify what type of connection this is, it will be something like “WPA/WPA2 PSK” – the exact terminology may vary but the most important thing is that it is WPA2.

In case you are wondering, the Advanced tab in Wiconnect looks like this:

Wiconnect Advanced Tab
Wiconnect Advanced Tab

The first four buttons give you the ability to change individual settings in the configuration without re-running the entire setup. The fifth lets you see a report of what is connecting to your access point at any given time – with one device connected, it looks like this (the MAC address in the image has been replaced by x characters for security):

Wiconnect "Who is connected to my WiFi?" Window
Wiconnect “Who is connected to my WiFi?” Window

Just as a final note, we used this with Ubuntu 12.04, the most recent LTS (Long Term Support) version of Ubuntu, and it allowed us to create an access point that an Android tablet could connect to. It’s not the most beautiful program out there, but at least for us, it worked, and that’s what’s important. We particularly appreciated the convenience of being able to start or stop the access point just by clicking a button. But just in case anyone can’t seem to make this work, here’s another article that shows a bit different method to achieve nearly the same result:

How to Set Up a Wireless Hotspot (Access Point Mode) That Supports Android in Ubuntu (WebUpd8)

Hopefully one of these two approaches will get your access point working!

Link: Tutorial – How to give your Raspberry Pi a Static IP Address

To log in to your Raspberry Pi remotely, you’ll need the IP of the Raspberry Pi – this is basically like your house address and tells the host computer where to look for it on the network. By default, the Raspberry Pi will be given an IP automatically by the router (called Dynamic IP and denoted by DHCP) when you connect to a network. However, this can change whenever you remove the Pi from the network e.g. turn it off.

Having a static IP isn’t essential, however it will make repeated access to the Raspberry Pi via SSH much simpler, as you’ll always know that the Raspberry Pi has the same address. Imagine how much trouble your postman would have if your house constantly changed location 🙂

Full article here:
Tutorial – How to give your Raspberry Pi a Static IP Address (ModMyPi)

Ubuntu Doesn’t TRIM SSDs By Default: Why Not and How To Enable It Yourself

Ubuntu wants to enable TRIM for SSDs by default in Ubuntu 14.04. In other words, Ubuntu isn’t already using TRIM, so your SSD is slowing down over time. But why isn’t Ubuntu already using TRIM?

This news will likely come as a surprise to many people, who assumed that Ubuntu and other Linux distributions were already using TRIM. TRIM prevents SSDs from slowing down over time and is a necessary part of SSD maintenance.

Full article here:
Ubuntu Doesn’t TRIM SSDs By Default: Why Not and How To Enable It Yourself (How-To Geek)

Links: Raspberry Pi / Linux security series

While this series is intended specifically for Raspberry Pi users, anyone new to Linux that would like to know how to secure their system would likely benefit from reading these articles from “The Unwritten Words”:
Raspberry Pi: Initial Setup (Security – Part I)
Raspberry Pi: iptables (Security – Part II)
Raspberry Pi: fail2ban (Security – Part III)

Link: Linux Routing Subnets Tips and Tricks

Does anyone do any serious disconnected computing? I daresay not. We install and update our Linuxes over the Internet, and install new software, and look up information online. Networking is essential to a Linux system, and has always been integral even as our favorite glossy proprietary operating systems couldn’t network their ways out of paper bags. I like to think of IPC– inter-process communication– as a form of internal networking between processes, though wiser network gurus may disagree.

Networking in Linux is easier than it used to be in the olden days. Why, I haven’t customized a kernel in dog’s years, which was something we had to do a fair bit back in the days of walking uphill both ways in the snow. But it’s not quite pure magic yet and we still need to know a few things. Let’s start with routing between subnets. Dividing even a small network into subnets is a useful management tool for security, and for allocating resources such as file and printer shares and Internet access. You can isolate your subnets from each other, or allow them to talk to each other.

Full article here:
Linux Routing Subnets Tips and Tricks (Linux.com)

Link: How to Bake an Onion Pi (Tor proxy on Raspberry Pi)

Feel like someone is snooping on you? Browse the web anonymously anywhere you go with the Onion Pi Tor proxy. This is a cool weekend project that uses a Raspberry Pi mini computer, USB wi-fi adapter, and Ethernet cable to create a small, low-power, and portable privacy Pi.

Full article here:
How to Bake an Onion Pi (Make)

Link: Alternative way to flash your Raspberry Pi OS

Did you ever want to flash your root partition straight to USB stick/HDD/SDD instead of first dd-ing it onto SD Card and then coping it again onto another media?

I got bored of the double work that is provided by RPi geeks. Yeah, it’s fine if you’re a total beginner (though one might get lost pretty easily) and want to use only the SD Card. But what if you know how to deal with Raspberry Pi already and perform the card setup mechanically, coping the root partition to a USB stick before you run the system? There is an easy way to do it, less time consuming and faster. It involves using loop-mounting partitions from a disk image.

Full article here:
Alternative way to flash your Raspberry Pi OS (The Unwritten Words)

Link: Understanding Pipes and Redirection For the Linux Command Line

Two powerful features of the Linux command line shell are redirection and pipes which allow the output (or even input) of a program to be sent to a file or another program. You may have already used this features without being aware of it. Whenever you have used the “>” sign in a command or “|” then you have used redirection or a pipe, respectively.

Full article here:
Understanding Pipes and Redirection For the Linux Command Line (Make Tech Easier)

The ASUS VivoPC: Could this be a good Home Theater PC?

We don’t know (though we’d happily accept a device for review if anyone at Asus happens to read this), but it is quite possibly the most easily upgradeable PC we have ever come across, as this video shows:

 

YouTube link: ASUS VivoPC Overview

This is the only full review we could find.  The audio track is in Italian, but you can turn on English subtitles from the CC button in the player (that should appear once you start the video):

 

YouTube link: Recensione ASUS VivoPC – Review

From what we’re seeing here, it looks like this is a unit to keep an eye on, since it seems to play video pretty smoothly under both Windows and Linux. Just keep in mind that you may want to add or upgrade the memory if you plan to use this for serious computing, but I don’t think you’ll see too many systems that make that an easier process.

Note that this is the lowest-end unit of the VivoPC series, but there are two higher-end models that come in black cases and have upgraded hardware, naturally at a higher price.

Here’s a link to the article that tipped us off to this device:
Asus VivoPC mini-desktop now available for $320 and up

Link: Repeat a Command Every Few Seconds with watch

Running watch < command > will by default keep repeating that command every two seconds. This is good for seeing the progress of a running process, viewing memory or disk usage, or checking various things from /proc. Here are some quick examples:

Full article here:
Repeat a Command Every Few Seconds with watch (scottlinux.com)

Recent Posts

Recent Comments

Archives

Categories

Meta

GiottoPress by Enrique Chavez