Home Blog Page 1656

Fedora’s Copr Continues Mining New Features

Fedora’s Copr project that tries to make it “easy and cool” to have third-party package repositories like Ubuntu’s Launchpad PPA or the openSUSE Build Service, is continuing to march forward with new versions…

Read more at Phoronix

Distribution Release: Netrunner 13.12

Clemens Toennies has announced the release of Netrunner 13.12, a Kubuntu-based Linux distribution featuring the KDE 4.11.2 desktop: “The Netrunner team is proud to release Netrunner 13.12 – 32-bit and 64-bit stable. New features: Kicker Menu (Super, Windows or Meta key to invoke); expanding taskbar (drag-and-drop support); sidebar…

Read more at DistroWatch

Four Linux Distros for Kids

Linux operating systems for kids

I can see the brightness of curiosity in my 6 years old niece Shuchi’s eyes when she explores a mobile phone or manipulates the idiot box with its remote control or becomes creatively destructive with any other electronic device. She, like a lot of kids her age, love experimenting.

This curiosity reaches its peak when she sits in front of my laptop or her father’s laptop. A lot of times, however, I observe that she is lost in complicated applications that are suitable only to adults. An operating system that an adult uses and the system running it can look like a beast to a lot of kids. These  applications are beyond the comprehension of very young kids and do not provide an ideal (and playful) introduction to computers. Futher, adults’ laptops and tablets do not serve as a good learning environment for any kid (younger or older) who is just onboarding into the world of computing. Besides, letting a kid run wild on a computer with an online connection can be daunting for the parents.

read more

Read more at OpenSource.com

Configuring Apache2 to run Python Scripts

This is meant as a simple writeup to fill a gap in various “HOWTO”‘s that I read when trying to setup my Apache2 server to process python scripts as CGI, though it would apply to any cgi scripts (perl scripts, compiled binaries…).
I’ve been developing for years (C, C++, PHP), but had never delved into python before, and I wanted to be able to have my scripts have a web interface.

The first step is getting Apache2 to recognize that my .py files were to be executed and not spit out as text files.
docs.python.org has some nice HOWTOs (http://docs.python.org/3.3/howto/webservers.html) on how to think about python and the web, and apache.org has mountains of documentation (http://httpd.apache.org/docs/2.2/howto/cgi.html) relating to running CGIs. What I didn’t find was a simple guide on how to set it up. I’m a developer, not a sys-admin, and while I like knowing how to configure Apache and tune my linux boxes, sometimes I just want to get my webserver up and running and start coding.

So, in case anyone was going through the same situation as me, here is my quick and dirty setup.

For reference, this setup was done on Ubuntu 13.10, using ubuntu’s default apache2 installation, and python3.
I’m also assuming you know how to configure apache for a basic html site. There are lots of HOWTO’s for that.

Starting the basics:

  • apache install: sudo apt-get install apache2
  • python install: sudo apt-get install python

or

  • python3 install: sudo apt-get install python3

The first step, which in my PHP experience I never had to do, is not mentionned in the guides above is to enable CGI processing in apache.

sudo a2enmod cgi

This will automatically enable mod_cgid if your server is configured with a multi-threaded MPM, which was the case for me.

Then you can either make a folder in your site’s path where your cgi files will live, or configure certain directories to handle certain file types as cgi scripts.
This is described well in the apache2 doc above, but essentially you to make all files in a cgi folder be executed, you would use this conf:

<Directory /srv/www/yoursite/public_html/cgi-bin>
        Options ExecCGI
        SetHandler cgi-script
    </Directory>

and to allow .py files to be executed as scripts in a particular folder you would use this conf:

    <Directory /srv/www/yoursite/public_html>
        Options +ExecCGI
        AddHandler cgi-script .py
    </Directory>

Once you have that, if you’re running python 3, you can make a python script like this one, and stick it in whichever folder is configured for cgi:

    #!/usr/bin/env python
    # -*- coding: UTF-8 -*-# enable debugging
    import cgitb
    cgitb.enable()
    print(“Content-Type: text/html;charset=utf-8”)
    print()
    print(“Hello World!”)

You can change the first line from

#!/usr/bin/env python

to

#!/path/to/your/python/binary

such as

#!/usr/bin/python3

in case the default is python and you want this script to be parsed by python3

4 Ways to Service-Orient API Deployments

The ultimate goal of API management is trust and collaboration between business and IT. This ground has been well covered by service oriented architecture work.

What I Saw on the CES Show Floor: Your Work on Display

 

CES is a beast: hundreds of announcements, overbooked hotels and crowded booths combine to make even the most frequent conference goer’s head spin. But it’s not the beast that’s of note. It’s the silent giant in those crowded booths that inspires my work for the year ahead. At CES, I get to see the very tangible results of the amazing work of thousands of Linux developers and users from around the world all in one place.

Linux is everywhere at CES, and as I walked the show floor and people read my name badge, I got lots of high five’s and thank you’s from people I’ve never even met. I’m really proud to be a part of a community that is transforming industry after industry and wanted to share with you some of the most interesting trends and coolest things I saw last week that your work is making possible.

Chromebooks Outselling MacBook

Just a week after it was reported that Chromebooks outsold MacBooks to U.S. commercial buyers in 2013, hardware makers all over CES were making announcements about their plans to ship new Chromebooks. From Toshiba to Acer to Lenovo (now the world’s biggest PC maker, according to IDC), companies are using the Linux-based ChromeOS to build lighter, faster, better hardware. Who would have believed five years ago that Linux would outship Mac? It’s happening.

Connected Everything

The chatter about the Internet of Things has been getting louder over the last year and this year’s CES it’s in high gear. But it’s about a lot more than your coffee maker or your Android-based toothbrush. I’m finding more companies talking about how to use open source software as a defacto standard for integrating your home, office, car and more in ways we can’t even image yet. Linux and open source are primed to be the foundation for this future. In fact, the AllSeen Alliance, which we recently announced and that uses the AllJoyn open source project to help connect everything, garnered a lot of attention at the event. There was a great demo on display and the technology was in a lot of products at the show.

No Rest for Valve

Valve has been disrupting the gaming space and making Linux users and developers very excited ever since it first teased its SteamOS introduction during LinuxCon North America in New Orleans. At CES the company demonstrated its commitment to Linux and StemOS by announcing 13 Steam Machine partnerships with hardware makers. This company is not slowing down, and I’d expect their efforts to turn the gaming market upside down this year.

Linux-based Products Represent Real Innovation

From 3D printers to drones, phones, tablets, TVs and even crockpots, Linux is running almost everything on display on the CES show floor. One of my favorite picks is Makerbot. These Linux-based 3D printers are creating everything from mechanical hands to clothing to dinosaur skulls. Originally introduced makerbot yesat SXSW with the founders hanging out in bars around Austin making shot glasses with their printers, this company was white hot this week at CES. It introduced three new printers, a digital store that is being referred to as the iTunes of 3D printing and a variety of new apps. All built on Linux.

From the embedded systems running the brains inside our appliances to the televisions, phones, tablets, cars, printers, games and more that play increasingly relevant roles in all of our daily lives, Linux is putting new technologies within our reach. It is the Linux community and its ongoing collaboration and investment in the operating system that is making this possible. Linux might sit silently inside these devices, gadgets and gizmos but the community that helps put it there should be applauded because it’s this work that is changing the way we do everything. Congratulations. You’re building the software that runs our lives and paving the way for the future.

Jolla Review: Some Rough Edges, But This Linux Smartphone Shows Promise

Jolla was formed in late 2011 from a number of former Nokia Engineers who had been working on a number of Linux-based operating systems and handsets (including the Nokia N9). Just over two years later, their first handset (the self-titled Jolla) shipped with their Sailfish OS. I’ve been using the Jolla handset since mid-December, and it’s time to look at the handset in some more detail.

Reviewing the Jolla handset does put me in a quandary. As I discussed in my first impressions piece at the end of 2013 (which you can read here), the Jolla handset is a work in progress. While the hardware is fixed, the full functionality is not available or addresses yet by the operating system. The Jolla’s  OS (Sailfish OS) is the key reason to buy this handset, and it still requires a lot of work to bring it up to modern UI standards in terms of flow, connectedness, and ease of use.

So the first point to note from this review should be clear, but let me stress it. The Jolla handset is a work in progress. Do not buy this handset if you are looking for something that ‘just works’. It’s not yet a platform that can return Finland to the top of the smartphone sales chart. But it is a handset that Finland should be proud of. It has shipped, it broadly works, and there is a feeling that Jolla the company is constantly at work to improve their handset every day.

Read more at Forbes.

What Ever Happened to Desktop Virtualization?

Virtualizing desktop environments and applications for safe, secure, flexible delivery to many types of access point devices has been on the edge of the IT market for years. Why hasn’t it taken over?

Google Purchases Nest for $3.2 Billion

Google has just purchased Nest Labs, the maker of the Nest Learning Thermostat and Protect smoke detector, for $3.2 billion in cash. According to a Google press release, Nest will continue to operate independently under the leadership of co-founder and CEO Tony Fadell; co-founder Matt Rogers will also make the move to Google. While the transaction is subject to the usual regulatory review, Google says it expects the sale to close within the next few months.

It’s not yet clear exactly how Google plans to use Nest, but the company obviously see it is an important part of its future. A combination of Nest’s home solutions coupled with Google’s language recognition could give Google its strongest path yet into your home.

TechCrunch has…

Continue reading…

Read more at The Verge

‘Nidhogg’ Arrives on Steam

Nidhogg is here. The insanely fast indie dueling video game has arrived on Steam, over three years after it began winning accolades from the gaming press. Originally only playable at video game exhibitions where crowds would cheer as a pair of players faced off in the epic tug-of-war like swordfighting game, its creator Mark “Messhof” Essen is finally selling Nidhogg to the masses, complete with online multiplayer. For $14.99 (or $11.99 through January 20th) you can buy the game for Windows PC, which has been greatly expanded with new fighting moves, new animations, four distinct arenas, full PC gamepad support for Steam’s Big Picture mode, local tournament and arcade modes, and music that dynamically changes as you play.

It’s hard to…

Continue reading…

Read more at The Verge