 |
|
 |
|
Next: futex question
|
| Author |
Message |
External

Since: Nov 02, 2008 Posts: 81
|
(Msg. 46) Posted: Thu Oct 08, 2009 5:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: alt>os>linux>slackware (more info?)
|
|
|
On Thu, 08 Oct 2009 16:35:14 GMT, notbob <notbob.TakeThisOut@nothome.com> wrote:
>On 2009-10-08, notbob <notbob.TakeThisOut@nothome.com> wrote:
>> On 2009-10-08, Ron Gibson <rsgibson.TakeThisOut@tampabay.rr.com> wrote:
>>
>>> Yeah, I know how to set it up. What I should have said is try to
>>> remember what I did in the past to be able to select which desktop
>>> from the CLI. I don't like using gdm or kdm or whatever those things
>>> are.
>>
>> After login:
>>
>> $ startx /etc/X11/xinit/xinitrc.fluxbox
>>
>> ....or whatever desktops you have in installed in the above dir.
>
>Hah!! I've wanted to do this forever.
>
>Now that I've been studying some basic scripting, I've learned enough
>to be dangerous. Steal a little here, copy a little there, snip, add,
>subtract, bwahahahah....
>
>Here is my bash menu script to choose a wm/desktop from the login
>prompt for the default choices in a full slack install. Naturally, I
>make no guarantees and am not responsible if your dell laptop melts
>down to a puddle of day-glo pink. I will say it works fine on my
>slack 13 desktop and only if you don't have an x session already
>running. It could no doubt use some refinement and added
>functionality (like a 2nd x session), but I'll do that when I get
>there. Enjoy:
>
>----------------------
>
>#!/bin/bash
>
>while :
....
>done
Perhaps:
#!/bin/bash
wmpath="/etc/X11/xinit/xinitrc"
default="blackbox"
while :
do
clear
echo " -== CHOOSE A DESKTOP ==-
1. blackbox
2. fluxbox
3. fvwm2
4. xfce
5. twm
6. wmaker
7. kde
"
printf " %s" "Enter number of desktop [1-7]: "
read opt
case $opt in
1) startx $wmpath.blackbox;;
2) startx $wmpath.fluxbox;;
3) startx $wmpath.fvwm2;;
4) startx $wmpath.xfce;;
5) startx $wmpath.twm;;
6) startx $wmpath.wmaker;;
7) startx $wmpath.kde;;
*) startx $wmpath.$default;;
esac
done
If you must use a menu, try to keep one set of options, a single
array for the desktop type would be better -- I'll let you discover
how  'echo -n' is frowned upon, use printf instead (much more
versatile for print formatting).
Grant.
--
http://bugsplatter.id.au |
|
| Back to top |
|
 |  |
External

Since: Nov 02, 2008 Posts: 81
|
(Msg. 47) Posted: Thu Oct 08, 2009 5:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 08 Oct 2009 18:32:43 GMT, Loki Harfagr <l0k1.TakeThisOut@thedarkdesign.free.fr.INVALID> wrote:
....
>> Feel free to dogpile. I need all the help I can get.
>>
>> nb
>
>Sidney! Get out immediatly off this body!
My first thought too, but then I hadda play a little golf
Grant.
--
http://bugsplatter.id.au |
|
| Back to top |
|
 |  |
External

Since: Mar 02, 2009 Posts: 33
|
(Msg. 48) Posted: Fri Oct 09, 2009 5:20 am
Post subject: Re: Move from KDE4.2 to xfce or fluxbox - why not? [Login to view extended thread Info.] Archived from groups: alt>os>linux>slackware, others (more info?)
|
|
|
On alt.os.linux.slackware, Occam <occam.DeleteThis@internode.razoron.net>
wrote:
> Just like many others, I have problems with KDE4.2 - it
> crashes far too often.
I don't use a GDE and I never have crashes. Never.
> So I tried a bit of xfce, fluxbox and some other desktops, and
>found that I could even use Kontact in eg xfce.
GDEs are just suites of graphical apps running in the GUI
like any other graphical apps.
Why wouldn't you be able to run any of them from any interface,
including the shell prompt, which is the real Linux interface.
> Now my questions is: why bother with KDE4.2? Just what _does_
>one miss out on (more than eye candy) by using one of the other
>desktops?
They are all basically the same: shoddy crutches wearing
cheap makeup.
>I should add
>that I do not dislike KDE4 - KDE4.3 runs quite well, thank
>you very much; but that is not part of Slackware yet.
And being a GDE addict, you clearly don't understand much
about Linux, which is what those things do to you.
If you did know the basics of Linux you'd know that you
could run KDE4.3 on your Slackware OS if you wanted to, and
you'd know how to do it.
And you wouldn't dream of running any Windows-clone GDE
monstrosity on your Linux boxes.
http://www.comptechdoc.org/os/linux/howlinuxworks/
http://rute.2038bug.com/rute.html.tar.bz2
http://www.linuxpackages.net/howto/slackfiles/books/slackware-basics/html/shell.
html
http://www.usefuljaja.com/2007/5/bash-who-where-and-what
http://www.usefuljaja.com/2007/5/bash-man-command
http://www.usefuljaja.com/2007/5/bash-directory-manipulation
http://www.usefuljaja.com/2007/5/bash-files-manipulation
http://www.usefuljaja.com/2007/6/bash-history-in-the-making
http://www.usefuljaja.com/2007/6/bash-use-your-local-bin
http://mywiki.wooledge.org/BashFAQ
http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html
http://linuxreviews.org/beginner/abs-guide/en/
http://tldp.org/LDP/abs/html/
http://articles.techrepublic.com.com/5100-10878_11-1052574.html
kind of odd "shell ninja" but lots of good info:
http://www.slideshare.net/brian_dailey/nyphp-march-2009-presentation
http://stat-www.berkeley.edu/classes/s243/bash.html
http://www.learnaboutlinux.net/blog/41-programming/50-bash-basics-1
http://linux.about.com/cs/glossaries/a/aglossary.htm
http://tldp.org/LDP/Linux-Dictionary/
http://www.pathname.com/fhs/
http://axiom.anu.edu.au/~okeefe/p2b
for:
From-PowerUp-To-Bash-Prompt-HOWTO
Building a Minimal Linux System from Source Code
Sid |
|
| Back to top |
|
 |  |
External

Since: Nov 02, 2008 Posts: 38
|
(Msg. 49) Posted: Fri Oct 09, 2009 8:53 am
Post subject: Re: Move from KDE4.2 to xfce or fluxbox - why not? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Fri, 9 Oct 2009, Sidney Lambe wrote:
> On alt.os.linux.slackware, Occam <occam.TakeThisOut@internode.razoron.net>
> wrote:
>
>> Just like many others, I have problems with KDE4.2 - it
>> crashes far too often.
>
> I don't use a GDE and I never have crashes. Never.
>
Then why just within the past few months did you have some outrageous
scheme for "isolating" your graphic browser because it crashed?
Michael |
|
| Back to top |
|
 |  |
External

Since: Dec 06, 2004 Posts: 75
|
(Msg. 50) Posted: Fri Oct 09, 2009 11:20 am
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: alt>os>linux>slackware (more info?)
|
|
|
On Fri, 09 Oct 2009 08:52:24 +1100, Grant wrote:
> case $opt in
> 1) startx $wmpath.blackbox;;
> 2) startx $wmpath.fluxbox;;
> 3) startx $wmpath.fvwm2;;
> 4) startx $wmpath.xfce;;
> 5) startx $wmpath.twm;;
> 6) startx $wmpath.wmaker;;
> 7) startx $wmpath.kde;;
> *) startx $wmpath.$default;;
> esac
I reached for "7" and fat-fingered "8" instead. I prefer the original
version that would then re-prompt for a proper selection.
> ... 'echo -n' is frowned upon, ...
What??? Since when?
> use printf instead (much more versatile for print formatting).
Perhaps, but not exactly portable to a "proper" Bourne shell. What
should be frowned upon is the practice of writing shell scripts assuming
Bash as the shell (ok, I did spot that at least in this case the #! line
does explicitly call for bash ...) The original script, however, would
have worked in any Bourne (or compatible) shell.
--
----------------------------------------------------------------------
Sylvain Robitaille syl.RemoveThis@encs.concordia.ca
Systems analyst / AITS Concordia University
Faculty of Engineering and Computer Science Montreal, Quebec, Canada
---------------------------------------------------------------------- |
|
| Back to top |
|
 |  |
External

Since: Nov 02, 2008 Posts: 81
|
(Msg. 51) Posted: Fri Oct 09, 2009 1:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Fri, 9 Oct 2009 15:14:01 +0000 (UTC), Sylvain Robitaille <syl.DeleteThis@alcor.concordia.ca> wrote:
>On Fri, 09 Oct 2009 08:52:24 +1100, Grant wrote:
>
>> case $opt in
>> 1) startx $wmpath.blackbox;;
>> 2) startx $wmpath.fluxbox;;
>> 3) startx $wmpath.fvwm2;;
>> 4) startx $wmpath.xfce;;
>> 5) startx $wmpath.twm;;
>> 6) startx $wmpath.wmaker;;
>> 7) startx $wmpath.kde;;
>> *) startx $wmpath.$default;;
>> esac
>
>I reached for "7" and fat-fingered "8" instead. I prefer the original
>version that would then re-prompt for a proper selection.
....
*) show_usage;;
esac
Not hard to add
>
>> ... 'echo -n' is frowned upon, ...
>
>What??? Since when?
Since I learned printf!
>
>> use printf instead (much more versatile for print formatting).
>
>Perhaps, but not exactly portable to a "proper" Bourne shell. What
>should be frowned upon is the practice of writing shell scripts assuming
>Bash as the shell (ok, I did spot that at least in this case the #! line
>does explicitly call for bash ...) The original script, however, would
>have worked in any Bourne (or compatible) shell.
But here we're about Slackware and slack's default shell is bash. Isn't
this stuff ever going to be standardised over the various shell?
Grant.
--
http://bugsplatter.id.au |
|
| Back to top |
|
 |  |
External

Since: Oct 08, 2009 Posts: 4
|
(Msg. 52) Posted: Sun Oct 11, 2009 9:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
notbob wrote:
> Like the fact Slackware doesn't even have Gnome?
>
> nb
Well, like that too.
--
Bud |
|
| Back to top |
|
 |  |
External

Since: Dec 06, 2004 Posts: 75
|
(Msg. 53) Posted: Tue Oct 13, 2009 11:20 am
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Sat, 10 Oct 2009 04:53:56 +1100, Grant wrote:
>>> ... 'echo -n' is frowned upon, ...
>>
>>What??? Since when?
>
> Since I learned printf!
I see ...
> But here we're about Slackware and slack's default shell is bash.
Um .... yeah, ok, your point ...
> Isn't this stuff ever going to be standardised over the various shell?
Sure, as soon as no one decides they can build a better wheel ...
(something about playing hockey in Hell also comes to mind, I must admit
....)
--
----------------------------------------------------------------------
Sylvain Robitaille syl DeleteThis @encs.concordia.ca
Systems analyst / AITS Concordia University
Faculty of Engineering and Computer Science Montreal, Quebec, Canada
---------------------------------------------------------------------- |
|
| Back to top |
|
 |  |
External

Since: Jun 11, 2004 Posts: 115
|
(Msg. 54) Posted: Tue Oct 13, 2009 11:20 am
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-10-13, Sylvain Robitaille <syl.DeleteThis@alcor.concordia.ca> wrote:
>
> (something about playing hockey in Hell also comes to mind, I must admit
> ...)
http://www.nhl.com/ice/recap.htm?id=2009020059
--keith
--
kkeller-usenet.DeleteThis@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information |
|
| Back to top |
|
 |  |
External

Since: Nov 19, 2008 Posts: 37
|
(Msg. 55) Posted: Tue Oct 13, 2009 1:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Tue, 13 Oct 2009 16:15:27 +0000, Sylvain Robitaille did cat :
> On Sat, 10 Oct 2009 04:53:56 +1100, Grant wrote:
>
>>>> ... 'echo -n' is frowned upon, ...
>>>
>>>What??? Since when?
>>
>> Since I learned printf!
>
> I see ...
and AAMOF using printf is usually quite clearer than to use echo
for people already exposed to [v[s]]printf in some other lingos
>> But here we're about Slackware and slack's default shell is bash.
>
> Um .... yeah, ok, your point ...
>
>> Isn't this stuff ever going to be standardised over the various shell?
>
> Sure, as soon as no one decides they can build a better wheel ...
> (something about playing hockey in Hell also comes to mind, I must admit
> ...)
well yes, I don't play hockey and Hel was one of my wives but I
guess that Dijkstra had a real idea about why not to multiply wheels
"
About the use of language: it is impossible to sharpen a pencil with a
blunt axe. It is equally vain to try to do it with ten blunt axes instead.
"
Now, I almost started IT on APL and hence according to what Dijkstra
said on APL my programming mood were at least garbled from the start  ) |
|
| Back to top |
|
 |  |
External

Since: Jul 31, 2007 Posts: 108
|
(Msg. 56) Posted: Tue Oct 13, 2009 1:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-10-13, Loki Harfagr <l0k1.RemoveThis@thedarkdesign.free.fr.INVALID> wrote:
> About the use of language: it is impossible to sharpen a pencil with a
> blunt axe. It is equally vain to try to do it with ten blunt axes instead.
Now there's logic that's hard to argue. In fact, it's hard to do
anything with it. Makes you glad he's on our side. (he is, isn't
he?) 8|
nb |
|
| Back to top |
|
 |  |
External

Since: Nov 19, 2008 Posts: 37
|
(Msg. 57) Posted: Tue Oct 13, 2009 1:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Tue, 13 Oct 2009 17:05:41 +0000, notbob did cat :
> On 2009-10-13, Loki Harfagr <l0k1.RemoveThis@thedarkdesign.free.fr.INVALID> wrote:
>
>> About the use of language: it is impossible to sharpen a pencil with a
>> blunt axe. It is equally vain to try to do it with ten blunt axes
>> instead.
>
> Now there's logic that's hard to argue.
arguing with Dijkstra was not exactly a short trip, especially on logic !-)
> In fact, it's hard to do
> anything with it. Makes you glad he's on our side. (he is, isn't he?)
well, yes, 'sort' of  [medal of the worst pun of the week?]
It is quite clear that you never met a lot of programmers, you would
be surprised to see how many of them do a lot of stuff with blunt axes
To their credit it has to be clear that most of them just use the axes
that their PHBs provided or decided to be the new trend. |
|
| Back to top |
|
 |  |
External

Since: Jul 31, 2007 Posts: 108
|
(Msg. 58) Posted: Tue Oct 13, 2009 1:20 pm
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-10-13, Loki Harfagr <l0k1 RemoveThis @thedarkdesign.free.fr.INVALID> wrote:
> It is quite clear that you never met a lot of programmers, you would
> be surprised to see how many of them do a lot of stuff with blunt axes
True.
"I don't C++ and I don't CLU and I don't hang with the guys that
do". --notbob
I took a programming course about 30 yrs ago. Not for me. Probably
why I've been trying to learn bash scripting for 10 yrs.
nb |
|
| Back to top |
|
 |  |
External

Since: Nov 22, 2008 Posts: 53
|
(Msg. 59) Posted: Wed Oct 14, 2009 7:20 am
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Responding to notbob:
> On 2009-10-13, Loki Harfagr <l0k1.TakeThisOut@thedarkdesign.free.fr.INVALID> wrote:
>
>
>> It is quite clear that you never met a lot of programmers, you would be
>> surprised to see how many of them do a lot of stuff with blunt axes
>
> True.
>
> "I don't C++ and I don't CLU and I don't hang with the guys that do".
> --notbob
>
> I took a programming course about 30 yrs ago. Not for me. Probably why
> I've been trying to learn bash scripting for 10 yrs.
>
> nb
By the time you "get" bash, you've figured out why perl was created.
--
*===( http://www.400monkeys.com/God/
*===( http://principiadiscordia.com/
*===( http://www.slackware.com/ |
|
| Back to top |
|
 |  |
External

Since: Nov 19, 2008 Posts: 37
|
(Msg. 60) Posted: Wed Oct 14, 2009 7:20 am
Post subject: Re: wm menu (was Re: [...] xfce or fluxbox - why not?) [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Wed, 14 Oct 2009 10:54:46 +0000, Mike Jones did cat :
> Responding to notbob:
>
>> On 2009-10-13, Loki Harfagr <l0k1.RemoveThis@thedarkdesign.free.fr.INVALID> wrote:
>>
>>
>>> It is quite clear that you never met a lot of programmers, you would
>>> be surprised to see how many of them do a lot of stuff with blunt axes
>>>
>>
>> True.
>>
>> "I don't C++ and I don't CLU and I don't hang with the guys that do".
>> --notbob
>>
>> I took a programming course about 30 yrs ago. Not for me. Probably
>> why I've been trying to learn bash scripting for 10 yrs.
>>
>> nb
>
>
> By the time you "get" bash, you've figured out why perl was created.
interesting, I can feel the lingo flamewaaaaar a comin' ,-)
notbob, when you'll have spent a few weeks/years/eons on Perl
you'll then know why you're back to the toolbox  |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|