Senin, 12 Januari 2015

Bristol Digest, Vol 585, Issue 1

Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk

You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."


Today's Topics:

1. How to download overnight? (Peter Hemmings)
2. Re: How to download overnight? (eddie smith)
3. Re: How to download overnight? (Marc Gray)
4. Re: How to download overnight? (D J Stewart)
5. Re: How to download overnight? (Marc Gray)
6. Job Opportunity at LinuxIT (Sam Pearson)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Jan 2015 12:31:15 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: [bristol] How to download overnight?
Message-ID: <54B26D13.9000205@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi,

As I am still on capped downloads and recently downloaded a new OS image
starting after 11pm, but I had to leave the PC on overnight.

As I would like to save a few electrons, I would prefer to start the PC
and then do the download, then stop it after completion.

Had a look at "rtcwake" and will check if my motherboard supports waking
from hibernate/sleep.

I was thinking of using cron/wget/rtcwake to do the job.

Is this a good solution or are there better ways to do it?

If I did as above, would rtcwake switch off the box regardless of
whether the download had been completed?

Regards
--
Peter H



------------------------------

Message: 2
Date: Sun, 11 Jan 2015 16:25:00 +0000
From: eddie smith <lug@eddiesmith.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] How to download overnight?
Message-ID:
<CAGFc5Q1YbaruuseSD6Z9Q87T73hv7qhgzEKg+eXK-zj5coZGJA@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

like this?

(sudo) wget http://path/to/distro.iso ; shutdown -h now

On Sun, Jan 11, 2015 at 12:31 PM, Peter Hemmings <
peter@hemmings.eclipse.co.uk> wrote:

> Hi,
>
> As I am still on capped downloads and recently downloaded a new OS image
> starting after 11pm, but I had to leave the PC on overnight.
>
> As I would like to save a few electrons, I would prefer to start the PC
> and then do the download, then stop it after completion.
>
> Had a look at "rtcwake" and will check if my motherboard supports waking
> from hibernate/sleep.
>
> I was thinking of using cron/wget/rtcwake to do the job.
>
> Is this a good solution or are there better ways to do it?
>
> If I did as above, would rtcwake switch off the box regardless of whether
> the download had been completed?
>
> Regards
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150111/0358d73a/attachment-0001.html>

------------------------------

Message: 3
Date: Sun, 11 Jan 2015 21:08:56 +0000
From: Marc Gray <marc.gray@gmail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] How to download overnight?
Message-ID:
<CAPorv7XyJ5YdsoMVzzq0cjOkPi5iCm1F+-pqnWxuAmPzvPTY0g@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On 11 January 2015 at 16:25, eddie smith <lug@eddiesmith.net> wrote:

> like this?
>
> (sudo) wget http://path/to/distro.iso ; shutdown -h now
>
> On Sun, Jan 11, 2015 at 12:31 PM, Peter Hemmings <
> peter@hemmings.eclipse.co.uk> wrote:
>
>> Hi,
>>
>> As I am still on capped downloads and recently downloaded a new OS image
>> starting after 11pm, but I had to leave the PC on overnight.
>>
>> As I would like to save a few electrons, I would prefer to start the PC
>> and then do the download, then stop it after completion.
>>
>> Had a look at "rtcwake" and will check if my motherboard supports waking
>> from hibernate/sleep.
>>
>> I was thinking of using cron/wget/rtcwake to do the job.
>>
>> Is this a good solution or are there better ways to do it?
>>
>> If I did as above, would rtcwake switch off the box regardless of whether
>> the download had been completed?
>>
>>
>> ?KGet is a GUI and has an option in Settings | Configure KGet | Advanced
?| Execute action after all downloads have been finished, which includes
shutdown computer.

I imagine it needs to be run as root (kdesu kget on KDE)

Eddie's suggestion is probably better but is command line, and you'd want
to run it like this:
?sudo bash -c 'wget http://url/file.iso; shutdown -h now'

?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150111/f0ebdb3b/attachment-0001.html>

------------------------------

Message: 4
Date: Sun, 11 Jan 2015 22:56:53 +0000 (GMT)
From: D J Stewart <bblug@iridium.org.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] How to download overnight?
Message-ID: <alpine.DEB.2.11.1501112247050.19147@carbon>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

On Sun, 11 Jan 2015, Marc Gray wrote:

> Eddie's suggestion is probably better but is command line, and you'd want to
> run it like this:
> ?sudo bash -c 'wget http://url/file.iso; shutdown -h now'

But why run wget as root? You could consider downloading and halting as
two different problems. Then:

As a nonprivileged user:

$ cd /path/to/target
$ wget http://url/file.iso.md5
$ wget http://url/file.iso

As root:

# cd /path/to/target
# while true; do \
if test -e file.iso; then \
if md5sum -c file.iso.md5; then \
shutdown -h now; \
fi; \
fi; \
sleep 5m; \
done

(None of this has been tested -- caveat emptor)

--
Dave Stewart

------------------------------

Message: 5
Date: Sun, 11 Jan 2015 23:16:16 +0000
From: Marc Gray <marc.gray@gmail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] How to download overnight?
Message-ID:
<CAPorv7VDWq1y-QP0KQBazqay+TbsoFnDTJ7Wge-4Ftv1e1Hsjw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On 11 January 2015 at 22:56, D J Stewart <bblug@iridium.org.uk> wrote:

> On Sun, 11 Jan 2015, Marc Gray wrote:
>
> Eddie's suggestion is probably better but is command line, and you'd want
>> to
>> run it like this:
>> ?sudo bash -c 'wget http://url/file.iso; shutdown -h now'
>>
>
> But why run wget as root? You could consider downloading and halting as
> two different problems. Then:
>
> As a nonprivileged user:
>
> $ cd /path/to/target
> $ wget http://url/file.iso.md5
> $ wget http://url/file.iso
>
> As root:
>
> # cd /path/to/target
> # while true; do \
> if test -e file.iso; then \
> if md5sum -c file.iso.md5; then \
> shutdown -h now; \
> fi; \
> fi; \
> sleep 5m; \
> done
>
> (None of this has been tested -- caveat emptor)
>
>
?Seriously?

OK, but I can't have this.

sudo bash -c 'su $SUDO_USER -c wget http://url/file.iso; shutdown -h now'
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150111/d88da9a4/attachment-0001.html>

------------------------------

Message: 6
Date: Mon, 12 Jan 2015 09:30:16 +0000
From: Sam Pearson <sam@sgp.me.uk>
To: Bristol@mailman.lug.org.uk
Subject: [bristol] Job Opportunity at LinuxIT
Message-ID:
<CAFN46pJXuKrA7V4Ni55-y6tTNFPZNkf5ZusOU1Ed2OmZ2+QTKw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi all,

Just a quick post to plug a job opportunity here in Bristol at my employer,
LinuxIT.

We're looking for a Professional Services Engineer to be based out of our
office in Emerson's Green.

There's some more details up on our website including a job description:

http://www.linuxit.com/who-we-are/work-for-us/

Cheers,
Sam




--
Sam Pearson : sgp.me.uk : @sagepe : 0x40e74c48
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20150112/eb8a0054/attachment.html>

------------------------------

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

End of Bristol Digest, Vol 585, Issue 1
***************************************

Tidak ada komentar:

Posting Komentar