Archive | Linux

A UNIX-like operating system.

Notes from CentraLUG: Joseph Smith and the Coreboot project

Nine people attended the August meeting of the Central New Hampshire Linux User Group, held at the Hopkinton Town Library on August 2nd. We announce our meetings in advance on the GNHLUG-announce mailing list, a very low traffic list we encourage everyone to subscribe to. Joseph Smith presented some information on the Coreboot project, had some hardware to show off, and had a lot of insights into the workings not only of the machines but of the vendors in the space.

We had a couple of announcements, mentioning upcoming meetings on the gnhlug.org web site. We had a round of introductions. We then asked for questions, announcements, job searches or job postings, etc. One attendee had a problem with having Ubuntu insisting it was updating grub with newer kernels, but the kernels were never appearing in the menu. The group had several very good suggestions to follow up on, including the suggestion to join the -discuss mailing list for more help and support.

I mentioned that the CentraLUG is affiliated with several publishers who offer discounts on their books, and that InformIT/Pearson Education (Addison-Wesley, Cisco Press, IBM Press, Prentice-Hall, Que, Sams) sends out a newsletter and holds a monthly user group contest/raffle for good stuff on their web site.

Finally, Joseph Smith got to do his presentation. You can find his slides here. Joe is an AS400 Administrator for a local well-known retailer’s headquarters, but had always enjoyed tinkering with hardware. It was frustrating to find that set-top boxes and other devices were restricted in what they could do (or run) due to defective or proprietary locked-in BIOSes. He was delighted to find the coreboot project and has been contributing ever since. Joe attended NHTI to polish up his software skills and earn a certificate. He brought along several boxes to show us what he was working on. He talked about the sequence of events that occur within the BIOS and how coreboot can replace them. He demonstrated booting a machine with a serial console and minicom monitoring a fully-verbose debugging session. He talked about the issues with getting coreboot running on a new machine, how vendors cooperated and contributed to the project (or not!) and the problems with turning a BIOS chip into a brick and how to recover. It was a fun and interesting presentation.

Thanks to Joe for his presentation, to Bill Sconce for supplying the projector, and to the Hopkinton Town Library for use of the great facilities. Note that CentraLUG will not have a September meeting due to the Labor Day holiday (come on up and see the Hopkinton State Fair!) but plans to meet in October, November and December at the NHTI Library. Stay tuned for announcements.

Notes from Python SIG, 27 May 2010

The May meeting of the New Hampshire Python Special Interest Group was planned as an informal chat, and there was no dearth of topics! We met as usual (the fourth Thursday of the month) at the Amoskeag Business Incubator (http://www.abi-nh.com) in Manchester, from 7 – 9 PM. Seven people attended the meeting.

We had a demonstration of a prototype of a video bulletin board system to be used for the community TV channel in Pepperell, MA. It was using a Python script to drive displays including slides in OpenOffice.org Impress and videos played in VLC. Interesting libraries in use include shlex for parsing command lines and a graphics library whose name I missed to generate the “crawler” at the bottom of the screen.

We discussed the licensing issues with video and audo codecs and the solution that’s provided by Fluendo.

We looked at the new photography management application Shotwell included in the most recent Fedora and Ubuntu distributions. Shotwell is written in the new Vala language that “aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C” and Bill noted another derivative language, Genie, which has a style far more similar to Python. (You wondered what all this had to do with Python, didn’t you?)

We looked for some solutions for accessing the output of Java classes from within a Python application., citing pages like this and discussing the pros and cons of the solutions available. We’re looking forward to a future meeting where we get a report on how it comes up.

As always, a good time was had by all. Thanks to Janet for yummy chocolate chip cookes and frosted brownies. Thanks to the Amoskeag Business Incubator for the use of the facilities, to Bill for organizing and moderating the meeting. and thanks to all for attending participating.

HowTo notes: installing REE, Passenger, Ruby on Rails on CentOS5

Recently, I installed Redmine, the Rails-based project tracker,  on an existing virtual private server, running CentOS 5 Linux and an assortment of LAMP applications and web sites using Apache, PHP and MySQL. I chose Ruby Enterprise Edition (REE), an optimized and high-performance version of Ruby, and Passenger, an Apache module to connect to Ruby. Here are the steps I followed, as a reference and in hopes it might help others:

  1. Log onto the box via ssh. As a good practice, I run as an unprivileged user, and use sudo only when superuser rights are needed. So, download the files and un-tar them and read the READMEs and run the processes as a regular user, switching to root via sudo only when the rights are needed.
  2. Download and install Ruby Enterprise Edition. Today, that’s:
    wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz

    but follow the instructions you’ll find at http://www.rubyenterpriseedition.com/download.html for the latest. Those instructions will have you un-tar the file and then run the installer.

  3. Install the tools needed to build Ruby Enterprise Edition. If you run the installer, it will prompt you for missing tools. In my case, I needed to:
    sudo yum install gcc-c++ make patch zlib-devel openssl-devel readline-devel
  4. If you’ll be using mysql, you’ll need the native code to build the matching gem. REE attempts to build gems for MySQL, SQLite and PostgreSQL, so choose your flavor and issue the appropriate command like:
    sudo yum install mysql-devel
    

    or postgresql-devel or sqlite-devel as appropriate.

  5. Follow the instructions supplied by the REE installer. They did a nice job on that. To install Passenger when I was done, some additional source code files were required:
    sudo yum install httpd-devel apr-devel
    sudo /opt/ruby-enterprise-1.8.7-2010.01/bin/passenger-install-apache2-module
  6. Once again, follow the prompts to add the proper load module and path commands to your web server configuration, add a configuration file for your site, and you’re ready to start installing your site’s code.

NOTE: It wasn’t the case with my particular host, but you may need to adjust your SELinux settings, if you’ve got SELinux enabled. See the post at http://www.catapult-creative.com/2009/02/04/installing-rails-on-centos-5/ and look for “SELinux” for some ideas.

Git presentation, CentraLUG, 3 May 2010

The Central New Hampshire Linux User Group will meet at its usual place and time, NHTI Library, Room 146, 7 PM – 9 PM. Directions can be found at http://wiki.gnhlug.org/twiki2/bin/view/Www/NHTILibrary.

In keeping with the tradition of 3-letter presentations (CSS, Vim, SQL, er, HTM), I’ll talk abut Git, the distributed version control system. Git was originally developed by Linus Torvalds for the Linux kernel and is licensed under GPL2. It’s become popular in Rails development as well, especially with the hosted site GitHub.com. Similar to Mercurial [Updated link, Ed.] or Bazaar, Git is a DVCS – a distributed (or Decentralized) version control system or revision control system. DVCSes introduce an easier way to work on shared project. We’ll talk about how DVCSes work and Git in particular, look at some of the available references, handy cheatsheets, and sites to host your DVCS.

As always, we’ll have some time for introductions, job postings, folks looking for work, questions and hopefully answers.

Hope to see you there.

Some additional links, besides the ones I posted to the announcement above:

Scott Chacon is the authority on Git. Check out his book, his tweets, his online reference, his PDF, and Why Git Is Better Than X.

The Git wiki is a good source of reference materials.

A great diagram and discuss about using git branches in a real development and production environment.

Notes from Seacoast LUG, Caroline Meeks and Sugar on a Stick

The Seacoast Linux User Group met last night, as they always do on the second Monday of the month, in Morse Hall Room 301 on the UNH Durham campus, at 7 PM. Kudos to Robert Anderson who’s been running the group… well, forever. Sixteen people attended last night’s very interesting meeting, which featured Caroline Meeks speaking on “Sugar on a Stick.”

Caroline’s been involved in Open Source since 1999 and is very interested in education. Her business, Solution Grove (http://www.solutiongrove.com) specializes in Open Source learning and knowledge management. She’s currently studying at Harvard Graduate School of Education and plans to complete her Masters in Education this year. She spoke (and demoed) enthusiastically about the activities available on Sugar and the remarkable effects they had on kids, leading to very positive educational outcomes.

Sugar on a Stick, a project from Sugar Labs, is an effort that puts the Sugar desktop (started on the One Laptop Per Child machines) onto a USB stick so an educational computer is available to a child any time they can access a computer. (SugarLabs is a spinoff open source project, with it’s own Sugar Labs Oversight Board (yes, SLOBS) and an all-volunteer force.) Caroline presented what Sugar on a Stick can do now, how it’s working in and out of schools, discussed the technical hurdles they are running into and made an appeal for help in testing/debugging/building, especially on Ubuntu’s project, the Sugar Remix.

Sugar on a Stick addresses the Achille’s Heel of the One Laptop Per Child program: despite a number of successful pilot programs, most deployments of OLPC haven’t resulted in each child having their own computer that they could keep with them, take home safely and use fulltime. When children have to share computers, or only get an hour at the lab, they are missing out. Sugar on a Stick lets the kids take their USB sticks with them and use them in whatever computer is handy. They can run their projects on Mom or Dad’s computer without harming that machine (or vice versa!) and can play whenever a machine is available.

Some games and educational programs don’t work at improving outcomes. One attendee cited an example of a well-known reader game. A study revealed that scores went _down_ after six months of using the reading program. The attendee referred to it as the “Drill and Kill” syndrome.

There’s lots of work that needs to be done on the project. The current version, based on Fedora’s Live stack, was developed in an era of much smaller capacity USB sticks and made compromises that aren’t needed any more. The compressed filesystem is suspected of being a problem with the corrupted stick phenomenon, which occurs too often to consider the project “ready for prime time.” Caroline said that, with a classroom of kids working Sugar on a Stick, there would always be one or two corrupted sticks. That’s too much data loss, too much frustration and disappointment, and too much disruption to be suitable for a classroom environment.

SugarLabs need mentors (those of us in LUGs) to finish making the software work. There’s not a lot of money in it right now, although they are looking at all possible grant sources. There’s a lot of enthusiastic high school students who need help pointing them in the right direction. College students have an opportunity to use a “Do Something” grant to provide compensation for working on this project. The call to action is for mentors and those familiar with the internals of Linux, especially Ubuntu’s live media functionality, to coach, mentor, supervise and help out in getting the next version of Sugar on a Stick, the Ubuntu Sugar Remix.

Prezi was the presentation software http://prezi.com/ Caroline was using. It was pretty neat. Her presentation can be found at: http://prezi.com/kuuhqwmkxxtm/ Caroline’s presentation and demonstration were quite impressive, and her obvious enthusiasm for the project lead to an energentic question-and-answer session at the end.

Thanks to Caroline for the presentation, to Robert and UNH for hosting and all for attending and participating!

Notes from CentraLUG, 1-Feb-2010

Five people attended the February 1st meeting of the Central New Hampshire Linux User Group. We met at Room 146 of the New Hampshire Technical Institute’s Library from 7 to 9 PM.

There were lots of interesting discussion. Ed was attending for the first time, and is getting back into software engineering after some time in another career. He had some questions on what the different distros were and how they worked, and there were, of course, plenty of opinions. Susan had some updates on her research on the BF scheduler, the bleeding-edge Ubuntu releases, realtime kernels, and the Dragon Naturally Speaking application. I reviewed some of the upcoming meetings, and there was a lot of interest in the Seacoast LUG’s “Sugar on a Stick” presentation and the Cascading Stylesheet presentation at PySIG at the end of the month.

Mark McSweeney made the main presentation. Mark works in a small office with a few partners, and budgets are tight. A few years ago, they had deployed a Microsoft back end and discovered that there were no satisfactory solutions for spam filtering on the Exchange server they had as a mail server. Mark came up with a very effective and economical solution using PostFix, Amavisd-new, ClamAV, DCC, Razor, Pyzor and SpamAssassin. Mark’s slides can be found at http://wiki.gnhlug.org/twiki2/bin/view/Www/SpamFilter, including links to the solution he followed, an updated version of which can be found at http://www.freespamfilter.org/

Member Susan Cragin will be making the presentation at out March 1st meeting, on the Dragon Naturally Speaking 10 program running on WINE. Stay tuned for more details.

Thanks for Mark for his great presentation, to the NHTI and Library staff for the great facilities, to Dave Rose for bringing the projector, and to all for attending and participating!

Notes from Python Special Interest Group, 20-Nov-2009

Eight people attended the Python Special Interest Group, held a week early to avoid the Thanksgiving holiday. Anticipate a reschedule December meeting as well.

Last night’s meeting was a vigorous and far-reaching discussion of MySQL, Oracle, the future of MySQL, Maria DB, OpenOffice.org automation using Python, OpenOffice.org automation using Visual FoxPro, Twisted, IE6, Zope, Plone, Django, MS SQL Server, pyodbc, SQLAlchemy, Cascading Style Sheets, IE6, FireFox and FireBug, User Agents, IE6, how not to insulate a bungalow roof, the (Python!) cssparse module (http://cthedot.de/cssutils/), Fortune’s selection of Steve Jobs as “CEO  of the Decade”, Lenovo netbooks and Ubuntu, the Millennium, why calendar years are one-based and not zero-based, distributed version control systems, master-slave and master-master replication using MySQL and Postgres, svn and git, and more! Whew! You should have been there!

Thanks to Bill for organizing the meeting, to all for attending and participating, and to the Amoskeag Business Incubator for providing the great facilities!

Stay tuned for an announcement of the December meeting, and hope everyone has a good Thanksgiving!

This Thursday: Patrick Galbraith at MonadLUG

  • Who: Patrick Galbraith
  • What: Memcached and moxi
  • Date: Thursday, September 10, 2009
  • Time: 7:00PM
  • Where: SAU 1 Offices, 106 Hancock Rd., Peterborough

About the presentation:

Patrick will do a talk on memcached (http://memcached.org/), the moxi memcached proxy (https://code.google.com/p/moxi/) and about Northscale’s memcached AMIs for Amazon EC2 as well as using these with the memcached functions for MySQL (user-defined database functions) that he wrote. How you can use these for caching data to reduce the load on database servers.

About Patrick:

Patrick has been working with Linux since 1993. Some of his previous experiences have included working on Slashdot, Linux.com, Newsforge.com, launching Slashcode.com and Sourceforge Foundries, developing and maintaining DBD::mysql, mysqlslap development and more than I could possibly list here.

He is the author of “Developing Web Applications with Apache, MySQL, memcached, and Perl” published by Wylie and Sons.

Adding Fail2Ban to the web site

I swapped out web servers two weekends ago, when the old machine started showing some unacceptable behavior. Part of that swap involved switching from a CentOS-based Linux distribution to an Ubuntu-based distribution. There were some great learning moments involved in that. I also wanted to swap out a few programs that hadn’t worked as well as I had hoped.

One of the new packages I’m trying out is Fail2Ban, an Python-based application to review the logs and temporarily bans IP addresses based on the patterns of abuse. Similar applications like DenyHosts are well-rated, but DenyHosts specializes in ssh, which hadn’t been too much of a problem for me, and didn’t have a straight-forward configuration for ftp, which unfortunately I must offer. I had used a similar Perl-based application before, but it hadn’t supported a couple of a my applications, and appeared to introduce some instability in the system. Fail2Ban came with configurations for Apache 2 and vsftpd. In their wiki, there was a HOWTO for banning PHP-based file upload attacks, something which had begun to fill the logs with nonsense.

So, 48 hours in and things seem to be running well. The log files clearly show some applications being blocked, other applications seems to be running well, and performance and responsiveness of the site seems to be okay.

Notes from Python Special Interest Group, 27-August-2009

Twelve folks attended the August meeting of the Python Special Interest Group, one of the most active chapters of the Greater New Hampshire Linux User Group. The meeting was held on the regular night, the fourth Thursday of the month at the Amoskeag Business Incubator in Manchester, gathering at 6:30 with the formal meeting starting at 7 PM.

I gave the usual pitch about the GNHLUG, checking the calendars for upcoming meetings, joining the announcement mailing lists for low-traffic meeting announcments, or the GNHLUG and PySIG discussion list for slightly-higher traffic but high-quality technical discussions, and mentioned some of the upcoming meetings. I also reminded members that user group discounts are available from many of the book publishers, and that if they are interested in reviewing a recently released book, I can request one through the user group program.

Software Freedom Day is coming up September 19th, and Arc will be running an event in Manchester. Keep an eye on the mailing list for further details.

Mark talked about his monthly Tech Talk presentations in at the Lawrence Library in Pepperell, MA (next meeting, September 30th), and his Tech Talk newsletter. Mark is doing a great job getting the word out there and spreading the message about Free/Open Source to non-technical folks. He’s also tried to get a hearing about Open Source in his local schools, but without much luck. Mark also pointed out the new Full Circle magazine Issue 27, which starts a tutorial series on Python.

Arc Riley gave a quick demo of Crunchy, a python-based local web server for serving Python tutorials. Looks neat.

Arc talked about the Python Software Foundation and the Google Summer of Code and also here. The project Arc mentored helped to develop the 3to2 program for rolling back code written for Python 3 to run in Python 2.x. While the code is still in an alpha state, it successfully performs a lot of the conversion needed, and will continue as a framework for the final product. Arc managed the GSOC for the PSF. The Python Software Foundation had the second largest number of sponsored GSOC projects (Apache was #1) and most were completed successfully. Thanks to Arc for a lot of hard work this summer!

Kent S. Johnson talked about itertools. Itertools provides a simple way to represent and manipulate large sequences of numbers without the necessity to consume large memory and CPU resources with creating the entire sequence before iterating over the sequences. Starting with some simple examples of arrays and lists, sequences and generators, Kent built up examples (with some contributions from Bill Freeman) into a more complex problem that illustrated why itertools is so handy. Well done!

Bruce Labitt is almost single-handedly responsible for keeping the pysig mailing list going this summer. Bruce talked about the work he’s doing with intensive calculations and huge arrays. Bruce is building some complex simulations of radio waveforms and calculating various aspects of the radio waves for regulatory compliance. He’s using Python and NumPy and other libraries to generate test data and simulations, and interfacing common PCs with some supercomputing facilities for the heavy number-crunching. Very interesting talk.

Thanks to Bill Sconce for organizing the meeting, to Mark, Arc and Bruce for presenting, to Janet for the awesome cookies, to the Amoskeag  Business Incubator for the great facilities, and to all for attending and participating.

Powered by WordPress. Designed by Woo Themes

This work by Ted Roche is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States.