SEARCH

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

You are not logged in.

#26 2009-02-07 12:38:55

matty
New Member
From: Sweden
Registered: 2009-01-12
Posts: 3

Re: New system update script

michaelramm wrote:

My openbox menu entry is be

terminator --command=system-update

Then you authenticate when you start the update process.

Michael

Strange, if I use that I get the error code I wrote in my first message... Guess I need to include "sudo". Don't really know why it's like this. It worked the normal way before...

Sorry for my english grammar wink

Offline

Be excellent to each other!

#27 2010-01-01 16:54:58

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

I made some rewrite on the system-update script as found in CrunchBang Linux 9.04.01, indeed I wished to use this without have to deal with a GUI, for example to use it on some servers. Furthermore, I took the opportunity to remove some unnecessary information displayed (like the output of apt-get update) an add some colored indicators. Some screenshots, 2 & 3 with mistake in sudo password (only one try !), 1 no mistake and no error, 3 I don't want to continue:

2010010112623625421680x.th.png 2010010112623626041680x.th.png 2010010112623626251680x.th.png

Output is more concise (1st image). Someone interested?

Last edited by ~HP (2010-01-01 17:07:42)

Offline

#28 2010-01-05 17:55:12

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

Re: New system update script

@ ~hp

look cool

could you post your script ?


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

Offline

#29 2010-01-06 23:24:07

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

I implemented bash completion, it could be a piece of cake to add it to your bashrc ; in my ~/.bash_completion, something like this:

. "$HOME/bin/system-update" 2> /dev/null

and in your .bashrc, based on my .bashrc used on my homeserver running under Ubuntu 9.10 karmic:

[[ "$BASH_COMPLETION" && -f "$HOME/.bash_completion" ]] && {
    . "$HOME/.bash_completion"
}

as a result:
2010010712628199991680x.th.png

The script will be available soon, just a couple of days, installable through the network, using wget.

Last edited by ~HP (2010-01-06 23:35:28)

Offline

#30 2010-01-07 00:00:20

rich
#! Junkie
From: barcelona
Registered: 2009-01-26
Posts: 413
Website

Re: New system update script

Just as a suggestion, regarding tracking dependencies, wouldn't the newer aptitude commands be better. (aptitude upgrade is now obsolete)

sudo aptitude update
sudo aptitude safe-upgrade

And the old "aptitude dist-upgrade" is:

sudo aptitude full-upgrade

I used Ubuntu for a long time before changing distros a couple of times, but after experiencing a lot of breakage with Ubuntu dist-upgrades, I also chose to always upgrade and dist-upgrade out of X, from the Console. I noticed less breakage this way. A standard app package upgrade wasn't harmful, but when a new kernel/headers/xorg were involved, the problems used to appear, especially with proprietary graphics drivers such as Nvidia.

Not trying to teach my grandmother how to suck eggs, just offering a suggestion. smile

Offline

#31 2010-01-07 07:07:31

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

richs-lxh wrote:

Just as a suggestion, regarding tracking dependencies, wouldn't the newer aptitude commands be better. (aptitude upgrade is now obsolete)

sudo aptitude update
sudo aptitude safe-upgrade

May be.

Last edited by ~HP (2010-01-07 07:08:12)

Offline

#32 2010-01-11 11:25:16

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

Another minor improvement:

2010011112632081601680x.th.png

indication about the "System Restart Required" should be read and displayed when required…

Offline

#33 2010-01-12 11:55:24

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

benj1 wrote:

could you post your script ?

~HP wrote:

The script will be available soon, just a couple of days, installable through the network, using wget.

cd ~/bin
wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar
tar -xvf system-update.tar

Here it is!

Offline

#34 2010-01-12 12:36:09

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

Re: New system update script

very nice

i have to say thats a very large bash script, youre either a bash guru or a masochist tongue


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

Offline

#35 2010-01-12 12:52:45

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

May be both wink

Offline

#36 2010-01-13 19:46:53

saneks
#! Die Hard
Registered: 2009-10-01
Posts: 736

Re: New system update script

I saw that this thread started before #! 9.04was released and the default shortcuts include super+U for System Update. is this a script like this? Hower, when I hit it it asks me:

You are about to perform a system upgrade.
Do you wish to continue? (Y|n) > 

is that alright to do? I don't want to spoil my #! with ubuntu 9.10 data..

usually I only do..
apt-get update
apt-get upgrade

is that enough? or is system-update different from dist-upgrade..? strange it's he same command..


eee701 user & other lap/desktops

Offline

#37 2010-02-01 10:38:45

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

~HP wrote:
cd ~/bin
wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar
tar -xvf system-update.tar

Here it is!

Now localized in English, and in French ; according to the environment variable LANG…
it changes the terminal title during its execution, too :

sysupdatefr.th.png

could support others translations too, if someone is interested enough wink.

Last edited by ~HP (2010-02-01 10:55:18)

Offline

#38 2010-02-01 10:50:09

~HP
#! CrunchBanger
From: Elsaß (fr_FR)
Registered: 2010-01-01
Posts: 187
Website

Re: New system update script

saneks wrote:

usually I only do..
apt-get update
apt-get upgrade

is that enough? or is system-update different from dist-upgrade..? strange it's he same command..

My version of system-update is now different cause it will warn you about a required reboot:

2010011112632081601680x.th.png

it could be useful if you perform some dist-upgrade, otherwise it's the same as your two commands in one.

Last edited by ~HP (2010-02-01 10:53:14)

Offline

#39 2010-07-01 21:19:09

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: New system update script

~HP wrote:
cd ~/bin
wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar
tar -xvf system-update.tar

Here it is!

Is it safe to run system-update on statler/debian?

Offline

#40 2010-07-01 21:32:20

lastgreatsea
#! Member
Registered: 2010-06-08
Posts: 56

Re: New system update script

slapfish wrote:
~HP wrote:
cd ~/bin
wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar
tar -xvf system-update.tar

Here it is!

Is it safe to run system-update on statler/debian?

i dont think it works in statler.

just go into terminal and
sudo apt-get update
sudo apt-get upgrade

i created a update script that can be run from openbox menu and if your interested its in the Bash scripts thread.

Offline

#41 2010-07-01 22:08:03

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

Re: New system update script

slapfish wrote:
~HP wrote:
cd ~/bin
wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar
tar -xvf system-update.tar

Here it is!

Is it safe to run system-update on statler/debian?

It should be safe. The update script was just an automated way to execute apt-get update/apt-get upgrade/apt-get dist-upgrade.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#42 2010-07-01 22:30:00

slapfish
#! Die Hard
From: Athens, Greece
Registered: 2009-10-22
Posts: 601

Re: New system update script

anonymous wrote:

It should be safe. The update script was just an automated way to execute apt-get update/apt-get upgrade/apt-get dist-upgrade.

That would be my guess too, but since it would  be only a guess I thought I should ask first... I tried to see if there is anything dangerous in the code but didn't understand much lol not that I tried that hard but anyway... I run it with crossed fingers and the source update seemed to went well...I'll run it again tomorrow to be sure it's working, cause there were no updates for now....


lastgreatsea wrote:

just go into terminal and
sudo apt-get update
sudo apt-get upgrade

I have set a couple of aliases in bashrc to make that quicker but still I would like to be able to run the script again...it was/is really cool...


EDIT: Thanks for the replies..

Last edited by slapfish (2010-07-01 22:30:21)

Offline

#43 2012-01-14 22:06:25

cuzimwhiterite
New Member
Registered: 2012-01-14
Posts: 2

Re: New system update script

Here's the error I'm getting. Does this still exist?

E: Unable to locate package crunchbang-system-update

Offline

#44 2012-01-15 06:17:02

kelean
#! CrunchBanger
Registered: 2009-01-21
Posts: 178

Re: New system update script

cuzimwhiterite wrote:

Here's the error I'm getting. Does this still exist?

E: Unable to locate package crunchbang-system-update


I just tried to install it and I get the same error.

Offline

#45 2012-01-15 14:49:36

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,017

Re: New system update script

@cuzimwhiterite & kelean:  That package only existed in the older Ubuntu-based releases of CrunchBang; even if it still existed, it would have no use in #! Debian.


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Offline

#46 2012-01-15 21:28:36

cuzimwhiterite
New Member
Registered: 2012-01-14
Posts: 2

Re: New system update script

pvsage wrote:

@cuzimwhiterite & kelean:  That package only existed in the older Ubuntu-based releases of CrunchBang; even if it still existed, it would have no use in #! Debian.

Well then, the ultimate question still lies unanswered: How do I update to a newer version of #! without reinstalling.

Perhaps answering another, perhaps simpler, question will help. When I type "uname -a" into terminal, the version number I see is "2.6.32-5-686". Crunchbang is on version 10.something, I believe. Do I have an extremely outdated version, or am I not checking my version correctly?

Thanks to anyone that helps me out here.

Offline

#47 2012-01-15 21:44:40

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

Re: New system update script

cuzimwhiterite wrote:
pvsage wrote:

@cuzimwhiterite & kelean:  That package only existed in the older Ubuntu-based releases of CrunchBang; even if it still existed, it would have no use in #! Debian.

Well then, the ultimate question still lies unanswered: How do I update to a newer version of #! without reinstalling.

Perhaps answering another, perhaps simpler, question will help. When I type "uname -a" into terminal, the version number I see is "2.6.32-5-686". Crunchbang is on version 10.something, I believe. Do I have an extremely outdated version, or am I not checking my version correctly?

Thanks to anyone that helps me out here.

The number 2.6.32-5-686 is your kernel version. Based on this I see you are running the Februrary 2011 Statler release based on Debian Squeeze. This was a nice release and you should should feel comfortable sticking with it. To keep your system up-to-date with the (admittedly outdated) Debian Squeeze repos I recommend the following on a semi-regular basis:

sudo apt-get update
sudo apt-get dist-upgrade

There are various how-to's on these forums if you want newer versions of anything specific just look around or ask. Backports, Testing, Unstable, Experimental, 3rd-party repo, .deb package, precompiled binary, compile your own binary from source--you name it! For example most users will want the latest web brower; you can grab that in several different ways. smile

If you want to download the most recent live CD/USB and take it for a test drive, you can evaluate the (minor) changes for yourself. smile The biggest changes "under the hood" are move to a new repo (crunchbang.org instead of crunchbanglinux.org) and backports by default.

ps upgrade to a new release has never been officially supported in any #! release, fresh reinstall is the only suggested method. sad


/hugged

Offline

#48 2012-01-15 21:52:25

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,017

Re: New system update script

It seems that Philip (CrunchBang's sole developer) is looking to the future and has made a few changes to packages in the CrunchBang repositories that, hopefully, will make upgrades to future Debian releases more painless, but these changes have caused a few hiccups for people who tried to upgrade to the point release by just changing a few lines in /etc/apt/sources.list.  Still, it's nothing compared to upgrading from, say, Lucid to Natty.

By the way, another not-so-minor change from the Stable release to the Stable+Backports point release is a change in display managers, from GDM to SLiM.  I won't go into that here though, since each forum post has a 64K limit. neutral


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

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