You are not logged in.
My openbox menu entry is be
terminator --command=system-updateThen 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 
Offline
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:
Output is more concise (1st image). Someone interested?
Last edited by ~HP (2010-01-01 17:07:42)
Offline
@ ~hp
look cool
could you post your script ?
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
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/nulland 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"
}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
Just as a suggestion, regarding tracking dependencies, wouldn't the newer aptitude commands be better. (aptitude upgrade is now obsolete)
sudo aptitude updatesudo aptitude safe-upgradeAnd the old "aptitude dist-upgrade" is:
sudo aptitude full-upgradeI 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. 
Offline
Just as a suggestion, regarding tracking dependencies, wouldn't the newer aptitude commands be better. (aptitude upgrade is now obsolete)
sudo aptitude updatesudo aptitude safe-upgrade
May be.
Last edited by ~HP (2010-01-07 07:08:12)
Offline
could you post your script ?
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.tarHere it is!
Offline
very nice
i have to say thats a very large bash script, youre either a bash guru or a masochist 
- - - - - - - - Wiki Pages - - - - - - -
#! install guide *autostart programs, modify the menu & keybindings
configuring Conky *installing scripts
Offline
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
cd ~/bin wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar tar -xvf system-update.tarHere it is!
Now localized in English, and in French ; according to the environment variable LANG…
it changes the terminal title during its execution, too :
could support others translations too, if someone is interested enough
.
Last edited by ~HP (2010-02-01 10:55:18)
Offline
usually I only do..
apt-get update
apt-get upgradeis 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:
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
cd ~/bin wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar tar -xvf system-update.tarHere it is!
Is it safe to run system-update on statler/debian?
Offline
~HP wrote:cd ~/bin wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar tar -xvf system-update.tarHere 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
~HP wrote:cd ~/bin wget http://88.174.112.74/share/debian/system-update.tar -O system-update.tar tar -xvf system-update.tarHere 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
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
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....
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
Here's the error I'm getting. Does this still exist?
E: Unable to locate package crunchbang-system-update
Offline
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
@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.
Online
@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
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-upgradeThere 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. 
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.
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. 
/hugged
Offline
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. 
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Online
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.