Re: [9fans] macOS drawterm audio

2020-04-11 Thread clueelf
So I got this working.  My work is in a forked repo on github.  I created a new 
branch named macos-audio

https://github.com/tmendoza/drawterm-macos-audio/tree/macos-audio

As of right now, it builds on my machine just fine:

macOS Mojave
Version 10.14.6

(base) apollo:drawterm-macos-audio tmendoza$ clang -v
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0

Darwin apollo.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 
PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64

Audio playback is done using PortAudio.  Sorry, but I didn't have the desire to 
dig thru Apple's AUHAL API's.  Nope.  

To build properly, you can use Homebrew to install portaudio.  I am using 
VSCode for an IDE and it appears to have picked up libs and header
dirs.  Make.osx-cocoa was an easy update.

Note, I am by no means an expert Apple Developer, but it seems to be working 
pretty well.   Been playing WAV files all weekend.

I have also added volume control thru /dev/volume.  Any 'audio source' commands 
written to /dev/volume will modify the master volume on the OS.
Apple doesn't seem to have an API for per-application volume control, so 
whatever you write to /dev/volume (1-100) changes the entire system volume
for the machine.Also, any changes made to the volume controls using 
standard OS tools or volume buttons on your laptop will be reflected when 
reading
/dev/volume.

If anyone tries this out and has issues let me know and I will try and resolve. 
 This was a weekend hack so your mileage may vary.

I am thinking about creating an official build for macOS.  If anyone is 
interested let me know and I can make it a priority.

Tony


On 3/31/2020 at 2:34 PM, clue...@tonymendoza.us wrote:
>
>All,
>
>Wanted to reach out before I started doing any work on this, but 
>does anyone have existing code for a devaudio-macos.c for 
>drawterm? I see win32 and unix have working audio.  
>
>If anyone has something out there they have started that I can 
>use, would be greatly appreciated.   I am willing to take a stab 
>at it, but just wanted to check before I went down this rabbit 
>hole.  If not... I think I can bang it out.  Doesn't seem too 
>difficult. 
>
>I need audio!
>
>Tony
>
>
>--
>9fans: 9fans
>Permalink: 
>https://9fans.topicbox.com/groups/9fans/Tfe03295f479d4dad-
>M6ff0f0be4cf446bf5cd301fb
>Delivery options: 
>https://9fans.topicbox.com/groups/9fans/subscription

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tfe03295f479d4dad-M90c92a27b76f2c0d22056c23
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] macOS drawterm audio

2020-03-31 Thread clueelf
All,

Wanted to reach out before I started doing any work on this, but does anyone 
have existing code for a devaudio-macos.c for drawterm? I see win32 and unix 
have working audio.  

If anyone has something out there they have started that I can use, would be 
greatly appreciated.   I am willing to take a stab at it, but just wanted to 
check before I went down this rabbit hole.  If not... I think I can bang it 
out.  Doesn't seem too difficult. 

I need audio!

Tony


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tfe03295f479d4dad-M6ff0f0be4cf446bf5cd301fb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Git/fs: Possibly Usable

2019-07-21 Thread clueelf
Thanks Ori!

I pulled it down today and started using it against a few GitHub repos I have.  
For those who are thinking about using it, it only uses 'git' and 'git+ssh' 
style URLs, but they work so far without incident.  

git/clone git+ssh://g...@github.com:tmendoza/9front-user

Once I got keys generated and pushed to github.com, worked just fine.  My 
updates show up as expected.

Great job!

Tony

On 7/12/2019 at 3:22 PM, "Steve Simon"  wrote:
>
>I agree 100%, well done Ori, I will be trying this soon,
>I am in the process of changing jobs at the moment so
>I am a bit distracted but the new job will include git so I
>Will be needing it.
>
>-Steve
>
>
>> On 12 Jul 2019, at 19:27, Patrick Marchand 
> wrote:
>> 
>> Hi Ori,
>> 
>> On 07/08, Ori Bernstein wrote:
>>> On Mon, 1 Apr 2019 21:41:09 -0700
>>> o...@eigenstate.org wrote:
>>> 
 It was mentioned on this list a short while ago. Now, it's
 more or less at the point where it works for me. Expect
 many bugs and problems, and many more missing tools, but
 "the rest is just scripting".
>>> 
>>> An update: I'm now using this git implementation on a daily
>>> basis. It's hosting its own development now, and tons of
>>> bugs have been fixed.
>>> 
>> 
>> Good job ! Cant wait to get the chance to play around with it. 
>I'll
>> be installing a plan9 server at my home next month so I'll be 
>able
>> to test in detail then.
>> 
>> Have a good day




Re: [9fans] Mirroring plan9 sources

2019-03-08 Thread clueelf
Just an update, as a test, I was able to get a GCE VM running using the default 
script you sent.  Here was the output:

tmendoza@pollux:~/Downloads/plan9$ gcloud compute instances 
get-serial-port-output plan9-test --zone us-central1-c
SeaBIOS (version 1.8.2-20190122_225043-google)
Total RAM Size = 0x6cc0 = 1740 MiB
CPUs found: 1 Max CPUs supported: 1
found virtio-scsi at 0:3
virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0
virtio-scsi blksize=512 sectors=20971520 = 10240 MiB
drive 0x000f2a20: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=20971520
Booting from Hard Disk 0...
pcirouting: BIOS workaround: PCI.0.1.3 at pin 1 link 96 irq 10 -> 9

no vga; serial console only
 disk loader

cpu0:  2301MHz GenuineIntel P6 (cpuid: AX 0x306F0 DX 0x1F8BFBFF)
ELCR: 0C00
497M memory: 497M kernel data, 0M user, 18M swap
found partition #S/sd01/data 0 20,971,520
disks: sd01
trying sd01found 9pccpuf
.1178434...+2414552...+489820=4082806
entry: 0xf0100020

Plan 9
E820:  0009fc00 memory
E820: 0009fc00 000a reserved
E820: 000f 0010 reserved
E820: 0010 6cbfd000 memory
E820: 6cbfd000 6cc0 reserved
E820: fffbc000 1 reserved
cpu0:  2302MHz GenuineIntel P6 (cpuid: AX 0x306F0 DX 0x1F8BFBFF)
ELCR: 0C00
#l0: virtio: 1Gbps port 0xC040 irq 11: 42010a8a
1740M memory: 256M kernel data, 1483M user, 2108M swap
/boot/usbd: /dev/usb: no hubs
/boot/usbd: /dev/usb: no hubs
boot: can't open /srv/usb: '/srv/usb' file does not exist
time...
fossil(#S/sd01/fossil)...version...aux/randfs: '/bin/aux/randfs' does not exist
downloading git
starting buildlet script
hget: Not found on server
usage: hget [-dhv] [-o outfile] [-p body] [-x netmtpt] [-r header] url
/tmp/buildlet: exec header invalid
syncing.../srv/fscons...prompt: 
halting.../srv/fscons...
prompt: 
done halting

Specify --start=2092 in the next get-serial-port-output invocation to get only 
the new output starting from here.

Now that I know it works, I will modify the script to build the server types I 
need and post those somewhere once done.

Thanks again David!

Tony   

On 3/8/2019 at 9:16 AM, "David du Colombier" <0in...@gmail.com> wrote:
>
>> I tried both the 9legacy-gce image and the stock plan9-gce image
>
>These images are old and I haven't tried them for a while.
>You should have better luck building an image yourself using
>the following script on Linux:
>
>https://raw.githubusercontent.com/golang/build/master/env/plan9-
>386/make.bash
>
>You'll have to remove the "buildlet" part, since this script has 
>been
>made to build the Plan 9 image running the Go builders.
>
>-- 
>David du Colombier




Re: [9fans] Mirroring plan9 sources

2019-03-08 Thread clueelf
Thanks David!I will check it out.

T

On March 8, 2019 at 9:15 AM, David du Colombier<0in...@gmail.com>wrote:
> > I tried both the 9legacy-gce image and the stock plan9-gce image
> 
> These images are old and I haven't tried them for a while.
> You should have better luck building an image yourself using
> the following script on Linux:
> 
> https://raw.githubusercontent.com/golang/build/master/env/plan9-386/make.bash
> 
> You'll have to remove the "buildlet" part, since this script has been
> made to build the Plan 9 image running the Go builders.
> 
> --
> David du Colombier
> 
> 


Re: [9fans] Mirroring plan9 sources

2019-03-08 Thread clueelf
Thanks!  I will look into them.

Tony

On 3/7/2019 at 4:08 PM, "Lyndon Nerenberg"  wrote:
>
>clue...@tonymendoza.us writes:
>
>
>> or and setup a mirror, but finding servers spec'd to run plan9 in
>>  the US seems impossible.
>
>I have run 9front on VPSes at ARP Networks.  These days 9front
>should just work out of the box.  ARP's support staff have been
>very helpful tuning the underlying qemu/kvm settings for me when
>I have needed that, and they don't shy away from helping run
>"oddball" OSes like Plan 9.
>
>--lyndon




Re: [9fans] Mirroring plan9 sources

2019-03-08 Thread clueelf
I just finished walking thru David's directions in the notes I found on 9legacy

http://9legacy.org/9legacy/doc/gce/notes

Unfortunately, it appears that GCP doesn't allow non-win/linux images.  Got 
this error when trying to create an image:

$ gcloud compute images create plan9 --source-uri 
gs://superbadmofo-plan9/plan9-gce.tar.gz
ERROR: (gcloud.compute.images.create) Could not fetch resource:
 - The tar archive is not a valid image.

I tried both the 9legacy-gce image and the stock plan9-gce image

Tony

On 3/7/2019 at 4:20 PM, "Skip Tavakkolian"  
wrote:Plan 9 does run on AWS and GCP.  There are at least two existing images 
to start from. Richard Miller created an image for AWS and David du Colombier 
created one for GCP.  Check out 9legacy and this list's archive for the 
how-to's.
On Thu, Mar 7, 2019, 1:51 PM   wrote:
Any thoughts on how to mirror plan9 sources?  I would be willing to pay for and 
setup a mirror, but finding servers spec’d to run plan9 in the US seems 
impossible. 


Would setting up plan9port on a hosted Linux vm make sense as an alternative?  
Anyone doing this?


Looking for thoughts, pointers or experiences in doing this.  


If this has already been covered feel free to send a link to a doc or ml 
archive post. 


Thanks!


Tony




[9fans] Mirroring plan9 sources

2019-03-07 Thread clueelf
Any thoughts on how to mirror plan9 sources?I would be willing to pay for and 
setup a mirror, but finding servers spec’d to run plan9 in the US seems 
impossible.

Would setting up plan9port on a hosted Linux vm make sense as an 
alternative?Anyone doing this?

Looking for thoughts, pointers or experiences in doing this.

If this has already been covered feel free to send a link to a doc or ml 
archive post.

Thanks!

Tony