This forum is in archive mode. You will not be able to post new content.

Author Topic: [bash] update (ubuntu/backtrack)  (Read 3427 times)

0 Members and 1 Guest are viewing this topic.

Offline r33per

  • Serf
  • *
  • Posts: 23
  • Cookies: 3
    • View Profile
[bash] update (ubuntu/backtrack)
« on: 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 :)
Code: (bash) [Select]
#!/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";
« Last Edit: April 21, 2012, 08:59:26 PM by r33per »

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #1 on: 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?
~Factionwars

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [bash] update (ubuntu/backtrack)
« Reply #2 on: 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.

Offline r33per

  • Serf
  • *
  • Posts: 23
  • Cookies: 3
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #3 on: March 12, 2012, 11:58:48 PM »
The script itself only actually invokes the update process after which input is required to complete it

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #4 on: March 25, 2012, 09:08:54 PM »
This has nothing to do with ubuntu/backtrack but rather all debian based systems.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #5 on: 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?
~Factionwars

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: [bash] update (ubuntu/backtrack)
« Reply #6 on: 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.

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #7 on: 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.
~Factionwars

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #8 on: 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.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [bash] update (ubuntu/backtrack)
« Reply #9 on: 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.

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: [bash] update (ubuntu/backtrack)
« Reply #10 on: 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.

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.