After and install of Kdevelop,
to get the documention search functions to work properly
apt-get htdig
and add the some paths to the Configure Kdevelop / Documention tabs
htsearch location is /usr/lib/cgi-bin/htsearch
Saturday, March 31, 2007
Monday, March 19, 2007
Speed up your network - local DNS caching
This is an old trick, but its fairly easy to do it on
linux. Basically everytime you visit a website or
a site that has a name (eg. www.google.com),
you computer must look up the name from an
internet server called a DNS (Domain Name Server).
This gives your computer an IP address (numbers)
that it can use to connect directly to the server you
requested.
The look up of the name and conversion to this
number address can take a few microseconds
(usually 30-60) depending on where the DNS
server is, lag, etc.
So under heavy usage all the address lookups
could add up to minutes of waiting in a day.
Fortunately, most web browsers have a built in DNS
cache, so they dont have to keep looking up the address
for that current session you are using.
But what about a better way to cache all theese address,
even for non websites.
Enter the DNS cache....
With a DNS cache, all the websites address are stored localy
so the lookup delay is cut from 30-60 down to 3-6! wow!
A tenfold savings in wait time!
For linux there are a few programs that can be easily used,
bind, dnsmasq pdns, dnsproxy
I have tried pdns, and it seems to work well.
So
apt-get install pdns resolvconf
once bind is up and running, its default mode
is dns caching, meaning you dont have to do any setup.
u can test the speed improvement by using:
dig www.google.com
before and after
note: there are 2 files than can be edited
if resolvconf doesnt do the job
/etc/resolv.conf
should contain a line that say:
nameserver 127.0.0.1
( your local ip)
linux. Basically everytime you visit a website or
a site that has a name (eg. www.google.com),
you computer must look up the name from an
internet server called a DNS (Domain Name Server).
This gives your computer an IP address (numbers)
that it can use to connect directly to the server you
requested.
The look up of the name and conversion to this
number address can take a few microseconds
(usually 30-60) depending on where the DNS
server is, lag, etc.
So under heavy usage all the address lookups
could add up to minutes of waiting in a day.
Fortunately, most web browsers have a built in DNS
cache, so they dont have to keep looking up the address
for that current session you are using.
But what about a better way to cache all theese address,
even for non websites.
Enter the DNS cache....
With a DNS cache, all the websites address are stored localy
so the lookup delay is cut from 30-60 down to 3-6! wow!
A tenfold savings in wait time!
For linux there are a few programs that can be easily used,
bind, dnsmasq pdns, dnsproxy
I have tried pdns, and it seems to work well.
So
apt-get install pdns resolvconf
once bind is up and running, its default mode
is dns caching, meaning you dont have to do any setup.
u can test the speed improvement by using:
dig www.google.com
before and after
note: there are 2 files than can be edited
if resolvconf doesnt do the job
/etc/resolv.conf
should contain a line that say:
nameserver 127.0.0.1
( your local ip)
Purge locales - free a little more drive space
So another what to free up some disk space
on those small installs of linux (eg. flash drive)
is to remove the localization files that are for
the other languages you wont be using.
So if you know, you wont be using anything,
but us-english or canadian-english you can:
apt-get install localepurge
then it will prompt you to select the language
types u want keep.
now everytime you run
localepurge
from the console, it will search and delete the localefiles,
and show you how much diskspace it has liberated!
on those small installs of linux (eg. flash drive)
is to remove the localization files that are for
the other languages you wont be using.
So if you know, you wont be using anything,
but us-english or canadian-english you can:
apt-get install localepurge
then it will prompt you to select the language
types u want keep.
now everytime you run
localepurge
from the console, it will search and delete the localefiles,
and show you how much diskspace it has liberated!
Monday, March 5, 2007
checking your filesystem for errors
So you need to check your file system, just incase there might be errors.
Method #1
if its not the rootfs, you can unmount it and simply:
fsk /dev/hda1
(where hda1 is any available unmounted partition you want checked)
Method #2
especially useful if it is the root file system
1. goto single user mode by typing in a console:
init 1;
2. remount the rootfs as readonly
mount / -o remount,ro
3. now run
fsck /
4. reboot
Method #3
goto root
type
# touch /forcefsck
reboot
Method #4
use the shutdown command with some extra options
eg.
shutdown -r -F -time now
Method #1
if its not the rootfs, you can unmount it and simply:
fsk /dev/hda1
(where hda1 is any available unmounted partition you want checked)
Method #2
especially useful if it is the root file system
1. goto single user mode by typing in a console:
init 1;
2. remount the rootfs as readonly
mount / -o remount,ro
3. now run
fsck /
4. reboot
Method #3
goto root
type
# touch /forcefsck
reboot
Method #4
use the shutdown command with some extra options
eg.
shutdown -r -F -time now
your disk usage and free space
df -h -T
gives a nice formated list of mounted drives and space
du -x -s /
will show disk usage for the / and summarize to one total
if you like a graphical display of disk usage
baobab or kdirstats can help
gives a nice formated list of mounted drives and space
du -x -s /
will show disk usage for the / and summarize to one total
du -ah | sort -n
will show directories with a numerical sort
if you like a graphical display of disk usage
baobab or kdirstats can help
finding an elusive module
Command:
modprobe -l
will list all the modules
use with grep to help search!
modprobe -l
will list all the modules
use with grep to help search!
Subscribe to:
Posts (Atom)