trouble autobooting loongson on gdium?

2010-07-24 Thread Jay K
So, cool, I have OpenBSD 4.7 installed and booted on my Gdium laptop. Now, here are the small problem I faced and am facing. Wireless network didn't work during setup. I used wireless. The device was recognized. ifconfig let me fiddle with it. It gets a DHCP address, but that's it. Maybe my

Re: trouble autobooting loongson on gdium?

2010-07-24 Thread Jay K
wireless Does it work after the installation? The installation media is supposed I don't think so. The device is recognized. ifconfig reports stuff. I think I even got a DHCP address, but can't ping anything. I haven't setup wireless with OpenBSD in a while, so I might be doing something

Re: trouble autobooting loongson on gdium?

2010-07-25 Thread Jay K
I updated the pmon paths. It autoboots. It autoboots the kernel. But then it prompts me for two devices (swap and I guess root fs). How do I remove those prompts? same: $ dmesg | grep ral ral0 at pci0 dev 13 function 0 Ralink RT2561S rev 0x00: irq 6, address 00:0e:8e:1e:ef:d0 ral0: MAC/BBP

-static -lX11 breaks pthreads (4.6)

2010-07-26 Thread Jay K
I haven't tried 4.7 yet. OpenBSD xobsd.jkhome 4.6 obj#0 i386 $ cat 1.c #include stdio.h #include pthread.h void* thread1(void* a) { printf(%p\n, pthread_self()); return 0; } int main() { pthread_t t1; printf(%p\n, pthread_self()); pthread_create(t1, NULL, thread1, 0); sleep(100);

Re: trouble autobooting loongson on gdium?

2010-07-26 Thread Jay K
Oh, yeah, good guess. :) I do have OpenBSD on a separate USB flash drive, not in the G position. - Jay Date: Mon, 26 Jul 2010 13:30:59 + From: m...@online.fr To: jay.kr...@cornell.edu CC: misc@openbsd.org Subject: Re: trouble autobooting

get/set/make/swapcontext please?

2010-07-26 Thread Jay K
Hey. I'm sure you've heard this before, but here's another vote: Please provide get/set/make/swapcontext. (and/or kernel threads.) They are Posix-standard, but, admittedly, deprecated. And, admittedly, most applications can use pthreads instead. Longer story: Modula-3. Provides threads

Re: -static -lX11 breaks pthreads (4.6)

2010-07-26 Thread Jay K
Merging libpthread into libc is the way imho. That would make it somewhat difficult to work on a second pthreads library... Like a second C library.. You kind of want there to be only one, but if you must have more, it is possible. The benefit of having only one is a smaller system and

kill/sigsuspend vs. cc -pthread?

2010-07-27 Thread Jay K
Following 163 lines are reduced from a very portable way to implement threads in usermode, without hacking jmpbuf, using sigaltstack to set the stack pointer. On OpenBSD 4.6 x86 and powerpc it hangs if I use -pthread, but otherwise does not. The hang is in the while(..) sigsuspend(), not too

Re: kill/sigsuspend vs. cc -pthread?

2010-07-27 Thread Jay K
Thanks David, done. - Jay Date: Tue, 27 Jul 2010 09:28:10 +0200 Subject: Re: kill/sigsuspend vs. cc -pthread? From: dco...@gmail.com To: jay.kr...@cornell.edu CC: misc@openbsd.org On Tue, Jul 27, 2010 at 9:21 AM, Jay K wrote: Following 163

Java for other than x86/amd64?

2010-01-02 Thread Jay K
We use Hudson to manage builds. It uses Java. It looks like there's nothing viable here for OpenBSD other than x86 and AMD64? I already have OpenBSD/x86 working. I have Linux/ppc, maybe Linux/sparc working. There's a zero assembly project that has eased things, but the web page says it is gcc and

Re: get/set/make/swapcontext please?

2010-07-31 Thread Jay K
...@spacehopper.org CC: misc@openbsd.org Subject: Re: get/set/make/swapcontext please? Date: Sat, 31 Jul 2010 14:56:59 +0100 On 2010-07-26, Jay K jay.kr...@cornell.edu wrote: We do need to be able to suspend/resume threads and get their context while suspended. We have two ways

developing openbsd?

2010-08-08 Thread Jay K
I've looked all over www.openbsd.org. Any sort of guide/projects for new wannabe developers? (not new to programming) Just the bug list? Fix something send diffs? - Jay

Re: developing openbsd?

2010-08-08 Thread Jay K
Ok, thanks all. Later. - Jay Date: Sun, 8 Aug 2010 12:14:30 +0100 From: vex...@gmail.com To: jay.kr...@cornell.edu CC: misc@openbsd.org Subject: Re: developing openbsd? On Sun, Aug 08, 2010 at 08:23:03AM +, Jay K wrote: I've looked all over www.openbsd.org. Any sort of guide

java/amd64/4.7?

2010-10-15 Thread Jay K
There is no: ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/amd64/jre* I don't suppose I should use: ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/amd64/jre* ? I'll maybe try building from source.. - Jay

Re: java/amd64/4.7?

2010-10-15 Thread Jay K
To: jay.kr...@cornell.edu CC: misc@openbsd.org You missed important part which is http://www.openbsd.org/faq/faq13.html#javaplugin On Fri, Oct 15, 2010 at 1:14 PM, Jay K wrote: There is no: ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/amd64/jre* I don't suppose I should use: ftp

Re: java/amd64/4.7?

2010-10-21 Thread Jay K
Ah, thanks. But there is i386. And I only need jre, not jdk or plugin. I'll try from source within a few days (or maybe wait to see about 4.8). You missed important part which is http://www.openbsd.org/faq/faq13.html#javaplugin So 1.7 requires 1.6. 1.6 requires 1.5. They all require

ports/root/make install

2010-10-21 Thread Jay K
I'm building as root, but it'd probably be a nice option to automate: make ssh r...@localhost cd `pwd` make install Maybe it already is. - Jay

how to repeat messages about manual configuration

2010-10-21 Thread Jay K
You know, installing ports/packages often gives you random manual configuration advise, like: === Installing jdk-1.6.0.03p9 from /usr/ports/packages/amd64/all/ jdk-1.6.0.03p9: ok --- +jdk-1.6.0.03p9

Re: ports/root/make install

2010-10-21 Thread Jay K
@openbsd.org On Thu, Oct 21, 2010 at 12:20 PM, Jay K wrote: ssh r...@localhost cd `pwd` make install From man mk.conf: SUDO Command run by make(1) when doing certain operations requiring root privileges (e.g. the make install portion of make build). If set to /usr/bin/sudo, this allows

password-less console-only access and ssh remote access?

2010-10-21 Thread Jay K
My ideal setup would be: 1) no passwords (* in /etc/passwd or via vipw) 2) only ssh for remote access i.e. no password-based security, only something better 3) except console, where anyone should be able to login without any password (granted, I only have two users, root and jay)

Re: java/amd64/4.7?

2010-10-21 Thread Jay K
' is better) and when it asks for some file, I download it and place in /usr/distfiles and start that command again. On Thu, Oct 21, 2010 at 11:19 AM, Jay K wrote: Ah, thanks. But there is i386. And I only need jre, not jdk or plugin. I'll try from source within a few days (or maybe wait to see about

Re: how to repeat messages about manual configuration

2010-10-21 Thread Jay K
using binary packages is only recommend solution for apps. Just small of amounts must be compiled from ports like that jdk Understood and I usually do. (jdk isn't small! :)) The request was for both. This reminds me another request though. But I'll have to sit through the entire FAQ.

Re: ports/root/make install

2010-10-21 Thread Jay K
I thought it'd need me to enter it. And there isn't one. Thanks, - Jay Date: Thu, 21 Oct 2010 15:09:25 -0400 Subject: Re: ports/root/make install From: ted.unan...@gmail.com To: jay.kr...@cornell.edu CC: sisso...@gmail.com; misc@openbsd.org On Thu, Oct 21, 2010 at 1:33 PM, Jay K jay.kr

Re: how to repeat messages about manual configuration

2010-10-22 Thread Jay K
I want the messages to tell me how to get the repeat. If there any messages, I want the instructions repeated at the end as well (on how to get the messages, not the actual messages). pkg_add | tee pkg.out ?? I shouldn't have to. What if I'm developing in a split python 2.4/2.6 environment?

Re: password-less console-only access and ssh remote access?

2010-10-22 Thread Jay K
You can get almost the same thing by setting PasswordAuthentication to no in your sshd_config file, and hand out empty or ridiculously simple passwords for the console (honestly, who would forget yermomsawhore as a password?). How do I limit their use to the console? If say I ssh in as

Re: password-less console-only access and ssh remote access?

2010-10-22 Thread Jay K
; misc@openbsd.org On Fri, Oct 22, 2010 at 1:01 PM, Jay K wrote: You can get almost the same thing by setting PasswordAuthentication to no in your sshd_config file, and hand out empty or ridiculously simple passwords for the console (honestly, who would forget yermomsawhore as a password

Re: password-less console-only access and ssh remote access?

2010-10-22 Thread Jay K
; misc@openbsd.org On Fri, Oct 22, 2010 at 1:01 PM, Jay K wrote: You can get almost the same thing by setting PasswordAuthentication to no in your sshd_config file, and hand out empty or ridiculously simple passwords for the console (honestly, who would forget yermomsawhore

Re: password-less console-only access and ssh remote access?

2010-10-22 Thread Jay K
Turn off sudo and don't put users you don't want to have root in the wheel group. I find what you want to be questionable though. But can't they still run login? Why questionable? I want security and convenience. I don't consider passwords to be either. physical security + ssh is what I

Re: java/amd64/4.7?

2010-10-22 Thread Jay K
ok, 1.5 built, 1.6 built, 1.7 in progress. Thanks. 1.7 ultimately fails: /usr/ports/pobj/jdk-1.7.0.00/openjdk/hotspot/agent/src/os/bsd/StubDebuggerLoc al.c:153: error: redefinition of `throw_new_debugger_exception' /usr/ports/pobj/jdk-1.7.0.00/openjdk/hotspot/agent/src/os/bsd/StubDebuggerLoc

Re: password-less console-only access and ssh remote access?

2010-10-22 Thread Jay K
If I chroot then I can't do much at all right? Unless I replicate/link like the entire system, minus login. You sai'd that you want to limit them, not I. I just don't want them to be able to login as root. And I don't want a password for root. If they are on the console though, ok