A Django site.
August 17, 2008

Aaron Toponce
atoponce
Aaron Toponce
» Digital Graffiti

WARNING: IF YOU FOLLOW THE CODE IN THIS POST, YOU WILL DESTROY THE DATA ON YOUR DISK.

Being a Linux instructor for Guru Labs, I get to travel the United States, and on occasion, other countries. When on the road, usually I’m teaching Red Hat Enterprise Linux, but do sometimes teach Fedora Linux, SUSE Enterprise Linux Server and openSUSE Linux. Soon, I hope, we will be partnering with Canonical (Mark, paying attention? :) ) to teach Ubuntu Server LTS.

However, for the longest time, I wanted to leave my calling card, so-to-speak, showing I had visited that training center. I thought about changing the MAC address on the instructor machine, but that wouldn’t work out so well. I thought about organizing the dry erase markers in some fashion, or leaving something on the white board, but that’s extremely temporary. I needed something to say “Aaron Toponce was here” without causing any damage to the training center, or any of its equipment, and staying preserved.

I came up with an idea: I’ll echo my name to every bit on the hard dive until the hard drive is wiped. This is an effective means of erasing the contents of your hard dive, and completely destroying the data. As we all know, when you install an operating system, the OS does not flip every single bit on the disk. In fact, it only flips the bits it needs to. As such, even after a reinstallation of your operating system, much of the contents of the previous install could still be visible. After echoing my name to ever bit on the disk, unless every bit on the disk is re-flipped, my name will be present as long as the disk remains operational. As such, digital graffiti on the hard drive. Let’s see how this works.

If you check out the man page on “yes”, you will see that it outputs a string repeatedly until killed. I’ve really have found no useful means for “yes”, until now. Using “yes” can take one argument. That argument could be “Aaron was here”. As you know with communication channels, you can redirect the output using the “>” operator. Of course, because we want to save this to disk, we just redirect the output to our disk:

aaron@kratos:~ 10064 % yes "Aaron was here on ${date +%D}. " | sudo dd of=/dev/sda

When yes reaches the end of the disk, it will stop, at which point, the disk has been wiped, and data destroyed. Now, perform a reinstall. After the installation finishes, examine the contents of the disk with “xxd”: You’ll want to pipe the output to the less pager, as the output of “xxd” will scroll past the screen. What you’re looking at when viewing the output of “xxd” is first a counter in the left column, then the contents of those bits in hexadecimal, then finally, the string representation of the hex. Notice in the ASCII column, the data of the first few bytes of the hard drive:

aaron@kratos:~ 1 % sudo xxd /dev/sda | head
Password:
0000000: eb48 906f 6e20 7761 7320 6865 7265 206f  .H.on was here o
0000010: 6e20 3038 2f31 372f 3038 2e20 0a41 6172  n 08/17/08. .Aar
0000020: 6f6e 2077 6173 2068 6572 6520 6f6e 2030  on was here on 0
0000030: 382f 3137 2f30 382e 200a 4161 726f 0302  8/17/08. .Aaro..
0000040: ff00 0020 0100 0000 0002 fa90 90f6 c280  ... ............
0000050: 7502 b280 ea59 7c00 0031 c08e d88e d0bc  u....Y|..1......
0000060: 0020 fba0 407c 3cff 7402 88c2 52be 7f7d  . ..@|<.t...R..}
0000070: e834 01f6 c280 7454 b441 bbaa 55cd 135a  .4....tT.A..U..Z
0000080: 5272 4981 fb55 aa75 43a0 417c 84c0 7505  RrI..U.uC.A|..u.
0000090: 83e1 0174 3766 8b4c 10be 057c c644 ff01  ...t7f.L...|.D..

If I were to continue through the less pager, I would see that there are sections where that string is repeated and repeated throughout the disk over and over again. Of course, it’s not interfering with the day-to-day operation of the operating system, as the data segments on the disk are unused and unallocated. Those bits will lose their orientation when new data is saved in those spots.

As an instructor, I probably won’t show the students the contents of the instructor machine’s hard drive in this manner. Other instructors probably won’t either. So, this data remains hidden as an easter egg waiting for somebody to stumble on it. However, I’m keeping a list of all the training centers I’ve visited and where I’ve left my calling card. It will be interesting to see if this data does in fact remain in tact when I visit again.

August 12, 2008

Stephen Shaw
no nic
Decriptor's Blog
» Kernel presentation by Greg Kroah Hartman

One of the guys that I work with sent me this link.  Its a really good presentation that GKH gave at Google Tech Talks.  For those that don’t know who GKH is, he is a Novell employee that started the Linux Driver Project.  There were some really cool stats about the kernel and its development in there.  For example, on a per day basis there are 4,300 lines added, 1,800 lines removed, and 1,500 lines modified on the stable kernel (2007 - 2008). You have to watch to see the rest.

August 7, 2008

=Utah Open Source=
Utah Open Source
The Utah Open Source Foundation
» Introducing: Ogden Area Linux User Group (OALUG)

Open source enthusiasts in the Weber and Davis counties have a local user group they may participate in. The Ogden Area Linux User Group, or OALUG, meets in-person the last Tuesday of every month at 7:00pm in the Weber County Main Library. Directions and a map to the meeting location are located on the OALUG website.

OALUG also has an active mailing list which can be used by members seeking answers to questions, suggestions when trying to solve a problem, or just shooting the bull with like-minded geeks.

Seth House, current president of OALUG, said “The Ogden Area Linux Users Group (OALUG) is a group of professionals who share a love and a passion for Linux, regardless of distribution. The group serves Weber, Davis, and Morgan counties. We welcome absolutely anyone who is interested in Linux, or Free and Open Source Software, to participate and help run the group.” If you are interested in being a part of the OALUG, simply subscribe to the mailing list or show up to a meeting!

Update:  We made a couple of errors in this post.  OALUG meets at the Weber County Main Library (not Weber State Library) and we had the link to their website incorrect.  These errors have been fixed.

August 6, 2008

Aaron Toponce
atoponce
Aaron Toponce
» Linux Must Be Laughable

Today, I found myself featured on the Linux Haters Blog. I’ve heard of this blog before, but didn’t give it much thought, as most of the posts coming from the author are nothing more than Microsoft fan-boy fanaticism. It’s hard to take any of the posts seriously. After reading his post regarding a couple of mine, I just thought to myself, “Oh, brother. Is this guy for real, or is he all about the press, leading many, many readers on?”. I spent some time on the blog, digging through posts and comments, and I could find nothing intellectual stimulating conversation above “Linux SUX, Windows RULES!”. So, this post is challenge the author to produce something intellectual that will actually show some logic behind his posts (and maybe the commentators behind their comments).

My challenge is a simple question: What does it take to make a stock Microsoft Windows install usable? Let’s take a look, comparing a stock XP Professional install with an Ubuntu 8.04 install, and see who wins out.

First, let’s look at the installer itself. I’m a system administrator, and I want to get XP and Ubuntu installed as quickly as possible on as many machines as possible. What flexibility do I have with the Windows XP Professional CD as far as meeting this need? Well, as far as I can see, I only have the CD to do the install. I have to sit through each screen by hand, clicking through the dialogs one by one until the install finishes. During this install, I am plagued with entering in a different serial number in each computer, unless I was able to purchase a multi-install key, which I still have to enter by hand on each machine. Because I’m limited to only optical media for my installation method, it will take about 45 minutes to complete a single install. Of course, most administrators would use some disk imaging software, like Norton Ghost, but that means I need to purchase a 3rd party utility to make this task successful. With Ubuntu however, I have the ability to install the operating system automatically using a few built-in utilities. Kickstart, Pressed and the hybrid Kickseed give me the ability to completely automate the install hands off. Further, Ubuntu gives me the ability to use repositories where the software for the operating system exists. I can access these repositories via HTTP, FTP or NFS. Just being on a 100baseT full switched network will be incredibly faster than CDROM. I can complete a fully Ubuntu 8.04 desktop install in less than 15 minutes– on ALL machines.

Second, let’s compare security on the operating systems. With Ubuntu, by default, if services are setup, they are only listening on the local interface, localhost. Coupled with AppArmor, I have a Mandatory Access Control system keeping my processes in check with my files. A default firewall is disabled, but can be enabled with the Netfilter kernel module, and built easily with the uncomplicated “ufw” command. Users created on the system are not administrators, so system-wide security vulnerabilities introduced through the user and highly improbable. Antivirus software, as well as software needed to remove malware, spyware, etc. is not needed, as the security design behind the operating system does not let this software grow beyond the user’s home directory. Updates will most likely be waiting on first boot, to patch any security vulnerabilities and bugs with the system. Updates will be ongoing frequently throughout the time using Ubuntu. On the other hand, Windows XP has left me with absolutely nothing. No firewall software. No MAC software, although Vista with UAC addressed this. Newly created users on the system are administrators by default, so creating havoc on the box, and even the network, is as easy as getting online. The latest service pack will be waiting for me, and updates will be continuous throughout my use of XP. Windows has shown a bad track record with viruses and badware, yet on a default install, I’m left with nothing to guard myself. Sure, there are third party utilities to help me address these issues, but I will need to purchase them separately, and get them installed after XP finishes its install. Further, the default services are listening on all interfaces, making me vulnerable to an attack.

Now on to productivity software. After installing these machines, I need them ready for the corporate environment. I’ll need email clients to synchronize with my backend servers, regardless of what they’re running. I’ll need office productivity software in the way of word processing and spreadsheets. I’ll need PDF creators and viewers. I’ll need a compressing utility, as well as encryption, due to the nature of sensitive emails. Instant messaging is a must for internal communication. With Ubuntu, OpenOffice.org is shipped and installed by default providing the employees the necessary tools to begin working. Evolution is provided for email communication, which gives me the ability to connect to POP3(s), IMAP(s) and Exchange servers. Ubuntu ships with Evince as the default PDF viewer, and a PDF “printer” is installed by default, giving me easy access to create PDFs. Three compression utilities, zip, gzip and bzip2, coupled with GNU tar, give me the ability to archive and compress anything on disk. GnuPG is installed by default for encrypting those sensitive emails. Lastly, Pidgin is my mult-protocol application for using instant messaging, giving me the ability to connect to Jabber, MSN, Yahoo, AIM, ICQ, Novell groupwise, and many, many others simultaneously. As for Windows, I have Notepad and Wordpad installed for my “word processing”. There is no spreadsheet application installed. Outlook express is available as a minimal email client. There is no PDF creator or viewer. Zip is provided for compression, but no encryption application is installed. A Windows Messenger application is installed for instant messaging. Of course, many third party utilities can meet many of these needs, but none of them are provided by default

Lastly, the need for remote administration. Being a system administrator, I’ll need the ability to connect remotely to each machine, and administer it as needed, whether stuff breaks, I need to install/remove software, or other administration tasks. XP Professional has given me the ability to utilize the RDP protocol through remote desktop. RDP uses encryption by default, however, due to the nature of XP, I can only login via RDP when the user on the other end has logged off. XP only allows a single user logged in at any given time. Unfortunately, however, there is no scripting language provided by the operating system, so writing simple scripts to automate tasks for me is not possible. Again, I can install plenty of third party utilities to meet these needs. On the other hand, Ubuntu has given me OpenSSH, which also does encryption by default. Further, because Ubuntu is a mult-user operating system, I can administer the machine while the user is still using it. Installed are several different scripting languages and compiled languages to make automating tasks a breeze. Perl, Python, BASH, C and C++ are all installed by default.

Looking at these comparisons, Ubuntu 8.04 comes well ahead as a usable desktop on a default install where Windows horribly fails. This recalls to mind the Mac and PC commercials. Remember the first commercial, where Mac and PC were “born” by being unboxed? Mac was ready for primetime, while PC had service pack updates to process, third party utilities to install, and security software to configure. It was going to be a while before PC could be on the same usable level as Mac out of the box. I’m seeing the same thing here.

After a default install, I could see several scenarios where a default install just wont meet my needs, but third party utilities will. Norton Ghost, Microsoft Office, McAfee Antivirus, Windows Defender, Lavasoft Adaware, Spybot Search and Destroy, PGP, PDF utilities, better IM client, scripting language, and so forth. The third party list for getting a usable Windows desktop gets long fairly quickly.

So, I guess Linux must be laughable. It sure isn’t an operating system defective administrators would want to use. It just makes life too easy, both for the user and the administrator.

August 4, 2008

Aaron Toponce
atoponce
Aaron Toponce
» Windows-Free Update

Since losing Windows XP Pro to a slew of viruses, malware, trojans and any other form of badware, our family has been getting along fine with Ubuntu and Mac OS X. I mentioned that my wife would have some growing pains associated with the learning curve that is Linux. However, I’ve noticed that while she misses her beloved Microsoft Office, she’s actually not missing much. What she is really missing, is being a school teacher, and integrating technology into her classroom (since having a child, she opted for being a full-time mom). She’s been patient learning OpenOffice.org, of which I think she’s actually enjoying. Further, to increase her skill set for her resume, she has asked me to train her in depth with Linux, so she can teach others should she ever go back into education. That’s my girl!

Now that our family has made that switch, it’s sparked some key interest from other family members and friends about how we can live “Microsoft-free”. It’s interesting to see people think that Windows is all there is in the world. I’m asked how I cope with the lack of apparent software, my reasons for the switch, and how my daughter will grow up in a Microsoft-free environment. They’re even critical that when our daughter grows up in school, she’ll have to “face the music”, and learn Windows anyway, so I might as well teach her now. Well, of course I’m hopeful that in the future, we won’t have just one operating system controlling the market, but that choices will abound a plenty– Windows, Linux, Mac, BSD, Haiku, etc. I guess time will tell.

So, as it sits, my wife is ever-so-patient with me, and learning quickly. Our family is moving forward, and our computing infrastructure has remained intact.

August 3, 2008

Stephen Shaw
no nic
Decriptor's Blog
» Off to Linux World Expo

I’m sitting in the airport waiting to head out to San Francisco.  Starting tomorrow as many know is Linux World Expo.  I’m really excited and can’t wait.  I’m going so that I can help with the opensuse booth.  This year there is an openSUSE community day.  If you go to that link there is a list of the events.  They have some really good presenters that will cover some really cool topics.  So, if you are passing though make sure that you stop by the openSUSE community day.  I can’t wait!

From what I understand there are some really good booths to stop by as well,  One of them is Linux Journal.  I’ve been working with them to get our conference in their magazine and the person that I was talking to said there will be some sort of really cool secret swag this year.

If you are going to be there, I’ll see you then.

August 1, 2008

Aaron Toponce
atoponce
Aaron Toponce
» For The Love Of Unix

There’s been something that’s been on my mind as of late, and it’s been bothering me enough that I’m finally blogging about it, and that’s the hypocrisy that is the Linux community. If I’m way out of line, let me know. If I’m off base, let me know.

To start, I’ll begin with the phrase that we’ve all heard: “Linux users use Linux because they hate Windows. BSD users use BSD because they love Unix.” I can’t emphasize how true that statement is. I’m subscribe to several mailing lists, I subscribe to hundreds of RSS feeds, I visit forums semi-regularly, I’m on IRC 24/7 in plenty of channels. You want to know what I see?

M$, Microshaft, Micro$oft, Win-blows, Windoze, and so on and so forth.

Is this really becoming of the Linux community? Have we really stooped so low? Yet, as Ubuntucat mentions in his blog, at first sign of a Linux user struggling with his/her Linux install, the first thing we shout as a community, is “Go back to Windows then!”, or “Don’t let the door hit you on the *** on the way out.”

Wait, what?

I find this rather unfortunate. Aren’t most of us computer users, because of the science that is computing? Don’t all operating systems have something to bring to the table? I would think that we use Linux, not because we hate Windows, but because we want to learn about Linux. We want to learn the Unix way. Computing should be fun, not filled with animosity.

As I’m not entrenched in the BSD community, I can’t speak for their behavior, if such mentality exists or not. However, the BSD users that I have come in contact with definitely love their operating system. In fact, I’ve learned more about Linux from BSD and Unix users than I have from Linux users. And yet, I never hear a bad word about Windows or Microsoft. If brought up, it seems to be logical concerns, and clearly states as subjective. Doesn’t the Linux community make blanket statements about Windows, concerning its security or stability?

Now, with that said, I recently ditched Windows in our home, as we got hit with a virus, and got hit hard. Rather than spend hours cleaning it up, not even sure if I rid myself of everything, I opted for wiping the computer clean, and moving strictly to Ubuntu or Mac OS X. It was a personal choice due to the fact I didn’t want to administer an operating system I knew little about. Plus, I’m excited to use Ubuntu. It’s a fun operating system.

Now, I know I’ve been guilty of calling names in regards to Microsoft and Windows. I’m not saying I have a clean slate, and I’m certainly not on a pedestal higher than anyone else. However, I do think we need improvement in this area. Windows may not be my favorite operating system, but belittling it, and the users who use it, does nothing for us as a community. It’s time to move past this, and embrace Linux for what it is, not for what it’s not. We aren’t any better than anyone else, because we use Linux. Windows users aren’t beneath us because of their choice to use proprietary software. Each has a different philosophy and reason for their actions.

So, let us get past this ridiculousness. Let’s start learning and advocating Linux, because we love Unix. Let’s bring excitement to the table with Linux. As a system administrator and trainer myself, I love learning everything I can about Linux, and it’s fun to see the exciting new advancements on the Linux and Unix arena. Windows is a good operating system. Give credit where credit is due. Make criticisms based on logic and understanding. Understand, that Linux and Unix isn’t perfect either. Flaws aplenty abound in our world. Learn those flaws. Learn the strengths. For the love of Unix.

July 30, 2008

Aaron Toponce
atoponce
Aaron Toponce
» All Operating Systems Turn To Unix

My Guru Labs coworker mentioned something to me today, that our boss mentioned to him (or a class, who knows), and that is that every operating system turns to Unix eventually. Thinking about this for a second, he’s right.

First, there are the obvious Unix-like operating systems such as GNU, Linux, Minix, and others. Their intention is to be as Unix-like as possible, while maintaining different goals. Of course, these started out as Unix clones, and will stay that route, so not much to say here.

Then, there was the Apple Macintosh. Developed completely on its own, apart from any code base. It had a loyal fan base, and good features. When Steve Jobs returned to Apple, the first thing to do, was refresh the operating system. Based on Nextstep along came OS X. Built on a hybrid Unix kernel and pulling many implementations from FreeBSD, it’s as Unix as Unix gets, with a pretty GUI. Apple even prides itself in advertising that OS X is Unix under the hood. Not to mention, as a company, Apple had its hands in a Unix derivative, specifically A/UX.

Some of you may remember BeOS. It was the little operating system that could. Technically, it was not a Unix-derivative, and worked hard to stand on its own. Yet, it had many features that to the lay user, would make him think he’s on a Unix machine. The BASH shell was ported to BeOS and it remained POSIX compliant. It also used a single-rooted Unix-like directory structure, with a 64-bit filesystem and preemptive multitasking, uncompromising characteristics on any standard Unix-clone.

Finally, Microsoft Windows. Just as with Apple Computer, Microsoft had its very own Unix called Xenix. I’ll spare you the history lesson. Suffice it to say, Microsoft put a lot of money and research into Xenix, until they sold it to SCO, and decided on OS/2 with IBM. After abandoning OS/2, they placed their focus with Windows NT. First and foremost? Take the TCP/IP networking stack from BSD Unix, and incorporate it internally. The next major move towards Unix was PowerShell, a Unix-like, POSIX compatible .NET framework shell for Windows “power users”. Of course, those on Vista are becoming familiar with User Account Control, a mandatory access control system, seen on Unix-like systems for a bit now.

July 27, 2008

Hans Fugal
no nic
The Fugue :
» VMWare Server on Hardy

I had a heck of a time getting VMWare Server running on Ubuntu 8.04 (Hardy Heron). The problem is that the vmmon and vmnet modules fail to build against kernel 2.6.24. A little googling quickly reveals that you want the any-any-update patch, but that didn't work for me either. To be specific, vmware-any-any-update117c.tar.gz did not work. It turns out vmware-any-any-update-116.tgz works great. Maybe 117 is for the 2.6.25 kernel or something.

So, you do the vmware installation except for the vmware-config.pl step. Then you download and extract the above tarball and run runme.pl. Simple enough.

But when you try to run it, you get errors like this:

/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

I'm not sure what the right way to fix this is, but this way works for me.

sudo cp /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/

July 22, 2008

John Anderson
sontek
sontek ( John M. Anderson )
» Firefox Plugin for Tomboy

A great new Firefox plugin has been created that allows you to create new Tomboy notes from selected text in Firefox, check it out here.

July 16, 2008

=Utah Open Source=
Utah Open Source
The Utah Open Source Foundation
» Introducing the Provo Linux User Group (PLUG)

This is the first of many articles to come introducing our readers to the organizations associated with Utah Open Source. Today, we bring you one of the oldest Linux user groups in existence, let alone in Utah: the Provo Linux User Group (PLUG).

PLUG was first formed in 1994 by two then-students at BYU, Thayne Harbaugh and Mike Handy. Thayne and Mike had wanted to form an on-campus student organization for enthusiasts of Linux, but were unable to find a faculty member willing to sponsor its creation. Undaunted, they created PLUG as an off-campus organization.

This was during the early days of Linux and the Internet. The fact the plug.org domain name was available is one example of how early this was; The Intel Pentium CPU was brand new and most geeks were running 386 and 486 CPUs with less than 1GB of hard drive space; Internet service was still a novelty and most connections were made over serial modems at 9600 bps to 14.4Kbps.

The Linux community was young, still driven mostly by volunteers coordinating through online groups. However, 1994 would be the year Red Hat, SuSE, and Caldera would all release the first versions of their respective distributions, thus kicking off the fast-paced commercial Linux distribution race.

PLUG began holding its meetings the second Wednesday of every month — a tradition that has stood the test of time — at various venues around Utah Valley including the Canyon Park campus, The Palace, and at CEDO.

After the first five years of PLUG, the original founders were either moving out of the area, getting busy with work-related (Linux, of course) tasks, or just feeling it was time to pass the torch. Jason “Jayce^” Hall suddenly found himself holding said torch and carried PLUG through the next several exciting years until 2007 when Jason stepped aside to become more involved with UTOS and Ryan Simpkins took the helm.

Over the years PLUG has hosted several special engagements with impressive speakers such as John Terpstra and Steve French of the Samba project, Perl guru and O’Reilly author Damian Conway, and Miguel de Icaza of the Gnome project. Over the course of several Summers, PLUG has held annual barbecues for members and their families which also included surplus swap meets where members could trade or sell old hardware.

PLUG has a member mailing list which varies in the amount of traffic it gets. Most of the time, the list sees fairly low to moderate traffic, but occasionally will fill its members’ mailboxes with spurts of off-topic discussions. PLUG hosts archives of these highly intellectual discussions at http://plug.org/pipermail/plug.

The PLUG website is firmly located at http://www.plug.org/ and, as mentioned above, meets (with some very, very rare exceptions) the second Wednesday of each month at the Omniture building in the Canyon Park campus.

July 14, 2008
» Use Vim As A Syntax Highlighting Pager

It has been some time since I’ve done a Vim Tip of the Week, but I came across something today that I thought I would share.  This tip will allow you to use Vim, with all its syntax highlighting glory, as a pager (similar to less or more).

If you use cat or less or more regularly to quickly view files, but you’d like to keep the same syntax highlighting that you’d get in Vim you can use an included config that makes Vim act as a pager.  Setup the following within your .bashrc file, or wherever you keep your shell aliases:

alias vless='vim -u /usr/share/vim/vim71/macros/less.vim'

You’ll then need to re-read that file, which can be done using:

. .bashrc

At this point you can use vless to view a file, which will use the beloved syntax highlighting.  Normal pager shortcuts should work.  q to quit, / to search, pg-up, pg-dn, etc.

Random Posts

July 12, 2008

Lonnie Olson
fungus
LonnieOlson
» DNS Exploit News

After reading all the details about the “new” DNS exploit I feel quite annoyed. These types of attacks have always been possible. This isn’t new. Cache Poisoning has always been on every DNS server administrator’s check list of things to carefully plan to prevent. I compare it to Firewalls: Every firewall administrator knows that best practice is to block everything by default and only make exceptions for what should be allowed.

This idea has been around for well over a decade. Maintaining a discrete list of what is allowed which can be completely enumerated with a great level of confidence and block the rest. Badness cannot be enumerated completely. Blacklists will always be missing important aspects. Expecting that all people are good and don’t do bad things will always turn bad.

Patches released for DNS services that are vulnerable do not fix the root cause. It can’t be fixed because it is part of the original specification and migrating away from it will be equally as painful as the migration to IPv6 is. These patches only implement other kinds of mitigation for the exploit. The best form of mitigation comes in the form of implementing standard best practices that have been around for many years.

DNS servers should carefully control who is allowed to ask questions about non-authoritative zones (recursion). DNS servers at ISPs should limit recursion to customers only. Corporations should run internal recursive DNS servers with access restricted to internal users only. This will severely isolate any damage caused by cache poisoning.

I am not saying nobody needs to patch their servers. In fact the patches should be applied quickly because it does help quite a bit. I am just saying that if you have already implemented best practices you shouldn’t have to worry very badly. And if you haven’t implemented them, do it now!

July 11, 2008

Stephen Shaw
no nic
Decriptor's Blog
» PC World, Linux examined by the ‘informed’

Well I’d talk about the article, but well you are just going to have to read it.  Just a quick gem though from the article:

The big question is: Given that Red Hat bases its Fedora distribution on OpenSUSE, and that Fedora and OpenSUSE are both distributions with advanced features intended for power users, why would you pick one over the other?

openSUSE Examined

July 10, 2008

Hans Fugal
no nic
The Fugue :
» k20

I finished the promised K-20 meter. I imaginatively called it k20, and you can find it at http://hans.fugal.net/src/k20. Here's a screenshot:

k20 screenshot

From left to right, read average (VU), peak (instantaneous with 26 dB / 3 sec falloff), maximum peak, and overs.

This is pure unadulterated printf() abuse. No ncurses. Not that I have anything against ncurses, just that I'm lazy. Of course you need an ANSI capable terminal, but I'm sure you can find one lying around.

July 9, 2008

Marc Christensen
no nic
Mecworks
» SLLUG Meeting, July 16, 2008: KVM, the Kernel Virtual Machine

Stuart Jansen from Guru Labs will be presenting on KVM kernel based virtual machine at SLLUG this month. Here’s the announcement for next week’s Salt Lake Linux Users Group meeting:

This month’s Salt Lake Linux Users Group meeting will be on KVM, the Kernel Virtual Machine, presented by Stuart Jansen.

Presentation:

KVM, the Kernel Virtual Machine, is a Linux kernel module that turns a normal Linux kernel into a hypervisor. Many kernel developers feel this is a superior design to Xen. Stuart Jansen, from Guru Labs, will discuss virtualization with an emphasis on KVM, its advantages and disadvantages.

More information and links at : http://en.wikipedia.org/wiki/Kernel-basedVirtualMachine

Time and place:

    Date:  Wednesday July 16, 2008
    Time:  7:10pm
    Place: Warnock Engineering Building (WEB) room 101
           (Previously known as EMCB)
    Cost: $0.00. Zip. Nada.

Directions/Parking:

Directions - [http://www.map.utah.edu/index.jsp?find=62] Parking can be found just East of the WEB building and there is a big lot just North of the Merrill Engineering building (MEB). Parking is free after 6:00 (Based on the signs posted. Always check in case this changes.)

Special thanks go to:

  • Prof. Lepreau and the U of U for providing the meeting room.
  • Various Volunteers


Scott Morris
nexangelus
OpenSUSE Linux Rants
» One of the Greatest Linux Tools Yet

From the OpenSUSE Newsroom:

The openSUSE Project is proud to announce the 1.0 release of the openSUSE Build Service. The 1.0 release provides all the features necessary to support building openSUSE in the public build systems and allowing direct contributions to openSUSE from all contributors. Developers can now submit contributions to openSUSE directly at build.opensuse.org.

The openSUSE Build Service allows developers to create and maintain packages for openSUSE and many other Linux distributions, including CentOS, Debian, Fedora, Mandriva, Red Hat, and Ubuntu. With the 1.0 release, the openSUSE Build Service expands its scope to building the entire openSUSE release, and provides everyone with the same access and transparent interface to work on the openSUSE distribution.

The openSUSE Build Service has offered a simple collaboration system since its inception for groups to work closely together on packages or solutions stacks. The 1.0 release improves on existing functionality to allow the Build Service to scale to larger projects like openSUSE’s Factory distribution, and to allow building openSUSE’s stable releases in the open.

What the changes mean for contributors:

  • Anyone can find a package’s working copy as maintained by the official packager or packaging team. Contributors can submit changes against the working copy.
  • The submission handling and notification system has been put in place, allowing any contributor to request a merge of their changes to a project.
  • Quality assurance happens before contributions are merged. Test builds of a suggested change are accessible to anyone.
  • Improved branch handling. It is easy to set up a branch of a package. The branch will build in the same way as the original package, but can be modified.
  • Source handling is improved in 1.0. It’s now possible to easily maintain a branch, and modifications are stored without creating a full copy. This makes it easier to maintain features based on the latest copy of package. The Build Service builds the latest packages, including modifications, automatically.

The majority of this functionality is implemented on the server side. The rest can be implemented by the various Build Service clients, so that contributors can take advantage of the new features.

The Build Service team has also introduced a number of smaller improvements and bugfixes to make the system more scalable and usable.

The openSUSE Build Service is now considered “feature complete” for collaboration. The Build Service team is looking for additional feedback on improving the openSUSE Build Service as it will now be the standard tool for working on the distribution.


Hans Fugal
no nic
The Fugue :
» opg ftw

Few things about programming (in most languages) are less enjoyable than writing option parsing code. On the other hand, few things are more irritating to users than no -h and no options where options are needed (or underdeveloped option parsers). In few languages is it more painful to do option parsing than it is in C.

So I did what any sane lunatic would do. I wrote an option parser generator. I think it's quite nice. This input:

usage: foo [options] other stuff 
-f --foo          bool     Short name, long name, type, help text.
-b --bar=name     char*    This has a required string argument.
-z --baz=decibels int?     Optional integer argument
-q --quux=MACH    float    char*, int, and float are the recognized types

Any line not starting with a dash is copied into the help message verbatim.

becomes this output (a header and source file):

/* This file is automatically generated by opg */
#ifndef _OPG_H
#define _OPG_H

struct options {
    int   f; /* foo */
    char* b; /* bar */
    int   z; /* baz */
    float q; /* quux */
};

/* Print usage and exit(1) */
void usage(void);

/* Parse options, populate opts, adjust argc/argv */
void parse_options(int *argc, char * const *argv, struct options *opts);

#endif


/* This file is automatically generated by opg */
#include "opts.h"

...

void usage(void)
{
    puts("usage: foo [options] other stuff");
    puts("  -f  --foo             Short name, long name, type, help text.");
    puts("  -b  --bar=name        This has a required string argument.");
    puts("  -z  --baz[=decibels]  Optional integer argument");
    puts("  -q  --quux=MACH       char*, int, and float are the recognized types");
    puts("");
    puts("Any line not starting with a dash is copied to the help message verbatim.");

    exit(1);
}

void parse_options(int *argc, char * const *argv, struct options *opts)
{
    ...
}

http://hans.fugal.net/src/opg. Enjoy.

July 8, 2008

Scott Morris
nexangelus
OpenSUSE Linux Rants
» Linux T-Shirt of the Year

People seemed to have a good time with my last Linux T-shirt post, so here’s another one for you. I really like this one:

Linux T-Shirt

Click for a slightly larger version.

So again, where can I get one of these?

» If you haven’t already, take a look at Flash 10 for Linux

If you haven’t already, take a look at the new features available with the new Linux Flash 10 Beta. Such new features include:

3D Effects

Custom Filters and Effects

Advanced Text Layout

Enhanced Drawing API

Visual Performance Improvements

Enhanced Sound APIs

More information can be found at the link posted above.

The Flash 10 plugin is available both as a gzipped tarball and as an RPM.

July 4, 2008

John Anderson
sontek
sontek ( John M. Anderson )
» Advanced file permissions in Linux

A lot of Linux/openSUSE users aren’t aware that there are more to file system permissions than the obvious Owner, Group, Other / Read, Write, Execute setup.

All major Linux file systems (ext3, reiserfs, etc) support access control lists (ACL) and its very easy to use them.

To see if a file or directory has an ACL set on it, you can use ls:

inspidell:~ # ls -ld /home/sontek

You’ll get output similar to this:

drwxr-xr-x+ 55 sontek users 4096 Jul  4 13:42 /home/sontek

The + at the end of the permissions means that we are using extended permissions (ACL’s). To get the list of ACL’s on the file/directory, run the getfacl <file> command.

inspidell:~ # getfacl /home/sontek
getfacl: Removing leading '/' from absolute path names
# file: home/sontek
# owner: sontek
# group: users
user::rwx
group::r-x
other::r-x
default:user::rwx
default:group:users:---
default:mask::r-x
default:other::r-x

This shows both the ACL’s and the basic Linux permissions.

To modify or set ACL’s you use the setfacl command. Here are a few examples of how to use it:

Grant a single user read access to a directory in your home directory.
setfacl -m u:mom:r /home/sontek/photos

Remove all access from a group on a file
setfacl -x g:developers payroll.xml

You can also copy a set of permissions from one file to another
getfacl file1 | setfacl --set-file=- file2

Remove all ACL’s
setfacl -k /home/sontek

For those of you who are not console jockey’s, you’ll realize quickly that the default nautilus setup doesn’t have a way to view, modify, or add any ACL’s, to get this support you’ll need to install two packages, with opensuse you do this with zypper:

inspidell:~ # zypper in eiciel nautilus-eiciel

Before the ACL permissions show up in nautilus, you’ll have to restart it:

inspidell:~ # pkill nautilus

After this, you’ll be greeted with a very easy to use dialog for modifying ACL’s:
Screenshot of FACL permissions

another great nautilus permissions tip I learned from Christer Edwards is to enable advanced permissions in nautilus, this is a much better UI for managing permissions and should probably be the default.

gconftool-2 --type bool --set /apps/nautilus/preferences/show_advanced_permissions True

A screenshot of this in action:

Screenshot of nautilus advanced permissions

I hope this helps you better secure and manage your computer with the more advanced features your Linux file systems both from console and inside GNOME.

» TCP: Treason Uncloaked?

Today, considering it is a holiday here in the US, I figured I’d take a day off from the tutorials and ask a question of you.

All of my servers run logwatch (which will make for a great tutorial coming up soon), and I pretty regularly see something like this in the daily output:

--------------------- Kernel Begin ------------------------

1 Time(s): TCP: Treason uncloaked! Peer XXX.XX.XX.XXX:XXXX/XX shrinks window 1898670412:1898670413. Repaired.
1 Time(s): TCP: Treason uncloaked! Peer XXX.XX.XX.XXX:XXXX/XX shrinks window 1911943385:1911943386. Repaired.
1 Time(s): TCP: Treason uncloaked! Peer XXX.XX.XX.XXX:XXXX/XX shrinks window 1922304386:1922304387. Repaired.
1 Time(s): TCP: Treason uncloaked! Peer XXX.XX.XX.XXX:XXXX/XX shrinks window 1922444120:1922444121. Repaired.
1 Time(s): TCP: Treason uncloaked! Peer XXX.XX.XX.XXX:XXXX/XX shrinks window 1949802160:1949802161. Repaired.

———————- Kernel End ————————-

I’m not really sure what that means, but if anyone can offer me some feedback I’d appreciate it.  So far I’ve seen conflicting answers from basic Googling.

Random Posts

July 2, 2008

John Anderson
sontek
sontek ( John M. Anderson )
» Get the changelog of a package with rpm

Ever run system updates in Linux (i.e openSUSE) and get a package that doesn’t seem to be changed and wonder why the update was pushed? Or just interested in following the latest changes to some of your favorite Linux packages?

With rpm you can view all the latest changes in an easily to read format. To get the changelog of a package with rpm you do the following:

$ rpm -q --changelog <package> | less

replace <package> with whatever ever package you would like to see the changelog for (i.e rpm -q –changelog banshee-1 | less)

This is for rpm based Linux distributions (i.e openSUSE, Redhat)


=Utah Open Source=
Utah Open Source
The Utah Open Source Foundation
» Announcing a UTOSC keynote speaker: Joe Brockmeier

The 2008 Utah Open Source Conference is coming up fast (August 28-30). We are going to continue to give you reasons to be very excited (as we are) to attend UTOSC 2008 until the very end.

We are very pleased to announce one of the keynote speakers at this year’s conference will be none other than Joe “Zonker” Brockmeir of Novell and the openSUSE project.

Joe’s keynote presentation, titled “How to bootstrap a community,”  is sure to be interesting considering his background. What started with purchasing a copy of Slackware in 1996 turned into nearly a decade-long career writing about Linux and the open source community and industry for a variety of high-profile tech publications. Prior to being hired as openSUSE Community Manager for Novell early this year, Zonker spent time as Editor-In-Chief for Linux Magazine and as editorial director of Linux.com. His writing background also include contribution to many books, HOWTOs and other technical documents.

While his job at Novell is primarily centered around supporting and promoting the use of the openSUSE Linux distribution, Joe’s been quoted in a few recent interviews saying he’s committed to advocating the use of all forms of Linux and open source software.

Joe Brockmeier’s keynote presentation will undoubtably hold special value for users of the openSUSE and SUSE distributions, but considering Joe’s experience and knowledge about the Linux and open source industries over the last decade or so, this presentation offers great potential value for any UTOSC attendee.

A blurb about the conference

The 2008 Utah Open Source Conference is the second annual gathering of open source enthusiasts in Utah. Following the amazingly successful first conference held in 2007 at Novell’s Open Source Technology Center in Provo, UT, this year’s conference is being held on the Redwood campus of Salt Lake Community College near Salt Lake City.

For more information about this conference, to register to attend, or to see a really neat website driven by open source software, go over to <http://2008.utosc.com/>.


John Anderson
sontek
sontek ( John M. Anderson )
» Get build dependencies with zypper

When you are working with the source of a new package on openSUSE and aren’t familiar with all of its dependencies, it gets quite annoying running the normal Linux autconf commands–./autogen.sh, install missing dependency, rinse, wash, and repeat–until you finally have everything you need installed.

zypper makes this easy for us with the following command:

$ sudo zypper si -d <package>

You replace <package> with whatever package’s build dependencies you need.

June 25, 2008

Scott Morris
nexangelus
OpenSUSE Linux Rants
» 20 Reasons Linux Users Like Linux (and you might, too)

One of the major inhibitors to the spreading of Linux, as I see it, is that people don’t know why they should try it. Other reasons may include lack of support for their favorite game, or that Photoshop doesn’t run on Linux. For those of us who weren’t stopped by those reasons, why did we switch? What is it about Linux that makes it a viable alternative?

A couple of weeks ago, I posted an article called “Major Linux Migrations: An Unbelievable List of Nearly 100 From Around the Globe.” One reason for this is so that people could gain a perspective of just how many migrations have taken place. And that list doesn’t even include them all.

The next question might be, “Well why do people find Linux attractive?” It does not support your favorite game. Photoshop does not run on it. There must be reasons for using it that are more compelling than the reasons for not using it.

A few hours of study and research revealed some eye-opening and thought-provoking reasons that Linux users like using Linux. What you’ll like about this is that I made every attempt possible to keep it objective. This study is available as a free ebook from my blog at OpenSUSE Linux Rants. To get your copy, take a look in the upper-right hand corner of the site.

I decided to replace the detractive Linus quote with something more constructive.

In addition to the “Why Linux?” ebook, there are several others available, including:

openSUSE 11.0 - Start-Up Manual (228 pgs, by Novell) This manual provided by the good folks at Novell goes over many things you’ll want to know when learning to use openSUSE Linux 11.0.

Investigation 101 - Gathering Information about Hardware, Filesystem, and Processes (22 pgs, by Scott Morris) Sometimes, you need to gather information about your Linux system. This can be so that you know what is happening on your machine, or so that you can install hardware, or so that you can better describe details to other people who are trying to help you resolve an issue. This book provides different methods of gathering such information.

YAST - Installation and Management of Software (23 pgs, by Scott Morris) One of the very first things that users need to know is how to install software in Linux. This book is a no-nonsense introduction to mastering the basics of using YAST to manage your system software. It also provides a few tips on how to get all the latest software from all the great servers.

The Easiest Linux Guide You’ll Ever Read - an introduction to Linux for Windows users (162 pgs, by Scott Morris) In 2006 I published this book for SUSE 10.1, though almost all of it is relevant to openSUSE 10.2 and 10.3. It was mainly written for people who are competent with using Windows, who have never attempted to use Linux but are interested in giving it a try.

openSUSE 10.3 - Start-Up Manual (258 pgs, by Novell, 09/14/2007) Start-up manual provided by Novell for openSUSE 10.3.

openSUSE 10.2 - Start-Up Manual (236 pgs, by Novell, 11/29/2006) Start-up manual provided by Novell for openSUSE 10.3.

I’ve gotten lots of great feedback on those that I wrote.

If you don’t get anything else from this article, make sure to glean this gold nugget: The Start-Up Manual for each release is included directly on the install disc itself! This is true for the DVD, although I did not see it on the CDs.

Throw your DVD into your drive and mount it. Go into the /docu folder in the root of the DVD. You’ll see an ‘en’ directory and a ‘de’ directory. ‘en’ is for English and ‘de’ is for German. In each respective folder, you’ll find at least 4 excellent ebooks. One to get started quickly with Gnome, one quickstart for KDE, a reference, and a startup guide for openSUSE.

Remember, kids. When you download your new DVD ISOs, head to the /docu folder for the free startup guides.

For those not available on the DVD, you can always check my library.

June 24, 2008

Doran Barton
fozzmoo
Fozzolog
» Review: Samsung Instinct as a replacement smartphone

I've had a Palm Treo 700p for a couple years and a Treo 650p before that, both with Sprint as a wireless carrier. The 700p acted up a few months ago, so I took it into a Sprint repair center. They promptly wiped it, upgraded the firmware and gave it back to me as "fixed." Only, it wasn't fixed. I'm not sure, but I think the firmware they upgraded me to wasn't intended to ever run on a 700p, but I'm not sure. As a result, the phone has kinda-sorta worked since then.

I've read on Engadget about a new phone exclusive to Sprint from Samsung called the Instinct. At first glance, it looks eerily similar to an Apple iPhone, but as I read more about it, it looked like it might be a good fit for me.

Boy, was I wrong.

instinct-250x325.jpg

Before I go into some specifics, let me just say that Samsung and Sprint can easily save this phone. All they need to do is open it up just a little more and listen to the "corporate" users.

What I liked

One thing I liked about the Instinct is that it does not run Windows Mobile. I've avoided Win-Mo on principle, but have helped other people with problems on Win-Mo devices and have experienced the frustration that is running Win-Mo. Using a Palm Treo vs. a Win-Mo Treo is the difference between night and day. One operates like cold tar (and has a lower video resolution) while the other is relatively stable and snappy.

The Instict is an awesome phone, it just isn't quite a "smartphone" and definitely isn't a geek's phone.

The "haptic feedback" is very cool: The phone generates a mild vibration when you touch an active icon on the touchscreen, thereby giving you physical feedback that you've activated a button or other onscreen feature. This goes a long way toward alleviating the "flatness" problem a lot of touchscreen devices have.

The Instinct has a very nice GPS navigation program that plots routes and gives you turn-by-turn directions. This is an amazing feature for a mobile handset that nets you $129 after rebate.

The sound quality of the phone is very, very good, both as a handset and as a speakerphone. Kudos to Samsung for that.

The web browser is "okay." It's better than the Blazer browser on the Treo, but it's not quite what it wants to be which is a browser that people will want to use more frequently than just when they're desperate for something off the Web.

The camera (still and video software is included) is, by far, the best cell phone camera I've ever used. Wow! It lacks a flash, but performed pretty dang well in low-light.

The Instinct has "visual voicemail" which is bound to become a de facto feature on new phones moving forward. Very cool.

Plugging the phone into a USB port on my laptop running Linux worked well. Linux detected a USB mass storage device and let me mount it. If I understand correctly, it's just acting as a card reader for the mini-SD card. This gives you access to all the non-phone media like pictures, movies, and music.

What I really didn't like

E-mail was a dealbreaker. The Samsung/Sprint e-mail client software tried to be very accomodating and provides wizards for setting up mobile e-mail accounts for popular webmail sites like AOL, Hotmail, Yahoo!, and GMail, but doesn't quite deliver as more than a basic e-mail client in any other regard. It does let you set up multiple POP or IMAP accounts and supports SSL-encrypted access for privacy wheres supported. However, I don't believe it's a true IMAP client because it only displays 25 of your most recent messages (I think you can bump that up to 100 in the settings) and doesn't let you access IMAP folders other than Sent, Inbox, and Trash.

Browsing HTML e-mail messages is lame because, while the Instict does take a stab at parsing the HTML, it only displays the text and does not give you any links which you can click on to view on the phone's browser.

E-mail attachment support is nonexistent.

While I don't care, the Instinct only offers a bare minimum support for Exchange users via Outlook Web Access and doesn't sync with Exchange (or anything else, for that matter).

Speaking of synchronization, Sprint does offer a remote sync feature that let's you store your contacts and other data on a remote server. The benefit of this is that if your phone is stolen or broken, you still have access to your address book. Additionally, Sprint provides a web-based facility for you to manage your contacts.

I thought this was going to be cool. I could just export my contacts from KDE's address book and import them into Sprint's web facility and, voila, all the contacts I've had on my Treo would instantly be available to me on the Instinct.

The Sprint import facility had instructions for Outlook users to export their contacts as a CSV file and even went as far as to indicate what column names were valid and would be recognized by the import routine. I tweaked the CSV file my system generated to match the column headings Sprint wanted. The import process took several minutes and then told me it couldn't import anything. Game over.

The in-phone address book is terribly lacking. For starters, there's 's no way to store a company name with an entry, only last name or first name.

Text messaging was... okay, but cumbersome.

Typing text on the Instinct is not too bad, but has some serious caveats. While the text entry routine provides spellcheck on-the-fly, it doesn't provide spelling or grammar correction on the fly at all. That seems odd considering just about every phone I've used the last ten years or so has had that. It should at least auto-conjugate and insert apostrophes when I type "cant" or "doesnt." Nope, won't do it. Even a lone "i" surrounded by whitespace on either side remains lower case. It's smart enough to capitalize the first letter after punctuation and it will highlight mispelled words (including my un-conjugated conjunctions). Tapping on a mispelled word will offer suggestions, but this is a time-consuming affair!

I registered as a developer on Sprint's Developer website hoping to create some cool third-party apps for the Instinct -- fill in some of the gaps, but got discouraged rather quickly.

In one of the developer forum posts, a developer asks, "Is there a desktop USB SDK for access to the Calendar, Notes or any other built-in data? " A Samsung developer replied: "There is no USB SDK/API supported on the Instinct."

The Sprint sales representative who helped me purchase the Instinct told me, up front, the Instinct did not support tethering so I could not use it as a wireless modem for a laptop. I thought I'd investigate that a little further before I gave up on it -- see if it looked like it would be forthcoming as an official capability or as a third-party software add-on, but it doesn't look good.

End result?

I'll be taking the Instinct back to Sprint in the next day and will either purchase a Palm Centro instead or give their technicians another shot at fixing my 700p.

Samsung and Sprint need to assign some hardware interaction and usability people to this phone. Not only are most of the applications painfully minimalistic and basic, they're not as easy to use as they could or should be. 

Again, this could be a good smartphone for Sprint if they give more attention to the needs of "professional" users.

June 22, 2008

John Anderson
sontek
sontek ( John M. Anderson )
» Achieve Zen with openSUSE 11.0 (i.e Get rid of pulse audio)

I’ve been having a lot of stability issues with openSUSE 11.0 lately and the majority of them boiled down to audio.

Here is a list of a few:

1. VLC required root to have audio, wtf?
2. Sound would crash after listening to any audio for an extended period of time (music, video, flash).
3. If my audio crashed, Firefox could not start up until I did rcalsasound restart
4. Some videos were slow/choppy.

So, you are probably asking, how did I fix all these issues?

zypper rm alsa-plugins-pulse
zypper addlock alsa-plugins-pulse

This removes the alsa plugin for pulse and locks it so it will never install again. Without the alsa plugin installed, the apps go back to using alsa directly. This has fixed every issue I’ve had with openSUSE 11.0 so far.

June 19, 2008

Marc Christensen
no nic
Mecworks
» Pidgin support for MSN sucks!

Wow, I have several friends that use MSN and I use Pidgin to communicate with them. They have told me time and time again that I always appear off line when I am not or have been on line all day. I get this message a lot: “Message could not be sent because a connection error occurred:” when sending messages to them.

It really sucks because these are people that I need to communicate with and that I need them to know when I am online. It happens from work and home. I’m using OpenSuse 10.3 x86_64 with pidgin-2.4.1. A google search reveals that this has been going on for sometime and that it has been affecting a lot of people…That’s too bad.


Gabriel Gunderson
gundy
gundy dot org
» OpenSuse 11

To all my OpenSuse friends:

In the past, I’ve made fun of your distro while you where not around.
I’ve poked fun at your package management.
I’ve installed over OpenSuse with other distros.
I’ve blown away partitions reserved for OpenSuse.
I’ve ignored your releases.

But today, that all changes. Today, I give it a fair shake.

I’ll let you know what I think in a week.

» Extend Your Battery Life With Powertop

If you use a Linux laptop and have not heard of PowerTop you really need to keep reading!  This is a fantastic tool for extending your battery life written and published by Intel.  I use it constantly on long flights and my battery lasts long enough for a cross-country flight.

Installing Powertop

PowerTop is available in the Ubuntu repositories so its a really easy installation:

sudo aptitude install powertop

Once you’ve got it installed start things up using:

sudo powertop

This application will scan your machine for 5 seconds and then tell you which hardware or application is causing the most drain on your machine.  The best part about it is that it’ll offer you suggestions along with shortcut keys to disable the feature or hardware in order to conserve power!

Some of the common things that powertop suggests disabling on my machine are bluetooth, wireless and add-on storage (cdrom, usb-devices, etc).  Disabling these few things can extend my battery up to an hour (depending on the software I’m running, of course).

I really suggest checking out powertop for any laptop user.  It should be part of your base installation setup.  What luck have you had with powertop?  How long can you extend your battery life?

Related

June 15, 2008

Dennis Muhlestein
nonic
All My Brain
» Timing C/C++ Code on Linux

For my last post, I played around with C++ and a little programming competition. While on the topic, I decided I'd get slightly more serious and enter the next challenge. One of the things that slightly annoyed me during the process is having to compile/run the program on Windows to enter the competion, while I'm [...]

June 11, 2008

Hans Fugal
no nic
The Fugue :
» My Studio

Well, I've spent two days doing actual work in my studio and I can now confidently report my settings for the benefit of Linux-running MacBook users (and other related hoodlums).

I won't go into the detail that I did in the previous posts, most of which is still relevant.

I pass the option position_fix=3 to the module snd-hda-intel. I did this by creating /etc/modprobe.d/local, containing: options snd-hda-intel position_fix=3

then running sudo update-initramfs -uk all.

I set up my Gnome session to run QJackCtl, which is in turn configured to start JACK on startup. My JACK settings (from ~/.jackdrc) are: /usr/bin/jackd -R -t2000 -dalsa -dhw:0 -r48000 -p1024 -n2 -s

JACK is extremely stable. I've had 2, maybe 3 xruns through two days of work, and those were when starting up applications, not when actually using them.

Now, since we have only one audio device and JACK has monopolized it, and we want to hear other than JACK, we need more configuration. Here is my ~/.asoundrc:

# Set the default device to PulseAudio for all well-behaved ALSA applications
pcm.!default {
        type plug
        slave.pcm "pulse"
}
ctl.!default {
        type plug
        slave.pcm "pulse"
}

# This device can come in handy, but I mostly don't use it.
pcm.jack {
        type plug
        slave {
                pcm {
                        type jack
                        playback_ports {
                                0 alsa_pcm:playback_1
                                1 alsa_pcm:playback_2
                        }
                        capture_ports {
                                0 alsa_pcm:capture_1
                                1 alsa_pcm:capture_2
                        }
                }
                rate 48000
        }
}
ctl.jack {
        type hw
        card 0
}

# The acutal PulseAudio device
pcm.pulse {
        type pulse
}
ctl.pulse {
        type pulse
}

Now all well-behaved ALSA programs will use the default ALSA device, i.e. PulseAudio. PulseAudio needs to be configured now to use JACK. You'll need to get the pulseaudio-module-jack package, which probably means you'll need to build it yourself. I show you how to do that and how to configure PulseAudio in a previous post. Incidentally you need to do the same for libasound2-plugins if you want to use the JACK plugin for ALSA as in my asoundrc above.

Now we have a bit of a chicken and egg problem. PulseAudio starts when you log in, and so does JACK (by way of QJackCtl in your Gnome session). But PulseAudio will fail to start if JACK isn't already running. What's more, if you decided you wanted to restart JACK for whatever reason, you'd have to restart PulseAudio too. So here's how I solved it. I leave ESD enabled in the Gnome sound settings, knowing that it will fail to start (and I won't get the really cool Ubuntu Studio startup ditty, but oh well). It needs to be checked if you want Gnome to make nifty system sounds. Now, in QJackCtl setup, on the options tab, check the box for "Execute script after Startup" and put "pulseaudio -D" in the box. Now PulseAudio will start whenever JACK starts, and it will stop/crash/whatever whenever JACK stops.

Now, you need to install libflashsupport to get Flash working with PulseAudio. Even so you might find occasional sites that crash it.

That about covers it. If you do much work with audio applications using complicated JACK graphs, don't overlook the power of QJackCtl's patchbay, which will automatically hook things up. I have a patch that will connect Aeolus to system output 3&4 (headphones/external speakers), and hook my MIDI keyboard to Aeolus. So all I have to do is start Aeolus and pull some stops and I'm ready to play.

Which reminds me, there's still the annoying thing about JACK having 8 outputs (for surround sound) and the internal speakers are on outputs 1&2, and the headphone jack is outputs 3&4. If you're not getting sound from a JACK app and you think you should be, that's the first thing to check. Someday I plan to figure out the .asoundrc magic needed to set up JACK so that it's a regular stereo device sending sound to both the internal speakers and headphones. If you know how, please enlighten us in the comments. I know it can be done, I just haven't put in the time to figure it out and test it.

June 10, 2008

Corey Edwards