SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-03-21 23:42:01

charlie01
#! Die Hard
Registered: 2009-02-09
Posts: 556

System updates

I noticed its not like 9.04 were its Super-u.
Is it apt-get update,,Then install updates from synaptic.
Or is there an easier way ?

Offline

Help fund CrunchBang, donate to the project!

#2 2010-03-22 00:31:33

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: System updates

well it is important to remember that this is only an alpha, so many things haven't been implemented yet but the script is here, (or /usr/bin/system-update), there shouldn't be a problem running it but i havent tried yet.

#!/bin/bash

# Print help
#===============================================================================
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
    echo "Usage:"
    echo "  -i, --interactive       run system update"
    echo "  -n, --non-interactive   run system update and only prompt"
    echo "                          for root password"
    echo "  -f, --full              run full system update including"
    echo "                          any Kernel upgrades"
    echo "  -h, --help              show this message and exit"
    echo ""
    exit    
fi

# Run interactive update
#===============================================================================
if [ "$1" = "-i" ] || [ "$1" = "--interactive" ]; then
    exec terminator --command="system-update --upgrade"
fi

if [ "$1" = "--upgrade" ]; then
    echo "You are about to perform a system upgrade."
    echo -n "Do you wish to continue? (Y|n) > "
    read a
    if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
    [ "$a" = "" ]; then
        sudo apt-get update
        sudo apt-get upgrade
        echo ""
        echo "-- System update complete! Exiting..."
        sleep 4s
        exit
    fi
fi

# Run non-interactive update
#===============================================================================
if [ "$1" = "-n" ] || [ "$1" = "--non-interactive" ]; then
    exec terminator --command="system-update --upgrade-now"
    exit
fi
if [ "$1" = "--upgrade-now" ]; then
    echo "Performing a system upgrade..."
    sudo apt-get update
    sudo apt-get -y upgrade
    echo ""
    echo "-- System update complete! Exiting..."
    sleep 4s
    exit
fi

# Run full update including any Kernel updates
#===============================================================================
if [ "$1" = "-f" ] || [ "$1" = "--full" ]; then
    exec terminator --command="system-update --dist-upgrade"
    exit
fi
if [ "$1" = "--dist-upgrade" ]; then
    echo "You are about to perform a full system upgrade including any."
    echo "Kernel updates."
    echo -n "Do you wish to continue? (Y|n) > "
    read a
    if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
    [ "$a" = "" ]; then
        sudo apt-get update
        sudo apt-get dist-upgrade
        echo ""
        echo "-- System update complete! Exiting..."
        sleep 4s
        exit
    fi
fi

# Run interactive system update if no arguements supplied
#===============================================================================
if [ "$1" = "" ];then
   exec terminator --command="system-update --upgrade"
exit
fi

# Show help if arguement not recognised
#===============================================================================
echo "Oops! Invalid command. Have a clue..."
exec system-update -h
exit

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

#3 2010-03-22 01:01:37

charlie01
#! Die Hard
Registered: 2009-02-09
Posts: 556

Re: System updates

I installed the script in usr/bin as a file and named it system-update.

Im not exactly sure how to run it.
This doesnt work,system-update --upgrade,,But im pretty sure im missing a step.

Offline

#4 2010-03-22 01:04:18

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: System updates

Did you make the file executable?

sudo chmod +x /usr/bin/system-update

Offline

#5 2010-03-22 01:14:08

charlie01
#! Die Hard
Registered: 2009-02-09
Posts: 556

Re: System updates

anonymous wrote:

Did you make the file executable?

sudo chmod +x /usr/bin/system-update

Now what command is needed to run it.

Got it,,,You two Rule,,,This is what command i used and it works now.
system-update --upgrade

That did the trick,,,Now how would i turn it into Super-u keybind..
Is it as simple as using system-update --upgrade as the command like terminator in Edit RC XML.

Here is the keybind,,It works.

  </keybind>
    <keybind key="W-u">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Update</name>
        </startupnotify>
        <command>/usr/bin/system-update </command>
      </action>

Last edited by charlie01 (2010-03-22 01:21:50)

Offline

#6 2010-03-25 14:36:06

elumbella
Member
Registered: 2010-02-15
Posts: 46

Re: System updates

Will there be any option of directly upgrading the current version of #! to Statler, or even Statler alpha? I would be strongly interested in this!

Offline

#7 2010-03-25 14:37:55

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,920

Re: System updates

elumbella wrote:

Will there be any option of directly upgrading the current version of #! to Statler, or even Statler alpha? I would be strongly interested in this!

Impossible.

Back up your data and install Statler fresh. smile


/hugged

Offline

#8 2010-03-25 18:13:12

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: System updates

snowpine wrote:
elumbella wrote:

Will there be any option of directly upgrading the current version of #! to Statler, or even Statler alpha? I would be strongly interested in this!

Impossible.

Back up your data and install Statler fresh. smile

not impossible, just very difficult.


- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

#9 2010-03-25 18:23:08

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,920

Re: System updates

benj1 wrote:
snowpine wrote:
elumbella wrote:

Will there be any option of directly upgrading the current version of #! to Statler, or even Statler alpha? I would be strongly interested in this!

Impossible.

Back up your data and install Statler fresh. smile

not impossible, just very difficult.

That is great news! I have a very stable #! 9.04 system I would love to keep ticking without a reinstall. So don't be a tease... tell us how! This should definitely be stickied/wikied. smile


/hugged

Offline

#10 2010-03-25 18:35:08

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: System updates

Upgrading from one distro to another distro, if even possible, is something I would never recommend. It would cause more problems than simply upgrading versions.

Offline

#11 2010-03-25 20:11:06

DixieDancer
#! Junkie
From: Florida, Occupied C.S.A.
Registered: 2009-04-25
Posts: 291
Website

Re: System updates

It would be extreeeeemely frustrating to try! The installer on Crunchbang 10, though not as pretty and graphical as Ubuntu's, is certainly easy enough to follow. My Statler installed in less than 20 minutes, and that was with me reading everything twice to make sure I was choosing the right thing. It's not worth the trouble of trying to convert Ubuntu-based Crunchbang 9.04 into Statler. Not even the super-techno-geeks around here would bother trying when a re-install is so much faster and simpler!

-Robin

Offline

#12 2010-03-25 20:26:20

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: System updates

snowpine wrote:
benj1 wrote:
snowpine wrote:

Impossible.

Back up your data and install Statler fresh. smile

not impossible, just very difficult.

That is great news! I have a very stable #! 9.04 system I would love to keep ticking without a reinstall. So don't be a tease... tell us how! This should definitely be stickied/wikied. smile

don't get your hope up, by difficult i mean working out all the package incompatibilities/naming differences between debian and ubuntu, which sounds easier than it is, its probably harder than creating a distro from scratch.
its theoretically possible to change from debian to slackware or red hat but i don't think anybodies going to attempt to write a program to do it.


- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo