Re: [SLUG] Re: Insert text at the beginning of a file
[EMAIL PROTECTED] wrote: Ouch a problem begging for perl as a solution! James Probably, but seeing as though my shell skills are half a step above totally crap and my perl skills are 4 steps below shell it is :-) And thanks everyone for your suggestions I haven't had a chance to test any of them out. maybe tonight. Dan. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: Insert text at the beginning of a file
Dan Treacy wrote: [EMAIL PROTECTED] wrote: Ouch a problem begging for perl as a solution! James Probably, but seeing as though my shell skills are half a step above totally crap and my perl skills are 4 steps below shell it is :-) And thanks everyone for your suggestions I haven't had a chance to test any of them out. maybe tonight. Dan. If you're talking about inserting text at the beginning of a file, than perl has a tidy way of doing it all for you: $ perl -pi -e s/^/foobar\n/ if ($.==1); test.file That's pretty easy! See the 'perlrun' manpage. Doesn't seem to work if test.file is empty ie 0 lines. Nice variation where you can say '-i.orig' and you will have the original stored with a '.orig' extension, or whatever you want. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: your unsubscribe request
As you requested, you have been unsubscribed from 'linux-mag-news'. --- Return-Path: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] Received: from mx4.lyris.net ([64.62.197.188]) by sand.lyris.net with SMTP (Lyris ListManager WIN32 version 5.1); Wed, 15 Dec 2004 10:20:51 -0800 Received: from mx4.lyris.net (localhost.localdomain [127.0.0.1]) by localhost.localdomain with SMTP (Lyris MailShield LINUX version 3.2a); Wed, 15 Dec 2004 10:20:46 -0800 Received: from mx4.lyris.net (mx4.lyris.net [64.62.197.188]) by localhost.localdomain ([127.0.0.1]); Wed, 15 Dec 2004 18:20:45 + Received: from maddog.slug.org.au (slug.progsoc.uts.edu.au [138.25.7.4]) by mx4.lyris.net with SMTP (Lyris MailShield LINUX version 3.2a); Wed, 15 Dec 2004 10:20:45 -0800 Received: from maddog.slug.org.au (localhost [127.0.0.1]) by maddog.slug.org.au (Postfix) with ESMTP id 531BD109FC3 for [EMAIL PROTECTED]; Thu, 16 Dec 2004 05:18:00 +1100 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: From: [EMAIL PROTECTED] To: linux-mag-news-request Message-ID: [EMAIL PROTECTED] Date: Thu, 16 Dec 2004 05:17:58 +1100 Precedence: bulk X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.1.5 List-Id: Linux and Free Software Discussion slug.slug.org.au X-List-Administrivia: yes Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] # Mail sent to leave-linux-mag-news-4748416y was converted to these commands: unsubscribe linux-mag-news [EMAIL PROTECTED] confirm end # This is the text of the message that triggered the action: Return-Path: [EMAIL PROTECTED] Received: from mx4.lyris.net ([64.62.197.188]) by sand.lyris.net with SMTP (Lyris ListManager WIN32 version 5.1); Wed, 15 Dec 2004 10:20:51 -0800 Received: from mx4.lyris.net (localhost.localdomain [127.0.0.1]) by localhost.localdomain with SMTP (Lyris MailShield LINUX version 3.2a); Wed, 15 Dec 2004 10:20:46 -0800 Return-Path: [EMAIL PROTECTED] Received: from mx4.lyris.net (mx4.lyris.net [64.62.197.188]) by localhost.localdomain ([127.0.0.1]); Wed, 15 Dec 2004 18:20:45 + Received: from maddog.slug.org.au (slug.progsoc.uts.edu.au [138.25.7.4]) by mx4.lyris.net with SMTP (Lyris MailShield LINUX version 3.2a); Wed, 15 Dec 2004 10:20:45 -0800 Return-Path: [EMAIL PROTECTED] Received: from maddog.slug.org.au (localhost [127.0.0.1]) by maddog.slug.org.au (Postfix) with ESMTP id 531BD109FC3 for [EMAIL PROTECTED]; Thu, 16 Dec 2004 05:18:00 +1100 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Your message to slug awaits moderator approval From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Date: Thu, 16 Dec 2004 05:17:58 +1100 Precedence: bulk X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.1.5 List-Id: Linux and Free Software Discussion slug.slug.org.au X-List-Administrivia: yes Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] Your mail to 'slug' with the subject Linux Magazine Newsletter Is being held until the list moderator can review it for approval. The reason it is being held: SpamAssassin identified this message as possible spam (score 5) Either the message will get posted to the list, or you will receive notification of the moderator's decision. If you would like to cancel this posting, please visit the following URL: http://lists.slug.org.au/confirm/slug/40237b701ced829ccaa145647a361a42e8593132 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Dude- what happened to my yum!
running yum update: [EMAIL PROTECTED] linley]# yum update Gathering header information file(s) from server(s) Server: Fedora Core 2 - i386 - Base Server: Fedora Core 1 Dag Wieers' repository retrygrab() failed for: http://apt.sw.be/redhat/fc2/en/i386/dag/headers/header.info Executing failover method failover: out of servers to try Error getting file http://apt.sw.be/redhat/fc2/en/i386/dag/headers/header.info [Errno 4] IOError: HTTP Error 404: Not Found [EMAIL PROTECTED] linley]# My yum.conf is: [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 [base] name=Fedora Core $releasever - $basearch - Base baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/$releasever/$basearch/os/#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/ [updates-released] name=Fedora Core $releasever - $basearch - Released Updates baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/$releasever/$basearch/ #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/ [livna-stable] name=Livna.org Fedora Compatible Packages (stable) baseurl= http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable gpgcheck=1 [livna-unstable] name=Livna.org Fedora Compatible Packages (unstable) baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable gpgcheck=1 [livna-testing] name=Livna.org Fedora Compatible Packages (testing) baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/testing gpgcheck=1 [dag] name=Fedora Core 1 Dag Wieers' repository baseurl=http://apt.sw.be/redhat/fc$releasever/en/i386/dag [freshrpms] name=Fedora Core $releasever freshrpms baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms http://freshrpms.atrpms.net/fedora/linux/$releasever/$basearch/freshrpms [updates-released] name=Fedora Core $releasever - $basearch - Released Updates baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/ #[updates-testing] #name=Fedora Core $releasever - $basearch - Unreleased Updates #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/ #[development] #name=Fedora Core $releasever - Development Tree #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/ [xcyb-stable] name=Fedora Core 2 ( xcyborg / stable ) baseurl=http://rpms.xcyb.org/fedora/2/stable/ [xcyb-bleeding] name=Fedora Core 2 ( xcyborg / bleeding ) baseurl=http://rpms.xcyb.org/fedora/2/bleeding/ = -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Fedora Core 3 Apache 2.0.52
I can't get apache to read my /var/www/html/index.html file. The log complains about: (13)Permission denied: access to /index.html denied and presents the default Test Page instead. Another thing, when Apache starts, it also complains that my virtual site DocumentRoot doesn't exist. It is _not_ a perms problem as far as I can make out as the DocumentRoots are recursively owned apache.apache The symptom almost looks like Apache is trying to run in a chroot jail but I can't see where this is configured. This is a change over from an Apache 1 server running on RH6.2 but the only changes I have made to the httpd.conf file is to include the VirtualHosts sections and turn on the NameVirtualHost directive. Any pointers to what I might have missed. I have tried to go thru the doco on the Apache site but it's not too helpful. -- Howard. LANNet Computing Associates; Your Linux people http://www.lannetlinux.com -- When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft. -- Flatter government, not fatter government; Get rid of the Australian states. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Fedora Core 3 Apache 2.0.52
Howard Lowndes wrote: I can't get apache to read my /var/www/html/index.html file. The log complains about: (13)Permission denied: access to /index.html denied and presents the default Test Page instead. Another thing, when Apache starts, it also complains that my virtual site DocumentRoot doesn't exist. It is _not_ a perms problem as far as I can make out as the DocumentRoots are recursively owned apache.apache The symptom almost looks like Apache is trying to run in a chroot jail but I can't see where this is configured. This is a change over from an Apache 1 server running on RH6.2 but the only changes I have made to the httpd.conf file is to include the VirtualHosts sections and turn on the NameVirtualHost directive. Any pointers to what I might have missed. I have tried to go thru the doco on the Apache site but it's not too helpful. Show us your 'httpd.conf' -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Fedora Core 3 Apache 2.0.52
On Thu, 2004-12-16 at 09:32, O Plameras wrote: Howard Lowndes wrote: I can't get apache to read my /var/www/html/index.html file. The log complains about: (13)Permission denied: access to /index.html denied and presents the default Test Page instead. Another thing, when Apache starts, it also complains that my virtual site DocumentRoot doesn't exist. It is _not_ a perms problem as far as I can make out as the DocumentRoots are recursively owned apache.apache The symptom almost looks like Apache is trying to run in a chroot jail but I can't see where this is configured. This is a change over from an Apache 1 server running on RH6.2 but the only changes I have made to the httpd.conf file is to include the VirtualHosts sections and turn on the NameVirtualHost directive. Any pointers to what I might have missed. I have tried to go thru the doco on the Apache site but it's not too helpful. Show us your 'httpd.conf' I'll hold on that. It looks like a SELinux issue, which I am currently working on. http://lwn.net/Articles/105409/ -- Howard. LANNet Computing Associates; Your Linux people http://www.lannetlinux.com -- When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft. -- Flatter government, not fatter government; Get rid of the Australian states. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Fedora Core 3 Apache 2.0.52
On Thu, 2004-12-16 at 09:44, Howard Lowndes wrote: I'll hold on that. It looks like a SELinux issue, which I am currently working on. http://lwn.net/Articles/105409/ Yep, that was it. Once I disabled SELinux then it all worked. Mind you, disabling SELinux is definitely _not_ a Good Idea (tm), but frankly I found the LWN srticle difficult to read and understand and I would dearly like to find a Dummies Guide(tm) to understanding the concept of contexts in SEL. The article refers to altered versions of some utilities that can display the enhanced filesystem settings; one of them being ls. Oddly enough the ls that is in the distro doesn't recognise the additional option for this function. The nam page for the chcon command also refers to the info chcon page, which unfortunately does not provide additional doco but is an exact copy of the man page. Sigh... -- Howard. LANNet Computing Associates; Your Linux people http://www.lannetlinux.com -- When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft. -- Flatter government, not fatter government; Get rid of the Australian states. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Fedora Core 3 Apache 2.0.52
Howard Lowndes wrote: Mind you, disabling SELinux is definitely _not_ a Good Idea (tm), but frankly I found the LWN srticle difficult to read and understand and I would dearly like to find a Dummies Guide(tm) to understanding the concept of contexts in SEL. The article refers to altered versions of some utilities that can display the enhanced filesystem settings; one of them being ls. Oddly enough the ls that is in the distro doesn't recognise the additional option for this function. The nam page for the chcon command also refers to the info chcon page, which unfortunately does not provide additional doco but is an exact copy of the man page. Try this one: http://sourceforge.net/docman/display_doc.php?docid=20372group_id=21266 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Dude- what happened to my yum!
Dude this is because http://apt.sw.be/redhat/fc2/en/i386/dag/headers/header.info does not exist on the server. Chances are the path has changed (so go look up the new path) running yum update: [EMAIL PROTECTED] linley]# yum update Gathering header information file(s) from server(s) Server: Fedora Core 2 - i386 - Base Server: Fedora Core 1 Dag Wieers' repository retrygrab() failed for: http://apt.sw.be/redhat/fc2/en/i386/dag/headers/header.info Executing failover method failover: out of servers to try Error getting file http://apt.sw.be/redhat/fc2/en/i386/dag/headers/header.info [Errno 4] IOError: HTTP Error 404: Not Found [EMAIL PROTECTED] linley]# My yum.conf is: [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 [base] name=Fedora Core $releasever - $basearch - Base baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/$releasever/$basearch/os/#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/ [updates-released] name=Fedora Core $releasever - $basearch - Released Updates baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/$releasever/$basearch/ #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/ [livna-stable] name=Livna.org Fedora Compatible Packages (stable) baseurl= http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable gpgcheck=1 [livna-unstable] name=Livna.org Fedora Compatible Packages (unstable) baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable gpgcheck=1 [livna-testing] name=Livna.org Fedora Compatible Packages (testing) baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/testing gpgcheck=1 [dag] name=Fedora Core 1 Dag Wieers' repository baseurl=http://apt.sw.be/redhat/fc$releasever/en/i386/dag [freshrpms] name=Fedora Core $releasever freshrpms baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms http://freshrpms.atrpms.net/fedora/linux/$releasever/$basearch/freshrpms [updates-released] name=Fedora Core $releasever - $basearch - Released Updates baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/ #[updates-testing] #name=Fedora Core $releasever - $basearch - Unreleased Updates #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/ #[development] #name=Fedora Core $releasever - Development Tree #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/ [xcyb-stable] name=Fedora Core 2 ( xcyborg / stable ) baseurl=http://rpms.xcyb.org/fedora/2/stable/ [xcyb-bleeding] name=Fedora Core 2 ( xcyborg / bleeding ) baseurl=http://rpms.xcyb.org/fedora/2/bleeding/ = -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Dude- what happened to my yum!
btw, livna and freshrpms/dag/apt are not necessarily compatible -- look out. http://dag.wieers.com/home-made/apt/FAQ.php#D I also note that you don't gpgcheck dag repos. Oh! -- Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Find weirdo
Can someone explain this? [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print %p find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' \; [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' ; [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print '%p' ; find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print '%p' \; find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ It is one of those occassional jobs I run and as far as I can understand it, something must have changed because what I've written down on paper is no longer working. TIA -- Terry Collins {:-)}}} email: terryc at woa.com.au www: http://www.woa.com.au Wombat Outdoor Adventures Bicycles, Computers, GIS, Printing, Publishing People without trees are like fish without clean water -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Find weirdo
On Thu Dec 16, 2004 at 13:21:03 +1100, Terry Collins wrote: Can someone explain this? [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print %p find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' \; [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' ; [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print '%p' ; find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print '%p' \; find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ It is one of those occassional jobs I run and as far as I can understand it, something must have changed because what I've written down on paper is no longer working. smtpdAB* is exapnding to a directory, so you have a path after an expression. Try putting it in quotes maybe? -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Find weirdo
Terry Collins wrote: Can someone explain this? [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print %p find: paths must precede expression Usage: find [path...] [expression] find /spam -name 'smtpdAB*' -print The shell is expanding the * before calling find. * means all files in the current directory so you can figure that find is mighty confused. HTH P. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Find weirdo
quote who=Terry Collins Can someone explain this? [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print %p The problem is your escaping of smtpdAB* - as it is, the expression will be expanded by the caller and find will actually receive a list of matching files/dirs in the current directory. You want to put smtpdAB* in quotes, or escape the wildcard so that the string 'smtpdAB*' is passed to find, rather than the list of matching files/dirs. find /spam -name 'smtpdAB*' -print %p or find /spam -name smtpdAB\* -print %p should do the trick. J. -- Jan Schmidt [EMAIL PROTECTED] Pants Pants Pants Pants Pants Pants Pants Pants. Lovely Pants, wonderful Pa-ants. Lovely Pants, wonderful Pa-ants. (Shut up! Bloody Vikings.) -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Find weirdo
On Thu, 16 Dec 2004 13:21:03 +1100, Terry Collins [EMAIL PROTECTED] wrote: Can someone explain this? [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print %p Does this mean you have some saved spam? Any chance of organising you to inject that back to a email address of mine for some spam filter testing. Could supply address via private email if its possible. I just installed postfix + spamassassin + clamav + amavis lastnight and have yet to test it with some spam. It does need work config wise as I think I want to sort said spam etc into certain user folder, not to mention I wouldn't mind keeping a copy to reinject later for testing (much like it appears you have). I am happy with postfix etc. Wasnt hard to install (as compared to my qmail install many years ago for the first time). Thanks -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: Insert text at the beginning of a file
Ouch a problem begging for perl as a solution! James On Wed, 2004-12-15 at 03:01 +1100, Dan Treacy wrote: I have a text file that I'm trying to update from a shell script but the information needs to be inserted at the beginning of the file. I have a couple of ways to do this that involves lots of cating and mving and temporary files and the like etc. Not real high on the efficiency scale. By the time you muck around it is far easier to do something like this: echo SOMETEXT newfile$$ echo some more text and $VARIABLE newfile$$ cat oldfile newfile$$ mv oldfile oldfile.bak mv newfile$$ oldfile If you consider what is happening with the filesystem anyway either you do it or the OS does it so the result is the same. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Swap speed
Lyle Chapman wrote: Has anyone got any ideas on how to speed up a swap space/drive, Buy more RAM, it's cheap. Failing that, use the fastest part of the disk for the swap partition - that's the outer edge, or the first few sectors. I have a 3ghz, 2gb ram, 2gb swap on ata machine running FC3. I create a lot of 3d material and run into swap usage with big scenes. This is ok but after a while i end up having to restart the machine or turn the swap off then on as it becomes extremely slow to do anything and at times X will quit or the 3d app I am using. Use the VM information in top or Gnome System Monitor to find out exactly which app is eating all your RAM. Would it be feasible to use a SCSI drive and split it up into multiple 2gb swap partitions or has anyone got a better suggestion. Multiple swap partitions won't help if they're on the same physical device. It will if they're on different disks. Mike -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] RE: Netcomm np1400
hi pppoa is ppp over atm pppoe is ppp over ethernet the former is usually only atainable when the adsl modem is a pci card. the later is usuall what you get when the interface between the modem and the computer is ethernet Both only apply when the modem is in bridged mode A On Wed, Dec 15, 2004 at 01:00:28PM +0930, Alan Millsted wrote: What's the difference between pppoa and pppoe I hve been trying to set it up as per ahow to from Lnux.Questions.org That says no IP on the NIC that the system is using to get to ISP just a valid HWADDA. Your are right about doing your head in! Alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 December 2004 11:38 AM To: Alan Millsted Subject: Re: [SLUG] RE: Netcomm np1400 if you just have the modem and one pc on the same network 192.168.1.0/24 and using pppoa or pppoe on the modem then yes, if your doing it with 2 lan cards in one box, then something like this modem 192.168.1.1 gateway eth0 192.168.1.254 gateway eth1 192.168.0.254 hub other pcs in your lan 192.168.0.x these pcs use eth1 as default route gateway pc uses the modem as the default route and the firewall will need to be adjusted to suit. you should be able to see the modem with a browser from the pc's on your lan. Alan Millsted wrote: I need a bit of time to get my head round all that, but this isn't the origial modem from TPG. I havent tried to set that one up on thia Linux box because that is my only link to the real world. Are you saying I should set the gateway on my system as the IP of the modem 192.168.1.1 Thanks and any info helps Alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 December 2004 10:33 AM To: Alan Millsted Subject: Re: [SLUG] RE: Netcomm np1400 Mate, these things can do your head in, tgp like most dsl providers should be using helstras network for the connection??? it will support most modes of connection, so set the modem up like it was originally sent to you, connect to it with a pc on the same network as the modem using it as the gateway and ns then by driving the modem with a browser, see if you can get the connection happening, if so then the providers part is working fine. you could prolly even get away with using your modem like this with 2 lan cards in the gateway linux box, one on each network and route all the traffic out the lan card connected to the modem, on the gateway box, route all internal traffic, to that lan card on the gateway box. or then frig with the modem to try and get it to do bridging mode till it works, the pado timeout errors, or whatever, are usually to do with authentication problems at the other end, and go away after an hour or so i haven't really been following this thread, so this could all be bullshit, if so sorry for wasting your time. Alan Millsted wrote: This is the way I feel it should be (not that I realy know anything about it) but logic seems to point that way, so I am thinking that it is -- Greg -[ Registered Linux User#159346 * http://baratel.com/~greg/ ]- This Email may contain privileged information and remains the property of the author. You may not reveal the contents to anyone without the authors express authority to do so. ... If Bill Gates had a dime for every time a Windows box crashed... Oh, wait a minute, he already does. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- Greg -[ Registered Linux User#159346 * http://baratel.com/~greg/ ]- This Email may contain privileged information and remains the property of the author. You may not reveal the contents to anyone without the authors express authority to do so. ... Microsoft has argued that open source is bad for business, but you have to ask, Whose business? Theirs, or yours? --Tim O'Reilly -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html signature.asc Description: Digital signature -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] RE: Netcomm np1400
wild guess but do you have a cross over cable between the 2 ? every time you try and tx you get a carrier error ! A On Wed, Dec 15, 2004 at 03:37:03PM +0930, Alan Millsted wrote: Ok, I have done that and allthough I haven't fired up the modem yey I can't see eth0 192.168.0.254 from anywhere. And this is the 'config -a' output [EMAIL PROTECTED] ~]# service network start Setting network parameters:[ OK ] Bringing up loopback interface:[ OK ] Bringing up interface at_home: [ OK ] Bringing up interface the_world: [ OK ] [EMAIL PROTECTED] ~]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0D:61:6A:CA:A9 inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20d:61ff:fe6a:caa9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:352 errors:0 dropped:0 overruns:0 frame:0 TX packets:76 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:51971 (50.7 KiB) TX bytes:5848 (5.7 KiB) Interrupt:10 Base address:0xa000 eth1 Link encap:Ethernet HWaddr 00:04:75:E7:ED:6C inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::204:75ff:fee7:ed6c/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:97 errors:0 dropped:0 overruns:0 carrier:97 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:6054 (5.9 KiB) Interrupt:5 Base address:0x9000 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:16310 errors:0 dropped:0 overruns:0 frame:0 TX packets:16310 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:13316576 (12.6 MiB) TX bytes:13316576 (12.6 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Sa you see eth1 is up but not running??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 December 2004 11:38 AM To: Alan Millsted Subject: Re: [SLUG] RE: Netcomm np1400 if you just have the modem and one pc on the same network 192.168.1.0/24 and using pppoa or pppoe on the modem then yes, if your doing it with 2 lan cards in one box, then something like this modem 192.168.1.1 gateway eth0 192.168.1.254 gateway eth1 192.168.0.254 hub other pcs in your lan 192.168.0.x these pcs use eth1 as default route gateway pc uses the modem as the default route and the firewall will need to be adjusted to suit. you should be able to see the modem with a browser from the pc's on your lan. Alan Millsted wrote: I need a bit of time to get my head round all that, but this isn't the origial modem from TPG. I havent tried to set that one up on thia Linux box because that is my only link to the real world. Are you saying I should set the gateway on my system as the IP of the modem 192.168.1.1 Thanks and any info helps Alan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 December 2004 10:33 AM To: Alan Millsted Subject: Re: [SLUG] RE: Netcomm np1400 Mate, these things can do your head in, tgp like most dsl providers should be using helstras network for the connection??? it will support most modes of connection, so set the modem up like it was originally sent to you, connect to it with a pc on the same network as the modem using it as the gateway and ns then by driving the modem with a browser, see if you can get the connection happening, if so then the providers part is working fine. you could prolly even get away with using your modem like this with 2 lan cards in the gateway linux box, one on each network and route all the traffic out the lan card connected to the modem, on the gateway box, route all internal traffic, to that lan card on the gateway box. or then frig with the modem to try and get it to do bridging mode till it works, the pado timeout errors, or whatever, are usually to do with authentication problems at the other end, and go away after an hour or so i haven't really been following this thread, so this could all be bullshit, if so sorry for wasting your time. Alan Millsted wrote: This is the way I feel it should be (not that I realy know anything
Re: [SLUG] Swap speed
I would suggest that you have more than enough ram on your machine to be doing what you need to be doing. Some other people have mentioned to check that hi mem support is enabled which is important to check too. What 3d app are you running? I haven't seen any scene in my years of working that couldn't be worked in 2Gigs of ram. Ram might seem cheap for one workstation but when you have 300-1000 rendernodes that all need to have 4 gigs of ram to handle some ones scene you suddenly start to wear costs. On 14/12/2004, at 2:09 PM, Lyle Chapman wrote: Has anyone got any ideas on how to speed up a swap space/drive, I have a 3ghz, 2gb ram, 2gb swap on ata machine running FC3. I create a lot of 3d material and run into swap usage with big scenes. This is ok but after a while i end up having to restart the machine or turn the swap off then on as it becomes extremely slow to do anything and at times X will quit or the 3d app I am using. Would it be feasible to use a SCSI drive and split it up into multiple 2gb swap partitions or has anyone got a better suggestion. Thanks, Lyle Chapman Pre-Press Supervisor Torch Publishing Co. 47 Allingham Street, Condell Park 2200, NSW, Australia 612 9795 http://www.torchpublishing.com.au -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Find weirdo
[EMAIL PROTECTED] wrote on 16/12/2004 01:21:03 PM: Can someone explain this? [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print %p find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' \; [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print `%p' ; [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print '%p' ; find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* -print '%p' \; find: paths must precede expression Usage: find [path...] [expression] [EMAIL PROTECTED]:/spam-hold/spam-hold$ try -printf %p -print has no options I would also suggest escaping the '*' so bash doesn't try to expand it. Regards, Scott -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html