[Dorset] Thanks, and a script to convert filenames to lower case
It was a great pleasure to meet members tonight. I received some helpful advice and had a good chin-wag! Thanks to all. As a (very) small contribution, I offer a script that I've found useful when importing directories from Windows, or image/video files from a camera or similar device. I find it easier to have the filenames all in lower case, and because I've had cause to do this more than once, I've created a little script file to do it from the command line. It renames all (and only) files in the current directory. Online I've found plenty of more complex variants that invoke commands outside the shell; although these have the merit of working with other shells, bash is I think the default shell on most desktop systems nowadays, which is where perhaps this script is typically useful. If you don't use bash, then this script is not for you! If you do, this is an efficient way to get the job done. ((script begins)) #!/bin/bash for i in $*; do [[ -f "${i,,}" ]] || mv -i "$i" "${i,,}"; done ((script ends)) (For those not familiar with bash parameter substitutions, the expression "${i,,}" equates to "$i" forced lower-case.) Regards to all, CPKS -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] CPK Smithies (prospective new member)
Welcome to the group. I've had a poke around the idAngels website, very interesting concept and sound basis (ie organisations don't know people, people know people). If you come to the meeting tonight, I'll probably ask you a few questions about it... Cheers Natalie -- Dorset Humanists Events ( http://groups.to/dorsethumanists/ ) "Humanism and the European Humanist Federation by David Pollock", Saturday 9th April, 2pm, Moordown Community Centre "Fair Votes for All?", Wednesday 27th April, 7.30pm, Moordown Community Centre Events are free to attend to everyone - both Dorset Humanists members and non-members - and donations can be made on the door to help Dorset Humanists cover the costs (hiring the venue, speakers expenses). ** Check out Sudoku Way, my Tetris meet Sudoku game for Android at https://market.android.com/details?id=net.cogitas.sudokuway Using Twitter? Check out Find Tweets, my Twitter app client for Android at https://market.android.com/details?id=net.cogitas.findtweets Google Android, programming and web design at http://www.cogitas.net/blog/ -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Pub Meet Tonight, Bournemouth, 2011-04-05.
I won't be able to make it tonight unfortunately due to work stuff. :-( Sorry, Tim. */ signature.asc Description: This is a digitally signed message part -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] CPK Smithies (prospective new member)
On Tuesday 05 Apr 2011, CPK Smithies wrote: > Greetings all. I am a prospective new member of the Dorset LUG. This is > to introduce myself. Greetings and Welcome. > My introduction to Unix was in the early 1980s, when I put together a > couple of device drivers for SCO. In those days I was working for a > computer manufacturer that had developed a sort-of clone of the IBM PC, > and got SCO running without difficulty. I still have a vivid memory of > talking to SCO tech support from a 'phone box somewhere on the > Southampton University campus, chiding them about their handling of > interrupts. That was when SCO were a 'proper' Unix company, unlike the disaster that remains today. I used SCO on a PC that we used to run a diagnostic development tool in the early 90s and I have to say it was a breath of fresh air compared to Windows 3.0. Are you aware that there is a LUG meeting tonight at the Broadway in Bournemouth? See http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub for details. -- Terry Coles 64 bit computing with Kubuntu Linux -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
[Dorset] CPK Smithies (prospective new member)
Greetings all. I am a prospective new member of the Dorset LUG. This is to introduce myself. My introduction to Unix was in the early 1980s, when I put together a couple of device drivers for SCO. In those days I was working for a computer manufacturer that had developed a sort-of clone of the IBM PC, and got SCO running without difficulty. I still have a vivid memory of talking to SCO tech support from a 'phone box somewhere on the Southampton University campus, chiding them about their handling of interrupts. Cut 30 years, during which I used Concurrent CP/M, MSDOS and OS/2, and finally (as of about 1999) Windows. My wife was having serious trouble with her Windows box, which was getting slower and slower. So I put a new box together for her and (since it had a 64-bit CPU) in my naivety I bought a copy of XP-64 and tried to install it. Everything worked except the network adapter. Annoyed, I thought I would try Gnu/Linux; so I installed Ubuntu (8.04). Everything worked - like a charm. So much so, that I decided to go that way myself. Today, I still run a Windows (XP) box for a few legacy applications; but my principal work machine and my laptop now run GNU/Linux - currently Ubuntu 10.10. I have solved a number of friends' or family members' problems by installing Linux (seven to date) on their aging hardware - and have so far chalked up seven delighted converts to the cause! As regards my working life, after a decade in biometric software I'm currently working on a new system to combat identity fraud. It's a web-based social network solution. (Ask me about it, and/or visit http://idangels.net .) So I'm managing a couple of web servers running apache 2.2, mysql and postfix under Ubuntu. I also manage a test server running CentOS. Regards to all, CPKS -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
[Dorset] Pub Meet Tonight, Bournemouth, 2011-04-05.
Why not celebrate the last day of the fiscal year in style? The Broadway, Tuesday 2011-04-05 20:00. http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub Cheers, Ralph. P.S. Victor, get well soon. :-) -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue
Re: [Dorset] Setting up hostname in Linux
On Monday, April 04, 2011 11:37:19 PM Ralph Corderoy wrote: > Hi Terry, > > > Maybe my memory is faulty, but my recollection of doing this on > > earlier Unix systems, (like Solaris), is that the hostname went into > > the file called hostname (or similar) and that did it (after a > > reboot). > > Debian/Ubuntu still have that. > > $ cat /etc/hostname > orac > $ hostname > orac > $ hostname -f > orac > $ > > Note, the -f output is wrong here, I haven't got it to be correct yet > which is annoying as some programs, e.g. postfix, rightly expect it to > be a fully-qualified domain name (FQDN). > > Cheers, > Ralph. FC14 seems to use the /etc/sysconfig tree to hold this kind of info /etc/sysconfig/network:HOSTNAME=myhostname & /etc/rc.sysinit reads the sysconfig tree Regards Andy -- Next meeting: Bournemouth, Tuesday 2011-04-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue