Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HOWTO: Speeding up Debian

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
Lou
Posts: 1739
Joined: 2006-05-08 02:15

#16 Post by Lou »

Hevoos wrote:What does these things do:
openbsd-inetd
rc.local ?
google.com/linux
How do I install and use localpurge? Apt-get clean is also a great thing to do. ;)
apt-get install localepurge
man localepurge
google for 'debian + localepurge'
search this forum for 'localepurge'
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
Pobega
Posts: 833
Joined: 2007-01-04 04:30
Location: New York

#17 Post by Pobega »

Display manager: For those of you that find gdm is too slow for your system, may I recommend wdm? WDM is a very light display manager based on the WINGs widget set, and it blends with Window Maker (For those of you who use it). WDM has all the configuration options of GDM/KDM, though they're located in the /etc/X11/wdm folder and there are no graphical programs to configure them.

Speeding up boot: Although it's been mentioned before, one program that I use all of the time to speed up my system was completely left in the dust. sysv-rc-conf is a very useful program to switch what runs and what doesn't at different runlevels. The userface is the most simple console userface ever, navigate using the arrow keys and toggle the selected item with the space bar. Check out it's manual page, and read the documentation located at /usr/share/doc/sysv-rc-conf/README for more information on using sysv-rc-conf.

Lightweight file manager: Have you ever missed Nautilus? Well, pcmanfm is a file manager available in the Debian repositories that is a sure-fire way to relive your experiences with GNOME and Nautilus. PcManFM is a very fast and highly customizable file manager. It's user interface is like a hybrid between Thunar and Nautilus, and is quicker than the both of them.

Located in the file /usr/share/doc/pcmanfm/README.Debian is a HowTo on how to replace Nautilus with PcManFM in a GNOME environment; Very useful for those who want to speed up their install but can't live without GNOME!


That's all I have for now, although I'll definitely be posting back with more soon, when I remember everything I've done to tweak my system.
Jabber: pobega@gmail.com
Pronunciation: Poh - Bay - Guh

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#18 Post by Lou »

Very good! Now you're talking!

Although, IMHO, you need a DM (display manager) like you need another hole in the head. 'update-alternatives' can take care of that, or a simple editing of the .xinitrc. DMs are heavy and can be a headache if badly configured.
But hey, that's only my opinion.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
Pobega
Posts: 833
Joined: 2007-01-04 04:30
Location: New York

#19 Post by Pobega »

Lou wrote:Very good! Now you're talking!

Although, IMHO, you need a DM (display manager) like you need another hole in the head. 'update-alternatives' can take care of that, or a simple editing of the .xinitrc. DMs are heavy and can be a headache if badly configured.
But hey, that's only my opinion.
I don't use a DM myself, but if I'm helping a friend customize an install on an older computer I usually lean towards WDM; It is as lightweight as XDM, without having to spend hours configuring it, and it comes with all of the options of GDM.
Last edited by Pobega on 2007-04-21 19:50, edited 1 time in total.
Jabber: pobega@gmail.com
Pronunciation: Poh - Bay - Guh

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

#20 Post by pcalvert »

Pobega wrote: I don't use a DM myself, but if I'm helping a friend customize an install on an older computer I usually learn towards WDM; It is as lightweight as XDM, without having to spend hours configuring it, and it comes with all of the options of GDM.
I tried WDM on Sarge, but didn't like it. For one thing, it had a clunky feel to it; but the main reason is that I didn't see any option that would allow me to drop to a console instead of starting a window manager.

Phil

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

#21 Post by Bulkley »

Next, i edited the file /etc/inittab and commented the TTYS except two, this will save around 3 MB of RAM.
Good idea. How can I find out which ones my computer uses?

User avatar
Dargor
Posts: 653
Joined: 2006-08-14 08:54
Location: New Zealand, Hamilton

#22 Post by Dargor »

Bulkley wrote:Good idea. How can I find out which ones my computer uses?
look in that file, the lines that are not commented(don't have a # in front) are in use.
you can test this by crtl + alt + F(1-6)
if there is a login then it is in use, if its just a blank screen it isnt.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

#23 Post by Bulkley »

Dargor wrote:look in that file, the lines that are not commented(don't have a # in front) are in use.
What I meant was, how can I tell if any hardware needs them? I no longer use a modem. Does anything else use them?

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#24 Post by Lou »

Bulkley wrote:What I meant was, how can I tell if any hardware needs them? I no longer use a modem. Does anything else use them?
AFAIK, they're there for your convenience, if you don't need them just leave 2, one for the X system and the other for whatever comes up.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
Pobega
Posts: 833
Joined: 2007-01-04 04:30
Location: New York

#25 Post by Pobega »

Lou wrote:
Bulkley wrote:What I meant was, how can I tell if any hardware needs them? I no longer use a modem. Does anything else use them?
AFAIK, they're there for your convenience, if you don't need them just leave 2, one for the X system and the other for whatever comes up.
Actually, the X system doesn't need one. X creates a new one when you call it.

Ex: I have TTY1 and TTY2 enabled as consoles, When I hit startx from the command line X shows up in what would be TTY3.
Jabber: pobega@gmail.com
Pronunciation: Poh - Bay - Guh

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

#26 Post by Bulkley »

Thanks.

Streamlining Debian is a good subject. You and I come to this from different directions. You are starting from a minimalist install; I have used the same install for about six years, with regular dist-upgrades. I have to keep removing the no-longer-needed. In going through your list, I found that my install was trying to boot both apache and samba although I removed them months ago. So, your tutorial has already paid off.

BTW, I like the timeouts for Xorg.conf. Works great. I have now removed my screensaver.

Regards,

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#27 Post by Lou »

Bulkley wrote: In going through your list, I found that my install was trying to boot both apache and samba although I removed them months ago. So, your tutorial has already paid off.
Keeping your system lean and mean, requires maintenance:

1. Removing is not enough, you have to PURGE! and not only that, then you have to go to your /home and enable the 'hidden files', and remove manually any vestige of the app you wiped out (dot files). Ex: say you purge xchat, in your /home you have to delete .xchat2, if you delete fluxbox, then wipe .fluxbox too and so on. The best command i've found is:

# dpkg -P [app] or wajig purge [app]
# apt-get install wajig

2. Once a week, i do:
# wajig orphans
# wajig purge-orphans
# wajig clean

Wajig is a front-end for dpkg like apt-get, aptitude, that combines most of their actions together with deborphan and debfoster, it's simple and to the point.

http://www.togaware.com/wajig/

it has a gui for gnome too.
Last edited by Lou on 2007-04-24 15:21, edited 1 time in total.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#28 Post by mzilikazi »

Anytime I build an older system I always put the swap partition as the first partition. The logic being that the outside of the disc spins faster than the inside there for making swap a bit faster. Probably not at all noticeable on newer machines but it always seemd to help (a little) w/ the low-end boxes.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G

User avatar
Pobega
Posts: 833
Joined: 2007-01-04 04:30
Location: New York

#29 Post by Pobega »

I have a question: Right now I'm using gnome-screensaver as a daemon for locking my screen, but I'd like something a bit more lightweight, without giving up usability (i.e. a daemon AND being able to call it from hotkeys/commandline). What would you recommend?

I've tried xlockmore and I really didn't like it; I haven't touched xscreensaver yet, but if it's suggested I will.
Jabber: pobega@gmail.com
Pronunciation: Poh - Bay - Guh

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#30 Post by Lou »

I use xtrlock, very light, no frills, you launch it and a blue lock shows in the screen, the screen freezes, to disable it you write your user's password (you won't see it) press enter and you're in like flynn. (Thanks Grifter, hurry back!)

In icewm i use the run box in the taskbar, in ratpoison: "bind x execute xtrlock" type of keybinding.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#31 Post by Lou »

Pobega wrote: Actually, the X system doesn't need one. X creates a new one when you call it.

Ex: I have TTY1 and TTY2 enabled as consoles, When I hit startx from the command line X shows up in what would be TTY3.
Noted. Thanks for the tip, bud.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

pdean1
Posts: 18
Joined: 2005-09-19 19:38

Wajig

#32 Post by pdean1 »

Wajig is a program you wont have to worry about breaking your system?
Have you encountered any problems ever after running it?

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#33 Post by Lou »

No, it's part of the Debian repos, it's been around for a while, used mostly by Debian administrators.

Here's a good article and postings by some users.
http://debaday.debian.net/2007/03/18/wa ... front-end/

Yesterday, i had a problem with dist-upgrading in Sid and installing the upgrades for some libraries, i did:

sudo wajig fix-configure
sudo wajig fix-missing
sudo wajig fix-install

and it worked right away. I like the aptitude's options:

wajig installr Install package and associated recommended packages
wajig installrs Install package and recommended and suggested packages
wajig installs Install package and associated suggested packages
wajig install/dist Install packages from specified distribution
Last edited by Lou on 2007-04-25 18:49, edited 1 time in total.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

#34 Post by llivv »

'
Last edited by llivv on 2019-02-18 02:56, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

th0rgal
Posts: 3
Joined: 2007-04-27 13:48

#35 Post by th0rgal »

Hi,

I installed initng 0.6.10 (from the initng own debian reps, see www.initng.org). My laptop used to boot in about 1mn15 with old sysv-init. It now boots in ... 16sec! from grub to X start-up. Very impressive ... initng is improving quite fast. There are still some issues but it is very easy to maintain. And there is no overwrite of the older /sbin/init so you can switch from one to the other by editing your boot params. You can even test timing with bootchard, if you are not convinced :)

Post Reply