ps, just added

        apt-get dist-upgrade

So now I get the latest stuff, like
ntfsclone v2.0.0 (libntfs 10:0:0)

That shouldn't cause any problems, right?  (other than what is expected for
testing/experimental)

Carl K

Carl Karsten wrote:
> Now that I can ssh to the box with ease (thanks a lot for that)  I wrote a
> script that touches up things.  Took some doing to figure out how to make the
> whole process as simple as running a script, (not wget/chmod/run, just run) 
> so I
> figured I would share.
> 
> 
> # upcz.sh
> # update remote cz
> 
> set -xe
> if [ -z "$1" ]
> then
>         echo "No target passed."
>         echo $0 "<target ip>"
>         exit
> fi
> 
> if [ "$1" != "remote" ]
> then
>         ssh-copy-id -i ~/.ssh/id_dsa.pub [EMAIL PROTECTED]
>         scp $0 [EMAIL PROTECTED]:
>         ssh [EMAIL PROTECTED] chmod u+x $0
>         ssh [EMAIL PROTECTED] sudo $0 remote
> else
>         # this should get run on the remote box
>         # don't indent the heredoc,
>         #  resolv.conf needs the stuff to start in col 0
>         #  and EOF needs to be in col 0 here.
> 
>         cat > /etc/resolv.conf <<EOF
> search personnelware.com
> nameserver 192.168.1.7
> EOF
> 
>         # use local apt-cach
>         sed "/^deb/s,http://,http://cp600:3142/,"; -i /etc/apt/sources.list
>         apt-get update
>         apt-get install usbutils
> 
> fi
> # end.
> 
> Here is what it looks like when I run it:
> 
> 
> 
> [EMAIL PROTECTED]:~$ ./cz.sh 192.168.1.91
> ++ '[' -z 192.168.1.91 ']'
> ++ '[' 192.168.1.91 '!=' remote ']'
> ++ ssh-copy-id -i /home/user/.ssh/id_dsa.pub [EMAIL PROTECTED]
> 26
> [EMAIL PROTECTED]'s password:
> Now try logging into the machine, with "ssh '[EMAIL PROTECTED]'", and check 
> in:
> 
>   .ssh/authorized_keys
> 
> to make sure we haven't added extra keys that you weren't expecting.
> 
> ++ scp ./cz.sh [EMAIL PROTECTED]:
> cz.sh                                         100%  590     0.6KB/s   00:00
> ++ ssh [EMAIL PROTECTED] chmod u+x ./cz.sh
> ++ ssh [EMAIL PROTECTED] sudo ./cz.sh remote
> + '[' -z remote ']'
> + '[' remote '!=' remote ']'
> + cat
> + sed '/^deb/s,http://,http://cp600:3142/,' -i /etc/apt/sources.list
> + apt-get update
> Get:1 http://cp600 etch Release.gpg [386B]
> Get:2 http://cp600 etch/updates Release.gpg [189B]
> Get:3 http://cp600 drbl Release.gpg [189B]
> Get:4 http://cp600 etch Release [58.2kB]
> Get:5 http://cp600 etch/updates Release [37.6kB]
> Get:6 http://cp600 drbl Release [106kB]
> Get:7 http://cp600 etch/main Packages [4284kB]
> Get:8 http://cp600 etch/updates/main Packages [290kB]
> Get:9 http://cp600 drbl/stable Packages [10.7kB]
> Get:10 http://cp600 drbl/testing Packages [1424B]
> Get:11 http://cp600 drbl/unstable Packages [2505B]
> Get:12 http://cp600 drbl/live-stable Packages [3502B]
> Get:13 http://cp600 drbl/live-testing Packages [14B]
> Get:14 http://cp600 drbl/live-unstable Packages [17.4kB]
> Get:15 http://cp600 drbl/live-experimental Packages [4958B]
> Fetched 4817kB in 16s (294kB/s)
> Reading package lists...
> + apt-get install usbutils
> Reading package lists...
> Building dependency tree...
> The following NEW packages will be installed:
>   usbutils
> 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
> Need to get 103kB of archives.
> After unpacking 258kB of additional disk space will be used.
> Get:1 http://cp600 etch/main usbutils 0.72-7 [103kB]
> debconf: delaying package configuration, since apt-utils is not installed
> Fetched 103kB in 0s (1075kB/s)
> Selecting previously deselected package usbutils.
> (Reading database ... 15893 files and directories currently installed.)
> Unpacking usbutils (from .../usbutils_0.72-7_i386.deb) ...
> Setting up usbutils (0.72-7) ...
> 
> localepurge: checking system for new locale ...
> localepurge: processing locale files ...
> localepurge: processing man pages ...
> [EMAIL PROTECTED]:~$
> 
> Carl K
> 
> ps, I can live with the extra "sure?" no biggie.
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Clonezilla-live mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/clonezilla-live
> 
> 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to