Topic: Statler --firsttime script

I think the Statler --firsttime script is awesome.

I have a couple of things I would suggest adding to it:

Default editor chooser
Several people have made suggestions of what the default editor should be (gedit,geany,leafpad,gvim,vim,etc) I recommend that one more step be added to the --firsttime allowing users to pick from a list. It would be important that this step install editors (e.g. bluefish) that are chosen but not included by default in Statler. It should also change the default action in Thunar and the OB menu "Text Editor".

Keyboard
I know there's a sticky and the fix is dead-simple, but couldn't this be added to the script?

Browser
Iceweasel, Chromium, Opera, etc.

I'll brush up on my script-fu and figure out how to implement these myself.

For the love of freedom.
Thinkpad X200s CrunchBang 10a2 amd64
Get Counted  #498874

Re: Statler --firsttime script

Ideally, the keyboard issues will be fixed in the installer. Regarding the other suggestions, I look forward to seeing how you would implement them. Let us know you need any help. smile

Re: Statler --firsttime script

I'll begin working on the editor-chooser first. Please let me know what editors I should have available as options. So far I have the following in mind:

  • vi

  • vim (personal favorite)

  • gvim

  • nano

  • emacs

  • xemacs

  • gedit

  • geany

  • leafpad

  • scribes

  • kate

  • ed tongue

In no way to I expect to get all these going the first time around, but I would like to know if I've missed any editors.

Last edited by valbaca (2010-07-16 13:04:18)

For the love of freedom.
Thinkpad X200s CrunchBang 10a2 amd64
Get Counted  #498874

Re: Statler --firsttime script

SciTE

Note: ** Please read before posting **

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

Re: Statler --firsttime script

2 suggestions
first, rather than have a huge list where youre always going to miss at least one editor, why not just have a small list, and any others, just pull them in directly using apt.

second, you could set visudo to actually use your selected editor, rather than vim (my number one annoyance of debian(my number one annoyance of ubuntu is the smarmy git who replied to my bug report about it 3 months later)).

ps geanys on the list twice, and you forgot ed

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

Re: Statler --firsttime script

benj1 wrote:

first, rather than have a huge list where youre always going to miss at least one editor, why not just have a small list, and any others, just pull them in directly using apt.

+1

There could also be a "Let me decide later" point in this menu - which either kicks you to an apt-get install prompt or really skips this question.

Life's not what it used to be. *

Re: Statler --firsttime script

benj1 wrote:

2 suggestions
first, rather than have a huge list where youre always going to miss at least one editor, why not just have a small list, and any others, just pull them in directly using apt.

second, you could set visudo to actually use your selected editor, rather than vim (my number one annoyance of debian(my number one annoyance of ubuntu is the smarmy git who replied to my bug report about it 3 months later)).

ps geanys on the list twice, and you forgot ed

machinebacon wrote:

+1
There could also be a "Let me decide later" point in this menu - which either kicks you to an apt-get install prompt or really skips this question.

It's good to know that great minds think alike. Thanks benj1 and machinebacon
I was planning to have the editors already in crunchbang (vi,nano,gedit) to be indicated in some way so that the installer could remain self-contained.
I am going to trim the list to somewhere between 6-8 listed editors including an "apt-get" option. I wanted to get the most commonly used editors so I know what I should be testing the "apt-get" option with.

I guess another list I need to make is where all the "default editor" changes need to take place:
visudo, .bashrc EDITOR=, thunar's "open with...", the menu.xml "Text Editor" and add it under "Accessories >"
...whew! big_smile

For the love of freedom.
Thinkpad X200s CrunchBang 10a2 amd64
Get Counted  #498874

Re: Statler --firsttime script

...rc.xml's keyboard shortcut...

John
------------------------
( a boring Japan blog , and idle twitterings )
“There is more Unix-nature in one line of shell script than there is in ten thousand lines of C.” - Master Foo

Re: Statler --firsttime script

i don't know if its already been implemented in menu.xml etc but you could always set an $editor variable in autostart.sh or somewhere and just have all entries in menu.xml /rc.xml point to that.

for visudo you need to do 'sudo update-alternatives --config editor', although looking at the man page --set is a scriptable alternative to --config. 

for editor installation, are you planning on separating out gui and console text editors, im not sure a gui editor would be a good global default to have.

ps i was joking with ed, although seeing as you added it, may a suggest a magnetised needle, and a steady hand wink

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

Re: Statler --firsttime script

benj1 wrote:

i don't know if its already been implemented in menu.xml etc but you could always set an $editor variable in autostart.sh or somewhere and just have all entries in menu.xml /rc.xml point to that.

for visudo you need to do 'sudo update-alternatives --config editor', although looking at the man page --set is a scriptable alternative to --config. 

for editor installation, are you planning on separating out gui and console text editors, im not sure a gui editor would be a good global default to have.

ps i was joking with ed, although seeing as you added it, may a suggest a magnetised needle, and a steady hand wink

Or at least an easter egg if the user inputs "butterflies" wink

Thanks for all the other info, very helpful.

For the love of freedom.
Thinkpad X200s CrunchBang 10a2 amd64
Get Counted  #498874

Re: Statler --firsttime script

valbaca wrote:

Or at least an easter egg if the user inputs "butterflies" wink

Thanks for all the other info, very helpful.

lol

suggest it to corenominal for the #! repo

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

Re: Statler --firsttime script

Since it ran before I could set the proxy... how do I re-run it?

What brought me to Debian was one-stop shopping.
What brought me to SID was apt-get update && apt-get dist-upgrade

Re: Statler --firsttime script

cb-welcome

Note: ** Please read before posting **

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