Thursday, December 16, 2004

Xsession error: open: Permission denied


Xsession: X session started for USER at Day Mon DD HH:MM:SS Zone YYYY
open: Permission denied


try:


chmod 1777 /tmp



Thursday, September 16, 2004

Vim bits...

Today I learned that if I want to run the current line as a command and get
the output, all I have to do is:

<Esc>yy!!<Ctrl-R>"<BS><Enter>

:-) happy now!?

Careful if you've got a % in the line...

Vim documentation: cmdline

I needed \% for the %20 in the URL I was passing out.

The <BackSpace> was because it put a ^M on the end of the line.
I could have just gone 0y$ instead of yy

I just KNOW I'm going to use this one a lot!!!

So you know, the secret engrdient here is ^R which puts the content of the
un-named register on the command line.

the other (unrelated) thing that I looked up and clarified was the :a (short for *:append*) command (and discovered that there's also :i (short for *:insert*) which can be read about with :he :a and :he :i :o) I discovered :a quite by accident a long time ago and use it when I want to paste in text and don't want it to be auto-indented (if it has tabs or indents in it - e.g. when pasting code)

Tuesday, September 07, 2004

Island sizes...

Isle of Man is 53km (33 miles) long, 20km (13 miles) wide, land area 572 sq km (227 sq miles)

Great Barrier Island is 40km (25 miles) long, 16km (10 miles) wide, land area 285 sq kilometres (110 sq miles)

Chatham Island 61 km (38 miles) long, 40 km (25 miles) wide, 963 square km (372 sq miles)

Stewart Island is 70 km long (45 miles) long, 40 km (25 miles) wide, land area 1,746 square km (674 sq miles)

Jersey is 16km (10 miles) across, 8 km (5 miles) from north to south and has an area of 115 square km (44 sq miles)

(Don't quote me on the Chathams length and width - they're from the 1911 encyclopedia which is full of inaccuracies.)

Sunday, September 05, 2004

USB Mouse with 2.6 Kernel

To get my USB mouse working with the 2.6 kernel (in Debian Sarge with 2.6.7)
I had to add these modules to /etc/modules:

usbhid
uhci_hcd
mousedev

I didn't need usbcore because it loaded itself.

I found that these also work for the 2.4.27 kernel, and I don't need the usbmouse module.

Tuesday, August 31, 2004

Windows Journal Viewer returns the alert 'The feature you are trying to use is...unavailable' when you start Acrobat (6.0 on Windows 2000 or XP) - Sup

Windows Journal Viewer returns the alert 'The feature you are trying to use is...unavailable' when you start Acrobat (6.0 on Windows 2000 or XP) - Support Knowledgebase

Suckful little thing!!!

Goes into a "I will beat on you until I am installed on your hard disk - at any cost!" loop...

Only way to break out is with Task Manager...

Microsoft Windows Journal Viewer 1.5

"This accessory enables users who do not have a computer running Microsoft® Windows® XP Tablet PC Edition to view files that were created in Microsoft® Windows® Journal on a Tablet PC."

Oh yeah, looks damn useful to ME... NOT!

Saturday, August 28, 2004

PS2 Mouse in X with 2.6 Kernel

When you upgrade to a 2.6 kernel from 2.4 you may find that X won't start.


XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-4 20040529113443 root@cyberhq.internal.cyberhqz.com)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.6-rc3-bk9 i686 [ELF]
Build Date: 29 May 2004
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.7-1-386 (dilinger@toaster.hq.voxel.net) (gcc version 3.3.4 (Debian 1:3.3.4-2)) #1 Thu Jul 8 05:08:04 EDT 2004
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Sat Aug 28 14:10:06 2004
(==) Using config file: "/etc/X11/XF86Config-4"
(EE) xf86OpenSerial: Cannot open device /dev/psaux
No such device.
(EE) Implicit Core Pointer: cannot open input device
(EE) PreInit failed for input device "Implicit Core Pointer"
No core pointer

Fatal server error:
failed to initialize core devices

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to submit@bugs.debian.org.

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.


At the bottom of the /var/log/XFree86.0.log log file you will find:


(**) Option "Protocol" "PS/2"
(**) Implicit Core Pointer: Protocol: "PS/2"
(**) Option "CorePointer"
(**) Implicit Core Pointer: Core Pointer
(**) Option "Device" "/dev/psaux"
(EE) xf86OpenSerial: Cannot open device /dev/psaux
No such device.
(EE) Implicit Core Pointer: cannot open input device
(EE) PreInit failed for input device "Implicit Core Pointer"
(II) UnloadModule: "mouse"
(II) Keyboard "Implicit Core Keyboard" handled by legacy driver
(WW) No core pointer registered
No core pointer

Fatal server error:
failed to initialize core devices

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to submit@bugs.debian.org.


If you try catting the device:


cat /dev/psaux
cat: /dev/psaux: No such device


Or:


cat /dev/input/mouse0
cat: /dev/input/mouse0: No such device


If you load these two modules it will fix it:


modprobe mousedev
modprobe psmouse


This can be made permanent by adding these two lines to the bottom of /etc/modules


mousedev
psmouse


This page helped me: http://www.hup.hu/modules.php?name=Forums&file=viewtopic&t=2136
It does have superstition and crap in it, like talking about the device being changed from /dev/psaux to /dev/input/mouse0 but it told me the right modules to load.


Section "Pointer"
Protocol "PS/2"
Device "/dev/psaux"
BaudRate 1200
Emulate3Timeout 50
Emulate3Buttons
EndSection


You can change this section if you like:


# diff /etc/X11/XF86Config-4.old /etc/X11/XF86Config-4
57c57
< Device "/dev/psaux"
---
> Device "/dev/input/mouse0"


But I found I didn't need to - once I'd loaded the two modules both devices worked again.

Listing packages with long names in Debian...

(export COLUMNS=256; dpkg --list) | awk '/kernel-/{print $2}'