A hack to get logging information from Alcatel ADSL Modem/router
(I know this is mostly-Linux unrelated, but some people here who use Alcatel moedm as a router, with Linux, can find it useful) While doing a routine telnet to my modem, I've discovered that you can get a remarkable amount of information regarding the activity of your modem, on the fly. This is important especially for those of us who need to update their dynamic IP on a dynamic DNS host server every time it is changed. I've proviously written a script that pulls the IP from the modem by running telnet, and let it run every 5 minutes (BTW, I also solved the problem with identd). But now, after discovering the logging information, I can write a daemon that waits for the modem to report the IP change. The logging is activated by connecting using TCP/IP to the modem (usually 10.0.0.138), and sending the 0x11 byte: #include #include #include #include #include int main() { int sock, rc; struct sockaddr_in sin = {0,}; char buf; sock = socket(AF_INET, SOCK_STREAM, 0); if (sock == -1) { perror("sock"); return -1; } sin.sin_family = AF_INET; sin.sin_port = htons(23); sin.sin_addr.s_addr = inet_addr("10.0.0.138"); rc = connect(sock, (struct sockaddr *)&sin, sizeof(sin)); if (rc != 0) { perror("connect"); return -1; } sleep(1); recv(sock, buf, sizeof(buf), 0); buf = 0x11; send(sock, &buf, 1, 0); dup2(sock, 0); execl("/bin/cat", "/bin/cat", NULL); return 0; } Running this while connecting to my ISP, I get on my side: --- Bit Swap Report (for line 0) CarrierNr Bi Old Bi New GiOld GiNew = == == = = 382 0 -14.5 -12.5 572 3 -14.5 -14.5 Results of bitswap algorithm : == Minimum noise margin: 17.1 dB (on carrier 56) Maximum noise margin: 25.8 dB (on carrier 78) Total gain power: 10.4 Nominal Gi : -12.0 dB Boost Gi: -12.0 dB --- RX BITSWAP REQUEST ... PILOT_ERASE ON PILOT_ERASE OFF done at sync 7 and symb 0 [0] E - : PPP_SET_ROUTE
Re: Connect to users terminal useing `screen`
On Thu, Jul 17, 2003 at 01:29:51PM +0200, RedBar0n wrote: > Hi List, > > I'm trying to monitor my user, I'm testing "screen". > > I can connect to the same user (if I started screen for user foo and then I login in > a second session as foo I can connect to the first foo session), but this thing > can't work if I "su - foo" ( I get an error "Cannot open your terminal '/dev/pts/0' > - please check" , prs/0 is my current tty), so I changing the permission to "777" on > this device, but I believe that there is more elegant way to do this ( connect to > user session as root without "su, chmod 777 /dev/pst/XXX etc...) > > P.S if there is more efficient/secure way to monitor users and help them, please > advise me :-) > Thanks, > Gili You can look into this util, ttysnoop: http://packages.debian.org/unstable/admin/ttysnoop.html -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: where did lvm module go in 2.6.0-test1 ?
On Tue, Jul 15, 2003 at 06:01:08PM +0300, Uri Itscowits wrote: > There is no specific line for lvm in the config && it doesn't compile any. >From thw '2.5 - what to expect' document (http://lwn.net/Articles/28765/): LVM2 - DeviceMapper. The LVM1 code got removed wholesale, and replaced with a much better designed 'device mapper'. - This is backwards compatable with the LVM1 disk format. - Device mapper does require new tools to manage volumes however. You can get these from ftp://ftp.sistina.com/pub/LVM2/tools/ -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Linux compatible wi-fi
On Wed, Jul 23, 2003 at 06:05:58PM +0300, Shay Elkin wrote: > There was a bit of wi-fi discussion on this list recently, and it made me want > to go wireless myself. > > I searched the various hardware vendors online, but all I seem to find are > D-Link DWL-650+ cards, which seem to be the only reasonably-priced 802.11b > cards imported to Israel. > > But those cards are based on TI chipset, for which exists a problematic (and > unsupported) binary driver, and a non-mature, reversed-enginereed open source > driver. The D-Link DWL-650+ (CardBus and PCI versions) works on Linux, with the reversed-enginereed open source driver. It had in fact, matured greatly in the last month. http://acx100.sourceforge.net It started working only two weeks ago, when I had a few E-Mail exchanges with the lead developer of the OSS driver, Andreas Mohr <[EMAIL PROTECTED]>. We have managed to find and debug an initialization problem in the driver (which also plagued the binary version) with my CardBus card. After doing a guided change suggested by Andreas, I finally got it to work. Although it seems to work OK, I am really not satisfied with my WiFi setup. Using a D-Link DWL-900AP+ access point, it seems that the wireless connection gets completely disconnected from 20 meters away, and at a 1 meter range - the link doesn't get any faster than 6Mbit/sec. What's the point of WiFi if I can't get upstairs to my room without losing the link? -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: OSS-IL Coverage on Captain Internet
On Sun, Apr 11, 2004 at 12:22:35PM +0200, Uri Sharf wrote: > Galit Yamini from Ha'aretz published two articles today: Yemini, AFAIK. > 1. Interview with Shoshana Forbes, Dan Aloni, YBA, Menu Livne, Ori Idan and > others. > http://www.haaretz.co.il/captain/pages/ShArtCaptain.jhtml?contrassID=11&subContrassID=0&itemNo=414521 > > 2. Review of coLinux with some cmmentry from Gartner-Israel. > http://www.haaretz.co.il/captain/pages/ShArtCaptain.jhtml?contrassID=11&subContrassID=0&itemNo=414520 > > Not very accurate, but makes an interesting reading in this context. The > briefing material for this articles can be found here: > http://linmagazine.co.il/book/view/335. Some "interviews" done for Galit > shortly before the meeting and it gives a more extensive overview. I can only see the second article on haaretzdaily.com. http://www.haaretzdaily.com/hasen/spages/414290.html Too bad, I was hoping they would translate the first article as well. -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: OSS-IL Coverage on Captain Internet
On Sun, Apr 11, 2004 at 02:19:18PM +0300, Gilad Ben-Yossef wrote: > On Sunday 11 April 2004 14:54, Dan Aloni wrote: > > On Sun, Apr 11, 2004 at 12:22:35PM +0200, Uri Sharf wrote: > > > Galit Yamini from Ha'aretz published two articles today: > > > > Yemini, AFAIK. > > > > > 1. Interview with Shoshana Forbes, Dan Aloni, YBA, Menu Livne, Ori > > > Idan and others. > > > http://www.haaretz.co.il/captain/pages/ShArtCaptain.jhtml?contrassI > > >D=11&subContrassID=0&itemNo=414521 > > > > > > 2. Review of coLinux with some cmmentry from Gartner-Israel. > > > http://www.haaretz.co.il/captain/pages/ShArtCaptain.jhtml?contrassI > > >D=11&subContrassID=0&itemNo=414520 > > > > > > Not very accurate, but makes an interesting reading in this > > > context. The briefing material for this articles can be found here: > > > http://linmagazine.co.il/book/view/335. Some "interviews" done for > > > Galit shortly before the meeting and it gives a more extensive > > > overview. > > > > I can only see the second article on haaretzdaily.com. > > > > http://www.haaretzdaily.com/hasen/spages/414290.html > > > > Too bad, I was hoping they would translate the first article as well. > > Actually, your picture stars on the print cover of today's Haaretz > economics section. This came in a surprise this morning, she didn't tell us about the intention to split the article. If I could, I'd kindly replace that picture with a Tux. > I don't know if you read Haaretz, but it's the first time since I read > Haaretz that I see someone there which isn't a high raking government > official or some corporate big shot. It's all part of Linus' plan to take over the world. -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Openmoko Group sale
Hey there, Anyone interested in joining an Israeli Openmoko Freerunner group sale? http://en.wikipedia.org/wiki/Openmoko http://wiki.openmoko.org/wiki/GroupSales Join the revolution :) -- Dan Aloni XIV, an IBM (R) company danaloni (at) il.ibm.com = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Openmoko Group sale
Dotan Cohen wrote: 2008/5/31 Lior Kaplan <[EMAIL PROTECTED]>: The device runs Linux, and thus should have Hebrew support. Language support is in the UI, not in the Linux kernel. However, I see that there is a Hebrew translation team, so I will try to contact them tomorrow and ask how far along the project is. I can help with the translation as well, so long as they accept patches. I am not a developer, so I will not maintain the patches myself without experienced help. The Openmoko software can run on an emulator, so we can potentially test and/or fix its Hebrew support even before we get the devices. -- Dan Aloni XIV, an IBM (R) company danaloni (at) il.ibm.com
Openmoko Group sale
Hey there, Anyone interested in joining an Israeli OpenMoko Freerunner group sale? http://en.wikipedia.org/wiki/Openmoko http://wiki.openmoko.org/wiki/GroupSales Join the revolution :) -- Dan Aloni XIV, an IBM (R) company danaloni (at) il.ibm.com = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: My initiative to detect worms that send spam
On Thu, Jun 10, 2004 at 12:55:04AM +0300, David Harel wrote: > Some time ago I asked this group about an idea of mine to track smtp > activity. >[snip] > The program /usr/local/mozilla/mozilla-bin pid 15914 > sends SMTP message using tcp Protocol to > Remote_Address 212.117.129.230 Very nice. > The program detects if you got X11 running (again looking for processes > in /proc but this time looking for the file cmdline) . In that case it > will use xmessage to send you the warning. otherwise it sends the > message to /dev/console. A better way would be using syslog. An about X11, prehaps it would be better if it uses some more sophisticated notification method like xnotify.py, which I described in my blog: http://www.livejournal.com/users/da_x/2972.html -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Wireless advice
On Tue, Jan 04, 2005 at 04:22:38PM +0200, Hetz Ben Hamo wrote: > > 2. What recommended PCMCIA cards are there that work with Linux? > > That really depends. I did a small research when I was working at > Softier on these issues, and I can recommend 3 solutions: > > A. If you want full open source (no binary only firmwares, binary only > modules) then you'll probably won't find something better then 11MBPS > based cards support (like Cisco's PCMCIA wi-fi cards). > B. Prism G series bases PCMCIA cards have good Linux support with > binary objects (think like NVidia's binary module which can be linked > to any linux kernel) and it can go up to 55MBPS on 802.11G. > C. If you don't mind a full binary only solution for Linux with tons > of wi-fi PCMCIA cards (and some PCI cards) then you should try > LinuxAnt's DriverLoader which works very nice. Note - you'll need the > Windows drivers for those cards since it's using some NDISWAN tricks > to make the driver load as a kernel module + some of their stuff - see > http://www.linuxant.com/driverloader/?PHPSESSID=a95e3de0243b4cf48b970b3e1abba838 > for the program as well as what it supports.. Regarding Windows drivers on Linux, I'd also like to recommend another great piece of work named ndiswrapper [1]. I ended up using ndiswrapper because the 3Com PCMCIA card 802.11g card that I ordered turned out to be a "WinModem"-like piece of hardware. And how did I let that happen? Well, it's not that I didn't check the compatibility list on the web [2], it just happens to be that the same product model ID could have two completely different versions. Just something you need to be very aware about when ordering wireless equipment, I fell on this twice. * [1] http://ndiswrapper.sourceforge.net/ * [2] http://www.linux-wlan.org/ -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Happy new year 2038 !
On Wed, Jan 05, 2005 at 09:32:16PM +0200, Moish wrote: > Quoting the ever-optimistic www.2038bug.com: > > #include > #include > #include > > int main (int argc, char **argv) > { > time_t t; > t = (time_t) 10; > printf ("%d, %s", (int) t, asctime (gmtime (&t))); > t = (time_t) (0x7FFF); > printf ("%d, %s", (int) t, asctime (gmtime (&t))); > t++; > printf ("%d, %s", (int) t, asctime (gmtime (&t))); > return 0; > } Oh, the "2^31 seconds are enough time for everybody", brought to you by one or more careless UNIX designers who might be lucky enough to be alive and 100+ years old when this bug actually manifests. In GNU/Linux, time_t is typedef'ed from __time_t, that is typedef'ed from __TIME_T, that in turn typedef'ed from __SLONGWORD_TYPE, that is defined from 'long int'. Even today 64 bit architectures define 'long int' as 64 bit on some cases. Hopefully most 32-bit architectures will perish until 2038. Nowadays, AMD64 slowly becomes commodoty hardware, so I'm optimistic. -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: KDE 3 Debian Build
On Sun, 2002-04-28 at 14:23, Sparx wrote: > Hello list. > I decided to build the KDE3 packages for debian myself (since i dont > expect an official build in the near future). Maybe you should read http://www.kde.org/install-source.html Or instead of replicating work that was already done, try the experimental packages at: http://www.geniussystems.net/KDE3 Experimental/ = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Compiling a single kernel module
On Fri, May 10, 2002 at 10:09:09PM +0300, Amir Sela wrote: > Is there a way, to compile a single module out of the kernel source > tree, without fiddling about manually with the Makefiles and such ? > I wanted to compile ntfs.c(as a loadable module, of course), and I'm > not very well versed in the Makefile structure of the entire kernel > tree. No, you have to configure the kernel first. After that, you can do: make SUBDIRS=fs/ntfs modules Much faster than waiting for the whole kernel to (re)build. -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Compiling a single kernel module
On Fri, May 10, 2002 at 10:09:09PM +0300, Amir Sela wrote: > Hey list. > Is there a way, to compile a single module out of the kernel source > tree, without fiddling about manually with the Makefiles and such ? > I wanted to compile ntfs.c(as a loadable module, of course), and I'm > not very well versed in the Makefile structure of the entire kernel > tree. No, you have to configure the kernel first. After that, you can do: make SUBDIRS=fs/ntfs modules Much faster than waiting for the whole kernel to (re)build. -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: pretty printing source code
On Sun, May 19, 2002 at 11:56:12PM +0300, Muli Ben-Yehuda wrote: > I'm looking for a way to pretty print some source code into a post > script file. Possible options: > [snip] > > Anything else? trueprint. It has some nice features like making an index of the functions in the code and such. -- Dan Aloni [EMAIL PROTECTED] = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]