Firefox Fonts too small

Posted in December 8th, 2008
by peorex in How to

The small and difficult to read fonts in Firefox 3: here is how to fix this:

Go to about:config in Firefox. To do so type about:config in the address bar.
Navigate to layout.css.dpi by typing layout in the filter bar.
Double click it and set to 0. By default it is -1
Restart Firefox.
Done.

Now all the options under [...]

Continue reading...

Tags: ,

How to invoke Firefox from Thunderbird under Linux

Posted in February 10th, 2008
by peorex in How to

To invoke Firefox from Thunderbird under Linux you need to add these to user.js in thunderbird’s directory (adjust to your Firefox executable):
user.js

// invoke Firefox as web browser
user_pref(”network.protocol-handler.app.http”, “/usr/local/bin/firefox”);
user_pref(”network.protocol-handler.app.https”, “/usr/local/bin/firefox”);
user_pref(”network.protocol-handler.app.ftp”, “/usr/local/bin/firefox”);

PLEASE NOTE: Do not add them to prefs.js because it is overwriten by mozilla. user.js contains personal preferences and mozilla should never overwrite it.
By default [...]

Continue reading...

Tags: ,

How to find broken links and backup files under Linux

Posted in February 9th, 2008
by peorex in How to

Here is how to find all broken links and backup files on your Linux system. Run as root:
#find / -type l ! -path “/proc*” | (while read FN ; do test -e “$FN” || ls -l “$FN”; done)
or
#find / -type l ! -path “/proc*” | (while read FN ; do test -e “$FN” || echo [...]

Continue reading...

Tags:

Personal Firewall Shell Script

Posted in February 9th, 2008
by peorex in How to

Shell script for setting up stateful firewall based on iptables.

Suitable for personal use
Protects your computer from outside world attacks
Handling packets based on connection state (ESTABLISHED, RELATED)
OS Linux

Shell script entry:

#!/bin/sh

# Shell script for stateful firewall based on iptables
Version=1.0.1

PATH=/sbin:/usr/sbin:/bin:/usr/bin
ME=$(basename “$0″) # program name as invoked
IPTABLES=’/sbin/iptables’

# Must be root
if [ "$(/usr/bin/id -u)" != 0 ] ; then
[...]

Continue reading...

Tags:

Wget Login Details - Protect Yourself

Posted in February 9th, 2008
by peorex in How to

When you download files with wget and must login you need to specify username and password. This can be done:

As command line options –ftp-user=username –ftp-password=password
In the URL itself ftp://username:password@domain/directory/file
In .wgetrc file

First two methods are insecure, because they reveal your password to everyone who runs “ps” command . Last method is secure from this point of [...]

Continue reading...

Tags:

W: Couldn’t stat source package list - reason and solution

Posted in February 8th, 2008
by peorex in How to

If you try to install package under Debian and get message similar to the following:
Reading Package Lists… Done
Building Dependency Tree… Done
W: Couldn’t stat source package list ‘ftp://… Packages’ (/var/…) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these missing files
E: Couldn’t find package …
Chances are that [...]

Continue reading...

Tags:

How do I backup my Linux system disk

Posted in June 25th, 2007
by peorex in How to

In my Linux operating system I have divided disk space generally with two independent purposes: system data and user data.
When I do potentially dangerous tasks, such as change important system settings, re-install all system, re-partition disk and so on I used to backup data. This is done as root:
#tar -cvPf /home/root/Backups/backup.tar /bin /boot /etc /lib [...]

Continue reading...

Tags:

Simple way for creating disk Image

Posted in June 24th, 2007
by peorex in How to

The simplest way I know for creating disk images under Linux is using dd command. The disk is treated as regular file. Because this is raw coping, it works the same way regardless of disk format, filesystem and data. Disk is copied sector by sector.
For example (in my case), run as root:
#dd bs=8M if=/dev/hda3 of=/home/root/Backups/hda3.img
The [...]

Continue reading...

Tags: