Re: [9fans] Plan9 as an everyday OS
Thanks all, the rudes and the polites.I'll try your suggestions. L. On Sat, Jul 11, 2009 at 7:26 AM, Uriel urie...@gmail.com wrote: Google - list of plan 9 applications - click I'm Feeling Lucky The result you will get from this is most likely to be extremely outdated and incomplete. Just saying... uriel 2009/7/10 Andrés Domínguez andres...@gmail.com: 2009/7/10 Lorenzo Bolla lbo...@gmail.com: Hi all, I've just installed (with few difficulties, I must admit) a fresh Plan9 on my Dell Inspiron laptop. I played with it and I'd really like to study it and get used to it. Ideally, I would like to make it my everyday OS, to do all the nice stuff you can do with a computer (a part from work and study), like browsing the web, watching movies and so on... Is anyone using it for such things? Is there, for example, a decent browser for Plan9 (I haven't found any)? 8c Or a music/movie player? 8c But the cold startup is a little bit slower than wmp or ie, have to do some coding first. If you are looking for something done: Google - list of plan 9 applications - click I'm Feeling Lucky Probably you will be more happy with Linux, running Plan9 on virtual machine. Andrés
Re: [9fans] Plan9 as an everyday OS
lies! we had ac97 working on the t23 at IWP-Bondi! -sqweek 2009/7/11 cinap_len...@gmx.de: usb audio... havnt tried it with ac97 on my t23 yet. -- cinap -- Forwarded message -- From: j...@csplan9.rit.edu To: 9f...@9fans.net Date: Fri, 10 Jul 2009 18:01:35 -0400 Subject: Re: [9fans] Plan9 as an everyday OS had no success with mplayer yet because of lacking mmx support. got ffmpeg to compile (without mmx/sse) and play on linuxemu, but it was too slow on my 1 ghz via machine. -- cinap Whare are you using for an audio device on Plan 9? The AC97 driver? Or did you buy a USB audio thing? John
Re: [9fans] Plan9 as an everyday OS
With which ac97 driver? uriel On Sat, Jul 11, 2009 at 12:13 PM, sqweeksqw...@gmail.com wrote: lies! we had ac97 working on the t23 at IWP-Bondi! -sqweek 2009/7/11 cinap_len...@gmx.de: usb audio... havnt tried it with ac97 on my t23 yet. -- cinap -- Forwarded message -- From: j...@csplan9.rit.edu To: 9f...@9fans.net Date: Fri, 10 Jul 2009 18:01:35 -0400 Subject: Re: [9fans] Plan9 as an everyday OS had no success with mplayer yet because of lacking mmx support. got ffmpeg to compile (without mmx/sse) and play on linuxemu, but it was too slow on my 1 ghz via machine. -- cinap Whare are you using for an audio device on Plan 9? The AC97 driver? Or did you buy a USB audio thing? John
[9fans] v9fs question
The documentation in the linux kernel says you merely mount -t 9p ipaddress /mntpoint this fails on my system since /sbin/mount tries to execute /sbin/mount.9p and fails. Am I supposed to have an /sbin/mount.9p? (Anyone know which ubunutu package should have this? If not, where I might find sources? Ironic since Ubuntu came with the 9p kernel module) Or should I be using a different mount program for the purpose? The linux Documentation/filesystems/9p.txt should probably be updated with more details, either way. Tim Newsham http://www.thenewsh.com/~newsham/
Re: [9fans] v9fs question
On Sat, 11 Jul 2009, Eric Van Hensbergen wrote: Hmmm, that's really new behavior-- never used to fail without mount helper. Can you give the exact error message? # strace -o trace.txt mount -t 9p thenewsh.com /mnt mount: Protocol not supported Trace.txt is attached with full details. I've tried several variants, such as thenewsh.com:/path with similar results. On Jul 11, 2009, at 1:46 PM, Tim Newsham news...@lava.net wrote: The documentation in the linux kernel says you merely mount -t 9p ipaddress /mntpoint this fails on my system since /sbin/mount tries to execute /sbin/mount.9p and fails. Am I supposed to have an /sbin/mount.9p? (Anyone know which ubunutu package should have this? If not, where I might find sources? Ironic since Ubuntu came with the 9p kernel module) Or should I be using a different mount program for the purpose? The linux Documentation/filesystems/9p.txt should probably be updated with more details, either way. Tim Newsham http://www.thenewsh.com/~newsham/ Tim Newsham http://www.thenewsh.com/~newsham/execve(/bin/mount, [mount, -t, 9p, thenewsh.com, /mnt], [/* 39 vars */]) = 0 brk(0) = 0x805e000 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7faf000 access(/etc/ld.so.preload, R_OK) = -1 ENOENT (No such file or directory) open(/etc/ld.so.cache, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=53546, ...}) = 0 mmap2(NULL, 53546, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa1000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/libselinux.so.1, O_RDONLY) = 3 read(3, \177elf\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\...@\0..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=95948, ...}) = 0 mmap2(NULL, 101180, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f88000 mmap2(0xb7f9f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xb7f9f000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/tls/i686/cmov/libc.so.6, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1364388, ...}) = 0 mmap2(NULL, 1369712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e39000 mmap2(0xb7f82000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x149) = 0xb7f82000 mmap2(0xb7f85000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f85000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/tls/i686/cmov/libdl.so.2, O_RDONLY) = 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\n\0\000..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9684, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e38000 mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e34000 mmap2(0xb7e36000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7e36000 close(3)= 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e33000 set_thread_area({entry_number:-1 - 6, base_addr:0xb7e33720, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7f82000, 4096, PROT_READ) = 0 munmap(0xb7fa1000, 53546) = 0 brk(0) = 0x805e000 brk(0x807f000) = 0x807f000 open(/etc/selinux/config, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) statfs64(/selinux, 84, 0xbfea3dfc)= -1 ENOENT (No such file or directory) open(/proc/mounts, O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fae000 read(3, rootfs / rootfs rw 0 0\nnone /sys..., 1024) = 1024 read(3, p_id=1000 0 0\n, 1024)= 14 read(3, , 1024) = 0 close(3)= 0 munmap(0xb7fae000, 4096)= 0 open(/usr/lib/locale/locale-archive, O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open(/usr/share/locale/locale.alias, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fae000 read(3, # Locale name alias data base.\n#..., 4096) = 2586 read(3, , 4096) = 0 close(3)= 0 munmap(0xb7fae000, 4096)= 0 open(/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION, O_RDONLY) = -1 ENOENT (No such file or directory)
Re: [9fans] v9fs question
Try an ip address instead of the DNS name. For the DNS name you'll need a helper like 9mount. Sent from my iPhone On Jul 11, 2009, at 2:03 PM, Tim Newsham news...@lava.net wrote: On Sat, 11 Jul 2009, Eric Van Hensbergen wrote: Hmmm, that's really new behavior-- never used to fail without mount helper. Can you give the exact error message? # strace -o trace.txt mount -t 9p thenewsh.com /mnt mount: Protocol not supported Trace.txt is attached with full details. I've tried several variants, such as thenewsh.com:/path with similar results. On Jul 11, 2009, at 1:46 PM, Tim Newsham news...@lava.net wrote: The documentation in the linux kernel says you merely mount -t 9p ipaddress /mntpoint this fails on my system since /sbin/mount tries to execute /sbin/ mount.9p and fails. Am I supposed to have an /sbin/mount.9p? (Anyone know which ubunutu package should have this? If not, where I might find sources? Ironic since Ubuntu came with the 9p kernel module) Or should I be using a different mount program for the purpose? The linux Documentation/filesystems/9p.txt should probably be updated with more details, either way. Tim Newsham http://www.thenewsh.com/~newsham/ Tim Newsham http://www.thenewsh.com/~newsham/ trace.txt
Re: [9fans] v9fs question
On Sat, Jul 11, 2009 at 3:03 PM, Tim Newshamnews...@lava.net wrote: On Sat, 11 Jul 2009, Eric Van Hensbergen wrote: Hmmm, that's really new behavior-- never used to fail without mount helper. Can you give the exact error message? # strace -o trace.txt mount -t 9p thenewsh.com /mnt Linux doesn't do resolution for you, you have to give raw ip addresses. Maybe not the problem, but worth pointing out. mount: Protocol not supported Trace.txt is attached with full details. I've tried several variants, such as thenewsh.com:/path with similar results. On Jul 11, 2009, at 1:46 PM, Tim Newsham news...@lava.net wrote: The documentation in the linux kernel says you merely mount -t 9p ipaddress /mntpoint this fails on my system since /sbin/mount tries to execute /sbin/mount.9p and fails. Am I supposed to have an /sbin/mount.9p? (Anyone know which ubunutu package should have this? If not, where I might find sources? Ironic since Ubuntu came with the 9p kernel module) Or should I be using a different mount program for the purpose? The linux Documentation/filesystems/9p.txt should probably be updated with more details, either way. Tim Newsham http://www.thenewsh.com/~newsham/ Tim Newsham http://www.thenewsh.com/~newsham/
Re: [9fans] mozilla on linuxemu3 gives ulimit not implemented
no, the syscall just returns -EIMPL because its not implemented... you can run linuxemu with -d option wich will log all syscalls and other debugging to strerr, or when something crashes attach acid to the broken process with the linuxemu.acid file and run utrace(Current()) and look if we hit unimplemented syscalls. but sys_ulimit() should be pretty harmless. you can implement that syscall if you want. i should make a small tutorial about how to add syscalls... 1. find out what the parameters of the syscall is (linuxassembly.org, lxr...) 2. add your syscall function prototype in fns.h like: int sys_mysyscall(int arg1, void *arg2); if structs are passed use void * and declare the struct near your implementation and cast the void* in it. for some complicated syscalls you can access the registers where arguments are passed in linux with current-ureg-reg but it should be avoided. the automatic convertion of syscalls to plan9 function passing allows the later implementation of for example a bsd syscall emulator. (bsd uses the traditional stack based argument passing) 3. add your syscalll to the linuxcalltab file like this: 1232mysyscall sys_mysyscall the first column is the syscall number, the 2nd is the number of arguments for the syscall function. the comes just a name and the last one is the function that will be called. 4. implement your function somewhere -- cinap ---BeginMessage--- i don't have the exact message; the machine is remote and currently powered off. is it my setup? ---End Message---
Re: [9fans] Plan9 as an everyday OS
i havnt tried the *linuxemu/ffplay* stuff with ac97 on my t23. -- cinap ---BeginMessage--- lies! we had ac97 working on the t23 at IWP-Bondi! -sqweek 2009/7/11 cinap_len...@gmx.de: usb audio... havnt tried it with ac97 on my t23 yet. -- cinap -- Forwarded message -- From: j...@csplan9.rit.edu To: 9f...@9fans.net Date: Fri, 10 Jul 2009 18:01:35 -0400 Subject: Re: [9fans] Plan9 as an everyday OS had no success with mplayer yet because of lacking mmx support. got ffmpeg to compile (without mmx/sse) and play on linuxemu, but it was too slow on my 1 ghz via machine. -- cinap Whare are you using for an audio device on Plan 9? The AC97 driver? Or did you buy a USB audio thing? John ---End Message---
Re: [9fans] mozilla on linuxemu3 gives ulimit not implemented
because its not implemented i was under the impression that mozilla ran under linuxemu. is there another browser that wont need modifications?
Re: [9fans] mozilla on linuxemu3 gives ulimit not implemented
oh, it does work here... i belived you where just complaining about the ulimit warning... http://9hal.ath.cx/usr/cinap_lenrek/linuxemu-moz.png -- cinap ---BeginMessage--- because its not implemented i was under the impression that mozilla ran under linuxemu. is there another browser that wont need modifications? ---End Message---
Re: [9fans] mozilla on linuxemu3 gives ulimit not implemented
I've also run opera 9 successfully in linuxemu On Sat, Jul 11, 2009 at 7:50 PM, cinap_len...@gmx.de wrote: oh, it does work here... i belived you where just complaining about the ulimit warning... http://9hal.ath.cx/usr/cinap_lenrek/linuxemu-moz.png -- cinap -- Forwarded message -- From: Skip Tavakkolian 9...@9netics.com To: 9f...@9fans.net Date: Sat, 11 Jul 2009 14:42:31 -0700 Subject: Re: [9fans] mozilla on linuxemu3 gives ulimit not implemented because its not implemented i was under the impression that mozilla ran under linuxemu. is there another browser that wont need modifications? -- Federico G. Benavento
Re: [9fans] v9fs question
Using sqweek's 9mount is strongly recommended if you are using v9fs, not only it deals with the silly and deficient linux mount command (which somebody should submit a patch for some day I guess if we want to be taken seriously as an nfs replacement), but it also hides the ever changing v9fs mount flags under a more consistent and clear interface. The ability to mount and unmount 9p file servers without being root is just a great extra. http://sqweek.dnsdojo.org/code/9mount/ uriel P.S.: Oh, and I think debian even packages 9mount! On Sat, Jul 11, 2009 at 10:03 PM, J.R. Maurojrm8...@gmail.com wrote: On Sat, Jul 11, 2009 at 3:03 PM, Tim Newshamnews...@lava.net wrote: On Sat, 11 Jul 2009, Eric Van Hensbergen wrote: Hmmm, that's really new behavior-- never used to fail without mount helper. Can you give the exact error message? # strace -o trace.txt mount -t 9p thenewsh.com /mnt Linux doesn't do resolution for you, you have to give raw ip addresses. Maybe not the problem, but worth pointing out. mount: Protocol not supported Trace.txt is attached with full details. I've tried several variants, such as thenewsh.com:/path with similar results. On Jul 11, 2009, at 1:46 PM, Tim Newsham news...@lava.net wrote: The documentation in the linux kernel says you merely mount -t 9p ipaddress /mntpoint this fails on my system since /sbin/mount tries to execute /sbin/mount.9p and fails. Am I supposed to have an /sbin/mount.9p? (Anyone know which ubunutu package should have this? If not, where I might find sources? Ironic since Ubuntu came with the 9p kernel module) Or should I be using a different mount program for the purpose? The linux Documentation/filesystems/9p.txt should probably be updated with more details, either way. Tim Newsham http://www.thenewsh.com/~newsham/ Tim Newsham http://www.thenewsh.com/~newsham/
[9fans] C compiler question
Hi, all. Yesterday I observed different sizeof() of a union in a library function and in the main program. The reason seems to be a forgotten #include in a library source. union U { struct { fields of defined types// sizeof = 100 struct NeverDefined nf; // Unknown, definition not #included } S1 struct { fields of defined types// sizeof = 20 } S2 }; 8c silently accept the above definition and sizeof(U) is 100. ??? The sources which include the definition of NeverDefined are regularly compiled too and sizeof(U) = 100 + sizeof(NeverDefined). This happens only if the undefined field is the last of the structure. If it is followed by other (defined or not defined) field(s), the compiler correctly detects the error. Is this behaviour correct ? Thanks in advance. a.verardo
Re: [9fans] 9grid.net down?
It's in mason's contrib directory. grep -i ac97 /n/sources/lsr On Sat, Jul 11, 2009 at 10:16 PM, lu...@proxima.alt.za wrote: It seems to drop HTTP links as soon as they are established. Is there another location for aki's AC'97 support? ++L -- I've tried programming Ruby on Rails, following TechCrunch in my RSS reader, and drinking absinthe. It doesn't work. I'm going back to C, Hunter S. Thompson, and cheap whiskey. -- Ted Dziuba