9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] how to make p9p/rio the default window manager? (ubuntu)
@ 2011-08-19  7:22 Skip Tavakkolian
  2011-08-19  7:46 ` dexen deVries
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Skip Tavakkolian @ 2011-08-19  7:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

anyone know the proper way of doing this so it doesn't involve a lot
of killing after every login?

-Skip



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] how to make p9p/rio the default window manager? (ubuntu)
  2011-08-19  7:22 [9fans] how to make p9p/rio the default window manager? (ubuntu) Skip Tavakkolian
@ 2011-08-19  7:46 ` dexen deVries
  2011-08-19  8:01   ` Jens Staal
  2011-08-19 15:11 ` Balwinder S Dheeman
  2011-08-19 17:21 ` Sasha and Tanya Kapshuk
  2 siblings, 1 reply; 7+ messages in thread
From: dexen deVries @ 2011-08-19  7:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Friday 19 of August 2011 09:22:05 Skip Tavakkolian wrote:
> anyone know the proper way of doing this so it doesn't involve a lot
> of killing after every login?


not sure about Ubuntu, but in Slackware there's /etc/X11/xinit/xinitrc script 
which gets executed after login and is responsible for starting up the window 
manager and aux programs. Usually that's a symlink to either xinitrc.kde or 
xinitrc.twm.

I would:

# cd /etc/X11/xinit/
# cp xinitrc.twm xinitrc.rio
# E xinitrc.rio  (or vi xinitrc.rio, if you wish)
# rm xinitrc; ln -s xinitrc.rio xinitrc



coil!dexen!/etc/X11/xinit $ diff -burN xinitrc.twm xinitrc.rio 
--- xinitrc.twm 2011-08-19 09:44:02.435802566 +0200
+++ xinitrc.rio 2011-08-19 09:44:19.441801567 +0200
@@ -26,8 +26,4 @@
 
 # start some nice programs
 
-/usr/bin/twm &
-/usr/bin/xclock -geometry 50x50-1+1 &
-/usr/bin/xterm -geometry 80x50+494+51 &
-/usr/bin/xterm -geometry 80x20+494-0 &
-exec /usr/bin/xterm -geometry 80x66+0+0 -name login
+exec $PLAN9/bin/twm &


-- 
dexen deVries

[[[↓][→]]]

For example, if the first thing in the file is:
   <?kzy irefvba="1.0" rapbqvat="ebg13"?>
an XML parser will recognize that the document is stored in the traditional 
ROT13 encoding.

(( Joe English, http://www.flightlab.com/~joe/sgml/faq-not.txt ))



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] how to make p9p/rio the default window manager? (ubuntu)
  2011-08-19  7:46 ` dexen deVries
@ 2011-08-19  8:01   ` Jens Staal
       [not found]     ` <CAHSQfyv4p8NXWGnjsnWw_5Kiwvq4oUzWLgB2A5owJAN3e_pqPQ@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Jens Staal @ 2011-08-19  8:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

You could always have a look at:

http://dl.suckless.org/9buntu/

2011/8/19 dexen deVries <dexen.devries@gmail.com>:
> On Friday 19 of August 2011 09:22:05 Skip Tavakkolian wrote:
>> anyone know the proper way of doing this so it doesn't involve a lot
>> of killing after every login?
>
>
> not sure about Ubuntu, but in Slackware there's /etc/X11/xinit/xinitrc script
> which gets executed after login and is responsible for starting up the window
> manager and aux programs. Usually that's a symlink to either xinitrc.kde or
> xinitrc.twm.
>
> I would:
>
> # cd /etc/X11/xinit/
> # cp xinitrc.twm xinitrc.rio
> # E xinitrc.rio  (or vi xinitrc.rio, if you wish)
> # rm xinitrc; ln -s xinitrc.rio xinitrc
>
>
>
> coil!dexen!/etc/X11/xinit $ diff -burN xinitrc.twm xinitrc.rio
> --- xinitrc.twm 2011-08-19 09:44:02.435802566 +0200
> +++ xinitrc.rio 2011-08-19 09:44:19.441801567 +0200
> @@ -26,8 +26,4 @@
>
>  # start some nice programs
>
> -/usr/bin/twm &
> -/usr/bin/xclock -geometry 50x50-1+1 &
> -/usr/bin/xterm -geometry 80x50+494+51 &
> -/usr/bin/xterm -geometry 80x20+494-0 &
> -exec /usr/bin/xterm -geometry 80x66+0+0 -name login
> +exec $PLAN9/bin/twm &
>
>
> --
> dexen deVries
>
> [[[↓][→]]]
>
> For example, if the first thing in the file is:
>   <?kzy irefvba="1.0" rapbqvat="ebg13"?>
> an XML parser will recognize that the document is stored in the traditional
> ROT13 encoding.
>
> (( Joe English, http://www.flightlab.com/~joe/sgml/faq-not.txt ))
>
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] how to make p9p/rio the default window manager? (ubuntu)
       [not found]       ` <CAHSQfytTBabNtJuVQpLLmoc-q6mmfHYrkvwJEFcmufNSTqPHRA@mail.gmail.com>
@ 2011-08-19 11:27         ` Salman Aljammaz
  2011-08-19 12:08           ` Sergey Kish
  0 siblings, 1 reply; 7+ messages in thread
From: Salman Aljammaz @ 2011-08-19 11:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

You could put this in your $HOME/.xinitrc file (plumber and factotum
are optional)

"""
plumber
factotum
exec rio
"""

It should run when you use 'startx'

When I last used Ubuntu however .xinitrc seemed to be omitted from
GDM. A quick google brings this up http://subforge.org/blogs/show/13



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] how to make p9p/rio the default window manager? (ubuntu)
  2011-08-19 11:27         ` Salman Aljammaz
@ 2011-08-19 12:08           ` Sergey Kish
  0 siblings, 0 replies; 7+ messages in thread
From: Sergey Kish @ 2011-08-19 12:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

It should be possible to omit GDM. Ubuntu used /etc/rc#.d/ now it's
replaced by Upstart.
In Arch it's as simple as

--- /etc/inittab.origin	2011-08-19 14:45:12.000000000 +0300
+++ /etc/inittab	2011-08-11 13:24:41.000000000 +0300
@@ -40,9 +40,10 @@
 ca::ctrlaltdel:/sbin/shutdown -t3 -r now

 # Example lines for starting a login manager
-x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/bin/xdm -nodaemon
 #x:5:respawn:/usr/sbin/gdm -nodaemon
 #x:5:respawn:/usr/bin/kdm -nodaemon
 #x:5:respawn:/usr/bin/slim >/dev/null 2>&1
+x:5:once:/bin/su sergeykish -l -c "/bin/bash --login -c startx"

On Fri, Aug 19, 2011 at 2:27 PM, Salman Aljammaz <s@aljmz.com> wrote:
> You could put this in your $HOME/.xinitrc file (plumber and factotum
> are optional)
>
> """
> plumber
> factotum
> exec rio
> """
>
> It should run when you use 'startx'
>
> When I last used Ubuntu however .xinitrc seemed to be omitted from
> GDM. A quick google brings this up http://subforge.org/blogs/show/13
>
>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] how to make p9p/rio the default window manager? (ubuntu)
  2011-08-19  7:22 [9fans] how to make p9p/rio the default window manager? (ubuntu) Skip Tavakkolian
  2011-08-19  7:46 ` dexen deVries
@ 2011-08-19 15:11 ` Balwinder S Dheeman
  2011-08-19 17:21 ` Sasha and Tanya Kapshuk
  2 siblings, 0 replies; 7+ messages in thread
From: Balwinder S Dheeman @ 2011-08-19 15:11 UTC (permalink / raw)
  To: 9fans

On 08/19/2011 12:54 PM, Skip Tavakkolian wrote:
> anyone know the proper way of doing this so it doesn't involve a lot
> of killing after every login?

Try examples available at http://werc.homelinux.net/hacks/plan9us/, and
customize the same per your needs.

Hope that helps,
--
Balwinder S "bdheeman" Dheeman
(http://werc.homelinux.net/contact/)



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9fans] how to make p9p/rio the default window manager? (ubuntu)
  2011-08-19  7:22 [9fans] how to make p9p/rio the default window manager? (ubuntu) Skip Tavakkolian
  2011-08-19  7:46 ` dexen deVries
  2011-08-19 15:11 ` Balwinder S Dheeman
@ 2011-08-19 17:21 ` Sasha and Tanya Kapshuk
  2 siblings, 0 replies; 7+ messages in thread
From: Sasha and Tanya Kapshuk @ 2011-08-19 17:21 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 08/19/2011 10:22 AM, Skip Tavakkolian wrote:
> anyone know the proper way of doing this so it doesn't involve a lot
> of killing after every login?
>
> -Skip
>
>
not sure if this would work for you in ubuntu, but it works for me in
debian squeeze using gnome2.

1. go to /usr/share/xsessions/;
2. in there you'll find files like: gnome.desktop, twm.desktop, etc;
3. create a file, e.g. rio.desktop with contents similar to those of the
other *.desktop files already there replacing the path to the desktop
manager with the path to rio (see contents of my rio.desktop for details);
[Desktop Entry]
Encoding=UTF-8
Type=XSession
Exec=/usr/local/plan9/bin/rio
TryExec=/usr/local/plan9/bin/rio
Name=rio
Comment[uk]=Tab Window Manager
4. re-login to gnome and select rio as your default desktop manager;

hope the above helps, although if you're using a different
window/desktop manager the method above may not work.

sasha kapshuk




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-19 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19  7:22 [9fans] how to make p9p/rio the default window manager? (ubuntu) Skip Tavakkolian
2011-08-19  7:46 ` dexen deVries
2011-08-19  8:01   ` Jens Staal
     [not found]     ` <CAHSQfyv4p8NXWGnjsnWw_5Kiwvq4oUzWLgB2A5owJAN3e_pqPQ@mail.gmail.com>
     [not found]       ` <CAHSQfytTBabNtJuVQpLLmoc-q6mmfHYrkvwJEFcmufNSTqPHRA@mail.gmail.com>
2011-08-19 11:27         ` Salman Aljammaz
2011-08-19 12:08           ` Sergey Kish
2011-08-19 15:11 ` Balwinder S Dheeman
2011-08-19 17:21 ` Sasha and Tanya Kapshuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).