Archive

Archive for the ‘Linux’ Category

Speedup your apt

April 13th, 2007 No comments

Apt is the best friend for any deb dependend linux like debian , ubuntu etc.

You can speed up your apt by searching the nerestrepositery of apt (for your distro/linux)

I tested some tools to do this, APT-SPY shows the best performance 🙂

From manpage:

apt-spy is a program that tests a series of Debian archive mirrors for bandwith. It writes an /etc/apt/sources.list with the fastest server.

Run this command as su or root next thing will done by apt-spy, it will write a new /etc/apt/sources.list and the olde one will be backup with sources.list.bak

apt-spy -d unstable -n 5

Categories: Debian, Debian GNU/Linux, Linux, Tricks, ubuntu Tags:

Installing ttf fonts on Debian or Ubuntu Linux

January 31st, 2007 15 comments

Here is the simple step to install ttf font on Debian or Ubuntu or debian based linux.

First of all make a font directory to store the fonts. Better use “/usr/share/fonts/ttf”

So make the font directory:

Debian (login as root or use su):

mkdir /usr/share/fonts/ttf

Ubuntu:

sudo mkdir /usr/share/fonts/ttf

If u want to install the ttf font from windows, simple copy them from c:\windows\Fonts

Debian:

mkdir windows
mount /dev/hda1 windows
cd windows/Fonts
cp *.ttf /usr/share/fonts/ttf

Ubuntu:

mkdir windows
sudo mount /dev/hda1 windows
cd windows/Fonts
sudo cp *.ttf /usr/share/fonts/ttf

Now u need to generate the fonts.scale fonts.dir, so u have to install the ttmkfdir and mkfontdir.
Debian:

apt-get install ttmkfdir

cd /usr/share/fonts/ttf
ttmkfdir > fonts.scale
mkfontdir

Ubuntu:

sudo apt-get install ttmkfdir

cd /usr/share/fonts/ttf
sudo ttmkfdir > fonts.scale
sudo mkfontdir

Most of the works finished. U only need to add the font path to xwindows.

Debian:

nano /etc/X11/xorg.conf

Ubuntu:

sudo nano /etc/X11/xorg.conf

then add the fontpath to xorg.conf

FontPath “/usr/share/fonts/ttf”

Now restart ur display manager or total system.
Debian:

/etc/init.d/gdm restart

Ubuntu:

sudo /etc/init.d/gdm restart

If nothing goes wrong, ur done. Congrutulation!!!!!!!!

Categories: Debian, Linux, My Works, ubuntu, unix Tags:

post from gnome-blog

September 28th, 2006 1 comment

i am writing this post from gnome-blog. Cool tool. it’s support blogger, wordpress & livejournel.

Categories: gnome, Linux Tags:

gtk2-engines-gtk-qt

September 25th, 2006 No comments

“The GTK-Qt Theme Engine (also known as gtk-qt-engine) is a GTK 2 theme engine
that calls Qt to do the actual drawing. This makes your GTK 2 applications
look almost like real Qt applications and gives you a more unified desktop
experience.

Please note that this package is targeted at KDE users and therefore provides
a way to configure it from within KControl.”

Personaly i am using this package. And it’s works cool

Categories: Debian, Debian GNU/Linux, General, gnome, KDE, Linux, unix Tags:

emerge time optimization (Gentoo GNU/Linux)

September 17th, 2006 No comments

emerge take huge download and also take huge time to compile packages. So if u want to save time, u can use a technique, that i use.

First login su in a terminal and start emerge normaly. “emerge -avD package”
after starting there open another terminal and log in as su. then “emerge -avDf package”

Categories: gentoo, Linux Tags:

unix study blog

September 8th, 2006 No comments

Today i started new blog called unixstudy with some of my friends. All of you are invited to see our unixstudy

Categories: General, Linux, My Works, unix Tags:

Compressing BNix 0.1.0

August 29th, 2006 No comments
Categories: BNix, Linux, My Works Tags:

First Beta of BNix

August 26th, 2006 No comments

Today i release the first beta or BNix. It’s now booting sucessfully with totally bengali language support. Though some probelm with bootloader. I will solve the boot loader problem with in this week.

PS. As i have no free server, i can’t give you the file to download. If you have, please help me to share this liveCd with you.

Categories: BNix, Linux, My Works Tags:

Started building of BNix

August 23rd, 2006 No comments

Tonight i started to build my first linux live CD called BNix. 🙂 i will inform you the latest news about it. 🙂

Categories: BNix, Linux, My Works Tags:

Debian Sid on chroot

August 11th, 2006 No comments

Today i sucessfully installed Debian Sid on chroot in my Debian Sarge machine 🙂

Here is the procedeure i followed from http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot

See what i do:

main # cd / ; mkdir /sid-root
main # debootstrap sid /sid-root http://ftp.debian.org/debian/
... watch it download the whole system
main # echo "proc-sid /sid-root/proc proc none 0 0" >> /etc/fstab
main # mount proc-sid /sid-root/proc -t proc
main # cp /etc/hosts /sid-root/etc/hosts
main # chroot /sid-root /bin/bash
chroot # cd /dev; /sbin/MAKEDEV generic ; cd -
chroot # apt-setup # set-up /etc/apt/sources.list
chroot # vi /etc/apt/sources.list # point the source to unstable

It give’s me a total debian Sid system with only base packages.

main # echo "8:23:respawn:/usr/sbin/chroot /sid-root "  "/sbin/getty 38400 tty8"  >> /etc/inittab
main # init q    # reload init

It makes the login system in tty8 (no need to chroot everytime)

main # cp /etc/X11/XF86Config-4 /sid-root/etc/X11/XF86Config-4
main # chroot /sid-root # or use chroot console
chroot # cd /dev; /sbin/MAKEDEV generic ; cd -
chroot # apt-get install gdm gnome x-window-system
chroot # vi /etc/gdm/gdm.conf # do s/vt7/vt9/ in [servers] section
chroot # /etc/init.d/gdm start

Now, my system is ready to work with Debian Sid with Graphical manager.

Source: http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot

So now 2 linux distribution is runing at time. Debian Sarge on tty7 and Debian Sid on tty9

68 queries in 1.300 seconds