...making Linux just a little more fun!

Mailbag

This month's answers created by:

[ Ben Okopnik, Robos, Thomas Adam ]
...and you, our readers!

Editor's Note

This month's Mailbag, Talkback, and 2-cent Tips are all shorter than usual, due to the mailing list outage. We'll be back next month with more! See you then . . .

Our Mailbag


Typing in Indian languages

Kat Tanaka Okopnik [kat at linuxgazette.net]


Tue, 31 Mar 2009 13:06:13 -0700

I seem to recall that a while back, we were discussng the intricacies of typing Indian languages. While checking my gmail account, Google informed me of their latest gee-whiz awesome:

http://gmailblog.blogspot.com/2009/03/typing-in-indian-languages.html

-- 
Kat Tanaka Okopnik
Linux Gazette Mailbag Editor
kat@linuxgazette.net

[ Thread continues here (2 messages/1.37kB) ]


configuration problem in icewm keys file

J. Bakshi [j.bakshi at unlimitedmail.org]


Sat, 4 Apr 2009 12:19:45 +0530

Hello,

I have a working configuration at .icewm/toolbar to take screen shot

----------------------------------------
prog "screenshot" /usr/share/pixmaps/khelpcenter-16.xpm  scrot -s -q
100 -e 'feh $f'
------------------------------------------------

I have put the same configuration in a shell script and it also has the u+x permission. I manually executed it and it worked as expected. Now I have create a rule in .icewm/keys like

---------------------------------
# Super is the microsoft key at key board
 
key "Super+g" grun
key "Super+Power" gmrun
key "Super+s" /home/joy/call
 
----------------------------------

But this time it is not working any more. Though the configuration from toolbar as well as the script is working well. My other key combination is also working well except the above screenshot. What might be the problem here ?

Thanks

PS: Kindly CC me

[ Thread continues here (20 messages/31.85kB) ]


udev rules ca't auto mount my pen drive

J. Bakshi [j.bakshi at unlimitedmail.org]


Sat, 4 Apr 2009 00:44:46 +0530

Hello,

Hope you all are well.

Recently my attention is on udev rules. I was never bothered about it but during google search to find out how to automount my pendrive; I have found udev as the solution. I admit that I don't understand it properly but my intention to mount my pendrive to a pre-defined mount point pushed me to do some experiment with it. I have first collected the required information by *udevinfo -a -p $(udevinfo -q path -n /dev/sda)*

looking at device '/block/sda':

    KERNEL=="sda"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{range}=="16"
    ATTR{removable}=="1"
    ATTR{size}=="15687680"
    ATTR{stat}=="      77      421     2292     1436        0
0        0        0        0      956     1436" ATTR{capability}=="13"

looking at parent device

'/devices/pci0000:00/0000:00:10.3/usb4/4-5/4-5:1.0/host7/target7:0:0/7:0:0:0':
KERNELS=="7:0:0:0" SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="0"
    ATTRS{scsi_level}=="3"
    ATTRS{vendor}=="JetFlash"
    ATTRS{model}=="Transcend 8GB   "
    ATTRS{rev}=="8.07"

<snip>

lots of other stuff

</snip>

Then I constructed my rules as

10-usb.rules
--------------------------------
SUBSYSTEM=="block", KERNEL=="sda", ATTRS{vendor}=="JetFlash",
ATTRS{model}=="Transcend 8GB   ", ACTION=="add", RUN+="mount -t
reiserfs /dev/sda2 /mnt/pen"
-------------------------------------

/mnt/usb is already there. From /var/log/syslog I can confirm that 10-usb.rules has been read with out any error

---------------------------------------
debian udevd[2874]: parse_file: reading
'/etc/udev/rules.d/10-usb.rules' as rules file
-----------------------------------------------

but after inserting my pendrive it is not auto mounted at /mnt/pen.

I have no clue if my rule is wrong or any thing else is preventing the auto mount. My box is debian lenny.

Could any one please enlighten me ?

Thanks,

PS: please CC to me

[ Thread continues here (3 messages/7.29kB) ]


Followup: linking my sound card to xoscpe

Robos [robos at muon.de]


Wed, 01 Apr 2009 00:58:39 +0200

Am 30.03.2009 4:54 Uhr, schrieb 2elnav@netbistro.com:

Hi List and Arild, mind if I chime in?

> Ben I have been experimenting.
> First off ;  I am quite familiar with cut and past in Windows.
> However this Linux webmail does not seem to allow me to open two  windows
> or emails simultaneously. Every time I try to write you a reply, the
> webmail vanishes as soon as  I open the second window.  When I try to
> backtrack by clicking the back arrow, the first window has vanished. There
> is no sign of the message I began in Drafts. Scrolling jumps me right out
> of webmail and I have to log back in again and start over.
> Apparently webmail is not designed to work like this. At least not on what
> my ISP uses.

Something is fishy there. But let's forget that then and try (yet another) way of connecting computers.

On the ubuntu machine:

1) open a terminal. If you know how, fine, else, press Alt-F2, a box should appear, type in "xterm" there and hit the enter button.

2) inside the terminal, run this command

/sbin/ifconfig

It should spit out some lines, in front something like

eth0  yada yada ....
       inet addr:<IP-Address>
The IP-Address should be something like 192.168.0.1 or 10.0.0.1 or so.

3) note the IP-Address down on a piece of paper

4) run this command:

netstat -tlpn
again, some lines get spit out. Look for a line where it says 22 in the 4th column, under "Local Address". If you see a line, fine, else run this command
sudo aptitude install openssh-server
Enter your normal user password when it prompts for a password.

On your windows machine:

1) download putty, from here:
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
2) run the program
3) In the line where it says "Host name" enter the written down IP-Address
4) Either hit Enter or click "open" at the bottom of the window
5) a black window opens
6) if you get prompted for a user (login as:) enter your user name on 
the ubuntu box, hit enter and do the same with the password.

You can now copy-paste stuff from windows to linux by doing this:

1) On the windows machine, in the webmail-thing: copy a line
2) bring the black putty window to the front and push the right mouse 
button in there. It should paste the copied stuff.

Mind you, you cannot run xoscope like this, because they don't work on a command line (like you have in that putty window). But Ben's command (dpkg ...) works in there.

By the way: you should be able to copy-paste stuff in ubuntu like in windows if you use the "long" way: mark the text you want to copy and press the right mouse button on that and select "copy" from the menu. Pasting in (most) terminals should work the same, right mouse button in the window where you normally type and select "paste"

Hope this helps,

regards

Udo Puetz



Talkback: Discuss this article with The Answer Gang

Copyright © 2009, . Released under the Open Publication License unless otherwise noted in the body of the article. Linux Gazette is not produced, sponsored, or endorsed by its prior host, SSC, Inc.

Published in Issue 162 of Linux Gazette, May 2009

Tux