Re: kernel debugging
On Wed, 8 Nov 2000, guy keren wrote: > > there are also mailing lists for various kernel topics (including a kernel > newbies mailing list - muli - you got the address?) http://www.kernelnewbies.org mailing list, irc channel (logged- logs available on the site) pretty knowledgable guys on the channel, too. > > guy > > "For world domination- press 1, > or dial 0, and please hold, for the creator." -- nob o. dy -- mulix linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead = 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: kernel debugging
guy keren wrote: > On Tue, 7 Nov 2000, Omer Musaev wrote: > > > But there are no technical info, since, as every f***ing bit on the net, > > they think that > > you"d-better-be-lawyer-to-understand-the-linux-kernel. > > why do you say that? there is quite a lot of material on the internet that > helps you understand the kernel and its services. you just got to look. > My views may be biased, since I had dealt mostly with networking parts of linux kernel. I think that networking parts are _the_ badly documented, written as "ad-hoc", rewritten not-so-from scratch and generally screwed up. Another note, worth taking into account is that I use kernel 2.2.14 and not one of the newer kernels. According to my brief views, many changes were made, and I can not flame or blame these, since I had'nt dealt with those. > there are also mailing lists for various kernel topics (including a kernel > newbies mailing list - muli - you got the address?) "last time I checked", one of best sources was the source. Most books are outdated, with exception of Rubini's "Linux device drivers", wich, btw, published updates to examples for 2.4.x kernels. The best coverage of Linux's TCP/IP stack was provided by (surprise!!) Stevens' "TCP/IP Illustrated", volume 2, along with kernel sources. Another barely useful source is section 9 of man pages. However, only 28 functions are covered (I did not count pcbios interface). The bad thing is that there almost no further information! For example: goto google.com/linux, search for skb_dequeue. You will find refernces to man pages, patches of 2.3 ilk, and if you are lucky, an article by Alan Cox named "Network Buffers And Memory Management" (http://www.redhat.com/mirrors/LDP/LDP/khg/HyperNews/get/net/net-intro.html), which describes briefly some concepts of networking under linux. The article is very good and very outdated (September 1996). The code itself is very distant from any kind of perfection: for example: in case you are using Fastroute and use in that or another way proto_pack, you end up in fooling kernel to think that there is a packet socket. Another example: function dev_get does not deal with any sync issues, as skb_dequeue does (that was fixed in 2.3 series). There are plenty of such inconsitiencies, and you should know that, otherwise, you"ll end up with "debug by printk" syndrome. With that in mind, you should expect that you can find refernces to those issues on the net. However, the main mass of material on the net tries to convince the innocent reader that "Linux is syupreme, Linus is god and only wimp should use kernel debugger". > guy > > "For world domination - press 1, > or dial 0, and please hold, for the creator." -- nob o. dy omerm. = 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]
networking problem
hello all. I have a home network, consists of 2 Win2000 computers, and a linux (RH6.2) one. I can ping to any machine from any machine, but since the modem is on one of the windows machines, I want to use it as a gateway, with dial-on-demand. I managed to do this for the other win2000 machine, but for some reason, I cant make the linux machine do the same. when I try to ping to a an address outside my network, I get "network is unreachable". what should I do next? TIA Noam Noam Ben Haim [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: networking problem
Noam Ben Haim wrote: > > hello all. > I have a home network, consists of 2 Win2000 computers, and a linux (RH6.2) > one. > I can ping to any machine from any machine, but since the modem is on one of > the windows machines, I want to use it as a gateway, with dial-on-demand. I > managed to do this for the other win2000 machine, but for some reason, I > cant make the linux machine do the same. when I try to ping to a an address > outside my network, I get "network is unreachable". what should I do next? > > TIA > Noam > > Noam Ben Haim > [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] > > -- > This footnote confirms that this email message has been scanned by > SiMSecured mail relay for the presence of computer viruses. > -- Try understand what is a masquarading ( NAT ). = 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: networking problem
On Wed, 8 Nov 2000, Noam Ben Haim wrote: > hello all. > I have a home network, consists of 2 Win2000 computers, and a linux (RH6.2) > one. > I can ping to any machine from any machine, but since the modem is on one of > the windows machines, I want to use it as a gateway, with dial-on-demand. I > managed to do this for the other win2000 machine, but for some reason, I > cant make the linux machine do the same. when I try to ping to a an address > outside my network, I get "network is unreachable". what should I do next? You need to define your windows ip as your gateway. Try to run: /sbin/route add -net windowsip netmask 0.0.0.0 If it works, add it to your rc scripts, or use netconfig to set it (on redhat) > > TIA > Noam > > Noam Ben Haim > [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] > > _ ___ __ _ __ _(_) Sagi Bashari (_-
Re: networking problem
Sagi Bashari wrote: > On Wed, 8 Nov 2000, Noam Ben Haim wrote: > > > hello all. > > I have a home network, consists of 2 Win2000 computers, and a linux (RH6.2) > > one. > > I can ping to any machine from any machine, but since the modem is on one of > > the windows machines, I want to use it as a gateway, with dial-on-demand. I > > managed to do this for the other win2000 machine, but for some reason, I > > cant make the linux machine do the same. when I try to ping to a an address > > outside my network, I get "network is unreachable". what should I do next? > > You need to define your windows ip as your gateway. > > Try to run: > /sbin/route add -net windowsip netmask 0.0.0.0 I suspect it will not work, unless the man have real IP address on his linux box, and the windows machine knows how to route back. I think he is looking for IP masquarading. > > > If it works, add it to your rc scripts, or use netconfig to set it (on > redhat) > > > > > TIA > > Noam > > > > Noam Ben Haim > > [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] > > > > > >_ > ___ __ _ __ _(_) Sagi Bashari > (_- /__/\__,_\__, |_| > |___/ > > = > 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] = 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: networking problem
Ury Segal wrote: > > Sagi Bashari wrote: > > > On Wed, 8 Nov 2000, Noam Ben Haim wrote: > > > > > hello all. > > > I have a home network, consists of 2 Win2000 computers, and a linux (RH6.2) > > > one. > > > I can ping to any machine from any machine, but since the modem is on one of > > > the windows machines, I want to use it as a gateway, with dial-on-demand. I > > > managed to do this for the other win2000 machine, but for some reason, I > > > cant make the linux machine do the same. when I try to ping to a an address > > > outside my network, I get "network is unreachable". what should I do next? > > > > You need to define your windows ip as your gateway. > > > > Try to run: > > /sbin/route add -net windowsip netmask 0.0.0.0 > > I suspect it will not work, unless the man have real IP address > on his linux box, and the windows machine knows how to route > back. As far as I understand the situation not the route command above nor Ury's remark is relevant. AFAIK, since Sagi already have an internal network *functioning*, his Linux box, which can use the internal network, will already have routing to the local network, unrelated to the IPs used, be it legal (?), or non-routable IP (much more likely). If the windows gateway does masquarading which *works* for the other winblows machine, then all Sagi needs to do on his Linux box is to define a default GW: /sbin/route add default gw If the M$ gateway somehow enables others share it's internet connection in another way, than Linux should utilize that way to speak to the M$ gateway. Obviously, I recommend using Masquarading on your local Linux box, but this requires quite amount of spare time to learn, if you dont control those networking subjects. But, doing so will enable you to use some all the other free benefits coming with Linux - Firewalling, Service monitoring (tcpd), extensive logging, etc' etc' etc' . These do not come free on Winblows... . Anyway, some more info will surely help debug your problem (IPs used, routing table on Linux...) boaz. -- /"\ \ / ASCII Ribbon Campaign x Against HTML Mail / \ = 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]
mandrake 7.2 for sale?
is there a place where i can buy the mandrake 7.2 package (..i.e. full version).? Yochai Lam networking management dev.dept.kla-tencor israel hatikshoret 4 st.ramat gavriel migdal haemek. israel 972-6-6449482 (+voice) 972-58-531689 (cell.) <> Lam, Yochai.vcf
Re: networking problem
On Wed, 8 Nov 2000, Boaz Rymland wrote: > Ury Segal wrote: > > > > Sagi Bashari wrote: > > > > > On Wed, 8 Nov 2000, Noam Ben Haim wrote: > > > > > > > hello all. > > > > I have a home network, consists of 2 Win2000 computers, and a linux (RH6.2) > > > > one. > > > > I can ping to any machine from any machine, but since the modem is on one of > > > > the windows machines, I want to use it as a gateway, with dial-on-demand. I > > > > managed to do this for the other win2000 machine, but for some reason, I > > > > cant make the linux machine do the same. when I try to ping to a an address > > > > outside my network, I get "network is unreachable". what should I do next? > > > > > > You need to define your windows ip as your gateway. > > > > > > Try to run: > > > /sbin/route add -net windowsip netmask 0.0.0.0 > > > > I suspect it will not work, unless the man have real IP address > > on his linux box, and the windows machine knows how to route > > back. He said that he already got his other windows box to work that way, no? so if he setuped the windows settings for linux in the same way, I guess that the linux does not use the right gateway. > > As far as I understand the situation not the route command above nor Ury's > remark is relevant. AFAIK, since Sagi already have an internal network > *functioning*, his Linux box, which can use the internal network, will already > have routing to the local network, unrelated to the IPs used, be it legal (?), > or non-routable IP (much more likely). If the windows gateway does masquarading > which *works* for the other winblows machine, then all Sagi needs to do on his > Linux box is to define a default GW: > > /sbin/route add default gw > > If the M$ gateway somehow enables others share it's internet connection in > another way, than Linux should utilize that way to speak to the M$ gateway. > > Obviously, I recommend using Masquarading on your local Linux box, but this > requires quite amount of spare time to learn, if you dont control those > networking subjects. But, doing so will enable you to use some all the other > free benefits coming with Linux - Firewalling, Service monitoring (tcpd), > extensive logging, etc' etc' etc' . These do not come free on Winblows... . > > Anyway, some more info will surely help debug your problem (IPs used, routing > table on Linux...) > > boaz. > = 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: mandrake 7.2 for sale?
"Lam, Yochai" wrote: > > is there a place where i can buy the mandrake 7.2 package (..i.e. full > version).? Call Artnet. http://www.artnet.co.il Gilad. -- Gilad Ben-Yossef <[EMAIL PROTECTED]> http://benyossef.com :: +972(54)756701 "Don't confuse me with facts, my mind's already made up!" = 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: problems with stand alone project,using brctl and ipchains
Barak Rosenberg wrote: > I have problems using a stand alone configuration,which means using brctl > and ipchains > in our LRP Linux system. Are you using the new bridge patch for the 2.2.x kernels or the old bridge code that comes with 2.2.x? > > I managed to load the instance of the bridge,and even sending ping outside > using my Linux, > threw the bridge (the bridge instance connected to eth0 and eth1), > I probably not using the ipchains right, with the input,output,and forward > I need to transfer everything that is not on port 443(SSL) threw the Linux > machine, > and port 443 inside the machine using apache. If I understand corrrectly what you want to do (a transparent proxy for SSL connections that works on layer II) then it can't be done for two reasons: 1. Although a patch exist to let ipchains packet filter packets that traverse the bridge, what you want (the docs call this redirection) requires changing the packet, which is very easily done with ipchains for IP traffic, but when you work with the ipchains on the bridge you work one layer downwards and you need to change the packet (actually ethernet frame?) destination MAC address which is slightly more problamtic. It can be done by writing a special kernel module (that will inject changed packets to the IP stack) but is not supported by the "regular" ipchains + bridge patch. You can do that with ipchains in layer3 and use the Linux box as your gateway, but don't bother, because: 2. You can't do transparent proxy for SSL because doing so amounts to a "man in a middle" attack on the protocol, which means that if you succeed to build something that works you've practivly made SSL useless ;-) Hope this helps, Gilad -- Gilad Ben-Yossef <[EMAIL PROTECTED]> http://benyossef.com :: +972(54)756701 "Don't confuse me with facts, my mind's already made up!" = 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: Lyx compilation
On Sat, Nov 04, 2000 at 07:50:17PM +0200, Miriam wrote: > Maybe you can help. > I downloaded lyx-1.1.5fix2.tar.gz and tried to build the program. After > unpacking, ./configure and make I tried src/lyx. Got the error message: > error in loading shared libraries: libc.so.5: cannot open shared object > file: No such file or directory. You probably have the XForms library compiled for the (really) old libc5. You can check if this is the case by doing 'ldd locate libforms.so'. If this is the problem, you need to get the correct version of XForms (you also need to match the XForms to your libc6 version: glibc-2, or glibc-2.1. You can check your glibc version by doing /lib/libc*) PS: Is it possible to use Redhat RPMs on slackware ? (a RPM for lyx is available at ftp://ftp.sylvan.com/pub/lyx) = 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: Lyx compilation
On Wed, 8 Nov 2000, Dekel Tsur wrote: > PS: Is it possible to use Redhat RPMs on slackware ? > (a RPM for lyx is available at ftp://ftp.sylvan.com/pub/lyx) Yes. There's rpm package for slackware, you can use it with --nodeps and it should work fine. Anyway, better way is using the rpm2tgz tool that comes with slackware to port rpm to slackware's .tgz package. _ ___ __ _ __ _(_) Sagi Bashari (_-
Re: number of CPUs
On Tue, Nov 07, 2000 at 07:24:35PM +0200, Ely Levy wrote: > I'll take that as a no? > geezz.. > > > Ely Levy > System group > Hebrew University > Jerusalem Israel > > > > On Mon, 6 Nov 2000, Adi Stav wrote: > > | On Mon, Nov 06, 2000 at 10:55:28PM +0200, Ely Levy wrote: > | > how do I get the number of CPUs a computer has > | > without parsing any file. > | > something like sysctl on BSD.(just in linux it's not there) > | > | /proc/cpuinfo Oh sorry, I skipped the "parsing" line. Anyhow... I reckon Linus has expressed before his dislike for special system calls to get kernel information, and wants people to use proc only. So unless I'm missing something I guess you're out of luck. But why is it so crucial not to parse a file? I can't imagine anyone checking for the number of CPUs in the inner loop of their programs :) system( "exit `grep ^processor /proc/cpuinfo | tail -1 | cut -d : -f 2`" ) Would probably work (I don't have SMP machine to check it). = 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]
man pages, section 9?
> > Another barely useful source is section 9 of man pages. However, only 28 > functions are covered (I did not count pcbios interface). > Can you tell why I do not have this section (9)? [00:49:26 /tmp]$ locate man9 [00:49:56 /tmp]$ dpkg -S man9 dpkg: *man9* not found. [00:50:28 /tmp]$ ls /usr/share/man/man9 ls: /usr/share/man/man9: No such file or directory [00:51:05 /tmp]$ -- Shaul Karl <[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]
Printing the x/g/k-term contents
Hi Is there a way to print the contents of the xterm (and its similair terminas), including the command lines, the prompts, the commands / file names and ofcourse the output ? TIA, Ishai. = 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]
(no subject)
1-Thank you for the quick answer. 2-I do have libxforms installed. The problem seems to be rather along the line hinted at by Assaf Mevorach: Unlike some other Unix flavors and some other Linux distributions, in Slakware 7.0 the linker does not include BY DEFAULT the code required to include in the RUN_TIME_PATH all the directories that were searched for libraries when building it. Unless one uses the rpath option at build time, or define explicitely a RUN_TIME_PATH, only /lib and /usr/lib are seaeched. 3-I think I'll make use of your remark about the possibility of dispensing with lib5. Thanks again. 4-Something funny happened to my message on the way to you. I refer to the "missing space" (> s%@LIBS@% -lSM -lICE -liberty -lc-lm -L/usr/X11R6/lib ^^ -lX11 %g I assume the space there wasn't missing in the original line): I looked at all my copies of the message, in "sent mail" and in the messages received from the list and from Assaf. The space is there. I cannot explain that. 5-In order to include the rpath directive I have to modify one of the Makefiles or call configure with some command-line parameter. I am not familiar with the use of this technique. Can you give me some pointer ? (Must I mention that I never learned programming in a systematic way ?). Cheers, Avraham = 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: (no subject)
you can find allot of info through the ld.so man page (the old dynamic linker) and ld man page, and some HOW-TO files beside that there are books on linking like this one: http://iecc.com/linker/ (also in hard copy) another paper regarding linking and run time linking http://mitglied.tripod.de/linux_progz/docs/startup.html and by the way the thing that you say about the linker in slackware doesn't sound very logic. the linker doesn't depend in any way on the distribution, and not even on the kernel version, it is Gnu software that fits all Linux dist and it is related only to the file format (ELF in this case). there are more ways to include libraries in run time path beside the env var or rpath directive, like the /etc/ld.so.cache file (read about it in ld.so man page) ~~ Assaf -Original Message- From: Miriam [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 8:06 AM To: Tzafrir Cohen Cc: Linux-IL Mailing List Subject: (no subject) 1-Thank you for the quick answer. 2-I do have libxforms installed. The problem seems to be rather along the line hinted at by Assaf Mevorach: Unlike some other Unix flavors and some other Linux distributions, in Slakware 7.0 the linker does not include BY DEFAULT the code required to include in the RUN_TIME_PATH all the directories that were searched for libraries when building it. Unless one uses the rpath option at build time, or define explicitely a RUN_TIME_PATH, only /lib and /usr/lib are seaeched. 3-I think I'll make use of your remark about the possibility of dispensing with lib5. Thanks again. 4-Something funny happened to my message on the way to you. I refer to the "missing space" (> s%@LIBS@% -lSM -lICE -liberty -lc-lm -L/usr/X11R6/lib ^^ -lX11 %g I assume the space there wasn't missing in the original line): I looked at all my copies of the message, in "sent mail" and in the messages received from the list and from Assaf. The space is there. I cannot explain that. 5-In order to include the rpath directive I have to modify one of the Makefiles or call configure with some command-line parameter. I am not familiar with the use of this technique. Can you give me some pointer ? (Must I mention that I never learned programming in a systematic way ?). Cheers, Avraham = 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] = 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]