The great AT Linux/BSD/*NIX FAQ project!

Page 14 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

cjr22

Member
Mar 21, 2003
65
0
0
I'd be interested in a FAQ about ways to increase the performance of my Linux installation. I've got two machines at home with Linux on, one is a Pentium 450MHz with 256Mb RAM running Mandrake 8.1, the other a 1.1GHz Duron with 512Mb running Mandrake 9.0. Strangely, the Duron takes much longer to boot, and simple things like opening a new terminal window or starting a browser also take much longer on that machine. Now, I know there's loads of things that could be causing this, and I'd like to solve the problem myself, but I have no idea where to start looking! If the problem was with Windows, I'd know how to check the boot sequence and Startup folder, and then check stuff like drivers, but with Linux, I'm a bit lost......
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: cjr22
I'd be interested in a FAQ about ways to increase the performance of my Linux installation. I've got two machines at home with Linux on, one is a Pentium 450MHz with 256Mb RAM running Mandrake 8.1, the other a 1.1GHz Duron with 512Mb running Mandrake 9.0. Strangely, the Duron takes much longer to boot, and simple things like opening a new terminal window or starting a browser also take much longer on that machine. Now, I know there's loads of things that could be causing this, and I'd like to solve the problem myself, but I have no idea where to start looking! If the problem was with Windows, I'd know how to check the boot sequence and Startup folder, and then check stuff like drivers, but with Linux, I'm a bit lost......

Quick answers:
boot- check what is starting in /etc/rc?.d (the ? being the init number you have starting up)
speed of the X system- use a quicker Window Manager instead of a large Desktop Environment

You can also look into adding some of the kernel patches out there, but I don't follow the Linux kernel stuff much.
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
Here's another one of those spiffy guides:

Setting up a TV tuner card in Linux

Because of a fairly hot deal at Newegg that appears to be here to stay, about half of the people on the AT forums now have Leadtek WinFast TV 2000 XP Deluxe TV tuner cards. This card, like most other non-ATI tuners, is based on the Brooktree BT878 chip, which is fully supported under Linux and FreeBSD. This guide will explain how to get a BT878 card up and running under Linux.

The first thing you must do (after hooking up the card) is recompile your kernel with Video for Linux (V4L) and the bttv driver. Note that kernel 2.4.20 and below do not include the bttv driver, so you will need to patch the kernel. 2.4.21 and up do include it, although the version included might be a little out of date.

Anyway, to enable the needed features, run the kernel configurator on your favorite kernel source tree, and enable these options:

Multimedia Devices → Video for Linux
Multimedia Devices → Video for Linux → BT848 video for Linux
Character Devices → I2C support → I2C support
Character Devices → I2C support → I2C bit-banging interfaces

Then compile and install the kernel as usual.

Now V4L and your TV tuner should be fully functional. You can check dmesg to make sure. Look for something like this:

bttv: driver version 0.7.104 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is PCI device 10de:01e0 (nVidia Corporation)
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 01:09.0, irq: 10, latency: 32, mmio: 0xe5000000
bttv0: detected: Leadtek WinFast TV 2000 [card=34], PCI subsystem ID is 107d:6606
bttv0: using: BT878(Leadtek WinFast 2000/ W) [card=34,insmod option]
i2c-core.o: adapter bt848 #0 registered as adapter 0.

Now, the V4L backend is up and running, so now you need a frontend. Most people talk about XawTV like it's the only game in town, but Linux is all about choice, and I prefer to use mplayer, so the next part of the guide will tell you how to use it for your TV viewing and capturing needs.

First off, you should install LAME. MPlayer can use it to encode captured audio in MP3 format. Most distributions include a precompiled package, otherwise it's just ./configure && make && make install.

Then, download the latest release of MPlayer, extract it, and enter its directory. You might also want to download the win32, quicktime, xanim and realvideo codecs, and put them somewhere convenient. I use /usr/share/mplayer/codecs. I'll assume you've done this.

1. ./configure --prefix=/usr --enable-smb --enable-largefiles --with-win32libdir=/usr/share/mplayer/codecs --with-xanimlibdir=/usr/share/mplayer/codecs --with-reallibdir=/usr/share/mplayer/codecs
2. make
3. make install (as root)

MPlayer is now ready to go. Now, the only issue that remains is that the command to run mplayer with V4L is a little cryptic. Here are some examples:

mplayer -tv driver=v4l:norm=ntsc:input=1:width=352:height=240 -double -vo sdl tv://

This captures video from the video-in jack on the card (input=1) at a resolution of 352x240, in NTSC format, and outputs it with double buffering using SDL.

mplayer -tv driver=v4l:norm=ntsc:channel=3:chanlist=us-cable:width=352:height=240 tv://

This tunes to North American (chanlist=us-cable) TV channel 3, and outputs it using plain old X video.

mplayer -tv driver=v4l:norm=ntsc:input=1:width=640:height=480 -double -vf lavcdeint -vo sdl tv://

Video-in jack, 640x480 resolution, double buffering, libavcodec de-interlace filter (-vf lavcdeint), SDL output.


If all has gone well, you are now watching TV on Linux. Now, you're probably wondering how to capture to a file. MEncoder, which comes with MPlayer, can capture and encode video in real-time and output it to an AVI file. Here is an example:

mencoder -oac mp3lame -ovc lavc -lameopts mode=1:vbr=2:q=4 -lavcopts vcodec=mpeg4 -tv driver=v4l:norm=ntsc:input=1:adevice=/dev/dsp:width=352:height=240 -af volume=-15 -o tv.avi tv://

Capture video from video-in jack on TV card at 352x240, and audio from the sound card (adevice=/dev/dsp)
Scale the audio by -15 dB (-af volume=-15)
Encode audio in MP3 format (-oac mp3lame), with settings (-lameopts): joint stereo (mode=1), default VBR method (vbr=2), pretty high VBR quality (q=4)
Encode video using libavcodec (-ovc lavc), using a DivX-like MPEG-4 codec (-lavcopts vcodec=mpeg4)
Output to tv.avi in the current directory.

Note that, using this method, MEncoder will only capture sound from the audio channel you have selected as the recording source. In this case, you almost certainly want to set that to Line, using whatever mixer app you prefer. If the sound in the output file is too quiet, either set the -af volume parameter a little higher, or remove it. If it's too loud, set it lower.

As always, refer to the man page for specific details. This guide should be enough to get you started though. Enjoy.
 

MainFramed

Diamond Member
May 29, 2002
5,981
1
0
[Question]

I am on Red Hat Linux 9. Where are your internet cookies stored? Are they stored in a certain file like in windows? What about your temp internet files?

BTW, I love this Evolution Mail...when was it added? 8.0? (I know it wasen't around when I had 7.3)

Help is always appricaited

-~!MainFramed!~-

[/Question]

 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Hi,

I don't really know where Linux stores cookies. In Linux, Konqueror, Mozilla and the other browsers have options to manage the cookies. If you go to Settings/Konqueror/Cookies, then you can manage your cookies such as delete them or prevent other cookies from being stored in your pc again. Also in mozilla you can go edit/preferences/ and then you can manage cookies.

Linux is very good about managing cookies, spyware can't be installed in your computer from the internet because you need root priveleges to install the spyware. You can also set up your browser to ask you if you want to accept cookies

good luck,
pitupepito
 

Electrode

Diamond Member
May 4, 2001
6,063
2
81
No feedback on my TV FAQ?

pitupepito2000: Depends on your browser. Mozilla-based browsers store them in ~/.mozilla/default/(random)/cookies.txt, Konqueror no doubt keeps them somewhere under ~/.kde, don't have any idea where other browsers keep them. If in doubt, you could always do find ~/* | grep cookie and see what comes up...
 

Tripleshot

Elite Member
Jan 29, 2000
7,218
1
0
I downloaded mandrake 9.1 last night and I'm posting for the first time in a linux environment. I will have to spend alot of time learning all the nuances of this os, but the install is far different than I expected. Point and click with a little computer knowlwdge and some big brass balls, and weeeeee, I'm doing linux now!


Somehow I don't think so yet. But this thread will be my mentor for now. Thank you all for sparking my interest.
 

skyking

Lifer
Nov 21, 2001
22,368
5,330
146
Originally posted by: Electrode
No feedback on my TV FAQ?

pitupepito2000: Depends on your browser. Mozilla-based browsers store them in ~/.mozilla/default/(random)/cookies.txt, Konqueror no doubt keeps them somewhere under ~/.kde, don't have any idea where other browsers keep them. If in doubt, you could always do find ~/* | grep cookie and see what comes up...

That was great, and I will consult it while trying to build a PVR box for testing.
This thing is slipping again, time to send it back up.
 

calvink

Member
Feb 3, 2003
146
0
0
I am new to linux, and i can't figure out how to compile my network drivers. I've already transfered all of the files(.c, and .h's) to a temporary directory on the drive, but i don't know how to compile it. It came with a Makefile, so i tried typing in make Makefile and gcc Makefile. When i typed in gcc Makefile it returned the error "parse error" When I type in make Makefile, I get the error Linux kernel source not found. Any help is appreciated, I have almost no knowledge of Unix or Linux. Thanks.



Note: Does it matter if i un gz/tared all of the files first on a windows machine, copied them to a floppy then copied them onto a linux machine? I am running Debian30r1. Thanks.
 

Panther505

Senior member
Oct 5, 2000
560
0
0
Originally posted by: calvink
I am new to linux, and i can't figure out how to compile my network drivers. I've already transfered all of the files(.c, and .h's) to a temporary directory on the drive, but i don't know how to compile it. It came with a Makefile, so i tried typing in make Makefile and gcc Makefile. When i typed in gcc Makefile it returned the error "parse error" When I type in make Makefile, I get the error Linux kernel source not found. Any help is appreciated, I have almost no knowledge of Unix or Linux. Thanks.



Note: Does it matter if i un gz/tared all of the files first on a windows machine, copied them to a floppy then copied them onto a linux machine? I am running Debian30r1. Thanks.

My suggestions are as follows.

I copy the tar.gzip onto to a floppy and move it to the linux box. Untar it (tar zxvf ) and then cd into the directory and do a ./configure make make install (make install as root). Failing that then you need to read the readme. Valid way to get the make flags is to vi the Makefile. A little reading will get you what you need.


Hey- MODs, Oh MODS, can we please have our sticky back.
 

calvink

Member
Feb 3, 2003
146
0
0
Thanks guys, I started a thread outside of this one too. So BingBongWongFooey and a few others have been helping me out. Thanks again.
 

adlep

Diamond Member
Mar 25, 2001
5,287
6
81
Well, it seems that the thread has lost its sticky...
Therefore bump
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Hi,

My Linux box for some reason doesn't play very well any game that is 3d. It acts very sluggish like if I my set up couldn't handle it. I have a Radeon 8500LE with 64MB and that card should be able to play tux fine. Although I don't have any 3d acceleration with 3d games, when I issue the command glxgears from the command line, I do get 3d acceleration.

Please help me,
pitupepito
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
can somebody explain me how to use update-alternatives in debian? I have searched all over and I just don't get it
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |