New joyride build 1460
http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/build1460/ +fontconfig.i386 0:2.4.2-4.olpc2 -fontconfig.i386 0:2.4.2-4olpc.fc7 -olpc-library-common.noarch 0:1-12 +olpc-library-common.noarch 0:1-13 -olpc-library-core.noarch 0:1-12 +olpc-library-core.noarch 0:1-13 -sugar-evince.i386 0:2.20.0-1 +sugar-evince.i386 0:2.20.0-4.olpc2 -sugar-evince-python.i386 0:2.20.0-1 +sugar-evince-python.i386 0:2.20.0-4.olpc2 --- olpc-library-common.noarch 1-13 --- * Fixing intro to the XO, with Walter's newest intro * Rebuilt larger again; ~50M --- olpc-library-core.noarch 1-13 --- * Fixing intro to the XO, with Walter's newest intro * Rebuilt larger again; ~50M -- This email was automatically generated Aggregated logs at http://dev.laptop.org/~bert/joyride-pkgs.html ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: downloading all .po files?
Do you need it immediately? I was planning to send you a tarball of all the translations sometime tomorrow. If you need it now - let me know - and I'll send you the tarball. I'll probably try to come up with a better system soon, which lets you download the tarball without manual intervention. Thanks, Sayamindu On Dec 21, 2007 11:38 PM, Erik Blankinship [EMAIL PROTECTED] wrote: Hello Thank you for organizing all of the translations for Record. How do I download each .po file from dlo/translate? Do I have to download each one individually or is there an option to get all of Record's .po files in one bundle? Thanks Erik -- Sayamindu Dasgupta [http://sayamindu.randomink.org/ramblings] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: downloading all .po files?
Not needed immediately, just wondering if I was missing a download all widget in the interface. Thanks! Erik On 12/21/07, Sayamindu Dasgupta [EMAIL PROTECTED] wrote: Do you need it immediately? I was planning to send you a tarball of all the translations sometime tomorrow. If you need it now - let me know - and I'll send you the tarball. I'll probably try to come up with a better system soon, which lets you download the tarball without manual intervention. Thanks, Sayamindu On Dec 21, 2007 11:38 PM, Erik Blankinship [EMAIL PROTECTED] wrote: Hello Thank you for organizing all of the translations for Record. How do I download each .po file from dlo/translate? Do I have to download each one individually or is there an option to get all of Record's .po files in one bundle? Thanks Erik -- Sayamindu Dasgupta [http://sayamindu.randomink.org/ramblings] ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: sudo, not su.
I think people misunderstand the core problem: if root does not have a password, then *any activity on the system* can gain root privileges by su'ing to root. By restricting 'root login' to the olpc user via sudo, it becomes simple to restrict the activities which can gain root privileges, because our security system runs activities as their own UIDs. This is the key difference in using sudo, not whether the root account is 'well known', etc etc. --scott -- ( http://cscott.net/ ) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Updating a B4 machine for the first time
On 12/21/07, Cesare Marilungo [EMAIL PROTECTED] wrote: The developer console says: OLPC Build: None. Firmware: None. That IS strange. The process of updating is easy, though. 1) Get a USB key with 500mb of free space. 2) Get the olpc-auto.zip (it's linked on the wiki) and extract it to the USB key 3) You'll have a boot directory there now. Download the stable or unstable image (also linked in the wiki). If you want the stable right now it's version 653. You'll find a os653.img and os653.crc, get both files inside the boot directory 4) Plug the energy cord, turn off the laptop, insert USB key, turn on laptop 5) It's all automatic, but watch for warnings and that's it -Ivo P.S: I reckon the olpc-auto.zip has an older firmware image. That is not a problem, but if you'll want to use the more recent one, you have to throw it inside the boot folder AND delete the older .rom file there. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
No... reformatting to Fat32 didnt help :( On Dec 21, 2007 1:49 PM, Jeffrey Kesselman [EMAIL PROTECTED] wrote: Hmm. It is a FAT file system. But it isn't automounting :( And I can't figure out what it name would be to manually mount it... Maybe its the weird U3 Cruiser software. I'll get a second drive, they're cheap now, and reformat it and see if that helps. JK On Dec 21, 2007 1:39 PM, Ivo Emanuel Gonçalves [EMAIL PROTECTED] wrote: What kind of windows format do you mean? In my experience HAL automatically mounts FAT and FAT32 USB keys and probably big drives as well. If your drive is formatted NTFS that may be the problem, as I do not reckon the XO to ship with the NTFS write-mode driver. -Ivo -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
On Fri, 21 Dec 2007, Jeffrey Kesselman wrote: Hmm. It is a FAT file system. But it isn't automounting :( And I can't figure out what it name would be to manually mount it... Maybe its the weird U3 Cruiser software. I'll get a second drive, they're cheap now, and reformat it and see if that helps. The weird U3 Cruiser software can be disabled from a Windows machine, by the way - I just did that and used an ex-Cruiser stick to upgrade my XO. -- Asheesh. -- List at least two alternate dates. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
On Fri, Dec 21, 2007 at 02:05:29PM -0500, Jeffrey Kesselman wrote: More Diagnosis: I bought an OLPC in the buy one/give one so i just tried the USB stick on the real machine and it works fine. So it just my emulated image that is refusing to mount it for some reason :( I'd really like to keep using VMWare. On my machine its both more convenient and much faster then qemu even with the kqemu wedge. (its a 64 bit dual core, but you can't run qemu in 64 bit mode with kqemu ) Has anyoen else gotten emulation under vmware recognizing USB memory stick drives? You need to tell vmware to do this and take away the device from the underlying operating system that vmware is running on. See the vmware documentation for how to do this properly, it's not an OLPC image issue, but rather a vmware one. good luck, greg k-h ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: DCON improvements...
On Fri, 2007-12-21 at 09:04 +, David Woodhouse wrote: Thanks for the feedback. Unfortunately it didn't reach the people it needs to, because for some reason you dropped them from Cc. Please could you check what caused your mailer to misbehave, and remedy that? Btw, it also broke threading by omitting In-Reply-To: and References: headers. It'd be appreciated if you could remedy that too. -- dwmw2 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
On Dec 21, 2007 5:00 PM, Mike C. Fletcher [EMAIL PROTECTED] wrote: Jeffrey Kesselman wrote: On Dec 21, 2007 2:36 PM, Greg KH [EMAIL PROTECTED] wrote: On Fri, Dec 21, 2007 at 02:05:29PM -0500, Jeffrey Kesselman wrote: ... I'd really like to keep using VMWare. On my machine its both more convenient and much faster then qemu even with the kqemu wedge. (its a 64 bit dual core, but you can't run qemu in 64 bit mode with kqemu ) Side note: kqemu does work under 64-bit Linux (it's what I use to emulate on my AMD64 box). Do you run qemu or qemu-x86_64 ? Qemu will indeed work on a 64 bit (Win32) system with kqemu, but its not operating as a 64 bit app. qemu-x86_64, at least in the build pointed at by the OLPC wiki, is not built with kqemu support and throws an error when youy try to use the -kernel-kqemu flag http://wiki.laptop.org/go/Developers/FAQ#How_do_I_mount_a_USB_drive.3F Thanks! I'll give it a shot! JK -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Fooling with Java
Okay, I have a JDK installed and it seems to work. For grins i put netbeans on my USB stick and fired it up. It seems to be working however I get no main display. I do get pop up dialogs though. My suspicion is that Netbeans is asking the X wm for a Window and, sicne from what I cna see the window manager in the OLPC is windowless (one fullscreen root window only) it ends u pwitha null window and all the drawing goes down the bit bucket. Has anyone else played with this? If so does anyone know any magic to get it to use the root window for the app frame? JK -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: sudo, not su.
Well, i understand. :) I was very surprised to find that by default root has no password on the OLPC! This seems a mite dangerous to me. I can just imagine OLPC viri springing up, propagtating through the mesh... I'd love to have a proper sudo on the thing. It would make me feel a lot mreo comfortable. On Dec 21, 2007 1:27 PM, C. Scott Ananian [EMAIL PROTECTED] wrote: I think people misunderstand the core problem: if root does not have a password, then *any activity on the system* can gain root privileges by su'ing to root. By restricting 'root login' to the olpc user via sudo, it becomes simple to restrict the activities which can gain root privileges, because our security system runs activities as their own UIDs. This is the key difference in using sudo, not whether the root account is 'well known', etc etc. --scott -- ( http://cscott.net/ ) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: sudo, not su.
On Dec 21, 2007 1:27 PM, C. Scott Ananian [EMAIL PROTECTED] wrote: I think people misunderstand the core problem: if root does not have a password, then *any activity on the system* can gain root privileges by su'ing to root. This is not a given. Much has to be in place for this to happen. Off the top of my head... 1. the su binary must be in the namespace 2. the su binary must not be overmounted 3. the su binary must be on a suid filesystem 4. the su binary must be setuid root 5. the su binary permission must allow execution 6. /etc/pam.d/su must not have pam_wheel.so set up 7. no SE Linux restrictions block required transitions Pay attention to number 7. Look here: -bash-3.2# cat /etc/pam.d/su #%PAM-1.0 authsufficient pam_rootok.so # Uncomment the following line to implicitly trust users in the wheel group. #auth sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the wheel group. #auth requiredpam_wheel.so use_uid authinclude system-auth account sufficient pam_succeed_if.so uid = 0 use_uid quiet account include system-auth passwordinclude system-auth session include system-auth session optionalpam_xauth.so -bash-3.2# So it looks like you just uncomment line 6 in that file, add user olpc to the wheel group, and verify that nothing is copying supplementary groups to activities. (hey, I saved one byte!) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: OLPC Debian root password
From looking at the build on updates.laptop.org, it looks to me like there is no password set for root. In any case, the debian build is rather old; you will get better results by repeating the steps at: http://wiki.laptop.org/go/Installing_Debian_as_an_upgrade This will ensure you get the latest kernel, firmware, etc. --scott -- ( http://cscott.net/ ) ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
Jeffrey Kesselman wrote: No... reformatting to Fat32 didnt help :( On Dec 21, 2007 1:49 PM, Jeffrey Kesselman [EMAIL PROTECTED] wrote: Hmm. It is a FAT file system. But it isn't automounting :( And I can't figure out what it name would be to manually mount it... Maybe its the weird U3 Cruiser software. I'll get a second drive, they're cheap now, and reformat it and see if that helps. JK On Dec 21, 2007 1:39 PM, Ivo Emanuel Gonçalves [EMAIL PROTECTED] wrote: What kind of windows format do you mean? In my experience HAL automatically mounts FAT and FAT32 USB keys and probably big drives as well. If your drive is formatted NTFS that may be the problem, as I do not reckon the XO to ship with the NTFS write-mode driver. -Ivo -- ~~ Microsoft help desk says: reply hazy, ask again later. ~~ It's very rare to find a USB stick formatted with anything other than FAT32, although it does happen. I've also had Windows refuse to read USB sticks formatted FAT32 by a Linux machine. The other way almost always works -- format it FAT32 on a Windows machine and you'll be able to use it anywhere. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
New joyride build 1462
http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/build1462/ -Pippy-15.xo +Pippy-16.xo --- Pippy-16 --- * New slideshow example for datastore photos, by cjb. -- This email was automatically generated Aggregated logs at http://dev.laptop.org/~bert/joyride-pkgs.html ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
Jeffrey Kesselman wrote: Hi Guys, im trying to get started developign but ist pretty clear that my development environment wont fit on the emulation image's disk. No biggie, I figured, I'll put it on a USB memory stick. I can tell my emulator (VMWARE) to make the USb memory stick acessible to the emulated hardware no problem but I can't figure out how to get it to mount in the OLPC. Help? I'm running ship2, if thats any help. JK I've been doing a lot of VMware emulations of various OLPC images on my Linux box. I have an AMD64 running Gentoo Linux and VMware Workstation 6. This could probably be made to work on Windows but I don't have any largish Windows systems. 1. Download the image ext3 file. I have a wget script that does it. 2. You need to install qemu. It has a utility to convert a .img to a .vmdk. Here's the bash script that does it, assuming qemu is installed. #! /bin/bash -v export WHERE=http://xs-dev.laptop.org/~cscott/olpc/streams/ship.2/build653/devel _ext3 export WHAT=olpc-redhat-stream-ship.2-devel_ext3 wget ${WHERE}/${WHAT}.img.bz2 wget ${WHERE}/${WHAT}.img.bz2.md5 md5sum -c ${WHAT}.img.bz2.md5 bunzip2 ${WHAT}.img.bz2 qemu-img convert ${WHAT}.img -O vmdk ${WHAT}.vmdk 3. OK ... now you have a vmdk image. Rather than mess with a USB stick or anything like that, I just make a bigger virtual disk and copy the image over to it! Here's what you have to do: a. Create a virtual machine. Give it 256 MB and a new virtual disk. The new virtual disk has to be an IDE and *not* the default SCSI. The drivers are looking for an IDE drive. Then, *add* a hard drive and select use existing virtual disk. *That* one is the image you downloaded and converted to vmdk format. b. Edit the .vmx file from the virtual machine and add the following line at the bottom: bios.forceSetupOnce = TRUE This will make the machine come up in the emulated BIOS the first time you boot it. Go over to the boot order selection menu and make sure the CD-ROM boots before the hard drive. c. Why do we want to boot from the CD-ROM? Because we have downloaded a Fedora 8 rescue CD image and we are going to boot *that* to do the copy! So ... you've got your Fedora image .iso file ... tell VMware to use that for the CD-ROM and boot the virtual machine. d. It will come up in the menu ... go to the default rescue option. It will ask you for a keyboard and language. It will ask you if you want to configure the network. Say no. It will ask you if you want to rescue an image. You want to go to the Skip option. e. Now you're root in a RAM disk. The first thing you need to do is format the new hard drive. I usually do it manually with fdisk, but parted is also on the Fedora rescue CD if you want to use that. You want a single primary partition, partition 1, spanning the entire disk. The disk will be called /dev/sda. f. Now execute the following commands: mkfs.ext3 /dev/sda1 e2label /dev/sda1 OLPCRoot mkdir /orig mkdir /copy mount /dev/sdb1 /orig mount /dev/sda1 /copy cp -a /orig/* /copy/ g. One last step and you've got it. Type grub at the shell prompt. You'll get a grub prompt. Type root (hd0,0). It should find an ext2 filesystem. Then type setup (hd0). That puts the boot loader into the boot sector. h. Reboot. The system will come back up in the rescue CD, but you've got about 60 second before it will do anything. Power down the virtual machine. Go into the settings and remove the second hard drive (the original image). Disconnect the .iso of the Fedora rescue CD. Close the virtual machine. Make a zip archive of the whole virtual machine directory if you want to. Now you have a virtual XO with a larger hard drive. I usually make them 2 GB, but I've made some as large as the default, 8 GB. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
AFAIK there's no CDRom support in any of the builds, there not being a CDRom on the hardware. The XO has USB ports. I just tried it. Mine works. -- These are my opinions, not necessarily my employer's. I hate spam. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
Jeffrey Kesselman wrote: On Dec 21, 2007 2:36 PM, Greg KH [EMAIL PROTECTED] wrote: On Fri, Dec 21, 2007 at 02:05:29PM -0500, Jeffrey Kesselman wrote: More Diagnosis: I bought an OLPC in the buy one/give one so i just tried the USB stick on the real machine and it works fine. So it just my emulated image that is refusing to mount it for some reason :( I'd really like to keep using VMWare. On my machine its both more convenient and much faster then qemu even with the kqemu wedge. (its a 64 bit dual core, but you can't run qemu in 64 bit mode with kqemu ) Has anyoen else gotten emulation under vmware recognizing USB memory stick drives? You need to tell vmware to do this and take away the device from the underlying operating system that vmware is running on. See the vmware documentation for how to do this properly, it's not an OLPC image issue, but rather a vmware one. I've already done that Greg. (You do that with the VM-removable Devices menu. I'm somewhat of an old hand at VMWare.) The VM has the USB as a device, but the OLPC emulation is not mounting it. So it was a good guess but thats not the problem. It deosnt seem to be mounting the CD-Rom either, which suggests to me that it could be an issue with the automounter configuration in the ship2 build. Is that what everyone else is usign for development? I assume that matches whats actually on my OLPC? Hmmm ... looks like the two of us have been going down similar paths. How many other folks are out there who are building VMware XO emulations as development systems? Speaking of which, given the hacks I previously posted to get a large base hard drive, you can *install* VMware Tools, but you can't configure them. That requires perl, gcc, make and correct kernel headers and kernel build tools. I'm not sure what other dependencies there are -- I haven't crossed the kernel build barrier yet. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Mounting a USB drive (windows format)
Jeffrey Kesselman wrote: On Dec 21, 2007 5:00 PM, Mike C. Fletcher [EMAIL PROTECTED] wrote: ... Side note: kqemu does work under 64-bit Linux (it's what I use to emulate on my AMD64 box). Do you run qemu or qemu-x86_64 ? qemu-x86_64, particularly I run: qemu-system-x86_64 -kernel-kqemu -m 1024 -hda $1 -net user -net nic,model=rtl8139 -soundhw es1370 as a script. Qemu will indeed work on a 64 bit (Win32) system with kqemu, but its not operating as a 64 bit app. qemu-x86_64, at least in the build pointed at by the OLPC wiki, is not built with kqemu support and throws an error when youy try to use the -kernel-kqemu flag Ah, I'm on Gentoo, so I *always* use a custom build of *everything*, my version does support -kernel-kqemu. http://wiki.laptop.org/go/Developers/FAQ#How_do_I_mount_a_USB_drive.3F Thanks! I'll give it a shot! Good to hear it worked for you. If you can send me the upgraded v6 VMX I'll try to produce both a 5.x and a 6.x vmx file from the image conversions so that others don't need to do that work. Have fun, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: sudo, not su.
It doesn't seem like it would be difficult to write an activity that opens a pty (like Terminal does), issues an su, and thus gives itself elevated privileges. That's why the rest of the activity isolation security model is important. -- James Cameronmailto:[EMAIL PROTECTED] http://quozl.netrek.org/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: sudo, not su.
James Cameron writes: It doesn't seem like it would be difficult to write an activity that opens a pty (like Terminal does), issues an su, and thus gives itself elevated privileges. That's why the rest of the activity isolation security model is important. Uncomment line 6 of /etc/pam.d/su and try it. Place user olpc into the wheel group as desired, or just log in from the Linux console. No problem. The evil activity won't be able to do this. That said, SE Linux would be a damn good idea. This kind of problem gets stopped cold before it even gets started. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
New joyride build 1463
http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/build1463/ -TamTamJam-45.xo +TamTamJam-46.xo --- TamTamJam-46 --- * Fixed keep error problem (Lync) -- This email was automatically generated Aggregated logs at http://dev.laptop.org/~bert/joyride-pkgs.html ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel