Help with a bash script please

2011-01-14 Thread Adrian Levi
I have the following bash script and it fails at line 14 and 15 (7zparameters= and 7zfilename=) I have tried everything i can think of to get it to work, the answer has to be simple but i can't figure it. This is going to be my new backup script, based on an earlier version that is very similar in

Re: Help with a bash script please

2011-01-14 Thread Adrian Levi
On 14 January 2011 19:46, Javier Barroso wrote: > variable names can't start with a number, I guess this is the fail. That was one, In all the material I read i didn't pick that one up. -- 24x7x365 != 24x7x52 Stupid or bad maths? hm. I've lost a machine.. literally _lost_. it responds to ping,

OT: Re: Help with a bash script please

2011-01-14 Thread Adrian Levi
I have (hopefully) taken on everybody's suggestions, Here is the current script :) #!/bin/sh # Variables: # Determine backup level incrementalfile="/srv/tar_incremental_file" if [ -f $incrementalfile ] then backuplevel="date +%w" else backuplevel="0" rm $incrementalfile > /dev/null 2>&1 fi zpa

Re: Help with a bash script please

2011-01-14 Thread Adrian Levi
On 14 January 2011 20:32, Jochen Schulz wrote: > I don't want to keep you from learning shell scripting, but I generally > advise against scripting your own backup solution. From my experience > the result is error prone, tends to attract feature creep and is hard to > deploy to new environments.

OT: Re: Help with a bash script please

2011-01-14 Thread Adrian Levi
I know where the error lies but not how to fix it. zparameters="a -mhe=on -pd1ckhead -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on -si" zfilename="Daily Backup - $(date +"%a %h %H%M %d-%m-%Y").$backuplevel.tar.7z" When these two expand here: tar $tarparameters $backuppath | 7z $zparameters $zfilena

Re: Help with a bash script please

2011-01-14 Thread Adrian Levi
On 14 January 2011 21:51, Mart Frauenlob wrote: > in debian lenny (and previous releases) the default shell aka sh is bash. > the file /bin/sh is a symbolic link to /bin/bash. > however in squeeze afaik the default shell is dash. > so your script starting with the shebang #!/bin/sh will not be ru

Re: Help with a bash script please

2011-01-14 Thread Adrian Levi
On 14 January 2011 22:44, Mart Frauenlob wrote: ! > see also: > http://en.wikipedia.org/wiki/Unix_shell > http://en.wikipedia.org/wiki/Comparison_of_command_shells Thanks for the homework ;-) It works now BTW... Adrian -- 24x7x365 != 24x7x52 Stupid or bad maths? hm. I've lost a machine.. l

OT: Output from date command - my little backup script

2011-01-15 Thread Adrian Levi
Is the output from the date command a string or integer wrt date +%w? I'm trying to test a condition in my backup script where i want to match on day of week = 0 The program flow I am trying to achieve is" If the file exists and the day of the week is 0 then remove the file and set the day of the

Re: OT: Output from date command - my little backup script

2011-01-16 Thread Adrian Levi
On 16 January 2011 17:34, Bob Proulx wrote: > Adrian Levi wrote: >>     if [ $backuplevel -eq 0] > > You are missing a space after the 0 and before the ] and I am hoping > that is simply an email glitch.  But you must have a space there. > >    if [ $backuplevel -eq 0 ]

OpenSSH key based authorisation problem

2011-01-18 Thread Adrian Levi
It seems that users other than me are not able to login to the server. I use key nased authentication via putty and from other debian boxes fine but other users from putty (haven't tried other users from linux) fail with "No more authentication methods available". adrian@jupiter:~$ ssh -v localhos

Re: OpenSSH key based authorisation problem

2011-01-18 Thread Adrian Levi
On 19 January 2011 02:37, Rob Owens wrote: > Any time I've ever had trouble with key based authentication, it was > because of improper permissions on my .ssh folder.  It should be set: > > chmod 700 ~/.ssh > > I'd double-check that before going any further. I checked that but didn't spot anythin

Re: OpenSSH key based authorisation problem

2011-01-18 Thread Adrian Levi
On 19 January 2011 05:06, Rob Owens wrote: > That is the default location for authorized_keys, but it can be changed > in sshd_config with the AuthorizedKeysFile parameter.  Better check and > make sure somebody didn't alter it from the default. 'Somebody' ~me? :) This exact config file works pe

Re: OpenSSH key based authorisation problem

2011-01-18 Thread Adrian Levi
On 19 January 2011 07:35, Rob Owens wrote: > I was going to tell you that .ssh should not be world readable, but I > just tested it and it works fine like that.  (I guess that changed > sometime since I first set up ssh on my machine). > > Can you post the authorized_keys file?  Remember that thos

Re: tool for internet connection test

2011-02-04 Thread Adrian Levi
On 4 February 2011 22:42, Lubos Rendek wrote: > Hi Andrew, > > I'm on ADSL2. I had constant speed for years and it was always around > 6 - 8 Mbps. Suddenly it dropped to 0.3 - 4 Mbps but on average I have > 0.9. As you also mentioned I too believe that the weather is to be > blamed. > > My Telstra

Re: tool for internet connection test

2011-02-05 Thread Adrian Levi
On 6 February 2011 08:02, Lubos Rendek wrote: > Hi Adrian, > Do I have another choice. I mean if lines belong to telstra it sounds > logical that anywhere I got I might have the same problem?!? > > Download test from TPG: > > 2011-02-06 08:36:43 (149 KB/s) - `test3.iso' saved [52328448/52328448]

Re: single machine, different IP addresses

2011-02-08 Thread Adrian Levi
On 8 February 2011 15:53, T o n g wrote: > >From http://www.acme.com/software/thttpd/thttpd_man.html > But this really looks Greek to me. I have to ask, why you can't or don't want to use Apache web server? It supports Virtual Hosts pretty much out of the box on Debian with a minimum of configu

Re: rtorrent queue

2011-02-12 Thread Adrian Levi
I use one called rtorrentquemanager.py I am running it by 'nohup ./rtorrentquemanager.py &' works pretty well for me. Adrian On 12 February 2011 22:20, Nikolas Slivka wrote: > Hello! > > rTorrent was possible (possibly with external script) configure uTorrent-like > queue? As an example: 10 pie

Re: OpenOffice has become LibreOffice?

2011-02-15 Thread Adrian Levi
On 16 February 2011 00:22, Erwan David wrote: > And now are fears for Qt... Qt has nothing to do with Oracle. Qt is Nokia previously Trolltech. Qt is LGPL and proprietory for commercial use. Adrian -- 24x7x365 != 24x7x52 Stupid or bad maths? hm. I've lost a machine.. literally _lost_. it res

Re: OpenOffice has become LibreOffice?

2011-02-15 Thread Adrian Levi
On 16 February 2011 02:47, Jochen Schulz wrote: > I would be surprised to find something like this. The fork has purely > political reasons and as it is still quite young, it shouldn't have > deviated from OOo by much until now. LibreOffice includes the patchset that was GO-OO that neither Sun o

Re: selecting old machines for firewall/router use

2011-02-20 Thread Adrian Levi
On 21 February 2011 06:02, Elmer E. Dow wrote: > Greetings: > 300 Mhz processor > boot manager on 3.5-inch diskette so it can boot from diskette, CD or hard > drive > ethernet jack on motherboard > 5 pci slots > 4 isa slots > (I have a pci nic and 2 isa nics on hand, plus there's that built-in

M4A88TD-V EVO/USB3 Realtek ALC892 - No sound(mostly)

2011-05-15 Thread Adrian Levi
This motherboard used to work under a previous install of Debian, I Updated to Squeeze through a fresh install (hard drive replacement). Ever since I have been unable to get the sound to work. With the speakers plugged in to the speaker port I get random pops coming from the speakers, Clicking on

Re: M4A88TD-V EVO/USB3 Realtek ALC892 - No sound(mostly)

2011-05-15 Thread Adrian Levi
> Are you sure the output jack is in the right socket? These multi-input/ > ouput audio cards are going to get us crazy :-) I know, most of us only have 2 ears... (Yes it's in the right socket although i try the other non mic ones as well). > I would start for the easiest thing, that is, edit "/e

apt packages available

2011-06-28 Thread Adrian Levi
/etc/cron.weekly/man-db: warning, in file '/var/lib/dpkg/available' near line 7270 package 'virtualbox': error in Version string '1.6.6-35336_Debian_lenny': invalid character in revision number I have tried removing the available file in the hope that it would be regenerated. Virtualbox was added

Re: apt packages available

2011-06-30 Thread Adrian Levi
> On Wed 29 Jun 2011 at 15:23:11 +1000, Adrian Levi wrote: > 'apt-get update' regenerates it. 'dpkg --clear-avail' would have cleared > it. I'm pretty sure I tried removing the file and did an update, That was the first thing I thought of but for whatever reason

Computer instability under Debian Stable

2011-07-03 Thread Adrian Levi
My home server has been experiencing instability issues running Debian stable. My issue is I have no sound output and overnight the computer will hard lock-up so that the num-lock light won't even toggle. I updated to 2.6.38 thinking it might be a kernel compatibility issue but the problem remains

Re: Computer instability under Debian Stable

2011-07-03 Thread Adrian Levi
On 3 July 2011 18:56, Nicolas Bercher wrote: Hi Nicolas, > So, before upgrading the kernel to 2.6.38, where you using the standard > stable Debian kernel (2.6.32)?  If not (but seems yes), maybe downgrading > the kernel back to the stable one is a good thing to test. The problem was also in 2.6

Re: Computer instability under Debian Stable

2011-07-03 Thread Adrian Levi
On 3 July 2011 21:27, lee wrote: > You need to figure out what happens to trigger the freezing.  Are there > any entries in syslog that might indicate something?  There's cron > scripts running over night ... Perhaps the easiest way to approach this > is setting the system clock 12 hours or so ah

Re: Computer instability under Debian Stable

2011-07-05 Thread Adrian Levi
On 3 July 2011 17:43, Adrian Levi wrote: > My home server has been experiencing instability issues running Debian stable. Ha, I turned off kdm and left the computer sitting in vt1. I got the following: (Hand typed excuse any typo's) gemini login: [24573.123365] general protection fau

Re: Computer instability under Debian Stable

2011-07-05 Thread Adrian Levi
On 5 July 2011 21:08, Selim T. Erdogan wrote: > Just a thought: have you tried disabling setiathome?  (And also, did > you have the same setiathome version running on the Ubuntu that didn't > freeze?) Seti is a recent addition to that machine. It was locking up before I installed it. Adrian --

Re: Computer instability under Debian Stable

2011-07-08 Thread Adrian Levi
On 6 July 2011 08:27, William Hopkins wrote: > > I understand your logic but the log says setiathome was the process that > ultimately triggered the crash. Try disabling it and doing the vt1 trick again > (also look into the liveCD log-inspection suggestion, then you can pastebinit > and we can re

Re: Computer instability under Debian Stable

2011-07-08 Thread Adrian Levi
On 9 July 2011 16:51, Adrian Levi wrote: > Ok, I've had some time to sit down with this thing and check it out further. > Found this on the screen after stopping boinc-client. I'm going to Before I could use the machine this afternoon I had to restart it, It responded to SysRQ

<    1   2   3