Re: [SLUG] Wiki suggestions?

2015-11-18 Thread Amos Shapira
I think there is an "edit source" option somewhere there, if you insist on
text syntax. Personally I find its WYSIWYG interface pretty convenient,
compared to the rare times that I find myself correct entries on Wikipedia.
On 3 Oct 2015 6:09 pm, "James Gray"  wrote:

> I wouldn't describe Confluence as a true wiki any more. They ripped out the
> Wiki syntax for editing  while ago.  The wiki syntax is still supported for
> creating documents via API.  Confluence is probably best described as an
> "Documentation Collaboration" product now. Don't get me wrong; it's still
> bloody good at what it does but it isn't a wiki in the strictest sense. If
> having the ability to edit plain text offline and be able to dump it into
> Confluence and have it formatted nicely, then Confluence isn't the best
> option (things may have changed and happy to be corrected here!).
>
> I've always just ended up with MediaWIKI (
> https://www.mediawiki.org/wiki/MediaWiki) but there are simpler options
> obviously.
>
> Good luck with your hunt :)
>
> --
> James
>
> On 14 September 2015 at 18:22, Jonathan Molyneux <
> jonat...@infinitedepth.com.au> wrote:
>
> > Confluence is a good start for a wiki:
> >
> >
> https://www.atlassian.com/software/confluence/pricing?_mid=206e3e3a242fb80ba4d7ba972f52c657=CIbO5Y-M9scCFYkrvQodRNoAOw#server
> >
> > Doesn't cost heaps and it's a solid wiki.
> >
> >
> > On 11/09/2015 11:21 AM, DaZZa wrote:
> >
> >> Learned ones,.
> >>
> >> I'm looking for a Wiki to setup for the company to make available to
> >> contractors semi-private documents
> >>
> >> I don't mind if I have to pay a little for it, but open source would
> >> be most excellent.
> >>
> >> So, I'm looking for suggestions for some form of Wiki.
> >>
> >> I'd like
> >>
> >> 1) Secure - two levels of access (view/edit)
> >> 2) Lightweight
> >> 3) Linux (obviously, 'cause f**k paying Microsoft tax where I don't have
> >> to)
> >>
> >> It'd be nice if I could integrate it with AD (or at least LDAP query
> >> for usernames/passwords), but that's not critical.
> >>
> >> It'd also be nice if I could put some kind of skin or theme on it
> >> customised by the marketing nazi's to make it look all company-ie.
> >>
> >> Any suggestions?
> >>
> >>
> >> Thanks.
> >>
> >> DaZZa
> >>
> >
> > --
> > 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 - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Website

2015-09-20 Thread Amos Shapira
I agree the site doesn't give a great shot of confidence in Linux as a web
server, it doesn't render any page to completion for me.

There is a link to "See the code" which points to
https://github.com/sydney-linux-user-group/slug/commits/master, where the
last commit happened over three years ago (29 May 2012), so perhaps it's
just a case of deterioration more than active change.

--Amos

On 9 September 2015 at 23:12, Heracles  wrote:

> I must congratulate the webmaster for turning an easy to navigate site
> into a nightmare. I know my system is a bit dated. (I am using Debian 8
> with enlightenment e17 as a desktop.)
> I used to find it easy to navigate the SLUG Site, now I cant get past the
> front page - which is worse than useless!
>
> Heracles
>
> --
> 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] mailing list archives?

2015-06-10 Thread Amos Shapira
Thanks. Not ideal (I prefer old-fashioned mail archives personally) but
hopefully can serve.

The web site is still broken, isn't it?


On 10 June 2015 at 18:56, Ben donoh...@icafe.com.au wrote:

 HI Amos,

 try...

 https://groups.google.com/forum/#!forum/sluggers

 Is this what you are looking for?
 Ben


 On 10/06/15 13:05, Amos Shapira wrote:

 Hi,

 I'm trying to find the SLUG mailing list archive but any link other than
 the home page (e.g. http://lists.slug.org.au/archives/slug/) just gives
 the
 default Welcome to nginx! page.

 Thanks,

 --Amos


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] mailing list archives?

2015-06-09 Thread Amos Shapira
Hi,

I'm trying to find the SLUG mailing list archive but any link other than
the home page (e.g. http://lists.slug.org.au/archives/slug/) just gives the
default Welcome to nginx! page.

Thanks,

--Amos
-- 
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] the curious case of the inaccessible websites

2015-06-08 Thread Amos Shapira
tcptraceroute (or traceroute -T in some versions) could possibly expose
the culprit, it's a very useful tool to have in your toolbox for such
situations.

On 9 June 2015 at 11:34, David da...@kenpro.com.au wrote:

  It seems that an upstream supplier has made changes that specifically
 require an MTU of 1492. Problem solved.

 Only some sites were affected, which made it confusing. I can't imagine
 why anyone would do this and not tell anybody. My reseller couldn't tell me
 who the upstream supplier is, except that it isn't TPG.

 Go figure.

 On 08/06/15 18:41, Amos Shapira wrote:

 You probably refer to the drop of support for NPAPI (e.g. article in
 http://venturebeat.com/2014/11/24/google-chrome-will-block-all-netscape-plugin-api-plugins-in-january-drop-support-completely-in-september/
 about Chrome but Firefox is following cloesely behind).

  There are temporary work-around provided by Google to keep letting some
 plugins to be enabled by some sites, but they are all expected to be gone
 by the end of 2015 so should better find alternatives soon.

  As for the original question - I doubt that it's a plugin issue. It
 sounds more like some of the dependent resources on these pages are being
 blocked or otherwise (temporarily?) unavailable. What does the JavaScript
 console show? Do you have some corporate proxy which could be misbehaving?

  Just for shits and giggles, I visited www.trivago.com.au and had no
 problem accessing it, even on my flaky home ADSL2+ line.

  --Amos

 On 8 June 2015 at 17:13, DaZZa dazzagi...@gmail.com wrote:

 What browser?

 Recently,  Chrome (and possibly Firefox) decided that all java pugins (and
 others like Silverlight) were unsecured, and the simply stopped allowing
 the plugins to work.

 Broke countless business-related Web sites - I had a storm of them,  all
 being blamed on the firewall, or the network.

 I can't find the reference articles I dug up at the time as I'm mobile,
 but try a different browser and see if that helps.

 DaZZa
 On 08/06/2015 3:24 PM, david da...@kenpro.com.au wrote:

  I have a business ethernet internet connection from a TPG reseller.
 
  Suddenly some external websites or partial websites are inaccessible
 from
  local clients. I haven't yet figured out a pattern, but it looks like
  javascript or some such is holding up the webpage download. The browser
 is
  waiting for a script or css or something not immediately obvious. I get
 the
  same problem with different browsers.
 
  Some sites work perfectly - eg Westpac. The ABC site works, but after
  apparently loading it then constantly waits for something but I can't
 tell
  what. Some google responses work and some don't.
 
  For example, http://www.trivago.com.au waits indefinitely for
  jse.trivago.com and never loads, although I can telnet to port 80. BTW,
  lynx works fine - which makes me more suspicious that it's CSS or some
 such.
 
  I rang the help desk late on Friday. They suggested DNS (??), but I
 don't
  think that's it because I tried using an external DNS server and in any
  case there doesn't seem to be any resolution problem. On their
 suggestion
  I've rebooted both the Cisco router and NTU with no change. Does anybody
  have any thoughts?
 
  David
  --
  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




  --
  http://au.linkedin.com/in/gliderflyer


 --
 David McQuire0418 310312




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] the curious case of the inaccessible websites

2015-06-08 Thread Amos Shapira
On 8 June 2015 at 18:59, James Gray ja...@gray.net.au wrote:

 As for the weird connectivity, I know TPG for a long time ran transparent
 proxies without really making it widely known.  I’ve seen similar behaviour
 to that which you describe when my local Squid cache get’s it’s panties in
 a bunch.  “squid -k restart” usually does the trick.  However, before
 rattling TPG’s cage, maybe try flushing the browser cache and see if the
 problems persist.


Or try using a VPN to escape the TPG cage and see if it helps?
-- 
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] the curious case of the inaccessible websites

2015-06-08 Thread Amos Shapira
You probably refer to the drop of support for NPAPI (e.g. article in
http://venturebeat.com/2014/11/24/google-chrome-will-block-all-netscape-plugin-api-plugins-in-january-drop-support-completely-in-september/
about Chrome but Firefox is following cloesely behind).

There are temporary work-around provided by Google to keep letting some
plugins to be enabled by some sites, but they are all expected to be gone
by the end of 2015 so should better find alternatives soon.

As for the original question - I doubt that it's a plugin issue. It sounds
more like some of the dependent resources on these pages are being blocked
or otherwise (temporarily?) unavailable. What does the JavaScript console
show? Do you have some corporate proxy which could be misbehaving?

Just for shits and giggles, I visited www.trivago.com.au and had no problem
accessing it, even on my flaky home ADSL2+ line.

--Amos

On 8 June 2015 at 17:13, DaZZa dazzagi...@gmail.com wrote:

 What browser?

 Recently,  Chrome (and possibly Firefox) decided that all java pugins (and
 others like Silverlight) were unsecured, and the simply stopped allowing
 the plugins to work.

 Broke countless business-related Web sites - I had a storm of them,  all
 being blamed on the firewall, or the network.

 I can't find the reference articles I dug up at the time as I'm mobile,
 but try a different browser and see if that helps.

 DaZZa
 On 08/06/2015 3:24 PM, david da...@kenpro.com.au wrote:

  I have a business ethernet internet connection from a TPG reseller.
 
  Suddenly some external websites or partial websites are inaccessible from
  local clients. I haven't yet figured out a pattern, but it looks like
  javascript or some such is holding up the webpage download. The browser
 is
  waiting for a script or css or something not immediately obvious. I get
 the
  same problem with different browsers.
 
  Some sites work perfectly - eg Westpac. The ABC site works, but after
  apparently loading it then constantly waits for something but I can't
 tell
  what. Some google responses work and some don't.
 
  For example, http://www.trivago.com.au waits indefinitely for
  jse.trivago.com and never loads, although I can telnet to port 80. BTW,
  lynx works fine - which makes me more suspicious that it's CSS or some
 such.
 
  I rang the help desk late on Friday. They suggested DNS (??), but I don't
  think that's it because I tried using an external DNS server and in any
  case there doesn't seem to be any resolution problem. On their suggestion
  I've rebooted both the Cisco router and NTU with no change. Does anybody
  have any thoughts?
 
  David
  --
  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




-- 
http://au.linkedin.com/in/gliderflyer
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] CloudFormation chat before last night's SLUG talk

2015-04-25 Thread Amos Shapira
Hi,

There was someone who talked to me about not having enough info about using
AWS CloudFormation over pizza before the talk last night, but I didn't get
her name before she left.

If you see this - I can possibly provide you with some working examples I
use at my workplace if you like.

BTW - it was a very useful talk about Docker. Nothing beats hearing from
someone who's actually in the trenches. It felt like I could do with a
couple more hours like this :).

Cheers,

--Amos

-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] Recommendations for Australian Based VPS

2015-03-25 Thread Amos Shapira
1. Have you tried asking on Whirlpool forums? They got plenty of
experienced people there.
2. I just started using Exigent for web hosting (not vps) and so far they
are cheap and deliver. They also have VPS options. They got reports of
improving over time on Whirlpool.

--Amos

On 25 March 2015 at 11:04, Nick Andrew n...@nick-andrew.net wrote:

 On Wed, Mar 25, 2015 at 09:15:55AM +1000, Rick Phillips wrote:
  I will be moving my premises to a new site but have to wait until
  construction is completed.  My premises are sold and under contract
  so I need to find a temporary home for my services.  A VPS is
  probably the best option right now and so I am looking for
  recommendations.

 I've had good experiences with MammothVPS  http://www.mammoth.net.au/

 Nick.
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] Fixing broken apt-get on Zentyal (Ubuntu)

2015-02-10 Thread Amos Shapira
On 11 February 2015 at 11:39, scott redhowlingwol...@gmx.com wrote:

 On 02/10/2015 05:32 PM, David Lyon wrote:
  Hi,
 
  I have a working Zentyal server and everything is fine except that I need
  to deploy Python Imaging Library to it, and it doesn't work.
 
  apt-get is for some reason broken.
 
  I get the following error message with sudo apt-get install
 python2.7-dev
  or any command:
 
  E: Internal Error, No file name for libmount1

 Try this:
 sudo rm -f /etc/apt/sources.list.d/*
   then
 sudo dpkg --configure -a


Ouch Don't!

These are configuration files. If you want to clear this directory then
copy these files to another location and remove them from this directory.



 Scott
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] Fixing broken apt-get on Zentyal (Ubuntu)

2015-02-10 Thread Amos Shapira
I'd call these configuration files, and in any case something you don't
want to just wipe out out right without a way to restore.

Why do you propose to remove them anyway? apt-get complains about an
internal error. Your original response is identical to
http://askubuntu.com/a/337795, which someone reported to work for them
without the rm -f.

I'd say - try the sudo dpkg --configure -a by itself first.

Back to the original question - google'ing the error comes up with threads
which indicate post-upgrade troubles. Have you gone through a major upgrade
recently?

On 11 February 2015 at 14:21, scott redhowlingwol...@gmx.com wrote:

 On 02/10/2015 09:19 PM, Amos Shapira wrote:
  On 11 February 2015 at 11:39, scott redhowlingwol...@gmx.com wrote:
 
  On 02/10/2015 05:32 PM, David Lyon wrote:
  Hi,
 
  I have a working Zentyal server and everything is fine except that I
 need
  to deploy Python Imaging Library to it, and it doesn't work.
 
  apt-get is for some reason broken.
 
  I get the following error message with sudo apt-get install
  python2.7-dev
  or any command:
 
  E: Internal Error, No file name for libmount1
 
  Try this:
  sudo rm -f /etc/apt/sources.list.d/*
then
  sudo dpkg --configure -a
 
 
  Ouch Don't!
 
  These are configuration files. If you want to clear this directory then
  copy these files to another location and remove them from this directory.
 
 The sources.list.d directory is almost always PPA's the user has added.
 There are no configuration files in there.
 
  Scott
  --
  SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
  Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 
 
 
 




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] Strange behaviour of Chrome

2015-02-10 Thread Amos Shapira
Are you sure you got the youtube page open only once? No other tabs or
windows?


On 10 February 2015 at 17:25, Heracles herac...@iprimus.com.au wrote:


 On 10/02/15 17:08, scott wrote:

 On 02/10/2015 01:03 AM, Heracles wrote:

 When I look at a youtube video in chrome it seems to start the audio
 three times. I get the start of the video with sound, then the audio
 starts up a second time and then a third time with each about a second
 or so behind the next. It means that I have to start videos and then
 pause them until the other audio stops before actually playing the one
 on the screen.

 Has anyone else experienced this problem? Any ideas how to solve it?
 I'm using enlightenment on what calls itself Ubuntu 14.04 LTS.

 Ashley

  Can you reproduce it in Firefox or any other browser? Or is it just
 Chrome?
 Do you delete cookies when you close Chrome?


  Thanks Scott,
 Unfortunately, Firefox locks up on my system since I updated to 14.04.
 That is why I switched to Chrome.
 I'll try wiping the cookies.

 Ashley


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] ubuntu unity slow

2014-10-26 Thread Amos Shapira
Sounds like you have correlation between Java and slowness.
What's the Java configuration like? Do you tweaked the JVM settings to take
advantage of the larger RAM, for instance?


On 27 October 2014 09:08, Felix Sheldon dark...@internode.on.net wrote:

 Maybe it's Java that's slow?

 Try a different JDK maybe?


 --
 Felix


 On 27/10/14 08:02, Ashley Maher wrote:
  Afternoon,
 
  Hope there are a few Ubuntu users around?
 
  Have Ubuntu 14.04 running Unity Desktop.
 
  The hardware is i7 model 26, 12 Gig RAM, Cape Verde PRO Radeon HD 7750,
  Graphics
  driver in use: radeon, driving a 30inch Dell at 2560 X 1600.
 
  Opening a terminal and using vim is fine. However NetBeans IDE 8.0 is so
  slow as to be unusable. Eclipse is totally out of the question.
 
  Mail reader works, Libre Office is okay, GIMP is fine.
 
  Anybody got ideas as to where to start debugging this??
 
  Regards,
 
  Ashley
 

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] BASH update for Debian 6?

2014-09-25 Thread Amos Shapira
According to https://wiki.debian.org/DebianSqueeze, regular security
updates for squeeze were ended on May 31st 2014.

LTS security updates are supposed to be released until 2016. LTS support
is NOT provided by Debian security team. See the LTS announcement in
https://www.debian.org/News/2014/20140424.html

My take - upgrade is overdue.

--Amos

On 26 September 2014 08:56, Chris Barnes chris.p.bar...@gmail.com wrote:

 Hey people,

 I haven't seen an update for BASH come down in the Debian Squeeze security
 updates. As a result my machines are still vulnerable.

 My Debian 7 machines received the update promptly just not my 6 machines.

 Has anyone else received an update for BASH on Deb 6?

 Im using the security.Debian.org apt source for security updates.

 --
 Kind Regards,

 Christopher Barnes

 e. chris.p.bar...@gmail.com
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] BASH update for Debian 6?

2014-09-25 Thread Amos Shapira
General question to everyone reading this - I have an idea for a service to
provide tracking of such info (end of life, software life cycle)
automatically.

If anyone is curios to hear more, discuss or anything else, I'd be very
happy to hear from you.

Thanks.

--Amos

On 26 September 2014 10:28, Chris Barnes chris.p.bar...@gmail.com wrote:

 ahh thats the info i was looking for. Thanks Amos. You're right, upgrade
 is overdue.

 On Fri, Sep 26, 2014 at 10:23 AM, Amos Shapira amos.shap...@gmail.com
 wrote:

 According to https://wiki.debian.org/DebianSqueeze, regular security
 updates for squeeze were ended on May 31st 2014.

 LTS security updates are supposed to be released until 2016. LTS
 support is NOT provided by Debian security team. See the LTS announcement
 in https://www.debian.org/News/2014/20140424.html

 My take - upgrade is overdue.

 --Amos

 On 26 September 2014 08:56, Chris Barnes chris.p.bar...@gmail.com
 wrote:

 Hey people,

 I haven't seen an update for BASH come down in the Debian Squeeze
 security
 updates. As a result my machines are still vulnerable.

 My Debian 7 machines received the update promptly just not my 6 machines.

 Has anyone else received an update for BASH on Deb 6?

 Im using the security.Debian.org apt source for security updates.

 --
 Kind Regards,

 Christopher Barnes

 e. chris.p.bar...@gmail.com
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




 --
 http://au.linkedin.com/in/gliderflyer




 --
 Kind Regards,

 Christopher Barnes

 e. chris.p.bar...@gmail.com




-- 
http://au.linkedin.com/in/gliderflyer
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] I was searching the SLUG meeting info...

2014-09-25 Thread Amos Shapira
see what Google suggested: http://imgur.com/QwP0iwE

:)
-- 
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] dos2unix

2014-08-27 Thread Amos Shapira
tr -d '\r'  infile  outfile



On 27 August 2014 20:47, William Bennett wrbennet...@gmail.com wrote:

 When last I used it,  the command was dos2unix and I needed a dos file line
 ends converted

 When I mentioned this to a friend he sniffed and mentioned Tyrannosaus rex.

 Can anyone tell me what the latest command is, please?  While you're doing
 it I'll look for some new friends.

 William Bennett.
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
http://au.linkedin.com/in/gliderflyer
-- 
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] apt-get update GPG error

2014-07-22 Thread Amos Shapira
Could it be that the proxy has a corrupted cache? Try clearing it.
On 22 Jul 2014 14:51, David da...@kenpro.com.au wrote:



 On 22/07/14 14:33, Lubos Rendek wrote:

 Hi David,

 does ignoring GPG with:

 # apt-get --allow-unauthenticated update

 helps at least temporarily..?

 Lubos


 Sadly not :(

 root@gary:~# apt-get --allow-unauthenticated update
 Get:1 http://david precise Release.gpg [198 B]
 Get:2 http://david precise-updates Release.gpg [198 B]
 Get:3 http://david precise-backports Release.gpg [198 B]
 Get:4 http://david precise-security Release.gpg [198 B]
 Hit http://david precise Release
 Ign http://david precise Release
 E: GPG error: http://david precise Release: The following signatures were
 invalid: NODATA 1 NODATA 2


 On Tue, Jul 22, 2014 at 1:35 PM, David da...@kenpro.com.au wrote:

 I use apt-proxy several servers (no gui on any of them) on a machine
 called
 david. I'm getting the error below on any machine that's set up for
 auto-update, but not on machines that are manually updated.

 I suspect it has something to do with an attempted apt-get update while
 the
 proxy is off line, but I'm not sure. If I remove the proxy by way of
 editing
 the sources-list everything works again.

 Google isn't helping me find a way of getting things to work again. Any
 suggestions how to fix it?


 root@gary:~# apt-get update
 Get:1 http://david precise Release.gpg [198 B]
 Get:2 http://david precise-updates Release.gpg [198 B]
 Get:3 http://david precise-backports Release.gpg [198 B]
 Get:4 http://david precise-security Release.gpg [198 B]
 Hit http://david precise Release
 Ign http://david precise Release
 E: GPG error: http://david precise Release: The following signatures
 were
 invalid: NODATA 1 NODATA 2

 --
 David McQuire
 0418 310312

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


 --
 David McQuire
 0418 310312

 --
 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] Getting the correct time on Raspberry-Pi

2014-07-17 Thread Amos Shapira
Which distribution is it? The method to set system timezone depends on the
answer to this question.

And BTW - what you are asking about is setting the time ZONE. Setting the
correct time is usually a matter left to NTP.



On 17 July 2014 10:51, David Lyon david.lyon.preissh...@gmail.com wrote:

 I'm trying to get the correct datestamp in a logfile for Raspberry-Pi for a
 server task.

 The task runs under supervisord with root permissions.

 I modified /root/.profile and added TZ='Australia/Sydney'; export TZ

 However, in Python, the logging/task doesn't see dates with the correct
 timezone delta added.

 How can I get this to work?
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] MySQL maintenance

2014-06-27 Thread Amos Shapira
Which storage engine and which version of Mysql? They were not all made
equal.
Otherwise, like others said, I'd look at hardware issues.
On 28 Jun 2014 10:46, li...@sbt.net.au wrote:

 I've been using MySQL for CMS and mail like for ever, on physical servers
 and vm servers with no problems that I can recall, ever.

 on the new vm, in use about 6 month, couple of weeks ago joomla cms went
 down, traced to corrupt MySQL table, fixed with phpmyadmin, all good

 yesterday noticed cacti not working / failed few weeks ago (perhaps at
 similar time to joomla, need to check that), again, traced to corrupt
 MySQL table

 with two failures, getting a little concerned, need to look into some
 regular/preventive maintenance? to detect failure at MySQL before results
 of failure are realized ?

 what do people do with MySQL in such terms ?
 should I run mysqlcheck at regular basis?

 thanks for pointers and suggestions

 V

 --
 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] Silent 3.5 SATA HDD mounts, anyone?

2014-06-25 Thread Amos Shapira
Hi,

I have a TowerRAID TRM5B (http://www.sansdigital.com/towerraid/tr5mb.html)
without the caddies, and a Western Digital Red Caviear 2TB 3.5 disk.

I'm looking into mounting the disk into the tower with some noise dampers.
As far as I can tell, I need to attach some sort of a caddy to the disk
which will allow it to slide inside the slots and pushed against the back
plane.

But so far I failed to find such caddies. I only see 2.5-3.5 converters
or 3.5-5.25 converters.

Could someone give me a pointer?

Thanks,

--Amos
-- 
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] Silent 3.5 SATA HDD mounts, anyone?

2014-06-25 Thread Amos Shapira
I finally found that what I need are these specialised trays:
http://store.sansdigital-shop.com/toseretrmob.html.
I can find used ones for ~$25 including shipping from Amazon. Still not
cheap. If someone knows a good cheap place then I'd appreciate to hear
about it.

Thanks.


On 26 June 2014 07:09, Amos Shapira amos.shap...@gmail.com wrote:

 Hi,

 I have a TowerRAID TRM5B (http://www.sansdigital.com/towerraid/tr5mb.html)
 without the caddies, and a Western Digital Red Caviear 2TB 3.5 disk.

 I'm looking into mounting the disk into the tower with some noise dampers.
 As far as I can tell, I need to attach some sort of a caddy to the disk
 which will allow it to slide inside the slots and pushed against the back
 plane.

 But so far I failed to find such caddies. I only see 2.5-3.5 converters
 or 3.5-5.25 converters.

 Could someone give me a pointer?

  Thanks,

 --Amos




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] t/s old hardware failure

2014-06-07 Thread Amos Shapira
I'd suspect environmental issues like temp, power brown/black out, dust
accumulation.
Lacking any more specifics I'd grep the logs for errors, but don't have
much hope.
On 7 Jun 2014 16:44, li...@sbt.net.au wrote:

 I have an old (ancient?) P4 with 30mb+40mb IDE HDs, it's just used as a
 cacti server, has been in use as is for several years, no screen, no kbd,
 last power down was about 1 year ago

 today I noticed it's down, as there is no screen no keybd, I just hit
 reset, but, it didn't come up

 once the screen was attached I saw it was stopped on BIOS screen after:

 Pri. M HDD SMART enabled
 Pri. S HDD SMART enabled

 PCI device listing/IRQ
 (list)
 -

 rebooted to BIOS, set 'fail safe', booted OK
 rebooted to BIOS, set 'optimal', booted OK

 working fine again

 is there any logs that might point out why it stopped earlier ?

 any diags to try running ?

 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:49:28 EDT 2012 i686 i686 i386

 top - 16:38:48 up  1:15,  1 user,  load average: 0.24, 0.56, 0.68
 Tasks: 110 total,   2 running, 108 sleeping,   0 stopped,   0 zombie
 Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,
 0.0%st
 Mem:   1002124k total,   492440k used,   509684k free,24048k buffers
 Swap:  2031608k total,0k used,  2031608k free,   340848k cached


 --
 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] t/s old hardware failure

2014-06-07 Thread Amos Shapira
On 8 June 2014 09:52, li...@sbt.net.au wrote:

  I have an old (ancient?) P4 with 30mb+40mb IDE HDs, it's just used as a

 must wait for next council cleanup so can pick up something more modern, I
 think


If your reasons are economical then have you looked at how much power this
server cost you?
Perhaps a Raspberry Pie or some other low-power server will save you lots
more power than it costs.

--Amos
-- 
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] multiple grep conditions ?

2014-05-22 Thread Amos Shapira
On 22 May 2014 14:12, li...@sbt.net.au wrote:

 On Wed, May 21, 2014 12:28 pm, pe...@chubb.wattle.id.au wrote:

  As you're not using regular expressions, but just strings, fgrep is
  the way to do it. fgrep -q '07/2014 15/06/2014
  20/06/2014
  25/06/2014' part 2  exit 0

 Peter, thanks

 Amos, you've per-emptied my next Q, thanks


Glad I did :)



 I actually should move it totally out of script, as this list will often
 change, so (I think?) I can enter dates into a file, say 'patterns'

 and, use like

 fgrep -q -f /path/to/pattern part2  exit 0


Yes this will work. One pattern per line. See man grep. No need to quote
or anything since it's not parsed through the shell.



 ?

 will I need any quotes in file 'pattern', or simply like:

 07/2014
 15/06/2014
 20/06/2014
 25/06/2014

 thanks again

 V


 On Wed, May 21, 2014 7:24 pm, Amos Shapira wrote:
  It might be more maintainable to keep the list of patterns in a variable
  (line per pattern) then pass it to grep using grep's -f/--file= argument:
 
 
  PATTERNS=15/06/2014
  20/06/2014
  25/06/2014
 
 
  ...
  grep -q -f (echo $PATTERNS) file2  exit 0
 
  Note the use of double quotes around the variable interpolation in the
  grep command line, they are essential to preserve the newlines in the
  variable's value.
 
  The (bash specific, I think) trick here if the use of (command) which
  causes bash to open a pipe to the command and pass its name as
  /dev/fd/FILE-DESC-NUMBER to grep so grep thinks it's a regular file to
  read match patterns from while its stdin is still free to read the input
  to match against the patterns. If grep doesn't read its input from stdin
  but from a regular file then you don't need this trick and can just pass
  -f -
  to make grep read the patterns from stdin and the matching text from the
  regular file:
 
  grep -q -f - file2  exit 0 $PATTERNS
 
  (actually this uses another bash specific trick, you can do the following
   to get rid of bash'ism completely:
 
  echo $PATTERN | grep -q -f files  exit 0 )


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Best (most efficient method) recursive dir DEL

2014-05-22 Thread Amos Shapira
On 22 May 2014 19:16, Darragh Bailey daragh.bai...@gmail.com wrote:

 Hi Kyle,

 You might find it worth looking at the following invocation of find:

 find top_dir -name name_to_del -exec rm -rf {} \+ -prune

 the '+' will support expansion of arguments, thus it works exactly like
 xargs in building up a command line that is passed to rm. You may also need
 to specify \{}\ to handle whitespace in directory names, untested.


Kudos for bringing this up. I wasn't aware of the + option.

1. There is no need to quote the {}, find will pass the file names already
as separate arguments without splitting them on white space.
2. As you demo above but possibly worth to stress - the + form does NOT
take a terminating ;.

Test (my Mac home directory, which contains a few standard directory names
with spaces):

~$ gfind -maxdepth 1 -type d -exec ls -dF {} \+
./ ./Downloads/ ./Sites/
./.Trash/ ./Google Drive/ ./Snapshots/
./.config/ ./Library/ ./VirtualBox VMs/
./.ssh/ ./Movies/ ./bin/
./.vagrant.d/ ./Music/ ./git-dotfiles/
./Applications/ ./Pictures/ ./macports/
./Desktop/ ./Programs/ ./tmp/
./Documents/ ./Public/

Notice how ls is passed the right directory names for Google Drive and
VirtualBox VMs

--Amos



 On 22 May 2014 00:10, Kyle k...@attitia.com wrote:

  Hi folks,
 
  I was wondering what is the best (as in most efficient method) for doing
  an automated, scheduled recursive search and DEL exercise. The scheduled
  part is just a cron job, no problem. But what's the most efficient method
  to loop a given structure and remove all (non-empty) directories below
 the
  top dir?
 
  The 3 examples I've come up with are;
 
  find top_dir -name name_to_find_and_DEL -exec rm -rf {} \;  -
  what's the '\' for and is it necessary?
 

 You need to escape ';' from the shell, otherwise it will think it's the end
 of the command and strip it from what is passed to 'find' which will in
 turn exit with an exception in that it couldn't work out where the end of
 the 'exec' command occurred.



 
  rm -rf `find top_dir -type d -name name_to_find_and_DEL` - does
 it
  actually require the ' ` ' or are ' ' ' good enough?
 
  find top_dir -name 'name_to_find_and_DEL' -type d -delete- or
  won't this work for a non-empty dir?
 
  Or is there a more efficient manner which I can slot into a cron job?
 


 As someone else already pointed out, it'll probably depend on

 --
 Darragh Bailey
 Nothing is foolproof to a sufficiently talented fool
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Best (most efficient method) recursive dir DEL

2014-05-22 Thread Amos Shapira
Locate only indexes path names, not other attributes (like type, size, time
etc)
On 23 May 2014 06:11, Kyle k...@attitia.com wrote:

 Thanks to all for the responses.

 Interestingly, everyone has come back with find (followed by..) as
 the best option. Perhaps this is simply a reflection of the fact my 3
 examples all used 'find'.

 I have always thought (believed) 'find' was a less efficient process than
 'locate' and kind of hoped 'locate' (or some other cmd I don't know) might
 pop up as a solution. I understand 'locate' depends on an updated 'db', but
 I figured that indexing process was still more efficient than 'find'
 trawling the structure in realtime.

 Kyle


 On 22-05-2014 19:16, Darragh Bailey wrote:

 Hi Kyle,

 You might find it worth looking at the following invocation of find:

 find top_dir -name name_to_del -exec rm -rf {} \+ -prune

 the '+' will support expansion of arguments, thus it works exactly like
 xargs in building up a command line that is passed to rm. You may also need
 to specify \{}\ to handle whitespace in directory names, untested.

  --
 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] multiple grep conditions ?

2014-05-21 Thread Amos Shapira
It might be more maintainable to keep the list of patterns in a variable
(line per pattern) then pass it to grep using grep's -f/--file= argument:

PATTERNS=15/06/2014
20/06/2014
25/06/2014

...
grep -q -f (echo $PATTERNS) file2  exit 0

Note the use of double quotes around the variable interpolation in the grep
command line, they are essential to preserve the newlines in the variable's
value.

The (bash specific, I think) trick here if the use of (command) which
causes bash to open a pipe to the command and pass its name as
/dev/fd/FILE-DESC-NUMBER to grep so grep thinks it's a regular file to read
match patterns from while its stdin is still free to read the input to
match against the patterns. If grep doesn't read its input from stdin but
from a regular file then you don't need this trick and can just pass -f -
to make grep read the patterns from stdin and the matching text from the
regular file:

grep -q -f - file2  exit 0 $PATTERNS

(actually this uses another bash specific trick, you can do the following
to get rid of bash'ism completely:

echo $PATTERN | grep -q -f files  exit 0
)



On 21 May 2014 12:28, li...@sbt.net.au wrote:


  grep -q '07/2014' part2  exit 0 grep -q '15/06/2014' part2  exit 0
 grep
  -q '20/06/2014' part2  exit 0
  grep -q '25/06/2014' part2  exit 0

 is this the way to do this ?

 grep -q -e '15/06/2014' -e '20/06/2014' -e '25/06/2014' file2  exit 0



 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Best (most efficient method) recursive dir DEL

2014-05-21 Thread Amos Shapira
(Sorry I'm writing from the phone and can't test exact solution)

What's the context of this question? Do you really want to keep all empty
directories?

-delete will fail on non-empty directories. Use -print0 -prune | xargs
-0 rm -rf to stop find from scanning the doomed directory.
On 22 May 2014 09:10, Kyle k...@attitia.com wrote:

 Hi folks,

 I was wondering what is the best (as in most efficient method) for doing
 an automated, scheduled recursive search and DEL exercise. The scheduled
 part is just a cron job, no problem. But what's the most efficient method
 to loop a given structure and remove all (non-empty) directories below the
 top dir?

 The 3 examples I've come up with are;

 find top_dir -name name_to_find_and_DEL -exec rm -rf {} \;  -
 what's the '\' for and is it necessary?

 rm -rf `find top_dir -type d -name name_to_find_and_DEL` - does it
 actually require the ' ` ' or are ' ' ' good enough?

 find top_dir -name 'name_to_find_and_DEL' -type d -delete- or
 won't this work for a non-empty dir?

 Or is there a more efficient manner which I can slot into a cron job?

 Much appreciate the input.

 --
 
 Kind Regards

 Kyle

 --
 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] stop processing with 'if grep exit' ?

2014-03-19 Thread Amos Shapira
If you want to grep for multiple strings in the same file, and exit if any
of them is found, it is more efficient (and I think more maintainable) to
specify them in one line:

grep -q -e test2 -e test3 file2  exit 0

The -q is --quiet - just to suppress the output if you aren't interested
in it (in this case you are only interested in the exit status, not the
output). The -e flag introduces each search term.

If the list of strings to look for is longer or variable then you can feed
it to grep from a file using -f.

See man grep for all the details.


On 19 March 2014 18:22, li...@sbt.net.au wrote:


  grep test2 file2  exit 0

 Peter,

 thanks, I'll try that

 so, I could use multiple conditions like so:

 grep test2 file2  exit 0
 grep test3 file2  exit 0

 ? thanks


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] connectivity test loop?

2014-03-12 Thread Amos Shapira
Testing for connectivity at the beginning is futile - the connection can be
lost at any point even after getmail connected successfully and started
downloading messages.
You should look for a way to get getmail to handle the failure even in the
middle of retrieving mails.
For this - google about getmail's configuration and options. I'm not
familiar with that software.

Now about your script - the way you loop it means that you'll keep growing
an unlimited chain of sms script processes, each waiting for its only
child, look at the output of ps after letting it run for a while. Use
pstree or ps -ejH if you have a better view of the relations between
the processes.

Instead, you should either (in decreasing order of recommendation):
1. Run getmail in daemon mode.
2. Use cron to fire it once in a while (be it once a day or every minute,
it's up to you) and don't forget to use a lock file to prevent multiple
getmail instances from running concurrently.
3. Use a loop, e.g. while true; do ...; done

--Amos



On 12 March 2014 09:00, li...@sbt.net.au wrote:

 I have a basic script to watching mailbox for new emails with
 cygwin/getmail, that works OK, BUT, occasionally, ADSL goes down,
 generally, it comes back promptly, though, not always

 as a crude workaround, I looped the script to itself as so, that works,
 but, if ADSL is down for longer time, it just loops endlessly and
 unnecessarily:

  $ cat sms
  #! /bin/sh
  cd /home/voytek
  LOG=/home/voytek/sms-record.log
  echo `date` started  $LOG
  cd getmail
  ./getmail -i folder
  echo `date` ended  $LOG
  /home/voytek/sms

 how can I make some basic connectivity test (against the mail server) to
 delay getmail until connectivity exists ?


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] cygwin script file name error

2014-02-21 Thread Amos Shapira
BTW, in addition to the rest that was said, cat -tve is very useful in
troubleshooting such issues.
On 21 Feb 2014 15:24, li...@sbt.net.au wrote:

 I've made a crude script under cygwin/XP, it was mainly working, but,
 after some edits, I'm getting a '?' appended to file name ?
 as so:
 sms_out_now.txt?

 when I paste individual lines at command line, it seems to work, when I
 run from the 3 line script, it seems to append the '?'
 where am I going wrong, I'm trying to copy small file, then, put current
 time/date:

 the problem (I think?) arose after I added 'date ' part

  ~
 $ cat /home/voytek/sendsms
 #! /bin/sh
 cp /var/spool/sms/sms_out /var/spool/sms/sms_out_now.txt
 date/var/spool/sms/sms_out_now.txt
 mv /var/spool/sms/sms_out_now.txt /var/spool/sms/outgoing/

 $ ls -al /var/spool/sms/
 ...
 drwxr-xr-x+ 1 voytek None  0 Feb 21 15:08 .
 drwxr-xr-x+ 1 voytek None  0 Jan 29  2010 ..
 ...
 -rwxr-xr-x  1 voytek None 62 Feb 18 21:47 sms_out
 -rwxr-xr-x  1 voytek None 92 Feb 21 10:37 sms_out_now.txt?


 voytek


 --
 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] cygwin script file name error

2014-02-21 Thread Amos Shapira
I don't see the ^M's that I was expecting. Is this file cleaned and working?
Perhaps cat in Cygwin requires an additional option to show ^M's?



On 21 February 2014 21:44, li...@sbt.net.au wrote:

 On Fri, February 21, 2014 8:05 pm, Amos Shapira wrote:
  BTW, in addition to the rest that was said, cat -tve is very useful in
  troubleshooting such issues.

  $ cat /home/voytek/sendsms
  #! /bin/sh
  cp /var/spool/sms/sms_out /var/spool/sms/sms_out_now.txt date  
  /var/spool/sms/sms_out_now.txt
  mv /var/spool/sms/sms_out_now.txt /var/spool/sms/outgoing/

 Amos,

 thanks !

 $ cat -tve sendsms
 #! /bin/sh$
 cp /var/spool/sms/sms_out /var/spool/sms/sms_out_now$
 date/var/spool/sms/sms_out_now$
 mv /var/spool/sms/sms_out_now /var/spool/sms/outgoing/$
 $



 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Weird missing files.

2014-02-09 Thread Amos Shapira
Permissions?
On 10 Feb 2014 13:45, Jeff Allison jeff.alli...@allygray.2y.net wrote:

 Hi all I've got a strange samba issue.

 I've a Centos 6.5 box with a 3.6 raid ext4 data drive on it, shared
  with samba.

 Now when I browse these folders on the console I can see the files. when I
 sftp on the command line from another box I can see these files.

 But when I browse via samba or using a gui sftp client quite a lot of these
 files are missing...

 Any ideas?
 --
 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] Monitoring web servers from Australia?

2014-01-22 Thread Amos Shapira
Hi,

I'd like to monitor uptime and accessibility of a web server hosted in
Sydney.
I use Pingdom for now, but it doesn't have probes in Australia so it might
be too sensitive to network issue I don't care so much about (for now the
website targets Australian audiences).

Is anyone aware of a good, cheap (free?) monitor a-la Pingdom with
Australia-based probes?

Thanks,

--Amos

-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Monitoring web servers from Australia?

2014-01-22 Thread Amos Shapira
Thanks.


On 22 January 2014 19:14, Gonzalo Servat gser...@gmail.com wrote:

 On Wed, Jan 22, 2014 at 7:01 PM, Amos Shapira amos.shap...@gmail.com
 wrote:

  Hi,
 
  I'd like to monitor uptime and accessibility of a web server hosted in
  Sydney.
  I use Pingdom for now, but it doesn't have probes in Australia so it
 might
  be too sensitive to network issue I don't care so much about (for now the
  website targets Australian audiences).
 
  Is anyone aware of a good, cheap (free?) monitor a-la Pingdom with
  Australia-based probes?
 

 After a quick Google around:



 http://monitive.com/help/monitoring-basics/monitoring-network-checking-location

 I've not used them, but they have Sydney probes.

 - GS
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Working with PKCS7

2014-01-17 Thread Amos Shapira
Perhaps:

openssl pkcs7 -text -noout -print_certs

From:
http://www.madboa.com/geek/openssl/



On 17 January 2014 19:05, Jiří Baum j...@baum.com.au wrote:

 Hello,

 Anyone have any hints for how to work with PKCS7 (.p7s) files?

 So far I've managed to find that openssl can create them, and convert
 them between two different encodings, but nothing that would actually
 check the signatures and/or extract the text...

 Any suggestions?


 Jiri
 --
 Jiří Baum j...@baum.com.au
 Sabik Software Solutions Pty Ltd
 0413 183 117
 http://www.baum.com.au/sabik
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

[SLUG] Where to look for a PHP developer?

2014-01-08 Thread Amos Shapira
Hi,

My partner is looking to hire a PHP programmer to maintain a Symfony 1 web
site (http://symfony.com/legacy, yes I know it's not the latest, but the
web company which built it for her says that current Symfony 2 isn't ready
yet).

I was about to suggest her slug-jobs as a start but it seems to have been
gone.

Can anyone recommend forums where GOOD developers can be found for such
jobs?

Although such jobs can be done remotely, it might be beneficial to have
someone local.

Thanks,

--Amos
-- 
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] socket dissapears, how to t/s ?

2013-12-17 Thread Amos Shapira
In your initial message about socket disappear you were looking for
/var/spool/amavisd/clamd.sock,
that's a different path to the one we see here
/var/run/clamav/clamd.sock, perhaps you have to update the path in the
client.


On 17 December 2013 19:51, li...@sbt.net.au wrote:

 On Tue, December 17, 2013 4:33 pm, Amos Shapira wrote:
  So it's not a chroot thing. Please run lsof -p 5914 and paste the
  output, I don't trust grep's on pid numbers.

 # lsof -p 5914
 COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
 clamd   5914 amavis  cwdDIR  202,1 40962 /
 clamd   5914 amavis  rtdDIR  202,1 40962 /
 clamd   5914 amavis  txtREG  202,1   151456   397986
 /usr/sbin/clamd
 clamd   5914 amavis  memREG  202,1   156928   196977
 /lib64/ld-2.12.so
 clamd   5914 amavis  memREG  202,1  1926800   197060
 /lib64/libc-2.12.so
 clamd   5914 amavis  memREG  202,122536   197048
 /lib64/libdl-2.12.so
 clamd   5914 amavis  memREG  202,1   145896   197109
 /lib64/libpthread-2.12.so
 clamd   5914 amavis  memREG  202,191096   201511
 /lib64/libz.so.1.2.3
 clamd   5914 amavis  memREG  202,1   599384   201505
 /lib64/libm-2.12.so
 clamd   5914 amavis  memREG  202,169976   196781
 /lib64/libbz2.so.1.0.4
 clamd   5914 amavis  memREG  202,1  1536704   397963
 /usr/lib64/libclamav.so.6.1.18
 clamd   5914 amavis  memREG  202,165928   196751
 /lib64/libnss_files-2.12.so
 clamd   5914 amavis0r   CHR1,3  0t0 3674
 /dev/null
 clamd   5914 amavis1w   CHR1,3  0t0 3674
 /dev/null
 clamd   5914 amavis2w   CHR1,3  0t0 3674
 /dev/null
 clamd   5914 amavis3w   REG  202,113427   518195
 /var/log/clamav/clamd.log
 clamd   5914 amavis4u  unix 0x88007b7769c0  0t0 25368400 socket
 clamd   5914 amavis5u  unix 0x880053cf6980  0t0 25368465
 /var/run/clamav/clamd.sock
 clamd   5914 amavis6r  FIFO0,8  0t0 25368468 pipe
 clamd   5914 amavis7w  FIFO0,8  0t0 25368468 pipe
 clamd   5914 amavis8r  FIFO0,8  0t0 25368469 pipe
 clamd   5914 amavis9w  FIFO0,8  0t0 25368469 pipe



 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] socket dissapears, how to t/s ?

2013-12-16 Thread Amos Shapira
Try ls -l /proc/21905/root to show you the process's root directory.



On 16 December 2013 14:28, li...@sbt.net.au wrote:

 On Mon, December 16, 2013 2:01 pm, Steve Kowalik wrote:

  Sounds like a chroot issue. As root, what does /proc/pid of clamd/cwd
  point to?

 Steve, thanks

 do you mean this:
 # ps ax | grep clamd
 21905 ?Ssl0:00 clamd

 # ls -al  /proc/21905/cwd
 lrwxrwxrwx 1 root root 0 Dec 16 14:22 /proc/21905/cwd - /

 # ls  /proc/21905/cwd
 bin   cgroup  etc   liblost+found  misc  net  proc  sbin srv  tmp
 var
 boot  dev home  lib64  media   mnt   opt  root  selinux  sys  usr

 # ls -al  /proc/21905/cwd/var/spool/amavisd/clamd.sock
 srw-rw-rw- 1 amavis amavis 0 Dec 16 14:21
 /proc/21905/cwd/var/spool/amavisd/clamd.sock



 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] socket dissapears, how to t/s ?

2013-12-16 Thread Amos Shapira
So it's not a chroot thing. Please run lsof -p 5914 and paste the output,
I don't trust grep's on pid numbers.



On 17 December 2013 15:12, li...@sbt.net.au wrote:

 On Mon, December 16, 2013 10:23 pm, Amos Shapira wrote:
  Try ls -l /proc/21905/root to show you the process's root directory.

 # ps ax | grep clamd
  5914 ?Ssl0:14 clamd

 # ls -l /proc/5914/root
 lrwxrwxrwx 1 root root 0 Dec 17 15:11 /proc/5914/root - /


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] socket dissapears, how to t/s ?

2013-12-15 Thread Amos Shapira
I'm not an expert with this specific software but general knowledge of
CentOS would lead me to:
1. I suspect your configuration switched from using unix-domain sockets to
tcp sockets.
2. permission denied on TCP socket bind would point me to selinux issues
or perhaps weird maximum, root-only port limit (unlikely). google it.



On 16 December 2013 10:37, li...@sbt.net.au wrote:

 I have a new Centos Postfix/Amavis server, it came as a preconfigured
 iRedMail server, a pre configured Postfix + ancillaries

 amavisd-new was installed and running, but, after a few days, amavisd
 started crashing

 I suspect a yum update of clamd from 'incompatible repos' caused it (?)

 I'm trying to figure out what's going on, when I start 'clamd' I get a
 socket as so:

 # service clamd start
 Starting Clam AntiVirus Daemon:[  OK  ]

 # ls -al /var/spool/amavisd/clamd.sock
 srw-rw-rw- 1 amavis amavis 0 Dec 16 10:29 /var/spool/amavisd/clamd.sock

 but, when I start amavisd it fails with

 # amavisd debug
 ...//...
 Use of uninitialized value in subroutine entry at
 /usr/local/share/perl5/Net/Server/Proto.pm line 125.
 Dec 16 10:31:26.427 emu.sbt.net.au /usr/sbin/amavisd[10618]: Net::Server:
 Binding to UNIX socket file /var/spool/amavisd/clamd.sock
 Dec 16 10:31:26.427 emu.sbt.net.au /usr/sbin/amavisd[10618]: Net::Server:
 Binding to TCP port 10024 on host 127.0.0.1 with IPv4
 Dec 16 10:31:26.428 emu.sbt.net.au /usr/sbin/amavisd[10618]:
 (!)Net::Server: 2013/12/16-10:31:26 Can't connect to TCP port 10024 on
 127.0.0.1 [Permission denied]\n  at line 68 in file
 /usr/local/share/perl5/Net/Server/Proto/TCP.pm
 Dec 16 10:31:26.428 emu.sbt.net.au /usr/sbin/amavisd[10618]: Net::Server:
 2013/12/16-10:31:26 Server closing!

 and, the socket disapears ?

 # ls -al /var/spool/amavisd/clamd.sock
 ls: cannot access /var/spool/amavisd/clamd.sock: No such file or directory
 # service clamd status
 clamd (pid 9263) is running...

 any suggestion how to figure this out?


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] socket dissapears, how to t/s ?

2013-12-15 Thread Amos Shapira
lsof the clamd process
On Mon, December 16, 2013 11:08 am, Amos Shapira wrote:

Amos,

thanks

 I'm not an expert with this specific software but general knowledge of
 CentOS would lead me to:
 1. I suspect your configuration switched from using unix-domain sockets to
  tcp sockets.

hmm, that rings the bell of some past woes, I'll try to check through
relevant config files

 2. permission denied on TCP socket bind would point me to
 selinux issues or perhaps weird maximum, root-only port limit (unlikely).
 google it.

no selinux:
# sestatus
SELinux status: disabled


--
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] assessing vps performance issues

2013-10-30 Thread Amos Shapira
In addition to Michael's good advise, see
http://blog.scoutapp.com/articles/2013/07/25/understanding-cpu-steal-time-when-should-you-be-worriedabout
steal time.


On 30 October 2013 12:28, Michael Chesterton che...@chesterton.id.auwrote:

 show the support people your evidence of high IO wait.
 if they can't fix it, change providers.

 Also if they have a public forum, ask for help on their public forum
 with the output showing high IO. If they're an au company, ask
 for help on whirlpool in the appropriate forum, they probably watch
 that for mentions of their name.




 On Wed, Oct 30, 2013 at 12:17 PM, li...@sbt.net.au wrote:

  On Fri, October 25, 2013 1:36 pm, Michael Chesterton wrote:
   I know it's resolved, but look at the 6th column in the original post.
   90+% iowait, 90% of the time, the cpu is waiting for IO.
 
   now what you should do is run the same command when everything is
 working
   normally so you'll know what the output looks like. Then when you have
   another problem, you can compare with the normal output. --
 
  the resolved problem keeps coming back,
  under normal situation, I'm ruining load average of .2
  then, for maybe 1 to 2 hours high iowait, load average peaks at 130+
 
  aprt from sar and bonnie (haven't installed it yet, wasn't in my repo),
  what other indicators can I use ?
 
  I'm thinking of feeding it into cacti.
 
  meanwhile, data centre response has been:
 
  'we can ping it, there is nothing wrong' and 'reboot the server'
 
 
  --
  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




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] making fgets fail during testing

2013-09-22 Thread Amos Shapira
use strace and friends

I though I'd mention that friends should include the lesser known
ltrace (http://linux.die.net/man/1/ltrace), which should allow you to
find which user-space function is called, not just system calls.



On 21 September 2013 23:07, Glen Turner g...@gdt.id.au wrote:

 The usual technique is to interpose your own library call above the usual
 call. See LD_PRELOAD and dlsym(). For an interpreted language like PHP use
 strace and friends to see which library calls the PHP fgets() uses (it need
 not be fgets(), it could be read()).
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Fwd: Cool New Terminal Emulator for a modern look in Linux (David Lyon)

2013-04-07 Thread Amos Shapira
On 7 April 2013 09:38, David Lyon david.lyon.preissh...@gmail.com wrote:

 Apart from all the eye-candy in Terminology I found that it has one really
 useful
 command that helped me at work. It has commands called 'tyls' and 'tycat'.
 What
 theydo is list out files in a command line along with a preview.

 It doesn't sound much but normally you have to go out to some gui file
 manager
 window to see some pictures you are developing with. I was just writing a
 resizing
 script for images on a website.


That's exactly my though when I saw the demo movie! I don't deal much with
images/videos but when I do (e.g. attach to e-mail or generally check
family photos), I always wish I could do that without resorting to some
graphic GUI.

--Amos
-- 
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] 20 years of using Linux at Home

2013-04-06 Thread Amos Shapira
Yes it was ablast to be able to rub real Unix programs with ls and shell
and fork(2) on 386 Ollivetti after years of having to rock up to a serial
terminal connected to a Vax to enjoy them.

But let me tell what I think about this discussion:
http://www.youtube.com/#/watch?v=Xe1a1wHxTyo
http://en.wikipedia.org/wiki/Four_Yorkshiremen_sketch

Happy anniversary :-)
On Apr 7, 2013 5:38 AM, Richard Ibbotson richard.ibbot...@googlemail.com
wrote:

   Well today pretty much marks 20 years since I've used Linux at
   home.

 I started using Debian and RedHat Linux when I was at www.shef.ac.uk
 back in 1993.  Then I got into e-mail discussions with Richard
 Stevenson at Pegasus Mail in New Zealand.  By 95/96 I was helping to
 start the first UK LUG - www.manlug.org.uk - and then later -
 www.sheflug.org.uk - which I still run.  The discussion with Richard
 Stevenson was about the fact that I would have to be nuts to suggest
 that a free desktop could exist on Linux.  But, as we all know.  Times
 have changed. I spent ten years writing for - www.linuxuser.co.uk -
 www.linuxformat.co.uk - http://www.linux-magazine.com/ .  Travelled
 round the world a few times doing that.

 Just at the moment we seem to be experiencing a healthy FOSS
 environment with many versions of GNU/Linux and BSD out there.  It
 wasn't always like that.

 --
 Richard

 https://twitter.com/SleepyPenguin1
 http://www.sheflug.org.uk
 --
 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 to analyse syslog in realtime

2013-02-14 Thread Amos Shapira
In addition to LogStash/Kibana, perhaps you want to look at something that
just sends the events to statsd (https://github.com/etsy/statsd/) which
then aggregates them into counters and ships the results to Graphite (
http://graphite.wikidot.com/).

I have have yet to get personal experience with LogStash under fire, but
my hunch is that statsd+graphite are more lightweight for your purposes.



On 14 February 2013 12:03, David Gillies da...@dorja.com wrote:

 On 14/02/13 11:48, Chris Barnes wrote:
  Hi everyone,
 
  my firewall logs everything to a syslog server - new connections,
  terminated connections, etc
 
  basically what im trying to do is analyse the syslog in realtime looking
  for a specific string which indicates a new connection has been
  established, and to count the number of occurrences of that string to get
  an idea of how many connections per minute im getting for a particular
  internet service so that I can graph it.
 
  An example of the significant line in syslog im looking for is:
 
  Feb 14 11:42:52 10.1.1.1 : Feb 14 11:19:47 EDT: %PIX-session-6-302015:
  Built inbound UDP connection 3523357 for Outside:124.178.41.91/123 (
  124.178.41.91/123) to svrdmz:NTP/123 (NTP/123)
 
  I can use the following to watch the log for the specific event
 
  tail -f /var/log/syslog | grep to svrdmz:NTP/123 (NTP/123)
 
 
  But I cant figure out a way to programatically count how many of these
  events occur per minute.
 
  any suggestions?
 
 logstash and kibana (logstash web frontend)

 logstash: http://logstash.net/
 kibana: http://kibana.org/ http://kibana.org/

 Also relevant, the Logstash Book by James Turnbull:
 http://www.logstashbook.com/
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Local Debian 6.0.5 Repository

2012-08-23 Thread Amos Shapira
In addition to Ken's comprehensive response, the bottom line action I'd
recommend is to follow the instructions for installation from the netinst
image, especially if you have a reasonable access (e.g. any home ADSL
connections is sufficient)
 On Aug 23, 2012 10:40 PM, Lee Isaacson lee.isaac...@gmail.com wrote:

 Hi all,

 I am still a Linux novice but like learning new things.

 I am thinking of downloading all the ISO files for Debian.

 I found the below link but need some help:-

 http://www.debian-administration.org/articles/286

 How will I know how to break the items up into free, non free etc

 I am not sure what the code name is for Debian 6.0.5

 Is there a step by step guide where to show me where to copy the files
 to and how to tell Debian to look on my pc first before downloading
 from the Internet or even a video on utube.

 I look forward to hearing from you.

 Regards,
 Lee
 --
 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] using desktop across lan ? fan speed control

2012-08-19 Thread Amos Shapira
I was actually concentrating on the CONNECTION_REFUSED error before that,
which means that nothing was listening on that port.
On Aug 19, 2012 5:20 PM, Jeremy Visser jer...@visser.name wrote:

 On 19/08/2012, at 9:50 AM, li...@sbt.net.au wrote:
  SSL received a record that exceeded the maximum permissible length.
  (Error code: ssl_error_rx_record_too_long)

 That error occurs when trying to access a HTTP URL with https://. Not
 sure exactly what would have happened in that circumstance, but as Amos
 says, you may need to forward more than one port.

 You may add multiple port forwards with PuTTY, like so:

 C:\PuTTY\PuTTY.exe -L2301:127.0.0.1:2301 
 -L3128:127.0.0.1:3128root@my_centos_box

 Don't forget to use http:// and https:// as appropriate.--
 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] using desktop across lan ? fan speed control

2012-08-18 Thread Amos Shapira
Add a similar ssh tunnel on the new port (you can have as many as you like
in parallel on the same SSH connection), and access it using explicit
https: method.
On Aug 19, 2012 9:51 AM, li...@sbt.net.au wrote:

 On Fri, August 17, 2012 10:37 pm, Jeremy Visser wrote:
  On 17/08/12 07:08, li...@sbt.net.au wrote:

 Jeremy, thanks

  Try changing the localhost to 0.0.0.0. Don't forget to restart the
  management app afterwards.

 I think my edits get overwritten ? I'll recheck later

  And if binding to 0.0.0.0 doesn't help, doing it on PuTTY is exactly the
  same as doing it on OpenSSH.
 
  C:\PuTTY\PuTTY.exe -L3128:127.0.0.1:3128 root@my_centos_box

  Then open a web browser to http://localhost:3128/ on your Windows box.

 that;'s the one I was looking for, after correcting the port number, it
 came up, thanks !

 h, just trying again, now I'm getting this

 on calling http tells me it needs to be https, it re-dirs to https, then I
 get:

 yesterday, on another winpc, it asked me to accept priv cert, and, then it
 allowed access
 
 https://localhost:2301/
 Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.
 
 above chrome, below ff
 
 Secure Connection Failed
 An error occurred during a connection to localhost:2301.

 SSL received a record that exceeded the maximum permissible length.
 (Error code: ssl_error_rx_record_too_long)
 The page you are trying to view cannot be shown because the authenticity
 of the received data could not be verified.
 ---

 --
 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] using desktop across lan ? fan speed control

2012-08-16 Thread Amos Shapira
Look at SSH remote port forwarding (-r).
 On Aug 17, 2012 7:08 AM, li...@sbt.net.au wrote:

 I have tried installing HP management app on the old DL380 G2 server,
 Centos4, no monitor, no desktop

 when I tried running on ssh with 'links https://localhost:3128' (i might
 have 3128 incorrect, might be different port 3??? ), but, it says:
 'you need javascript'

 I think HP server utility is restricted to run localhost only ? I've tried
 editing HP's conf 'localhost:3128' to '*:3128', that didn't work either

 so, how can I run/access DL380's desktop on a different PC on LAN?

 (I'm trying to see if I can reduce fan speed/noise on DL380, not sure if
 these HP utilities even run on DL380 G2, that machine might be too old)

 thanks

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] using desktop across lan ? fan speed control

2012-08-16 Thread Amos Shapira
Sorry - local port forwarding (-l), forwarding from your local desktop to a
remote server, then access the local port with your usual browser.
On Aug 17, 2012 7:10 AM, Amos Shapira amos.shap...@gmail.com wrote:

 Look at SSH remote port forwarding (-r).
  On Aug 17, 2012 7:08 AM, li...@sbt.net.au wrote:

 I have tried installing HP management app on the old DL380 G2 server,
 Centos4, no monitor, no desktop

 when I tried running on ssh with 'links https://localhost:3128' (i might
 have 3128 incorrect, might be different port 3??? ), but, it says:
 'you need javascript'

 I think HP server utility is restricted to run localhost only ? I've tried
 editing HP's conf 'localhost:3128' to '*:3128', that didn't work either

 so, how can I run/access DL380's desktop on a different PC on LAN?

 (I'm trying to see if I can reduce fan speed/noise on DL380, not sure if
 these HP utilities even run on DL380 G2, that machine might be too old)

 thanks

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] using desktop across lan ? fan speed control

2012-08-16 Thread Amos Shapira
Look for SSH on windows. Luckily for me I never had to use it but I heard
about a cygwin port of openssh. There are also SSH implementations for
Android.
On Aug 17, 2012 7:16 AM, li...@sbt.net.au wrote:

 On Fri, August 17, 2012 7:12 am, Amos Shapira wrote:
  Sorry - local port forwarding (-l), forwarding from your local desktop to
  a remote server, then access the local port with your usual browser. On
 Aug


 Amos, thanks

 the remote Centos server is the only Linux I have here, how can I do it
 from windoze PC (or Android tablet) ?


 --
 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] Managing software across a cluster

2012-08-14 Thread Amos Shapira
Just get it all under puppet (puppetlabs.com).
On Aug 14, 2012 9:55 PM, Steven Tucker tux...@yahoo.com.au wrote:

 Hi all,

 I have just rolled out a Scientific Linux (Redhat clone) cluster of 20
 nodes plus controller that runs torque for batching and uses a lot of MPI.
 My problem is that I periodically get asked to include some library or
 program to help out with some ones research code, and often it is something
 that needs to be installed across all nodes.

 On my Mageia cluster I simply run urpmi parallel, issue the one command
 and it installs across all nodes. For those not familiar with urpmi
 parallel, it queries all the nodes asking what rpms are needed to install
 the given software (including all dependencies), it then downloads all the
 rpms to the machine running urpmi, it then pushes the appropriate rpms to
 each node and installs them.

 Is there anything like this for Scientific Linux (RHEL) and Yum ??
 The closest thing I have seen so far is clusterssh, but its not really the
 same as each node has to download from the repository. clusterssh is a
 general tool for parallel shells.

 I am using a Redhat clone for a number of reasons, the largest being I was
 told to and don't really have choice in the matter, so no chance of
 changing distros. Scientific Linux was easy to configure and everything
 seems to work quite well, so I am quite happy with the distro except for
 the lack of a urpmi parallel type tool.

 Any suggestions ??

 cheers

 Tuxta
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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] blank desktop / window management

2012-08-13 Thread Amos Shapira
Have you tried pointing your mouse at the screen corners or edges? It might
trigger a dock to scroll in.
On Aug 13, 2012 10:42 PM, ch.al...@ozemail.com.au wrote:

 I have just upgraded my old Dell dektop from Ubuntu 10.10 to 12.04
 using Canonical's official disk.  So far I am the only user .
 When I log in (as myself) I see the standard wall paper but no icons
 menu bars task bars etc.

 If I right click on desktop I get a few options to create new folder /
 document, re-arrange the (invisible) icons  Change Ddesktop
 Background.
 The last option gives me a window to maintain several other system
 system settings.  I cannot close this window.

 If there is no action, the screen goes blank but comes back again with
 some movement of mouse or keyboard.  At this point is asks for a
 password to unlock the screen which works fine.

 The only refined way to logout, is by using Control - Alt - Delete
 which gives me a set eof tions to log out or shut down.  This works
 well.

 How do I resolve this?

 At one stage I thought I had an issue with the screen driver but the
 behavior described above suggests that is not the real problem.
 I suspect that the software to manage the icons etc has has been
 invoked and this must be resolved at $ prompt.

 Can any one advise
   1) How to get to $ prompt?
   2) What to do when I get there?

 PS I am writing this message from another PC

 Regards
 Chris Allen

 --
 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] dns issues

2012-08-11 Thread Amos Shapira
More things to try:
1. Check that reverse DNS records point back correctly.
2. There are web sites to let you prob your DNS servers from a few dozens
of servers around the world. Try using them to check availability.
On Aug 11, 2012 12:28 AM, li...@sbt.net.au wrote:

 On Sat, August 11, 2012 12:04 am, Glen Turner wrote:
  1) Verify operation by walk down the name server tree using dig
  Firstly, find the nameserver. You are following the tree down so the IP
  addresses come from the answers of the previous command:
  dig +norecurse ns au
  dig @58.65.254.73 +norecurse ns com.au
  dig @202.65.12.73 +norecurse ns dom.com.au
  dig a ns1.dnsimple.com 184.106.214.131
  Now ask about the mail exchanger
  dig @184.106.214.131 +norecurse mx dom.com.au
  dig aspmx.l.google.com

 all OK

  And connect to it
  telnet 209.85.225.26 mail QUIT

 from bigpond adsl 'telnet mail' doesn't but 'telnet 587' is OK

  Do that for every server for dom.com.au to ensure that the answers are
  consistent. You might want to pull the SOAs to be sure the serial numbers
  are identical.

 yes

  2) Be clear about DNS forwarding versus DNS serving.

 I'm not sure how that fits in..?
 I have mail server and three authoritative dns servers..?
 I don't believe I have any DNS forwarding...?

  They are not the same. This sort of issue is usually the result of
  confusing the two.

  3) Understand TTL and caching

  Your changes do not take effect immediately and old configurations and
  errored configurations can be around for some time.

 Glen, thanks

 it all checks out when I test it from here, but, verizon tells me they
 fail getting response from all three servers from their network

 AFAICT, I can't fault the setup, I was testing in a similar manner prior
 to your email, using 'dig dom.tld +trace' to get delegation tree

 --
 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] sed to delete [??] ?

2012-07-21 Thread Amos Shapira
Hehe :)
I didn't specify *where* I was sitting when I wrote that answer...
 On Jul 21, 2012 4:58 PM, Jeremy Visser jer...@visser.name wrote:

 On 21/07/12 15:40, Amos Shapira wrote:
  (Writing from phone so can't test)
  It should be something like:
  sed -r -e 's/\[[0-9]{1,2}\]//g'

 Now that's just showing off.

 --
 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] sed to delete [??] ?

2012-07-20 Thread Amos Shapira
(Writing from phone sp can't test)
It should be something like:
sed -r -e 's/\[[0-9]{1,2}\]//g'
 On Jul 21, 2012 3:19 PM, li...@sbt.net.au wrote:

 I wget a page that ends up with multiple lines as below:

 Is there a sed expression, or other, to delete all '[??]' and '[?]'
 i.e, brackets with either single or two numeric characters

 ...
 [34]Job  [35]1960053  [36]OTHER  [37]Abc 04-12-2012  [38]Notes [39][0]
 ...
 desired:
 Job  1960053  OTHER  Abc 04-12-2012  Notes

 tia,
 voytek

 --
 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] kernel update reboot ? deleting older versions

2012-07-13 Thread Amos Shapira
Ouch.
You should have looked for the packages which contain these files (probably
earlier versions of the kernel) using rpm -qf /boot/file.name and removed
then using rpm. This would also automatically update the grub configuration.
Try doing that now.

On 12 July 2012 21:58, li...@sbt.net.au wrote:

 just did yum update on RH6 VS, there were kernel updates, I guess I need
 to reboot the VS after kernel updates ?

 Linux g2.6.32-220.23.1.el6.x86_64 #1 SMP Mon Jun 18 18:58:52 BST 2012
 x86_64 x86_64 x86_64 GNU/Linux

 update included
 vmlinuz-2.6.32-279.1.1.el6.x86_64

 also, I'm running out of space on /boot, I couldn't do update till I had
 more space, so I deleted files versions prior to '220' of these:

 config-2.6.32-220.17.1.el6.x86_64
 symvers-2.6.32-220.17.1.el6.x86_64.gz
 System.map-2.6.32-220.17.1.el6.x86_64
 initramfs-2.6.32-220.17.1.el6.x86_64.img
 vmlinuz-2.6.32-220.17.1.el6.x86_64

 so, after I deleted them, I need to edit grub to reflect ? anything else ?


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] sorry, you must have a tty to run sudo

2012-07-12 Thread Amos Shapira
It's a script and it's not owned by vmail so it can't be read by the shell.
You have to allow it to be readable to the user you are trying to run it as.
On Jul 12, 2012 10:22 PM, li...@sbt.net.au wrote:


  Please copy the entire crontab entry here (no typing, I suspect you
  have typos).  This message reads a bit like something is looking for a
  binary called bin/sh /usr/local/bin/arch.
  lists crontab -e -u vmail
  Add a #!/bin/sh at the start.  Otherwise a POSIX_compliant shell won't
  necessarily run it -- cron uses /bin/sh not bash.
 
  Make sure the mode of the file is 755 --- do
  chmod +x /usr/local/bin/arch

 Peter, thnaks

 still having probs:
 it's not the bin/bash in the second script ?

 Cron  /usr/local/bin/arch
 From:   Cron Daemon
 To: vmail
 /bin/sh: /usr/local/bin/arch: Permission denied

 grep vmail /etc/passwd
 vmail:x:5000:5000::/home/vmail:/bin/nologin

 ls -al /usr/local/bin/arch
 -rwx--x--x 1 voytek voytek 816 Jul  7 21:39 /usr/local/bin/arch

 # head  /usr/local/bin/arch
 #!/bin/sh
 cd /var/mail/vhosts
 /usr/local/bin/archmail dom.tld
 ...

  head  /usr/local/bin/archmail
 #!/bin/bash
  case $# in
   1)
   DOMAIN=$1
 ...

 but, fwiw, the other cron script run ok

 15 1 * * * /usr/local/bin/arch
 0 1 * * * /usr/local/bin/archivemail -d 30 --delete
 /var/mail/vhosts/v...@dom.tld



 --
 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] bringing down runaway samba process ?

2012-07-08 Thread Amos Shapira
1. The leap second happened at the end of June, a week ago. He reports that
it started earlier.
2. You don't need to reboot, it's possible to just re-set the clock, e.g.
/etc/init.d/ntpd stop; date; date `date +”%m%d%H%M%C%y.%S”`; date;
/etc/init.d/ntpd start (from
http://blog.contegix.com/2012/07/01/redhat-leap-second-fix/).


On 8 July 2012 21:28, darrin hodges darrin.hod...@gmail.com wrote:

 Sounds like the symptoms recently experienced by some Linux servers caused
 by the 61st (leap) second:

 http://www.wired.com/wiredenterprise/2012/07/leap-second-bug-wreaks-havoc-with-java-linux/-
 if so, it will require a reboot.

 On Sun, Jul 8, 2012 at 4:37 PM, li...@sbt.net.au wrote:

  I have QNAP NAS running disk for security cameras, it was setup as snb
  access, it has been in service for over a year, no issues
 
  just had a look, it seems since about 2 weeks ago, it's running 100% cpu
 
  I've tried to 'kill 20450' but it's not killing it,
  what else can I do short of rebooting it ?
 
  top:
  Mem: 697324K used, 324376K free, 0K shrd, 24504K buff, 470756K cached
  Load average: 1.06, 1.12, 1.13(State: S=sleeping R=running,
 W=waiting)
 
PID USER STATUS   RSS  PPID %CPU %MEM COMMAND
  20450 mxcamR772 1 99.9  0.0 smbd
   2295 adminR992 23424  0.5  0.0 top
  ...
 
  [/usr/local/samba/sbin] # ps ax | grep smbd
   2605 admin   484 S   grep smbd
  20450 mxcam   772 R   /usr/local/samba/sbin/smbd -l /var/log -D -s
  /etc/config/smb.conf
 
  Linux NAS01 2.6.33.2 #1 SMP Sat Nov 26 04:34:14 CST 2011 i686 unknown
 
 
  --
  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




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
--
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] sorry, you must have a tty to run sudo

2012-07-04 Thread Amos Shapira
Please copy the entire crontab entry here (no typing, I suspect you have
typos).
This message reads a bit like something is looking for a binary called
bin/sh /usr/local/bin/arch.

On 5 July 2012 00:45, li...@sbt.net.au wrote:

  Don't use sudo in a script.  You can set your cron job to run as a
  particular user.

 script runs ok as vmail:

 sudo -u vmail /usr/local/bin/arch

 BUT, when I try to run from crontab as vmail

 get:
 bin/sh /usr/local/bin/arch perm denied

 /etc/passwd has
 vmail:x:5000:5000::/home/vmail:/bin/false

 is this what I need, replace 'false' with... 'nologin' ? 'sh'?



 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Agora Smart TV HDMI Dongle

2012-07-01 Thread Amos Shapira
I though it sounded neat too, until I read the less-than-enthusiastic
comments on Ausdroid.

Bottom line: according to the comments you can get exactly the same
hardware at much lower cost from no-name brands and you should consider
carefully whether it's really useful.
On Jul 2, 2012 8:54 AM, Tom Worthington tom.worthing...@tomw.net.au
wrote:

 Kogan have announced an Agora Smart TV HDMI Dongle, will be available
 from 31 July 2012 for $99: http://www.kogan.com/au/buy/**
 agora-smart-tv-hdmi-dongle/http://www.kogan.com/au/buy/agora-smart-tv-hdmi-dongle/

 This is a tiny desktop computer designed to plug into the HDMI video port
 on a digital TV (or computer monitor) to turn it into a Google Android
 computer. This could be useful to have at home to complement an Android
 smart phone. While intended for entertainment, with a keyboard and mouse
 (or touch-pad) this would be sufficient for web access and might be useful
 for undertaking online courses, particularly where web based applications
 and Apps are being used for education.

 The device has WiFi, a full size USB socket and a microSD slot. It is
 powered via a miniUSB socket. One feature lacking from the Dongle is
 Bluetooth for a remote keyboard, although a TV type hand-held remote
 control is provided.

 To use the Dongle as a desktop computer, a keyboard would be needed. Kogan
 offer their own Android Deluxe Wireless Keyboard  Trackpad, but this is
 too small for serious typing: http://www.kogan.com/au/buy/**
 dlx-android-wireless-keyboard-**trackpad/http://www.kogan.com/au/buy/dlx-android-wireless-keyboard-trackpad/

 Agora is the brand name Kogan give their low cost computer range. I have
 the Kogan Ultra Portable Agora 12 Laptop, which has proven very reliable
 and useful: http://blog.tomw.net.au/2011/**06/kogan-agora-laptop-at-**
 sydney-linux.htmlhttp://blog.tomw.net.au/2011/06/kogan-agora-laptop-at-sydney-linux.html

 Agora Smart TV HDMI Dongle Technical Specifications

 Connectivity

 Wi-Fi   802.11 b/g/n
 Display Resolution  920 x 1080
 General Dimensions  9.045 x 3.396 x 1.55cm
 OS Android  4.0 ICS

 Hardware

 CPU Cortex  A9 1GHz
 Internal Storage4GB
 RAM 512MB

 Inputs

 Card Reader microSD up to 32GB
 USB 2.0 USB drives up to 32GB
 miniUSB Power only

 Outputs HDMI
 HardwareGPU Mali 400


 --
 Tom Worthington FACS CP, TomW Communications Pty Ltd. t: 0419496150
 PO Box 13, Belconnen ACT 2617, Australia  http://www.tomw.net.au
 Liability limited by a scheme approved under Professional Standards
 Legislation

 Adjunct Lecturer, Research School of Computer Science,
 Australian National University 
 http://cs.anu.edu.au/courses/**COMP7310/http://cs.anu.edu.au/courses/COMP7310/

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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] sorry, you must have a tty to run sudo

2012-06-21 Thread Amos Shapira
On 22 June 2012 09:59, pe...@chubb.wattle.id.au wrote:

  lists == lists  li...@sbt.net.au writes:

 lists (I'm going backwards in a hurry, first I can't telnet to
 lists localhost,) now, my script gives this:

 lists sudo: sorry, you must have a tty to run sudo

 Don't use sudo in a script.  You can set your cron job to run as a
 particular user.


That, or if you must use sudo then you can specify !requiretty in sudoers.

--Amos
-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Android phones

2012-05-28 Thread Amos Shapira
There is a huge and supportive community of Android hackers. Start with
ausdroid forums for australia-centred news/discussions and dig up xda for
lots more.
On May 28, 2012 11:13 PM, Voytek Eymont li...@sbt.net.au wrote:



 Ben Donohue donoh...@icafe.com.au wrote:


 Also I'd like to be able to ghost or image the phone in case of
 malware infection... something I do all the time with desktops.
 
 Anyone done this or any pointers/experiences? How to get a phone back
 to
 factory or original installation software?


 Titanium Backup will do that, and of course the phone has 'factory reset'.

 With Xoom, you can d/l original factory builds from manufacturer, perhaps
 others do likewise?

 android:/mnt/sdcard/a4 # ls -al M*
 -rw-rw-r--1 root sdcard_rw127027187 Jan 16 15:29
 MZ601_H.6.1-38-9_Telstra_Australia.zip
 --
 Swyped from my Motrix with K-9 Mail. Please excuse my brevity.
 --
 Swyped from my Motrix with K-9 Mail. Please excuse my brevity.
 --
 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] Inverting network interfaces

2012-05-21 Thread Amos Shapira
What distro is it? I RH distros you can stick the MAC address on the
interface configuration file under /etc/sysconfig/network-scripts/ifcfg-*
On May 22, 2012 10:35 AM, Edwin Humphries edw...@netsensecomputers.com.au
wrote:

 G'day,

 I have a rather weird problem. We've installed a router device at one of
 our customers; it is a Via motherboard and has therefore a Via Rhine
 network interface on the motherboard (eth0) and a Realtek 8139 network
 interface on a PCI card. For some reason, the drivers for the two network
 interfaces seem to spontaneously invert, with the Realtek driver applying
 itself to the Via port (and usually working OK!) and the Rhine driver to
 the Realtek port (and sometimes not working - but sometimes working as
 well). This does not follow any outside action, although the customer has
 learned that rebooting the system (cleanly) solves any non-working
 interface issue.

 Can anyone shed any light on this?

 NetSense Computers logoRegards,
 Edwin Humphries
 View Edwin Humphries's profile on LinkedIn http://au.linkedin.com/in/**
 edwinhumphries http://au.linkedin.com/in/edwinhumphries
 Mobile: 0419 233 051
 NetSense Computers (Ironstone Technology Pty Ltd)
 79 Barney St (P. O. Box 423), Kiama, NSW, 2533
 Phone: +61 (0)2 4233 2285
 Fax: +61 (0)2 4233 2781
 Web: 
 http://www.netsensecomputers.**com.auhttp://www.netsensecomputers.com.au

 Find us on Facebook Facebook http://www.facebook.com/**
 netsensecomputers http://www.facebook.com/netsensecomputers
 Like us on LinkedIn LinkedIn http://www.linkedin.com/**
 company/1500222?trk=NUS_CMPY_**FOL-pdctdhttp://www.linkedin.com/company/1500222?trk=NUS_CMPY_FOL-pdctd
 


 --
 This email is intended for the named addressee/s only and may contain
 confidential or privileged information. If you are not a named addressee
 please delete it and notify the sender.
 --

 /At every moment he beholdeth a wondrous world, a new creation, and goeth
 from astonishment to astonishment, and is lost in awe at the works of the
 Lord of Oneness./ Baha'u'llah, The Seven Valleys
 ./.. humans are interesting. With all the wonders there are in the
 Universe, they invented boredom./ Terry Pratchet, Hogfather
 /The most beautiful thing we can experience is the mysterious. It is the
 source of all true art and all science. He to whom this emotion is a
 stranger, who can no longer pause to wonder and stand rapt in awe, is as
 good as dead: his eyes are closed./ Albert Einstein
 /Stuff your eyes with wonder ... live as if you'd drop dead in ten
 seconds. See the world. It's more fantastic than any dream made or paid for
 in factories./ Ray Bradbury


 --
 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] updated kernel causing problems

2012-05-20 Thread Amos Shapira
/boot/grub/grub.cfg, from memory.
On May 21, 2012 8:04 AM, Ben Donohue donoh...@icafe.com.au wrote:

 Hi all,

 Running centos 6.x

 After an update and reboot, the system hangs during startup mid way
 loading services...

 If I reboot again and get to grub I can select the previous kernel and
 then it all boots correctly.

 What do I edit to make the previous kernel the default kernel upon bootup?

 Thanks,
 Ben


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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] Need to fix broken package in Ubuntu

2012-05-17 Thread Amos Shapira
You can tell aptitude to reinstall a package with aptitude reinstall
libpopper13.
In the test UI the key press is L.

On May 17, 2012 4:26 PM, David da...@kenpro.com.au wrote:

 I need to force apt to re-install a repository package that I have
 over-written with dpkg


 Problem:
 xpdf is broken in Ubuntu 11.04

 First solution:
 took advice (silly me) to fix it by manually installing a downloaded .deb

 # dpkg -i libpopper13 [later version]

 That failed to install because of a dependency problem.

 Now I want to revert to the repository version but aptitude won't let me.
 When I try to remove the broken version it wants to take a large number of
 dependent packages with it - including cups, gimp,  and lots of other
 important stuff

 How do I get back to the repository version?

 --
 David McQuire
 0418 310312

 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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: nostalgia

2012-02-21 Thread Amos Shapira
Sorry if I came across as pining for the old days. I know what you mean
about people who boast about using text only web, raw x11 etc.

I just can't read slashdot today without feeling that I'm wasting my time
while the H Online so far provided me with good quality news about things
which interest me.

Cheers,

-Amos
On Feb 22, 2012 2:36 AM, Geoffrey Cowling geoffrey.cowl...@gmail.com
wrote:

 What's with all this past golden age? I am OLD (punched cards were an
 innovation). But I am not tempted
 to pine for the Good Old Days. Remember Red Hat before.., remember ...
 I grant I do not, and never did, rely on programming etc. for daily bread!
 But come on ..
 I do not even miss DOS, or Turbo CPM
 MikeOS is (modern) fun, but I would not run 24/7 on it ..
 cheer up, December 12 will even beat millennium  date doom ..
 Geoffrey

 On Mon, Feb 20, 2012 at 8:00 PM, slug-requ...@slug.org.au wrote:

  Send slug mailing list submissions to
 slug@slug.org.au
 
  To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.slug.org.au/listinfo/slug
  or, via email, send a message with subject or body 'help' to
 slug-requ...@slug.org.au
 
  You can reach the person managing the list at
 slug-ow...@slug.org.au
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of slug digest...
 
  Today's Topics:
 
1. Re: slashdot daily mailing list (Amos Shapira)
 
 
  -- Forwarded message --
  From: Amos Shapira amos.shap...@gmail.com
  To: Zenaan Harkness z...@freedbms.net
  Cc: slug@slug.org.au
  Date: Mon, 20 Feb 2012 18:04:56 +1100
  Subject: Re: [SLUG] slashdot daily mailing list
  Personally I was there when Slashdot began and left it for its vices many
  many years ago.
 
  I now get my fix from the h-online Grand Unified Feed (
  http://www.h-online.com/newsfeeds/) and follow it through Google Reader
 on
  my mobile.
  The H online feels like what Slashdot used to be in the good old days 15
  years ago.
 
  I see that the H has a newsletter, maybe it will be suitable for you? I
  never tried it.
  http://www.h-online.com/newsletter/manage/news
 
  Cheers,
 
  --Amos
 
  On 20 February 2012 11:04, Zenaan Harkness z...@freedbms.net wrote:
 
   Slashdot daily newsletter has changed, to my dissatisfaction. There
   must be others who are experiencing this...
  
   Is there an aggregator or a greasemonkey-for-email type thing, so I
   can get my daily email fix with the old style each-full-story and get
   rid of italics?
  
   TIA
   Zen
   --
   SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
   Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
  
 
 
 
  --
   [image: View my profile on LinkedIn]
  http://www.linkedin.com/in/gliderflyer
 
 
  --
  SLUG - Sydney Linux User 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 - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] slashdot daily mailing list

2012-02-19 Thread Amos Shapira
Personally I was there when Slashdot began and left it for its vices many
many years ago.

I now get my fix from the h-online Grand Unified Feed (
http://www.h-online.com/newsfeeds/) and follow it through Google Reader on
my mobile.
The H online feels like what Slashdot used to be in the good old days 15
years ago.

I see that the H has a newsletter, maybe it will be suitable for you? I
never tried it.
http://www.h-online.com/newsletter/manage/news

Cheers,

--Amos

On 20 February 2012 11:04, Zenaan Harkness z...@freedbms.net wrote:

 Slashdot daily newsletter has changed, to my dissatisfaction. There
 must be others who are experiencing this...

 Is there an aggregator or a greasemonkey-for-email type thing, so I
 can get my daily email fix with the old style each-full-story and get
 rid of italics?

 TIA
 Zen
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




-- 
 [image: View my profile on LinkedIn]
http://www.linkedin.com/in/gliderflyer
-- 
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] Solid State Disk Works Okay with Linux on Kogan Laptop

2011-12-12 Thread Amos Shapira
Back it up often, that's what id suggest from reading other's experience
with SSD's.

Ref:
http://www.codinghorror.com/blog/2011/05/the-hot-crazy-solid-state-drive-scale.html
On Dec 12, 2011 9:27 AM, Tom Worthington tom.worthing...@tomw.net.au
wrote:

 I dropped my Kogan Agora 12 Inch laptop onto a stone floor. Remarkably
 there was no damage to the case or screen (the screen was open at the time
 and the computer running). But the hard disk was not functioning
 afterwards, so I replaced the 2.5 Inch SATA disk drive with a Solid State
 Disk (SSD). This turned out to be a useful upgrade: relatively easy and
 inexpensive.

 Kogan offered me a 30GB SSD, as provided in one model of the laptop, but I
 decided on a larger 60 GB unit, costing 50% more for twice as much storage.

 Replacing the disk drive required me to un-clip the battery from the back
 of the laptop and remove one screw holding a small panel over the disk
 drive. The disk then slid out and I slid the new SSD in. The new disk was
 completely blank so I booted the computer from a USB flash drive with a
 copy of Ubuntu Linux on it and then partitioned the disk with that and
 installed Linux. This took about 20 minutes.

 After installing Linux, about 40 GB of the disk is available for data. As
 I just use the computer for taking notes, the smaller 30 GB disk would have
 been adequate (with Linux taking up about 20 GB), but the extra space may
 be handy.

 The computer seems to boot a bit quicker but otherwise is no different in
 operation. I am yet to see if the battery lasts longer with the lower power
 storage device.

 More at: http://blog.tomw.net.au/2011/**12/solid-state-disk-for-**
 laptop.htmlhttp://blog.tomw.net.au/2011/12/solid-state-disk-for-laptop.html


 --
 Tom Worthington FACS CP, TomW Communications Pty Ltd. t: 0419496150
 PO Box 13, Belconnen ACT 2617, Australia  http://www.tomw.net.au
 Liability limited by a scheme approved under Professional Standards
 Legislation

 Adjunct Senior Lecturer, Research School of Computer Science,
 Australian National University 
 http://cs.anu.edu.au/courses/**COMP7310/http://cs.anu.edu.au/courses/COMP7310/
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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] Cannot create static IP address for Ubuntu 10.4

2011-12-10 Thread Amos Shapira
My favourite way to achieve this is to assign a static DHCP lease on the
modem (I.e. set it by the MAC address) that way it's also manageable for
other kinds of devices, concentrated in one place and the dhcp server is
aware of the address being in use.
On Dec 10, 2011 12:22 PM, elliott-brennan m...@elliott-brennan.id.au
wrote:

 Hi all,

 I know this comes under the 'Doh' list but...

 I have a fresh Ubuntu 10.04 install. On this particular machine I want a
 static address - I'm going to try out OpenSim (long story for later).

 This machine runs off a hub which is in turn connected to my modem/router.

 I've edited the /etc/network/interfaces file as follows:

 auto lo
 iface lo inet loopback

 auto eth0
 iface eth0 inet static
 address 192.168.0.12
 netmask 255.255.255.0
 gateway 192.168.0.1


 but no success. The machine is simply not happy (I've also lost the
 network icon from the toolbar - another story) and doesn't want to connect
 to the network.

 Should I just give up and assign an address to the machine's mac address
 via the router or is there something simple (I'm guessing so) that I'm
 missing.

 Thanks in advance.

 Regards,

 Patrick



 --
 www.patrickological.com
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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] monitoring aspx website, how ?

2011-12-08 Thread Amos Shapira
The quoted HTML is missing the form tag and looks like a partial
copy/paste from a larger HTML page.

The form tag is important in order to learn the URL to which the form is
submitted.

--Amos

On 9 December 2011 16:03, Voytek Eymont li...@sbt.net.au wrote:


 On Fri, December 9, 2011 3:42 pm, Jeremy Visser wrote:
  Thus spake Voytek Eymont:

  If it uses HTTP auth, then just pass the --http-user and --http-password
  options to wget.
 
  If it requires that you log in via a form and assigns a cookie, that's a
  little more involved but certainly by no means impossible. Can't help you
  based on the spartan information you have provided, however (more details
  please!).


 Jeremy, thanks

 does this code from login box helps with more details:

 ==
 tr
 tdLog In/td
 /tr

 tr
 tdlabel for=ctl00_cphLoginBody_Login1_UserNameUser
 Id:/label/tdtdinput type=text
 id=ctl00_cphLoginBody_Login1_UserName
 name=ctl00$cphLoginBody$Login1$UserName/span style=color: Red;
 visibility: hidden; title=User Name is required.
 id=ctl00_cphLoginBody_Login1_UserNameRequired*/span/td
 /tr

 tr
 tdlabel
 for=ctl00_cphLoginBody_Login1_PasswordPassword:/label/tdtdinput
 type=password  id=ctl00_cphLoginBody_Login1_Password
 name=ctl00$cphLoginBody$Login1$Password/span style=color: Red;
 visibility: hidden; title=Password is required.
 id=ctl00_cphLoginBody_Login1_PasswordRequired*/span/td
 /tr

 tr
 tdinput type=submit style=color:
 id=ctl00_cphLoginBody_Login1_LoginButton
 onclick='javascript:WebForm_DoPostBackWithOptions(new
 WebForm_PostBackOptions(ctl00$cphLoginBody$Login1$LoginButton, , true,
 ctl00$cphLoginBody$Login1, , false, false))' value=Login
 name=ctl00$cphLoginBody$Login1$LoginButton//td
 /tr

 tr
 tda href=passrecint.aspx
 id=ctl00_cphLoginBody_Login1_PasswordRecoveryLinkForgot your
 password?/a/td
 /tr

 ==


 --
 Voytek

 --
 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] advice for new laptop...

2011-12-03 Thread Amos Shapira
I hope it's OK to share this thread since I'm checking options for buying
such a laptop too.
My main additional features would be - low weight (as in - Apple Air
light weight) and good battery life (e.g. work at least for half a day
straight without a power cord).

On 3 December 2011 17:23, David Lyon david.lyon.preissh...@gmail.comwrote:

 HP-Envy with 8 cores are pretty nice for Ubuntu..

 The hard-drives inside have a design flaw which causes them to
 overheat and die. SSD would fix that.

 I repaired one for a friend, just booted ubuntu from usb. Great!

 On Sat, Dec 3, 2011 at 10:44 AM, simran sim...@dn.gs wrote:
  hi all,
 
  wanted to ask you for some advice... i need a new laptop, and here's my
  needs:
 
  must have's:
  * SSD hard drive (or at least a quick HD)
  * at least 8 Gig's RAM (12-16 Gig's would be ideal)
  * two finger scroll on the touchpad (like macbook pro's etc have as a
  default)
  * solid robust reliable hardy hardware
 
  would really love:
  * beautiful 15 screen (good hi-res one with a nice looking display)
  * nice form for the laptop in general (aka, just looks beautiful :) ah...
  i've been swayed by few things apple
 
  Is there anything you can recommend?
 
  I want to stay away from apple because:
  * I use linux (ubuntu) for all development anyway (in a VM)
  * Mostly i'm just using the browser for just about everything else (email
  (gmail), documents (google docs), etc)
  * Hate the way they are chasing samsung trying to block galaxy tabs...:)
 
  would really appreciate the recommendation of people in this group, if
  anyone knows linux, it's you guys :)
 
  simran.
  --
  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 - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Wiki software

2011-11-20 Thread Amos Shapira
I like MediaWiki.

2011/11/21 Marghanita da Cruz marghan...@ramin.com.au

 Any opinions on the good, bad, ugly Wiki software?

 I'm playing with PHPwiki (because it is tiny).

 Marghanita
 --
 Marghanita da Cruz
 http://ramin.com.au
 Tel: 0414-869202


 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://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] Clustering weirdness

2011-11-14 Thread Amos Shapira
On 14 November 2011 23:53, Steven Tucker tux...@gmail.com wrote:

 Hi all,

 got a problem with my cluster using OpenMPI + Torque+ Maui.


I don't think OpenMPI is so common that you'll find many people with
experience in this forum.

You might have better luck in OpenMPI or Torque or Maui specific forums,
e.g. http://www.open-mpi.org/community/lists/users/

--Amos
-- 
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] Ubuntu 11.10

2011-10-18 Thread Amos Shapira
On 18 October 2011 16:36, Heracles herac...@iprimus.com.au wrote:
 Has anyone made the mistake of moving to this unusable version? It seems
 glued to unity which is the best argument for the demise of Ubuntu I have
 ever seen. At least in 11.04 I was able to choose gnome as a desktop. With
 11.10 the only choices are unity and unity 2D.

I don't mind Unity but I DO mind that (as it appears from the 2
minutes I had to look at it) NetworkManager fails to find dbus and
takes the network down with it, so now there is no network until I
find time to figure this out...

--Amos
-- 
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] one entity with two tld domains web setup?

2011-10-12 Thread Amos Shapira
On 6 October 2011 15:46, Voytek Eymont li...@sbt.net.au wrote:


  + Redirect, or use one VirtualHost + mod_rewrite.

  I'm assuming Apache? If so, two main ways to do it: use two VirtualHosts
 yes, Apache, thanks for the code

 any extra overhead penalty for either method ? (mind you, this is a
 brochure site with low usage, so it won't make much difference)

 I think I'll stick with redirect, that what was used in the other sites


There is a slight overhead when doing client-side redirect since the browser
will have to do another http request when it received the initial redirect,
but that's most probably negligible and worth the trouble that the client
will (hopefully) bookmark the canonical domain name.

--Amos
-- 
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] ssh key-based auth not working Ubuntu without GUI (X) login??

2011-08-22 Thread Amos Shapira
On 23 August 2011 11:24, Glen Turner g...@gdt.id.au wrote:

 1) I'd use ls -l to check the contents and permissions of
 /home/sonia/.ssh/authorized_keys
 you want
 sonia:sonia -rw---


This made me think about another option - do you use encrypted home
directories?
If so then maybe the authosized_keys file is only accessible when the user
is logged in on the GUI.

--Amos
-- 
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] Skipping/Mapping bad blocks

2011-07-26 Thread Amos Shapira
On 26 July 2011 09:50, Simon Males s...@sime.net.au wrote:
 I have tried GNU ddrescue but the drive fails all to often. The block
 device disappears and I have not worked out a sure fire way of
 bringing it back online other then a reboot. Power cycling the device
 (attached via USB) or restarting udev doesn't assist either.
 Eventually the device becomes available, but there is a lot of
 twiddling of thumbs.

I'm NOT a hardware expert but maybe the twiddling lets the drive
cool down enough to make it work again - pop it in the fridge (inside
a sealed plastic bag, so the humidity doesn't condensate on the drive
itself) for an hour, let it sit out of the fridge for a few minutes
before drying and unsealing the bag (again - to avoid condensation)
and try again.

--Amos
-- 
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] Skipping/Mapping bad blocks

2011-07-25 Thread Amos Shapira
On 25 July 2011 17:23, Sonia Hamilton so...@snowfrog.net wrote:
 * Jake Anderson ya...@vapourforge.com [2011-07-23 22:35:30 +1000]:

 +1 for ddrescue
 works well.

 On 07/23/2011 07:15 AM, Amos Shapira wrote:
 You should use ddrescue (I use the gnu ddrescue) which will skip bad blocks.
 On Jul 22, 2011 10:14 PM, Simon Maless...@sime.net.au  wrote:

 I've found that myrescue is better than ddrescue, especially with
 corrupted devices. It has options for exponential backoff of corrupted
 sections, retries, etc

 sudo aptitude install myrescue

Are you sure you are comparing to the GNU version of ddrescue? Be
aware that there is a confusing none-GNU ddrescue which might be a bit
simplistic. exponential backoff etc sound like the features of GNU
ddrescue I used to help a friend in need. (together with following
advise from SLUG to put the disk in the fridge every now and then to
help it stay up for longer, it was at the top of the summer hit too).

--Amos
--
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] Skipping/Mapping bad blocks

2011-07-25 Thread Amos Shapira
On 25 July 2011 17:57, Amos Shapira amos.shap...@gmail.com wrote:
 On 25 July 2011 17:23, Sonia Hamilton so...@snowfrog.net wrote:
 * Jake Anderson ya...@vapourforge.com [2011-07-23 22:35:30 +1000]:

 +1 for ddrescue
 works well.

 On 07/23/2011 07:15 AM, Amos Shapira wrote:
 You should use ddrescue (I use the gnu ddrescue) which will skip bad 
 blocks.
 On Jul 22, 2011 10:14 PM, Simon Maless...@sime.net.au  wrote:

 I've found that myrescue is better than ddrescue, especially with
 corrupted devices. It has options for exponential backoff of corrupted
 sections, retries, etc

 sudo aptitude install myrescue

 Are you sure you are comparing to the GNU version of ddrescue? Be
 aware that there is a confusing none-GNU ddrescue which might be a bit
 simplistic. exponential backoff etc sound like the features of GNU
 ddrescue I used to help a friend in need. (together with following
 advise from SLUG to put the disk in the fridge every now and then to
 help it stay up for longer, it was at the top of the summer hit too).

Here is a comparison of the various *rescue tools someone ran a couple
of years ago:
http://gumptravels.blogspot.com/2009/09/ddrescue-ddrescue-gddrescue-gnuddrescue.html

Cheers,

--Amos
--
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] Skipping/Mapping bad blocks

2011-07-22 Thread Amos Shapira
You should use ddrescue (I use the gnu ddrescue) which will skip bad blocks.
On Jul 22, 2011 10:14 PM, Simon Males s...@sime.net.au wrote:
 Hi Slug,

 I'm trying to save a failing NTFS hard drive. It manages to mount and
 during copying the following error will appear in dmesg:

 Buffer I/O error on device sdc3, logical block 786433

 I don't mind corrupting some files. Can I instruct badblocks to add
 the failings blocks to the bad block register (I'm assuming that's how
 badblocks/hard drives work).

 Thus whilst copying, I will not get any block errors.

 --
 Simon Males
 --
 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] ISP for web server in Camden (south-west Sydney)

2011-07-13 Thread Amos Shapira
This is the sort of a question which can be best answered through the
whirlpool broadband database and forums...

Good luck.
On Jul 13, 2011 7:32 PM, grant_malcolm_bai...@westnet.com.au wrote:
 Hello,

 I'm new to SLUG and quite new to Linux so forgive me if this query has
been wrongly directed.

 I have my own server which runs my business' web site using CentOS / LAMP.
Everything has been fine until last week when I relocated to Camden, NSW
(south-west Sydney). My ISP has informed me that ADSL2 is not available here
and moreover, that the cost of my plan will increase substantially.

 If there are any SLUG members in south-west Sydney I would be grateful if
you could advise me as to the best options for continuing to host my site.

 Thank you and kind regards,

 Grant Bailey
 --
 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] Hacked email

2011-07-03 Thread Amos Shapira
On 3 July 2011 16:31, DaZZa dazzagi...@gmail.com wrote:

 From what I've read, even if you *do* manage to convince Google you
 own the account, the hacker deletes all the mail in it anyway, and
 harvests the contacts before deleting them too - so you get nothing
 back anyway.


That's why it might be worth backing up your google accounts, here is a link
I filed away four years ago so things may have changed since:
http://googlesystem.blogspot.com/2007/12/creating-backup-for-your-google-account.html

--Amos
-- 
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: [Jobs] Systems Admin - Build Engineer

2011-05-24 Thread Amos Shapira
On 24 May 2011 13:24, Simon Rumble si...@rumble.net wrote:

 Try to find companies that advertise direct.  Whirlpool is a good place for
 that kind of thing.  If Python is your thing, try finding out what big
 companies are doing Python in a big way in Sydney and contact them, and
 find
 others in the community who work for them (LinkedIn is your friend).


Snipey (http://www.snipey.com.au/) is supposed to be an aggregator of direct
job postings by companies.

I haven't done anything through them so can't testify on their quality.

Good luck,

--Amos
-- 
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] perl modules ubuntu probs

2011-04-14 Thread Amos Shapira
(I assume you meant clan-cpan, right?)

Mixing CPAN and none-cpan packing is an invitation to a nightmare. Either
install EVERYTHING from cpan or nothing at all.

A quick apt-cache search BinHex shows that there is a ubuntu package for
it: libconvert-binhex-perl.

If you need a CPAN package which doesn't have a .deb then there are
relatively simple tools to create .deb.

--Amos

On 14 April 2011 01:06, Ken Foskey kfos...@tpg.com.au wrote:

 Force it then use clan to upgrade it.  When it updates through the pm next
 it will overwrite because the pm does not know about your manual update

 Ken Foskey

 On 14/04/2011, at 1:41 PM, Voytek Eymont li...@sbt.net.au wrote:

 
  On Thu, April 14, 2011 9:31 am, John Clarke wrote:
  On Wed, Apr 13, 2011 at 11:55:59PM +1000, Voytek Eymont wrote:
 
  amavis says error with MIME Decoder BinHex but perl says it's
  installed,
 
  Read the error message more closely:
 
  John,
 
  ooops, you're right, sorry
 
 
  MIME/Decoder/BinHex.pm won't start because it needs to load
  Convert/BinHex.pm, and perl can't find it.  You need to install
  Convert::BinHex.
 
  I guess that's why:
 
  make test had returned bad status, won't install without force
 
  if I force install, is that a really bad thing to do ?
 
  or what else ?
 
 
  
  Checking if your kit is complete...
  Looks good
  Writing Makefile for Convert::BinHex
  Could not read metadata file. Falling back to other methods to determine
  prerequisites
  cp lib/Convert/BinHex.pm blib/lib/Convert/BinHex.pm
  Manifying blib/man3/Convert::BinHex.3pm
   ERYQ/Convert-BinHex-1.119.tar.gz
   /usr/bin/make -- OK
  Running make test
  PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e
  test_harness(0, 'blib/lib', 'blib/arch') t/*.t
  t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at
  t/comp2bin.t line 3.
  Undefined subroutine main::check called at t/comp2bin.t line 75.
  t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
  Failed 9/9 subtests
 
  Test Summary Report
  ---
  t/comp2bin.t (Wstat: 65280 Tests: 0 Failed: 0)
   Non-zero exit status: 255
   Parse errors: Bad plan.  You planned 9 tests but ran 0.
  Files=1, Tests=0,  0 wallclock secs ( 0.06 usr  0.02 sys +  0.04 cusr
  0.03 csys =  0.15 CPU)
  Result: FAIL
  Failed 1/1 test programs. 0/0 subtests failed.
  make: *** [test_dynamic] Error 255
   ERYQ/Convert-BinHex-1.119.tar.gz
   /usr/bin/make test -- NOT OK
  //hint// to see the cpan-testers results for installing this module, try:
   reports ERYQ/Convert-BinHex-1.119.tar.gz
  Running make install
   make test had returned bad status, won't install without force
  Failed during this command:
  ERYQ/Convert-BinHex-1.119.tar.gz : make_test NO
 
 
  
 
  --
  Voytek
 
  --
  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 - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] perl modules ubuntu probs

2011-04-14 Thread Amos Shapira
Not sure.
I'd lean towards removing it if possible (usually should be possible through
standard CPAN commands).
Check first where the files from the CPAN package were installed vs. the
dpkg package.

On 14 April 2011 14:38, Voytek Eymont li...@sbt.net.au wrote:


 On Fri, April 15, 2011 6:55 am, Amos Shapira wrote:
  (I assume you meant clan-cpan, right?)
  Mixing CPAN and none-cpan packing is an invitation to a nightmare. Either
   install EVERYTHING from cpan or nothing at all.
 
  A quick apt-cache search BinHex shows that there is a ubuntu package
  for it: libconvert-binhex-perl.


 Amos, thanks

 I've done 'apt-get install libconvert-binhex-perl' m it's OK

 BUT do I need to do anything about the previously done CPAN install ?

  perl -MCPAN -e shell
 cpan[1] force install Convert::BinHex

 cpan[1] install Convert::BinHex
 CPAN: Storable loaded ok (v2.20)
 Going to read '/root/.cpan/Metadata'
  Database was generated on Thu, 14 Apr 2011 21:29:14 GMT
 CPAN: Module::CoreList loaded ok (v2.18)
 Convert::BinHex is up to date (1.119).



 --
 Voytek

 --
 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] Upgrading OS RAID

2011-01-09 Thread Amos Shapira
On 10 January 2011 10:42, Kyle k...@attitia.com wrote:

  My goal is to replace ALL the current 500GB disks with all new 1TB disks 
 into a new RAID 1 array and yet maintain the entire machine's installation 
 and configuration.

 I.e. If it were as simple as;

 1. as suggested by Menno - install disks separately; create new RAID 1 with 
 appropriate /boot  /
 2. Copy entire contents of old RAID1 /boot and / to new RAID
 3. remove old RAID, replace old for new.
 4. Perhaps some bios fiddling and presto new disks.

 that would be nice.

 But somewhere in there I've got to transfer the system onto the new RAID. 
 Just haven't figured out how yet. Plus any other gotchas I don't yet know 
 about.

Look at pvmove, it should be as simple as that, except maybe an
extra step to get GRUB stuff on the boot sectors of the new disks (you
want grub to be able to boot from both sides of the mirror RAID).

i.e. you'll have to do something like:
1. Configure the new disk array as a new PV, maybe set aside a boot
partition outside the PV if you don't want to depend on grub2's
ability to boot from it.
2. add the PV to the Volume Group (VG) to which the old PV belongs to.
3. pvmove old-pv new-pv
4. Make sure you can boot and work with the new raid array.
5. IMPORTANT: pvremove old-pv - otherwise the system will refuse to
use the VG after you remove the old array.

--Amos
--
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] 1066MHz DDR2 Ram

2011-01-08 Thread Amos Shapira
I had excellent experience with upgradeable.com.au, many times every time.

-Amos
On 08/01/2011 7:09 PM, Jon and Hannah jnhhum...@gmail.com wrote:
 Hi All,

 Does anyone know where I can get some good quality 1066 DDR2 ram?
 All I can find is the 800MHz stuff. It also needs to be a matched pair so
I
 can gang them. I currently have a 2G pair and want to upgrade it to a
 4G pair.

 Oh, and yes, it is DDR2, NOT DDR3.

 Thanks

 Jon
 --
 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] dynamically creating a loop device MINOR numbers?

2010-10-10 Thread Amos Shapira
On 10 October 2010 14:24, Zenaan Harkness zen...@gmail.com wrote:
 On Sun, Oct 10, 2010 at 2:13 PM, Adrian Chadd adr...@creative.net.au wrote:
 The horrible, O(n) way is to just to loop over 0 .. n, see if it doesn't
 exist, if it doesn't then create and use it.

 It's slow, it's racy (ie, don't run the script without locking :-) but
 it's a traditional UNIX way of doing things.

 Think I'll avoid that on principle. Providing a minor # at all seems
 strange to me. Like Linux should do it. Why do I want or need to know
 about these MINOR #s anyway?! All I want is an lo dev; far away from
 this cold nightmare (with apologies to Frederick Loewe).

You need the minor number so the driver knows which instance of the device.

Anyway - just remember that there is a set limit on the maximum number
of loop devices which can be created. The default is usually fairly
low, probably depends on the specific distro, and can be set to a
different limit as a parameter to the module.

--Amos
-- 
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] Escaping illegal characters in filenames - how?

2010-10-06 Thread Amos Shapira
On 7 October 2010 16:44, DaZZa dagi...@gmail.com wrote:
 Folks.

 I've got an idiot user who has created a file on a Linux filesystem named

 -.mxf

 I need to rename this file, but can't for the life of me remember how
 to escape the - character so mv doesn't regard it as an option
 identifier.

Insert ./ in front of it so mv doesn't see the - at the beginning
of the string and tries to interpret it as a flag.

So the command could be mv ./-.mxf newname.mxf.

--Amos
-- 
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: Listing local wifi access points?

2010-10-05 Thread Amos Shapira
On 6 October 2010 08:18,  pe...@chubb.wattle.id.au wrote:
 Also if you're running OpenWRT or similar on your AP, you can get
 to a `site survey' under the `status' tab.

While other platforms are also mentioned - I found WiFinder on an
Android phone very useful to get such information too.

--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] Hosting e-mail?

2010-09-26 Thread Amos Shapira
Hello,

My wife's studio's web site is hosted with web24.com.au for a second
year in a row and we are pretty happy with it, for the price it costs
us.

One thing we mistrust them with, however, is that e-mail to her domain
seems to be flaky. Test messages that we send to it not always arrive
to the destination (nor bounce).

We forward all e-mail for that domain to a default GMail mailbox and
some specific addresses (e.g. info@, which is mentioned in the
contact form) to another mailbox.

Could someone suggest a better mail service we can rent separately
from web24 and point the MX records for that domain? We don't need
fancy features (e.g. Exchange), just something which will reliably
forward e-mail to our various gmail mailboxes.

We have already pre-paid an annual fee to web24 so we'll lose money if
we try to move now, plus it's an extra effort we can't fit into our
lives right now (expecting another baby).

Thanks,

--Amos
-- 
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] Hosting e-mail?

2010-09-26 Thread Amos Shapira
On 27 September 2010 15:03, Daniel Pittman dan...@rimspace.net wrote:
 Amos Shapira amos.shap...@gmail.com writes:
 ...would the free Google Apps for Domains meet your needs?  It is limited to
 50 mailboxes, and is separate from your current gmail account, but should give
 you equal reliability and capacity.  (Plus you are obviously happy with their
 overall service and all...)

Thanks. Will propose it to her.

--Amos
--
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] watching Channel Ten videos on Linux?

2010-09-20 Thread Amos Shapira
On 19 September 2010 17:25, Ken Foskey kfos...@tpg.com.au wrote:

 This is a guess...

 Have you tried vlc with the Mozilla plugin option?


Didn't work.

But just visiting this page now as I did before this time it plays. So maybe
it was a problem on their side.

Thanks,

--Amos
-- 
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] watching Channel Ten videos on Linux?

2010-09-20 Thread Amos Shapira
On 20 September 2010 17:19, Brett Mahar brett.ma...@gmail.com wrote:

 This plays fine on for me with Flash (I have installed the flash
 plugin in ~/.mozilla/pluginsdownloaded from Adobe). Also if you
 use Mozilla you can install the plugin video downloadhelper. It will
 show 3 spinning balls on your toolbar everytime there is downloadable
 media on a webpage. You can click on the icon and download the
 episode, it should play with vlc or xine.


Thanks. I'll try to remember that.
Today I tried again and it works, so it probably was a problem on the
server.

Cheers,

--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] watching Channel Ten videos on Linux?

2010-09-19 Thread Amos Shapira
Hello,

I'd like to send a link to an episode of Good News Week to a friend
and I think I found it
(http://ten.com.au/video-player.htm?vxSiteId=cb519624-44a2-4bf7-808b-3514d34e96e4vxChannel=GNW%20CUTV)
but I can't play the video on my Linux desktop (Ubunut 10.04 32 bit)
with either Chromium 6.0.472.53 or Firefox 3.6.3.
I get the ad playing at the beginning but the episode itself just gets
stuck on the circling timer instead of playing.

Is there a way to view this on Linux?

Thanks,

--Amos
-- 
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] copying binaries from one Centos to another?

2010-09-18 Thread Amos Shapira
On 18 September 2010 15:51, Voytek Eymont li...@sbt.net.au wrote:

 On Sat, September 18, 2010 1:55 pm, Dean Hamstead wrote:
 you can just force the older rpm to install

 Dean, thanks

 how do I prevent a future yum update from upgrading and 'overwriting' it
 again ?

Add an exclude clause on all versions above the current version for
that package to the yum configuration. You'll have to look around the
manuals for the specific syntax as I can't give it for sure off the
top of my head.

Cheers,

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


  1   2   3   4   5   6   >