Re: Memory consumption on a per user basis

2018-11-22 Thread Baruch Siach
Hi Josh,

On Thu, Nov 22, 2018 at 03:53:01PM +0200, Josh Roden wrote:
> Does anyone know of a good cgroups forum?

The cgroup entry in the kernel source tree MAINTAINERS files shows this:

CONTROL GROUP (CGROUP)
M:  Tejun Heo 
M:  Li Zefan 
M:  Johannes Weiner 
L:  cgro...@vger.kernel.org
...

There is an archive of the cgroups mailing list at

  http://www.spinics.net/lists/cgroups/

Hope this helps,
baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Hebrew Translation of Computer Terminology

2018-01-15 Thread Baruch Siach
Hi Amichai,

On Mon, Jan 15, 2018 at 05:01:49PM +0200, Amichai Rotman wrote:
> Is there an up-to date list of the Hebrew translation for computer related
> terms?
> 
> I am referring to a standard list of terms for computer components in
> Hebrew, i.e. CPU, RAM, Hard Drive etc.
> 
> If such a list exists, where do I find it?

You can find per-topic dictionaries from the מאגר המונחים of the Hebrew 
Academy at the link below:

  https://terms.hebrew-academy.org.il/Millonim

Most computers related dictionaries are marked with "טכנולוגיית המידע".

Or you can just search for English terms translation at

  https://terms.hebrew-academy.org.il/

Hope this helps,
baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: single threaded web servers

2016-06-28 Thread Baruch Siach
Hi Erez,

On Tue, Jun 28, 2016 at 11:04:49AM +0300, Erez D wrote:
> i tried searching the web but got no result
> 
> what web servers other than node.js are single threaded ?

nginx uses one single threaded process per CPU core to handle HTTP requests 
(https://www.nginx.com/blog/inside-nginx-how-we-designed-for-performance-scale/).

> anyone has experience with one ?

Not me.

> is there one in which the cgi is in c++ ?

Given the nature of CGI you can write CGI programs in any language you like, 
as long as it can write text to standard output file descriptor.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: OT: SSL certificates

2016-03-07 Thread Baruch Siach
Hi Gabor,

On Tue, Mar 08, 2016 at 07:05:03AM +0200, Gabor Szabo wrote:
> A found plenty of companies offering SSL certificates. One of them
> https://www.ssl.com/
> that was recommended by the domain registrar I am using had
> $177 / year for the first 3 hostname and then $49 / year for each
> additional hostname and $129/year for each wildcard domain.
> 
> Is that a reasonable price? Any suggestions?

How about https://letsencrypt.org/ free certs?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Haifux, this Monday, on crypto-hell

2014-07-18 Thread Baruch Siach
Hi Eli,

On Fri, Jul 18, 2014 at 05:23:48PM +0300, Eli Billauer wrote:
 On Monday (July 21st), Haifux will mock those who had good intentions but
 poor crypto wisdom, and deserved their position in the shameful list of
 security fails. And also discuss why they got it wrong...
 
 The short abstract is at http://www.haifux.org/lectures/328

This should be http://www.haifux.org/lectures/327/.

baruch

 
 This is an extra announcement, as the lecture was added recently.
 
 See you,
 
 Eli

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: self mail hosting

2014-06-08 Thread Baruch Siach
Hi Eliyahu, Matanya,

On Sun, Jun 08, 2014 at 05:38:12PM +0300, E.S. Rosenberg wrote:
 Also note that though you can get a fixed IP at home the IP may still be
 flagged in anti-spam databases as non-server space and therefor
 suspicious/no-accept.

These are called RBLs or DNSBLs (http://en.wikipedia.org/wiki/DNSBL).

You can use a multi-RBL service like http://multirbl.valli.org/ to check 
whether your own static IP address is listed in any of 200+ RBLs.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: self mail hosting

2014-06-08 Thread Baruch Siach
Hi Efraim,

On Sun, Jun 08, 2014 at 05:58:50PM +0300, Efraim Flashner wrote:
 On Sun, 8 Jun 2014 17:47:18 +0300
 E.S. Rosenberg esr+linux...@g.jct.ac.il wrote:
 
  2014-06-08 14:22 GMT+03:00 Efraim Flashner
  efraim.flash...@gmail.com:
  
   using netvision's smart host shouldn't change my from or reply-to
   something@netvision?
  
  No, as long as you are an authenticated user it should pass whetever
  mail you want, it may or may not be flagged as 100% trustworthy since
  it won't be your official smtp server, but you may be able to set
  policies that declare that it is a trusted origin server. (
  You can for instance also send you @gmail mail through a smarthost,
  but it will result in a warning showing in gmail that the mail may
  not be from the person since the mail came from a non-google smtp
  server. Also note that the smart host will most likely not use TLS for
  communication between smtp servers (it may use it for yousmarthost,
  depending on how good your ISP is), but you would anyhow only be able
  to do that if you are willing to shell out the required money to get
  a signed certificate (self signed is nice for testing but 3rd parties
  will never accept them [as they should]).
 
 I have my certificate signed by CACert, but if that doesn't look like
 enough then I'll probably decide if it's worth it based on the price.

CAcert's certificate are not generally trusted (see 
http://lwn.net/Articles/590879/). A free alternative is StartCom's StartSSL. 
See 
http://arstechnica.com/information-technology/2014/03/taking-e-mail-back-part-2-arming-your-server-with-postfix-dovecot/
 
for a detailed description.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Detecting whether a network interface is an SRIOV nic

2014-05-27 Thread Baruch Siach
HI Dan,

On Tue, May 27, 2014 at 09:43:27PM +0300, Dan Shimshoni wrote:
 Is there a way to detecting whether a network interface is an SRIOV nic
 in a given machine (by some userspace command )?
 
 To be more specific:
 I know of course that you can find the name of the driver and google for
 its feature, but is there some userspace tool which can check it ?

According to Documentation/PCI/pci-iov-howto.txt newer SR-IOV supporting 
drivers should have a sriov_numvfs sysfs node under 
/sys/bus/pci/devices/DOMAIN:BUS:DEVICE.FUNCTION/. The presence of this node 
is surely and indication that the device supports SR-IOV.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: qemu and chroot

2014-05-20 Thread Baruch Siach
Hi Erez,

On Tue, May 20, 2014 at 09:14:16AM +0300, Erez D wrote:
 I am using centos 6 and  developing for an armel platform
 
 i created a rootfs using multistrap/debbootstrap
 
 i copied qemu-arm-static to rootfs/usr/bin/qemu-arm-static

Is this QEMU built for your host (presumably x86) or your target (ARM)?

Do you really need to run QEMU on your target?

 and i was astonished that doing just 'chroot rootfs' worked, without
 explicitly telling 'chroot' to use qemu-arm-static - somehow it decided
 automatically to run everything under qemu-arm-static without me telling it
 to.
 
 after a restart of the server. rootfs does not work anymore automatically,
 i get a chroot: failed to run command `/bin/bash': Exec format error
 doing chroot rootfs /usr/bin/qemu-arm-static /bin/bash does chroot, but
 i get : bash: /bin/cat: cannot execute binary file (although
 rootfs/bin/cat is a perfectly ok armel binary, tested on the armel target).
 i also checked the md5sum of the rootfs/qemu-arm-static binary, and it is ok
 
 i mounted the rootfs on the armel target using nfs, and chrooted from the
 target, and it works perfectly, meaning there is nothing wrong with the
 rootfs filesystem

Chrooted from what target? Is it a hardware ARM system? QEMU?

baruch

 as it wonderously worked, now it wonerously  doesn't
 
 tryed googleling for it , but still cant find how to make it work
 
 any idea ?

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: ubi cloning

2014-05-12 Thread Baruch Siach
Hi Erez,

On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote:
 i need to clone a nand flash. which has ubifs on it
 
 doing 'dd' didn't work as the source and dest have different bad sectors.

dd is not the way to go with raw NAND flash access; it's not aware of bad 
blocks.

 is there an easy way to clone a ubifs nand-flash ?

You may be able get a working system using nanddump/nandwrite (see 
http://thread.gmane.org/gmane.linux.drivers.mtd/45792/focus=46024, but read 
the whole thread). Generally, tough, this is not what you want to do with 
UBI/UBIFS. You should use ubiformat on the target, and copy the content with 
tar. See http://www.linux-mtd.infradead.org/faq/ubifs.html#L_why_ubiformat.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: ubi cloning

2014-05-12 Thread Baruch Siach
Hi Erez,

On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote:
 On Mon, May 12, 2014 at 12:05 PM, Baruch Siach bar...@tkos.co.il wrote:
  On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote:
   i need to clone a nand flash. which has ubifs on it
  
   doing 'dd' didn't work as the source and dest have different bad sectors.
 
  dd is not the way to go with raw NAND flash access; it's not aware of bad
  blocks.
 
   is there an easy way to clone a ubifs nand-flash ?
 
  You may be able get a working system using nanddump/nandwrite (see
  http://thread.gmane.org/gmane.linux.drivers.mtd/45792/focus=46024, but
  read
  the whole thread). Generally, tough, this is not what you want to do with
  UBI/UBIFS. You should use ubiformat on the target, and copy the content
  with
  tar. See http://www.linux-mtd.infradead.org/faq/ubifs.html#L_why_ubiformat

 will tar preserve uid/gid hard links, special files, /dev

Yes, by default.

 extended attr etc ?

Yes. Use --xattrs.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: ubi cloning

2014-05-12 Thread Baruch Siach
Hi Erez,

On Mon, May 12, 2014 at 02:14:34PM +0300, Erez D wrote:
 On Mon, May 12, 2014 at 12:28 PM, Baruch Siach bar...@tkos.co.il wrote:
  On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote:
   On Mon, May 12, 2014 at 12:05 PM, Baruch Siach bar...@tkos.co.il
  wrote:
On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote:
 i need to clone a nand flash. which has ubifs on it

 doing 'dd' didn't work as the source and dest have different bad
  sectors.
   
dd is not the way to go with raw NAND flash access; it's not aware of
  bad
blocks.
   
 is there an easy way to clone a ubifs nand-flash ?
   
You may be able get a working system using nanddump/nandwrite (see
http://thread.gmane.org/gmane.linux.drivers.mtd/45792/focus=46024, but
read
the whole thread). Generally, tough, this is not what you want to do
  with
UBI/UBIFS. You should use ubiformat on the target, and copy the content
with
tar. See
  http://www.linux-mtd.infradead.org/faq/ubifs.html#L_why_ubiformat
  
   will tar preserve uid/gid hard links, special files, /dev
 
  Yes, by default.
 
   extended attr etc ?
 
  Yes. Use --xattrs.
 
  baruch
 
 thanks, i'll try that.
 
 can I ubiformat + untar from u-boot ?

I don't see support for either in mainline U-Boot. Barebox supports ubiformat 
but not tar extraction.

Your best option is to boot into RAM using a kernel combined with a minimal 
Busybox based initramfs, and extract you tar from there. Note tough that 
Busybox tar does not support extended attributes, so you must use GNU tar for 
this. Buildroot can generate a minimal initramfs image for you quite easily.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: NTP

2014-05-01 Thread Baruch Siach
Hi Geoff,

On Thu, May 01, 2014 at 09:45:45PM +0300, Geoff Shang wrote:
 2.  Has anyone found a server that works?

ntp.iix.net.il works for me from home (012), and work (BezeqBL).

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Printing UTF-8 in C

2014-01-12 Thread Baruch Siach
Hi Dov,

On Sun, Jan 12, 2014 at 08:53:38PM +0200, Dov Grobgeld wrote:
 Writing hebrew to the terminal is a bad idea because terminals do not
 support BiDi reordering.
 
 That said, doing cat small-hello.utf8[1] works for me in gnome-term
 (though it is reversed). No special environment variables were defined.

But Ori has specifically asked about sending just one character to terminal.  
cat treats everything like binary data.

baruch

 On Sun, Jan 12, 2014 at 8:34 PM, Ori Idan o...@helicontech.co.il wrote:
  I need to print several Hebrew characters (UTF-8) to the terminal.
  My locale is set to he_IL.UTF-8 so it shows Hebrew on the terminal,
  however printing from C gives me Chinese characters.
  My question is how to print one character such as 'א' to the terminal.
 
  --
  Ori Idan

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Chinese KitKat

2014-01-05 Thread Baruch Siach
Hi Tzafrir,

On Sun, Jan 05, 2014 at 10:21:14AM +0100, Tzafrir Cohen wrote:
 I wonder if propr Linux support is easier to find. At least for some of
 those. Some of them (AllInWonder, though not MediaTek) have been hitting
 mainline recently.

You probably mean Allwinner SoCs. These are called sunxi in the kernel 
source (after the core generation names: sun3i, sun4i, sun5i, sun6i, sun7i).

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Some problems with latex + Hebrew

2013-12-28 Thread Baruch Siach
Hi Avraham,

On Sun, Dec 29, 2013 at 08:36:06AM +0200, Avraham Rosenberg wrote:
I met of late,  problems with using, with Hebrew texts, some latex 
commands which work perfectly in the context of English text.
The first one was some time ago, when trying to make the text flow
 around an image (plain Latex). It warked smoothly with English text but
 issued an error message when the same commands were used with Hebrew text.
 I do not recall the exact error message.
Lately, I tried to superpose text on a semitransparent image, using the
 eso-pic and transparent packages (pdflatex): Worked smoothly with English
 text, but with Hebrew I got the following error message:
 
 pdfTeX warning: pdflatex: \pdfrestore: missing \pdfsave
 
 !pdfTeX error: pdflatex: 1 unmatched \pdfsave after page shipout
  == Fatal error occurred, no output PDF file produced!
 
 shell returned 70
 
 In an attempt to understand what is going on, I tried to define English as
 the first language and put in some English text, before the Hebrew one. It
 worked allright, as long there was enough English text to cover the first
 page, on which the image appears, but balked, when this was too short.
 
One can, of course, achieve the desired result, by combining two pdfs,
 but I would like to understand the problem -any references are welcome-. I
 would also like to know if there is any workaround within latex.
Are there any good text or other references about latex in Hebrew?

Have you tried using xetex (xelatex)? I wasn't able to get working Hebrew from 
ptflatex. xelatex works quite well for me.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Fwd: DVB-T and Linux updated.

2013-11-23 Thread Baruch Siach
Hi geoffrey,

On Sat, Nov 23, 2013 at 06:56:35PM +0200, geoffrey mendelson wrote:
 The third is a TerraTec Cinergy +, which uses an RTL2382U chipset and an 
 Elonics E4000 receiver.
 These used to be available for as little as $10 on eBay.
 
 It is supported in the 3.8 Kernel.
 
 These are now very hard to get. The TerraTec ones are over $40 on eBay, but 
 there are ones that claim to have E4000 receivers,
 for around $15. Many of them are listed as E4000 upgrade version and 
 really have (it's in the fine print) R820T tuners.
 
 THESE STICKS ARE NOT SUPPORTED IN LINUX. There is a working Kernel module 
 for them available, but you have to compile it yourself.
 It is scheduled to be included in the 3.10 Kernel.

It seems that support for the R820T tuner has been added in kernel version 
3.11. See http://git.kernel.org/linus/a80abc58f.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: mmap not async-signal-safe?

2013-07-17 Thread Baruch Siach
Hi Shachar,

On Thu, Jul 18, 2013 at 06:36:57AM +0300, Shachar Shemesh wrote:
 As we all know, from a signal handler it is only safe to call functions
 that are async signal safe. I have a couple of questions (three,
 actually), if anyone happens to know the answer to:
 
 First, why the name? The list contains functions that are obviously not
 async. Does that mean these functions are only safe in non-blocking
 mode? (make sense, but you'd expect it to be better documented)

I guess it's the signal that is async, not the system call. The name can be 
rephrased as functions that are safe in async signal handler routines.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Suggestions for Hardware/driver WIFI combo that allows low level signal access

2013-07-02 Thread Baruch Siach
Hi Micha,

On Tue, Jul 02, 2013 at 12:49:19PM -0400, Micha Feigin wrote:
 I'm was wondering if anyone here can recommend a hardware / driver
 combo for WIFI that allows access to the low level signal. I'm
 looking to do some non-communication related research (uni stuff)
 that requires sending custom signals over WIFI frequencies (to avoid
 FCC limitations), and I was hoping that there is some existing
 hardware that I can hack at the driver level instead of building
 complex hardware (which I have, but getting a high enough accuracy
 starts getting pretty expensive).
 
 I'm not looking to bypass power/frequency limitations, just to send
 custom signals over one of the WIFI channels.

A Linux WiFi driver is meant to give you access to a network, not to let you 
control the radio signal used to send network packets. Even if a WiFi hardware 
that allows tweaking the radio signals did exist, I doubt a standard driver 
would expose these capabilities to the user.

You may, however, have some luck with this: 
https://github.com/qca/open-ath9k-htc-firmware. This is the source code of the 
firmware running inside the WiFi hardware of some Atheros (now Qualcomm) 
products. You'll have to tweak the firmware code to expose the desired 
capabilities to the host machine. Then, you need to teach the kernel driver 
(ath9k) how to use these capabilities.

I hope this helps.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Motherboards for new Ubuntu install

2013-06-30 Thread Baruch Siach
Hi Eliyahu,

On Wed, Dec 26, 2012 at 04:11:57PM +0200, E.S. Rosenberg wrote:
 2012/12/26 Baruch Siach bar...@tkos.co.il:
  On Wed, Dec 26, 2012 at 03:45:27PM +0200, E.S. Rosenberg wrote:
  What is the output of 'lspci -n'?
 1969:1090
 
  The weird thing was that the driver detection program didn't realize 
  this...
 
  Either way the package that provides the 'alx' driver on Ubuntu 12.10 is:
  linux-backports-modules-cw-3.6-quantal-generic
 
  Are you sure it is not 'atlx'?
 my modprobe history don't lie ;) neither does lspci -v

The alx driver was merged into the mainline kernel a few days ago (commit 
ab69bde6 alx: add a simple AR816x/AR817x device driver). Its list of 
supported PCI IDs include PCI_VENDOR_ID_ATTANSIC:ALX_DEV_ID_AR8162 (= 
1969:1090). Kernel version 3.10 which is about to be released in a few days, 
should have support for this hardware out of the box.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: bash q

2013-04-08 Thread Baruch Siach
Hi Erez,

On Mon, Apr 08, 2013 at 10:32:44AM +0300, Erez D wrote:
 to debug a shell script i can run it as 'sh -x myscript'
 but how can i enable the debug from within the script if run with 'sh
 myscript' ?

Just do 'set -x'.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: /proc/sys/vm/mmap_min_addr missing

2013-01-15 Thread Baruch Siach
Hi Valery,

On Tue, Jan 15, 2013 at 12:42:33AM -0800, Valery Reznic wrote:
 - Original Message -
  From: Baruch Siach bar...@tkos.co.il
  To: Valery Reznic valery_rez...@yahoo.com
  Cc: shimi linux...@shimi.net; linux-il linux-il@cs.huji.ac.il
  Sent: Tuesday, January 15, 2013 9:33 AM
  Subject: Re: /proc/sys/vm/mmap_min_addr missing
  
  On Mon, Jan 14, 2013 at 11:24:27PM -0800, Valery Reznic wrote:
From: shimi linux...@shimi.net
   To: Valery Reznic valery_rez...@yahoo.com 
   Cc: linux-il linux-il@cs.huji.ac.il 
   Sent: Tuesday, January 15, 2013 6:21 AM
   Subject: Re: /proc/sys/vm/mmap_min_addr missing

   
   On Mon, Jan 14, 2013 at 11:40 PM, Valery Reznic 
  valery_rez...@yahoo.com wrote:
   
   Recently I stumbled upon some mystery that I can't understand.
   My Google search bring no results.
   
   I have 3 VM with different Linuxes that run under QEMU and now I 
  noticed that
   all of them don't have /proc/sys/vm/mmap_min_addr files (/proc 
  is mounted)
    
   Are you emulating ARM on the guests by any chance?
   I am running Fedora 12 ARM, Fedora Core 3 x86-64, and debian ARM
   I don't remember debian version, but it's ARM OABI
  
  mmap_min_addr first appeared in kernel version 2.6.23, commit ed032189 
  (security: Protection for exploiting null dereference using mmap). What 
  kernel 
  versions are you running in your virtualized machines?
 My host with Fedora 12 x86-64
 Linux Fedora8 2.6.32.26-175.fc12.x86_64 #1 SMP Wed Dec 1 21:39:34 UTC 2010 
 x86_64 x86_64 x86_64 GNU/Linux
 
 has mmap_min_addr

No problem here.

 Fedora 3 x86-64 with kernel 2.6.9-1.667 also has not mmap_min_addr

No problem here either (kernel too old).

 Fedora 12 ARM with kernel 
 
 uname -a
 Linux fedora-arm 2.6.24-rc7 #1 Wed Jan 16 02:28:08 CET 2008 armv5tel armv5tel 
 armv5tel GNU/Linux
 
 has not

I now see that the original commit (ed032189) made mmap_min_addr depend on 
CONFIG_SECURITY. Do you have this enabled in your kernel configuration?

 Debian ARM OABI I think, has kernel 2.4 (can't check it now)

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: /proc/sys/vm/mmap_min_addr missing

2013-01-14 Thread Baruch Siach
Hi Valery,

On Mon, Jan 14, 2013 at 11:24:27PM -0800, Valery Reznic wrote:
  From: shimi linux...@shimi.net
 To: Valery Reznic valery_rez...@yahoo.com 
 Cc: linux-il linux-il@cs.huji.ac.il 
 Sent: Tuesday, January 15, 2013 6:21 AM
 Subject: Re: /proc/sys/vm/mmap_min_addr missing
  
 
 On Mon, Jan 14, 2013 at 11:40 PM, Valery Reznic valery_rez...@yahoo.com 
 wrote:
 
 Recently I stumbled upon some mystery that I can't understand.
 My Google search bring no results.
 
 I have 3 VM with different Linuxes that run under QEMU and now I noticed 
 that
 all of them don't have /proc/sys/vm/mmap_min_addr files (/proc is mounted)
  
 Are you emulating ARM on the guests by any chance?
 I am running Fedora 12 ARM, Fedora Core 3 x86-64, and debian ARM
 I don't remember debian version, but it's ARM OABI

mmap_min_addr first appeared in kernel version 2.6.23, commit ed032189 
(security: Protection for exploiting null dereference using mmap). What kernel 
versions are you running in your virtualized machines?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: SSD drives

2013-01-03 Thread Baruch Siach
Hi Oleg,

On Sun, Dec 30, 2012 at 10:40:31AM +0200, Oleg Goldshmidt wrote:
 On Sun, Dec 30, 2012 at 8:46 AM, shimi linux...@shimi.net wrote:
  I really don't think so. SSDs (IMHO) makes computer much faster due to the
  VERY low seek time - the time it takes you to get a block. Compare 10-20ms
  with ~0.1ms. A regular hard drive simply wastes a lost of time seeking the
  data, instead of... reading it :)
 
 Absolutely correct. However, there is a tiny fraction of the seek time
 that is not always a waste, and I think it is worth mentioning. There
 is, I believe, a consideration that is usually overlooked when SSDs
 are considered for server use, including a desktop that is used as a
 server, which is why I am mentioning it here. In a server, magnetic
 disk rotation - or, rather the air turbulence generated between the
 rotating disk and its enclosure - is the only source of entropy that
 makes random numbers random (seek times have a tiny random component
 due to the turbulence, and it is captured). This does not apply to
 SSDs, and as a result your security may be compromised (attacks
 exploiting not very random RNGs are well known).

Recent Intel CPUs introduced the RDRAND instruction that is essentially a 
Random Number Generator. Recent kernels (v3.2 and later) added support for 
this instruction. See http://git.kernel.org/linus/628c6246d4. See also the 
related commit (from v3.6) at http://git.kernel.org/linus/c2557a303 (and note 
the funny commit log).

These patches were backported to all supported stable kernel trees (back to 
v2.6.32).

 In a laptop or a desktop entropy is also generated by keyboard and
 mouse (which may or may not be good enough). In a server that hardly
 applies.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Motherboards for new Ubuntu install

2012-12-26 Thread Baruch Siach
Hi Dotan,

On Wed, Dec 26, 2012 at 11:05:46AM +0200, Dotan Cohen wrote:
 On Wed, Dec 26, 2012 at 9:57 AM, Oleg Goldshmidt p...@goldshmidt.org wrote:
  What is specific to Ubuntu as far as MoBo is concerned? I would look at the
  kernel. Are Ubuntu kernels very different?

[...]

 There is no mention of which driver it needs, and I strongly suspect
 that the 1000 Mbit part requires nonconventional drivers as was the
 case with Asus board's NIC. There wasn't even a legacy mode for 10
 Mbit communications.

See the list of currently (as of version 3.8-rc1) supported PCI IDs of Atheros 
GbE Ethernet devices in drivers/net/ethernet/atheros/atl1e/atl1e_main.c,  
drivers/net/ethernet/atheros/atl1c/atl1c_hw.h and 
drivers/net/ethernet/atheros/atlx/atl1.c. You'll need to access a running 
machine to extract the PCI ID information, though, since Gigabyte's manual is 
not very helpful.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Motherboards for new Ubuntu install

2012-12-26 Thread Baruch Siach
Hi Dotan,

On Wed, Dec 26, 2012 at 12:29:31PM +0200, Dotan Cohen wrote:
 On Wed, Dec 26, 2012 at 11:42 AM, Baruch Siach bar...@tkos.co.il wrote:
  You'll need to access a running
  machine to extract the PCI ID information, though, since Gigabyte's manual 
  is
  not very helpful.
 
 Is that the chicken, or the egg?
 
 In other words, if I did have access to a running system, I would
 already know if it works or not!

This board surely runs Windows. You can extract the PCI ID from its Device 
Manager, or whatever it's called there.

Also, some BIOSes list PCI devices with IDs in the initial screen.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Motherboards for new Ubuntu install

2012-12-26 Thread Baruch Siach
Hi Amichai,

On Wed, Dec 26, 2012 at 02:57:23PM +0200, Amichai Rotman wrote:
 Download the Windows drivers from the MpBo site, extract the files, look up
 the relevant strings in the .inf files and Google it for Kubuntu
 compatibility

I tried that. The trouble is that the Windows driver (according to its file 
name: mb_driver_lan_atheros_813x_815x_816x.exe) covers a wide range of NIC 
chips. This is not a driver tailored specifically for this board. So the list 
of PCI IDs in the driver's .inf file is not a indication for what is actually 
installed on the board.

baruch

 How about starting a Linux-IL maintained HW DB - every member runs lshw on
 their machine and uploads it to a site with the Distro their running...
 
   Amichai Rotman
  Penguin - FLOSS Computer Service and Technical Consulting
  +972-73-7962360 ||  +972-54-4605787
 
 On Wed, Dec 26, 2012 at 1:54 PM, Baruch Siach bar...@tkos.co.il wrote:
 
  Hi Dotan,
 
  On Wed, Dec 26, 2012 at 12:29:31PM +0200, Dotan Cohen wrote:
   On Wed, Dec 26, 2012 at 11:42 AM, Baruch Siach bar...@tkos.co.il
  wrote:
You'll need to access a running
machine to extract the PCI ID information, though, since Gigabyte's
  manual is
not very helpful.
  
   Is that the chicken, or the egg?
  
   In other words, if I did have access to a running system, I would
   already know if it works or not!
 
  This board surely runs Windows. You can extract the PCI ID from its Device
  Manager, or whatever it's called there.
 
  Also, some BIOSes list PCI devices with IDs in the initial screen.
 
  baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Motherboards for new Ubuntu install

2012-12-26 Thread Baruch Siach
Hi Eliyahu,

On Wed, Dec 26, 2012 at 03:45:27PM +0200, E.S. Rosenberg wrote:
 Generally the linux drivers cover an equally large if not larger spectrum...

Of course. But there is no guarantee that the covered range exactly overlaps 
the Windows driver one.

 I have an Atheros chip from that family on my laptop, it required me
 to install one more package for wired communication (wireless
 [different chip, also atheros] worked out of the box):
 
 03:00.0 Ethernet controller: Atheros Communications Inc. AR8162 Fast
 Ethernet (rev 10)

Fast Ethernet is most likely 10/100, not GbE (10/100/1000).

What is the output of 'lspci -n'?

 The weird thing was that the driver detection program didn't realize this...
 
 Either way the package that provides the 'alx' driver on Ubuntu 12.10 is:
 linux-backports-modules-cw-3.6-quantal-generic

Are you sure it is not 'atlx'?

baruch

 2012/12/26 Baruch Siach bar...@tkos.co.il:
  Hi Amichai,
 
  On Wed, Dec 26, 2012 at 02:57:23PM +0200, Amichai Rotman wrote:
  Download the Windows drivers from the MpBo site, extract the files, look up
  the relevant strings in the .inf files and Google it for Kubuntu
  compatibility
 
  I tried that. The trouble is that the Windows driver (according to its file
  name: mb_driver_lan_atheros_813x_815x_816x.exe) covers a wide range of NIC
  chips. This is not a driver tailored specifically for this board. So the 
  list
  of PCI IDs in the driver's .inf file is not a indication for what is 
  actually
  installed on the board.
 
  baruch
 
  How about starting a Linux-IL maintained HW DB - every member runs lshw on
  their machine and uploads it to a site with the Distro their running...
 
Amichai Rotman
   Penguin - FLOSS Computer Service and Technical Consulting
   +972-73-7962360 ||  +972-54-4605787
 
  On Wed, Dec 26, 2012 at 1:54 PM, Baruch Siach bar...@tkos.co.il wrote:
 
   Hi Dotan,
  
   On Wed, Dec 26, 2012 at 12:29:31PM +0200, Dotan Cohen wrote:
On Wed, Dec 26, 2012 at 11:42 AM, Baruch Siach bar...@tkos.co.il
   wrote:
 You'll need to access a running
 machine to extract the PCI ID information, though, since Gigabyte's
   manual is
 not very helpful.
   
Is that the chicken, or the egg?
   
In other words, if I did have access to a running system, I would
already know if it works or not!
  
   This board surely runs Windows. You can extract the PCI ID from its 
   Device
   Manager, or whatever it's called there.
  
   Also, some BIOSes list PCI devices with IDs in the initial screen.
  
   baruch
 
  --
   http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
  =}ooO--U--Ooo{=
 - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
 
  ___
  Linux-il mailing list
  Linux-il@cs.huji.ac.il
  http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Motherboards for new Ubuntu install

2012-12-26 Thread Baruch Siach
Hi Eliyahu,

On Wed, Dec 26, 2012 at 04:11:57PM +0200, E.S. Rosenberg wrote:
 2012/12/26 Baruch Siach bar...@tkos.co.il:
  Hi Eliyahu,
 
  On Wed, Dec 26, 2012 at 03:45:27PM +0200, E.S. Rosenberg wrote:
  Generally the linux drivers cover an equally large if not larger 
  spectrum...
 
  Of course. But there is no guarantee that the covered range exactly overlaps
  the Windows driver one.
 
  I have an Atheros chip from that family on my laptop, it required me
  to install one more package for wired communication (wireless
  [different chip, also atheros] worked out of the box):
 
  03:00.0 Ethernet controller: Atheros Communications Inc. AR8162 Fast
  Ethernet (rev 10)
 
  Fast Ethernet is most likely 10/100, not GbE (10/100/1000).
 Correct, I now also notice that the official specs on this laptop say
 it's just 10/100, however that does not change the fact that according
 to atheros it falls in the same family of chips
 http://www.ubuntu.com/certification/catalog/search/?csrfmiddlewaretoken=9ec89be3308015f25587de8fd4cd11ffquery=atheros
 
  What is the output of 'lspci -n'?
 1969:1090
 
  The weird thing was that the driver detection program didn't realize 
  this...
 
  Either way the package that provides the 'alx' driver on Ubuntu 12.10 is:
  linux-backports-modules-cw-3.6-quantal-generic
 
  Are you sure it is not 'atlx'?
 my modprobe history don't lie ;) neither does lspci -v

You are right. This driver has not found its way to the mainline kernel yet.  
Its homepage is at 
http://www.linuxfoundation.org/collaborate/workgroups/networking/alx, and 
although it has been posted for mainline inclusion back in August 
(https://patchwork.kernel.org/patch/1376841/) the authors have not followed 
up.  It is somewhat strange that this driver has found a (temporary) home in 
the compat-wireless package (https://lkml.org/lkml/2012/10/8/409), which is 
where you installed it from.  Maybe it is so because the compat-wireless 
maintainer, Luis R.  Rodriguez, is an Atheros/Qualcomm employee.

baruch

  2012/12/26 Baruch Siach bar...@tkos.co.il:
   Hi Amichai,
  
   On Wed, Dec 26, 2012 at 02:57:23PM +0200, Amichai Rotman wrote:
   Download the Windows drivers from the MpBo site, extract the files, 
   look up
   the relevant strings in the .inf files and Google it for Kubuntu
   compatibility
  
   I tried that. The trouble is that the Windows driver (according to its 
   file
   name: mb_driver_lan_atheros_813x_815x_816x.exe) covers a wide range of 
   NIC
   chips. This is not a driver tailored specifically for this board. So the 
   list
   of PCI IDs in the driver's .inf file is not a indication for what is 
   actually
   installed on the board.
  
   baruch
  
   How about starting a Linux-IL maintained HW DB - every member runs lshw 
   on
   their machine and uploads it to a site with the Distro their running...
  
 Amichai Rotman
Penguin - FLOSS Computer Service and Technical Consulting
+972-73-7962360 ||  +972-54-4605787
  
   On Wed, Dec 26, 2012 at 1:54 PM, Baruch Siach bar...@tkos.co.il wrote:
  
Hi Dotan,
   
On Wed, Dec 26, 2012 at 12:29:31PM +0200, Dotan Cohen wrote:
 On Wed, Dec 26, 2012 at 11:42 AM, Baruch Siach bar...@tkos.co.il
wrote:
  You'll need to access a running
  machine to extract the PCI ID information, though, since 
  Gigabyte's
manual is
  not very helpful.

 Is that the chicken, or the egg?

 In other words, if I did have access to a running system, I would
 already know if it works or not!
   
This board surely runs Windows. You can extract the PCI ID from its 
Device
Manager, or whatever it's called there.
   
Also, some BIOSes list PCI devices with IDs in the initial screen.
   
baruch
  
   --
http://baruch.siach.name/blog/  ~. .~   Tk Open 
   Systems
   =}ooO--U--Ooo{=
  - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
  
   ___
   Linux-il mailing list
   Linux-il@cs.huji.ac.il
   http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
 
  --
   http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
  =}ooO--U--Ooo{=
 - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Home made NAS

2012-12-04 Thread Baruch Siach
Hi Tzafrir,

On Tue, Dec 04, 2012 at 12:33:37PM +, Tzafrir Cohen wrote:
 http://linux-sunxi.org/Mele_A1000
 Includes a SATA adapter and a disk enclosure (you'll have to provide
 your own disk). It does cost a bit more than a Pi, and the code is not
 in mainline yet,

That is about to change in kernel v3.8. The patch below (and a few other 
related patches) are queued for inclusion in the upcoming merge window.

http://git.kernel.org/?p=linux/kernel/git/arm/arm-soc.git;a=commitdiff;h=3b52634f0b7adaaf2b29569025287b938b7c71a6

baruch

 but it's easier to work with than a Pi.
 
 There are lots of them.

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Question about process states, ps and GDB

2012-12-02 Thread Baruch Siach
Hi Dan,

On Sun, Dec 02, 2012 at 02:57:30PM +0200, Dan Shimshoni wrote:

[...]

 Starting program: /work/dev/t/sec/hello
 
 Breakpoint 1, main () at hello.c:7
 7 for(i=0; i  10; i++)
 Missing separate debuginfos, use: debuginfo-install glibc-2.15-58.fc17.x86_64
 (gdb)
 
 Now with ps aux | grep hello I see two processes:
 root 10310  0.0  0.7 196432 15188 pts/1S+   14:42   0:00 gdb
 --quiet hello
 root 10333  0.0  0.0   4108   344 pts/1t14:44   0:00
 /work/dev/t/sec/hello
 
 S is for  Interruptible sleep
 
 I assume that the t is for process state of TRACED. Am I right?

As far as I know the state letters come from the third field in the 
/proc/pid/stat file. A more verbose version of this field appears in the 
/proc/pid/status file (look for 'State:'). According to task_state_array[] 
(fs/proc/array.c in the kernel sources) 't' translates into tracing stop, 
while 'T' is just stopped.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: new disk - rsync or hardware problem

2012-10-12 Thread Baruch Siach
Hi Shlomo,

On Fri, Oct 12, 2012 at 09:52:47AM +0200, Shlomo Solomon wrote:
 As I wrote above, I suspect a hardware problem, but on the other hand,
 if that's the case, why does re-mounting solve the problem? In any
 case, I don't believe that BUG or LaCie will help me, as soon as they
 hear I re-formatted the disk as Linux ReiserFS.
 
 Any ideas?

Is there anything interesting in the kernel messages (dmesg)?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] Lenovo z580 BIOS setup horror story

2012-09-25 Thread Baruch Siach
Hi Yonatan,

On Tue, Sep 25, 2012 at 06:40:53AM +0200, Jonathan Ben Avraham wrote:
 I was not able to get any version of Debian to install on this
 laptop,

Not even (kernel v3.2 based) Debian Wheezy (testing)?

 so I ended up installing Mint, using a 240GB SSD instead of
 the original HD. It boots in less than ten seconds.

What kernel version does your Mint installation uses?

baruch

 On Tue, 28 Aug 2012, sara fink wrote:
 
 Date: Tue, 28 Aug 2012 13:58:33 +0300
 From: sara fink sara.f...@gmail.com
 To: Jonathan Ben Avraham y...@tkos.co.il
 Cc: Diego Iastrubni elc...@kde.org, linux-il@cs.huji.ac.il
 Subject: Re: [YBA] Lenovo z580 BIOS setup horror story
 
 About CPM, I didn't have so good experience with them. I have a fujitsu 
 siemens. when it was in warranty, it was several times at CPM. One time they 
 were supposed to replace the screen and they didn't, even although in the 
 report they
 claimed they changed it. I complained about to the service abroad.
 
 I hope that they will take care of your laptop. Next time, I strongly 
 suggest to make a list of hardware + serial numbers. Lenovo  doesn't have 
 other service except CPM? It's quite surprising. Asus has service at IBM 
 labs. at least
 this is the agreement between bug (who imports asus) and ibm.
 
 On Tue, Aug 28, 2012 at 11:24 AM, Jonathan Ben Avraham y...@tkos.co.il 
 wrote:
   Hi Diego, et, al.
   I called the local Lenovo service. The contact info on
 
   http://www.lenovo.com/contact/xe/en/index_il.html
 
   Indicates that +972-3-531-3900 is the telephone number for Lenovo 
  warranty and repair service. However, at that number there is only a voice 
  recording that the telephone number was changed to *6557 or 03-914-2800.
 
   So I called 03-914-2800 and received *another* number: 1-809-258990. 
  At that number a recorded female voice speaking Hebrew with a very heavy 
  French accent instructed me which button to press. I pressed 1 and spoke 
  with
   Ahmed in heavily Arabic accented Hebrew who patiently listened to my 
  complaint and wrote down the details and asked me to wait a minute while he 
  called someone. After a minute Ahmed returned and asked me to verify his
   summary of my complaint. He then gave me a service ticket number and 
  asked me to send the laptop to CBM at Menachem Begin 37, Tel Aviv. After 
  some searching and thinking I realized that this CPM,
   http://www.cpm-israel.com/. Most importantly, Ahmed gave me the 
  telephone number of CPM, 03-718-3700, which I could not otherwise find any 
  listing for, especially not on their web site.
 
   I called CPM, who told us to deliver the laptop to Fedex at Givat 
  Shaul in Jerusalem. We sent the laptop to Fedex at Givat Shaul in Jerusalem 
  and they refused to accept it. We called CPM to tell them that Fedex told 
  us that
   they have not been working with CPM for the past six months. CPM 
  called Fedex and then asked us to send the laptop back to Fedex Givat 
  Shaul. Fedex accepted the laptop late Sunday and is now in the process of 
  transporting
   it to Tel Aviv.
 
   I will update you as soon as we receive confirmation from CPM that the 
  laptop arrived.
 
   I visited Machsanei Hashmal and explained the problem to them, 
  emphasized that I had no complaint against them and that for Windows users 
  the model would probably be just fine but warned them not to sell the Z580 
  to anyone
   who looks nerdy.
   Regards,
 
    - yba
 
 
 
   On Mon, 27 Aug 2012, Diego Iastrubni wrote:
 
 Date: Mon, 27 Aug 2012 21:18:22 +0300
 From: Diego Iastrubni elc...@kde.org
 To: linux-il@cs.huji.ac.il
 Subject: Re: [YBA] Lenovo z580 BISO setup horror story
 
 On יום ראשון, 19 באוגוסט 2012 22:37:24 Jonathan Ben Avraham 
  wrote:
   Dear Colleagues,
   I recently purchased a Lenovo Z580 Ideapad from Macsanei 
  Hashmal.
 
   I replaced the 750GB HD with a 240GB SSD and installed 
  Squeeze. The
   installation succeeded but I was unable to log out - had 
  to hold power
   button to force off.
 
   Same story with Wheezy.
 
   Installed Ubuntu 12.04. Seemed to work fine but I am too 
  old to deal wuth
   Unity, so I installed Mint Xfce.
 
   After installing Mint I am not able to get into the BIOS 
  setup menu no
   matter what I press, either the main power key or the 
  recovery key,
   whether F2 or F12, I always get to a limited boot menu 
  that is not
   editable.
 
   If I connect an ethernet cable, it tries to PXE, then TFTP 
  boot until I
   press escape - not so secure.
 
   Can't find the CMOS battery if there is one and can't find 
  service
   documentation that would 

Re: Possible Solution for Frequent Keyboard Hangups in KDE.

2012-09-16 Thread Baruch Siach
Hi Nadav,

On Sun, Sep 16, 2012 at 09:14:00AM +0300, Nadav Har'El wrote:
 On Fri, Sep 14, 2012, Shlomi Fish wrote about Possible Solution for Frequent 
 Keyboard Hangups in KDE.:
  Hi all,
  
  in case you are experiencing cases where the keyboard in KDE become
  unresponsive sometimes, then I have discovered a way to predictably
  reproduce this hang-up, and to avoid it. See this KDE bug here:
 
 Sadly, this is a much bigger problem than you describe, which has
 plagued various distributions for the last year: People have been reporting -
 and it also repeatedly happened to me personally - that X Windows's
 keyboard hangs while the rest of the computer (as well as the mouse)
 continues to work normally. To some people, this hang happened several
 times a week, bringing Linux's reliability close to that of 1990s MS
 Windows :(
 
 Further investigation revealed that the keyboard is NOT actually hung,
 but rather in a little-known state called SlowKeys - if you press a
 key for over a second, it *will* be accepted. If you care enough, you can
 actually type something in this weird state. But clearly this state was
 meant for people with very specific disabilities - and not for the
 general population. So how and why is does one randomly get into this
 state?
 
 Continuing the investigation, you'll discover that when X is in a new
 and little-known state called AccessX, it enables the dreaded
 SlowKeys mode when you press the shift key for 10 seconds. Yes, that's
 right - if you daydream with your hand on the shift, bye bye keyboard.

I just wanted to note that for me, at least, another 10 seconds Shift key 
press toggles the keyboard to its normal non-SlowKeys state.

 So, you might be asking, why is this AccessX state even turned on by
 default? Apparently, it *shouldn't*. X does *not* turn it on by default.
 But various buggy Gnome and KDE crap do. On my Fedora, it is GDM (the Gnome
 login screen - which is used even if you end up running KDE) which turns it
 on (apparently to help people with disabilities to log in) but forgets to
 turn it back off when it starts the session. Various window managers also
 turn this feature on - it should be off by default unless the user chooses
 this feature, but apparently (as I can see from various bug reports in Fedora)
 most window managers got this wrong in some way or another. For the GDM
 bug (which I described above) is probably causing the problem for most users.
 
 My solution was to install a utility called xkbset which knows about
 these new X features, and turn them off. xkbset -a turns off AccessX,
 which turns off that terrible
 press-shift-for-10-seconds-and-your-keyboard-is-toast feature.
 I run this xkbset -a as part of the session startup, and haven't had a
 keyboard hang since.

Tanks for the tip. Adding to my ~/.xsession script.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Another Israeli DMCA legislation attempt

2012-09-03 Thread Baruch Siach
Hi linux-il,

This issue keeps coming up.

http://law.co.il/news/copyright/2012/08/28/ministry-of-justice-published-new-drm-bill/
http://law.co.il/media/computer-law/drm_tazkir.pdf

Last time was in 2006: http://thread.gmane.org/gmane.linux.region.israel/26746

Who is behind this legislation attempt this time?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to build LAN drivers with no internet access

2012-07-03 Thread Baruch Siach
Hi Dotan,

On Tue, Jul 03, 2012 at 02:41:57PM +0300, Dotan Cohen wrote:
 On Tue, Jul 3, 2012 at 6:22 AM, Baruch Siach bar...@tkos.co.il wrote:
  So how did you solve it eventually?
 
 First I installed the updated kernel, then set a static IP address and
 the default gateway. DNS wouldn't work until I renewed the DHCP lease
 even though I have a static IP address. Stupid, but it works.

For DNS resolution to work you need to have a valid 'nameserver' entry in your 
/etc/resolv.conf file.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Python question - first call is slower?

2012-07-03 Thread Baruch Siach
Hi Nadav,

On Tue, Jul 03, 2012 at 05:02:50PM +0300, Nadav Har'El wrote:
 On Thu, Jun 21, 2012, Nadav Har'El wrote about Re: Python question - first 
 call is slower?:
  My example program actually *forked* right before that first call.
  
  It turns out that (at least, this is my understanding now) memory 
  allocation -
  in Python but also in C - is significantly slower during this first call, 
  but
 ...
  The short explanation is copy-on-write page faults.
 
 I have since discovered that there's another reason for slow memory
 allocation after a fork, even if we avoid copy-on-write by filling the
 parent's malloc arena before the fork:
 
 When the child allocates *new* memory with sbrk(), and later uses it, minor
 page faults happen causing the kernel to zero the new pages before the
 program can using it. This zeroing takes time, but is important (for
 security reasons). What worries me more, though, are these minor page
 faults. These happen lazily - only when I access a page, a page fault
 happens, so I am getting one minor page fault per page, and these appear
 to have significant overhead (page table locks, TLB flushes, or I don't
 know what).
 
 What I'd rather happen in the child is that when sbrk() allocates new
 memory, the kernel immediately maps and zeros all these pages - and
 doesn't wait until they are actually used (which I know they will).
 Do anyone have any idea if this can be done, hopefully without modifying
 the kernel? Is there some madvise() or other trick which can be used to
 ensure that a large number of pages get mapped *now* instead of mapping
 them one after another?

You may try using the kernel hugepage support, either transparent 
(Documentation/vm/transhuge.txt), or non-transparent 
(Documentation/vm/hugetlbpage.txt). When your allocated memory is on a single 
huge page, the kernel must map and initialize it all in a single page fault.  
You also get the benefit of smaller TLB pressure. I'm not sure whether you can 
use huge pages with sbrk() though.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to build LAN drivers with no internet access

2012-07-02 Thread Baruch Siach
Hi Dotan,

On Mon, Jul 02, 2012 at 02:32:13PM +0300, Dotan Cohen wrote:
 I need to build the LAN drivers for an ASUS P8H61 MLX motherboard with
 no internet access on Kubuntu 12.04. The driver is available here:
 http://www.realtek.com/downloads/downloadsView.aspx?Langid=1PNid=13PFid=5Level=5Conn=4DownTypeID=3GetDown=false#2

These NICs should be well supported in recent kernels. Make sure that you have 
the firmware-realtek package installed. If the firmware for your NIC is 
missing from firmware-realtek (rtl8402-1.fw and rtl8411-1.fw currently) get it 
from 
http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=tree;f=rtl_nic;h=433ba2c0164f9809221d969d3d60e605575790fc;hb=HEAD,
 
and copy to /lib/firmware/rtl_nic/.

Hope this helps.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Firefox 13 on Debian - where is Flash?

2012-07-02 Thread Baruch Siach
Hi Amos,

On Mon, Jul 02, 2012 at 10:00:54PM +1000, Amos Shapira wrote:
 It doesn't. I installed the Mozilla binary because iceweasel is stuck at 10
 and I wanted the later versions.

Iceweasel 13.0.1 is packaged in experimental. See 
http://packages.debian.org/source/experimental/iceweasel.

baruch

 On Jul 2, 2012 8:52 PM, Tomer Cohen to...@gmx.net wrote:
 
  Since when Debian does have Firefox package and not Iceweasel?
 
  On Mon, Jul 2, 2012 at 1:20 PM, Amos Shapira amos.shap...@gmail.comwrote:
 
  Hi,
 
  I installed Firefox 13.0.1 (well - audo upgraded since 11) on Debian
  wheezy/sid x86 and it work well, except that I can't make it run Flash.
  I think it comes down to were the f*** is the plugins directory? and I
  couldn't find a definite answer to that.
  The most concrete path I found talks about /usr/lib/firefox/plugins, but
  linking to the libflashplayer.so (installed with
  flashplugin-nonfree-1:2.8.4) from that directory and restarting Firefox
  still doesn't list it in the Addon-Plugins page or makes Flash work.
 
  Any help?
 
  Thanks,
 
  --Amos

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to build LAN drivers with no internet access

2012-07-02 Thread Baruch Siach
Hi Dotan,

On Mon, Jul 02, 2012 at 03:41:30PM +0300, Dotan Cohen wrote:
 On Mon, Jul 2, 2012 at 2:54 PM, Baruch Siach bar...@tkos.co.il wrote:
  If the firmware for your NIC is
  missing from firmware-realtek (rtl8402-1.fw and rtl8411-1.fw currently) get 
  it
  from
  http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=tree;f=rtl_nic;h=433ba2c0164f9809221d969d3d60e605575790fc;hb=HEAD,
  and copy to /lib/firmware/rtl_nic/.
 
  Hope this helps.
 
 On a fresh install, having only moved the mentioned files to
 /lib/firmware/rtl_nic and then rebooting:
 shelly@neptune:~$ ls /lib/firmware/rtl_nic/
 rtl8105e-1.fw  rtl8168d-1.fw  rtl8168d-2.fw  rtl8168e-1.fw
 rtl8168e-2.fw  rtl8168e-3.fw  rtl8168f-1.fw  rtl8168f-2.fw
 rtl8402-1.fw  rtl8411-1.fw  rtl_nic_rtl8402-1.fw  rtl_nic_rtl8411-1.fw

 Still no IP address:
 shelly@neptune:~$ ifconfig
 eth0  Link encap:Ethernet  HWaddr 54:04:a6:82:6b:eb
   inet6 addr: fe80::5604:a6ff:fe82:6beb/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:1 errors:0 dropped:0 overruns:0 frame:0
   TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:60 (60.0 B)  TX bytes:16788 (16.7 KB)
   Interrupt:41 Base address:0xa000
 
 loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:16436  Metric:1
   RX packets:112 errors:0 dropped:0 overruns:0 frame:0
   TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:8880 (8.8 KB)  TX bytes:8880 (8.8 KB)
 
 Still using the old driver:
 shelly@neptune:~$ sudo lshw | grep r8
 [sudo] password for shelly:
 configuration: autonegotiation=on broadcast=yes
 driver=r8169 driverversion=2.3LK-NAPI duplex=full
 firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=yes multicast=yes
 port=MII speed=100Mbit/s

Looks good so far. This is the right driver, no need to unload.

 So I try to change drivers but cannot load the new driver:
 shelly@neptune:~$ sudo modprobe -r r8169
 shelly@neptune:~$ sudo modprobe r8411
 FATAL: Module r8411 not found.
 shelly@neptune:~$ sudo modprobe r8402
 FATAL: Module r8402 not found.
 shelly@neptune:~$ sudo modprobe rtl8411
 FATAL: Module rtl8411 not found.
 shelly@neptune:~$ sudo modprobe rtl_nic_8411
 FATAL: Module rtl_nic_8411 not found.
 shelly@neptune:~$ sudo modprobe rtl_nic_8411-1
 FATAL: Module rtl_nic_8411_1 not found.
 shelly@neptune:~$ sudo modprobe rtl_nic_8411-1.fw
 FATAL: Module rtl_nic_8411_1.fw not found.
 shelly@neptune:~$
 
 What should I do now?

The driver automatically loads the firmware, which in you case seems to be 
rtl8168e-3.fw. Just set an IP address for eth0 and ping away.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to build LAN drivers with no internet access

2012-07-02 Thread Baruch Siach
Hi Dotan,

On Mon, Jul 02, 2012 at 04:48:42PM +0300, Dotan Cohen wrote:
 On Mon, Jul 2, 2012 at 3:51 PM, Baruch Siach bar...@tkos.co.il wrote:
  What should I do now?
 
  The driver automatically loads the firmware, which in you case seems to be
  rtl8168e-3.fw. Just set an IP address for eth0 and ping away.
 
 I cannot seem to add an IP address:

[snip]

What is your kernel version?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: How to build LAN drivers with no internet access

2012-07-02 Thread Baruch Siach
Hi Dotan,

On Mon, Jul 02, 2012 at 09:48:48PM +0300, Dotan Cohen wrote:
 Baruch and Geoffrey, I want to say again thank you. For about 6 hours
 you were here helping me get the disaster sorted out. I learned very
 much about Linux and networking in those hours. I had already given up
 hope about this and really didn't know what I was going to do: I could
 not return the motherboard and there isn't even a PCI slot on the
 thing to put a NIC on! There is cold beer waiting for you two in Be'er
 Sheva!

So how did you solve it eventually?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Finding recent new Debian packages

2012-05-20 Thread Baruch Siach
Hi Amos,

On Sun, May 20, 2012 at 09:12:35PM +1000, Amos Shapira wrote:
 I use aptitude to maintain packages on my desktop Debian wheezy system.
 This morning I saw an interesting package in the list of new packages but
 didn't install it.
 In the evening I stumbled into someone who might be interested in this kind
 of a package, but I can't remember its name.
 The only thing I know about it is that it was added to Debian in the last
 24 hours or so (previous update happened yesterday).
 
 Is there a way for me to find Debian packages listed by time of upload?

Try here: http://packages.debian.org/testing/main/newpkg.

baruch


-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Semantic C code indexing and query tool

2012-05-14 Thread Baruch Siach
Hi Gilboa,

On Mon, May 14, 2012 at 08:52:39AM +0300, Gilboa Davara wrote:
 On Mon, May 14, 2012 at 7:34 AM, Baruch Siach bar...@tkos.co.il wrote:
  I'm looking for a tool that can do semantic search is a body of C code.
  Example query: give me all references to field y in struct x defined in
  file z.h. I would prefer an open source, command line driven tool. C++ 
  support is an advantage. Does such a tool exist?
 
 I use cscope for more-or-less the same requirements.

I've tried cscope, but I couldn't find a way to find references to a field in 
a specific struct. Can this be done with cscope?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Semantic C code indexing and query tool

2012-05-14 Thread Baruch Siach
Hi Dov,

On Mon, May 14, 2012 at 09:55:46AM +0300, Dov Grobgeld wrote:
 There was just an article on Slashdot about FreeBSD abondoning gcc in favor
 of clang. I hadn't encountered clang before, and have read up on it since.
 The big difference between gcc and clang was that clang was written from
 the very beginning to be reusable tool, around which various
 functionalities can be built. E.g. a package that does syntax aware source
 code completion in emacs and vim. See:
 
 http://kristianrumberg.wordpress.com/2010/04/22/smart-autocompletion-for-c-in-emacs/
 lang.llvm.org

Of all mentioned alternative this one seems to be the closest. clang has full 
knowledge of all tags and references types. Exporting this info to an external 
tags database doesn't look too hard to do. Has anyone done this already?

baruch

 On Mon, May 14, 2012 at 9:19 AM, Gilboa Davara gilb...@gmail.com wrote:
 
  On Mon, May 14, 2012 at 9:03 AM, Baruch Siach bar...@tkos.co.il wrote:
   Hi Gilboa,
  
   On Mon, May 14, 2012 at 08:52:39AM +0300, Gilboa Davara wrote:
   On Mon, May 14, 2012 at 7:34 AM, Baruch Siach bar...@tkos.co.il
  wrote:
I'm looking for a tool that can do semantic search is a body of C
  code.
Example query: give me all references to field y in struct x defined
  in
file z.h. I would prefer an open source, command line driven tool.
  C++
support is an advantage. Does such a tool exist?
  
   I use cscope for more-or-less the same requirements.
  
   I've tried cscope, but I couldn't find a way to find references to a
  field in
   a specific struct. Can this be done with cscope?
  
   baruch
 
  In theory cscope f t (find text) can do it, but it won't be very
  efficient and my suffer from high rate of false positives.
  Per your requirements, I'd suggest you consider using grep to filter
  the results of cscope find s.
 
  - Gilboa

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Semantic C code indexing and query tool

2012-05-13 Thread Baruch Siach
Hi linux-il,

I'm looking for a tool that can do semantic search is a body of C code.  
Example query: give me all references to field y in struct x defined in file 
z.h. I would prefer an open source, command line driven tool. C++ support is 
an advantage. Does such a tool exist?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: help with ls command

2012-05-01 Thread Baruch Siach
Hi Camelia,

On Tue, May 01, 2012 at 10:59:42AM +, Camelia Botez wrote:
 I have 2 servers running Rhel5 and Centos5.
 Around 2 weeks ago on both of them , I have specific directories on which ls 
 command gets stuck.
 I don't get any output from ls , I cannot stop the command - I only can 
 close the window.
 I rebooted the servers and when I saw that reboot didn't help I ran manually  
 fsck.
 No improvement.
 Has anyone any idea what can be the cause and what to do?

Please provide the output of the following command:

strace ls

If you don't have 'strace' on your servers, just install the strace package 
with 'yum install strace'.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: help with ls command

2012-05-01 Thread Baruch Siach
Hi Camelia,

Please keep the linux-il list on Cc.

On Tue, May 01, 2012 at 11:37:02AM +, Camelia Botez wrote:
 Gets stuck on nanosleep ({8, 0}) after that on nanosleep ({64, 0} , and 
 nothing

Please give a little more verbose output, so we can see the context of these 
system calls.

By the way, nanosleep({64, 0}) means sleep for 64 seconds. What happens 
after 64 seconds?

baruch

 -Original Message-
 From: Baruch Siach [mailto:bar...@tkos.co.il] 
 Sent: Tuesday, May 01, 2012 2:12 PM
 To: Camelia Botez
 Cc: linux-il@cs.huji.ac.il
 Subject: Re: help with ls command
 
 Hi Camelia,
 
 On Tue, May 01, 2012 at 10:59:42AM +, Camelia Botez wrote:
  I have 2 servers running Rhel5 and Centos5.
  Around 2 weeks ago on both of them , I have specific directories on 
  which ls command gets stuck.
  I don't get any output from ls , I cannot stop the command - I only 
  can close the window.
  I rebooted the servers and when I saw that reboot didn't help I ran 
  manually fsck.
  No improvement.
  Has anyone any idea what can be the cause and what to do?
 
 Please provide the output of the following command:
 
 strace ls
 
 If you don't have 'strace' on your servers, just install the strace package 
 with 'yum install strace'.
 
 baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: help with ls command

2012-05-01 Thread Baruch Siach
Hi Camelia,

On Tue, May 01, 2012 at 11:49:43AM +, Camelia Botez wrote:
 I got the full outpu from starce ls -ltr

According to the strace output below you seem to be doing just fine.

write(1, total 395352\n, 13total 395352
)  = 13
clock_gettime(CLOCK_REALTIME, {1335872587, 209289000}) = 0
stat(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, -rw-r--r--  1   1000   1000 ..., 59-rw-r--r--  1   1000   1000   
  15086 Dec 12  2007 LICENSE
) = 59
stat(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, -rw-r--r--  1   1000   1000 ..., 61-rw-r--r--  1   1000   1000   
   6182 Nov  2  2009 mysql.sql
) = 61
stat(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, -rw-r--r--  1   1000   1000 ..., 63-rw-r--r--  1   1000   1000   
   4612 Nov 11  2009 install.bat
) = 63
stat(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, -rwxr-xr-x  1   1000   1000 ..., 59-rwxr-xr-x  1   1000   1000   
   3382 Nov 11  2009 install
) = 59
stat(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2197, ...}) = 0
write(1, -rw-r--r--  1   1000   1000 ..., 61-rw-r--r--  1   1000   1000   
244 Nov 16  2009 CHANGELOG
) = 61
...

baruch

 
 -Original Message-
 From: Baruch Siach [mailto:bar...@tkos.co.il] 
 Sent: Tuesday, May 01, 2012 2:12 PM
 To: Camelia Botez
 Cc: linux-il@cs.huji.ac.il
 Subject: Re: help with ls command
 
 Hi Camelia,
 
 On Tue, May 01, 2012 at 10:59:42AM +, Camelia Botez wrote:
  I have 2 servers running Rhel5 and Centos5.
  Around 2 weeks ago on both of them , I have specific directories on 
  which ls command gets stuck.
  I don't get any output from ls , I cannot stop the command - I only 
  can close the window.
  I rebooted the servers and when I saw that reboot didn't help I ran 
  manually fsck.
  No improvement.
  Has anyone any idea what can be the cause and what to do?
 
 Please provide the output of the following command:
 
 strace ls
 
 If you don't have 'strace' on your servers, just install the strace package 
 with 'yum install strace'.
 
 baruch



-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: help with ls command

2012-05-01 Thread Baruch Siach
Hi Camelia,

On Wed, May 02, 2012 at 04:48:05AM +, Camelia Botez wrote:
 I did it , but I got back a message saying that the attachment is too big 
 and my mail is in standby. 

Having the last few lines of context should be enough.

baruch

 -Original Message-
 From: Baruch Siach [mailto:bar...@tkos.co.il] 
 Sent: Tuesday, May 01, 2012 2:43 PM
 To: Camelia Botez
 Cc: linux-il@cs.huji.ac.il
 Subject: Re: help with ls command
 
 Hi Camelia,
 
 Please keep the linux-il list on Cc.
 
 On Tue, May 01, 2012 at 11:37:02AM +, Camelia Botez wrote:
  Gets stuck on nanosleep ({8, 0}) after that on nanosleep ({64, 0} , 
  and nothing
 
 Please give a little more verbose output, so we can see the context of these 
 system calls.
 
 By the way, nanosleep({64, 0}) means sleep for 64 seconds. What happens 
 after 64 seconds?
 
 baruch
 
  -Original Message-
  From: Baruch Siach [mailto:bar...@tkos.co.il]
  Sent: Tuesday, May 01, 2012 2:12 PM
  To: Camelia Botez
  Cc: linux-il@cs.huji.ac.il
  Subject: Re: help with ls command
  
  Hi Camelia,
  
  On Tue, May 01, 2012 at 10:59:42AM +, Camelia Botez wrote:
   I have 2 servers running Rhel5 and Centos5.
   Around 2 weeks ago on both of them , I have specific directories on 
   which ls command gets stuck.
   I don't get any output from ls , I cannot stop the command - I only 
   can close the window.
   I rebooted the servers and when I saw that reboot didn't help I ran 
   manually fsck.
   No improvement.
   Has anyone any idea what can be the cause and what to do?
  
  Please provide the output of the following command:
  
  strace ls
  
  If you don't have 'strace' on your servers, just install the strace 
  package with 'yum install strace'.

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] kernel compile errors with GCC = 4.6

2012-04-04 Thread Baruch Siach
Hi Oleg,

On Wed, Apr 04, 2012 at 12:49:44PM +0300, Oleg Goldshmidt wrote:
 On Wed, Apr 4, 2012 at 10:03 AM, Jonathan Ben Avraham y...@tkos.co.ilwrote:
 
  Dear linux-il colleagues,
  GCC 4.6 introduced many new warnings that cause -Werror to stop the
  compilation for some platforms, such as powerpc, in various files.
 
 Oh, I didn't even know they finally introduced -Werror... Good.

This in the default only for PowerPC specific code, i.e. code under 
arch/powerpc.

 If it is in the way maybe KCFLAGS=-Wno-error or similar may serve as a
 workaround? Or KBUILD_ENABLE_EXTRA_GCC_CHECKS= ?

This behaviour can be disabled by setting CONFIG_PPC_DISABLE_WERROR, find 
under Kernel hacking.

 Cf. Documentation/kbuild/kbuild.txt
 
 You didn't say what kernel version - I just went to LXR for the latest.
 
  My question is in general, is there somewhere where the relationship
  between kernel version and gcc version (or other compiler version) is made
  explicit?
 
 Not that I know of. The minimal versions of everything needed are in
 Documentation/Changes. I guess you are not interested in minimal.
 
 I would be very much surprised if the kernel could not be built with
 gcc-4.6 - this is stock on Fedora, so lots of people must be using it.
 Maybe not on PowerPC, though

Recent kernel versions surely have all these warnings fixed. The kernel in 
question, I suppose, is quite ancient.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] kernel compile errors with GCC = 4.6

2012-04-04 Thread Baruch Siach
Hi Yonatan,

On Wed, Apr 04, 2012 at 01:48:15PM +0300, Jonathan Ben Avraham wrote:
 Problem still seems to be in 3.3 unless defined CONFIG_VSX.

What does the warning say?

 Should I submit a patch?

Probably. Although you should base your patch on v3.4-rc1.

baruch

 On Wed, 4 Apr 2012, Baruch Siach wrote:
 Date: Wed, 4 Apr 2012 13:22:59 +0300
 From: Baruch Siach bar...@tkos.co.il
 To: Oleg Goldshmidt p...@goldshmidt.org
 Cc: Jonathan Ben Avraham y...@tkos.co.il, ILUG linux-il@cs.huji.ac.il
 Subject: Re: [YBA] kernel compile errors with GCC = 4.6
 
 Hi Oleg,
 
 On Wed, Apr 04, 2012 at 12:49:44PM +0300, Oleg Goldshmidt wrote:
 On Wed, Apr 4, 2012 at 10:03 AM, Jonathan Ben Avraham 
 y...@tkos.co.ilwrote:
 
 Dear linux-il colleagues,
 GCC 4.6 introduced many new warnings that cause -Werror to stop the
 compilation for some platforms, such as powerpc, in various files.
 
 Oh, I didn't even know they finally introduced -Werror... Good.
 
 This in the default only for PowerPC specific code, i.e. code under
 arch/powerpc.
 
 If it is in the way maybe KCFLAGS=-Wno-error or similar may serve as a
 workaround? Or KBUILD_ENABLE_EXTRA_GCC_CHECKS= ?
 
 This behaviour can be disabled by setting CONFIG_PPC_DISABLE_WERROR, find
 under Kernel hacking.
 
 Cf. Documentation/kbuild/kbuild.txt
 
 You didn't say what kernel version - I just went to LXR for the latest.
 
 My question is in general, is there somewhere where the relationship
 between kernel version and gcc version (or other compiler version) is made
 explicit?
 
 Not that I know of. The minimal versions of everything needed are in
 Documentation/Changes. I guess you are not interested in minimal.
 
 I would be very much surprised if the kernel could not be built with
 gcc-4.6 - this is stock on Fedora, so lots of people must be using it.
 Maybe not on PowerPC, though
 
 Recent kernel versions surely have all these warnings fixed. The kernel in
 question, I suppose, is quite ancient.
 
 baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: More RAM than MemTotal

2012-03-28 Thread Baruch Siach
Hi Orna,

On Wed, Mar 28, 2012 at 02:00:25PM +0200, Orna Agmon Ben-Yehuda wrote:
 I am missing 180MB, and would like to know where they are. The problem
 really interests me in the context of virtual machines, but it also exists
 on my laptop  (bare metal installation).
 The size depends on the installation: on my laptop180MB are missing, in two
 virtual machine images the numbers are 134 and 384.
 The difference is between the RAM I know I physically have (or that I know
 KVM was told to allocate the VM):
 
 ladypine@alice:~/phd/c/moc$ grep RAM /var/log/kern.log
 Mar 26 10:24:45 alice kernel: [34324.028293] 1048576 pages RAM
 
 This is exactly 4G, since each page is 4k: 1048576*4/1024=4096.
 
 and the total memory that /proc/meminfo and top think the system has:
 
 ladypine@alice:~/phd/c/moc$ grep MemTotal /proc/meminfo
 MemTotal:4009628 kB
 
 which is a bit less: 4009628/1024=3915.65
 
 and the gap is:
 4096-4009628/1024=180.35
 
 So: 180Mb lost, a reward for an honest finder?

Do 'dmesg |grep Memory:' on your machine. Here is the output of mine:

Memory: 3967520k/5240832k available (3402k kernel code, 1137484k absent, 
135828k reserved, 3330k data, 568k init)

The sum of 'absent' and 'reserved' should account for most of the missing RAM.  
See the mem_init() routine in arch/x86/mm/init_64.c (assuming that your laptop 
is x86_64 based).

The (huge) absent figure comes from absent_pages_in_range() in 
mm/page_alloc.c which, according to the comment there returns number of page 
frames in holes within the entire RAM. I'm not sure what that means exactly.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: More RAM than MemTotal

2012-03-28 Thread Baruch Siach
Hi Orna,

On Wed, Mar 28, 2012 at 02:54:52PM +0200, Orna Agmon Ben-Yehuda wrote:
 Baruch, thank you, but on my machine I do not have this line in dmesg.
 Indeed I use a x86_64 machine (also in the virtualized machine), and the
 PCI hole to which Nadav points says the problem exists only in 32 bit
 architectures.

Your kernel has probably filled its cyclic dmesg buffer. Do you see your boot 
messages with 'dmesg |head'?

Anyway, these messages should be written somewhere under /var/log. On my 
machine (Debian) they are kept in /var/log/dmesg.

baruch

 On Wed, Mar 28, 2012 at 2:48 PM, Nadav Har'El 
 n...@math.technion.ac.ilwrote:
  On Wed, Mar 28, 2012, Baruch Siach wrote about Re: More RAM than
  MemTotal:
   The (huge) absent figure comes from absent_pages_in_range() in
   mm/page_alloc.c which, according to the comment there returns number of
   page
   frames in holes within the entire RAM. I'm not sure what that means
   exactly.
 
  Check out http://en.wikipedia.org/wiki/PCI_hole

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: what happens if

2012-03-19 Thread Baruch Siach
Hi Erez,

On Mon, Mar 19, 2012 at 10:47:20AM +0200, Erez D wrote:
 what happens if i am running a multithreaded app ( 3 threads ) and one
 thread calls fork() ?

See pthread_atfork(3).

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: elevate gdb privileges

2012-02-27 Thread Baruch Siach
Hi Ido,

On Mon, Feb 27, 2012 at 12:33:19PM +0200, ik wrote:
 I have a program that I write that uses user-space libraries that talk
 with kernel space, and I use an IDE for the development and debugging.
 
 The program requires to run as super user, but I do not want to run
 the whole IDE itself as super user, only gdb for this specific
 project, but the IDE
 does not allow me to do something like: /usr/bin/kdesu /usr/bin/gdb ...
 I also do not wish to provide suid to root, and allow every one to use
 gdb as root.
 
 Beside executing gdb myself with sudo, how would you recommend me to
 elevate user privileges for gdb on such case ?

Run your target program under gdbserver like:

$ gdbserver :1234 myprog

to make gdbserver listen to port 1234 TCP. Then, at the gdb prompt connect to 
gdbserver:

(gdb) target remote localhost:1234

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Disabling the Suhosin patch by default in Debian Wheezy (Debian Testing)

2012-02-25 Thread Baruch Siach
Hi Omer,

On Sat, Feb 25, 2012 at 11:21:38PM +0200, Omer Zak wrote:
 Today, when I upgraded my old PC, which is running Debian Testing
 (currently Debian Wheezy), I was informed of the following:
 
 php5 (5.3.9-4) unstable; urgency=low
 
   * The Suhosin patch is now disabled in the default build.
 
   If you want to re-enable it again for your installation, you can
   set the option PHP5_SUHOSIN=yes in debian/rules and recompile PHP.
 
  -- Ondřej Surý ond...@debian.org  Sat, 28 Jan 2012 08:39:36 +0100
 
 Does anyone know why did the packers decide to reverse the previous
 policy of installing PHP5 with the Suhosin patch by default?

See http://lwn.net/Articles/479716/ for the full story.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: python, beagle, and gmail

2012-02-23 Thread Baruch Siach
Hi Michael,

On Thu, Feb 23, 2012 at 02:56:58PM -0800, Michael Shiloh wrote:
 2) How can I add SSL support to my version of imaplib, or is there a
 version of imaplib for ARM that supports SSL?
 
 Am I missing a totally obvious solution?

Have you considered stunnel?

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Modern Linux memory management

2012-01-26 Thread Baruch Siach
Hi Ido,

On Thu, Jan 26, 2012 at 04:34:28PM +0200, ik wrote:
 In the past week I had several bugs that while gdb pointed to a place X,
 the actual place was several instructions prior to that position.
 
 For example the following error message I had to an off by one bug:
 *** glibc detected *** ./test_parser: malloc(): memory corruption (fast):
 0x01ddad50 ***
 
 The instruction set that I was at, when glibc raised this exception was a
 lot further then the original position of the function that caused it have
 been executed.
 Only by using valgrind, that I could find the exact location and figure
 out, that it was another function that had the problem.
 
 How does the modern memory management system is working then, that it takes
 so much time for the problem to surface ?

This problem has nothing to do with Linux (in the sense of the kernel used).

The malloc() routine is implemented in glibc. For its malloc() implementation 
glibc uses its own set of data structures to keep track of free memory chunks 
and the size of allocated chunks. Note that the free() routing accepts just 
one parameter, the pointer to free. glibc must then figure out what was the 
size of the memory chunk that this pointer points to.

Now, if you corrupt the internal glibc data structure, glibc won't notice 
until you try to call one of malloc(), free(), etc.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Israeli website on Linux: beer-sheva.muni.il

2012-01-25 Thread Baruch Siach
Hi Dotan,

On Wed, Jan 25, 2012 at 09:23:54AM +0200, Dotan Cohen wrote:
 Thanks, all. On Kubuntu (Firefox and Chrome) cannot reach the site
 with www.* or without. I am certain that the Windows machine was not
 using a cache as I was able to register the kids for kindergarten.
 
 I note that the Linux machine is connecting with Bezeq Beinleumi and
 the Windows machine with Hot (neighbour's wifi, with permission).
 Those who can connect, which ISP (not infrastructure) are you using?
 Those who cannot connect, which ISP are you using?

I can connect to port 80 of 147.236.237.102 from 012 and Cellcom. A connection 
attempt from BBL failed (connection timeout).

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Israeli website on Linux: beer-sheva.muni.il

2012-01-24 Thread Baruch Siach
Hi Dotan,

On Wed, Jan 25, 2012 at 08:38:22AM +0200, Dotan Cohen wrote:
 Can anyone reach beer-sheva.muni.il on Linux? I tried in Chrome and in
 Firefox, I get a timeout as if the server is not running. When I try
 in Firefox on the wife's Windows7 laptop, the site comes right up. I
 have not tried to spoof a Windows UI string, but can anyone confirm
 that the site isn't responding to Linux browsers?

http://www.beer-sheva.muni.il works for me. I'm on current Debian testing with 
Iceweasel (re-branded Firefox) 8.0.

baruch

-- 
 http://baruch.siach.name/blog/  ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Somewhat OT: MythTV / DVB in Israel

2012-01-13 Thread Baruch Siach
Hi Shachar,

On Fri, Jan 13, 2012 at 11:50:42AM +0200, Shachar Shemesh wrote:
 On 01/12/2012 02:27 PM, Udi Finkelstein wrote:
  yielding about 30% higher bitrate for the same bandwidth
 Complete and utter nitpicking.

Some more nitpicking.

 Bitrate is the number of bits per second (usually measured in kilo bits
 per second, or kbps, or sometimes mbps). This means that bit rate and
 bandwidth are, for all practical purposes, one and the same.

Not exactly. Bandwidth is a signal processing term. Udi, thus, refers to the 
spectral bandwidth. See 
http://en.wikipedia.org/wiki/Bandwidth_%28signal_processing%29.

 What you (probably) meant to say was that the new encoding allows
 transferring the same video quality for 30% less bit rate.

I think Udi meant to say that with the new encoding you can have 30% more bps, 
or digital bandwidth, while using the same spectral bandwidth, or RF 
bandwidth.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: search for vnc client with ultravnc filesystem support.

2011-11-20 Thread Baruch Siach
Hi Boris,

On Fri, Nov 18, 2011 at 12:34:56PM +0200, Boris shtrasman wrote:
 Could anyone suggest a vnc client that support ultravnc file transfer
 that can run on debian ?
 Checked already krdc , gtkvncviewer they didn't support.
 
 Also the app should be with some open source license.

According to http://www.karlrunge.com/x11vnc/ssvnc.html, ssvnc support 
UltraVNC File Transfer via an auxiliary Java helper program. ssvnc is a 
Debian package.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A good Linux kernel vintage?

2011-11-16 Thread Baruch Siach
Hi Eli,

On Wed, Nov 16, 2011 at 05:19:16PM +0200, Eli Billauer wrote:
 What I would like to hear, is if someone can point at a certain
 kernel version, which is well-known to be a success. One that is, in
 retrospective, free from any serious bugs (such as the one mentioned
 above).
 
 Any recommendations?

If you look for stability, and you can stand its old age, I'd recommend kernel 
version 2.6.32. This version is the base for enterprise versions of both 
RedHat and SuSE distributions, as well as Debian and Ubuntu LTS. The -longterm 
kernel branch maintains v2.6.32 (now at v2.6.32.48, from last week), and will 
continue to do so for at least a few years to come.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: make_ext3fs?

2011-11-14 Thread Baruch Siach
Hi Shachar,

On Tue, Nov 15, 2011 at 08:01:21AM +0200, Shachar Shemesh wrote:
 Android uses a tool called make_ext4fs. You give it a file system size
 and a directory, and it creates a file of the specified size that
 contains the content of the directory as an EXT4 file system (for
 loopback mount or dd purposes).
 
 I have STFW, but have been unable to find such a tool for EXT3 or below.
 Is anyone aware of such a tool readily available?

Just fetch genext2fs from your local Debian mirror.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: make_ext3fs?

2011-11-14 Thread Baruch Siach
Hi Nadav,

On Tue, Nov 15, 2011 at 09:26:03AM +0200, Nadav Har'El wrote:
 On Tue, Nov 15, 2011, Shachar Shemesh wrote about make_ext3fs?:
  Android uses a tool called make_ext4fs. You give it a file system size
  and a directory, and it creates a file of the specified size that
  contains the content of the directory as an EXT4 file system (for
  loopback mount or dd purposes).
 
 I don't know of a specific tool like this, but it sounds like something
 which can easily be done with a few line shell script.

[snip]

The advantage of genext2fs over a fsck wrapper is that it lets you create 
device nodes in the ext2 image without having root privileges. This feature is 
very convenient when generating root filesystem images.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: FSF Campaign against Microsoft's Plan to Enforce Secure Boot

2011-10-25 Thread Baruch Siach
Hi Amit,

On Tue, Oct 25, 2011 at 05:37:29PM +0200, Amit Aronovitch wrote:
 On Mon, Oct 24, 2011 at 1:56 AM, Amos Shapira amos.shap...@gmail.comwrote:
  I didn't follow the detail but a few weeks ago this made a noise on
  Slashdot and as far as I'm aware Microsoft issued a statement which
  calmed down the activists and it became a none-issue. I didn't follow
  it closely so I might be wrong.
 
 Can you help locating the MS statement that you describe?

The MS response on this issue is at 
http://blogs.msdn.com/b/b8/archive/2011/09/22/protecting-the-pre-os-environment-with-uefi.aspx.

Matthew then responded to this at http://mjg59.dreamwidth.org/6503.html.

baruch

 Some relevant details, described in Mathew Garett's post (thanks Tzafrir for
 the link), and some of the replies there:
 
 1. Problems with the proposed UEFI boot standard boil down to the fact that
 it lacks any means to allow the *owner of the hardware* to edit the list of
 trusted keys (load new keys, delete old ones).
 
 2. It seems to me that some aspects of this are in fact a security issue,
 which should also be in the interest of Microsoft to solve (e.g. they would
 probably want some means to recover in case one of their keys get stolen).
 
 3. Some solution to the problem (a mechanism for loading keys from specially
 formatted removable media) will be (is being) suggested by Garrett to UEFI
 during this week's plugfest http://www.uefi.org/events/
 
 4. Readers of this group should be interested to know that this solution
 (whatever other advantages/disadvantages it might have) would allow you to
 end up being able to boot kernels (or bootloaders) that you compiled
 yourself and signed with your own private key.
 
 Hence: if that MS statement contained some indication that Microsoft would
 support such a solution, indeed I see no serious reason to worry.
 Either way, we should follow closely for reports from the plugfest
 conclusions next week.

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Newer gcc swallow version control keywords

2011-10-17 Thread Baruch Siach
Hi Oleg,

On Mon, Oct 17, 2011 at 06:29:58PM +0200, Oleg Goldshmidt wrote:
...
 Now, put the above line in a C or C++ file, say foo.cc, and do the 
 following:
 
 $ g++ -g -O2 foo.cc -c -o foo.o
 $ ident foo.o
 foo.o:
  $Id: foo.cc 673 2011-10-17 09:48:11Z oleg $
 
 This works up to and including gcc 4.4, but it does not work with gcc
 4.5.1 or gcc 4.6.1 (the ident part does not show any keywords). The
 reason seems to be that the optimizer realizes that the static const
 is not used and eliminates it (remove -O2 and ident works fine).

The -O2, as well as -O and -Os, gcc options enable a set of specific 
optimizations that can each be turned off. The full list is at 
http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Optimize-Options.html. Just go 
over this list and disable each optimization, until you find the one removing 
your static string.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: looking for an embedded linux hw.

2011-10-05 Thread Baruch Siach
Hi Erez,

On Wed, Oct 05, 2011 at 09:53:02AM +0200, Erez D wrote:
 In the sheevaplug (actually i tested the dockstar).
 i got the dockstar for 50USD in israel (used it as an eval board)
 it has a 1GB ethernet, i read reports saying it is able to acheve actual
 around 320Mbps rates as a router.
 i was able to utilize it's serial port at 16Mbps. it is not the 30Mbps i
 wanted, but will do for now.

Wow. I didn't know that these rates are at all possible with a regular serial 
port. Did you do any special kernel modifications for this? Or is the BOTHER 
thing from include/asm-generic/termbits.h enough to make it just work?

What limitation prevented you from doing 30Mbps, if I may ask?

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: changes-only filesystem

2011-09-25 Thread Baruch Siach
Hi Erez,

On Sun, Sep 25, 2011 at 01:19:18PM +0300, Erez D wrote:
 There used to be a filesystem which one would mount over a read-only
 filesystem, and that filesystem would only hold the changes.
 
 anyone remembers which filesystem it was ?

See http://en.wikipedia.org/wiki/UnionFS. This feature is not in the mainline 
Linux kernel yet. See also http://lwn.net/Kernel/Index/, under 
Filesystems/Union.

baruch


-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Palm to Android via Linux

2011-06-01 Thread Baruch Siach
Hi Mordecha,

On Wed, Jun 01, 2011 at 10:24:22AM +0300, Mordecha Behar wrote:
 '\n' isn't a newline everywhere?
 Or even '\r'?

No. See http://en.wikipedia.org/wiki/Newline.

baruch

 On Wed, Jun 1, 2011 at 10:22 AM, shimi linux...@shimi.net wrote:
  2011/6/1 Mordecha Behar mordecha.be...@mail.huji.ac.il
 
  I've encountered the opposite problem.
  Files I create in a Linux text editor (Kwrite) don't open properly in
  Windows Notepad. I get the entire file on one line.
  Maybe there's something strange going on behind the scenes in KDE?
 
 
 
  That's something else and relates to the way Unix and Windows define
  newline.
 
  You could run your file through the unix2dos utility prior to moving it to
  Windows, and it will most probably solve your issue.
 
  Alternatively, if you'll be using Kate (which I think is better than
  KWrite), you have Tools - End of Line - UNIX (and you can change there to
  Windows/DOS)

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: MS buys Skype - will it support Linux

2011-05-11 Thread Baruch Siach
Hi Nadav,

On Wed, May 11, 2011 at 10:10:28AM +0300, Nadav Har'El wrote:
 On Wed, May 11, 2011, Amos Shapira wrote about MS buys Skype - will it 
 support Linux:
  In case this haven't hit your newspad yet:
  http://blogs.skype.com/en/2011/05/microsoft_will_acquire_skype.html
  
  Any ideas on what it implies for none-Windows platform support?
 
 I am not aware of *any* Microsoft product that is officially supported on
 Linux.

Microsoft do support Linux on their Hyper-V product.

http://www.microsoft.com/windowsserver2008/en/us/hyperv-supported-guest-os.aspx

I know, technically it is not running _on_ Linux, but still. See also 
drivers/staging/hv in your local kernel sources tree.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: The riddle of atomic data transfer from process A to process B

2011-04-13 Thread Baruch Siach
Hi Omer,

On Wed, Apr 13, 2011 at 04:07:42PM +0300, Omer Zak wrote:
 The system has several such processes, so it is desirable to have an
 inter-process mechanism having the absolute minimum overhead for
 unidirectional data transfers from measuring processes (like process M)
 to action taking processes (such as process A).

[snip]

 The riddle:
 1. If the operating system being used is Linux, what other mechanisms
 (besides turning off interrupts) are available to single-processor
 systems to accomplish this?
 2. If the system has a multi-core processor or several processors, which
 low overhead synchronization method can be used to accomplish this?

You may try the Userspace RCU library, http://lttng.org/urcu. See also 
http://lwn.net/Articles/369567/ for a discussion about optimizing the 
expensive memory barriers.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Checkpoint Endpoint Security VPN with linux

2011-03-21 Thread Baruch Siach
Hi Shachar,

On Mon, Mar 21, 2011 at 04:51:43AM +0200, Shachar Shemesh wrote:
 On 20/03/11 23:49, Elazar Leibovich wrote:
 Yeah, but as your probably know, VPN is used in practice to
 connect to your workstation from your laptop
 
 And VPN solution could offer NAT, in fact a shallow Google
 search[1] offers exactly the same solution.
 
 Is there something I'm missing here?
 
 I think so.
 
 Instead of me trying to explain it to you, why don't you just try to
 draw the network topology you think will solve the problem. I
 believe that will give you the answer you are seeking.

A VPN client may do one-to-one NAT of one (or more) remote hosts, and map 
these hosts to a netmask that does not interfere with local host's routing 
table.  I'm not sure whether there is such a VPN client, but it is still a 
theoretical solution to this problem.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: partly ot: gvim hebew is inverted (at least in xp).

2011-03-10 Thread Baruch Siach
Hi vor...@yahoo.com,

On Thu, Mar 10, 2011 at 02:51:18AM -0800, vor...@yahoo.com wrote:
 - Original Message - 
 From: Baruch Siach bar...@tkos.co.il 
 
 Even emacs doesn't do BiDi (yet). Adding BiDi support makes the code much 
 more 
 complicated. 
 
 Even...??? are you starting a holy war :-) 
 Emacs-24.0.50 installed from the git-repository does it OK, AFAIKS. 
 More at: 
 http://beresheit.blogspot.com/2010/07/hebrew-and-bidi-text-in-emacs24.html 

Emacs 24.0.50 is a development version. That's why I added (yet). Once 24.1 
is released it should contain BiDi support, thanks to the continued work of 
Eli Zaretskii.

baruch


-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: partly ot: gvim hebew is inverted (at least in xp).

2011-03-03 Thread Baruch Siach
Hi Erez,

On Thu, Mar 03, 2011 at 10:44:15AM +0200, Erez D wrote:
 As this is not linux related, but foss related (gvim) - this is partly ot.
 
 I try to use gvim to write hebrew, and my hebrew is inverted.
 if i then edit it with notepad - the hebrew is ok,
 
 so i guess gvim displays the hebrew incorrectly.
 
 any idea on fixing that ?

Vim doesn't do BiDi logical to visual reordering. For some partial workarounds 
see the hebrew.txt document 
(http://vimdoc.sourceforge.net/htmldoc/hebrew.html).

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: partly ot: gvim hebew is inverted (at least in xp).

2011-03-03 Thread Baruch Siach
Hi Erez,

On Thu, Mar 03, 2011 at 11:26:46AM +0200, Erez D wrote:
 On Thu, Mar 3, 2011 at 10:57 AM, Baruch Siach bar...@tkos.co.il wrote:
  On Thu, Mar 03, 2011 at 10:44:15AM +0200, Erez D wrote:
   As this is not linux related, but foss related (gvim) - this is partly
  ot.
  
   I try to use gvim to write hebrew, and my hebrew is inverted.
   if i then edit it with notepad - the hebrew is ok,
  
   so i guess gvim displays the hebrew incorrectly.
  
   any idea on fixing that ?
 
  Vim doesn't do BiDi logical to visual reordering. For some partial
  workarounds
  see the hebrew.txt document
  (http://vimdoc.sourceforge.net/htmldoc/hebrew.html).
 All these seems like patches, but none of them is really a proper solution
 strange that vim doesn't support bidi.

Even emacs doesn't do BiDi (yet). Adding BiDi support makes the code much more 
complicated.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: IPv6

2011-02-04 Thread Baruch Siach
Hi Uri,

On Fri, Feb 04, 2011 at 11:30:52AM +0200, Uri Even-Chen wrote:
 On Fri, Feb 4, 2011 at 10:15, shimi linux...@shimi.net wrote:
 By the way, I wonder what Wikipedia will do with IPv6 addresses? Will
 they do the same they are doing with IPv4 (save the IP of the user who
 edited pages)?

See http://wikitech.wikimedia.org/view/IPv6_deployment.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Script to create an image from text?

2011-02-02 Thread Baruch Siach
Hi Omer, Amichai,

On Wed, Feb 02, 2011 at 04:07:57PM +0200, Omer Zak wrote:
 Make sure that your Web server has Perl, ImageMagick and the CPAN module
 Image::Magick.
 Then $image-Annotate() should do what you need.
 PHP probably has an equivalent module, but I didn't check it.

That would be GD.

baruch

 On Wed, 2011-02-02 at 15:39 +0200, Amichai Rotman wrote:
  I am looking for a script to be used at a web site that will accept
  certain details as input (say: Name, Phone, etc.) and then convert it
  to a jpeg image file that will include a template (say: A diploma
  graphic) and the text entered incorporated...
  
  I hope I was clear enough

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: total uptime between shutdowns

2011-02-01 Thread Baruch Siach
Hi Omer, Tom,

On Tue, Feb 01, 2011 at 10:18:41AM +0200, Omer Zak wrote:
 2. The 'uptime' command gives the uptime since last reboot.  You may
 want to add 'uptime  /var/log/my_uptimes_log.txt' to the shutdown
 script, and rotate  process, using a custom Perl script,
 the /var/log/my_uptime_log.txt file each month to total the uptime in
 that month.

Another option: parse the output of last.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: small linux hardware

2011-01-10 Thread Baruch Siach
Hi Erez,

On Mon, Jan 10, 2011 at 10:08:52AM +0200, Erez D wrote:
 I am looking for a linux hardware which would be small, low power and cheep
 
 I found the telit GE863-PRO (pdf:
 http://www.telit.com/module/infopool/download.php?id=725 )
 which is actually a gprs module + linux on arm9. it is 41.4x31.4x3.6 mm in
 size and i can get it in 50$ (in quantities)
 
 however as i do not need the gprs module, i thought i could find something
 smaller and cheaper...
 
 anyone knows of such a hardware ?

See http://www.mail-archive.com/linux-il@cs.huji.ac.il/msg53770.html for some 
pointers from Marc.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: small linux hardware

2011-01-10 Thread Baruch Siach
Hi Erez,

On Mon, Jan 10, 2011 at 10:08:52AM +0200, Erez D wrote:
 I am looking for a linux hardware which would be small, low power and cheep
 
 I found the telit GE863-PRO (pdf:
 http://www.telit.com/module/infopool/download.php?id=725 )
 which is actually a gprs module + linux on arm9. it is 41.4x31.4x3.6 mm in
 size and i can get it in 50$ (in quantities)
 
 however as i do not need the gprs module, i thought i could find something
 smaller and cheaper...
 
 anyone knows of such a hardware ?

See also http://free-electrons.com/community/hardware/boards/ for many 
manufacturers and boards. One of the (http://www.glomationinc.com/) sells an 
Atmel based board for $49, although it comes with a somewhat dated kernel 
(v2.6.25).

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: gitolite vs. gitosis

2010-12-10 Thread Baruch Siach
Hi Eran,

On Fri, Dec 10, 2010 at 09:09:38AM +0200, Eran Levy wrote:
 For that purpose, you can use either GIT or Mercurial.
 Both scm are simple and can help you with such simple workflows.

Well, this is the first time I see anyone describing git as simple. My 
experience with git is that git is as far from simple as can be.

baruch

 Im using Mercurial for a much complicated workflows while implementing a
 system at a new customer site.
 also both of them have very good tutorials, I like Mercurial tutorial, since
 it provides you with workflow suggestions.
 
 On Thu, Dec 9, 2010 at 7:45 AM, Omer Zak w...@zak.co.il wrote:
 
  Several weeks ago I asked for opinions about using git vs. Mercurial for
  version-controlling a Website (http://www.whylinuxisbetter.net/ Hebrew
  translation, to be specific; I want to allow the project participants to
  modify and upload the Hebrew translation, yet require any changes to be
  committed to a version control system, in order to prevent vandalism).
 
  Now I am reading about git, and encountered gitolite and gitosis.
  Is there anyone with experience with those applications and can
  recommend whether to use one of them and if yes, which?
 
  Thanks,
  --- Omer

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vim q

2010-11-10 Thread Baruch Siach
Hi Erez,

On Wed, Nov 10, 2010 at 10:08:32AM +0200, Erez D wrote:
 thank you all for the reply
 
 i decided to set ts,sw,et etc... in vimrc instead for security resons.
 although this implicate all types of files, i can ususally overcome it
 like pressing ^V-TAB in a makefile instead of a TAB

Or add the following to your .vimrc instead:

au FileType make set noexpandtab

baruch

 On Tue, Nov 9, 2010 at 10:25 AM, ik ido...@gmail.com wrote:
 
  It's a security problem with Windows version.
  VIM disabled this feature because people used to write code there and doing
  code execution when you open a text file.
 
  Ido
 
  LINESIP websites:
  http://www.linesip.com
  http://www.linesip.co.il
 
 
 
 
  2010/11/9 Erez D erez0...@gmail.com
 
 
  the following line:
  // vim: ts=2 sw=2 et
 
  seems to work under windows in gvim, but not in linux (at least not under
  vim over xterm).
 
  how can i change the syntax to make it work in all of linux/windows/cygwin
  in gvim and vim/xterm ?
 
 
  thanks
  erez.
 
 
  ___
  Linux-il mailing list
 
  Linux-il@cs.huji.ac.il
  http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
 
 
 

 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vim q

2010-11-10 Thread Baruch Siach
On Wed, Nov 10, 2010 at 10:25:29AM +0200, Erez D wrote:
 On Wed, Nov 10, 2010 at 10:17 AM, Baruch Siach bar...@tkos.co.il wrote:
  On Wed, Nov 10, 2010 at 10:08:32AM +0200, Erez D wrote:
   thank you all for the reply
  
   i decided to set ts,sw,et etc... in vimrc instead for security resons.
   although this implicate all types of files, i can ususally overcome it
   like pressing ^V-TAB in a makefile instead of a TAB
 
  Or add the following to your .vimrc instead:
 
  au FileType make set noexpandtab
 
 what does that do ?

Cancels tab expansion for files that are identified as makefiles.

baruch

  baruch
 
   On Tue, Nov 9, 2010 at 10:25 AM, ik ido...@gmail.com wrote:
  
It's a security problem with Windows version.
VIM disabled this feature because people used to write code there and
  doing
code execution when you open a text file.
   
Ido
   
LINESIP websites:
http://www.linesip.com
http://www.linesip.co.il
   
   
   
   
2010/11/9 Erez D erez0...@gmail.com
   
   
the following line:
// vim: ts=2 sw=2 et
   
seems to work under windows in gvim, but not in linux (at least not
  under
vim over xterm).
   
how can i change the syntax to make it work in all of
  linux/windows/cygwin
in gvim and vim/xterm ?
   
thanks
erez.

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vim q

2010-11-10 Thread Baruch Siach
Hi Erez,

On Wed, Nov 10, 2010 at 03:31:12PM +0200, Erez D wrote:
 On Wed, Nov 10, 2010 at 10:35 AM, Baruch Siach bar...@tkos.co.il wrote:
  On Wed, Nov 10, 2010 at 10:25:29AM +0200, Erez D wrote:
   On Wed, Nov 10, 2010 at 10:17 AM, Baruch Siach bar...@tkos.co.il
  wrote:
On Wed, Nov 10, 2010 at 10:08:32AM +0200, Erez D wrote:
 thank you all for the reply

 i decided to set ts,sw,et etc... in vimrc instead for security
  resons.
 although this implicate all types of files, i can ususally overcome
  it
 like pressing ^V-TAB in a makefile instead of a TAB
   
Or add the following to your .vimrc instead:
   
au FileType make set noexpandtab
   
   what does that do ?
 
  Cancels tab expansion for files that are identified as makefiles.
 
 how would be the inverse syntax (i.e. expand type for all that is not
 makefile) ?

set expandtab
au FileType make set noexpandtab

baruch

 On Tue, Nov 9, 2010 at 10:25 AM, ik ido...@gmail.com wrote:

  It's a security problem with Windows version.
  VIM disabled this feature because people used to write code there
  and
doing
  code execution when you open a text file.
 
  Ido
 
  LINESIP websites:
  http://www.linesip.com
  http://www.linesip.co.il
 
 
 
 
  2010/11/9 Erez D erez0...@gmail.com
 
 
  the following line:
  // vim: ts=2 sw=2 et
 
  seems to work under windows in gvim, but not in linux (at least
  not
under
  vim over xterm).
 
  how can i change the syntax to make it work in all of
linux/windows/cygwin
  in gvim and vim/xterm ?
 
  thanks
  erez.

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vim q

2010-11-10 Thread Baruch Siach
Hi Shachar,

On Wed, Nov 10, 2010 at 10:41:36PM +0200, Shachar Shemesh wrote:
 On 10/11/10 10:17, Baruch Siach wrote:
 Hi Erez,
 
 On Wed, Nov 10, 2010 at 10:08:32AM +0200, Erez D wrote:
 thank you all for the reply
 
 i decided to set ts,sw,et etc... in vimrc instead for security resons.
 although this implicate all types of files, i can ususally overcome it
 like pressing ^V-TAB in a makefile instead of a TAB
 Or add the following to your .vimrc instead:
 
 au FileType make set noexpandtab
 THANK YOU

You're welcome.

 Now, I just need to see how to make vi disable tab expansion for C
 files if, and only if, I am editing the Linux kernel source code

My solution is to put a local .vimrc at the Linux tree top level directory 
with:

set noexpandtab
set ts=8
set shiftwidth=8

and set 'exrc' in my main .vimrc. To mitigate the security implications of 
this change I also set 'secure'.

The limitation of this solution is that I must edit kernel files with the top 
directory as my PWD.

baruch

 Either way, I edit makefiles at the same time I am editing
 C/C++/Java files, but when I'm editing kernel files, that's all I'm
 doing. As such, this is a much less urgent matter for me.
 
 Shachar

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: vim q

2010-11-09 Thread Baruch Siach
Hi Erez,

On Tue, Nov 09, 2010 at 10:13:26AM +0200, Erez D wrote:
 the following line:
 // vim: ts=2 sw=2 et
 
 seems to work under windows in gvim, but not in linux (at least not under
 vim over xterm).
 
 how can i change the syntax to make it work in all of linux/windows/cygwin
 in gvim and vim/xterm ?

Do you have the modeline option enabled? In Debian the default of the modeline 
option is off.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: looking to buy ARM servers

2010-11-02 Thread Baruch Siach
Hi Muli,

On Tue, Nov 02, 2010 at 10:14:43AM +0200, Muli Ben-Yehuda wrote:
 I am looking to purchase ARM servers, preferably with the new
 Cortex-A15 processors.

The Cortex-A15 core has just been announced by ARM. Don't expect to see actual 
Cortex-A15 based chips in less than a year.

 This is to run general purpose server
 workloads, so I would like to buy full integrated servers rather than
 build them up myself from embedded boards. Any ideas who sells such
 beasties in Israel?

Are you interested in processing horsepower, or storage?

The closest thing to server in the ARM world is probably a NAS box. See 
arch/arm/mach-kirkwood/Kconfig in a recent kernel for a list of some things, 
including QNAP and LaCie offerings. Since these are all ARMv5 chips with VIVT 
cache, their processing capabilities are seriously limited.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: looking to buy ARM servers

2010-11-02 Thread Baruch Siach
Hi Muli,

On Tue, Nov 02, 2010 at 05:30:12PM +0200, Muli Ben-Yehuda wrote:
 On Tue, Nov 02, 2010 at 05:11:34PM +0200, Baruch Siach wrote:
  Are you interested in processing horsepower, or storage?
 
 Mostly processing, although storage is also interesting.

Then you should go for the Coretx-A8/A9 based chips. You can have a 
Beagleboard (TI OMAP based) for about $150. I don't know who sells them in 
Israel though.

  The closest thing to server in the ARM world is probably a NAS
  box. See arch/arm/mach-kirkwood/Kconfig in a recent kernel for a
  list of some things, including QNAP and LaCie offerings. Since these
  are all ARMv5 chips with VIVT cache, their processing capabilities
  are seriously limited.
 
 Thanks for the tip. Any recommendation on where to buy on these boards
 in Israel?

I have no personal experience, bug Zap is you friend.

QNAP: http://www.zap.co.il/models.aspx?sog=c-harddrivedb187326=1286371
LaCie: http://www.zap.co.il/models.aspx?sog=c-harddrivedb187326=1570185

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Small debian based server distribution

2010-10-27 Thread Baruch Siach
Hi Elazar

On Wed, Oct 27, 2010 at 11:12:20AM +0200, Elazar Leibovich wrote:
 The default installation of Debian, without X, is about 600-800 Megabytes.
 I'm looking for a debian compatible distribution (so that I'll be able to
 use debian's security updates, and enjoy the breadth of packages etc) which
 will be small and will contain only the bare minimum for a functional server
 (say, sshd and busybox). I wish it'll be as small as possible (say, ~100Mb).

You may try Emdebian Grip which should be binary compatible with Debian.  See 
http://www.emdebian.org/ and http://www.emdebian.org/grip/.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Arduino in Israel

2010-10-21 Thread Baruch Siach
Hi Guy,

On Thu, Oct 21, 2010 at 03:23:10PM +0200, Guy Corem wrote:
 http://www.arduino.co.il/

whois arduino.co.il says:

remarks:  Domain not renewed. Being revoked.
validity: 31-08-2010

baruch

 On Thursday, October 21, 2010, Gabor Szabo szab...@gmail.com wrote:
  hi,
 
  is there any place in Israel where one could buy hardware for Arduino
  http://arduino.cc/ ?

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Real domain name has higher latency than DynDNS?

2010-10-04 Thread Baruch Siach
Hi Amos, Dotan,

On Tue, Oct 05, 2010 at 02:33:07PM +1100, Amos Shapira wrote:
 On 5 October 2010 07:51, Dotan Cohen dotanco...@gmail.com wrote:
  An associate has a server in Germany with both a real example.eu
  domain name (nameservers are on the server itself) and also a DynDNS
  address pointed at one of the server's IP addresses. The latency to
  the real example.eu domain is noticeably higher than that to the
  DynDNS address, both in browsing the site and in pings (of course I
  clear cache and whatnot). What could cause this? Might BIND on the
  server not be configured well?
 
 Have you tried to time the DNS queries?

That is, run

dig +trace example.eu

baurch

 Maybe DynDNS's DNS servers are faster to respond.

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: codec problem

2010-09-26 Thread Baruch Siach
Hi Shlomo,

On Fri, Sep 24, 2010 at 04:01:22PM +0200, Shlomo Solomon wrote:
 I just noticed some more info about the missing sym links:
 
 [solo...@shlomo1 ~]$ locate libopencore
 /usr/lib/libopencore-amrnb.so.0.0.2
 /usr/lib/libopencore-amrwb.so.0.0.2
 /usr/share/doc/libopencore-amr0
 /usr/share/doc/libopencore-amr0/LICENSE
 /usr/share/doc/libopencore-amr0/README
 
 The missing links are to:
  libopencore-amrnb.so.0 = not found
  libopencore-amrwb.so.0 = not found
 That seems to me to be a different version, but why and how do I fix it? 

Try running 'ldconfig', this should update the links.

baruch

 On Friday, September 24, 2010, Shlomo Solomon wrote:
  On Friday, September 24, 2010, Hetz Ben Hamo wrote:
   Try to play with mplayer, and see if you get any errors.
  
  [solo...@shlomo1 ~]$ mplayer /data1/video/Dark.Blue.S02E03.HDTV.XviD-LOL
  mplayer: error while loading shared libraries: libopencore-amrnb.so.0:
  cannot open shared object file: No such file or directory
  
  libopencore is installed
  [solo...@shlomo1 ~]$ rpm -qa|grep libopencore
  libopencore-amr0-0.1.2-1plf2010.1
  
  BUT
  
  [solo...@shlomo1 ~]$ ldd /usr/bin/mplayer
  linux-gate.so.1 =  (0xe000)
  libncurses.so.5 = /lib/libncurses.so.5 (0xb779d000)
   snip snip snip  
  libbs2b.so.0 = /usr/lib/libbs2b.so.0 (0xb6cae000)
  libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0xb6bbd000)
  libopencore-amrnb.so.0 = not found
  libopencore-amrwb.so.0 = not found
  libdv.so.4 = /usr/lib/libdv.so.4 (0xb6b92000)
  libxvidcore.so.4 = /usr/lib/libxvidcore.so.4 (0xb6a7b000)
   snip snip snip  
  
  
  so there seem to be a couple of sym links missing.
  
   Also, which graphics card do you have?
  
  I have an on-board GeForce 6100, but that shouldn't be the problem because
  everything used to work (until recently). Also, I can't see the rip/encode
  problem being connected to a graphics card.
  
   Hetz
   
   2010/9/24 Shlomo Solomon shlomo.solo...@gmail.com
   
Already installed.
[solo...@shlomo1 ~]$ rpm -qa|grep libdvdcss
libdvdcss2-1.2.10-2plf2010.0

I still think it's a codec problem because, as I wrote, I aso can't
play video
files on gxine, xine, kaffeine and others. What I forgot to write
earlier is
that in those programs, all I get is audio.

On Friday, September 24, 2010, Hetz Ben Hamo wrote:
 Hi,
 
 When it comes to DVD, codecs are not enough, you need CSS support,

install

 libdvdcss (1.1 or above).
 
 Hetz
 
 2010/9/24 Shlomo Solomon shlomo.solo...@gmail.com
 
  A couple of months ago, gxine and kaffeine stopped working, but
  since Dragon
  Player still played OK, I didn't really investigate the problem.
  
  Today, I discovered that I also can't rip and encode a DVD (tried
  dvd::rip, acidrip and k3b).
  
  As part of my attempt to find the reason for these problems, I

installed

  xine-
  ui and when I try to play an .avi file, I get the following error:
  
  Video Codec: XviD (XVID) null
  
  All the usuall codecs (including XVID) are installed
  
  [solo...@shlomo1 ~]$ rpm -qa|grep xvid
  xvidcap-1.1.7-2plf2010.0
  libxvid4-1.2.2-1plf2010.0
  
  [solo...@shlomo1 ~]$ rpm -qa|grep codec
  win32-codecs-1.9-3plf2010.1
  jakarta-commons-codec-javadoc-1.4-1mdv2010.1
  helixplayer-helix-codecs-1.0.9-5mdv2009.0
  jakarta-commons-codec-1.4-1mdv2010.1
  real-codecs-1.2-5plf2010.1
  xanim-codecs-1.0-7plf2010.1
  
  
  
  What am I missing???

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: linux games for kids

2010-09-20 Thread Baruch Siach
Hi Nadav,

On Mon, Sep 20, 2010 at 02:21:31PM +0200, Nadav Har'El wrote:
 On Mon, Sep 20, 2010, sara fink wrote about Re: linux games for kids:
  Looks good. thanks. The light edition is for kids.
 
 Looking at the list (http://live.linux-gamers.net/?s=games), it would appear
 that most of them are not suitable to the level of 4 year-olds (unless
 your 4 year old is much more advanced than mine :-)).
 
 Does anybody know a site that lists or reviews Linux children games and their
 appropriateness for different ages? I'm talking about games for small 
 children,
 say ages 2-5, when the age really matters.
 
 Or can anyone recommend a specific game for a 4 year old?

My 4 year old is having fun with the gcompris (http://gcompris.net/) 
collection of educational games. Not all of them are for 4 year olds, but may 
are.

Debian package name: gcompris.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux kernel drivers and glibc on MS-Windows? (Running Linux software under Windows)

2010-09-13 Thread Baruch Siach
Hi Omer,

On Tue, Sep 14, 2010 at 02:08:06AM +0200, Omer Zak wrote:
 Short of a fully fledged virtual machine, what can be used to run Linux
 software, which accesses hardware such as USB devices (hence requiring
 some kernel drivers and stuff), under Windows?
 
 In other words, is there such a thing as a reverse Wine?

Well, the most direct reverse WINE is probably Cygwin, which emulates the 
Linux/POSIX API on Windows, although Cygwin can't run native Linux ELF 
binaries.  But if you need direct hardware access maybe coLinux 
(http://www.colinux.org) is the solution for you.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: com port list

2010-08-31 Thread Baruch Siach
Hi Erez,

On Tue, Aug 31, 2010 at 11:52:06AM +0300, Erez D wrote:
 I am looking for a simple way to know which serial ports i have.
 I want to have a list of all serial ports, either onboard, via usb, via
 bluetooth etc ...
 I'm looking for a better way than scanning /dev/ttyS* /dev/ttyUSB*
 /dev/usb/... etc ...
 
 
 In cygwin I just look under
 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/SERIALCOMM/
 is there somthing similiar in linux (probably somewhere in /proc) ?

Try /sys/class/tty/.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: smbfs problem

2010-08-08 Thread Baruch Siach
Hi Erez,

On Sun, Aug 08, 2010 at 08:13:44PM +0300, Erez D wrote:
 I try to mount a samba share on my ubuntu 9.10
 (it mounts and works ok on an XP machine)
 
 mount.smbfs //192.168.1.2/docs /tmp/mnt -o user=guest,password=
 
 it mounts ok, the i ls:
 
 cd /tmp/mnt
 ls -l
 
 -rwxr-xr-x 1 root root  946 2010-08-07 09:46 info.txt
 
 then i do:
 
 cat info.txt
 
 and i get:
 
 cat: info.txt: Permission denied
 
 any idea ?

Maybe the guest account doesn't have read access to the info.txt file on the 
XP machine? Wireshark may tell you more.

baruch


-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Configuring serial ports to keep their ttys* location

2010-07-13 Thread Baruch Siach
Hi Dotan,

On Tue, Jul 13, 2010 at 09:59:28AM +0300, Dotan Cohen wrote:
 On Ubuntu Linux we have many serial devices connected, they show in
 the udev log like this:
 
 KERNEL[1279002550.149087] add
 /devices/pci:00/:00:14.4/:03:06.0/tty/ttyS4 (tty)
 UDEV_LOG=3
 ACTION=add
 DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS4
 SUBSYSTEM=tty
 DEVNAME=ttyS4
 SEQNUM=1212
 MAJOR=4
 MINOR=68
 
 KERNEL[1279002550.149102] add
 /devices/pci:00/:00:14.4/:03:06.0/tty/ttyS5 (tty)
 UDEV_LOG=3
 ACTION=add
 DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS5
 SUBSYSTEM=tty
 DEVNAME=ttyS5
 SEQNUM=1213
 MAJOR=4
 MINOR=69
 
 KERNEL[1279002550.149116] add
 /devices/pci:00/:00:14.4/:03:06.0/tty/ttyS6 (tty)
 UDEV_LOG=3
 ACTION=add
 DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS6
 SUBSYSTEM=tty
 DEVNAME=ttyS6
 SEQNUM=1214
 MAJOR=4
 MINOR=70
 
 
 The SEQNUM is _not_ constant from boot to boot, therefore configuring
 the mount point per SEQNUM does not work. I am not sure if the
 KERNEL[1279002550.*] number is unique, is it supposed to be?

Seems like a timestamp:

$ date +%s
1279016515

So, it is unique, but probably not what you are looking for.

 If so, which udev rule would configure the mount points to be as they are 
 now on next boot as well?

What's the output of

udevadm info -a -p $(udevadm info -q path -n /dev/ttyS4)
udevadm info -a -p $(udevadm info -q path -n /dev/ttyS5)
udevadm info -a -p $(udevadm info -q path -n /dev/ttyS6)

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Why are the serial port numbers changing?

2010-07-08 Thread Baruch Siach
Hi Dotan,

On Thu, Jul 08, 2010 at 10:30:16PM +0300, Dotan Cohen wrote:
 On 8 July 2010 20:45, Hetz Ben Hamo het...@gmail.com wrote:
  IIRC correctly, it's due to the new features in Ubuntu (and Fedora): Each
  time you boot the machine, it re-maps everything, although most of the maps
  remains the same.
 
  You can, after the machine has finished booting, scan the tty for the new
  serial ports and use them whatever you like, since the /dev tree is being
  re-created every boot.
  Hetz
 
 Thanks. I have some scripts that depend on the device being found at a
 particular tty. How can I disable scanning so that I won't have to
 change the scripts? Or, how can I tell what device is on which tty in
 my scripts?

The right solution IMO is to use udev rules that instruct udev to create those 
tty devices at a persistent location. To get the full information you need to 
write these rules do something like the following for each tty device:

# udevadm info -a -p $(udevadm info -q path -n /dev/ttyXXX)

Then, use the info you get to write the rules according to 
http://reactivated.net/writing_udev_rules.html. (Note that udevinfo that's 
mention in this document is now 'udevadm info'). Put the udev rules in a file 
(say, '70-persistent-tty.rules') under /etc/udev/rules.d/, and you're done.

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


  1   2   >