Thursday, November 24, 2011

trouble with texlive-base in sid upgrade

apt-get upgrade or dist-upgrade

I had persistent problems

errors were encountered while processing:

ie the following

Reading database ... 642501 files and directories currently installed.)
Preparing to replace texlive-latex-base 2009-14 (using .../texlive-latex-base_2009-15_all.deb) ...
Unpacking replacement texlive-latex-base ...
Processing triggers for man-db ...
Setting up texlive-base (2009-15) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVE...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-base.cnf.
This may take some time...
fmtutil-sys failed. Output has been stored in
Please include this file if you report a bug.

dpkg: error processing texlive-base (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of texlive-latex-base:
texlive-latex-base depends on texlive-base (>= 2009-1); however:
Package texlive-base is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
dpkg: dependency problems prevent confi

so what i did was read the bug report
i tried this so let us see what happens with the next attempt to upgrade
Rashi:/home/mlaks# mktexlsr /usr/share/texmf
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Done.

This did not help:

then see the remark there about installing all the texlive-base dependencies
at the same time

Holger Levsen wrote:

> during a test with piuparts I noticed your package failed to install. As per
> definition of the release team this makes the package too buggy for a
> release, thus the severity.

Thank you, I found the reason - both bug reports seem to point to the
same problem. It does not show up when all dependencies of texlive-base
are installed in the same aptitude or dpkg run, only when they are
configured first and texlive-base is unpacked afterwards.

And of course it is in my new libpaper'ing code...

A fix is in svn, I'll upload soon.

Regards, Frank

that fixes it

so I did this

apt-get remove --purge texlive-base texlive-common texlive-binaries texlive-doc-base tex-common luatex

(copied down all the stuff being purged and then did)

apt-get install texlive-base texlive-common texlive-binaries texlive-doc-base tex-common luatex

and then we were ok

next step is to reinstall whole batch of files that were removed

Sunday, September 25, 2011

How to get rid of all the rc entries in dpkg -l?

i just did the following and it seems to work

dpkg -l|grep -e ^rc|perl -pe 's/rc\s+(\S+)\s+\d.*/$1/'|xargs apt-get -y remove --purge

use at your own risk!

Thursday, September 8, 2011

oraysa and toratemet interesting project to review at google code

Wednesday, August 17, 2011

how to persist a connection?


then open a screen session
create new window
^-a c
then split window
^-a S ## capitol S
move to other window
^-a tab
grab the window to the frame
^-a "shift+'" and select a window to place there
then make a busy application
wait -n 10 date
will create a very busy application with connection

How to do screen within screen???
^-a then a regular a

Sunday, August 7, 2011

windws focus follows mouse registry hacks

inportant information i keep losing.

1. Run regedit (Win+R, regedit, OK)
2. Open up the key HKEY_CURRENT_USER\Control Panel\Mouse
3. Change the value of the REG_DWORD ActiveWindowTracking to 0×0000001 (1)

4. Open up the key HKEY_CURRENT_USER\Control Panel\Desktop
5. Add 1 to the MSB (most significant byte) of the REG_BINARY UserPreferencesMask. That is, if the current value is 00 3e 03 80 12 00 00 00, then change it to 01 3e 03 80 12 00 00 00. If you used the GUI as above, the MSB will be 41 (which brings the focused window to the front as well), so change it back to 01.

6. To make the focus a little slower, so that pop-up windows are useable, you also want to change the focus timing. Change the REG_DWORD ActiveWindTrkTimeout (also in HKEY_CURRENT_USER\Control Panel\Desktop) to the number of milliseconds to wait before focus shifts to the window under the mouse. I like a value of 0×00000080 (128ms). You might like 200ms (c8), or some faster or slower value.

So, in summary, the Registry keys are as follows for X11-like window focus:

HKEY_CURRENT_USERS\Control Panel\Mouse
REG_DWORD ActiveWindowTracking = 0x00000001 (1)

HKEY_CURRENT_USERS\Control Panel\Desktop
REG_DWORD ActiveWindTrkTimeout = 0x00000080 (128)
REG_BINARY UserPreferencesMask = 01 .. .. .. .. .. .. .. ..

Sunday, May 22, 2011

letting a remote machine know about urxvt-unicode terminal


infocmp rxvt-unicode | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti"

works nicely if you cant install urxvt there.

see man for urxvt

Monday, April 18, 2011

checking a downloaded and created cd

ok do a md5sum on the download to check it is ok
then do
ls - filename
this tells you the $size

then do
let $value= $size/2048

dd if=/dev/cdrom bs=2048 count=$value |md5sum
and check this against the file to check you cut the disk right