9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Standalone *nix port of sam
@ 2015-02-05 16:22 Rob King
  2015-02-06  9:53 ` Aram Hăvărneanu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rob King @ 2015-02-05 16:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello everyone,
    I don't know how much interest there'd be, but if anyone ever needs
to run sam standalone on *nix (that is, without plan9port), there's a
standalone version available. It's based on the original port to X11
back in the 80s released by Lucent in 1989 or so.

    There aren't any dependencies other than Xlib/Xft, and it comes with
scalable font support, a much improved B shell command (handles multiple
instances of sam, and even better can be invoked on any machine involved
in a sam -r session, even the remote one), and a few other changes.

    So yeah, it's not sam on Plan 9, but I have to use Linux on my work
machines and can't install plan9port on them, so...there ya go. It
should work on other *nix systems too, but I don't have any to try it
out on. The code isn't pretty; I just hacked on it until I got it
working the way I wanted to, but it's been stable enough for me.

    The source is at http://www.deadpixi.com/an-updated-version-of-sam

    Please let me know if you have any questions.

    Rob




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

* Re: [9fans] Standalone *nix port of sam
  2015-02-05 16:22 [9fans] Standalone *nix port of sam Rob King
@ 2015-02-06  9:53 ` Aram Hăvărneanu
  2015-02-06 10:54   ` Steve Simon
  2015-02-06 17:17 ` Ryan Gonzalez
  2015-02-07  4:43 ` Peter Penzin
  2 siblings, 1 reply; 6+ messages in thread
From: Aram Hăvărneanu @ 2015-02-06  9:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks for doing this.

Btw, if you want B to work (and plumbing) on the remote machine with
plan9port, you can do something like this: http://sprunge.us/gFSF.

It starts a plumber process on the remote machine, and mounts it
locally. B will work in a regular (e.g. xterm) ssh session, but if you
use 9term you can even plumb normally.

-- 
Aram Hăvărneanu



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

* Re: [9fans] Standalone *nix port of sam
  2015-02-06  9:53 ` Aram Hăvărneanu
@ 2015-02-06 10:54   ` Steve Simon
  2015-02-06 13:58     ` Iruatã Souza
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Simon @ 2015-02-06 10:54 UTC (permalink / raw)
  To: 9fans

I haven't tried your code (sorry, I tend to use native plan9 as my GUI).

I do remember those days and there was a worthwhile patch to add a scrolling
list of files on the samfans list - I think rob was unhappy with the UI
but it was so useful that plan9's sam got the change; I'am not sure if the
X11 port ever did.

There4 was also a chording patch to make cut and paste work like acme, but my
fingers have never been agile enough to do this reliably, so its of less#
interest to me.

-Steve



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

* Re: [9fans] Standalone *nix port of sam
  2015-02-06 10:54   ` Steve Simon
@ 2015-02-06 13:58     ` Iruatã Souza
  0 siblings, 0 replies; 6+ messages in thread
From: Iruatã Souza @ 2015-02-06 13:58 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Feb 6, 2015 at 8:54 AM, Steve Simon <steve@quintile.net> wrote:
> There4 was also a chording patch to make cut and paste work like acme, but my
> fingers have never been agile enough to do this reliably, so its of less#
> interest to me.
>

9front sam does it in case it is of interest.



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

* Re: [9fans] Standalone *nix port of sam
  2015-02-05 16:22 [9fans] Standalone *nix port of sam Rob King
  2015-02-06  9:53 ` Aram Hăvărneanu
@ 2015-02-06 17:17 ` Ryan Gonzalez
  2015-02-07  4:43 ` Peter Penzin
  2 siblings, 0 replies; 6+ messages in thread
From: Ryan Gonzalez @ 2015-02-06 17:17 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]

Looks great!

However, I would advise against the CC=cc... lines in the makefiles. They
break badly when I execute the commonly-done `make CC=my_compiler`. In
particular, the Makefile in sam/sam has this:

CC=cc $(SYSFLAGS)

Which obviously breaks when I set CC to a custom compiler. Can't SYSFLAGS
be added to CFLAGS instead?

On Thu, Feb 5, 2015 at 10:22 AM, Rob King <jking@deadpixi.com> wrote:

> Hello everyone,
>     I don't know how much interest there'd be, but if anyone ever needs
> to run sam standalone on *nix (that is, without plan9port), there's a
> standalone version available. It's based on the original port to X11
> back in the 80s released by Lucent in 1989 or so.
>
>     There aren't any dependencies other than Xlib/Xft, and it comes with
> scalable font support, a much improved B shell command (handles multiple
> instances of sam, and even better can be invoked on any machine involved
> in a sam -r session, even the remote one), and a few other changes.
>
>     So yeah, it's not sam on Plan 9, but I have to use Linux on my work
> machines and can't install plan9port on them, so...there ya go. It
> should work on other *nix systems too, but I don't have any to try it
> out on. The code isn't pretty; I just hacked on it until I got it
> working the way I wanted to, but it's been stable enough for me.
>
>     The source is at http://www.deadpixi.com/an-updated-version-of-sam
>
>     Please let me know if you have any questions.
>
>     Rob
>
>
>


--
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple:
"It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was
nul-terminated."
Personal reality distortion fields are immune to contradictory evidence. -
srean
Check out my website: http://kirbyfan64.github.io/

[-- Attachment #2: Type: text/html, Size: 2620 bytes --]

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

* Re: [9fans] Standalone *nix port of sam
  2015-02-05 16:22 [9fans] Standalone *nix port of sam Rob King
  2015-02-06  9:53 ` Aram Hăvărneanu
  2015-02-06 17:17 ` Ryan Gonzalez
@ 2015-02-07  4:43 ` Peter Penzin
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Penzin @ 2015-02-07  4:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]

Works on Linux, thank you!

It does not build on FreeBSD, trying to find out why. Are you hosting this
code anywhere?

-Peter

On Thu, Feb 5, 2015 at 8:22 AM, Rob King <jking@deadpixi.com> wrote:

> Hello everyone,
>     I don't know how much interest there'd be, but if anyone ever needs
> to run sam standalone on *nix (that is, without plan9port), there's a
> standalone version available. It's based on the original port to X11
> back in the 80s released by Lucent in 1989 or so.
>
>     There aren't any dependencies other than Xlib/Xft, and it comes with
> scalable font support, a much improved B shell command (handles multiple
> instances of sam, and even better can be invoked on any machine involved
> in a sam -r session, even the remote one), and a few other changes.
>
>     So yeah, it's not sam on Plan 9, but I have to use Linux on my work
> machines and can't install plan9port on them, so...there ya go. It
> should work on other *nix systems too, but I don't have any to try it
> out on. The code isn't pretty; I just hacked on it until I got it
> working the way I wanted to, but it's been stable enough for me.
>
>     The source is at http://www.deadpixi.com/an-updated-version-of-sam
>
>     Please let me know if you have any questions.
>
>     Rob
>
>
>

[-- Attachment #2: Type: text/html, Size: 1902 bytes --]

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

end of thread, other threads:[~2015-02-07  4:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-05 16:22 [9fans] Standalone *nix port of sam Rob King
2015-02-06  9:53 ` Aram Hăvărneanu
2015-02-06 10:54   ` Steve Simon
2015-02-06 13:58     ` Iruatã Souza
2015-02-06 17:17 ` Ryan Gonzalez
2015-02-07  4:43 ` Peter Penzin

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).