| Author |
Message |
sarge
Joined: 19 Dec 2004
Posts: 58
|
| Posted: Fri Jan 21, 2005 3:45 pm Post subject: How to use less memory by replacing getty with fgetty |
|
|
fgetty is a fast and extremely small replacement for getty.
http://www.fefe.de/fgetty/
If you are running debian, just do `apt-get install fgetty` and then manually replace every occurance of the following substring in /etc/inittab
from: respawn:/sbin/getty 38400 tty
to: respawn:/sbin/fgetty tty
WARNING: Don't mess up inittab or you'll make your system unbootable. Don't edit inittab if you are new to Linux. |
|
| Back to top |
|
Ciaran
Joined: 13 Feb 2004
Posts: 138
Location: England, UK
|
| Posted: Fri Jan 21, 2005 7:13 pm Post subject: |
|
|
A quick reminder that's always helpful for this sort of thing - if you do screw up and make your system unbootable (and if you're confident in Linux), see if you can free up 80MB or so from the Disk Images section, and use the Distribution Wizard to deploy a small Debian distribution (being the smallest distro available right now).
Then, edit the Debian profile and make sure the disk image containing the root of the other distro is somewhere in the profile. Boot it up, and use the tools available to you to mount the image and edit the inittab. Then shut down and reboot into your old profile.
This advice is elsewhere in the forums but it always bears repeating. |
|
| Back to top |
|
rndinit9
Joined: 23 Jan 2005
Posts: 6
|
| Posted: Sat Jan 29, 2005 6:11 pm Post subject: |
|
|
apt cant find package fgetty
apt-get install fgetty
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package fgetty
what does your /etc/apt/sources.list look like ?
apt-cache search getty: returned nothing usefull
Im using debian 3.0r1 small. |
|
| Back to top |
|
sarge
Joined: 19 Dec 2004
Posts: 58
|
| Posted: Sun Jan 30, 2005 12:11 pm Post subject: |
|
|
If you use my sources.list with woody, it'll mess things up because I upgraded from woody to sarge. I also use apt pinning to use unstable for apps not found in sarge.
Seems packages.debian.org is down for this weekend.
Normally, you'd be able to see this package at:
http://packages.debian.org/fgetty
Also, the memory savings from fgetty are much better on machines running multiple instances. I think linode's have their inittab configured to only run one getty instance.
I use fgetty not only for memory savings but was told by someone in data security that it is more secure than getty. |
|
| Back to top |
|
griffinn
Joined: 09 Sep 2003
Posts: 47
|
| Posted: Mon Jan 31, 2005 5:25 am Post subject: |
|
|
You can always just traverse down ftp.debian.org manually:
http://ftp.debian.org/debian/pool/main/f/fgetty/fgetty_0.6-2_i386.deb |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 295
Location: Austin
|
| Posted: Mon Jan 31, 2005 12:02 pm Post subject: |
|
|
| I wonder what's going on with packages.debian.org... That's a heck of an outage! |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 295
Location: Austin
|
| Posted: Mon Jan 31, 2005 12:44 pm Post subject: |
|
|
Oh, it seems to have come back up. With this not-so-helpful-anymore notice:
Quote: Scheduled downtime: Due to a scheduled power shutdown at the site where this server is hosted, packages.debian.org will not be available from Saturday, January 29th 00:00 UTC until Monday, January 31th, 07:00 UTC. |
|
| Back to top |
|
OverlordQ
Joined: 04 Jun 2004
Posts: 200
|
| Posted: Wed Feb 02, 2005 11:23 pm Post subject: |
|
|
rndinit9 wrote: apt cant find package fgetty
apt-get install fgetty
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package fgetty
what does your /etc/apt/sources.list look like ?
apt-cache search getty: returned nothing usefull
Im using debian 3.0r1 small.
Looks like it's only in testing/unstable, might be able to find a backport |
|
| Back to top |
|
| |