Home Blog Page 8815

“Source code is speech” amicus curiae brief

Author: JT Smith

2600.com: “It cannot seriously be argued that any form of computer code may be regulated without reference to First Amendment doctrine. The path from idea to human
language to source code to object code is a continuum. As one moves from one to the other, the levels of precision and, arguably, abstraction increase, as does
the level of training necessary to discern the idea from the expression. Not everyone can understand each of these forms.”

Editing Linux program files with simple text editors

Author: JT Smith

– by Robin “Roblimo” Miller
Most tutorials about editing Linux system or program files assume you are going to
use either the vi or emacs editors preferred by a majority of skilled programmers. These are great editors for programmers, but those of us who only edit a program file once in a while may be better off using simpler text editors like Pico, Gedit, Kedit or my personal favorite, Nedit.
The secret of using your text editor as root
No matter what text editor you use, to edit program files you must first log in as root. The easiest way to do this from KDE or Gnome or any other Gnu/Linux graphical desktop is through a terminal window. Call one up, type “su” and you’ll see “Password:” right below it. Type your root password, and anything you do in that terminal window from then on will be done as root. You will be able to edit any file on your computer as long as you open your chosen text editor in that terminal window.

Pico
Pico is probably the simplest and easiest-to-learn “command line” text editor there is. It is included with almost every packaged Linux distribution but may not be installed by default. If it’s not installed on your Linux computer, install the Pine email package and you will automatically have Pico even if you don’t use Pine. To start Pico in your “root” terminal window, type “Pico” and there it is, ready to use, with the most important commands lined up at the bottom of the terminal window in case you are one of the people who (like me) has trouble remembering which keystrokes do what in which programs. To save time, you can type the name of the program file you need to edit right after the word “pine” like this — pico /usr/lib/office52_en/program/soffice -- with a space between the word “pico” and the program file’s full name.

Because Pico is a command line editor, your mouse won’t work. You need to move around the text by scrolling up and down and side to side with the “arrow” keys or up and down with pageup/pagedown keys. But if you are pasting in text from a tutorial or Web page you can do the usual Linux “middle mouse button” (or “both buttons at once”) one-click paste wherever you have put your cursor in that Pico screen. You may want to practice this and other Pico commands for a few minutes on a text file you don’t care about before using it to actually edit an important program file.

Using GUI text editors on program files
I am going to use Nedit in this example because it’s the editor I prefer, but the same instructions work in Gedit, Kedit or almost any other simple “point and click” GNU/Linux text editor.

Whichever editor you choose — and at least one of these comes with almost every packaged Linux distribution — you must open it in your “root” terminal window to use it to edit anything outside of your home/yourname directory. Once you’ve opened a terminal window and done the “su password” routine, all you need to do is type your chosen editor’s name, and up it comes. Now you need to find the file you want to edit. This can be slightly more tedious in a point/click editor than in a command line editor, but not enough to worry about. If we’re looking for /usr/lib/office52_en/program/soffice for instance, we click on the “file” button at the left side of the toolbar on top of our text editor’s screen and select “open” from the drop-down menu. This brings up a “select file” window. Their appearance varies from editor to editor — I’ve used Nedit’s version here — but they all work pretty much the same way.

Note that we’ve typed the directory we want in the top “filter” line and are looking at a list of files within that directory in a box at the right side of this little box on our screen. We can get to that directory in a number of ways, including typing its name into the “filter” space directly or by starting with “/” and from the “Directories” selections that would give us, choosing “/usr” and getting another “Directories” list, then selecting “/lib” and doing this again to get “/usr/lib/office52_en/” and once again to get to the “/usr/lib/office52_en/program/” directory. This is a lot faster to do than to describe. Which way you chose depends on whether you prefer to type or click. You end up in the same place either way. Now click “OK” and the file opens up in Nedit (or whatever editor you choose) and you are ready to edit it any way you want.

Now you are on familiar ground if you have ever done any text editing at all in any “point and click” text editor — in any operating system. You have all your usual text editing features available, including “undo” if you make a mistake.

(Since you are editing files that control your computer, you want to be extra-careful to get everything right before you hit that all-important “Save” button and consider your work finished, so that one-click “undo” command is a great one to have handy here.)

Hopefully, you are editing files in accordance with instructions from someone who knows more than you (or I) do or are working from a “How To” or “Read me” file or getting your editing instructions from a trusted Web site. In this example, we are curing a problem StarOffice has when it is run on a system with a Savage S-3 video driver: start StarOffice and the system locks up and won’t work. The “Read me” file included with StarOffice says that if we insert the one-line command export SAL_DO_NOT_USE_INVERT50=true this problem will go away.

(StarOffice documentation did not say in which file this line should be inserted, but that’s another issue. I found out from a “Linux guru” buddy — and saved his exact instructions on a floppy disk in case I needed them again after a reinstall, which I eventually did.)

How often do you edit programs or system files?
This is the key question. If your work will benefit from using a programmer-oriented editor or you are using Linux as a training tool because you hope to become a programmer or network administrator in the future, you probably should learn to use vi or emacs — or both. But if you use Linux for nothing but user-level Web surfing or office work and only dabble with your system once in a while, you don’t need a complex editing program. Performing a simple, user-level system maintenance or modification task only requires a simple tool — like one of the many “point and click” text editors for Linux that almost anyone can learn to use in a minute or two.

Note: No matter what text editor you prefer, an excellent reference for Linux users trying to figure out “what’s going on in there” is The Linux Cookbook by Michael Stutz. It is a great introduction to Linux at the “command line” level.

Category:

  • Linux

Petition against software patents

Author: JT Smith

Petition Online has a (U.S.-only) petition asking for the ending of software patents on the grounds that they stifle innovation in the software industry.

KiddieNet – a last line of defense?

Author: JT Smith

From Advogato: “Several months ago I wrote an article to highlight the frustration I feel at Network Administrators who ignore, or are ignorant of, people who are using their network resources to commit what are effectively illegal acts.”

Category:

  • Linux

Concept PC 2001, New Meaning?

Author: JT Smith

Rami Kassab writes “Check out this sweet PC developed by HP. It runs on the Intel P4 and features a wireless keyboard, mouse, even a wireless 18” flat screen LCD monitor. The wireless mouse and keyboard run over RF. All of the components are connected to eachother via Bluetooth technology. Included with this PC is USB 2.0 and an ATI 7500 AGP card. This is a wonderful idea but is simply a “Concept PC”; therefore, it isn’t guaranteed to be released.

Read the full First Look at Designtechnica.com

Category:

  • Unix

This week in DotGNU – no. 5

Author: JT Smith

See http://www.dotgnu.org for general information about DotGNU.
Read on for “This week in DotGNU – no 5” (November 17, 2001)

1. New auth project: IDsec

2. List of 20 development projects in DotGNU

3. Meet the DotGNU Crew in January 2002 at LinuxWorld NYC

4. Release of Portable.NET 0.2.4 and pnetlib 0.0.8

New auth project: IDsec

~~~~~~~~~~~~~~~~~~~~~~~

IDsec is a mechanism that provides an identity for users on the internet. Identity in this system means that a user is known by a certain profile which contains precisely those attributes that the user wants to reveal to the requester of his profile.

Access to profile attributes is managed by the user himself. Certificates and public/private key mechanisms ensure that information is exchanged in a secure way between parties that trust each other.

A preliminary implementation that implements the core of the different parts of the system exists, and Hans Zandbelt of Telematica Instituut in Enschede, Netherlands (where this system is being developed) has stated: “Now our intention is to distribute and develop it further as a proposal in the DotGNU portfolio.” DotGNU Steering Committee chairman David Sugar, who will be in Enschede anyway from the 27th of Nov thru Dec 1st for the Linux Kongress, will meet with Hans Zandbelt to discuss the next steps.

List of 20 development projects in DotGNU

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DotGNU is a meta-project which could in principle be an umbrella for any number of development projects, but it is important to focus on the most important components at first. Therefore, until the release DotGNU 1.0, the number of official DotGNU development projects will be limited to at most twenty. The time has come to work towards finalizing this list of high priority development projects; a first draft has been posted at http://archive.dotgnu.org/pipermail/developers/2001-November/001399.html.

One major way in which this proposal differs from previous plans is the inclusion of support for PHP3. Not only is PHP a very convenient language for creating XML files, PHP support is also necessary for close cooperation with the phpGroupWare project which now appears highly desirable. In related news, Bradley Kuhn is organizing a phone conference call about integration between GNU Enterprise, DotGNU and GNU Groupware Standards.

Meet the DotGNU Crew in January 2002 at LinuxWorld NYC

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The LinuxWorld conference in New York City (USA) will be a good opportunity to meet many of the key people behind organizing the DotGNU effort. A special DotGNU panel will be held on January 30th at 2:30pm. The full announcement is available at http://archive.dotgnu.org/pipermail/announce/2001-November/000002.html.

Release of Portable.NET 0.2.4 and pnetlib 0.0.8

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The major changes in this release are to the runtime engine. The engine can now run more complicated example programs, as long as they don’t use exceptions, delegates, or tail calls. Rhys Weatherley has also integrated the Hans-Boehm garbage collector, which is used by gcc and other projects. This is a very stable system that has been ported to many platforms, and solves many of the nasty problems of garbage collection in a C environment.

Web Page: http://www.southern-storm.com.au/portable_net.html
Download: http://www.southern-storm.com.au/download/pnet-0.2.4.tar.gz
Library: http://www.southern-storm.com.au/download/pnetlib-0.0.8.tar.gz

Greetings,

Norbert.

P.S. Translations of “This week in DotGNU” into other languages are very welcome; please let me know about them.

“This week in DotGNU” is Copyright (C) 2001 by Norbert Bollow. Verbatim copying and distribution of this entire issue is permitted in any medium or format, provided this notice is preserved.

Category:

  • Linux

eZ xml 1.0 released

Author: JT Smith

BÃ¥rd Farstad writes “eZ xml is an XML DOM parser written in pure PHP. It’s fully compatible with the libXml parser, but does not require any external libraries. eZ xml is released under the GPL license. Go to http://ez.no/filemanager/list/55/ for downloads.”

ICANN warned of its own vulnerabilities

Author: JT Smith

CNN reports that “many of the people attending the Internet Corporation for Assigned Names and Numbers’ (ICANN) conference last week used a wireless network at the hotel, and AT&T researcher Randy Bush knew some of the passwords they typed into their systems. He shared one password, “Ireland” and several others, over the conference’s public address system.”

Category:

  • Linux

Weekly news wrap-up: Reviews of SuSE, Red Hat, Netscape

Author: JT Smith

By Grant Gross

It seemed to be review week in the Open Source world, with several recent releases of Linux distributions and related software earning interesting reviews. Among those were SuSE Linux 7.3 Personal Edition, Red Hat Linux 7.2 Professional, and Netscape 6.2 for Linux.

SuSE 7.3 Personal earned generally solid reviews, at least after the reviewers got the darned thing installed. NewsForge’s Tina Gasperson compared the distribution to having a baby, a painful and lengthy installation process but well worth the effort once it’s working right. I haven’t birthed any babies, so I’ll take her word on that. On the other hand, our friends at The Register loved SuSE 7.3 Personal through and through, saying it’s superior to both Red Hat’s Linux distribution and Windows XP.

Red Hat 7.2 Professional got it’s own review this week, however. ReactiveLinux.com called its $199 price tag a bit steep for another flavor of Linux. The reviewer did say that “Red Hat 7.2 features a refreshing addition to its arsenal in the form of ext3 support. But that’s really about it.”

If you’ve already got your favorite flavor of Linux installed, and you just want to do some browsing, check out NewsForge editor in chief Robin “Roblimo” Miller’s review of the new Netscape 6.2. For the first time in years, he says, he’s happy with the browser on his screen. Me too, by the way, but I crashed it about 20 minutes after downloading it. Some things never change.

A bunch of Microsoft news

Well, OK, you won’t find every kind of Microsoft news here, but we do note some issues the big, ol’ monopolist has with the Open Source community — again.

The Register reported on a memo circulating among Microsoftie salespeople calling Linux the long-term threat to their core business. Gee, we’ll take that as a compliment.

Not in response to that memo, but just in response to the way Microsoft does business, one writer renewed the call for a Microsoft boycott.

And finally, for a chuckle, check out what some British Linux fans think of the new Windows XP. I guess you’d call that the Blue Billboard of Death.

New at NewsForge and Linux.com

Other stories that NewsForge and Linux.com reported first this week:

  • Jeff Field reviewed the Intel Pentium IV 1.9GHz chip’s performance with Linux and found it not really worth the price.

  • At an intellectual property conference in Washington, D.C., several critics of copyright law suggested it has gone too far and will continue to impact the Open Source community.

  • Tina Gasperson found that the new copy-protected CDs will play on Windows, but not Linux or Mac. Hmmmm.

    Stock news

    Open Source-related stocks, and the tech-heavy Nasdaq market in general, had a pretty good week, with the Nasdaq up 3.8 percent to 1898.58. That was a 70.10-point gain for the week. Reuters said technology stocks are on fire, although it might be a little early to get too excited. Invest wisely.

    Almost all the Open Source-related stocks in the handy little table below rose this week, in particular Caldera and VA Linux, the parent company of Linux.com and NewsForge. Reuters suggested the steep increases, 118 percent in two days for Caldera, came because of positive comments by IBM about Linux.

    IBM continued support of Linux by announcing a pre-packaged cluster suite for Linux. IBM’s Linux types predict the easy-to-install package will help bring more Linux clusters to the business market.

    Here’s how Open Source and related stocks ended this past week:

    Company Name Symbol 11/09 Close 11/16 Close
    Apple AAPL 18.71 18.97
    Borland Software Int’l BORL 13.52 13.80
    Caldera International CALD 0.30 0.57
    Hewlett-Packard HWP 18.99 21.50
    IBM IBM 114.08 114.50
    MandrakeSoft 4477.PA e3.70 e5.00
    Red Hat RHAT 5.40 6.00
    Sun Microsystems SUNW 12.92 13.39
    TiVo TIVO 5.98 6.00
    VA Linux Systems LNUX 1.73 2.90
    Wind River Systems WIND 16.95 18.79
  • GNU-Darwin releases x86 packages and CD

    Author: JT Smith

    rrp writes, “The GNU-Darwin Distribution now has x86 binary packages ready to install, as well as a Bootable Installer CD for x86.”