RAID across kernel upgrade ?

2006-09-03 Thread Vladimir Zolotykh
I had a RAID1 on the root fs on the machine with kernel
2.4.27-1-386. Decided at last to upgrade to 2.4.27-3-686. There were
no problems with the new kernel installation, only with the RAID1, I
lost it :(

What is the _right_ procedure of actions might be (well, at least I
know one wrong procedure now) ?

Dispositon:

There is a working RAID1 (mirroring) array /dev/md0 of 2 elements
/dev/hda1, /dev/hdc1. kernel 2.4.27-1-386

$ cat /etc/mkinitrd/modules 
raid1

(Yes, md and raid1 as modules)

$ cat /proc/mdstat
Personalities : [raid1] 
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus0/target0/lun0/part1[0] 
ide/host0/bus1/target0/lun0/part1[1]
  76603328 blocks [2/2] [UU]
  
unused devices: 

/etc/fstab

  /dev/md0   /   ext3defaults,errors=remount-ro 0   1

/boot/grub/menu.lst

  title   Debian GNU/Linux, kernel 2.4.27-1-386 RAID
  root(hd0,0)
  kernel  /boot/vmlinuz-2.4.27-1-386 ro root=/dev/md0 
md=0,/dev/hda1,/dev/hdc1
  initrd  /boot/initrd.img-2.4.27-1-386.raid
  savedefault
  boot

/etc/mdadm/mdadm.conf
  DEVICE partitions

Goal:

Upgrade kernel to 2.4.27-3-686 without losing the RAID1

The fist step is to upgrade the kernel

  $ aptitude install kernel-image-2.4-686

About the follwing steps I'm not so sure, could you please help me
with the following steps?


-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: qurious find error

2006-06-08 Thread Vladimir Zolotykh
On Thu, 08 Jun 2006 08:36:54 -0700
Bob McGowan <[EMAIL PROTECTED]> wrote:

> Your example, below, does not need to access the file's inode for more 
> information, hence no error.  You would get a similar 'file not found' 
> error if you used any of the time tests (-?time), file size tests 
> (-size), tests of the inode number (-inum), and so on.  Whatever test 
> you use, it must require a stat() call to get additional information 
> about the file from its inode.

Thank you, I think I understand it better now.

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: qurious find error

2006-06-07 Thread Vladimir Zolotykh
On Wed, 07 Jun 2006 11:26:56 -0700
Bob McGowan <[EMAIL PROTECTED]> wrote:

>   'find' then presumably 
> (this is a guess, I'm not familiar with the code) reads the full 
> directory listing (recursively), closes the discriptor (4), then does a 
> 'stat' on each file, for additional information.  But, since the fd has 
> been closed, it no longer exists and can't be stat'd, causing the error.

Very likely it is so. Thank you all. Why was I confused of this
particular error message? Because the "-group" is the only known (for
me) switch that cases find to error that way. For example

  sudo find /proc -name foo -print

doesn't error.


-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



qurious find error

2006-06-07 Thread Vladimir Zolotykh
Just out of curiosity, why

  sudo find /proc -group backup -print

always terminates with

  find: /proc/N/fd/4: No such file or directory

where N is always a new number ?

[Sarge, GNU/Linux]
  

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



xmove, ssh, and problems

2006-05-20 Thread Vladimir Zolotykh
Can't get xmove working in conjunction with ssh.

Having two machines, say Grumpy and Sleepy, both have the xsession
open, I started xmove on Grumpy

  $ xmove &
  [1] 6538
  $ Implementing MIT-MAGIC-COOKIE-1 user authentication
  XMove 2.0 ready.
  $ xcalc -display grumpy:1 &
  [3] 6569
  $ xmovectrl grumpy:1 -list
  2 (no name):0

Don't quite understand why "no name" here, expected something more
meaningful like "xcacl" or like. Nevertheless, I saw the xcalc window
on Grumpy.

Went to Sleepy and 

  $ ssh grumpy
  $ echo $DISPLAY
  localhost:10
  $ xauth list | grep :10
Got the cookie from the last command, say KEY
  $ xauth add localhost:10 . KEY
  $ xmovectrl grumpy:1 -move localhost:10 1 

Please note that I tried various different commands instead of the
last xmovectrl like

  $ xmovectrl grumpy:1 -move grumpy:10 1 
  $ xmovectrl grumpy:1 -move grumpy 1 
  

None of them even worked.

After the last xmovectrl command I saw xcalc window on Sleepy. It
worked. Then I tried to move xcalc back to Grumpy. On Sleepy I did

  $ xmovectrl grumpy:1 -move :0 1

There were no messages (either warnings or errors) on Sleepy after
that command. On Grumpy I see

  XMOVE:  switching client 1 to display localhost:10
  ETHAN: matching depth 24 to depth 24
(It's after moving to Sleepy I guess)
  XMOVE:  switching client 1 to display :0
  ETHAN: matching depth 24 to depth 24

However I see no xcalc window on Grumpy, xcalc process is runnig

  $ ps -l $(pgrep xcalc)
  F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTYTIME CMD
  0 S  1000  6569  6467  0  69   0 -  1067 select pts/0  0:00 xcalc 
-display grumpy:1
  $ xmovectrl grumpy:1 -list
  1 (no name):0 
 

But there is no xcalc window nowhere. Could you please tell me what
I've been doing wrong and where is the window?

Using Sarge, Xmove 2.0beta2-7

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



m-a + fuse => unresolved references

2006-05-11 Thread Vladimir Zolotykh
Does somebody heard or experienced that module-assistant doesn't work
with fuse module while make-kpkg does? I've got a bunch of unresolved
references with m-a while make-kpkg goes without and I can't get why.
Is it my misuse of m-a or kind of a "bug"? However the usage of m-a
seems so simple that there is hardly any room for mistake.

  uname => 2.4.27-3-686
  apt-get install fuse-source kernel-headers-2.4-686
  m-a a-i fuse
  

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sshfs?

2006-05-10 Thread Vladimir Zolotykh
On Wed, 10 May 2006 11:21:36 +0200
Florian Kulzer <[EMAIL PROTECTED]> wrote:

[snip]
> ... If the
> 2.4.27-2-386 and the 2.4.27-3-396 kernel versions were security-related
> updates then it would probably a good idea to switch anyway.
I upgraded to 2.4.27-3-686
  apt-get install kernel-image-2.4-686
rebooted and tried 
  m-a a-i fuse
however it ended with

  Setting up fuse-module-2.4.27-3-686 (2.2.1-4sarge2+2.4.27-10sarge2) ...
  depmod: *** Unresolved symbols in 
/lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o

In spite of that I did

  modporbe fuse 

and got a bunch of unresolved references in reply
Here is a few of them

  /lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: 
/lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: unresolved symbol 
invalidate_inode_pages_Rsmp_dc0d5021
  /lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: 
/lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: unresolved symbol 
d_find_alias_Rsmp_e8e2c3ab
  /lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: 
/lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: unresolved symbol 
seq_printf_Rsmp_5b4eb2e4
  /lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: 
/lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: unresolved symbol 
inode_change_ok_Rsmp_c6680fcf
  /lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: 
/lib/modules/2.4.27-3-686/kernel/fs/fuse/fuse.o: unresolved symbol 
unregister_filesystem_Rsmp_8c6d853f

Could you please head me in the proper direction, what's wrong that time?


-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sshfs?

2006-05-09 Thread Vladimir Zolotykh
On Tue, 9 May 2006 20:24:07 +0200
Florian Kulzer <[EMAIL PROTECTED]> wrote:

> Try installing the "module-assistant" package; then run (as root)
> 
> module-assistant a-i fuse 
> 
> (I don't use Sarge, therefore I am not 100% certain if it will work like
>  that, but "fuse-source" exists in Stable, so I would expect that the
>  module assistant can build the module for you.)
Sorry to bother you, however I got attracted by the posibility to use sshfs
and tried to set up it for myself. All went fine until I got to the point
which kernel-headers I should install

module-assistant suggested

  "install the package kernel-headers-2.4.27-1-386"

however, `aptitude search kernel-headers' showed that there is no such
one in the Stable.

  uname -a
said
  2.4.27-1-386

And the candidates showen by `aptitude search' are

  p   kernel-headers-2.4.27-2 - Header files related to Linux kernel 
versi
  p   kernel-headers-2.4.27-2-386 - Linux 2.4.27 kernel headers for 386 
  
  p   kernel-headers-2.4.27-2-586tsc  - Linux 2.4.27 kernel headers for 
Pentium-Cl
  p   kernel-headers-2.4.27-2-686 - Linux 2.4.27 kernel headers for 
PPro/Celer
  p   kernel-headers-2.4.27-2-686-smp - Linux 2.4.27 kernel headers for 
PPro/Celer
  p   kernel-headers-2.4.27-3 - Header files related to Linux kernel 
versi
  p   kernel-headers-2.4.27-3-386 - Linux 2.4.27 kernel headers for 386 
  
  p   kernel-headers-2.4.27-3-586tsc  - Linux 2.4.27 kernel headers for 
Pentium-Cl
  p   kernel-headers-2.4.27-3-686 - Linux 2.4.27 kernel headers for 
PPro/Celer
  p   kernel-headers-2.4.27-3-686-smp - Linux 2.4.27 kernel headers for 
PPro/Celer
  p   kernel-headers-2.4.27-speakup   - Header files related to Linux kernel 
versi

Being not an expert at all it's hard for me to be sure which one I
should use.  If I use `kernel-headers-2.4.27-2', very likely that it
will be installed not in /lib/modules/2.4.27-1-386/ where all my
modules are. Could you please clarify this point?

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Disk Defragmentatio

2006-05-08 Thread Vladimir Zolotykh
On Tue, 09 May 2006 01:13:54 +1000
Arafangion <[EMAIL PROTECTED]> wrote:

> IraqiGeek wrote:
> 
> > Hi all,
> >
> > I want to defragment my debian partition (the entire system is
> > installed in one partition). Googling around, I found references to
> > the unstable and oldstable defrag packages, however, when searching
> > through aptitude, and through apt-cache I couldn't find any packages
> > that can do this. BTW, I am running debian etch.
> 
> The first question is why do you want to defragment it? In the long run,
> it won't make much difference, and Linux distros fragment much less than
> windows does (Unless MS has improved in that regard).

I'd guess that OP wanted to make more partitions.
If this is the case parted may help.


-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to find all configuration files I've edited?

2006-05-08 Thread Vladimir Zolotykh
On Mon, 8 May 2006 10:43:10 +0200
"Dimitri Mallis" <[EMAIL PROTECTED]> wrote:

> how can i put things i edit in a VC? and what is a VC
VC - version control system like CVS, RCS, or GNU Arch.
How to put them depends on your favorable VCS, commonly
it implies invoking the IMPORT command.



-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to find all configuration files I've edited?

2006-05-08 Thread Vladimir Zolotykh
On Mon, 8 May 2006 11:12:59 +0300
"Joona Kiiski" <[EMAIL PROTECTED]> wrote:

> Hi, is there command or simple shell script available to find all
> configuration files in /etc-directory which I've edited.

Since when? Fresh install or upgrade(or downgrade) ?
I'm afraid not, unless you put them under some VC yourself at a time
since when you'd like to watch the changes.


-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



firewall error message

2006-03-30 Thread Vladimir Zolotykh
I set up a simple firewall and SNAT using iptables. All works fine
except that sometimes I see the following in the /var/log/syslog

  Mar 30 08:54:23 dobby kernel: New not syn:IN= OUT=eth1 SRC=314.12.142.106 \
DST=314.12.128.3 LEN=65 TOS=0x00 PREC=0x00 TTL=64 ID=60918 DF PROTO=TCP \
SPT=32804 DPT=119 WINDOW=31856 RES=0x00 ACK PSH FIN URGP=0 

Could you please tell me what might be the probable reason for these
messages? The actual rule that produces them is

  
  iptables -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j LOG \
--log-prefix "New not syn:"

where

  iptables -N bad_tcp_packets
  iptables -A OUTPUT -p tcp -j bad_tcp_packets

The mentioned above errors appear when I get news using email client
Sylpheed on the machine where iptables command are executed e.g press
Get all button in the email client. What I specially would like to be
told of is: could the mistake in the firewall (my settings of course)
be the likely reason for these error messages or not?

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: thunderbird

2005-12-03 Thread Vladimir Zolotykh

/etc/alternatives/x-www-browser
update-alternatives (8)

Hugo Vanwoerkom wrote:


Hi,

After years of building my own mozilla-suit, what got to me is that 
its mail-news component will not search messages.


So I apt-get installed mozilla-thunderbird on Sarge.

It does search messages and is faster too.

But one thing I miss: clicking on a URL and have it opened in mozilla.

Now you have to copy link address and go to mozilla yourself and paste 
it.


Ot am I wrong?

Thanks!

H





--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




strcoll, C, ru_RU.KOI8-R

2005-12-01 Thread Vladimir Zolotykh

Could you please tell me the group where I could ask about strcoll,
and it's behaviour in different locales?

If it's too a specific question for debian-user, please ignore the rest...

The following prog.
main(int argc, char * argv [])
{
   if (argc > 1)
   setlocale(LC_COLLATE, "ru_RU.KOI8-R");
   else
   setlocale(LC_COLLATE, "C");
   printf("%d\n", strcoll("a-name", "aname"));
}
prints -65 if called w/o args, and 1 if with them. I found it hell hard 
to understand.
Any clue which might help me in resolving this mistery would be 
appreciated. In both
locales minus-dash is sure preceding any letter, e.g., strcoll returns 
<0 if called with "-"

as first arg, and any letter as the second.

--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Mutt & 2 accounts

2005-11-28 Thread Vladimir Zolotykh
On Sun, Nov 27, 2005 at 12:58:30PM -0500, [EMAIL PROTECTED] wrote:
> On Sun, Nov 27, 2005 at 06:30:57PM +0200, Vladimir Zolotykh wrote:
> > Thank you for helping me get Mutt working.
> > 
> > Could you please give me some clue how to set up Mutt working with two
> > differenct accounts on the same IMAP server? Entering full server
> > name, user name, and password each time I want to change account is
> > tiresome.
> > 
> > I've tried
> > 
> >   account-hook imaps://[EMAIL PROTECTED] 
> >   account-hook imaps://[EMAIL PROTECTED] 
> 
> account-hook will only execute some mutt code when an account is used,
> which is probably not quite what you think.  What you want first is to
> define the two accounts in .muttrc like so:
> 
> mailboxes imaps://user1[:[EMAIL PROTECTED] imaps://user2[:[EMAIL PROTECTED] 
> [/var/mail/user]

With conjunction with mutt -y it works fine. The problem still
remains, thought.  If I use one account say for user1 I need From:
field to look like <[EMAIL PROTECTED]>, and when I use another account the
From: field should be different, say <[EMAIL PROTECTED]>. I tried but in
vain.  Should I always enter From: field manually, or it can be
automated ?

Is account-hook sutable for that? I tried, but unsuccessfully.

And yet, I don't quite visualize to myself how account-hook is
working.  Mainly which account-hook at what times is called?

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mutt & 2 accounts

2005-11-27 Thread Vladimir Zolotykh
On Sun, Nov 27, 2005 at 07:14:10PM +0200, Vladimir Zolotykh wrote:
>   account-hook imaps://[EMAIL PROTECTED] ...
>   account-hook imaps://[EMAIL PROTECTED] ...
It must be 

  account-hook imaps://[EMAIL PROTECTED] ...

of course, sorry for mistake.

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mutt & 2 accounts

2005-11-27 Thread Vladimir Zolotykh
On Sun, Nov 27, 2005 at 05:53:35PM +0100, Elimar Riesebieter wrote:
> On Sun, 27 Nov 2005 the mental interface of
> Vladimir Zolotykh told:
> 
> > Thank you for helping me get Mutt working.
> > 
> > Could you please give me some clue how to set up Mutt working with two
> > differenct accounts on the same IMAP server? Entering full server
> > name, user name, and password each time I want to change account is
> > tiresome.
> > 
> > I've tried
> > 
> >   account-hook imaps://[EMAIL PROTECTED] 
> >   account-hook imaps://[EMAIL PROTECTED] 
> 
> RTFM -> Chapter 4.13
> 
> account-hook . 'unset imap_user; unset imap_pass'
> account-hook imaps://host1/ 'set imap_user=user1 imap_pass=foo1'
> account-hook imaps://host1/ 'set imap_user=user2 imap_pass=foo2'

I read that before I asked a question, also I tried it and it didn't
work.  Surprisingly enough, I tried now

  account-hook imaps://[EMAIL PROTECTED] ...
  account-hook imaps://[EMAIL PROTECTED] ...

and it did work! May be the missing piece was the line 

  account-hook . 'unset imap_user; unset imap_pass' ?

Do you think it is likely ?

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Mutt & 2 accounts

2005-11-27 Thread Vladimir Zolotykh
Thank you for helping me get Mutt working.

Could you please give me some clue how to set up Mutt working with two
differenct accounts on the same IMAP server? Entering full server
name, user name, and password each time I want to change account is
tiresome.

I've tried

  account-hook imaps://[EMAIL PROTECTED] 
  account-hook imaps://[EMAIL PROTECTED] 

However it appears that the first hook is working all the time.

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mutt and debian-user list

2005-11-27 Thread Vladimir Zolotykh
On Sun, Nov 27, 2005 at 04:59:13PM +0100, Elimar Riesebieter wrote:
> On Sun, 27 Nov 2005 the mental interface of
> Vladimir Zolotykh told:
> 
> > Why Mutt wouldn't send messages to debian-user@lists.debian.org,
> > do you know?  I can send it with Mozilla Thunderbird, but can't
> > using Mutt.  What might be wrong with my using Mutt?  I can send
> > and receive personal mail with Mutt.  If you know what might be
> > the cause for that please let me know, I'd appreciate any clue.
> 
> AFAIK Thunderbird has its own mail transportation. Mutt uses the
> system MTA which in your case might be missconfigured?

Quite right. Examining Exim4 logs revealed me that. My sender's domain
name was wrong. As soon as I fixed it messages were sent.

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Test, ignore please

2005-11-27 Thread Vladimir Zolotykh
Test
-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Mutt and debian-user list

2005-11-27 Thread Vladimir Zolotykh
Why Mutt wouldn't send messages to debian-user@lists.debian.org, do you 
know?

I can send it with Mozilla Thunderbird, but can't using Mutt.
What might be wrong with my using Mutt?
I can send and receive personal mail with Mutt.
If you know what might be the cause for that please let me know, I'd 
appreciate any clue.


--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




A test, ignore please

2005-11-27 Thread Vladimir Zolotykh
This is a test. Can't handle mailing debian-user@lists.debian.org with 
Mutt, just trying...


--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Make up Emacs and XKB

2005-10-04 Thread Vladimir Zolotykh

Hi,

I bought Logitech Deluxe (Model name: Y-SU61).  It has an additional
key (keycode 94, keysym 0x3c) which is located in the second (from the
bottom) horizontal row between left shift and 'z', marked with `|' and
'\' on it.

I wonder if it is possible to make better use of it (the key that is)
that it's used now. I usually spend all my time in Emacs editing Lisp
sources (chiefly). Here's an excerpt from my XF86Config-4

Section "InputDevice"
Identifier  "Generic Keyboard"
Driver  "keyboard"
Option  "CoreKeyboard"
Option  "XkbRules""xfree86"
Option  "XkbModel""pc104"
Option  "XkbLayout"   "us,ru"
Option  "XkbVariant"  "winkeys"
Option  "XkbOptions"  
"grp:ctrl_shift_toggle,grp_led:scroll,alt:altismeta"
EndSection

The key behaves in strict accordance with /etc/X11/xkb/keycodes/xfree86

 =  94;

and /etc/X11/xkb/symbols/ru

key  {[less, greater  ],
[   slash, bar  ]   };

but to me it seems neither sensible nor convenient.

The another somehow related question. The only way I know in Emacs to
change character sets is to call toggle-input-method. By default it is
bound to C-\. According to

Option  "XkbOptions"  
"grp:ctrl_shift_toggle,grp_led:scroll,alt:altismeta"

the groups are changed by Shift+Ctrl. So the problem: working outside
Emacs I have to use Ctrl+Shift (or any other combination among the
choices offered by Xkb, but none of them is C-\), inside Emacs --
C-\. Trying as hard as I could, still I was unable to figure out is it
possible or not to use _the same_ key combination for switching from
Latin to KOI8 characters everywhere. Would you please suggest
something?

Using Debian Sarge

Thanks in advnace


--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




make up Emacs and xkb

2005-10-03 Thread Vladimir Zolotykh

Hi,

I bought Logitech Deluxe (Model name: Y-SU61).  It has an additional
key (keycode 94, keysym 0x3c) which is located in the second (from the
bottom) horizontal row between left shift and 'z', marked with `|' and
'\' on it.

I wonder if it is possible to make better use of it (the key that is)
that it's used now. I usually spend all my time in Emacs editing Lisp
sources (chiefly). Here's an excerpt from my XF86Config-4

Section "InputDevice"
Identifier  "Generic Keyboard"
Driver  "keyboard"
Option  "CoreKeyboard"
Option  "XkbRules""xfree86"
Option  "XkbModel""pc104"
Option  "XkbLayout"   "us,ru"
Option  "XkbVariant"  "winkeys"
Option  "XkbOptions"  
"grp:ctrl_shift_toggle,grp_led:scroll,alt:altismeta"
EndSection

The key behaves in strict accordance with /etc/X11/xkb/keycodes/xfree86

 =  94;

and /etc/X11/xkb/symbols/ru

key  {[less, greater  ],
[   slash, bar  ]   };

but to me it seems neither sensible nor convenient.

The another somehow related question. The only way I know in Emacs to
change character sets is to call toggle-input-method. By default it is
bound to C-\. According to

Option  "XkbOptions"  
"grp:ctrl_shift_toggle,grp_led:scroll,alt:altismeta"

the groups are changed by Shift+Ctrl. So the problem: working outside
Emacs I have to use Ctrl+Shift (or any other combination among the
choices offered by Xkb, but none of them is C-\), inside Emacs --
C-\. Trying as hard as I could, still I was unable to figure out is it
possible or not to use _the same_ key combination for switching from
Latin to KOI8 characters everywhere. Would you please suggest
something?

Using Debian Sarge

Thanks in advnace




--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Patching source package?

2005-08-27 Thread Vladimir Zolotykh

Hi,

I'm rather new to Debian system, so don't blame me too much if you
find my question to be trivial or already explained somewhere. I've
spent reasonable time to find the answer alone and when failed decided
to ask a question which runs thus:

[Using Sarge] I'm using libmotif3 binary package 2.2.3-1. Its "option
menu" is faulty, the window abruptly loses it's focus. Recently I've
been told that this bug is fixed
(http://bugs.motifzone.net/show_bug.cgi?id=1260). But how to use this
patch in Debian like manner? I decided to 1) download the source
package "openmotif", 2) apply the patch to the sources, 3) rebuild the
libmotif3.deb and reinstall it. Here is my problem: dpkg-buildpackage
expects openMotif-2.2.3.tar.gz as a point to start from. It unpacks
it, compiles files and finally builds the libmotif3.deb file. To apply
the patch I have to interfere after unpacking the .tar file but before
the compilation process starts. How I can do that?

Thanks in advance

Vladimir


--
Vladimir Zolotykh


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]