Tired of the warning: kernel is too big for standalone boot from floppy? Kernels over app. 900 kb (compressed) will not work with 'make bzdisk'. You can instead use syslinux to make those boot:
make bzImage mformat a: syslinux /dev/fd0 mcopy arch/i386/boot/bzImage a:linuxThis works up to atleast 1270 kb kernels. An image of a working syslinux-disk is found here. An image of an empty syslinux-disk is found here.
On a 2 CPU SMP system the cards stop responding after transmitting app. 250000 packets. Solution: Upgrade to 2.4.? (? > 3).
# ********************************************************************** # Pointer section # ********************************************************************** Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "PS/2" Option "Device" "/dev/psaux" Option "Emulate3Buttons" Option "Emulate3Timeout" "50" # ChordMiddle is an option for some 3-button Logitech mice # Option "ChordMiddle" EndSection Section "InputDevice" Identifier "Mouse2" Driver "mouse" Option "Protocol" "MicroSoft" # Option "Device" "/dev/ttyS2" Option "Device" "/dev/mouse2" Option "Emulate3Buttons" Option "Emulate3Timeout" "50" # ChordMiddle is an option for some 3-button Logitech mice # Option "ChordMiddle" EndSectionMake a symlink from /dev/mouse2 to the second mouse.
Where to get gratis fonts for Linux? Microsoft Use the Win3.11 fonts and use unzip to unpack. I don't know how to unpack those that are not available for Win3.11 (Arial and Times New Roman, Courier new).
wget http://www.eu.microsoft.com/typography/downloads/mtcom.exe wget http://www.eu.microsoft.com/typography/downloads/webdings.exe wget http://www.eu.microsoft.com/typography/downloads/trebuc.exe wget http://www.eu.microsoft.com/typography/downloads/georgia.exe wget http://www.eu.microsoft.com/typography/downloads/verdana.exe wget http://www.eu.microsoft.com/typography/downloads/comic.exe wget http://www.eu.microsoft.com/typography/downloads/ariblk.exe wget http://www.eu.microsoft.com/typography/downloads/impact.exe unzip -o mtcom.exe unzip -o webdings.exe unzip -o trebuc.exe unzip -o georgia.exe unzip -o verdana.exe unzip -o comic.exe unzip -o ariblk.exe unzip -o impact.exe unzip -o impact.exehttp://www.iconian.com/ http://www.larabiefonts.com/ http://www.1001freefonts.com
.Xauthority must have permission 600.
For optimal use this.
To make X work on SiS 630 you must have 3 things: XFree-4.1.0, kernel with framebuffer support and lilo.conf that activates the framebuffer. This XF86Config-4 gives 1024x768x16bpp. This bzImage-kernel is generated from This .config and gives framebuffer support. This lilo.conf activates the framebuffer in 1024x768x16bpp.
2002-02-24
It seems XFree 4.2.0 solves the problem. Here is my XF86Config.
This is done by mounting the partition with -oconv However, / cannot be converted. If you move the drive to another machine and convert it there, you will get massive file corruption. Reinstall instead /. Mandrake 8.0 can make / ver. 3.6.x.
Using a MX-netcard (Tulip).
/proc/ioports d000-d0ff : Macronix, Inc. [MXIC] MX987x5 d000-d0ff : tulip ifconfig eth0 Link encap:Ethernet HWaddr 00:50:FC:18:1C:58 inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5891185 errors:36 dropped:0 overruns:0 frame:36 TX packets:24910077 errors:30 dropped:0 overruns:0 carrier:11 collisions:4899539 txqueuelen:100 Interrupt:16 Base address:0xd000It just starts delaying packets for 16 secs. /etc/init.d/network restart solves the matter.
Some programs have a 31-bit or 32-bit limit. This goes for: ProFTPD 1.2.0 (2GB), scp (2GB).
Caused by DNS-reverse lookup that fails. Very common on private address space (192.168.x.x, 10.x.x.x, 172.x.x.x)
# hdparm -u 0 -d 0 -t /dev/hda /dev/hda: setting unmaskirq to 0 (off) setting using_dma to 0 (off) unmaskirq = 0 (off) using_dma = 0 (off) Timing buffered disk reads: 64 MB in 19.08 seconds = 3.35 MB/sec # hdparm -u 1 -d 1 -X66 -t /dev/hda /dev/hda: setting unmaskirq to 1 (on) setting using_dma to 1 (on) setting xfermode to 66 (UltraDMA mode2) unmaskirq = 1 (on) using_dma = 1 (on) Timing buffered disk reads: 64 MB in 3.32 seconds = 19.28 MB/sec
# ntpdate time.timeserver.com 18 Jun 13:04:33 ntpdate[2711]: Can't adjust the time of day: Invalid argumentTry: -b
# ntpdate -b time.timeserver.com
Get the kernelpatch. Recompile kernel. My .config.
Problem:
# quotaon /hdd1 quotaon: using /hdd1/aquota.user on /dev/hdd1: No such file or directory # touch /hdd1/aquota.user # quotaon /hdd1 quotaon: using /hdd1/aquota.user on /dev/hdd1: Invalid argument
New quota-tools >3.00. In /etc/fstab:
# grep quota /etc/fstab /dev/hda1 / reiserfs rw,usrquota,grpquota 1 1 /dev/hdd1 /hdd1 reiserfs rw,usrquota,grpquota 1 2 /dev/hdc1 /hdc1 reiserfs rw,usrquota,grpquota 1 2 # quotaon /hdd1 quotaon: using /hdd1/aquota.user on /dev/hdd1 [/hdd1]: Invalid argument # quotacheck -c /hdd1 # quotaon /hdd1
Maxtor has a diagnostics tool called powermax. It will not run under Linux. It will however run under FreeDOS. So I made a bootable floppy disk with it. Write the disk with:
bunzip2 < powermax.img.bz2 > /dev/fd0
Sound recording does not work.
rec -r 44100 -c 2 fil.audoes not send anything to fil.au. It does not work as root either. aumix has Mic marked for recording and sound from the mic can be heard in loudspeakers.
Solution: Unknown
Workaround: Reboot
Cron stops running crontabs. If the clock on the server has been set into the future (e.g. 2021-08-31) and now is set back to current time, then cron will wait for until 2021-08-31 before running any tasks.
Solution: Restart crond
vsound realplay http://foo.bar.com dumps core.
Solution: use --timing: vsound --timing realplay http://foo.bar.com
top stops after setting cursor to bold+invisible.
Solution: export LANG=C
locate stops after searching part of the database through.
Solution: use updatedb --old-format
Last log-entry: Jun 28 04:35:52 ns.pi.dk postfix/smtpd[1077]: reject: RCPT from unknown[194.198.208.46]: 550 <apalmer@om.com>: User unknown; from=<john@duevil.com> to=<apalmer@odoom.com> Jul 13 09:20:05 tigger syslogd 1.4-0: restart (remote reception). Jul 13 09:20:05 tigger syslog: syslogd startup succeeded
Solution: Seems to be caused by a faulty drive. ide-smart can be a great help, but don't trust it if you have not accessed the whole disk recently. To be safe do:
cat </dev/hda >/dev/null; ide-smart /dev/hda
XFree for ATI Radeon Mobility M6 locks irregularly.
Solution: Disable most modules in XF86Config. My current XF86Config.
glxgears crashes with: drmRadeonSwapBuffers: return = -16
In syslog I find:
Nov 20 09:20:53 medi kernel: [drm:radeon_cp_vertex] *ERROR* ring space check failed! Nov 20 09:20:53 medi kernel: [drm:radeon_cp_vertex] *ERROR* ring space check failed! Nov 20 09:20:53 medi kernel: [drm:radeon_cp_swap] *ERROR* ring space check failed! Nov 20 09:20:53 medi kernel: [drm:radeon_cp_indirect] *ERROR* ring space check failed!
Solution: Use XFree 4.2.1 and my current XF86Config.
# cd /usr/X11R6/lib # ln -sf libXft.so.1.0 libXft.so.1
It seems to relate to DNS. However, simply restarting DNS does not help. Restarting network does not help. Restarting syslog does not help.
Workaround: Either stop syslog or reboot.The print does not look sharp
Solution: Do not use Ghostscripts gimp-print driver. Use Ghostscripts ljet driver instead.
Inserting the compact flash card works fine. But when removing it the computer locks with a kernel panic.
Workaround: stop cardmgr (pcmcia), remove the card, start cardmgr (pcmcia)
This does not work:
wget http://localhost:8888/SSK@FaP94HgrzsEY2BSW8rp4ZNHnAMUPAgM/cruft//wget strips the last '//' down to '/'.
Solution: use lwp-rget
It seems newer versions of Postfix reads the whole alias table in every process. In my case the aliastable is 10 MB.
Solution: use proxymap. Instead of 'map:file' use 'proxy:map:file'. The map will still be read into memory but only by the proxymap process.
I upgaded to XFree-4.3 and my cursor became a transparent cursor that is just as cool as it is useless. I have problems locating the cursor on the screen.
Solution: Edit /usr/X11R6/lib/X11/icons/default/index.theme to Inherits=redglass This will make the cursor red (though still transparent).
I tried using netscape-installer. This downloads 16 MB and starts installing. When extracting libplc4.so I get the following error:
Error [-620]: A xpistub call failed
It installs OK on an older machine. Maybe it is Glibc-2.3? The older machine has Glibc-2.2
Solution: unknown - mail me if you find out
I installed lufs. I got sshfs working once. After this I get:
mount failed: Invalid argumentAnd in the logfile I get:
May 5 11:41:40 medi kernel: (lu_read_super) - no server_socket specified! May 5 11:41:40 medi kernel: (lu_read_super) - mount failed!
Solution: Unknown.
cdrecord -scanbus Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Solution: First I remove all CD-modules:
rmmod ide-cd rmmod sr_mod rmmod sg rmmod sd_mod rmmod scsi_mod rmmod cdrom rmmod ide-scsiThen I install the ide-scsi-modules:
/sbin/modprobe scsi_mod /sbin/modprobe sd_mod /sbin/modprobe ide-scsi /sbin/modprobe sr_modNow I can run
cdrecord -scanbusor
cdrecord dev=5,0,0 speed=16 file.iso ;eject.
vncrec -record foo.vnc -truecolour 172.16.3.236To play the recorded file:
vncrec -play foo.vnc -truecolour 172.16.3.236To convert the file use transcode. Newer versions support vnc-format as input (my 0.6.10 does).
transcode -i foo.vnc -y xvid -o foo.avi -z -k --print_status 20Codecs that does not work with Microsoft Windows: xvid, ffmpeg(-F mpeg4), dv, mp2enc, ffmpeg(-F msmpeg4),null
Codecs that works - partly: (mpeg2enc,null) gives flipped view and bgr-flipped colours. (ffmpeg,null -F msmpeg4v2) gives flipped view and bgr-flipped colours.
Codecs that works:
xset -fp /usr/share/fonts/default/Type1(works for every new program started.) Disable in XF86Config:
# FontPath "/usr/X11R6/lib/X11/fonts/Type1/"Unfortunately this does not seem to work everywhere.
sshd[18384]: error: openpty: No such file or directory sshd[18384]: error: session_pty_req: session 0 alloc failedThis is because of missing pty's. In my case it was solved with booting with the option 'devfs=mount' (in LILO or GRUB).
$ xclock debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384 debug1: client_request_x11: request from 127.0.0.1 41479 debug1: channel 1: new [x11] debug1: confirm x11 Xlib: connection to "localhost:10.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key debug1: channel 1: free: x11, nchannels 2 Error: Can't open display: localhost:10.0Solution: On client write:
xhost +local:
12:47:09 Coda Venus, version 6.0.7 12:47:09 /var/lib/coda/LOG size is 2693010 bytes 12:47:09 /var/lib/coda/DATA size is 10772040 bytes 12:47:09 Initializing RVM data... 12:47:09 ...done 12:47:09 Loading RVM data 12:47:09 Starting RealmDB scan 12:47:09 Found 1 realms 12:47:09 starting VDB scan 12:47:09 0 volume replicas 12:47:09 0 replicated volumes 12:47:09 0 CML entries allocated 12:47:09 0 CML entries on free-list 12:47:09 starting FSDB scan (4166, 100000) (25, 75, 4) 12:47:09 0 cache files in table (0 blocks) 12:47:09 4166 cache files on free-list 12:47:09 starting HDB scan 12:47:09 0 hdb entries in table 12:47:09 0 hdb entries on free-list 12:47:09 WorkerInit: Version Skew with kernel! Get a newer kernel! 12:47:09 WorkerInit: Kernel version is 2It is caused by 96-bit CODA (CONFIG_CODA_FS_OLD_API=y). Change to 'n' and recompile kernel (recompiling module is not enough).
$ cat /usr/lib/X11/xkb/compat/mousek default partial xkb_compatibility "mousek" { interpret Menu { action = PointerButton(button=2); }; }; $ setxkbmap -compat complete+mousekFor some reason I have yet to get it to work without entering the last line by hand.
$ telnet pi.dk 25 Trying 130.228.0.10... Connected to pi.dk. Escape character is '^]'. 220 ns4.pi.dk ESMTP Postfix helo my.name 250 ns4.pi.dk mail from: <sender@tange.dk> 250 Ok rcpt to: <recipient@tange.dk> 250 Ok data 354 End data with <CR><LF>.<CR><LF> Message-id: <2005-07-21-random@tange.dk> Subject: Test This is a test . 250 Ok: queued as 8DF64AD51D7 quit 221 Bye Connection closed by foreign host.
$ telnet pop3 110 Trying 12.70.0.1... Connected to pop3. Escape character is '^]'. +OK DBMAIL pop3 server ready to rock <c0ad95f3ecdc0dfa161a9a108932e595@vns4> user tange +OK Password required for john pass secret +OK tange has 2 messages (64 octets) retr 1 +OK 61 octets Message-id: <2005-07-21-random@tange.dk> Subject: Test This is a test . dele 1 +OK message 1 deleted quit +OK see ya later Connection closed by foreign host.
$ telnet imap 143 Trying 13.22.80.10... Connected to imap. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information. 1 capability * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE 1 OK CAPABILITY completed 2 login "tange" "secret" 2 OK LOGIN Ok. 3 list "" "INBOX" * LIST (\Unmarked \HasChildren) "." "INBOX" 3 OK LIST completed. 4 select "INBOX" * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited * 1 EXISTS * 0 RECENT * OK [UIDVALIDITY 1121977059] Ok 4 OK [READ-WRITE] Ok 5 UID fetch 1 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Subject Date Message-ID Priority X-Priority References Newsgroups In-Reply-To Content-Type)]) * 1 FETCH (UID 1 RFC822.SIZE 1388 FLAGS (\Seen) BODY[HEADER.FIELDS ("From" "To" "Cc" "Subject" "Date" "Message-ID" "Priority" "X-Priority" "References" "Newsgroups" "In-Reply-To" "Content-Type")] {213} Message-ID: <42E0026B.5090908@tange.dk> Date: Thu, 21 Jul 2005 22:15:39 +0200 From: Ole Tange <ole@tange.dk> To: tange@ns.pi.dk Subject: test Content-Type: text/plain; charset=ISO-8859-1; format=flowed ) 5 OK FETCH completed. 6 logout * BYE Courier-IMAP server shutting down 6 OK LOGOUT completed Connection closed by foreign host.
If the USB device is /dev/sda1 put this in /etc/mtools.conf:
drive c: file="/dev/sda1" mtools_skip_check=1Now you can do:
mcopy -s c: .
fsck.msdos -u /dir/filehttp://jbj.rapanden.dk/magicrescue/
Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "dk" EndSection
Problem:
The printer only has A4 paper, but sometimes documents in Letter format should be printed. So how to force paper size to A4 or ignore Letter as the specified media and instead print using the default A4.Solution:
In /usr/lib/cups/filter/pstoraster add '-sPAPERSIZE=a4 -dFIXEDMEDIA' and remove -dNOMEDIAATTRS:gsopts="$gsopts -sPAPERSIZE=a4 -dFIXEDMEDIA -sDEVICE=cups -sstdout=%stderr"
Problem:
From the machine foo I have ssh access to the server bar. From the server bar I have ssh access to the server quux. But I do not have ssh access directly from foo to quux. Now I want to rsync data between foo and quux.Solution:
Make sure you can do this without having to enter anything:ssh bar ssh quux echo It workedNow run:
rsync -Have"ssh bar ssh" files-to-transfer quux:destinationdirquux does not have to be known from foo (i.e. it might just be an entry in bar's /etc/hosts).
Problem:
You have a command that reads or writes to a file, but you do not know which. You want to figure out which.Solution:
Often you can use strace.strace -ff -e trace=file commandBut it fails sometimes, and it is hard to see what the absolute file name is of calls like:
fchmodat(6, "foo.xml", 0755) = 0Installwatch might work better if the file is not statically linked:
installwatch -o /tmp/fileaccesses.log commandIt fails if the command e.g. is firefox.
loggedFS works if you are only looking at dirs and files, but fails if you use devices (/dev/null).
mkdir /tmp/root mount --bind / /tmp/root loggedfs -f -p /tmp/rootIn another window:
chroot /tmp/root ls /dev/null echo >/dev/null bash: /dev/null: Permission denied
Problem:
The wireless driver breaks down when transfering lots of data.Solution:
Download and install drivers as per http://linuxwireless.org/en/users/Download.Problem:
You have a few packages that you do not want to upgrade automatically.Solution:
sudo dpkg --get-selections > listOfPackages.txt # change 'install' to 'hold' for the packages you want to keep emacs listOfPackages.txt sudo dpkg --set-selections < listOfPackages.txt
Problem:
You have a disk image in LVM2 like this:$ file oracle10g_x86.img oracle10g_x86.img: LVM2 (Linux Logical Volume Manager) , UUID: ivtxaIFIqDDDMPDNni3VzkgKJZKv998You want an image like this: # file disk.img disk.img: Linux rev 1.0 ext3 filesystem data, UUID=8c0d9123-a5e8-4d13-8cf8-17849dcd4dc9 (large files)
Solution:
losetup /dev/loop7 oracle10g_x86.img vgchange -ay ls -l /dev/VolGroup01/LogVol00 cat /dev/VolGroup01/LogVol00 > disk.img
Problem:
Weblogic 10 complains on a jsp page:Caused by: javax.servlet.ServletException: Exception occuured while processing 'foo.jsp' at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:309) ... Caused by: javelin.java.CyclicDependencyException at javelin.Application.detectDeadlock(Application.java:1369)
Solution
The problem is caused by:public final class MyClass implements IterableRewrite the code to:{ ... public static final class SubCall { ... } }
public final class MyClassSubClass { ... } public final class MyClass implements Iterable{ ... }
Problem:
A compile fails with something like:false cru .libs/libCglClique.a .libs/CglClique.o .libs/CglCliqueHelper.o
Solution
The problem is caused by missing command 'ar'. Set the path so 'ar' is in your path.Problem:
Every other entry of syslog says: APIC error on CPU0: 40(40).Non solution:
Boot with 'noapic' in /boot/grub/menu.lst:kernel /vmlinuz-2.6.25-2-686 root=/dev/mapper/sda2_crypt ro noapicThis caused massive file corruption on two ext3 filesystems.
Problem:
A block has gone bad on your harddrive. 'badblocks' reports the block number. Which file was hit?Solution:
Find the inode using the block. Then find the name of that inode.# debugfs debugfs: open /dev/sda1 debugfs: icheck 100239934 debugfs: ncheck 9093126
Problem:
QEMU says:warning: could not configure /dev/net/tun: no virtual network emulation Could not initialize device 'tap'ifconfig says:
sudo ifconfig tap1 2.3.4.5 SIOCSIFADDR: No such deviceSolution:
modprobe tun apt-get install uml-utilities # Find first unused TAP device TAP_ID=0; while ifconfig tap$TAP_ID >/dev/null 2>/dev/null; do TAP_ID=$((TAP_ID+1)) done TAP=tap$TAP_ID sudo tunctl -u `whoami` -t $TAP
Problem: Keyboard input stops working in X
Solution: Run 'xev'. Now the keyboard starts working. Exit xev.
Problem: Java in the browser is not the configured one
Solution: sudo update-alternatives --config iceweasel-javaplugin.so
Problem: Java in the browser freezes the browser
Solution: sudo update-alternatives --config iceweasel-javaplugin.so Choose: /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so Restart browser
Problem: make[4]: *** No rule to make target `/home/tange/qemu/kqemu/kqemu-1.4.0pre1/kqemu-mod-x86.o', needed by `/home/tange/qemu/kqemu/kqemu-1.4.0pre1/kqemu-mod.o'. Stop.
Solution: apt-get remove linux-headers-2.6.30-1-686;apt-get install linux-headers-2.6.30-1-686
Problem: Solaris does not see any network interfaces
Solution: http://www.yonahruss.com/2007/03/solaris-10-doesnt-find-network-card.html
modload /kernel/drv/rtls ifconfig rtls0 plumb touch /etc/dhcp.rtls0 touch /etc/hostname.rtls0 reboot
Problem: How to create a user in PostgreSQL
Solution:
su - postgres psql postgres=# create user tange password 'password' createdb;
Problem: Postfix complains "fatal: unknown service: smtp/tcp" - but only under heavy load
Solution: Stop nscd for /etc/services and copy it in:
cp /etc/services /var/spool/postfix/etc
Problem: git complains:
fatal: Out of memory, malloc failed error: failed to run repack
Solution:
git repack -adf --window-memory=1gThis does not work:
[core] compression = 1 windowMemory = 200m [pack] windowMemory = 400m compression = 1 # windowMemory should be (free RAM)/(number of cores).
Problem: apt-get complains:
WARNING: The following packages cannot be authenticated! Install these packages without verification [y/N]? E: Some packages could not be authenticated
Solution:
apt-get update # Works sometime GET http://ftp-master.debian.org/keys/archive-key-5.0.asc | gpg --import gpg --export -a 55BE302B | sudo apt-key add - # Or if you trust nothing is tampered: GET http://ftp-master.debian.org/keys/archive-key-5.0.asc | sudo apt-key add -
Problem: We have a problem with the connection to a server. ICMP works fine with no packet loss and no odd delays. But TCP connections get stuck for a few seconds every 10 seconds or so. So I deviced this test to measure the problem:
ssh root@server 'ping localhost' \ | perl -ne '$|=1; $a=`date +%s.%N`*1000; printf "%0.2f ms TCP fluctuation since last\n", $a-$f;$f=$a+1000'|tail -n +3It shows the fluctuation in delay in milliseconds for TCP connections. On a stable connection with no packet loss and no random delays you should see numbers between -5 and +5.
Problem: I have to login to serverfoo to login to serverbar. I want an interactive session.
Solution:
ssh -t serverfoo ssh -t serverbar