All 123 posts

Make Bash, Not War

At the OSL we have shared workstations, most of which are named after colors. In the NOC, I usually work at emerald.workstation.osuosl.bak (Figure 1). I use tmux (Figure *) to multiplex so I can have multiple terminals open in a single ssh connection and connect to my session from anywhere. When splitting the terminal ertically, the prompt can get so long that it’s hard to see the command that I’m entering (Figure 2). I’d like my prompt to automatically shorten itself in narrow windows. Fortunately, my terminal already knows how much space it has available: $COLUMNS is an environment variable which stores how wide your current terminal is, and the default unixism is 80. So in order to save space, I’d like to shorten my prompt to only a directory listing and a colored character replacing the normal $ or >. Behold! (Figure 3, 4) Using a case statement and filtering out the name of the workstation from the domain name, I can color code my prompt based on hostname. This very easily lets me know $HOSTNAME (again, this is an environment variable which contains /etc/hostname), and indirectly /usr/bin/whoami since almost every other user will preface their prompt with a $USER. This was a 10 minute exercise in learning how to write case statements in bash and provide some cute utility to an otherwise stale prompt. The other thing you might notice is that I directly add the unicode heart into the prompt. This causes difficulty on TTYs and some terminal emulators where it is replaced with a ♦ (which is an ASCII character). There should be a check to make sure it can be loaded and replaced with something else if it fails. All in all, this is just quick hack to make life prettier! Source!

Read more of Make Bash, Not War →

A Recap of OSCON 2014

The OSL made a strong showing at the O’Reilly Open Source Conference (OSCON) this year with the majority of the student employees attending along with all of the full time staff. The conference was held in Portland, OR, and fell on July 20-24. The Lab always places a special emphasis on education, and the conference was certainly an educational experience. The expo hall held dozens of booths filled with information and demonstrations about open source projects and the companies that support them.

Read more of A Recap of OSCON 2014 →

Google Migration Post-mortem

OSU administration recently approached the OSL asking us to help migrate their email archives to Google. Through contacts with other local universities that had made the switch recently, we discovered that Portland State University had written and published an open source Python app to manage the process. In the name of expedience, we decided to fork that project and use that as our base from which to extend.

Read more of Google Migration Post-mortem →

Vim Trick FTW!

Recently, I learned a useful Vim trick. One of our hosted clients has a Dokuwiki instance that we help manage, and they were having problems with a lot of spam user accounts being created. We added a CAPCHA to the wiki to make it less convenient for new spammers to join, but there were a lot of bad accounts already existing. By “a lot,” I mean there were 112,808 accounts listed in users.auth.php, and only about a dozen real project personnel using the wiki on a regular basis.

Read more of Vim Trick FTW! →

OpenStack on OpenPOWER

Openstack has been growing in popularity over the past few years and recently we’ve started to look into it further here at the OSL. We plan to continue to use Ganeti for our high-available IaaS needs, however we’re researching ways to integrate Openstack at the lab as well. While Ganeti provides a solid, stable and simple platform for general IaaS needs, Openstack provides better support for elastic and dynamic needs. We feel that using both platforms gives the best of both worlds, because they each fill a specific niche in a cloud environment.

Read more of OpenStack on OpenPOWER →

Protein Geometry - What the Heck is That?

When I bumped into my biochemistry professor, Dr. Kevin Ahern, on campus a few months ago, I had the pleasure of explaining how I actually get to use what I learned in his class. And at the Open Source Lab of all places. At the lab, I’ve had the opportunity to work on an open source project called the Protein Geometry Database (PGD), and my coursework as a food science major with fermentation science option – specifically, that course in biochemistry – has proven unexpectedly helpful when working on the PGD.

Read more of Protein Geometry - What the Heck is That? →

Openstack's Horizon

The first tech post is by Chance Zibolski, a community system administrator and project lead of Ganeti Web Manager, a Web administration panel that allows administrators and clients access to administer and use Google’s open source cloud infrastructure. Recently the OSU Open Source Lab has been experimenting with different technologies, in particular Openstack. We already use Ganeti as our production virtual machine and cluster management system and have written a web front end called Ganeti Web Manager. The whole purpose of the web manager is to allow us to easily create new virtual machines for internal purposes and to provide our customers with cheap, redundant VMs. Recently, the OSL released Ganeti Web Manager 0.10.2 and we’re getting close to finishing version 0.11. With this release, we’ve begun to discuss the future of Ganeti Web Manager and where we should be taking it. We’ve decided to eventually rewrite it. As the project lead of Ganeti Web Manager, it’s been my job to explore what tools and libraries we may want to use for new versions of the project.

Read more of Openstack's Horizon →

DevOps Bootcamp Extends OSL Reach

Sometimes, it’s hard to be popular. The increasing popularity of open source means that there are always more students interested in the Open Source Lab than we have the ability to hire and mentor. In order to increase the lab’s reach and educate more people about FOSS, the lab created a new program, DevOps Bootcamp. Spearheaded by Emily Dunham, a student system administrator, and modeled after Portland State University’s Braindump, this program will allow more people from outside of the OSL to learn valuable FOSS skills.

Read more of DevOps Bootcamp Extends OSL Reach →

10 Projects Making a Difference

Submitted by Melissa Morse on November 25, 2013 In addition to supporting projects that are making significant impacts on technology, the Open Source Lab hosts projects that are striving to make the world a better place. The following 10 open source projects (in no particular order) promote open source technology in education, health care and government in ways that build a better future.

Read more of 10 Projects Making a Difference →

Connecting at Beaver BarCamp 12

More than 160 students, community members and educators gathered in the Kelley Engineering Center at Oregon State to share ideas, make connections and learn together at the Open Source Lab’s Beaver BarCamp 12 on Saturday, October 12. An informal conference hosted twice each year by the Open Source Lab, Beaver BarCamp encourages attendees to participate by both presenting sessions and participating in discussions. Throughout the day, 50 sessions were presented, with topics ranging from Python programming to starting a business to creating a universe.

Read more of Connecting at Beaver BarCamp 12 →

Search