Showing posts with label Linux and Open Source. Show all posts
Showing posts with label Linux and Open Source. Show all posts

Saturday, May 26, 2012

Removing a Broken Package in Debian Sid

Recently, my Debian "sid" boxen developed a problem during a routine update/upgrade process. There was some incompatibility among the various programs I'd installed for a local LAMP test kitchen. I'm not using it, so I tried to remove the whole mess, but I kept getting a message like this at the end of every aptitude command, regardless of what programs were involved.



root@britomartis:/home/rebecca# aptitude remove php5-mysqlnd
The following packages will be REMOVED:  
  php5-mysqlnd 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 495 kB will be freed.
(Reading database ... 123342 files and directories currently installed.)
Removing php5-mysqlnd ...
/var/lib/dpkg/info/php5-mysqlnd.prerm: 9: /var/lib/dpkg/info/php5-mysqlnd.prerm: php5dismod: not found
dpkg: error processing php5-mysqlnd (--remove):
 subprocess installed pre-removal script returned error exit status 127
Errors were encountered while processing:
 php5-mysqlnd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

After a couple of weeks' Googling and reading, I happened on Force Uninstall a package in Debian/Ubuntu:

The solution is to head over to /var/lib/dpkg/info and find the package in question. There should be a file with .prerm at the end of it. In the case of xulrunner-1.9 the file is called xulrunner-1.9.prerm. Edit the file and change it's contents so it just says:

#!/bin/sh
set -e
After that the standard command will work:

I did that--I edited /var/lib/dpkg/info/php5-mysqlnd, so that it had just those two lines, and was rewarded with this:


root@britomartis:~# aptitude remove php5-mysqlnd
The following packages will be REMOVED:  
  php5-mysqlnd 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 495 kB will be freed.
(Reading database ... 123342 files and directories currently installed.)
Removing php5-mysqlnd ...
                                         
Current status: 0 broken [-1], 0 updates [-1].

Monday, April 09, 2012

Digikam Failure Fixed With phonon-backend-gstreamer

After the latest Debian sid update, Digikam quit working on one of my machines (but not the other). It would flash the start-up logo, then just disappear. Googling for this didn't turn up an answer, so I tried launching digikam from the command line, which gave me some error messages to search with. I found this discussion in a forum:

For some reason Dolphin (version 1.7) and digikam (version 1.9.0) keep crashing on me. Dolphin will crash on me every time my mouse cursor is over a video file. When I start digikam it will start to load and than disappear. I have just updated to kde 4.7.4 on AMD64 but this issue was happening before the upgrade. I have tried to run both programs from the console and I receive the same error message.
[0x16865a0] main services discovery error: no suitable services discovery module 
digikam: symbol lookup error: /usr/lib/qt4/plugins/phonon_backend/phonon_vlc.so: undefined symbol: libvlc_audio_filter_list_get

That's exactly the sort of problem I was having (I don't use Dolphin very often, so I hadn't noticed that issue). Why sound module problems would affect a photo management problem is not obvious to me, but eventually the original poster announced:


I have solved the issue. I removed vlc-data along with it's dependencies which included phonon-backend-vlc. Now dolphin, digikam and system-settings do not crash for me. Now the only backend I have installed is gstreamer. I guess there is just something wrong with the phonon-backend-vlc package.

I immediately added the replacement for phonon-backend-vlc:

aptitude install phonon-backend-gstreamer

And the problem was solved. (I didn't bother to remove phonon-backend-vlc; it seems that phonon-backend-gstreamer just replaced it (and the forum participants indicated that there were problems involved in removing phonon-backend-vlc).

Saturday, March 17, 2012

phpMyAdmin and MySQL — Drop Tables

phpMyAdmin and MySQL — Drop Tables with Common Prefix | DigitalWindFire: A handy tip for my Wordpress experimentation--this is how I delete the Wordpress portion of my database without touching the Drupal installation:


SELECT * FROM (
SELECT CONCAT('DROP TABLE ', GROUP_CONCAT(table_name) , ';')
FROM INFORMATION_SCHEMA.TABLES
WHERE table_name LIKE 'wp_%'
) a INTO @stmt;

PREPARE statement FROM @stmt;
EXECUTE statement;

Wednesday, February 29, 2012

Suspend-to-RAM and Other Troubles

I'm running KDE 4, with some grumblings on three different machines, and the "sleep" and "hibernate" options behave badly, in different ways on each machine. In my search for solutions, I ran across a way to suspend to RAM from the command line.

root@britomartis:/home/rebecca# pm-suspend

I still get a "kerneloops" message, but the keyboard and wireless don't lock up this way.

I just replaced the desktop computer I've spent so much time trying to fix lately. It was cheaper to buy a debranded, no-OS machine than to buy replacement parts that might or might not have worked. I tried to get along with the laptop as my main machine, but it was not ideal.

Wednesday, February 01, 2012

Google and Gingrich--They Don't Get Me At All

Some people who live on remote mountain ridges worry about the government tracking their movements and infringing their rights. I assume that's why Newt Gingrich called me on behalf of the NRA a few days ago, to warn me that "Obama's gonna take your guns." (His elocution was a little more sophisticated, but he was just echoing the same old theme I've been hearing since 2008.) Of course, I asked Newt why Obama hasn't gotten it done yet, but, being a robo-call, Newt didn't answer.

I'm more concerned about giant corporations than intrusive government. When I found this link to Google's ad targeting data based on my searches, I expected them to know things about me I feared to admit even to myself. I imagined an ominous combination of Santa Claus and Orwell's Big Brother. Instead, it seems, Big Brother doesn't get me at all. Here's how Google sees me:


Your categories:
Business & Industrial
Computers & Electronics - Software
Computers & Electronics - Software - Operating Systems - Linux & Unix
Shopping - Apparel
Localities - North America-USA-South(USA)-West Virginia

Your demographics:
We infer your age and gender based on the websites 
you've visited. You can remove or edit these at 
any time.
Age: 35-44
Gender: Male

I expected all those searches for antique crochet patterns and sewing supplies would have given a different demographic profile. But perhaps midlife male computer nerds are exploring their softer side with vintage-styled handmade lace. And, from an advertiser's viewpoint, Wal-Mart is the only place in our area where you can buy steel crochet hooks and computer hardware.

To see how Google identifies you as an advertising target, you can visit Google's Ads on the Web.

Monday, January 30, 2012

CS 101: Classroom Droop Mountain

I was excited to read this last week: Udacity and the future of online universities by Felix Salmon. Speaking of Sebastian Thrun, Salmon writes:

... It started as a way of putting his Stanford course online--he was going to teach the whole thing, for free, to anybody in the world who wanted it. With quizzes and grades and a final certificate, in parallel with the in-person course he was giving his Stanford undergrad students. He sent out one email to announce the class, and from that one email there was ultimately an enrollment of 160,000 students....

Thrun was eloquent on the subject of how he realized that he had been running "weeder" classes, designed to be tough and make students fail and make himself, the professor, look good. Going forwards, he said, he wanted to learn from Khan Academy and build courses designed to make as many students as possible succeed--by revisiting classes and tests as many times as necessary until they really master the material.

.... he concluded that "I can't teach at Stanford again." He's given up his tenure at Stanford, and he's started a new online university called Udacity. He wants to enroll 500,000 students for his first course, on how to build a search engine--and of course it's all going to be free.


Here's the Website for the Introduction to Artificial Intelligence class that started it all, and here's the Udacity site, which is preparing to offer two more computer classes free on the Web. They say:

We believe university-level education can be both high quality and low cost. Using the economics of the Internet, we've connected some of the greatest teachers to hundreds of thousands of students all over the world.

I've signed up for "CS 101: Building a Search Engine" to learn Python. Aside from my FORTRAN course in 1976, everything I've ever learned about computers has been self-taught and ad hoc. I'd love to try it in a structured environment. (I enjoyed my FORTRAN course, but the Computer Science department at my alma mater made it really clear they didn't want a bunch of ladies running around their nice clean building.) Classes start February 20!

Thursday, January 26, 2012

Finding a WiFi Adapter for a New Linux Box

Given the mysterious boot failures of the last few weeks, I need regular and reliable access to my laptop. Yet since the Mac Mini failed last summer, the laptop has been commandeered for streaming video in the living room. It seems the time had come for (the cheapest possible) Mac Mini replacement. I found a refurbished desktop without an OS at Geeks.com, and while it had an Ethernet adapter, I thought I'd like to have wireless capability. (There's just no convenient way to run Ethernet cables between the "office" and the living room.)

Now, I knew installing wireless drivers in Linux has a painful history, so I the first thing I did was check out what wireless devices are Linux-compatible.

I looked up all sorts of wireless adapter cards and USB adapters, and got very confused. However, Geeks.com provides information I haven't seen anywhere else: For each Wireless adapter, it lists what operating systems the device will work with. I picked out a Linux-compatible one and made my order.

I was able to install Debian testing using a netinstall CD and the Ethernet connection, and when that was finished, I modified the /etc/apt/sources.list to include the contrib and non-free sources. (I always do that anyway.) Then, of course, at the command line, I typed aptitude update

From there Debian Wiki had everything I needed to know to go wireless. The wireless USB adapter had the RT3070 chip, so that meant I needed the rt2800usb driver. The driver is installed by aptitude install firmware-ralink Because I'd already installed the KDE desktop environment, there was a WiFi interface waiting for me. It detected the wireless device and set things up without a hitch. (I had to give it my password, that's all.) If it had not been that simple, the Debian Wiki had WiFi--How To Use. (I read it anyway, and found it informative.)

It was quite a treat to have something work easily and as expected.

Monday, January 23, 2012

Digitization Policies for the Web

Apropos of the SOPA/PIPA controversy last week, I've revised my short paper on digital copyright issues written for a local history project a few years ago. The website where it was posted has since been shut down, so I'm re-posting it here for my own reference. Even without SOPA/PIPA, modern copyright law has a stifling effect on preserving genealogy and local history, while profiting no one. "Orphan works" still under copyright, are being lost because they cannot legally be curated or shared on the Internet.

Pocahontas County Historic Preservation Project: A First Draft of Digitization Policies

Goals of the Digitization Project
  • To facilitate preservation of historic materials through digitization.
  • To make freely available as much material as possible, over the web and through local libraries, museums, and historic sites.
  • To behave in a scholarly, courteous, and responsible manner to those who create or donate historic materials and to those who wish to access such material for noncommercial purposes. This must include acting in accordance with copyright, property, and privacy laws.

Digitization has tremendous potential to enhance preservation of historic materials, and to make all types of information available to interested parties around the world at little cost. However, it also presents novel problems in intellectual property rights. Who owns the rights to reproduce materials, and what may be done with the digital copies? There have been many changes in intellectual property rights law in the last 20 years, and there are few simple, straightforward answers to these questions.

I believe there are some cases in which we can use materials without fear of infringing anyone's rights.

  • Text and photographs published prior to January 1, 1923 are considered in the public domain. At least one item of interest to our project, William T. Price's Historical Sketches of Pocahontas County, has been scanned by the Google Books Project, and is freely available at their website in pdf and ascii text files.
  • Works of the United States Government, and other government-generated writings, as described by the West Virginia Division of Culture and History.
  • Any work that was neither published nor registered as of Jan. 1, 1978, and whose author died before 1933 entered the public domain on Jan. 1, 2003, unless it was published on or before Dec. 31, 2002. (U.S. Copyright Office, see passage in Appendix.)
  • Unpublished works that have been donated, along with their copyrights, to the Historical Society, the Genealogy group, or the Library system. (See the "Deed of Gift" references in the Appendix.) For example, if a diary and some family snapshots are donated by the creator's heir, along with explicit permission to share and reproduce, we may legally digitize and post these on the Web site.
  • Our own photographs of three-dimensional artifacts, with the permission of the artifact owner.
  • Descriptions of the materials in our local collections, using the Archon archive content management system to list our holdings on the Web, even where we cannot find the copyright owner or obtain permission. We can display excerpts of text or images as long as we comply with the Fair Use Doctrine. (Described by the Copyright Office, see Appendix.)
  • Digital copies of unpublished works under copyright protection can be made (up to three copies) by a library for preservation purposes, but they cannot be posted on the Internet, or otherwise displayed or distributed. (Section 108 of the U.S. Copyright Code, see Appendix for a link.)

Items that may not be available for digitization or publication on a Web site include:

  • Studio and professional photographs where the photographer was still living as of January 1, 1933. The person who commissioned the photo did not get copyrights at purchase. These remained with the photographer, unless explicitly surrendered.
  • Photographs and papers found and donated to the Historical Society. Although these organizations have legal ownership of the physical objects, copyright does not automatically convey with the object.
  • Published materials under copyright protection where the copyright holder is unidentifiable, unavailable, or unwilling to give permission for digitization.

To proceed with the digitization project, we need to identify which materials we have legal right to digitize, obtain permission to use materials where necessary, and determine how we want to share our own materials.

  • We need to identify copyright holders for materials already in possession of the Historical Society, the Pearl Buck Birthplace, and the libraries. Where this is known, we can request permission to digitize and share materials.
  • As we gain access to new materials, we need to get permission in writing to digitize and share the materials. There are several "Deed of Gift" templates available for us to use in developing our own permission form. (See "Deed of Gift" in Appendix.) It will be important to make sure this form does not sound ominous, intimidating, or excessively technical, lest it have a "wet blanket" effect on offers of information.
  • We need to spell out our copyright for the Web site. I suggest a Creative Commons Attribution-Non-Commercial license, but this will only apply to materials where we own the copyright (for example, things the Historic Preservation Officer writes while "on the clock;" new photographs of historic locations and objects taken specifically for the digitization project, etc.) Where we use materials by permission with attribution, we have no authority to grant permission to another party.

  • The possibility of print publications such as books, calendars, and recordings has been discussed, especially as a form of fund raising for the support of the various institutions involved. Copyright issues must be considered especially carefully for such projects, as they are more carefully examined in for-profit situations.

Appendix: Quotations From Pertinent Sources

Copyright Office On Protection of Digital Rights

Pertinent information from the United States Copyright Office Frequently Asked Questions:

It is illegal for anyone to violate any of the rights provided by the copyright law to the owner of copyright. These rights, however, are not unlimited in scope. Sections 107 through 121 of the 1976 Copyright Act establish limitations on these rights....One major limitation is the doctrine of "fair use," which is given a statutory basis in section 107 of the 1976 Copyright Act....

A party may seek to protect his or her copyrights against unauthorized use by filing a civil lawsuit in federal district court. If you believe that your copyright has been infringed, consult an attorney. In cases of willful infringement for profit, the U.S. Attorney may initiate a criminal investigation....

If you use a copyrighted work without authorization, the owner may be entitled to bring an infringement action against you. There are circumstances under the fair use doctrine where a quote or a sample may be used without permission. However, in cases of doubt, the Copyright Office recommends that permission be obtained....

....Uploading or downloading works protected by copyright without the authority of the copyright owner is an infringement of the copyright owner's exclusive rights of reproduction and/or distribution. Anyone found to have infringed a copyrighted work may be liable for statutory damages up to $30,000 for each work infringed and, if willful infringement is proven by the copyright owner, that amount may be increased up to $150,000 for each work infringed. In addition, an infringer of a work may also be liable for the attorney's fees incurred by the copyright owner to enforce his or her rights.....

....Photocopying shops, photography stores and other photo developing stores are often reluctant to make reproductions of old photographs for fear of violating the copyright law and being sued. These fears are not unreasonable, because copy shops have been sued for reproducing copyrighted works and have been required to pay substantial damages for infringing copyrighted works. The policy established by a shop is a business decision and risk assessment that the business is entitled to make, because the business may face liability if they reproduce a work even if they did not know the work was copyrighted....

....In the case of photographs, it is sometimes difficult to determine who owns the copyright and there may be little or no information about the owner on individual copies. Ownership of a "copy" of a photograph the tangible embodiment of the "work" is distinct from the "work" itself the intangible intellectual property. The owner of the "work" is generally the photographer or, in certain situations, the employer of the photographer. Even if a person hires a photographer to take pictures of a wedding, for example, the photographer will own the copyright in the photographs unless the copyright in the photographs is transferred, in writing and signed by the copyright owner, to another person. The subject of the photograph generally has nothing to do with the ownership of the copyright in the photograph. If the photographer is no longer living, the rights in the photograph are determined by the photographer's will or passed as personal property by the applicable laws of intestate succession.....


Materials In the Public Domain

When U.S. Works Pass Into the Public Domain provides a chart to clarify the rules. The simplest entry indicates that works published prior to January 1, 1923 are in the public domain. Complexity increases from there.

The Copyright Office explains how unpublished works may enter public domain: Certain Unpublished, Unregistered Works Enter Public Domain.

Certain works that were neither published nor registered for copyright as of Jan. 1, 1978, entered the public domain on Jan. 1, 2003, unless the works were published on or before Dec. 31, 2002.

Under the 1909 Copyright Act, works that were neither published nor registered did not enjoy statutory protection, although they were protected under common law in perpetuity as long as they remained unpublished and unregistered. But under section 303 of the 1976 Copyright Act, works that were created but neither published nor registered in the Copyright Office before Jan. 1, 1978, lost their common law protection and acquired a statutory term of protection that was the life of the author plus 50 years, amended in 1998 to life plus 70 years.

As a result of the 1976 Copyright Act, any of the works in question whose author had died over 50 years prior to 1978 would have entered the public domain after Dec. 31, 1977. To provide a reasonable term of copyright protection for these works, and in light of the fact that these works had enjoyed perpetual protection under common law, Congress extended their term by at least 25 more years. Congress also encouraged publication by providing an additional 25 more years, extended in 1998 to 45 more years, of protection if the work was published on or before Dec. 31, 2002.

That first 25-year period expired on Dec. 31, 2002. Any work that was neither published nor registered as of Jan. 1, 1978, and whose author died before 1933 entered the public domain on Jan. 1, 2003, unless it was published on or before Dec. 31, 2002. If the author died in 1933 or later, the work will be protected for 70 years after the author's death, due to the passage of the Sonny Bono Copyright Term Extension Act in 1998.


Fair Use Doctrine

A discussion of the Fair Use Doctrine, by the U.S. Copyright Office

Section 107 contains a list of the various purposes for which the reproduction of a particular work may be considered “fair,” such as criticism, comment, news reporting, teaching, scholarship, and research. Section 107 also sets out four factors to be considered in determining whether or not a particular use is fair:

  1. the purpose and character of the use, including whether such use is of
    commercial nature or is for nonprofit educational purposes;
  2. the nature of the copyrighted work;
  3. amount and substantiality of the portion used in relation to the copyrighted work as a whole; and
  4. the effect of the use upon the potential market for or value of the copyrighted work.

The distinction between "fair use" and infringement may be unclear
and not easily defined. There is no specific number of words, lines, or notes that may safely be taken without permission. Acknowledging the source of the copyrighted material does not substitute for obtaining permission.

The 1961 Report of the Register of Copyrights on the General Revision of the U.S. Copyright Law cites examples of activities that courts have regarded as fair use: quotation of excerpts in a review or criticism for purposes of illustration or comment; quotation of short passages in a scholarly or technical work, for illustration or clarification of the author's observations; use in a parody of some of the content of the work parodied; summary of an address or article, with brief quotations, in a news report; reproduction by a library of a portion of a work to replace part of a damaged copy; reproduction by a teacher or student of a small part of a work to illustrate a lesson; reproduction of a work in legislative or judicial proceedings or reports; incidental and fortuitous reproduction, in a newsreel or broadcast, of a work located in the scene of an event being reported.

Privacy and Publicity Issues

Library of Congress Privacy and Publicity Issues:

While copyright protects the copyright holder's property rights in the work or intellectual creation, privacy and publicity rights protect the interests of the person(s) who may be the subject(s) of the work or intellectual creation. Issues pertaining to privacy and publicity may arise when a researcher contemplates the use of letters, diary entries, photographs or reportage in visual, audio, and print formats found in library collections. Because two or more people are often involved in the work (e.g., photographer and subject, interviewer and interviewee) and because of the ease with which various media in digital format can be reused, photographs, audio files, and motion pictures represent materials in which issues of privacy and publicity emerge with some frequency....

While copyright is a federally protected right under the United States Copyright Act, with statutorily described fair use defenses against charges of copyright infringement, neither privacy nor publicity rights are the subject of federal law. Note also that while fair use is a defense to copyright infringement, fair use is not a defense to claims of violation of privacy or publicity rights. Privacy and publicity rights are the subject of state laws. What may be permitted in one state may not be permitted in another. Note also that related causes of action may be pursued under the federal Lanham Act, 15 U.S.C. P 1125 (a), for example, for unauthorized uses of a person's identity in order to create a false endorsement.

While an individual's right to privacy generally ends when the individual dies, publicity rights associated with the commercial value connected with an individual's name, image or voice may continue. For example, many estates or representatives of famous authors, musicians, actors, photographers, politicians, sports figures, celebrities, and other public figures continue to control and license the uses of those figures' names, likenesses, etc.


How Libraries Manage Copyright Issues Pertaining to Their Digital Collections
Library of Congress

How the Library of Congress handles copyright issues on its Web site, as explained by the United States Copyright Office FAQ's:

I saw an image on the Library of Congress website that I would like to use. Do I need to obtain permission?

With few exceptions, the Library of Congress does not own copyright in the materials in its collections and does not grant or deny permission to use the content mounted on its website. Responsibility for making an independent legal assessment of an item from the Library's collections and for securing any necessary permissions rests with persons desiring to use the item. To the greatest extent possible, the Library attempts to provide any known rights information about its collections. Such information can be found in the "Copyright and Other Restrictions" statements on each American Memory online collection homepage. If the image is not part of the American Memory collections, contact the Library custodial division to which the image is credited. Bibliographic records and finding aids available in each custodial division include information that may assist in assessing the copyright status. Search our catalogs through the Library's Online Catalog. To access information from the Library's reading rooms, go to Research Centers.

Library of Congress "Legal" Page

Whenever possible, the Library of Congress provides factual information about copyright owners and related matters in the catalog records, finding aids and other texts that accompany collections. As a publicly supported institution, the Library generally does not own rights in its collections. Therefore, it does not charge permission fees for use of such material and generally does not grant or deny permission to publish or otherwise distribute material in its collections. Permission and possible fees may be required from the copyright owner independently of the Library. It is the researcher's obligation to determine and satisfy copyright or other use restrictions when publishing or otherwise distributing materials found in the Library's collections. Transmission or reproduction of protected items beyond that allowed by fair use requires the written permission of the copyright owners. Researchers must make their own assessments of rights in light of their intended use.

If you have any more information about an item you've seen on our website or if you are the copyright owner and believe our website has not properly attributed your work to you or has used it without permission, we want to hear from you. Please contact OGC@loc.gov with your contact information and a link to the relevant content.


West Virginia University Libraries

How West Virginia University University Library regulates use of its archives, physical archives: Rules for the Use of Library Materials in the West Virginia and Regional History Collection


Some materials in the WVRHC are protected by copyright laws and other restrictions. The researcher assumes all responsibility for possible infringement of copyright and/or other literary, artistic, property or privacy rights in the act of copying or in the subsequent use of the materials copied....The reproduction of any collection in its entirety is prohibited.

Any publication, exhibition, or other public use of materials reproduced must properly credit the source from which a copy is made. The basic credit line is "West Virginia and Regional History Collection, West Virginia University Libraries"....Researchers are not permitted to photograph any materials in the WVRHC. To order photographs, users may inquire at the reference desk about policies, forms and fees.


West Virginia History Online Digital Collections has rules that offer us a model on proper usage: Notes on Rights and Reproductions. Their West Virginia History OnView: Photographs From the West Virginia & Regional History Collection is the sort of online archive we hope to produce.


West Virginia History OnLine digital resources are available for use in research, teaching, and private study only. These materials may NOT be used for publication or exhibition, downloaded and placed on another server where they can be publicly accessed, or utilized in any other public manner without the express written permission of the West Virginia and Regional History Collection. Such permission may be granted only by a curator of the WV&RHC or by the Dean of WVU Libraries. Any reproduction of materials from this site must properly credit the source of the materials. For archives and manuscripts, the proper credit line includes the full name of the collection, plus "West Virginia and Regional History Collection, West Virginia University Libraries." For works of art, the proper credit line includes the names of the artist and artwork, plus "West Virginia and Regional History Collection, West Virginia University Libraries."

Some Materials in the WV&RHC and on this web site are protected by copyright laws and other restrictions. The researcher assumes all responsibility for possible infringement of copyright and/or other literary, artistic, property or privacy rights in the act of copying or in the subsequent use of the materials copied.


Deed of Gift Forms

Local history research organizations such as libraries, museums, and historical associations, can protect themselves against inadvertent copyright violations by obtaining permission to display and use material at the time it is donated. If your organization accepts gifts (items), then it needs a Deed of gift form.

Here are two other sources for Deed of Gift formats:

Copyright Concerns For Libraries

There are special rules for libraries and digital copying. Section 108 of the U.S. Copyright Code is a graphic presentation of these rules, provided by Copyright advisory network, a site about the latest developments in digital collections and archives.


Modes of Managing Copyright Issues

Online Resources for Further Reading

Wednesday, January 18, 2012

SOPA and PIPA--Are We All Pirates Now?

I'm no expert on legislation and the Internet, which is why I'm passing along Ask Slashdot: What Can You Do About SOPA and PIPA?: "The intent of both pieces of legislation is to combat online piracy, giving the Attorney General and the Department of Justice power to block domain name services and demand that links be stripped from sites not involved in piracy. The problem is that the legislation, as written, is vague and overly-broad."

Just Don't Turn It Off....

My Linux reboot problems continue. If I restart shutdown -r now, I get a variety of boot failures. I've determined there's nothing wrong with my grub2 and config files, the whole /boot directory and everything in it is fine. If I leave the computer alone for at least half an hour, I can turn it on, and boot successfully from /dev/sda1. Any less time, and every version of grub, SuperGrub, rescue disk, live Linux CD, whatever I try reports it cannot read any files. Hardware problem, or software, or a combination of the two? I really don't know. For the moment, I'm just leaving it turned on all the time, because sleep modes give other problems. If I need to turn it off, I'll try to leave it off overnight.

This is really unsatisfactory. Here's some unsatisfying but perhaps informative information I've found about similar Linux troubles.

  • The Analysis of Drive Issues: This page has been designed to help with the analysis of drive problems, and often to recommend what steps to take.
  • SATA disks resets in a md setup:
    Setup:
    ------
    The system is amd64bit running Debian unstable stock with kernel 2.6.29
    (Debian package). full dmesg is attached
    I have 2 250GB disks (/dev/sda, /dev/sdb) that I used to assemble a
    md array (/dev/md0)
    
    Homework:
    ---------
    Please note that the two disk are tested via smart long selftest
    and via $dd bs=256M if=/dev/sd? of=/dev/null without any problem.
    I researched in web and followed advice:
    I have checked / exchanged cables
    I disabled smartd.
    
    The actual Problem:
    -------------------
    Then I start the following stress test. From the other disks of the machine
    /dev/hda, /dev/hdb, /dev/sdc I start copying (via rsync) to /dev/md0 to a
    newly formatted ext3 filesystem.
    
    Everything goes fine for a while and then the system freezes
    [Error messages deleted--they look much like my errors]
    and my filesystem is dead. /dev/sdb is deleted from /dev. I have to reboot
    and even then Linux can't find the ata2 /dev/sdb.
    I have to remove power for 1-2 min for the disk to become accessible again.
    
    Do you think the disk is bad or something?
    

    The answer he eventually gets is that it's a kernel bug, which has since been fixed.

  • SATA functionality and performance with OMAPL-138: In this case the writer is working with a board that seems to have problems accessing SATA drives. The answers he gets suggest looking at different kernels and checking SATA cables.

  • ata3: COMRESET failed (errno=-16):
    At bootup I end up in busybox and I see the following message on the top of the screen "Gave up waiting for root device"
    Actually I think that my hard drive "falls asleep" just after leaving grub. When I'm in the busybox I need to unplug my hard drive (serial ata) and to plug it again so that I can hear that it's restarting. After doing that I type exit in the busybox and the boot process restarts normally.

    This turns out to be a kernel bug which has been fixed.

  • Fails to find boot device in Intel D945Gnt: These boot failures resemble mine; also a kernel bug which has been fixed.
  • Can someone explain how to perform this workaround? I've tried this fix with no success:
    sudo gedit /boot/grub/menu.lst
    
    you will see some lines like : 
    
    title  Debian GNU/Linux, kernel 2.6.26-1-686
    root  (hd0,0)
    kernel  /boot/vmlinuz-2.6.26-1-686 root=/dev/sda1 ro quiet
    initrd  /boot/initrd.img-2.6.26-1-686
    
    add rootdelay=90 after quiet

    This person had success with the rootdelay=90 solution: Cold boots fine, but get 'Gave up waiting for root device' on reboot.

  • Debian Bug report logs - #649563 linux-image-3.1.0-1-amd64 can't load initial ramdisk anymore:
    after upgrading wheezy to linux-image-3.1.0-1-amd64, grub complains:
    
    Loading initial ramdisk ...
    error: couldn't read file.
    
    Later the kernel panics. 

    This one is also solved by a kernel upgrade.


Here are some more rescue disks I've burned and tried.

Saturday, January 14, 2012

Reset KDE4 Dolphin

Here's how you reset kde4 dolphin settings:"Just remove settings file and restart dolphin--"


$rm .kde/share/config/dolphinrc

Every time I turn around, it seems I've inadvertently changed some of the KDE desktop goodies, and the GUI's are not really forthcoming with "reset to defaults" options. It seems the place to look to find offending rc files is ~/.kde/share/config There are just so many kde/ & .kde/ & /kde4 directories scattered around the file system that I didn't know where to start. It's the hidden file in your home directory.

Wednesday, January 11, 2012

Random Boot Failures, Linux Kernel Updates, and Hardware Troubles

Earlier this week, Debian unstable offered me a kernel upgrade, and, after some cautious data backup, I installed it. Soon after, I attempted to reboot, and, sadly, it was back to kernel panic, can't find grub, can't find kernel, etc., etc. This time, using the Debian testing installation disk in rescue mode was no help. I re-installed grub, updated the configuration file (update-grub) and got the same errors. I shut down the computer and went to my laptop to search for help, and decided to try some alternative rescue disks: Super Grub2 and Rescatux, and, if that didn't suit, perhaps a Linux Mint live CD.

I burned the CD's inserted my first choice, SuperGrub2, and waited for it to spin. It never did (it turned out to be a bad disk). As I sat there, scratching my head, the computer loaded the Grub menu page, selected the first kernel, and proceeded to boot successfully.

So, perhaps, the problem is not a configuration problem, but a hardware problem. I get a variety of intermittent error messages concerning ata1 (and I was getting a bunch them yesterday, so once again I checked the hard drive with smartctl command line utilities. As before, both the long and short versions reported no problems. fsck also reported no problems.

The search terms "boot failure linux hardware" returned a few tales of woe similar to mine, such as Boot failure randomly. Can someone help?: Here's someone who has intermittent boot failures, and suspects a hardware problem. One reader comments:

one of the causes for this can be faulty memory. That can also explain why you sometimes have a problem: if that bad memory is not touched everything works like a charm. If it does get touch unexpected results can be expected. In general: irregular behaviour during boot always start thinking memory 1st. So run memtest from the live cd or from grub if you can boot into it and see if 1 of your memory modules is in bad shape and if so replace it.

The original poster eventually reports:

found a fix but not an explanation therefore help still needed here ;-)

The Fix--Disconnect the cable and take off the battery for a few seconds.

Conjectures--This fix lead me to conclude that maybe something is kept into memory of some hardware.


And here's someone who has the opposite problem from mine: [amd64] Reproducible cold boot failure (reboot succeeds) His computer fails to boot if it's been turned off for several hours, but will reboot, or boot successfully if it's been off for a short time. Eventually, he reports that he's found a memory issue:

In fact, one of the 4GB DIMMs in the system returns bogus data
(0x10000000 or 0x04000000 instead of 0) for some 40 to 50 seconds
after power-on. Once warmed up, memtest86+ runs for days without a
single extra data error (I wanted to have an estimate for the defect
having led to damaged data in disk files).

Running memtester showed no errors, although I started getting reams of complaints about ata:1.00 again. I haven't yet run the more comprehensive memtest, which has to run at start-up; I'll get to that in the next few days. Last night, aptitude update informed me that there was a kernel update. I went ahead and installed it, then shut down the computer. This morning, I powered up, and got a missing grub message, restarted, and the computer booted successfully. So far, today, I'm not getting any complaints about ata1.

Here are some resources I've found either helpful or informative this week:

Hardware Checking Resources for My Particular Problem
  • Test Memory Using memtester in Linux:
    memtester is a user-space utility for testing the memory subsystem in a computer to determine if it is faulty. It does a good job of finding intermittent faults and non-deterministic faults. It has many tests to help catch borderline memory. memtester should compile and run on any 32- or 64-bit Unix or Unix-like system.
  • How should I run fsck on a Linux file system? fsck (not a mis-typed profanity, it's short for "file system check") checks and repairs *nix file systems. You can't (or shouldn't) run it on a mounted file system. As root,
    Single User Mode and umount the file system: Issue command to change run level and umount the /home file system that is mounted on /dev/sda2:
    
    # init 1
    # umount /home
    
    Run fsck:
    
    # fsck /dev/sda2
    



Helpful Resources for Boot Failure
  • GRUB 2 bootloader - Full tutorial:
    My goal is to provide people running any flavor of UNIX-like operating systems or multi-booting their computers and using GRUB as their bootloader with a simple, no-nonsense, step-by-step, proven and working tutorial that should allow them to quickly, easily and painlessly control the boot sequence of their systems.
  • MondoRescue HOWTO Utilization and Configuration of Mondo and Mindi under Linux
    This document describes the use of mondo and mindi tools to realize disaster recovery backup of your systems. It provides information on installation, backup and restore modes, hardware and software requirements, and answers to some frequently asked questions. The goals are to offer a general view of the functions and their best usages. Mondo Rescue is a Disaster Recovery Solution which allows you to effortlessly backup and interactively restore Linux, Windows and other supported file system partitions to/from CD/DVD-+R/RW media, tape, NFS, ... and Mindi Linux provides the bootable emergency restore media which Mondo uses at boot-time.
  • Troubleshooting Boot Failures section of "Configuring a Linux Kernel" offers some advice on how to manage failures in a home-rolled kernel. It offers this advice:
    A boot failure can either be due to: kernel configuration issue, a system configuration issue, or a hardware malfunction. It's pretty easy to guess which one is the hardest to detect but easiest to resolve (hint: it's the hardware malfunction one). The other ones, well, they require a bit preparation in order to easily troubleshoot and, eventually, solve.
  • How to solve boot problems with Ubuntu after kernel upgrade: Here's a clear explanation of what happens as linux boots, and a description of some of the things that can go wrong. It didn't help me fix my problems, but I do understand the messages I get as the process fails.
  • From the same Web site, a description of Grub2. It's a little old, but this is where I found a link to Super Grub2 and Rescatux, boot problem fixes meant to be easier and quicker than using the rescue mode on the system installer.

    Update: SuperGrub2 returns this message: "not a known file system" and fails to find an OS. Not really helpful for my problem, which, to be fair, probably has little to do with Grub.

Saturday, January 07, 2012

New kwinrc Fixes KDE 4.6 Desktop Effects

To my great surprise, I've got KDE 4.6 Desktop Effects working again. My recent desktop environment problems had led me to reinstall Debian testing and upgrade to unstable (sid). The newly-installed KDE Desktop Effects were working properly until I copied all my /home/rebecca files onto the new installation and restarted. I tried to adjust them using the GUI panel:

System Settings > Desktop Effects > Advanced


No luck. I couldn't revert to a clean install. I was just going to live with it because I didn't care about the missing desktop effects at all, but I really hate it when I don't know why something does or doesn't work, so I have looked sporadically for answers, and this morning, I found this: [SOLVED] KWin effects not working (ATI, catalyst, KDE):

I have had something like this happen a few times, too. Removing ~/.kde/share/config/kwinrc always seems to fix it.

I renamed the kwinrc file, moved it to an out-of-the-way directory, and rebooted. A new and much shorter kwinrc file was generated, and I haven't found any other KDE attributes changed. Here's the difference in file size between the new kwinrc file and the old, renamed file:


rebecca@hecate:~/.kde/share/config$ wc -l kwinrc
23 kwinrc
rebecca@hecate:~/.kde/share/config$ wc -l /home/rebecca/xxx
166 /home/rebecca/xxx

I haven't yet figured out what those 143 lines in the old file did, but the problem must be in there somewhere. Something to occupy my idle hours, I suppose.

Thursday, January 05, 2012

Debian Wheezy to Sid--Are You Sure It Won't Blow Up?

Yesterday's post reporting a successful switch to KDE was a bit premature, at least on my desktop machine. The laptop is still OK (I hope).

After a few days, all the "Desktop Effects" quit abruptly, perhaps after an update. (I was running Debian testing, which has daily updates.) I tweaked and adjusted, and eventually some of them started working again, perhaps because I switched compositing type from OpenGL to XRender. This change is located:

System Settings > Desktop Effects > Advanced

KDE has changed so much since I last used it that I have much frustration in locating these sorts of things.

More updates, including a kernel update, ensued, and I had a flashback to my Mysterious Errors and kernel panics of a year ago. Restarting the computer produced either a grub rescue > prompt, a "can't find the file" message after selecting the kernel on the grub menu, or a kernel panic. In every case, I was able to boot from a Debian net install disk using "rescue mode," re-install grub thus:

# grub-install followed by #update-grub

I could then remove the CD and reboot successfully once. Every time I restarted the computer, I had to go through this song and dance. As I said last January,

After I...powered up, the little darlin' booted right up....I really hate it when I don't know what was wrong, or why it's running now. Did something reset while it was powered down? Did jiggling the cables do the trick? Was it dust? And what's with all the update-grub/reboot iterations? Why do I always have to do that over and over again? And why does none of this ever happen with my Linux laptop?

Last year, the problem mysteriously resolved after a few tries, but this time, I started getting more and different error messages that I couldn't figure out. Googling showed me that I wasn't alone in my troubles, but I couldn't find a solution that worked for me. I made two fresh back-ups of my home directories, and resolved to choose "Install" rather than "Rescue Mode" at the next reboot.

The re-install ran without any problems, and, while I'll have to reconfigure my localhost installations of Wordpress and Drupal (they needed work anyway), this fresh install is now scoured clean of all the Gnome, XFCE, icewm, sawfish, awesome, metacity, etc. libraries and programs, which I'm not using but which require updates anyway.

Last time I installed testing, I tried without success to upgrade to sid, that is, Debian unstable. This time, it worked for me, and I am now typing on cutting edge Debian. The Debian GNU/Linux FAQ--Choosing a Debian distribution recommends sid over testing:


There is no perfect answer but only a "wise guess" could be made while deciding between unstable and testing. My personal order of preference is Stable, Unstable and Testing. The issue is like this:

  • Stable is rock solid. It does not break.
  • Testing breaks less often than Unstable. But when it breaks, it takes a long time for things to get rectified. Sometimes this could be days and it could be months at times.
  • Unstable changes a lot, and it can break at any point. However, fixes get
    rectified in many occasions in a couple of days and it always has the latest
    releases of software packaged for Debian.

Raphael Hertzog also reassures me that "Unstable is a quickly moving target and it's not for everybody. But you can use it and your computer won't explode" in his blog post 5 reasons why Debian Unstable does not deserve its name

Now, it's back to fiddling with my brave new Debian. I wonder how long before I break it?

Wednesday, January 04, 2012

Return of the KDE User

The last few weeks I've been shopping for a new Linux Desktop environment. I never do this voluntarily, but my distro, Debian testing (Wheezy) has upgraded to Gnome 3, and the transition has not been smooth. On my desktop machine, Gnome 3 hangs at shutdown (and sometimes at start-up), and the Gnome display manager, gdm3, doesn't work well on my laptop.

I've been using Gnome because at the end of 2009, updates to KDE 4.4 messed up, along with Xorg, probably due to a poor fit between my video chip and the open source driver. I used Kubuntu for a while, but eventually had so many problems that I reformatted my hard drive and installed Debian testing, complete with the default Gnome desktop. I had preferred KDE, particularly for Digikam, the photo management program par excellence, but it was just too much work to keep the KDE eye-candy functioning, and it was easy enough to install "Digikam + dependencies." This produced an unattractive redundancy of libraries, but there's plenty of room on the old hard drive, so what the heck.

Anyway, word on the Web has been that Linus himself has switched to Xfce because Gnome 3 and KDE 4 feature too much "crazy crap," so, even before Gnome 3 hit Debian testing, I installed Xfce on the desktop machine and the laptop, and tried it out. Xfce seemed fine, but I also auditioned some of the window managers, and revisited icewm, which I previously have run happily on pokey old hardware.

When the Gnome3 update finally happened, I discovered that the new Gnome display manager caused all sorts of problems, especially on my laptop, which is also used by a (reluctant) Linux novice. (The Mac mini he used to use bit the dirt a few months back.) I needed an easy-to-understand log-in screen, and the KDE display manager fit the bill best.

What with all the KDE stuff I was using, I gave the KDE 4.6 environment a whirl, and all the compositing features that used to mess up my desktop machine now work perfectly. They also work fine on the laptop. Most of the fancy "plasmoids" and "Activities" seem useless to me so far, but I can ignore them easily enough.

If I were a real, nuts and bolts Linux gal, I'd select a window manager like icewm or sawfish, edit my .conf files to get exactly the user experience I want, and never be bothered by all these fancy-schmancy desktop environments. My ideal user experience would resemble the 1998-era Sun Workstation I used so happily at The Institute. A few terminal windows, Xclock, an Emacs window, and a browser--I'm in business. Too bad I have this yen for shiny visual effects and big chunks of software that install themselves and never make me figure out where the .conf files are. Shallow and lazy--that's me.

Monday, March 07, 2011

Rethinking My Web Presence

Now that I've updated my Drupal website, I need to think of something useful to do with it. I've used it for sharing information with my students, and as a trial ground to learn to use content management systems, but I don't currently have a need for either of those purposes. I've also thought about using it as an adjunct to selling my fiber arts projects, but I've made no move in that direction.

I made that site to learn how to use Drupal, but I'm also thinking about switching to Wordpress. Ironically, I started this Blogger blog to get my website indexed, but these days, this blog covers most of my web presence needs. Maybe I should drop the spiceridge.com site all together?

Here are some tips I've collected for using Drupal for a personal site. (See, I'm using this blog to keep track of links I don't want to lose.)

Thursday, March 03, 2011

Drupal Updates Long Deferred

I've been putting off updating my Drupal Web page for most of the winter, but I thought I'd better get it taken care of before spring or I wouldn't do it at all.

The first thing I had to do was get my desktop computer set up as LAMP, Linux Apache Mysql PHP, so I could have a test site.

  • I had apache2 and php5 already installed on my Linux desktop (Debian Wheezy). All I needed to do was add php gd support to Apache thus:
    # apt-get install php5-gd
    # /etc/init.d/apache2 restart
  • For the "M" in LAMP, all I had to do (as root) in Debian was:
     # aptitude install mysql-server mysql-client
     # aptitude install phpmyadmin
    and then tell apache2 to find phpmyadmin: "Include /etc/phpmyadmin/apache.conf"

In the process of relocating a Drupal site to a local machine for testing, one has to clone the database. PHPmyAdmin has a push-button function for exporting a database; however, my database has grown too large for the push-button "import" to work. There are lots of bad hacks with high Google ratings, but they're much harder than using command line MYSQL with the commands given at Import/Export Large MYSQL Databases. "Source" is a dandy sql command I'd totally forgotten--it tells mysql to read a file and do the commands given there.

After all this, adding the updates to the Drupal installation took a few minutes. I haven't finished with the Spice Ridge site yet--I'd like to do it after a good night's sleep, in case something goes wrong; however, it's been my experience that the live site is easier to manage than the localhost one.

Every time I update Drupal, things go a little differently; however this time, I found most of the things I needed to do in my own Drupal posts here on my blog. I may bore my readers, but these Linux and Open Source posts are the things I revisit most often.

Tuesday, February 08, 2011

Debian Wheezy--So Far, So Good

This past Sunday marked the release of the new Debian stable version, 6.0, code-named "Squeeze." I've been running Squeeze testing version since May of this year, and when a Debian version moves from "stable" to "testing," a new version moves into testing. The new testing is called "Wheezy." My /etc/apt/sources.list points to "testing," rather than "squeeze," so that means that running aptitude dist-upgrade after a version-move can mean major changes, and, sometimes, major breakage of the Linux box.

I waffled around about what to do yesterday. I could point my sources.list to "squeeze," rather than "testing," so that nothing would change for a while, but the nice thing about testing is that it has newer versions of programs with the latest improvements. When I installed "testing" last year, I tried upgrading right to "unstable," (aka "Sid") which has the really latest and greatest stuff, but I wasn't able to get it working in the first couple of hours, so I just re-installed "testing." I've been reasonably happy with it (except for my intermittent "grub" troubles. (Check out the Debian sid FAQ, which is informative but mostly just funny.)

I decided to live my life on the edge, and stick with "testing," so after backing up my home directory six ways to Sunday, I just went ahead with aptitude update and aptitude dist-upgrade. It upgraded 220 packages. Expecting the worst, I rebooted, and NOTHING bad happened! Here's the really surprising thing--I did the same thing on my laptop, and nothing bad happened there either. Of course, "Wheezy" could turn on me at any moment....there's another update I'm running today. Still, so far, so good!

Sunday, January 30, 2011

Update-grub, and Mysterious Error Messages

I ran the Squeeze upgrades on my desktop machine Saturday morning, and noticed that a grub update was on the list. I've had enough trouble with grub updates lately to know that it was time to back up my data files before I went any further. After the backups, I ran aptitude dist-upgrade, and restarted the machine. (Why wait for trouble to come to me? I'll just go meet trouble.)

Although grub was there and looked OK, it sent me straight into a kernel panic, even in recovery mode. I pulled out my net install disk and booted into "Rescue Mode," asked for a terminal, and ran update-grub. A reboot sent me back to a kernel panic, so I re-rebooted into recovery mode, which worked this time. I ran update-grub again, and rebooted. This time, the system booted, albeit very slowly, and with lots of error messages concerning ata3.00. I googled these error messages, and found some potentially useful links.

There's one message I always get at start up, and whenever I "wake up" my desktop computer: ata3.00: softreset failed (device not ready). This is apparently common among AMD64 Linux kernels, and I've been ignoring it successfully. I found out some interesting things about it.

Some of my error messages might have been indicating a problem with the physical hard drive, or its connectors. I suspected this wasn't my problem, but I wasn't having much luck looking for software solutions. Monitoring Hard Drive Health clued me into S.M.A.R.T., which can let you know if your hard drive is in trouble before it gives up altogether. I installed the Debian smartmontools package, and it told me the hard drive was apparently OK.

In some forum somewhere, I read that SATA cables were more likely to cause error messages than hard drives. I was running out of things to try, so I shut my computer down, let it stand for half an hour, and opened it up. All I did was blow the dust out, and check to see if the SATA cable was plugged in good and tight on the mother board and the hard drive. It seemed fine. The first computer I ever owned always went belly-up every time I moved it, or even bumped it. The fix was to open the case and jiggle all the cables a little bit. I did that this time, too. Call it superstition if you like.

After I put things back together and powered up, the little darlin' booted right up with nary an error message, and has been running like a top ever since. I really hate it when I don't know what was wrong, or why it's running now. Did something reset while it was powered down? Did jiggling the cables do the trick? Was it dust? And what's with all the update-grub/reboot iterations? Why do I always have to do that over and over again? And why does none of this ever happen with my Linux laptop?

While I don't have answers to these questions, here are some links where I learned something.

Saturday, January 29, 2011

A Dialectic Between Bunnies

These videos made me laugh really hard. I have no idea why this amuses me, but I'm having Linux trouble today, can't figure it out, and haven't come up with a real blog post yet. Perhaps it's just fun to hear cartoon animals say "Derrida."

In my grad school experience, the faculty told us that we needed to be deep scientific thinkers with a "feel for the organism" and cold, calculating political animals with no regard for the truth. In fact, the same professor might tell you "profound, broad-ranging knowledge" on Monday and "political animal" on Tuesday, repeating as necessary until you ultimately loathe your research, your department, and all of academe. Guess you have that in the philosophy department too.