Topic: Statler Post Install Script

*NB:  this script was made largely redundant in Alpha 2 with the addition of its own post install script. As always feel free to hack this script up to achieve whatever task you need it for smile

A new script to help install packages post a fresh Statler install. This version installs cups, openoffice.og, extra graphics/network,audio programs and various other packages I find useful. It should be easy to edit for your needs and packages are set out in installation sections for easy use/editing.

To use:

In a terminal

wget http://omnsproject.org/build-scripts/archives/post-statler.sh

Edit the script to your needs with gedit or you editor of choice. Save your changes.

Make the script executable

chmod +x post-statler.sh

Then run in a root terminal

./post-statler.sh

or as sudo if you don’t have the root account activated

sudo ./post-statler.sh

enjoy smile

————————–

You’ll notice that I now include openoffice via the Debian repos. It drags in java runtime but it just makes life easier. If you don’t want this version of openoffice just edit it out before use and use my other script to install openoffice (sans java runtime).

Also, please note that the script installs nautilus with --no-install-recommends. It suits my netwrok browsing needs but it may not be a good option for Openbox users as it will try to take opver the desktop when used. I'm not sure if Openbox Statler includes the option to stop this behavior in autostart.sh like 9.04.01 did. Perhaps an Openbox user could clarify this for me. Mainly though, please comment this step out if you don't want it.

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

@omns

This is an just incredible, awsome useful script on my way to getting statler productive before the final is released.

Thank you so much - you saved a hell a lot of time for me.

Re: Statler Post Install Script

I also commented on your blog. I think that anybody who has added the "sid" repos to their sources.list should know that the script does a force dist-upgrade which will in effect change your Statler from Squeeze to Sid.

So make sure those repos are commented or removed entirely once you have Nvidia, or any other applications which needed the sid repos, installed.

Otherwise, absolutely awesome script! smile

On my OpenBox laptop I did this:

#sleep 2s
#apt-get install --no-install-recommends -y nautilus

rich

Last edited by rich (2010-04-25 10:30:42)

Re: Statler Post Install Script

^ Yes, I guess you could change the script to just do an upgrade instead if dist-upgrade. Would this stop the upgrade to Sid though? My experience with using Sid packages is to do what you have suggested in your Nvidia how-to and comment out the repo when you've finished with it smile

Overall I've moved away from using Sid packages so this and any future scripts won't include the option of installing packages from it.

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

tonyoptical wrote:

Thank you so much - you saved a hell a lot of time for me.

You're welcome. I'm glad you've found it useful smile

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

omns wrote:

^ Yes, I guess you could change the script to just do an upgrade instead if dist-upgrade. Would this stop the upgrade to Sid though? My experience with using Sid packages is to do what you have suggested in your Nvidia how-to and comment out the repo when you've finished with it smile

Overall I've moved away from using Sid packages so this and any future scripts won't include the option of installing packages from it.

This was why my original Nvidia how to stated that Squeeze should be pinned which would avoid the problem of packages being pulled from sid. Obviously having the Statler repo as default, this isn't an option.

Therefore, I think that a message on the script that says "Disable Non-Default Repos Before Continuing" would be a nice touch. As Squeeze is still testing, a lot of people are pulling apps from sid as a necessity, such as Nvidia, so until these problems are solved with Squeeze, it would take the risk out of your script dist-upgrading.

Re: Statler Post Install Script

Its an amazing piece of work in my mind,,So few commands for so much software.

I uninstalled a few of the softwares that came with it,,Nautilus being one of them.
GTKpod being another,,I dont own one  , lol

But i think thats a great piece of work that will make alot of new installers happy.

Re: Statler Post Install Script

richs-lxh wrote:
omns wrote:

^ Yes, I guess you could change the script to just do an upgrade instead if dist-upgrade. Would this stop the upgrade to Sid though? My experience with using Sid packages is to do what you have suggested in your Nvidia how-to and comment out the repo when you've finished with it smile

Overall I've moved away from using Sid packages so this and any future scripts won't include the option of installing packages from it.

This was why my original Nvidia how to stated that Squeeze should be pinned which would avoid the problem of packages being pulled from sid. Obviously having the Statler repo as default, this isn't an option.

Therefore, I think that a message on the script that says "Disable Non-Default Repos Before Continuing" would be a nice touch. As Squeeze is still testing, a lot of people are pulling apps from sid as a necessity, such as Nvidia, so until these problems are solved with Squeeze, it would take the risk out of your script dist-upgrading.

----------------------
...actually, I'm sure that's what omns meant with:
<quote> ...A new script to help install packages post a fresh Statler install... <end quote>
--------------------

However, a couple things to mention:
I'm using openbox.

1./  The only caveat I'm still running into is that the KEYMAPPING is a MESS ??? -and only with Statler ?
American/English standard keys seem all mixed up ?#.  I guess keyboard-mapping is only gonna get crazier in the future, (thankyou Apple ! sad
right, I'm checkin' out http://crunchbanglinux.org/forums/topic … psoptions/
as well.
...yup, I tried some of the above help-settings, but the keyboard mappings are quite a mess still, even for standard type english-keyboards.?
maybe there is still some weirdness yet, as expected obvisouly, in this alpha release.

2./ also, afterwards when I'm done running the previous script and have rebooted,  (sudo) apt-get upgrade (just to check things all out) everything looks fine, but if I try;
(sudo) aptitude upgrade, I get:
The following packages will be REMOVED:
  abiword-common{u} devicekit-disks{u} gnumeric-common{u} latex-xft-fonts{u} libabiword-2.8{u}
  libaiksaurus-1.2-0c2a{u} libaiksaurus-1.2-data{u} libaiksaurusgtk-1.2-0c2a{u} libcolamd2.7.1{u} libgdome2-0{u}
  libgdome2-cpp-smart0c2a{u} libgirepository1.0-0{u} libgoffice-0-8-common{u} libgoffice-0.8-8{u}
  libgoffice-0.8-8-common{u} libgtkmathview0c2a{u} liblink-grammar4{u} libloudmouth1-0{u} libmagickcore2{u}
  libmagickcore2-extra{u} libmagickwand2{u} libntfs-3g73{u} libots0{u} libparted1.8-12{u} libpsiconv6{u}
  libwps-0.1-1{u} libwv-1.2-3{u} link-grammar-dictionaries-en{u} lp-solve{u} ttf-lyx{u}
0 packages upgraded, 0 newly installed, 30 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 64.7MB will be freed.

-------  so uhmm, why the difference ? ------

-other than that though, thanks, this is a very handy upgrade-pkg script.?
also, the only other change I made in sources.list was to enable deb-src (added the appropriate kernel-headers,...)and was easily able to install latest nvidia-drivers-from-nvidia
smile

good work guys,  ya baby, thx again.
Rick.

Last edited by scjet (2010-04-25 20:18:39)

The "BSD" things in life are FREE

Re: Statler Post Install Script

richs-lxh wrote:

Therefore, I think that a message on the script that says "Disable Non-Default Repos Before Continuing" would be a nice touch. As Squeeze is still testing, a lot of people are pulling apps from sid as a necessity, such as Nvidia, so until these problems are solved with Squeeze, it would take the risk out of your script dist-upgrading.

Great idea, I'll add it in smile

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

^^ @scjet, I have no idea why the openbox keymapping issues exist. I use Xfce and haven't had a look at Openbox Statler yet. Sorry I can't be of more assistance.

I'd imagine the differences with aptitude come with its more advanced management of package dependencies. I'm not sure what aptitude is doing there as I don't use it but I'd imagine it's trying to run a similar process to apt-get autoremove before upgrading. I'd be interested to know what the result of running 'sudo apt-get autoremove' is in the same situation produces (i.e. post running the script). My guess is it will be quite similar.

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

It's that Gnome vs Kde type of thing.

I saw a battle on IRC with for and against apt-get autoremove. Both sides with very good reasons why it's safe and why it isn't. Same goes for aptitude.

Personally I use Aptitude for experimental apps (not the repo) which I may try and then remove, or for large packages (DE's, Office Suites, Groupware etc) to keep track of the dependencies. Then Apt for individual smaller apps/packages.

Aptitude does look for unwanted packages that Apt will offer to autoremove. I don't like that at all, I remove what I want, when I want. In any case, if you know you are going to be having an install-fest, you may eventually need those dependencies. But as usual with Linux it all depends on personal preferences and choices.

As for the keyboard layout. On Staler Openbox, I disable the panel keyboard switcher and configure my (Spanish "es" "105") keyboard with /etc/default/keyboard. Then I install localepurge and choose En_ and Es_ and be done with it. Just one file to edit, that's how it should be, not gui's and 3 other different files just to configure one piece of hardware.

Archlinux was good like that /etc/rc.conf, all sorted. Debian NEEDS that, as well as the abolition of Xorg and Flash, but that's for another rant Lol! smile

Re: Statler Post Install Script

omns wrote:
richs-lxh wrote:

Therefore, I think that a message on the script that says "Disable Non-Default Repos Before Continuing" would be a nice touch. As Squeeze is still testing, a lot of people are pulling apps from sid as a necessity, such as Nvidia, so until these problems are solved with Squeeze, it would take the risk out of your script dist-upgrading.

Great idea, I'll add it in smile

Sorry mate, didn't want to cause you more work, just making suggestions. smile

Would hate to see a new user to accidentally dist-upgrade to "unstable" just as they get Statler installed.

Re: Statler Post Install Script

^ No problem at all and I'm glad for the feedback. Warning now added to the script before the installer is run smile

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

@omns

Just did a fresh install over top of 9.04 last night. You have  - once again - saved me a whole bunch of time and aggravation.

mick

Linux - because a PC is a terrible thing to waste...

Re: Statler Post Install Script

Does it add the menu entries for openbox?

Mike Johnston
Founder and Senior Editor
CMS - ERP & CRM Critic

Re: Statler Post Install Script

@omns

I just installed #!(openbox version) last night and saw this script post-install. Simply awesome! big_smile Any thoughts on dropping OO.o for LibreOffice?

Re: Statler Post Install Script

@lazo99. I don't maintain this script anymore as Statler includes the cb-welcome script that does a better job.

A Creative Commoner | My images at Google+ | A Waldorf Review

Silence is sometimes the best answer - Dalai Lama.

Re: Statler Post Install Script

Greetings smile
As I too just installed #! Openbox this last weekend, this script was one of the things that most impressed me.  Now I do have a question.  When I did the updates I noted grub.cfg.  Did the updates change grub from legacy to grub2?  On initial install there was /boot/grub/menu.lst?
Bare with me as I am still new to the wonderful world of Linux.  smile

All the best,

Ian

Re: Statler Post Install Script

ichase wrote:

Greetings smile
As I too just installed #! Openbox this last weekend, this script was one of the things that most impressed me.  Now I do have a question.  When I did the updates I noted grub.cfg.  Did the updates change grub from legacy to grub2?  On initial install there was /boot/grub/menu.lst?
Bare with me as I am still new to the wonderful world of Linux.  smile

All the best,

Ian

Statler has always used Grub2 to the best of my recollection.