Re: [SLUG] Linux version
On Wed, 2003-01-15 at 02:11, Peter Hewett wrote: > I've inherited an old pc working(perfectly) as an internet router. > I don't think it's been upgraded in about 2 years and I have no idea what > version of Linux it's running. > I'm moving to ADSL and will need to modify it's config in the near future, > so I need to know what distribution I'm using (or doesn't it matter). > > uname -a returns : > Linux gw 2.0.35 #2 Thu Mar 4 23:35:24 EST 1999 i586 > > I understand 2.0.35 is the version - but which distribution of Linux ? > I'd also love to know how I tell the hardware config of the machine without > pulling it apart. Anyone spot me a handy unix command for this one ? that's pretty old. Redhat have a file /etc/redhat-release which will have the version if it's redhat. Debian has /etc/debian_version. Try these two and see if it tells you anything. as for configuration, look in /proc - cat some of the files that don't have numbers as names. They'll tell you various "stuff" about the machine. I don't have a 2.0 kerneled box around here so I can't tell you much more than that. I think they had /proc/cpuinfo back then - that will tell you what sort of cpu it has. hth James. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Linux version
-BEGIN PGP SIGNED MESSAGE- On Wednesday 15 Jan 2003 6:11 pm, Peter Hewett wrote: > I understand 2.0.35 is the version - but which distribution of Linux ? uname won't tell you I'm afraid. Files you may find some give aways with are: /etc/issue - contains the banner given by getty for a console login /etc/issue.net - contains the banner given for network logins /etc/redhat-release - used by RedHat, Mandrake and possibly others. /etc/mandrake-release - guess.. :-) Then there are various commands that can give indications dpkg or apt-get - indicates that it's a Debian system. rpm - will indicate one of Redhat, Mandrake, SuSE, etc, etc. rpm -qa | grep -i release Returns (for me): mandrake-release-9.0-1mdk That's where /etc/redhat-release and /etc/mandrake-release come from (at least on my system). Good luck! Chris - -- Chris SamuelWollongong, NSW -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iQEVAwUBPiUPWI1yjaOTJg85AQH2AwgAh3imlu8+8IpTAjZwZJQzHp2p0DEkkCJE yCGSawwx90Aa74Z6dB+Gw6vgEZDH6TOfSHS907qABjZqSujJUH/DiksbNzkzNtwo P726Z138O30Q5M0uC4G2gCjPfh2XVjoEWl4S288KRio9JQ7H4fQzfsJI5wnRI7Zy uHk9Y8a6oXsR5+tm8obYuh9ySsI0P4kn8FvHRsD+aYIdd1HIi/eBocACS332lJii 7zsIbJMDAc3y9BpqPRuz1YUsVuPbwYebvjW+EnyluseDXw7VK/PludXi5m4YbHvC jdc6crKhVjJ8SL9aVl9wMQFGRDKhPsUqD/HdJ64UoocJOiaRBgYGfw== =OfIn -END PGP SIGNATURE- -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Linux version
I've inherited an old pc working(perfectly) as an internet router. I don't think it's been upgraded in about 2 years and I have no idea what version of Linux it's running. I'm moving to ADSL and will need to modify it's config in the near future, so I need to know what distribution I'm using (or doesn't it matter). uname -a returns : Linux gw 2.0.35 #2 Thu Mar 4 23:35:24 EST 1999 i586 I understand 2.0.35 is the version - but which distribution of Linux ? I'd also love to know how I tell the hardware config of the machine without pulling it apart. Anyone spot me a handy unix command for this one ? Cheers Peter Hewett Director CommunEcom Strategic Communications "I have often regretted my speech, never my silence." - Xenocrates (396-314 B.C.) -- This correspondence is for the named person's use only. It may contain confidential or legally privileged information and is intended solely for the named addressee. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. -- -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] "Sub-process /usr/bin/dpkg returned an error code (1)"
Hi, sorry to intrude on you guys but I've run out of ideas ... I've had trouble using "apt-get update" and "upgrade" getting the error message sub-process /usr/bin/dpkg returned an error code (1) Noticing 'df' gave me '/usr' at 99% I used deborphan and 'apt-get remove' to get it down to 98% and ran 'apt-get update' successfully this time but 'apt-get upgrade' after downloading correctly t could not install packages telling me that "sub-process /usr/bin/dpkg returned an error code (1)" My man pages do not work for want of a pager - I've installed one before but forget how I did it. How do I fix that - and what is an error code (1) ? Adam Bogacki, [EMAIL PROTECTED] -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] sync filesystem on unconnected machines
On Wed, Jan 15, 2003 at 05:10:16PM +1100, Matthew Dalton wrote: > You could use tar's 'only store files newer than DATE' option (-N) to do > this. See the tar manpage for details. That will probably do for now. (and so easy too) Note that it doesn't quite do what I want in that deleted files on the source system will not be deleted on the remote system. Thanks! -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] sync filesystem on unconnected machines
Colin Humphreys wrote: > > I have a few systems that I need to configure a one way sync of > filesystems. (i.e the filesystem is only modified on one side). The > catch is that the systems are not networked together. > > I envisage generating somesort of md5sum database for both sides and > comparing the output. This will allow me to grab the modified/new/deleted > files and copy to the other system using burnt cd's. > > Does such a thing exist? It doesn't sound too hard to hack up, but if > something is out there, why reinvent the wheel...:) You could use tar's 'only store files newer than DATE' option (-N) to do this. See the tar manpage for details. Matthew -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] sync filesystem on unconnected machines
I have a few systems that I need to configure a one way sync of filesystems. (i.e the filesystem is only modified on one side). The catch is that the systems are not networked together. I envisage generating somesort of md5sum database for both sides and comparing the output. This will allow me to grab the modified/new/deleted files and copy to the other system using burnt cd's. Does such a thing exist? It doesn't sound too hard to hack up, but if something is out there, why reinvent the wheel...:) -- Colin Humphreys | <[EMAIL PROTECTED]> | http://www.encypher.net/ PGP key: 0xB6037E5E (fprint: F0EA C979 C9E8 A5C9 EBA7 7C63 6F66 227B) -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] reading ancient floppies ...
-BEGIN PGP SIGNED MESSAGE- On Wednesday 15 Jan 2003 10:05 am, Ben de Luca wrote: > Im pretty sure the amiga floppy had a prorpiatry controller, That would be the Paula chip. > all i rember is that its not pc compatible :( There is software out there to do it. - -- Chris SamuelWollongong, NSW -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iQEVAwUBPiSqzY1yjaOTJg85AQGe0gf/fSDpOdTacnpcmGO8l6qVpKxcypyLkzvC ShyyogpOjbongCLBOsW2klFQXFZpKMr/9wA4wAP0BFDz696e4amI7MunYizCZZq+ 5BQr3Ih8ErnQiavDJWzdQxETCdoRPF2bT5pDXe1dmjqBdRfbuGBjolVQjxQbk3Au Z6nNaLReDd9aIykNVC5+fU80ZZhntTOKGWtrYG2DnNYSg1PCJWasIvEwkrP7N1ha 80cVvEwpeCoEWCMVBSxThS0vin7xGCyksDKenlbMV/3F23jsZftuzDWryjLd+NSx QTTtsOU1yn/xUaijpRggoLLVgC92xzTrerm49KACWc4av1VPqxPwNg== =H3lg -END PGP SIGNATURE- -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] reading ancient floppies ...
-BEGIN PGP SIGNED MESSAGE- On Wednesday 15 Jan 2003 6:35 am, [EMAIL PROTECTED] wrote: > Hi, > I've been given some floppies which are apparently Amiga/Commodore. > According to one www reference I found, it's easy > to read them. You just > dd if=/dev/fd0a of=myfile.adf > and get 880k bytes of ADF. [...] > Another web site reckes I should try fdutils. I did, but > the results suggest that I need non-PC hardware. What hardware platform are you trying to read them on ? The general concensus seems to be that it is very hard to persuade a PC floppy drive to read an Amiga floppy disk. However, there is some software that make it possible to do so from DOS if you have two 3.5" floppy drives. See the website for it at: http://www.oldskool.org/disk2fdi/ For information on other possibilities see: http://cloanto.com/kb/3-118.html Also see the FAQ on the Amiga floppy format that goes into excruciating detail about the way data is layed out and encoded on an Amiga 3.5" at: http://www.nondot.org/sabre/os/files/FileSystems/AFS_info.txt My guess reading between the lines on all this implies that the people who wrote DISK2FDI are using the fact that DOS doesn't try and interefere in hardware access to prod the PC floppy controller into just raw reading the floppy and pulling out the MFM encoded data from that. Looking at my /dev/floppy directory (using devfs) I can see the following: brw-rw1 chrisfloppy 2, 0 Jan 1 1970 0 brw-rw1 chrisfloppy 2, 84 Jan 1 1970 0u1040 brw-rw1 chrisfloppy 2, 88 Jan 1 1970 0u1120 brw-rw1 chrisfloppy 2, 28 Jan 1 1970 0u1440 brw-rw1 chrisfloppy 2, 124 Jan 1 1970 0u1600 brw-rw1 chrisfloppy 2, 44 Jan 1 1970 0u1680 brw-rw1 chrisfloppy 2, 60 Jan 1 1970 0u1722 brw-rw1 chrisfloppy 2, 76 Jan 1 1970 0u1743 brw-rw1 chrisfloppy 2, 96 Jan 1 1970 0u1760 brw-rw1 chrisfloppy 2, 116 Jan 1 1970 0u1840 brw-rw1 chrisfloppy 2, 100 Jan 1 1970 0u1920 brw-rw1 chrisfloppy 2, 12 Jan 1 1970 0u360 brw-rw1 chrisfloppy 2, 16 Jan 1 1970 0u720 brw-rw1 chrisfloppy 2, 120 Jan 1 1970 0u800 brw-rw1 chrisfloppy 2, 52 Jan 1 1970 0u820 brw-rw1 chrisfloppy 2, 68 Jan 1 1970 0u830 So no 880K option there. You could just try and read it using if=/dev/fd0 and see what happens. :-) Unfortunately I don't think I've got any Amiga floppy disks left anymore to experiment with. :-( good luck! - -- Chris SamuelWollongong, NSW -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iQEVAwUBPiSaZ41yjaOTJg85AQGk9Af+Mfs8EF7/HyUk6pP5mfvCKwxeckYriRX6 nrEg47W31EPrcmTBL4DkJtUwx9hcGdY5QLVW3ddMkNe4TA6O7mK9i9lrZ8IktZeb pi/Ih9tu62z6/59Q3GPbzBOZudM87lw1VDmxxDMcuEUjX8DEXRoLnx5vPxHL4I50 GMT5a4f0l/p1bEUzjWlvjWDYalDMh9+sK/1rwA0aIUAueqHfW/Peyo5Qqp5kuzUx RpvbhHSSoHqHGkBXpkapNxOgfhzj2R3eROUOvE63g8DWeWQTEpr/a9mQVuR0U9Ci E4ALCzCkSwfVA8J55eSkeYVaIiepI5ixmCebB0uuvLeFwPhlUX+dyA== =UVSt -END PGP SIGNATURE- -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] reading ancient floppies ...
Im pretty sure the amiga floppy had a prorpiatry controller, all i rember is that its not pc compatible :( - Original Message - From: "Grant Parnell - non-work email" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 8:26 AM Subject: Re: [SLUG] reading ancient floppies ... > Hey I'd like to do this myself, I've got a few amiga disks. I suspect > maybe they're referring to an Amiga floppy drive which I had up till now > thought was the same as a standard 720K 3.5 inch drive. I would have one > somewhere so I might try the tools you mention & also try the Amiga > drive. Of course, I assume you've tried:- > dd if=/dev/fd0 of=myfile.adf (never know you're luck). > Maybe, try fd0D720, fd0H720, fd0H880 devices, or even some of the fd0u > devices which I'd assume means unformatted. Basically telling the > device/os what density you want. > > > On Wed, 2003-01-15 at 06:35, [EMAIL PROTECTED] wrote: > > Hi, > > I've been given some floppies which are apparently Amiga/Commodore. > > According to one www reference I found, it's easy > > to read them. You just > > dd if=/dev/fd0a of=myfile.adf > > and get 880k bytes of ADF. > > However, I don't have /dev/fd0a. Have you seen one? - what > > are its major and minor numbers, please, and what kernel are > > you running? > > Another web site reckes I should try fdutils. I did, but > > the results suggest that I need non-PC hardware. > > > > Can anyone advise, please? > > > > Jim Donovan > > -- > > SLUG - Sydney Linux User's Group - http://slug.org.au/ > > More Info: http://lists.slug.org.au/listinfo/slug > -- > -- > Web: www.arcadia.au.com/gripz > Mobile: 0408 686 201 > -- > 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
Re: [SLUG] Problem with MySQL
Many apologies Mikel for the double reply. I didn't include slug in the response last time. An extract from the MySQL manual under the LOAD DATA INFILE section: -- SNIP -- An empty field value is interpreted differently than if the field value is missing: * For string types, the column is set to the empty string. * For numeric types, the column is set to 0. * For date and time types, the column is set to the appropriate ``zero'' value for the type. See section 6.2.2 Date and Time Types. Note that these are the same values that result if you assign an empty string explicitly to a string, numeric, or date or time type explicitly in an INSERT or UPDATE statement. -- SNIP -- A script to parse the data file sounds like the way to go. Fil Quoting James Gregory <[EMAIL PROTECTED]>: > On Mon, 2003-01-13 at 17:24, Michael Lake wrote: > > Hi all, > > > > This is a bit OT but I am trying to fix up some MySQL data on a Linux > > system and having just one problem > > Numeric types that have no entry end up as 0.0 rather than NULL when > > imported into the tables. > > this is kinda a guess since I distance myself from mysql these days. > But, isn't it correct behaviour for mysql to convert the empty string to > something that isn't null? You're specifying a value there, not telling > it that there is no value. I would assume that it's giving you something > that is non-null because you're specifying a value for that column. The > default will only apply when that column isn't specified. I think the > solution is to run a script beforehand that replaces "" with "\N" or > whatever null is in mysql. That or use some zany conditional when you're > inserting. > > HTH > > James. > > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug > - Phil Scarratt It Consultant 0403 531 271 -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Trouble getting SCSI to work
On Tue, 14 Jan 2003 16:29:17 +1100, you wrote: >I'm trying to get the redhat kernel source to work with Debian Woody. The >kernel compiles fine, but I'm getting the following error when booting: > >kmod: failed to exec /sbin/modprobe -s -k block-major-8 > > >and then the system fails with an unable to find root filesystem error (root >filesystem is on a SCSI disk) Well, there is really no point compiling the scsi stuff as a module if you're running a scsi root disk just compile it into the kernel ... it needs to know about scsi disks so it can read the scsi disk to boot. Cheers. Jonathan. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] reading ancient floppies ...
Hey I'd like to do this myself, I've got a few amiga disks. I suspect maybe they're referring to an Amiga floppy drive which I had up till now thought was the same as a standard 720K 3.5 inch drive. I would have one somewhere so I might try the tools you mention & also try the Amiga drive. Of course, I assume you've tried:- dd if=/dev/fd0 of=myfile.adf (never know you're luck). Maybe, try fd0D720, fd0H720, fd0H880 devices, or even some of the fd0u devices which I'd assume means unformatted. Basically telling the device/os what density you want. On Wed, 2003-01-15 at 06:35, [EMAIL PROTECTED] wrote: > Hi, > I've been given some floppies which are apparently Amiga/Commodore. > According to one www reference I found, it's easy > to read them. You just > dd if=/dev/fd0a of=myfile.adf > and get 880k bytes of ADF. > However, I don't have /dev/fd0a. Have you seen one? - what > are its major and minor numbers, please, and what kernel are > you running? > Another web site reckes I should try fdutils. I did, but > the results suggest that I need non-PC hardware. > > Can anyone advise, please? > > Jim Donovan > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug -- -- Web: www.arcadia.au.com/gripz Mobile: 0408 686 201 -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Problem with MySQL
On Tue, 2003-01-14 at 09:24, Michael Lake wrote: > Hi all, > > This is a bit OT but I am trying to fix up some MySQL data on a Linux > system and having just one problem > Numeric types that have no entry end up as 0.0 rather than NULL when > imported into the tables. Hmm.. I thought at first table declaration wrong. Maybe try converting the file to a tab delimited one. I'm thinking it may be interpreting "" as NOT NULL. You say you don't want to change the input file. Fine write a perl script to do it. Either go & use the DBI module or for something quick, just write a filter to output mysql commands. #!/usr/bin/perl while () { chop; # remove end-of-line my @row = split /,/; #break into fields $row[3]="NULL" if $row[3] eq '""'; print "insert into test (sheet_name, map_scale, map_latitude) " print "values (",join(",",@row)),");\n"; } -- -- Web: www.arcadia.au.com/gripz Mobile: 0408 686 201 -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] preventing iptables logs in consol
Well as Steve suggested. Either change syslogd to not log critical's to the console (probably a bad idea) or change the --log-level iptables uses on every line where you tell it to log. See man iptables. On Sat, 2003-01-11 at 14:09, Steve Kowalik wrote: > At 5:44 pm, Friday, January 10 2003, Adam Hewitt mumbled: > > What is the best way to go about preventing iptables logging to the consol, > > but still having it log to syslog. It's getting to the point where I am > > unable to use the consol because of log flodding... > > > Set $KLOGD in /etc/init.d/sysklogd. > > KLOGD="-c 4" > > I may have changed something in iptables, but I can't remember. > > -- >Steve > WINDOWS = Will Install Needless Data On Whole System > -- CompuMan > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug -- -- Web: www.arcadia.au.com/gripz Mobile: 0408 686 201 -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Problem with MySQL
On Mon, 2003-01-13 at 17:24, Michael Lake wrote: > Hi all, > > This is a bit OT but I am trying to fix up some MySQL data on a Linux > system and having just one problem > Numeric types that have no entry end up as 0.0 rather than NULL when > imported into the tables. this is kinda a guess since I distance myself from mysql these days. But, isn't it correct behaviour for mysql to convert the empty string to something that isn't null? You're specifying a value there, not telling it that there is no value. I would assume that it's giving you something that is non-null because you're specifying a value for that column. The default will only apply when that column isn't specified. I think the solution is to run a script beforehand that replaces "" with "\N" or whatever null is in mysql. That or use some zany conditional when you're inserting. HTH James. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] pentium 200 and motherboard need a home
Hi, I've got a working P200 and motherboard to get rid of. (If you'd also like the numberplate MMX-200, it parks outside a school near my place and you should be able to find the owner easily). The motherboard has two problems: (a) the battery is flat and it's built into the clock chip and I've been told it can't be replaced (b) one of the hooks on the first DIMM slot has detached. Problem (b) can be overcome by using 72-pin SIMMs but they cost $2/megabyte. I can supply some if you need them. I don't know who made the board but it's marked 9650-8. It has 3.5 PCI and 2.5 ISA sockets. If you can't pick it up, I can bring it to the next SLUG meeting. Jim Donovan -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] reading ancient floppies ...
Hi, I've been given some floppies which are apparently Amiga/Commodore. According to one www reference I found, it's easy to read them. You just dd if=/dev/fd0a of=myfile.adf and get 880k bytes of ADF. However, I don't have /dev/fd0a. Have you seen one? - what are its major and minor numbers, please, and what kernel are you running? Another web site reckes I should try fdutils. I did, but the results suggest that I need non-PC hardware. Can anyone advise, please? Jim Donovan -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] CD R/RW
I presume you're using xcdroast. It prompts you to set it up on first use. Setup includes making a list of users who can use it. Matt -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] Backups
Hello Sluggers, Thanks very much to all of you that have reply my message, it has help me a lot. Regards John -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug