EvilZone

Programming and Scripting => Scripting Languages => : r33per March 12, 2012, 06:02:36 PM

: [bash] update (ubuntu/backtrack)
: r33per March 12, 2012, 06:02:36 PM
just thought I'd share this with you all, it's just a simple script for updating tools and the kernel for backtrack and Ubuntu not really useful just saves typing :)
: (bash)
#!/bin/bash
echo "Updating, please wait....";
apt-get update; # sync with repo server
apt-get upgrade; # update tools
apt-get dist-upgrade; # upgrade kernel
echo "all done";
: Re: [bash] update (ubuntu/backtrack)
: Stackprotector March 12, 2012, 06:38:10 PM
I should not prefer doing kernel upgrades using scripts, because sometimes you need user input,     anyone else got some thoughts on this?
: Re: [bash] update (ubuntu/backtrack)
: Kulverstukas March 12, 2012, 08:04:23 PM
Usually Kernel update on Ubuntu with GRUB (I know with GRUB LEGACY, other (newer) don't know) after an update it asks what to do with an "old" menu.lst file. Normally I say to leave it as is and I change it myself...

So yeah, kernel updates ask for user input in some cases.
: Re: [bash] update (ubuntu/backtrack)
: r33per March 12, 2012, 11:58:48 PM
The script itself only actually invokes the update process after which input is required to complete it
: Re: [bash] update (ubuntu/backtrack)
: ande March 25, 2012, 09:08:54 PM
This has nothing to do with ubuntu/backtrack but rather all debian based systems.
: Re: [bash] update (ubuntu/backtrack)
: Stackprotector March 25, 2012, 09:25:51 PM
This has nothing to do with ubuntu/backtrack but rather all debian based systems.
Written for a ubuntu system, so he will not offer support to other debian based systems, or am i wrong?
: Re: [bash] update (ubuntu/backtrack)
: ca0s March 25, 2012, 10:08:26 PM
Written for a ubuntu system, so he will not offer support to other debian based systems, or am i wrong?
I think it will work in any system having apt-get as package manager.
OP: you should also check for changes in grub/lilo menu files. It has happened to me several times that kernel upgrade changes them and 1 or more SO's wont boot.
: Re: [bash] update (ubuntu/backtrack)
: Stackprotector March 25, 2012, 10:20:08 PM
I think it will work in any system having apt-get as package manager.
OP: you should also check for changes in grub/lilo menu files. It has happened to me several times that kernel upgrade changes them and 1 or more SO's wont boot.
Yes, that is something worth mentioning, maybe we could release a updater script who works for more package managers, like pacman.
: Re: [bash] update (ubuntu/backtrack)
: xzid April 08, 2012, 09:54:25 AM
saving typing isn't helpful when you lose power, a good pacman shouldn't need something like this.

also not C, ; not need.
: Re: [bash] update (ubuntu/backtrack)
: Kulverstukas April 08, 2012, 10:16:51 AM
a good pacman shouldn't need something like this.
Indeed, a good pacman needs vitamins to munch them ghosts.
: Re: [bash] update (ubuntu/backtrack)
: xzid April 08, 2012, 10:22:33 AM
Indeed, a good pacman needs vitamins to munch them ghosts.

someone(i think my dad) used to call those yellow dots bananas, although they look fuck all like bananas. So I always called those big dots(that allow you to fuck the ghouls) big bananas, sounds pretty gay now.