[SLUG] singing
where abouts are you? Natasha. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] This footnote also confirms that this email message has been checked for the presence of computer viruses. http://www.statetrustees.com.au -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] K 2.6 help.
Oh yeah - if you *really* want to do this, fork() first and test in the child. If the child exited with a segfault you know it was a bad idea. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] K 2.6 help.
At Mon, 20 Oct 2003 23:07:40 +1000,Ken Foskey wrote: > If anyone is on a very fresh version of K2.6 with extra patches can you > please run this code and see if it crashes. It fails on all K2.6 up to > Test6 release. I would be interested to hear of any success. > > Here is what I get: > Getting from NULL > Setting Jump > Running > Signal 11 caught > After jump > Setting to NULL > Setting Jump > Running > Segmentation fault > > There should be no segfault and another signal caught. A C program is "undefined" after returning from a SIGSEGV handler. In particular that means its allowed to die in weird ways. (If this was intended for real use, you definately want to rethink your approach. "Testing" addresses for segfaults is always going to get you into trouble) -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
RE: [SLUG] Questions about AWStats Logs !!
> Issue 1: > > First let start with Unique Visitor. From my understanding a unique > visitor is a host that came to a web site. A unique visitor can have more > than one visits, and a visit can consist of more than 1 page viewed. Not > let's say I connect to the internet using my ISP that uses dynamic IP > addressing. If I go to my own main url site (i.e the base index.html) will > AWStats count this as a Unique Visitor if the IP address changes from each > connection despite the fact that I visted the site myself ? A unique visitor is one IP address accessing your website in one day, I think. If you have a dynamic IP and you visit your website you will be counted as one visitor for that day, unless you IP address is reallocated during the day and you visit again. Most dynamic IPs I have experienced do not change that frequently. Telstra cable - around 3 months. When I had dyamic ADSL - around a week with the one IP. Also I don't know about your network setup, if you are hosting at home its most likely all the connections would be local connections. > > For such a visit does this unique visitor falls in the category "Direct > address / Bookmarks" from AWStats "Connect to site from" ? > > If so then does "Direct address / Bookmarks" means I'm the one visited > the site, i.e if most of the hits are from hosts that resolves to my ISP > domain name provider ? There is a HTTP field called referrer in which the browser provides the URL of a website that has linked to your website. If the referrer is empty then it is a "direct address / bookmark". That means the user has typed it in or selected a bookmark. Otherwise they have followed a link. If the majority of hits resolve to you, chances are you have been the major viewer of your website yes. Direct address / Bookmarks does not imply you though as your friends may have bookmarked your website. > > Issue 2: > = > If I connect to my site via ftp or SSH is this also logged as Unique > Visitor ? Does uploads and downloads counts as visits ? Awstats is just a program processing error_log and access_log. This is only connected to httpd. You can set it up to log mail and ftp but this is done separately with a different conf file. > > Issue 3: > = > AWStats has a section called "Authenticated users (Top 10)". What falls in > the category "Other logins (and/or anonymous users)" ? Sorry not sure, I would guess it would be the logins that don't make the top 10 or the anonymous log ins? > > Issue 4: > == > Cron scripts that accesses web pages not via browser but command line. > Does AWStats count stats for this as hits and logged them as Unique > Visitors for host that resolve to the domain name where the cron is > executed ? By default they are included. There is an option called SkipHosts which can be used to skip them. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
RE: [SLUG] Questions about AWStats Logs !!
> If I go to my own main url site (i.e the base index.html) will > AWStats count this as a Unique Visitor if the IP address changes from each > connection despite the fact that I visted the site myself ? Probably - AWStats isn't using any kind of built-in cookie tracking so it has to be basically just estimating unique visitors by IP number and access time. > For such a visit does this unique visitor falls in the category "Direct > address / Bookmarks" from AWStats "Connect to site from" ? No, those will be related to the HTTP Referrer field in the logs - if the referring URL is empty then the user either typed it in or clicked on a bookmark, or they're paranoid types who turn that sort of thing off. If the referrer field contains a URL, then that's probably where the visitor came from (again, there are bugs in some older browsers that can make this a little inaccurate). > If so then does "Direct address / Bookmarks" means I'm the one visited > the site, i.e if most of the hits are from hosts that resolves to my ISP > domain name provider ? Depends - do you have a cron job that runs wget or similar? If so, that will massively increase the direct address stats because it will never supply a referrer. There is an option somewhere in AWStats to ignore this type of access (i.e. if you're running a Drupal site and a cron job is wgetting '/cron.php' every hour, you can set it to ignore hits on that URI. > If I connect to my site via ftp or SSH is this also logged as Unique > Visitor ? Does uploads and downloads counts as visits ? AWStats only analyses web server traffic, so ftp or ssh (or anything else) will not be counted. In terms of uploads and downloads, it doesn't matter. If it went through your web server it'll be in the report somewhere. > Cron scripts that accesses web pages not via browser but command line. > Does AWStats count stats for this as hits and logged them as Unique > Visitors for host that resolve to the domain name where the cron is > executed ? Yup. Doesn't really have to resolve either, it's just a distinct host in the log. Cheers, Julian. -- Julian Melville http://tiddly-pom.com/ -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Blocking MSN Messenger
> Most sites I have been to recommend blocking by dst, however I noticed I > could block by application/type with the following line in squid.conf: > acl msn-type req_mime_type -i ^application/x-msn-messenger$ > http_access deny msn-type > > I have tested it, and cannot see any problems with it. > > Does anyone else have any recommendations on which I should use, or > perhaps another method? I've used a combination of port blocking for the old protocol, and squid-based mime (as above) and query string blocking (there's a particular dll referenced in MSN queries) for the http-based protocol. They seem to like adding new methods every now and then, however... ;-) The same approach works for ICQ/AIM and friends too. - Jeff -- linux.conf.au 2004: Adelaide, Australia http://lca2004.linux.org.au/ "I came for the quality, but I stayed for the freedom." - Sean Neakums -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Blocking MSN Messenger
Hey Sluggers, I have successfully been able to block msn messenger access from our LAN, however I don't feel too comfortable denying access to 4 class C subnets... I don't know what other legit sites there are in the specified range. What I have done is blocked port 1863, then put this line in squid.conf: acl msn dst 64.4.13.0/24 152.163.241.0/24 64.12.163.0/24 207.46.110.0/24 http_access deny msn Most sites I have been to recommend blocking by dst, however I noticed I could block by application/type with the following line in squid.conf: acl msn-type req_mime_type -i ^application/x-msn-messenger$ http_access deny msn-type I have tested it, and cannot see any problems with it. Does anyone else have any recommendations on which I should use, or perhaps another method? Cheers, Scott -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Red Hat 9 CD1 problem
The code I used is : # Debian Version mkisofs -hide -joliet-trans-tabl -J -p bjd -c boot.catalog \ -b dists/woody/main/disks-i386/3.0.23-2002-05-21/images-2.88/compact/rescue.bin\ -V DebianCD1 -r -A "A test of CD burning by me" \ -o /mnt/hda9/deb3cd1iso/deb3cd1.iso /mnt/hda9/cd1 #RH9 Version mkisofs -v -r -T -J -V "Red Hat 9" -no-emul-boot -boot-load-size 4 \ -boot-info-table \ -b isolinux/isolinux.bin -c isolinux/boot.cat \ -l -R -o /mnt/hda9/rh9cd1iso/rh9cd1.iso /mnt/hda9/cd1 Originally the RH9 code was almost identical to that in the Debian Version but apparently the boot image for CDs has been changed in RH9 to /isolinux/isolinux.bin The other arguments are taken from various websites on the net that are supposedly showing how it's done. I am using mkisofs-2.0-6, which is the latest version from the RH9 distro. I could download the iso files directly from RH using my employer's fast internet connection but would prefer not to. On Mon, 20 Oct 2003, Shaun Oliver wrote: > how dod you do this for debian woody please, I'd lke to create a speakup > enabled bootable cd-rom for woody. > mainly cause I can't be hanged changing the bios settings > > -- > Shaun Oliver > "Becareful of the toes u step on today, they maybe connected to the ass you have to > kiss tomorrow!" > > EMAIL: [EMAIL PROTECTED] > ICQ: 76958435 > YAHOO: blindman01_2000 > MSN: [EMAIL PROTECTED] > AIM: captain nemo 200 > IRC: irc.awesomechat.net: > IRCNICK: blindman > CHANNELS: #awesomeradio #mircpopup-magic #linux #help #ourworld #audiofile #mauisun > -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] K 2.6 help.
If anyone is on a very fresh version of K2.6 with extra patches can you please run this code and see if it crashes. It fails on all K2.6 up to Test6 release. I would be interested to hear of any success. Here is what I get: Getting from NULL Setting Jump Running Signal 11 caught After jump Setting to NULL Setting Jump Running Segmentation fault There should be no segfault and another signal caught. If there is any obvious blunder with this code let me know. Looks pretty right to me though I don't use signals much at all. -- Thanks KenF OpenOffice.org developer #include #include #include /* |* Typdeclarations for memory access test functions */ typedef int (*TestFunc)( void* ); /* */ static jmp_buf check_env; static int bSignal; static void SignalHdl( int sig ) { bSignal = 1; fprintf( stderr, "Signal %d caught\n", sig ); longjmp( check_env, sig ); } /* */ void check( TestFunc func, void* p ) { int result; fprintf( stderr, "Setting Jump\n" ); if ( !setjmp( check_env ) ) { signal( SIGSEGV, SignalHdl ); signal( SIGBUS, SignalHdl ); fprintf( stderr, "Running \n" ); result = func( p ); fprintf( stderr, "Finished \n" ); signal( SIGSEGV, SIG_DFL ); signal( SIGBUS, SIG_DFL ); } fprintf( stderr, "After jump \n" ); } /* */ static int GetAtAddress( void* p ) { return *((char*)p); } /* */ static int SetAtAddress( void* p ) { return *((char*)p) = 0; } /* */ void CheckGetAccess( void* p ) { check( (TestFunc)GetAtAddress, p ); } /* */ void CheckSetAccess( void* p ) { check( (TestFunc)SetAtAddress, p ); } /* */ int main( int argc, char* argv[] ) { { char* p = NULL; fprintf( stderr, "Getting from NULL\n" ); CheckGetAccess( p ); fprintf( stderr, "Setting to NULL\n" ); CheckSetAccess( p ); fprintf( stderr, "After Setting to NULL\n" ); } exit( 0 ); } -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Questions about AWStats Logs !!
Hi Sluggers: I hope some people here have heard of AWStats. I have some questions regarding the stats it provides. Please note that I have looked up the AWStats documents but am not sure if I'm understanding everything properly. So I will ask here. So please confirm my understanding and queries. Issue 1: First let start with Unique Visitor. From my understanding a unique visitor is a host that came to a web site. A unique visitor can have more than one visits, and a visit can consist of more than 1 page viewed. Not let's say I connect to the internet using my ISP that uses dynamic IP addressing. If I go to my own main url site (i.e the base index.html) will AWStats count this as a Unique Visitor if the IP address changes from each connection despite the fact that I visted the site myself ? For such a visit does this unique visitor falls in the category "Direct address / Bookmarks" from AWStats "Connect to site from" ? If so then does "Direct address / Bookmarks" means I'm the one visited the site, i.e if most of the hits are from hosts that resolves to my ISP domain name provider ? Issue 2: = If I connect to my site via ftp or SSH is this also logged as Unique Visitor ? Does uploads and downloads counts as visits ? Issue 3: = AWStats has a section called "Authenticated users (Top 10)". What falls in the category "Other logins (and/or anonymous users)" ? Issue 4: == Cron scripts that accesses web pages not via browser but command line. Does AWStats count stats for this as hits and logged them as Unique Visitors for host that resolve to the domain name where the cron is executed ? Cheers. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Red Hat 9 CD1 problem
On Mon, 20 Oct 2003 07:21:30 +1000 (EST) Bernard Doyle <[EMAIL PROTECTED]> wrote: > Except for a minor difference in the -b and -c > arguments for mkisofs, the same command works > for Debian (Woody) CD1. ie. the Debian CD is > bootable and installable. > > Has anyone know how to do this for RH 9 ? I've had the problem you describe with cds written with cdrecord and nero on xp. But the only common factor was that they needed a bit of a clean, as far as I could tell. The only other thing I'd suggest is to check the precise versions of mkisofs and cdrecord that you use. Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] How to disable printf...
On Mon Oct 20, 2003 at 18:27:14 +0800, well wrote: >Hi All > >Sorry, this question doesn't belong to technical questions. >I want to disable all debug message and all debug function link to printf. >It should be able to disable it with one line define like: > >#define printf (%#$%#$%#) --> I don't remember > >Can somebody help me to complete the define to disable debug message. > >Any suggestion would be appreciated. > #define printf(x...) However, I think that this is a GCCism, which you may or may not care about. Of course, if you want to disable all output you can do this at a higher level by just redirecting to /dev/null. Benno -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] How to disable printf...
Hi All Sorry, this question doesn't belong to technical questions. I want to disable all debug message and all debug function link to printf. It should be able to disable it with one line define like: #define printf (%#$%#$%#) --> I don't remember Can somebody help me to complete the define to disable debug message. Any suggestion would be appreciated. W.L -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug