Re: [SLUG] Search and replace question
Thanks both of you. When I try while read replace search Mapping/$1-Mapping the loop keeps fetching the first record and does not step through the mapping file. I am now using: cp $2 TestSed export IFS=', ' cat Mapping/$1-Mapping1 | while read replace search do if [ $search != $replace ]; then echo $replace $search perl -i -p -e s/\Q$search/$replace/g TestSed fi done The conditional fixes the issue with the perl replace command not ending on the last line. I'm quite happy with the end result, thanks. It would be nice to know why that line does not work though Just to fill you in: This script is called from a script that does preparatory work and calls other scripts then finishes the queries up to a certain point - to get the menial work out of the way. I wanted the jobs separate so that I could use them standalone if required at a later date. Thanks again - Regards, Mehmet - Original Message - Subject: Re: [SLUG] Search and replace question From: Amos Shapira amos.shap...@gmail.com To: Rick Welykochy r...@praxis.com.au CC: SLUG slug@slug.org.au Date: 06-03-2010 13:46 On 6 March 2010 13:23, Rick Welykochy r...@praxis.com.au wrote: Try this: #/bin/bash cp $2 TestResult export IFS=',' cat Mapping/$1-Mapping | while read replace search do perl -i -p -e s/\Q$search/$replace/g TestResult done 12 points for this answer :). That's the proper way to do it. One thing that makes me cringe a bit whenever I see it is cat single-file |, replace it with an input redirection: while read replace search Mapping/$1-Mapping ... --Amos -- 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] Search and replace question
What I am using is: cp $2 TestSed export IFS=', ' while read replace search do if [ $search != $replace ]; then echo $replace $search perl -i -p -e s/\Q$search/$replace/g TestSed fi done Mapping/$1-Mapping1 Regards, Mehmet -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Search and replace question
Hi, I'm having trouble with the following search and replace script: #!/bin/bash # two parameters are passed in, a mapping file and the text file to replace in for fields in $(cat ./Mapping/$1-Mapping |awk 'BEGIN{FS=,}{print $2}') do searchstring= $fields replacestring=`grep -w $fields ./Mapping/$1-Mapping |awk 'BEGIN{FS=,}{print $1}'` sed -e s/$searchstring, / $replacestring, /g $2 TestResult done it fails if there is a $ sign in the variable $field e.g. amount_$ . How can I get grep to behave the way I want? Any help would be appreciated. Regards, Mehmet -- 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] Search and replace question
Hi, Thanks for the reply No, it is not very elegant and no, I'm not concerned about that - I just need it to run through once, it is part of a bigger script that creates sql queries and temporary tables. part of the table it is reading from is: ADD_NARRATION_19 ,ADD_NARATION_19 ADD_NARRATION_20 ,ADD_NARATION_20 CLAIM_VALUE ,CLAIM_VALUE INVOICE__035 ,INVOICE_$ This is in a csv file. the end result gives something like: SELECT ADD_NARRATION_19, ADD_NARRATION_19, ADD_NARRATION_20, ADD_NARRATION_20 CLAIM_VALUE, CLAIM_VALUE, INVOICE__035 FROM G110 WHERE Regards, Mehmet Hi Mehmet, A sample input file would help a little. My first guess is there are no quotes around the $field: grep -w $field Also it's not the most elegant script - which you may not care about :) Nima On Sat, Mar 6, 2010 at 8:45 PM, Mehmet Yousouf mehm...@carramar.auslin.com.au wrote: Hi, I'm having trouble with the following search and replace script: #!/bin/bash # two parameters are passed in, a mapping file and the text file to replace in for fields in $(cat ./Mapping/$1-Mapping |awk 'BEGIN{FS=,}{print $2}') do searchstring= $fields replacestring=`grep -w $fields ./Mapping/$1-Mapping |awk 'BEGIN{FS=,}{print $1}'` sed -e s/$searchstring, / $replacestring, /g $2 TestResult done it fails if there is a $ sign in the variable $field e.g. amount_$ . How can I get grep to behave the way I want? Any help would be appreciated. Regards, Mehmet -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- http://me.nima.id.au/ Hi Mehmet, A sample input file would help a little. My first guess is there are no quotes around the $field:    grep -w $field Also its not the most elegant script - which you may not care about :) NimaOn Sat, Mar 6, 2010 at 8:45 PM, Mehmet Yousouf mehm...@carramar.auslin.com.au wrote: Hi, Im having trouble with the following search and replace script: #!/bin/bash # two parameters are passed in, a mapping file and the text file to replace in for fields in $(cat ./Mapping/$1-Mapping |awk BEGIN{FS=,}{print $2}) do  searchstring= $fields  replacestring=`grep -w $fields ./Mapping/$1-Mapping |awk BEGIN{FS=,}{print $1}`  sed -e s/$searchstring, / $replacestring, /g $2 TestResult done  it fails if there is a $ sign in the variable $field e.g. amount_$ . How can I get grep to behave the way I want? Any help would be appreciated. Regards, Mehmet -- SLUG - Sydney Linux Users Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- http://me.nima.id.au/ -- 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] Search and replace question
Hi Rick, Thanks for the suggestion, I have tried the read command and it still does not work. The perl version keeps going after the last record in the list and it does not change anything. I used the read command in my script (thanks for the idea) and it is much faster. As you quite rightly said, the $ sign is seen as a control character but enclosing the sed command within quotes fixes that. The main problem was using -e instead of -i in sed, spotted it after looking at your script. . My solution was: cat Mapping/$1-Mapping1 | while read replacestring searchstring do if [ $searchstring != $replacestring ]; then sed -i s/ $searchstring / $replacestring /g $2 fi done Thus only replacing when required I would like to get your script working too but it just keeps running after it hits the last record. I suspect it has something to do with Windows files (the text files are from a Windows environment). Thank you again Rick and Nima. Regards, Mehmet - Original Message - Subject: Re: [SLUG] Search and replace question From: Rick Welykochy r...@praxis.com.au To: Mehmet Yousouf mehm...@carramar.auslin.com.au Date: 06-03-2010 11:48 Mehmet, Be aware that there are special characters in regular expressions as used by grep and sed. $ is special: it matches the end of the line. There are others, like ^ [ ] + * etc. If any of these special chars are in your searchstring, grep will fail and sed will fail. Mehmet Yousouf wrote: I'm having trouble with the following search and replace script: #!/bin/bash # two parameters are passed in, a mapping file and the text file to replace in for fields in $(cat ./Mapping/$1-Mapping |awk 'BEGIN{FS=,}{print $2}') do searchstring= $fields replacestring=`grep -w $fields ./Mapping/$1-Mapping |awk 'BEGIN{FS=,}{print $1}'` sed -e s/$searchstring, / $replacestring, /g $2TestResult done it fails if there is a $ sign in the variable $field e.g. amount_$ . How can I get grep to behave the way I want? One solution: 1. read in the replace and search strings in one go, which makes the script run faster and avoids the need for grep. bash's read command is fine for this if we set the field separator (IFS) to a comma 2. use perl to perform the substitution, incorporating the special characters \Q at the beginning of the search string, which tells perl to ignore the special characters I spoke of above. 3. we use the -i switch in perl to edit the file TestResult in situ and the -p switch to wrap the perl command (after -e) in an input loop followed by a print Try this: #/bin/bash cp $2 TestResult export IFS=',' cat Mapping/$1-Mapping | while read replace search do perl -i -p -e s/\Q$search/$replace/g TestResult done cheers rickw -- _ Rick Welykochy || Praxis Services I think there is a world market for about five computers. -- Thomas Watson, IBM, 1943 -- 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] DODO
I totally recommend Internode - plans are a little more pricey but the speed is always consistent and so far I've never had to call tech support. When we connected to internode their support and sales guys have been top notch. I've been using TPG for a couple of years (ADSL2, shaped). Running mail, web, ssh etc.fixed IP address as well no problems so far (which means I have no idea how good their support is) - I average about 25gig per month in downloads, speed is usually above 10 meg ( never seen it break the 20 mark). Regards, Mehmet -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Advice on data transfer over shortwave
Hi, I have a friend that will be going to the Solomon Islands for a year (work on a thesis). He will have some solar panels to give him some power but not much else. What I am hopeful is possible is to set him up so that he can use rf to connect and merge / update a git repository (he is also a programmer - and a linux user) and possibly send emails. Has anyone got any experience in this area? Is it workable? Advice on equipment / gotchas /power requirements / set up would be greatly appreciated. He will be heading off in July and I would like to test something before he goes. Regards, Mehmet -- 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] Advice on data transfer over shortwave
Hi all, just to let you all know, I am grateful for the advice from Grahame, Del and Terry. I have aimed a bit lower in our ambitions and will look at first making sure we have reliable power to keep his notebook running and aim at giving him email capability. With the programming, we will have to organise his part a bit more carefully (he will be going to the shops every 6 to 8 weeks, he can synchronise then ). This has ended up a bit off topic so my apologies. Thanks again Regards, Mehmet - Original Message - Subject: [SLUG] Advice on data transfer over shortwave From: Mehmet Yousouf [EMAIL PROTECTED] To: SLUG slug@slug.org.au Date: 15-06-2008 11:54 Hi, I have a friend that will be going to the Solomon Islands for a year (work on a thesis). He will have some solar panels to give him some power but not much else. What I am hopeful is possible is to set him up so that he can use rf to connect and merge / update a git repository (he is also a programmer - and a linux user) and possibly send emails. Has anyone got any experience in this area? Is it workable? Advice on equipment / gotchas /power requirements / set up would be greatly appreciated. He will be heading off in July and I would like to test something before he goes. Regards, Mehmet -- 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
[SLUG] Data visualisation tools?
Hi, does anyone know of an application that has similar features to Origin Pro by Rockware (basically a data visualisation tool) and runs on Linux? I don't mind paying (I do but I will...??)it would make my life easier if I didn't have to install Windows on one of MY notebooks - no, I don't want to try and run it using wine, it has to run Linux. Second option is OS X, yes, I have emailed Rockware to ask about a Linux version. Regards, Mehmet -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: Re: [SLUG] messed up system
Fixed! blank nsswitch.conf - copied over the original. Thanks Matt. Yes, I use deb on the ibook too (still learning the intricacies of deb) I like the apps for the ibook in Mandrake club, makes some things easy.Regards, Mehmet/etc/nsswitch.conf. If the hosts: line doesn't have 'dns' in it, you'll getthe symptoms you've described, especially if you're getting this behaviouracross everything, old and new, in the system. The file is used by glibc;if you've managed to compile glibc without DNS NSS support, you'll also getthe same sort of problems. You'll want to make sure that /lib/libnss_dns*exists and has complete linkage. System is running a modified (bastardised) Mandrake ppc-9.1.You want Debian, you do. Your choice of old, shaky, or bleeding edge,delivered to your door. grin -- 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] linux on ibook
My question is has anyone compared YDL with a debianPPC install and what kind of results did you get? At heart I am a great debian fan, I run debian on my PC at work... Tried YDL, deb stable, testing, unstable and mandrake. I'm new to debian so I had problems with the install - wireless card was not detected, the X11 is older, so no acceleration, took a while to get sound working with ALSA (need alsa for timidity). got everything working with the unstable version though.all of these are issues are related to my experience with debian however. It seemed to me that mandrake was more bleeding edge, everything was detected, there was a benh10 kernel with the install disk and the mandrake club dounloads had the latest version. With the ibook, bleeding edge was my main consideration. YDL was easy to install, very similar to Redhat but prefer mandrake. P.S. I've installed deb on a normal pc as I would like to get more familiar with it. Regards, Mehmet -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] IBook music apps /dual boot opinions...
I've just got a G3 ibook and want to set it up to dual boot with linux (need os x (run in classic mode) to run chemdraw . and iTunes) and I want to set up some music software on it - took a life time to get rosegarden, noteedit, abc etc working on my pc - has anyone installed these apps on an ibook? Are there any hardware issues (firewire, airport network card, sound etc) Regards, Mehmet -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Problem with httpd
Could be a multitude of things - Collect some data first like... Is it slow from an external source (ie wan) only? Try viewing the pages locally (on the server) Have you tried using tcpdump to see what is happening? **Is it a nameserver problem? How big are the pages? Are both domains equally as slow? Is it faster if you just enter an ip into the browser? What sort of pages are you serving up (static, flash, php )? Is there a database invoved? Does the server eventually serve the right domain pages? Was it working properly at any stage? Regards, Mehmet El 4Love ([EMAIL PROTECTED]) wrote*: Hi All, I have some problem with Apache web server. Apache responds to requests rather slowly, where it hosts two name virtual hosts. Initially I noticed two error lines per request in ssl_error_log and now I have disabled ssl_module. Now I don't get that error message, but still the server is very slow. The following is the ping stats I get from my server from outside my local intranet. 20 packets transmitted, 20 received, 0% loss, time 19191ms rtt min/avg/max/mdev = 36.194/43.561/65.393/6.444 ms But when I benchmarked that with another server on the Internet, which works quite fast 21 packets transmitted, 20 received, 4% loss, time 20191ms rtt min/avg/max/mdev = 281.018/283.878/290.204/2.737 ms What could be the problem with the configuration of my server? Any suggestions? Thanks in advance Mahen -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Blackmagic RIP software and firewire printing
A couple of questions. Has anyone used Blackmagic RIP server software with Linux? I have just installed it (has a redhat rpm) and was surprised to see it created a user with no password and set up with a /bin/bash shell. Also, how is linux with firewire printers (epson1c)? Regards, Mehmet -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Billion ADSL Router (BIPAC-741)
If you are typing in the ADSL internal address (192.168.1.x) and getting it's configuration page that is ok, it is supposed to forward it's EXTERNAL address. If you can access the modem configuration page externally (from the net) I would disable that. If the modem is listening to port 80, either change it (I think it is in the misc. settings) or change th port for your web server (LISTEN XX in the conf file). Make sure you forward the port your server is using. Don't test INTERNALLY. test EXTERNALLY - if you can, shell on to an external linux box and use a text based browser - links or lynx - and test. Don't forget that the ip is dynamic take steps to track it. Hope this helps. Regards, Mehmet - Original Message - Subject: [SLUG] Billion ADSL Router (BIPAC-741) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 15-06-2003 03:18 G'day SLUGers Does anyone here ever using BIPAC-741 from Billion? I'm using InterNode ADSL which giving me a dynamic ip. I've tried so hard to configure its 'Virtual Server' feature to redirect any incoming HTTP from outside world into my tiny box of redhat 9 web server. I can open my web server via local connection (e.g. http://192.168.1.10) which I supposed theres nothing wrong with the conf. But if I type in the ADSL ip address, it open the front page of the ADSL modem configuration page, which is really security_risk for me. Any comment? Phillipus. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] mknod problems
Hi, I have a multi-modem card (digi datafire 60) that I'm trying to set up on a Mandrake 8.2 system (kernel 2.4.18). The card was easy to install on rh 6.2 and is supposed to be compatible with 2.4 kernels... my problem is after insmoding the module (which is OK), I run /proc/dgdm/mknod and get an error that the hardlink operation is not permitted. If I try to manually hardlink /dev/dg/dgdm/ttyG0_xx to /dev/ttyG0_xx I get the same error. What would stop the creation of the hardlinks (permissions are 660 root, root) ? Has anyone set a datafire card up on a linux box with the 2.4 kernel? Mehmet -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Laptops ?
Well I'm using a toshiba satellite pro 4600 and am very happy, there was a bit of trouble setting it up (had to use framebuffer mode for X to work but XFree-4.2 has fixed that - still no hardware acceleration though so can't watch full screen DVDs). eepro network card had problems but works well with the e100 module, Great value for money. On Wednesday 10 April 2002 05:08 am, Wayne Crich wrote: I am hoping to buy a new laptop in the comming months. Given the difficulty of getting one that will run linux and Xwindows. Ithought I would ask for any suggestions from those who have a working laptop bought here in Australia and for around $3000 Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Toshiba laptop
On Saturday 23 February 2002 10:49 am, you wrote: My kernel now boots. I did not have ext3 compiled into the kernel I had it as a module. slap forehead (Jeff from archives) I can load the network module insmod xircom_cb and it appears to load however there is no eth0. It was defined to tulip (2.2 kernel) originally however I cannot figure how this is done, any hints. It would be nice if it came up and down with the card insert and eject. I also want to put in a wireless card. Have a look at /etc/modules.conf -the format I believe is: alias eth0 xircom_cb Have you tried bringing up eth0 manually? e.g. ifconfig eth0 192.168.0.1 up? I've just recently set up wireless at home (using d-link DWL650 cards - and a DWL500 pci to pcmcia converter in the gateway, only took three weeks and a LOT of obscenities to get it up -thanks MacLUG and the wireless guys! Contact me off-list regarding wireless If you like Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Toshiba laptop
On Saturday 23 February 2002 10:49 am, you wrote: My kernel now boots. I did not have ext3 compiled into the kernel I had it as a module. slap forehead (Jeff from archives) I can load the network module insmod xircom_cb and it appears to load however there is no eth0. It was defined to tulip (2.2 kernel) originally however I cannot figure how this is done, any hints. It would be nice if it came up and down with the card insert and eject. I also want to put in a wireless card. Have a look at /etc/modules.conf -the format I believe is: alias eth0 xircom_cb Have you tried bringing up eth0 manually? e.g. ifconfig eth0 192.168.0.1 up? I've just recently set up wireless at home (using d-link DWL650 cards - and a DWL500 pci to pcmcia converter in the gateway, only took three weeks and a LOT of obscenities to get it up -thanks MacLUG and the wireless guys! Contact me off-list regarding wireless If you like Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Uninterruptable sleep.....
Hi, I've recently installed mandrake 8 and am using the mozilla 8.1 that came with it however, I noticed that it has started a process that is in uninterruptable sleep mode and I don't know how to kill it. logging out of X (kde right now) doesn't even do it (kill -9 either). Short of rebooting, how can I get rid of it? Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] hacked again?
Hi, A home computer (rh6.2) has a line in the logwatch mail "directory . is world writeable" ... happened last night, I remember reading about such an exploit a while back but can't find anything about it ... does anyone know of this? There appears to be no other indications of a "break-in" yesterdays log doesn't have such an entry though (it could be one of the family "doing things" as root too...) Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Wierd routing problems....
It already has that option set, I have identified the problem, one server has been "compromised" - it had ip aliasing set for every ip in the subnet. fortunate that I was doing some maintenance work at the time it happened (don't think I triggered it as I wasn't fiddling with that particular box, the same cracker did scan the box I was checking though). The box was running redhat 7.0 and had telnet running (I don't normally run telnet) there was some ipop connections then a telnet login from popsite.net then the problems I've taken the box offline (spare box for people to play with) so I can have a good look see - interesting times I guess. Regards, Mehmet On Tue, 6 Feb 2001, Michael Fox wrote: put proxyarp in your options file for the pppd :P -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Wierd routing problems....
I've got a strange routing problem on my system: 3 boxes in a network plus a router, one system is a dialin server. If I dial in and try to ping another box on the lan there is no reply coming back to the ppp connection but if I ssh onto the server, I can ping, access the other systems. Using tcpdump -i eth0 on the server while pinging from the ppp connection shows the request is getting out to the other system and it is replying - however the reply is not passed on to the ppp connection (only gets as far as the eth0 connection).. also, the ppp connection can access / ping the router and any other external system and any other ppp connection. The only thing a ppp connection cannot get replies from (although the reply is reaching the dialin server) is the other two boxes on the lan. Everything was OK this morning, routing table shows that the correct ip is pointing to the ppp.pid, routing table must be working as requests to/from the router are arriving safely. I would prefer not to restart the server, any suggestions what to try would be appreciated. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] nightmare on emacs street
Quiet time right now so I thought I'd start learning how to configure emacs to "fit" me better, HAH!! I'm trying to get emacs to load a .dtd file that I downloaded (zope), the M-x dtml-mode seems to work, however, when I look at dtd info, nothing... I get an error of "Symbols value as variable is void:xmls-parser-syntax". If I parse the dtd, it just loads the html dtd, (precompiled). Having a break and do something more productive (banging head on wall). I had a look at the emacs.org site and wow, I was underwelmed by the information. Google didn't really help all that much either. Are there any suggestions as to appropriate documentation for an emacs "beginner" to learn how to configure -not use- this "666 incarnate"? Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Fixed frequency monitor
I've been given a cornerstone 21/76 monitor and a graphics card to go with it (an ImageAccel 2)... can I get it to work in X? best I could do is unsupported vga - a bit of a waste. I suppose I could give it to the kids to use on a winbox.. hope not Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Fixed frequency monitor
I've sent a request to cornerstone, thanks for the link. I just tried getting it going using win2000, worse results than linux... Regards, Mehmet On Fri, 5 Jan 2001, DaZZa wrote: Extremely unlikely. The Cornerstone web site has drivers for the IA2 for WindoZe 3.1, 95, NT 3.51/40. and OS/2 2.11 and 3.0, as well as BIOS updates. Gertting these things working under WindoZe is difficult at best. Getting them running under X is most likely impossible. As far as I can tell, not even Metro-X supports this card, so I'm guessing you're shit out of luck. DaZZa P.S. Cornerstone is at http://www.bigmonitors.com - maybe you can send a product request and ask. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Linux as Business Desktop
I've tried a couple of places with SO being served to a slower box, but without a 100meg nic it takes over a minute to load up... I think it's a good idea if you have limited disk space but otherwise it would work better installed on the box. I have it running on a p166 with 96meg RAM and, as Jamie mentioned, after it loads it runs ok (5.2 seems more sluggish than 5.1a haven't tried OpenOffice yet next install maybe - after I bash my head in with woody) I tried it with 32 meg ... forget it - 64 meg is "livable" - don't start netscape though (I use Mozilla nightlies and Konqueror). Regards, Mehmet On Fri, 1 Dec 2000, Craige McWhirter wrote: Run Star Office for the slow machine off the fast one. StarOffice was designed to be run that way anyway. On Fri, 01 Dec 2000 10:35:18 Jason Rennie wrote: How does it run on older processors ? The test box i will be dropping off for them will be a 400Mhz K6, but there existing machines are a p133 and a p166. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Perl MySQL script not working
On Sat, 2 Dec 2000, Terry Collins wrote: I think it says you don't have msql -- different to MySQL (no y) Regards, Mehmet Gidday Sluggers This perl script tells me that I don't have a MySQL server on my box (localhost), when I do (The Kmysql stuff confirms it is running - I can #!/usr/bin/perl -w use strict; use CGI qw(:standard); use CGI::Carp; use DBI; CGI::use_named_parameters(1); my ($server, $sock, $host); my $output = new CGI; $server = param('server') or $server = ''; my $driver = DBI-install_driver('mysql'); my @databases = $driver-func($server, '_ListDBs'); if (not @databases) { print header, start_html('title'="Information on $host", 'BGCOLOR'='white'); print END_OF_HTML; H1$server/h1 $server does not appear to have a running mSQL server. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Light pro use for talk
Thanks for the quick response Michael, Tom, Craige, sounds straight forward.. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Linux as Business Desktop
I've set up a few businesses with linux, the reason they are using Linux is simple -- virii! -- all have/had latest virus definitions and still got infected.The most popular setup is kde, staroffice, kmail. They start by only using the linuxbox for email attachments mean staroffice gets used. You WILL need at least 64meg ram for so to repond in the same day (weelll..) but so far they are ALL very happy and get a buzz every time a virus is recieved. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Light pro use for talk
Hi, I have to give a talk and I will be using a notebook for presentation, apparently they have something called "light pro" projectors. Can anyone tell me how this works? i.e. what cabling, any special resolution settings .. any software etc. Any help and or advice would be greatly appreciated. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Creating a linux gateway
Hi, What distribution are you using? On Mandrake 7.2 they have an application that does a basic ipmasquerade in DrakConf. However, you will need ipchains firewall rules to make it work. I think the basic steps are: A) Load the ipmasq modules, insmod ip_masq_ftp; insmod ip_masq_raudio; insmod ip_masq_irc should give a basic setup. B) Then set firewall rules - ipchains -P forward DENY ipchains -A forward -s 192.168.0.0/255.255.255.0 -j MASQ (insert your internal ip range) echo 1 /proc/sys/net/ipv4/ip_forward and you are off and running. There is a good HOWTO (I think it is anyway) on masquerading and ipchains - it should be in your /usr/doc/HOWTO/ directory. Some distributions might require you to compile the kernel for masquerading to work, you will also need ipchains installed. Any services within the firewall will most probably need portforwarding to work - this has just been a topic on the list, please check the archives on how to do this. hope this helps. Regards, Mehmet On Sat, 25 Nov 2000, George Ferizis wrote: Hi all, I basically wish to create a linux gateway out onto the internet. The linux box has a dedicated line to it. I do not really want a proxy/firewall setup as this can limit applications that can run on the rest of the network. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] permissions, .forward, mx abuse and other tails of horror.
Hi, Interesting thing happened on our home gateway/mailserver I noticed in the maillogs that our system was sending out mail with no from information killed sendmail and removed the mail from the mail queue (kept one for the headers) restarted and after a while samething happened. some of the mail being refused by the other end with "unknown user" information. I had relay rules set to only relay from our network so I thought spoofing? I looked through the maillogs more closely and noticed a line saying something like .forward /home/mofet/.forward world writeable -one of the user names my kids use - checked permissions and the directory WAS world writeable! changed it and the problem seems to have stopped. My son had changed the permissions on the directory to try and get some cgi to work (also have apache running on it for the kids to play with). I have removed their accounts from this machine but I am curious as to how I can periodically check (cron job) file permissions on all the linux systems at home (3 linux)? Am I correct in my diagnoses/ fix? How could it have been discovered? We are on optus cable. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Broken rpm
Hi, I've got a system where rpm was somehow "upgraded" from version 3 to version 4 -now the database doesn't seem to exist. How can I fix the problem? The system is RH6.1 they are reluctant to reinstall will upgrade work with it? Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Mozilla
I've tried M14 and M17, the M17 still occaisionally crashes but I found it ALOT more stable than M14. My feeling is it is too big takes ages to load and has a large footprint. Hasn't done the netscape trick of swallowing all the system memory yet though. I prefer using it to netscape on my Athlon system. regards, Mehmet On Tue, 26 Sep 2000, Heracles wrote: Has anyone had any experiences with the Mozilla browser. I checked out M14 from the latest Debian distribution and it seemed very unstable. It does have some features that I would like to have available to me though. Are the newer releases (e.g.. M17) more stable or is it still unusable? Stay well and happy Heracles -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] Enlightenment
There is a keybindings.cfg file in /usr/share/enlightenment/config with mandrake (enlightenment ver 0.16.3-11) --guess it could be /usr/local for Deb -- this I gather has default bindings. I think if you copy it to your home directory it overrides the default one so, copy to your home directory and then modify?? Regards, Mehmet Yes I like it oo but after upgrading to Debian I can't find how to setup my keys to do things like Alt-Rarrow = Next Desktop, Ctrl-Rarrow = Screen on right etc. There was a GUI tool for this in, I think, the Econfig tool but that legacy tool is no longer with the new E 0.16. There does not seem to be a way to config keys under Gnome either - though I don't use Gnome much. I grepped the entire .enlightenment dir as well for key*anything* but couldn't find a text file that refers to keyboard shorcuts. Mike -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] routing advice needed......
Hi, This is all new territory for me.. I've got a customer with 2 internal networks (192.168.0.0, 192.168.1.0) connected by isdn with an isdn to the "outside" on one of them (192.168.0.0). They need to increase the bandwidth so I was hoping to set up a connection on the 192.168.1.0 network and "distribute" the load between them. The easy way would be to just get extra bandwidth on the existing connection BUT if they have problems at the site with the gateway, (winboxes for workstations... viruses . etc) the other network is effectively shut out from the outside world so is there a way to do some load balancing between the networks (one site is busier than the other)? I can manually setup a routing table but it would no doubt be a full time job adjusting it. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
RE: [SLUG] What to do
My kids have been using SO 5.2, no crashes yet, have left it running for 2 weeks at one time.. has a built in benefit as well - after you start it you have time to get your self a cup of coffee ... in perth and be back in time to watch it finish loading. It definately is more resource hungry than 5.1. The little p166 box with 96meg ram gives me a dirty look every time someone goes near the SO icon. Not bad on the K6 450s or the Athlon 750 though. Regards, Mehmet On Thu, 10 Aug 2000, Jill Rowling wrote: Yet other people seem to be using Staroffice on Linux so I thought it might be just a configuration thing. I think I will have to rtfm again. - Jill. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] How to turn off XDM
Hi, I think what you want is in /etc/inittab id:5:initdefault: brings up xdm, id:3:initdefault: doesn't When you startx, it goes into runlevel 5. Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] Re:Install problems
He had free space - 10gig not partitioned - 1 primary dos 5gig, 1 extended 5 gig with a dos logical within of 5 gig taking up the entire extended partition. After he installed, linux could see the logical dos partition, windows couldn't. He wants a separate partition for his data under dos. can this be done? Regards, Mehmet Howard wrote: For a start it would have to have had 3 partitions, primary, extended and on the extended, at least one logical. The install would have changed the partition flags from DOS to Linux native and would also have installed the ext2 file system on whatever partition it was installed on. This is as a minimum and does not take account of the possible installtion of a Linux swap partition. Was there free space on the disk before you started? -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: SLUg Archive, FAQ, HOW-TO's, etc, was Re: [SLUG] Linux + CableInternet ?
Hi, I'm booked for an Optus@Home install on 14th of August we have 2 linux boxes and 2 win boxes plus an occaisional notebook networked sharing a phone line through a p100 linux box. If and when I get it all working on cable, I'll try and document the trials and tribulations if it will help (I think I'm newbie enough to have a few problems). I suspect this sort of network will be getting to be quite common for families with childeren in high school/tertiary education. Regards, Mehmet Well, if EVERYONE wrote just ONE HOW-I-DID-IT PAGE, SLUG would have a very good resource that we could point the newbies to. I'm in the process of setting up FoM (FAQ-o-matic) for this purpose. I am not suggesting that they write a formal HOW-TO, just a rambling page of text describing how they did something under Linux. It would give some clues and encourage quite a few people to have a go first. Then they can come back with their questions. Anyone can add questions (and answers) -- or will once I've set it up. Does anyone want to be an "editor" of any of the section topics (which are still undecided -- suggestions welcome). -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
[SLUG] List server
Hi, Can anyone recommend a linux-based list server? It will have to handle up to 20,000 subscribers (send out a bulletin every day monday to friday) they currently have 7,000 subscribers and are using windows based app. Easy subscribe/unsubscribe, auto unsubscribe (bounced mail). Regards, Mehmet -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
Re: [SLUG] List server
Thanks Jeff and Craige, I'll try it out. Regards, Mehmet Jeff wrote: Easy? You'll want Mailman then! :) SLUG is now a Mailman mailing list, which pleases everyone doing the admin for it (most of all Anthony Rumble, but that's for a different reason!) At the bottom of this email you'll find a link to the SLUG Mailman interface... Have a look around. It's very cool. Others will recommend ezmlm and such, but if you want a kickarse listserver that's simple to admin, and has just about every option you'd want... Mailman. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug