Results tagged “Aptitude” from CLICK

When you install Debian without a mirror, you need to edit /etc/apt/sources.list if you want to use a mirror once the system is running

| | Comments (0) |

I'm surprised that I forgot how this works: When you install Debian without using a network mirror (either from the first CD of the full set or, my preferred method, with the DVD image), /etc/apt/sources.list is set up with a Debian mirror for security updates. However, there is no entry for the Debian software repositories, and if you want to add applications from a network mirror, you'll need to modify /etc/apt/sources.list accordingly.

One thing I noticed in Lenny is that sudo was included in the default. I can't remember whether or not sudo was part of the default Etch install. I seem to think not. I always add it anyway, and I was happy to see sudo part of the default Debian install (the Xfce desktop version at any rate).

So I had sudo and used visudo to give rootly powers to my user account. This is the way Ubutu works by default, and I've grown quite accustomed to using sudo instead of su to root. OpenBSD also includes sudo in the base install, and I used it there pretty much exclusively.

I needed rsync to make my backup scripts work, and that is one package that Debian doesn't include in the default. When I tried to add it with Aptitude, the system couldn't find it. That was because I installed from CD, didn't pick a network mirror due to some kind of problem on my local network.

I took a look at /etc/apt/sources.list and immediately saw that since I didn't use a network mirror, the system didn't (and probably couldn't) put one in that configuration file.

It's easy enough to remedy the situation. Either become the superuser with su, or use sudo (again my preferred method) and edit /etc/apt/sources.list. My changes to the file are in blue type and my coments are in dark red type:

First open your favorite terminal program and become the superuser:

$ su

enter the root password when prompted. If you're successful, you'll get a # prompt, which is the root prompt:

#

Then edit /etc/apt/sources.list. I'm in Xfce, so I used the Mousepad text editor. Use your favorite editor.

# mousepad /etc/apt/sources.list

Here is the file and my comments and changes:

# use the pound sign before lines you want the system to ignore. I no longer want apt or Aptitude to look for packages on the install CD, so I'm "pounding out" the next line
# deb cdrom:[Debian GNU/Linux 5.0.2a _Lenny_ - Official i386 xfce+lxde-CD Binary-1 20090817-01:32]/ lenny main

# I needed to add the next two lines so I could install packages from the Debian repository. The "basic" way to do this is to hit the main repository, but I added contrib and non-free because I sometimes need packages that aren't totally "free" in a free software sense, especially the Java runtime
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

# The security updates for the main repository were included so all the packages installed by default from the "main" repository are covered; I added contrib and non-free so I would get updates for those packages as well
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

-----------------------

Now that I had /etc/apt/sources.list configured, I installed rsync with Aptitude, did my backup and went about my business .

Fixing sound in Debian Lenny for PCs with ESS Allegro/Maestro3 sound chips, plus a lean Lenny install made easy

| | Comments (0) |

Why Debian decided at this juncture to remove the binary blog that supports sound for those with ESS Allegro/Maestro3 chips -- including The $0 Laptop (Gateway Solo 1450) -- I don't know.

The problem -- i.e. no sound -- reared itself in the newish 2.6.24-1 kernel that recently rolled into Debian Lenny. It took me awhile before I figured out that booting the previous kernel -- 2.6.22-3 -- brought sound back.

But what if I have to reinstall Lenny and don't get the older kernel? Or what if want to use the new kernel ... and those that follow?

Well, I checked back with the bug report, and there's a fix that involves getting the binary blobs yourself, courtesy of Gabor Burjan:

You do not need to recompile the kernel, you need the appropriate binary firmware blob. Get the firmware package

ftp://ftp.alsa-project.org/pub/firmware/alsa-firmware-1.0.16.tar.bz2

and run ./configure && make && make install

After this you should have the following files present:

/lib/firmware/ess/maestro3_assp_kernel.fw
/lib/firmware/ess/maestro3_assp_minisrc.fw

Then, run rmmod snd_maestro3 and modprobe snd_maestro3 again.

I haven't tried it yet, since I still do have the older kernel. I probably will try it, but I'm not happy about it. I have half a mind to wait until the next kernel upgrade to see if the Debian team has come to its collective senses. I can understand distros/projects that really could care less if you used their code or not (OpenBSD comes to mind, but since it's so good, I'm using it anyway ... and the growling and grumbling is part of its charm), but Debian doesn't strike me as one of those projects that either wants to, or can afford to, alienate users new and old with crap like this.

Along this same line, I hope they will fix Debian Lenny's Epiphany bug (which I already fixed on my own, but again, it's something that would send a sane user running into the arms of Ubuntu, or even Windows). That bug appears "closed," but I hope that future users of Lenny don't have to suffer through it.

Even though I've had to do a bit of tweaking, this Gateway laptop responds very well to Debian Lenny. My daughter uses the laptop all the time for her games (Childsplay, gCompris, Potato Guy, Tuxpaint), and it's doing pretty well.

I did another Lenny install today on my test box, on which I did the "standard" install, added X and Fvwm (the window manager that comes standard with OpenBSD and is growing on me) and a few apps -- Geany, Ted, Dillo, Lynx, Iceweasel, sudo and xterm (yep, a "standard" install doesn't include sudo and xterm).

So far the box is performing very well. And yes, Ted did work. I tried Ted on an Etch install yesterday, and it still hasn't been fixed there, but the RTF word processing program works great in Lenny. Thanks, Debian!

Hint: I hadn't built up a Debian box from the "standard" install to include X in awhile. One thing that ensures success when doing this in Debian: use aptitude instead of apt.

I just run aptitude at the command line; I still can't figure it out when you run it as an application and it actually opens up with menus and stuff.

The reason I say to use aptitude instead of apt-get, is that aptitude seems to pick up more packages that you need for stuff to look right and work right.

For instance:

# aptitude install abiword

picks up lots more packages than:

# apt-get install abiword

After using aptitude to install Abiword, you get all the "common" files, plus all the plugins, including the spell checker.

And as far as installing X on the system, which installed with the command line only:

# aptitude install xserver-xorg-core fvwm

was enough to get me going. There was a strange menu that came up in Fvwm that asked me about configuration. I just checked every box, and after that I had my own .fvwm2rc file in my home directory. Fvwm can also use a common configuration file for all users. Read the man page for fvwm to find out more. I was surprised at how good the man page in Debian was. I'll have to compare it with OpenBSD's man page for Fvwm.

So the takeaway is:

  • Debian sends you to the Web for help every once in awhile, and you usually get the help you need ... but the Debian team needs to fix stuff that's broken in order to attract and keep as many users as possible.
  • Once Debian is working on a machine, it tends to keep working great (barring issues like the sound-less kernel). Debian is fast, has just about everything you could ever want ... and did I forget to say that even Testing is pretty darn stable (they're not lying about that).
  • Aptitude is better than apt (yes, I know that Aptitude is based on apt, as is Synaptic, but using Aptitude just works better than either Synaptic or apt).
  • I've been running Lenny (Testing) for a few months now, and I plan to stick with it on this laptop when it goes stable. That should mean a long, long run of good computing. Again -- thanks, Debian!
Two more things: I actually like running the Epiphany browser. I find myself using it more and more. I should probably install a KDE-something or other again, just for comparison's sake, but I'm pretty happy with GNOME (although I still use Fvwm, Fluxbox and JWM, depending on the distro and the machine).

Debian Lenny gets OpenOffice 2.4: Among my updates today were the latest version of OpenOffice. I don't use OO much these days, but it's nice to see Lenny get it so relatively quickly. I don't think it's more than a week or two behind the Ubuntu 8.04 LTS beta in this regard.

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appears Saturdays in the Los Angeles Daily News, is now available on the Daily News Technology page.

About this blog

New ways to sign in to comment: I just added the ability for prospective commenters on this blog to sign in using their AOL, Yahoo! and Wordpress.com accounts (for the past 200 posts anyway ... more than that will take an extensive, middle-of-the-night rebuild). That's in addition to the other sign-in choices, which include starting a Movable Type account on this blog, Typekey, OpenID, Live Journal and Vox. If you have trouble getting your Movable Type account verified, or any of the other sign-in options are not working properly, please e-mail me. With these added ways of signing in, there's more reason than ever for you to make a comment (or several!).




Steven Rosenberg aims to learn what he does not know. He writes about it here.



Recent Comments

Powered by Movable Type 4.25

Tags

LXer

Links

Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Popey
gNewSense
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
DesktopBSD
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
Engadget
Gizmodo
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals

Advertisement

Other blogs

Answer Tuesday! (Part 7) in Inside USC with Scott Wolf
Medical news in Inside the Lakers
Random. Mid-week. Chat. in Inside UCLA with Jon Gold
Globies on Ice: Not so nice in Farther Off the Wall
Careerbuilder.com Super Bowl commercial filmed in old Daily News newsroom in Come on Feel the Nuys