Archive for the ‘linux’ Category

custom tex in rpm/apt distributions

Friday, January 6th, 2012

I prefer to use TeX from TeXlive distribution, not the default TeX bundled with an operating system. The problem is that rpm and apt tools check dependencies and insist on installing the wrong TeX. To trick the system, a fake package should be made and installed.

(more…)

control alt shift vmware

Thursday, July 28th, 2011

Sometimes vmware makes something very wrong, and X server do not understand the keys CTRL, ALT, SHIFT and similar anymore. Solution: “setxkbmap” without any arguments.
(more…)

solved: vmware does not work anymore

Monday, April 4th, 2011

After some system update, vmware stopped working. It wrote some information which modules are loaded, and then silently exited. In a log file “ui-NNNN.log”, I found: “vmui| Caught signal 11″. The stacktrace said only that the crash was likely due to some signal.

(more…)

messed Helvetica etc on a PostScript printer

Tuesday, March 22nd, 2011

I’ve got PostScript files, which does look ok on the screen, but badly printed on Lexamark E232. The letters collide each with other, seems like instead of Helvetica some monospace font is substituted.

(more…)

Solved: unable to enumerate USB device on port 1

Tuesday, January 18th, 2011

At some moment, my USB WLAN stick stopped working, and the log was polluted by messages like:

usb 6-1: new high speed USB device using ehci_hcd and address 62
hub 6-0:1.0: unable to enumerate USB device on port 1
hub 6-0:1.0: unable to enumerate USB device on port 1

At first, I decided that the stick had broken after years of work, but out of curiousity tried to connect it to every USB port I found. It worked. The stick worked again when plugged into the keyboard, which in term was connected to the KVM.

(more…)

eSATA hot swap in Linux

Wednesday, December 29th, 2010

I hoped that eSATA interface allows to attach and detach HDDs to Linux on the fly, and the system would notice the changes automatically. The reality was quote apposite, the system hung during experiments. Finally, after scanning internet knowledge, and trying to get commands like atacontrol or scsiadd working, I found the command for manual swap.

(more…)

sharing files from linux to windows

Monday, April 27th, 2009

Yes, one installs and configures Samba. All I need is to access a big folder in the read-only mode. The quick and dirty solution is:

(more…)

wrong but fast fix

Friday, December 12th, 2008

After a small system upgrade an application started to crash with the message:

*** glibc detected *** sylpheed: double free or corruption (out): 0x0839e818 ***

The right thing is to trace the application and submit a bug report to the author, but I found a fast workaround. Set an environment variable before running the program:

export MALLOC_CHECK_=0

multimedia over network III: any ALSA-enabled application

Tuesday, September 30th, 2008

ALSA is the Advanced Linux Sound Architecture. The system can forward ALSA sound to PulseAudio.

(more…)

multimedia over network II: pulseaudio

Saturday, September 27th, 2008

PulseAudio is a sound server. Applications feed music to PulseAudio, and PulseAudio decides what to do with it. For example, it can send the sound over network.

When I tried to use this feature for the first time, I failed. Therefore, I experimented with a more user friendly software (see multimedia over network I, and the second attempt was successful.

(more…)

multimedia over network I

Wednesday, September 24th, 2008

I want to:

* run a program on a work PC, and
* see and hear it in action on a leisure PC.

The first attempt is failed, therefore I started to search for a solution using the step-by-step approach. The first step is to make sure that multimedia over networks works at all.

(more…)

how to input diacritic characters

Saturday, September 20th, 2008

I always used vim (for example, “Ctrl-K” “:” “u” for “ü”), but now I found a way to input such characters into any application, using the core feature of X11/xorg. The explanation and the table are here: “ISO-8859-1 compose keystrokes in Linux” (thanks Andrew Daviel).

Reminder for myself: on my system, it’s enough to add “compose:ralt” to the option “XkbOptions” in “xorg.conf” and use “Alt Gr” key.

alsa and HDA Intel SigmaTel STAC9227

Tuesday, August 19th, 2008

After upgrading my Linux, I’ve got sound lost. Everything looked ok — all the modules are loaded, all the special devices are created, no complaints in logs, — but no sound.

(more…)

ripping a dvd

Monday, June 16th, 2008

In the most cases, people use mplayer and mencoder (under Linux). For my goals, ffmpeg is enough.

(more…)