Re: [SLUG] Re:KVM switches
> >Cworld.com.au has Belkin KVM switches at $69 (2-port), $159 to $259 > 5. Install www.shorewall.net software to > have a bridge-firewall. > > I made 4-port switch for less than $100. KVM = Keyboard, Video, Mouse. A KVM switch is very different to a host running a network bridge. - Jeff -- GUADEC 2005: May 29th-31st http://2005.guadec.org/ "We live in a place where policy discussion is conducted with money." - Eben Moglen -- 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] Script Help
Thanks to all who replied, I have seen where my error is and have numerous alternatives, the task is now underway properly. Cheers SImon > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sonia Hamilton > Sent: Wed, 11. May 2005 3:19 PM > To: slug@slug.org.au > Subject: Re: [SLUG] Script Help > > > * On Wed, May 11, 2005 at 01:48:35PM +1000, Simon wrote: > > Hi all, > > Why is the following script ripping out every directory rather than > > just those in 'studentfile' > > > > #!/bin/bash > > while read name; do > > cd $name > > Fails here if directory $name doesnt exist; next line deletes > everything. > > > rm -fvr * > > cd .. > > rmdir $name > > done < studentlist > > -- > Sonia Hamilton. GPG key A8B77238. > . > Type cat vmlinuz > /dev/audio to hear the voice of $DEITY. > -- > 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] Re:KVM switches
[EMAIL PROTECTED] wrote: Cworld.com.au has Belkin KVM switches at $69 (2-port), $159 to $259 (4-port) and $707 (8-port). Is there a cheaper option or software workaround one could use? I only need this for temporary/test purposes. Build one. Bill-of-Materials: 1. Second-Hand PII PC. 2. Add 1 ether card(makes a 2 port switch) 3. or Add n ether cards (makes a n+1 switch) 4. Linux OS with Bridge modules 5. Install www.shorewall.net software to have a bridge-firewall. I made 4-port switch for less than $100. O Plameras -- 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:KVM switches
[EMAIL PROTECTED] wrote: > > > Cworld.com.au has Belkin KVM switches at $69 (2-port), $159 to $259 (4-port) > and > $707 (8-port). Is there a cheaper option or software workaround one could use? > > I only need this for temporary/test purposes. I got a two port KVM for $49 dollars 6-12 months ago. I can't believe that they have gone up in price since then. I got it at Adelong behind the QVB in the city. Erik -- +---+ Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) +---+ "Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live." -- Martin Golding -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] urgent! Hard disc dissapeared.
I was doing some recording using audacity, when i tried to save a project, the system froze and i could not switch to a console to shut the machine down, so i had to use the reset button and after this my system could not boot up anymore, it could not a mount the hard disk which i mount to /home ... the error message reads The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap of ufs or something else), then the superblock is currupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 then i log into the rescue mode and the /dev/hdb1 is not there. what is going on here? googling didn't give me much more information. i have all my data on this disk and only have a partial backup ... can anyone please help me? thanks a lot urgent! Hard disc disappeared. J Ai -- 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:KVM switches
Cworld.com.au has Belkin KVM switches at $69 (2-port), $159 to $259 (4-port) and $707 (8-port). Is there a cheaper option or software workaround one could use? I only need this for temporary/test purposes. regards Kirti -- 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] Script Help
Simon wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Rundle Sent: Wed, 11. May 2005 2:11 PM To: SLUG Subject: Re: [SLUG] Script Help Simon scribed; Why is the following script ripping out every directory rather than just those in 'studentfile' #!/bin/bash while read name; do cd $name rm -fvr * cd .. rmdir $name done < studentlist Repeat after me: "Never use a star with rm -r !" Ah, exactly what happened. OK, I have given myself six of the best and promise never to do that again! Can I get some credit for being able to restore them from the backup :-) In C, one wouldn't (I hope) call a function and then ignore possible error return, i.e. if (chdir(path) == 0) { /* do your thang */ } else { /* handle error: see errno */ } So why eschew the same when programming in the shell? while read name; do if cd $name; then rm -fvr * cd .. rmdir $name else echo 1>&2 "skipping directory $name: could not cd" fi done < studentlist cheers rickw -- _ Rick Welykochy || Praxis Services People who enjoy eating sausage and obey the law should not watch either being made. -- Otto von Bismarck -- 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] Script Help
Yeah, I replied, but not to the list. It follows: // begin reply // Still, the previous reply makes an interesting point that I overlooked. Using star in "rm -r" is reckless, in general. But by issuing a "rm -rf $name" will remove the directory along with it's contents, whereas "rm -rf $name/*" wipes only the content out. Up to you to decide what's best. A little bit paranoia =) , but since the subject always leaves us a bunch of options, maybe it's worth mentioning: given the fact that this is probably a non-interactive app, we're assuming a line will never contain a front-slash plus some other folder name. One fine day, the app finds a line containing "/etc", you'll end up removing /etc/*. Empty lines should not be a problem because bash (and I don't know what's the behavior of shells in this case) will ignore them. That goes with the user you're running the script as, possibility of such line getting into the file, and lots of things you guys probably know. My "I-owe-you-2-cents" tip. Cheers. // end reply // On 5/11/05, Alexander Samad <[EMAIL PROTECTED]> wrote: > On Wed, May 11, 2005 at 02:10:40PM +1000, Peter Rundle wrote: > > Simon scribed; > > > > >Why is the following script ripping out every directory rather than just > > >those in 'studentfile' > > > > > >#!/bin/bash > > >while read name; do > > >cd $name > > >rm -fvr * > > >cd .. > > >rmdir $name > > >done < studentlist > > > > > > > > Repeat after me: "Never use a star with rm -r !" > > > > In your script what will happen if there is a name in the list that > > doesn't exist as a directory? > > cd $name will fail leaving you in the current directory. > > rm -r * will then remove everything in the current directory.. > > > > as Vino said do this; > > > > while read name; do > > rm -fvr $name > > might be best to do this incase there are special characters in the > directory name ! > >rm -fvr "$name" > > > done < studentlist > > > > much safer. > > > > 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 > > > > > BodyID:116513997.2.n.logpart (stored separately) > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > > -- Julio C. Ody http://rootshell.be/~julioody -- 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] Script Help
On Wed, May 11, 2005 at 02:10:40PM +1000, Peter Rundle wrote: > Simon scribed; > > >Why is the following script ripping out every directory rather than just > >those in 'studentfile' > > > >#!/bin/bash > >while read name; do > >cd $name > >rm -fvr * > >cd .. > >rmdir $name > >done < studentlist > > > > > Repeat after me: "Never use a star with rm -r !" > > In your script what will happen if there is a name in the list that > doesn't exist as a directory? > cd $name will fail leaving you in the current directory. > rm -r * will then remove everything in the current directory.. > > as Vino said do this; > > while read name; do > rm -fvr $name might be best to do this incase there are special characters in the directory name ! rm -fvr "$name" > done < studentlist > > much safer. > > 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 > 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] Script Help
* On Wed, May 11, 2005 at 01:48:35PM +1000, Simon wrote: > Hi all, > Why is the following script ripping out every directory rather than just > those in 'studentfile' > > #!/bin/bash > while read name; do > cd $name Fails here if directory $name doesnt exist; next line deletes everything. > rm -fvr * > cd .. > rmdir $name > done < studentlist -- Sonia Hamilton. GPG key A8B77238. . Type cat vmlinuz > /dev/audio to hear the voice of $DEITY. -- 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] Script Help
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Peter Rundle > Sent: Wed, 11. May 2005 2:11 PM > To: SLUG > Subject: Re: [SLUG] Script Help > > > Simon scribed; > > >Why is the following script ripping out every directory rather than > >just those in 'studentfile' > > > >#!/bin/bash > >while read name; do > > cd $name > > rm -fvr * > > cd .. > > rmdir $name > >done < studentlist > > > > > Repeat after me: "Never use a star with rm -r !" Ah, exactly what happened. OK, I have given myself six of the best and promise never to do that again! Can I get some credit for being able to restore them from the backup :-) > In your script what will happen if there is a name in the list that > doesn't exist as a directory? > cd $name will fail leaving you in the current directory. > rm -r * will then remove everything in the current directory.. > > as Vino said do this; > > while read name; do >rm -fvr $name > done < studentlist > > much safer. > > 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 -- 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] Script Help
On Wed, 2005-05-11 at 13:58 +1000, Julio Cesar Ody wrote: > $ for dirname in `cat studentlist`; do rm -rf $dirname/*; done cat studentlist | while read dirname; do rm -rf $dirname/*; done this will cope more elegantly with large numbers of line in the slug student list file. The line -- Regards Peter Miller <[EMAIL PROTECTED]> /\/\*http://www.canb.auug.org.au/~millerp/ PGP public key ID: 1024D/D0EDB64D fingerprint = AD0A C5DF C426 4F03 5D53 2BDB 18D8 A4E2 D0ED B64D See http://www.keyserver.net or any PGP keyserver for public key. signature.asc Description: This is a digitally signed message part -- 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] Script Help
Simon scribed; Why is the following script ripping out every directory rather than just those in 'studentfile' #!/bin/bash while read name; do cd $name rm -fvr * cd .. rmdir $name done < studentlist Repeat after me: "Never use a star with rm -r !" In your script what will happen if there is a name in the list that doesn't exist as a directory? cd $name will fail leaving you in the current directory. rm -r * will then remove everything in the current directory.. as Vino said do this; while read name; do rm -fvr $name done < studentlist much safer. 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] Script Help
> Why is the following script ripping out every directory rather than just > those in 'studentfile' You mean "studentlist"? Anyway, you could try: $ for dirname in `cat studentlist`; do rm -rf $dirname/*; done Will remove everything inside each folder listed in a file called studentlist, located in the same directory you're running the script. Hope it helps. On 5/11/05, Simon <[EMAIL PROTECTED]> wrote: > Hi all, > Why is the following script ripping out every directory rather than just > those in 'studentfile' > > #!/bin/bash > while read name; do > cd $name > rm -fvr * > cd .. > rmdir $name > done < studentlist > > > OLMC > Simon Bryan > IT Manager > [EMAIL PROTECTED] > LMB 14 > North Parramatta > tel: 96833300 > fax: 98901466 > mobile: 0414238002 > > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- Julio C. Ody http://www.livejournal.com/users/julioody/ -- 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] Script Help
Simon wrote: Hi all, Why is the following script ripping out every directory rather than just those in 'studentfile' #!/bin/bash while read name; do cd $name rm -fvr * cd .. rmdir $name done < studentlist while read name; do rm -fvr $name done < studentlist -- Vino Fernando Crescini Intelligent Systems Laboratory School of Computing & IT phone: +61 2 4736 0140 University of Western Sydney email: [EMAIL PROTECTED] Locked Bag 1797 web: www.cit.uws.edu.au/~jcrescin Penrith South DC NSW 1797 "What's a battle?" --Ralph Wiggum Whacking Day (Episode 9F18) Scanned by SCIT E-Mail Gateway http://www.cit.uws.edu.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] Script Help
Hi all, Why is the following script ripping out every directory rather than just those in 'studentfile' #!/bin/bash while read name; do cd $name rm -fvr * cd .. rmdir $name done < studentlist OLMC Simon Bryan IT Manager [EMAIL PROTECTED] LMB 14 North Parramatta tel: 96833300 fax: 98901466 mobile: 0414238002 -- 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] GD with php and apache
Ok as per Murphys requirements, I've found the answer 5 minutes after posting. Must install php-gd rpm. This doesn't appear in the rpm database on the older FC3 box I guess they've split up of php into more rpm's. I'd still appreaciate it if any one knows why phpinfo() fails to the browser but works fine on the command line. Cheers Pete. -- 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] GD with php and apache
Kind of... "Call to undefined function" means PHP is not loading the extension at all. So we can start here. Can't you run phpinfo()? I found a typo on your example down there. > phpinfo(); > ?> Should be: If phpinfo() doesn't do anything, it's more serious than just GD not running. I have no source knowledge to tell why this would be happening, IF this is happening. First of all, try to figure out what's going on with phpinfo(), and then, if you manage to get it working, check the output to see if GD is loaded. And last, compile it from source if you're still having problems. I never had issues when doing so. On 5/11/05, Peter Rundle <[EMAIL PROTECTED]> wrote: > Sluggers, > > I'm getting this error; > >Call to undefined function imageCreate() > > on a new machine on which I just installed FC4(test2). The following > rpms are installed (as per the distribution) > > gd-2.0.33-1 > php-5.0.4-2 > httpd-2.0.53-6 > > Google says that I need to download and compile php using "-with-gd" but > I know that the older php rpms with FC3 are configureable to support GD > and /usr/share/doc/php-4.3.4/gd_README says that gd is bundled with php. > > My memory says that I need to enable GD in php somehow but I can't find > any reference to it in /etc/php.ini, /etc/httpd/conf.d/php.conf on the > box that works. Am I just not seeing it or have I missed something? In > addition I tried to run > > phpinfo(); > ?> > > to a browser but I get nothing. The httpd error log reports; > > PHP Warning: Unknown: Failed opening '/var/www/html/phpinfo.php' for > inclusion (include_path='/var/www/html/include') in Unknown on line 0 > > yet the phpinfo routine works from the command line and reports > '--with-gd=shared' > > Cluesticks? > > Pete > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- Julio C. Ody http://www.livejournal.com/users/julioody/ -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] GD with php and apache
Sluggers, I'm getting this error; Call to undefined function imageCreate() on a new machine on which I just installed FC4(test2). The following rpms are installed (as per the distribution) gd-2.0.33-1 php-5.0.4-2 httpd-2.0.53-6 Google says that I need to download and compile php using "-with-gd" but I know that the older php rpms with FC3 are configureable to support GD and /usr/share/doc/php-4.3.4/gd_README says that gd is bundled with php. My memory says that I need to enable GD in php somehow but I can't find any reference to it in /etc/php.ini, /etc/httpd/conf.d/php.conf on the box that works. Am I just not seeing it or have I missed something? In addition I tried to run to a browser but I get nothing. The httpd error log reports; PHP Warning: Unknown: Failed opening '/var/www/html/phpinfo.php' for inclusion (include_path='/var/www/html/include') in Unknown on line 0 yet the phpinfo routine works from the command line and reports '--with-gd=shared' Cluesticks? Pete -- 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] postfix with TLS/SASL on debian woody
O Plameras wrote: I assume SMTP AUTH is now working. no, but I've run out of time now, will have to play with it again at a later date. thanks for your efforts anyway. Dave. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] SCLUG / University of Wollongong Installfest
SCLUG / University of Wollongong Installfest When: Saturday, Sunday July 30-31, 9:30am to 5:00pm Where: University of Wollongong To help out CompSci students at UoW, we're going to run a specialised installfest to help them replicate the lab Linux systems on their home machines. The UoW CompSci department uses a fairly standard Debian install, so this installfest will be using Ubuntu. Volunteer demonstrators are required on one or both days to help out with the hardware compatibility issues that are likely to crop up, and to demonstrate some of the basic configuration tasks that students will need to do once they take their shiny new systems home. For anyone wishing to stay overnight in Wollongong, billeting will be organised. Please contact Ashley Maher ([EMAIL PROTECTED]) if you need accommodation. -- 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] Squid: Sometimes files stop downloading after 1 mb
I have looked through the config file and it is all defaults. I tried setting reply_body_max_size 0 And that didn't work (I think the documentation is wrong on this) because you need an allow line. reply_body_max_size 0 allow all Works but doesn't fix the problem. Likewise Reply_body_max_size 9 allow all Also doesn't fix it. Not at work and can't SSH for some reason but I looked at the machine and there was no major resource usage. It has 512mb ram, not sure about the processor. It started happening recently but I'm not sure which update caused it, because it is an intermittent problem. I guess I will post a bug report. -Original Message- From: Kevin Saenz [mailto:[EMAIL PROTECTED] Sent: Monday, May 09, 2005 8:34 PM To: [EMAIL PROTECTED] Cc: slug@slug.org.au Subject: Re: [SLUG] Squid: Sometimes files stop downloading after 1 mb what is your config file like? are you caching sites? how much disk space do you have? is your system swapping heaps? We have one squid server with 1Ghz CPU, 1 Gb RAM and 2 TB of disk space looking after 2800 ppl >Hey SLUG, > >We are experiencing a strange problem with Squid. We start Squid and it >runs fine at first. Then after a period of time it gets into a state >where when downloading a file after just before it reaches the 1 mb mark >the download pauses as if it has timed out. Once Squid is in this state >it can be reliably reproduced. I have sometimes found the downloads >resume after a period of waiting, say 10-15 minutes, but are then >corrupted. Once in this state it can be restarted and the problem >sometimes re-appears and sometimes goes away. > >We are using Squid 2.5.9-6 > >Joel > > > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html