Home Blog Page 1487

Distribution Release: Kali Linux 1.0.7

Mati Aharoni has announced the release of Kali Linux 1.0.7, the latest update of the specialist distribution designed for penetration testing and forensic analysis: “Kali linux 1.0.7 has just been released, complete with a whole bunch of tool updates, a new kernel, and some cool new features. Check….

Read more at DistroWatch

GNOME Mutter 3.13.2 Brings HiDPI Support On Wayland

GNOME 3.10 brought initial work on HiDPI support — displays with very high pixel densities — and that support improved greatly with GNOME 3.12. Most of that work up to now has been about supporting HiDPI displays under the X.Org Server, but now for GNOME 3.14 there’s basic HiDPI support for Mutter on Wayland…

Read more at Phoronix

How to Manage Printers in Linux

Linux often gets a bad rap when it comes to certain peripherals. Printers are no exception. As someone who worked as a remote engineer for a large managed service provider, I can happily confirm that printing, as a whole, is a horrible system. In the Windows environment, printing breaks often – and although Windows might enjoy a larger, more mainstream, selection of drivers, it doesn’t have nearly the level of administration tools as does Linux.

Nearly all Linux desktops depend upon a very user-friendly printer configure/management tool called system-config-printer. Though there may be minor differences in the GUI (from distribution to distribution), the use of the tool is the same – and it’s incredibly easy. Even without the GUI tool, managing printers in Linux is quite simple, thanks to a web front-end for the Common Unix Printing System (CUPS). With this web-based management tool, you can even configure your printers remotely.

In this piece, I will introduce you to setting up a printer using the system-config-printer tool. Once you see how easy it is, you’ll worry less about using Linux as a desktop or even using Linux to share printers out.

Installation

Nearly every distribution includes the tools to manage your printers – so the chances of having to actually install something are slim. How you find that tool will depend upon your desktop. For instance, in Linux Deepin, You have to open the dash-like menu and locate the System section. Within that section, you will find Printers (Figure 1).

printers 1

In Ubuntu, all you need to do is open the Dash and type printer. When the printer tool appears, click it to open system-config-printer. If you’ve already connected your printer to your desktop, and it is not listed in system-config-printer, be surprised. Linux has some a very long way and printer support has matured such that it has caught up with the competition.

If, however, your printer is not listed, here’s how you add it.

Adding local printers

From the system-config-printer window, click on the Add button. From the resulting window (Figure 2), you can either select a listed printer to add, or if your printer isn’t listed (which is unlikely), you’ll need to locate drivers. The single best place to find a printer driver (aside from the printer manufacturer) is the Linux Foundation’s OpenPrinting work group. The driver database with OpenPrinting is significant. You’ll first want to look at the printer listings, find your printer, and see what driver OpenPrinting suggests.

printers 2

Once you’ve added the driver, fire up system-config-printer again and click the Add button. Now your printer should be listed. Select the printer under the Devices listing and click Forward. As soon as you click Forward, system-config-printer will search for the proper driver and then present the Printer Description window (Figure 3).

Giving your printer a description.

All of the information in the description window should be human readable – in other words, make it something you understand (such as Laser Printer for short name, the model number for the description, and the location of the printer for location).

After you complete the description, click Apply and then, should you want to, click Print Test Page (when prompted).

Now that the printer is added, you can share that printer out so other systems have access. To do this, right-click the printer (within system-config-printer) and make sure both Enabled and Shared are checked (Figure 4). If they are not checked, click them to enable.

printers 4

Adding network printers

Believe it or not, adding a network printer is nearly as simple as is adding a local printer. Naturally, the hosting system will dictate how the printer is added to the Linux system. I will assume the printer to be added is on another Linux system and on the LAN.

The first step is to open up the system-config-printer tool. Click on Add and then click Network Printer to expand. You have two options here. If the remote printer is already shared out, it very well might be listed under network printer, attached to the remote hostname (Figure 5).

Figure 5:Adding a remote printer attached to another Linux box.

If the remote host is listed, click on it and then select the printer to be added. Click Forward and then fill out the description of the printer and click Apply. The printer should now be added and working.

If the host isn’t listed, you’ll want to click Find Network Printer and then enter the IP address of the host, and click Find (Figure 6).

Adding a network printer by IP address of host.

The device Uniform Resource Indicator (URI) should be automatically filled out, so all you have to do is click Forward and then give the printer a description. Once you’ve filled out a description, click Apply and your remote printer should be ready to use.

Linux and printing has come a very long way from the early days. Not only are the tools far more mature (and user-friendly), the support for hardware has become almost a no-brainer. If you are having trouble getting a printer to work in Linux, the most likely issue is an incorrect driver – otherwise, printing with Linux is smooth and simple.

Is ‘Open’ the ‘Organic’ of the IT Industry?

‘Natural’ in the United States is a vague term completely devoid of meaning. You don’t have to buy different seed, stop using pesticides, or frankly, do anything different.

‘Organic’ is different. It actually stands for something. Use of the term is regulated by the FDA. But it wasn’t always that way. It started first with farmers who decided that there was something that mattered more than the rat race of ever more pesticides. How did they enforce the use of the term? They began to craft guidelines that became rules, then certification organizations sprung up, and finally the FDA stepped in.

Read more at Datamation.

Intel Partners With ARM Chip Maker Rockchip on Tablet Products

The two companies will work together to produce a quad-core SoC for entry-level tablets that includes 3G wireless technology.

Read more at eWeek

IBM’s Power Play Aims to Disrupt Server Industry

IBM is inviting collaborators and competitors alike to innovate on its POWER8 processor and server platform, providing a catalyst for new innovation.

Read more at eWeek

Radxa: The $100 Quad-Core ARM Raspberry Pi Alternative

radxaMany will think of the Raspberry Pi or BeagleBone Black when considering a DIY project running Linux. But if you want to do some CPU-heavy work in your DIY project, like running some opencv code to give your project some vision, the Radxa Rock might be the right choice. Even if you’re not looking at a DIY project, this machine makes for a nice little Linux server. 

The Radxa offers 80 pins to interface with other electronics and offers a much faster quad core CPU, up to 2 Gigabytes (GB) of RAM, 8 GB of on-board flash storage and bluetooth for $100. The Radxa also has on-board wifi with an antenna to provide a good wireless link, and comes with a clear, friction fit case. 

The Radxa is built around the Rockchip RK3188 Quad core SoC, which it runs at 1.6Ghz. There are two configurations depending on how much RAM, on-board flash storage, and Bluetooth you want. The less expensive Radxa Rock Lite model goes for $80 and has 1GB of RAM, 4GB of flash, and no Bluetooth. Both boards include the quad core CPU, 100-Megabit ethernet, wifi-n, an infrared receiver, HDMI, SPDIF, and headphone output jacks and two blocks of two rows of headers to help connect your DIY project.

The Radxa Lite might give the most bang for your buck. The BeagleBone Black revision C has a single core ARM with 1GB of RAM and 4GB of flash and is offered at $55. The extra $25 for the cheaper Radxa gets you a quad core which is at a higher clock speed, a Mali-400 GPU, wifi-n, audio output ports, a second USB port, and infrared input.

If you are intending to run Linux on a mobile platform, the Radxa’s built-in wifi antenna will help untether your project. You could add a cheap ($20) device running openWRT to give the BeagleBone Black a wifi access point. Though this brings the price of the Radxa ($80-$100 depending on model) and BeagleBone Black Rev C and access point combination ($75) setups closer. The Radxa’s two USB ports also gives it a bit more breathing room, relative to the one on the BeagleBone Black. And the IR receiver on the Radxa should give you a cheap and immediate way to control your DIY code.

Updating the Software

The Radxa has operating system images to run Android Jelly Bean 4.2.2, Linaro 13.11, or an image that can dual boot to either.

The default image that comes with the Radxa is version 4.2.2 of Android. The status bar at the bottom of the screen includes soft keys for volume up and down, a power-off button, and a button to hide the bottom status bar. The status bar can be brought back by clicking at the bottom of the screen, dragging upwards and then releasing the mouse button.

There are a few apps installed by default including ES File Explorer, SuperSU, WifiDisplay, an RKGameController tool, and BootUbuntu. Selecting BootUbuntu opens up a superuser request dialog for an interactive shell. After granting privileges you will see another dialog asking if you want to reboot into Ubunutu. Then after a while you should see a desktop running Linaro version 13.08. As the latest Linaro offered is version 13.11 the first order of business was to update the software.

There are many methods to flash new software onto the Radxa including a closed source tool from Rockchip and an open source tool with a GUI. Unfortunately it seems the open source rkflashkit can not flash the update.img file which is used to update the complete installation. So it seems, for now at least, you are left having to use a closed source tool in order to flash an updated operating system image to the Radxa. The instructions mention running the closed source tool as root on your desktop Linux machine. Instead of this you might like to add a minimal privileged user account and allow all accounts full access to the Radxa OTG interface by adding the following rules to your desktop Linux machine by placing them in “/etc/udev/rules.d/50-radxa.rules”.

$ cat /etc/udev/rules.d/49-radxa.rules 
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2207", ATTRS{idProduct}=="310b", MODE:="0666"

With the above in place you can reconnect the USB link from your desktop machine to the OTG port of your Radxa and upgrade your Radxa using any user account on the desktop machine. No need to give root access to the closed source upgrade_tool. First put your Radxa into recovery mode by holding down the recovery button on the Radxa and connect its OTG port to any USB port on the desktop Linux machine. The recovery button is on the opposite side of the Radxa board to the power button. If in doubt choose the side button that is not near the OTG port.

[ norights@desktop ]$ ./upgrade_tool  uf /tmp/radxa_rock_ubuntu_desktop_140318_update.img 
Loading firmware...
Support Type:RK31       FW Ver:1.0.00   FW Time:2014-03-18 16:22:24
Loader ver:2.08 Loader Time:2013-12-02 18:58:57
Upgrade firmware ok.

The /etc/release files showed version 13.09 of Linux after the reflashing. I found that the wired ethernet was not automatically brought up so had to enable that from the panel first. Then I changed the root password. To login as root, open a local XTerm and type “sudo su -l”, I found that no password was required for that. Then the root password can be changed as desired.

I found that the ubuntu_desktop_140318 had neither NFS client or server support. While I could install the nfs-kernel-server package there was no kernel module to support it. To get around that you may have to download a matching updated modules file and expand that into /lib/modules. After I did this I had NFS support and could mount a filesystem from the Radxa using the below:

[root@desktop mnt]# mount 
  -o soft,intr,tcp,bg,noatime,nodiratime,rsize=32768,wsize=32768,async 
  radxa:/tmp /mnt/tmp

Getting at those 80 pins

Just as one would expect, the GPIO interface is exposed at /sys/class/gpio by the Linux kernel.

root@radxa:/sys/class/gpio# ls -l 
total 0
--w------- 1 root root 4096 Jan  1 12:00 export
lrwxrwxrwx 1 root root    0 Jan  1 12:00 gpiochip160 -> ../../devices/virtual/gpio/gpiochip160
lrwxrwxrwx 1 root root    0 Jan  1 12:00 gpiochip192 -> ../../devices/virtual/gpio/gpiochip192
lrwxrwxrwx 1 root root    0 Jan  1 12:00 gpiochip224 -> ../../devices/virtual/gpio/gpiochip224
lrwxrwxrwx 1 root root    0 Jan  1 12:00 gpiochip256 -> ../../devices/virtual/gpio/gpiochip256
--w------- 1 root root 4096 Jan  1 12:00 unexport

The TWI interfaces are exposed in /dev as well, though SPI is not exposed by default.

# ls -l /dev/i2c*
crw------- 1 root root 89,  0 Jan  1 12:00 /dev/i2c-0
crw------- 1 root root 89,  1 Jan  1 12:00 /dev/i2c-1
crw------- 1 root root 89,  2 Jan  1 12:00 /dev/i2c-2
crw------- 1 root root 89,  3 Jan  1 12:00 /dev/i2c-3
crw------- 1 root root 89,  4 Jan  1 12:00 /dev/i2c-4
crw------- 1 root root 10, 51 Jan  1 12:00 /dev/i2c_detect
# ls -l /dev/*spi*
ls: cannot access /dev/*spi*: No such file or directory

Performance Testing

For wifi performance, an rsync to the Radxa from a Fedora machine got up to around 6.9 Megabytes per second (Mb/s), though it did drop to 3.3 Mb/s on occasion. This was connected over a D-Link 855 wifi-n access point. Overall I got about 6.5 Mb/s while copying a 900 Mb file from an NFS server hosted on the Radxa to a desktop machine over wifi.

A single job compile of openssl 1.0.1e took a little over 8 minutes. For comparison, the BeagleBone Black took over 20 minutes. I found that Linaro had issues performing a multi-job compile of the openssl codebase. Cipher performance was similar or better than the ODroid-U2.

Radxa ciphers

Digest performance was similar to cipher performance with the Radxa competing with the ODroid-U2. Notice that the Radxa offers significantly better MD5 digest performance than the U2 though.

Radxa digests

RSA signature and verification performance continued this trend with the Radxa being in the ballpark of the ODroid-U2 for both tests. For these benchmarks the Radxa has a clear performance advantage over the BeagleBone Black.

rsa-sign copy

radxa rsa verify

The Radax used for this review had 2Gb of RAM, so bonnie++ would need 4 GB of flash in order to avoid the disk cache giving false performance numbers. While it is possible to run bonnie++ in its default mode using 4GB of disk, I limited file size, as shown below, in order to allow comparisons with other machines.

me@radxa:~/bonnie$ bonnie++ -f -m radxa -s 200 -r 100 -d `pwd`

For sequential output I got 7.4 Mb/s with rewrite at 7.6 Mb/s. Around 10.5 and 15.4 thousand files could be created and deleted per second. For comparison the MarS board got 4.7 Mb/s for output and 3.5 MB/s for rewrite; the BeagleBone Black got 4.2 MB/s and 4.5 MB/s respectively; and the ODroid-U2 quad core ARM got 16 Mb/s and 12 MB/s respectively. Not only is the on-board flash 8 GB in size, you can get better performance out of it than many other boards. The ODroid-U2 is significantly faster than the rest of the group using its eMMC interface.

To test 2D graphics performance I used version 1.0.1 of the Cairo Performance Demos. The gears test runs three turning gears; the chart runs four line graphs; the fish is a simulated fish tank with many fish swimming around; gradient is a filled curved edged path that moves around the screen; and flowers renders rotating flowers that move up and down the screen. For comparison I used a desktop machine running an Intel 2600K CPU with an Nvidia GTX 570 card which drives two screens, one at 2560 x 1440 and the other at 1080p. It is interesting that the Radxa offers similar performance to the BeagleBone Black with the Radxa running at 1080 instead of the 720 resolution used for testing the BeagleBone Black.

           Radxa      BBB fps    Mars fps       desktop 2600k/nv570
           at 1080    at 720p    LVDS at        two screens.
                                        1024x768
  gears         29      26         18             140
  chart          3       2            2              16
   fish          3        4           0.3             188
gradient        12     10        17             117
flowers          2       1           2             170

Power Usage

At an idle 1080 desktop the Radxa drew about 3.5 Watts. Adding a USB keyboard and mouse bumped this to 4.2 W. Running a single openssl compilation moved to 5.5 W and two compiles at once needed 6.0 W. A similar power requirement was seen when running one and two instances of the ‘openssl speed’ benchmark. Interestingly, running a third and fourth openssl speed didn’t seem to change the power draw much. I didn’t see any change in power when wifi was connected; perhaps the wifi chip is always powered.

Wrap up

The light Radxa model brings quad core DIY ARM down to only $80. Having the larger sibling at $100 gives you the extra RAM and storage headroom if your project needs it. If your project can scale to use the four cores and you want a small wireless Linux machine at the heart of your next DIY project the Radxa might be just what you are looking for.

We would like to thank Miniand for supplying the Radxa hardware used in this review.

For more in this embedded board series see:

The MarS DIY Platform for Around $100 (Without Screen)

BeagleBone Black: How to Get Interrupts Through Linux GPIO

Meet the Man Hired to Make Sure the Snowden Docs Aren’t Hacked

In early January, Micah Lee worried journalist Glenn Greenwald’s computer would get hacked, perhaps by the NSA, perhaps by foreign spies…

When he got to Rio, Lee spent one entire day strengthening Greenwald’s computer, which at that point used Windows 8. Lee was worried spy agencies could break in, so he replaced the operating system with Linux, installed a firewall, disk encryption and miscellaneous software to make it more secure.

Read more at Mashable.

How to Build a Tizen Laptop With Open Source Hardware Components?

Tizen-sunxi is a community driven port of Tizen for devices with Allwinner processors. So far at the git repository of the projects are available instructions for booting Tizen on couple of open-source hardware boards from the OlinuXino family as well as Tizen images for download.

Right now Philippe “Rzr” Coval is working on Tizen 3 Common port for Sunxi devices which will be merged into the Tizen-sunxi repo. The video below is taken with Tizen 2.0 IVI image which was originally created for PandaBoard but later was ported to devices with Allwinner processors.

Read more at Tizen Experts.

Microsoft’s Most Clever Critic Is Now Building Its New Empire

Microsoft’s decision to refashion Azure as a service where businesses could run practically any software, including Linux, says Mark Russinovich, was a direct response to discussions with longtime Microsoft customers. They wanted a way to move their existing software into the cloud, rather than just building new applications to suit Azure’s very specific architecture. “We needed to give them an on-ramp,” he says, and that’s what he helped design. It’s this kind of simple customer interaction, Russinovich explains, that shows how Microsoft is now aligning with his personal values. “It’s really just following some basics that can get lost in the heat of the drive to grab revenue and maximize profits: look at what you’re doing through the eyes of the customer, treat the customer with respect, and assume the customer is smart,” he says.

Judging from the recent growth in Microsoft’s Azure business, the move has paid off, despite increased competition from Google and Amazon. A Microsoft that runs Linux is a better Microsoft. But for Russinovich, this is merely a first step. The irony is that he believes the world will eventually embrace something that’s a lot more like Azure’s original architecture.

Read more at Wired.