Oddments


Computer Info

Computer Hope computer dictionary
Computer Hope computer history
Computer Hope computer news
Today's computer word

Linux Rescue with Knoppix

Recovering a non-booting Linux system with Knoppix.

You have got the hard drives mounted, you can see the contents but you can't copy any of them off, even though you have right-clicked on the drive icons and made them writable.

Go to a terminal.

Type:

mount

to see what Knoppix has mounted them as.

Then:

sudo cp whatever-you-want-to-copy wherever-you-want-to-copy-it.

You will need the root password of the box itself.


Firefox Won't Run

You have updated Firefox and it won't run, never mind what you do.

This is what you do:

Delete the mozilla folder:

C:\Documents and Settings\username\Application Data\Mozilla

If you are using Windows 98 or Linux you will have to look to see where this folder lives and delete it from there. 

This "unclogs" the system and Firefox will run again.


Freshclam config on Fedora 4

Edit freshclam.conf file and remark out "Example" line.
Ensure that the correct mirror is set up, i.e. .uk or whatever your country is.

Save file.

Create database directory:

mkdir /var/lib/clamav
chown clamav /var/lib/clamav
chmod 0755 /var/lib/clamav

Create log file:

cd /var/log
touch /var/log/freshclam.log
chmod 0755 /var/log/freshclam.log


Clear all formatting in MS Word document

Highlight all the text (Select All or Ctrl-A) then do Shift-Ctrl-N.


MS Works 7.0 doesn't work with a HP Printer

Sorry - you have to upgrade to MS Works 8.0.

Why don't you get a Linux PC??


Adaptec SCSI card module

aic7xxx

rsync and Cygwin

From Windows 2000 client to Linux server:

Server side config: create these files in /etc on the Linux server

-rw-r--r--    1 root     root          231 Nov  2 16:56 rsyncd.conf
-rw-------    1 root     root           18 Nov  2 16:41 rsyncd.secrets

rsyncd.conf

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[backup]

path = /home/fran/backup
comment = backup storage area
uid = fran
gid = fran
read only = false
auth users = fran
secrets file = /etc/rsyncd.secrets

rsyncd.secrets

fran:password (new line)

On the Windows client in C:\cygwin\etc:

rsyncd.conf

user chroot = false
strict modes = false

[backup]

|    path = /cygdrive/f/rsync_dump
    comment = rsync storage area
    read only = false

secret file

password (new line)

C:\cygwin\secret
-rw-------  1 fran fran 10 Nov  2 16:51 secret

Windows batch file to backup to Linux server: (backup.bat)

c:\cygwin\bin\rsync -vrt --password-file=c:\cygwin\secret --delete /cygdrive/f/copy fran@10.0.0.100::backup


Grotty gifs and jaggy jpegs

How to create nice clean graphics of scanned logos, etc.

Scan your image as a .gif, if possible.

Download and install Inkscape.

Load your gif into Inkscape and then save it as a .svg (inkscape) file.

Once it has been saved, then export it from Inkscape.  It will export it as a .png file.

Open your .png file in The GIMP.

Now, you can use Gimp with the Image/Scale Image tool to make it smaller. Don't forget to use the Cubic interpolation to do that, it will smooth the edges a bit more. Find this under main menu: File/Preferences/Environment/Scaling/Interpolation type.

Mailscanner and Sendmail

Sendmail runs as two daemons, the one to receive mail and the second to deliver it.  MailScanner runs "between the two" to intercept the mail, clean it and pass it on for delivery.

If you start and stop sendmail while MailScanner is running, it becomes "divorced" from sendmail and will not work. 
Therefore you must always start the mail scanning service from the /etc/init.d/MailScanner script and NOT from the Start Sendmail button in Webmin.

In Fedora/Red Hat:

Stop MailScanner and sendmail:

service MailScanner stop

Restart MailScanner and sendmail

service MailScanner restart

Stop sendmail only

service sendmail stop

Check maillog after start/restart

tail /var/log/maillog

root@spamassassin init.d] # tail /var/log/maillog
Jan 12 09:34:16 spamassassin MailScanner[16632] : Using locktype = posix
Jan 12 09:34:26 spamassassin MailScanner[16635] : MailScanner E—Mail Virus Scanner version 4.44.6
~ starting...
Jan 12 09:34:26 spamassassin MailScanner[1663S] : Read 204 hostnames from the phishing whitelist
etc.....


Turn off MailScanner Virus Scanning

If your MailScanner installation fails with a problem with the virus scanning and you want to turn virus scanning off for a while (the included file scanning and phishing filters will keep most viruses at bay), this is how you do it:

In the MailScanner.conf file change the line

Virus Scanners = yes

to

Virus Scanners = none

NOTE: it's "none" and not, as you would expect, "no".  "No" WON'T WORK!!


Death by DHCP

If each PC on the network gradually loses Internet connectivity, this is due to a problem with DHCP. If the “option routers” line is missing from dhcpd.conf, then as each machine renews its lease, it will pick up the “fact” that there is no gateway and act accordingly, thus losing connectivity.

Do not make changes to DHCP using Webmin, since this apparently does not always “take”. Make any changes by hand on the command line, and all will be fine (so long as you get it right!).




Home  |  Problems Solved | Printing  | Samba | Windows Corner  |  WBEL to CentOSOddments