Home
Forum
Help
Login
Register
XO Laptop Shop
Forum Staff
OLPC News
OLPC News Forum
»
XO Laptop
»
XO Hacks
»
Other Operating Systems
»
Installing Ubuntu using compressed files
Welcome,
Guest
. Please
login
or
register
.
Get your own OLPC -
Buy an XO laptop on eBay
!
Pages:
1
...
12
13
14
[
15
]
16
17
18
...
24
« previous
next »
Print
Author
Topic: Installing Ubuntu using compressed files (Read 267497 times)
#210
Re: Installing Ubuntu using compressed files
rochie
New
Posts: 2
March 05, 2008, 10:26:14 AM
Is there any way to re-compress the files (that I've already customized) so that I can "move" the system from a 1GB to an 8GB SD card? Thanks for all the help!
Logged
#211
Re: Installing Ubuntu using compressed files
moocapiean
Master Contributor
Posts: 330
March 05, 2008, 06:13:31 PM
I can't remember the command I used, but I think this will work. Open a terminal and type:
cd /
sudo tar --preserve -cjf archive.tar.bz2 /*
That'll create the file archive.tar.bz2 in the / (root) directory. You can then untar it by doing the following in the top-most location of the SD card (probably /media/<sd_card_name>):
tar -xjf archive.tar.bz2
Logged
#212
Re: Installing Ubuntu using compressed files
jbeard
Commenter
Posts: 17
March 07, 2008, 01:14:02 PM
Has anyone had any success enabling the gamepad or xrotate buttons? I tried running xev to see what it would give me when I tried using these buttons. The rocker pad and the xrotate button did not get captured at all. I got the following output from the gamepad buttons (circle, check-mark, cross and square, in sets of two for keydown and keyup:
Code:
KeyPress event, serial 28, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333349473, (83,112), root:(594,480),
state 0x0, keycode 229 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333349473, (83,112), root:(594,480),
state 0x0, keycode 229 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 31, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333350116, (83,112), root:(594,480),
state 0x0, keycode 232 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 31, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333350116, (83,112), root:(594,480),
state 0x0, keycode 232 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 31, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333350727, (83,112), root:(594,480),
state 0x0, keycode 230 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 31, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333350727, (83,112), root:(594,480),
state 0x0, keycode 230 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 31, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333351376, (83,112), root:(594,480),
state 0x0, keycode 231 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 31, synthetic NO, window 0x2400001,
root 0x3f, subw 0x0, time 2333351376, (83,112), root:(594,480),
state 0x0, keycode 231 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
I'd like to hook this into xbindkeys, but I don't know how. I do know that the instructions on the wiki for getting xrotate to work in xfce do not work:
http://wiki.laptop.org/go/Xfce#Rotation
. It causes xbindkeys to not accept any keyboard input. On the other hand, It was intended for the regular xo OS. To me, this indicates a possible driver issue.
I look forward to hearing what people think. Thanks.
Jake
«
Last Edit: March 07, 2008, 01:15:34 PM by jbeard
»
Logged
#213
Re: Installing Ubuntu using compressed files
cyli
Commenter
Posts: 7
March 07, 2008, 01:17:57 PM
Quote from: jbeard on March 07, 2008, 01:14:02 PM
Has anyone had any success enabling the gamepad or xrotate buttons? I tried running xev to see what it would give me when I tried using these buttons. The rocker pad and the xrotate button did not get captured at all.
...
http://olpcnews.com/forum/index.php?topic=2254.0
Logged
#214
Re: Installing Ubuntu using compressed files
GeroZ
Commenter
Posts: 5
Propably one of the very few XOs in Germany.
March 09, 2008, 06:57:16 AM
Hi, I'm sorry in advance - I have to do a bit of cross-posting here:
In another thread I've concluded my (so far failed
) experiments about trying to force Ubuntu to boot from
mmcblk0p2
instead of
mmcblk0p1
(together with the reason someone would actually want to do so
) and my (IMHO promising) approach to patch the
initrd
which forces the boot process to use
mmcblk0p1
.
Please have a look at this:
#25 Re: Multiboot olpc.fth + fstab files
Does this make some sense to anyone who can think of a way to make this actually work?
Logged
#215
Re: Installing Ubuntu using compressed files
koolkat
Contributor
Posts: 42
Chemist at Leeds Uni
March 11, 2008, 04:36:42 PM
I think I have a new issue:
I am using a san-disk 2 gd SDHC card and trying to get Moo's version of Xubuntu working.
After many attempts I FINALLY got it booting off of the SDHC card, but instead of going into ubuntu it is giving the following error and dropping me to a forth prompt
Boot device: /sd/disk:\boot\olpc.fth
<buffer@800000>:33: boot-filt
Type 'help for more information
I am going to check the SD cards olpc.fth for typo's but I am running on Q2D07 and have gotten far enough to try and boot from the forth script on the sd card. THe one on the nand isnt modified. I think the bootorder is USB SD Nand, or at least I hope it is otherwise I've hosed everything and need to do an activated "upgrade"
The only problems I had with the instructions were not knowing when to put in mmcblk0 or mmcblk0p1 when translating from the USB steps to the SD steps, and was worried that by mounting mmcblk0 instead of mmcblk0p1 would have hosed the card. I think it is working though, almost there.
-Koolkat
ANyone know enough forth to write a meny driven bootloaded without having to resort to hitting buttons say have it load and 1 to boot USB 2 to boot SD 3 to boot nand and 4 to boot old nand files?
Logged
#216
Re: Installing Ubuntu using compressed files
moocapiean
Master Contributor
Posts: 330
March 12, 2008, 08:37:35 AM
Quote from: koolkat on March 11, 2008, 04:36:42 PM
The only problems I had with the instructions were not knowing when to put in mmcblk0 or mmcblk0p1 when translating from the USB steps to the SD steps, and was worried that by mounting mmcblk0 instead of mmcblk0p1 would have hosed the card. I think it is working though, almost there.
I'll try to update the instructions with hints for this later this week.
Quote
ANyone know enough forth to write a meny driven bootloaded without having to resort to hitting buttons say have it load and 1 to boot USB 2 to boot SD 3 to boot nand and 4 to boot old nand files?
I don't, but there's another thread that has (I think) what you're looking for:
Multiboot olpc.fth + fstab files
. I think the thread also tackles a version of olpc.fth that'll work for SD cards.
Logged
#217
Re: Installing Ubuntu using compressed files
koolkat
Contributor
Posts: 42
Chemist at Leeds Uni
March 12, 2008, 12:04:29 PM
Yeah so I figured it out and all is fine.
My error was due to a typo I had boot-filt instead of boot-file in olpc.fth silly small keyboard
I was wondering if it was possible to write a boot menu so instead of having to press down on the rocker it would ask which place to boot from
say something like :
\
\boot menu outputs
\
" press 1 to boot Xubuntu from SD" .
" Press 2 to boot sugar from internal nand" .
" Press 3 to boot alternante image from nand" .
???Some code to get info from the user of a 1 2 or 3 and add it to the stack?
?
if dup 1 =
{code to boot from sd}
else if dup 2 =
{code for normal boot}
else
{code for alt boot}
then
then
unfreeze
boot
\ end of script
I THINK that would work, except I have no idea how to wait for an input from the user.
Otherwise all is running fine so far I have a battery monitor as well and the internet is working fine.
Thanks for all the writeups Moo It was actually fairly easy to follow once I understood that mmcblko is the card and mmcblk0p1 is partition 1 on the card. So a simple fix would be to have at the beginning:
"To use these instruction for a SD card substitute /dev/mmcblko for /dev/sda and /dev/mmcblk0p1 for /dev/sda1"
-Koolkat
Logged
#218
Re: Installing Ubuntu using compressed files
moocapiean
Master Contributor
Posts: 330
March 14, 2008, 05:52:22 AM
Quote from: koolkat on March 12, 2008, 12:04:29 PM
Thanks for all the writeups Moo It was actually fairly easy to follow once I understood that mmcblko is the card and mmcblk0p1 is partition 1 on the card. So a simple fix would be to have at the beginning:
"To use these instruction for a SD card substitute /dev/mmcblko for /dev/sda and /dev/mmcblk0p1 for /dev/sda1"
Done. Thanks for the suggestion.
Logged
#219
Re: Installing Ubuntu using compressed files
moocapiean
Master Contributor
Posts: 330
March 19, 2008, 10:48:37 AM
These instructions have finally been posted on the OLPC wiki:
http://wiki.laptop.org/go/Installing_Ubuntu_using_Compressed_Files
Logged
#220
Re: Installing Ubuntu using compressed files
vblackaby
Commenter
Posts: 10
March 24, 2008, 01:44:52 PM
The instructions worked like a charm for me. However, earlier, while I was googling, I saw that you uninstalled the Kernel-Headers but said you left them on the disk. I didn't see them on the disk after a quick search... I want to add a modem & it is asking for the Kernel-Headers.
I was going to attempt to make the package, but THAT generated errors as well (something about me not being in the top level, even though i was inside the OLPC kernel... (at least i think i was)
Can you give me any tips as to where in compressed files it is hidden?
Thanks
Victoria
Logged
#221
Re: Installing Ubuntu using compressed files
moocapiean
Master Contributor
Posts: 330
March 24, 2008, 02:57:24 PM
The kernel headers I was talking about (if I'm remembering correctly) were the Ubuntu kernel headers, not the OLPC kernel headers. So, I don't think they'll do you much good.
I don't think I've ever compiled the OLPC kernel, but if it's anything like the regular Linux kernels, you just need to be in the top level of the source code when you run
make
. Hmm, you say you're already there...ok, well, in the top level of my kernel's source code directory, I have:
Code:
arch Documentation ipc Makefile README System.map
block drivers Kbuild mm REPORTING-BUGS usr
COPYING fs kernel Module.symvers scripts vmlinux
CREDITS include lib net security
crypto init MAINTAINERS patches.txt sound
Do you see stuff like that if you run
ls
? You may not see all of that and other things may be there too, but it should look similar.
If you're still having trouble, I can try downloading the kernel sources and see how it goes for me.
Oh, how were you trying to add the modem? Were you trying to install a driver or some other kind of software?
Logged
#222
Re: Installing Ubuntu using compressed files
vblackaby
Commenter
Posts: 10
March 24, 2008, 06:28:43 PM
I'm pretty new to this...
I am trying to install a zoom usb modem. when running the install from either the deb or make, i get
Code:
When reporting a problem for the first time, please send
us the file generated by "dgcconfig --dumpdiag".
No pre-built modules for: Ubuntu-7.10 linux-2.6.22-20071121.7.olpc.af3dd731d18bc39 i586
Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)
ERROR: /lib/modules/2.6.22-20071121.7.olpc.af3dd731d18bc39/build points to a missing directory
lrwxrwxrwx 1 root root 68 Mar 22 21:57 /lib/modules/2.6.22-20071121.7.olpc.af3dd731d18bc39/build -> ../../../usr/src/kernels/2.6.22-20071121.7.olpc.af3dd731d18bc39-i586
Please install the 'linux-headers-2.6.22-20071121.7.olpc.af3dd731d18bc39' package. You can install
it with the 'apt-get install linux-headers-2.6.22-20071121.7.olpc.af3dd731d18bc39' command.
so i assume it is looking for this kernel's headers. i installed the generic ones and no dice..
i was following the directions on a Ubuntu site... i don't have the link on this machine... but i was using...
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
on both the root directory and inside /lib/modules/2.6.22-20071121.7.olpc.af3dd731d18bc39/kernel
there was nothing in my /usr/src (after installing generic headers they're there)
---edited---
ok - it was late and i was being an idiot. I found the kernel directory... but the fakeroot command still isn't working. I am going to try to use the diskimage technique... i need to get something up asap - then i will come back and figure this out.
«
Last Edit: March 26, 2008, 09:50:42 AM by vblackaby
»
Logged
#223
Re: Installing Ubuntu using compressed files
Brian Basgen
Senior Contributor
Posts: 121
March 26, 2008, 05:14:15 PM
Strange. I'm getting an error. After I've downloaded the compressed file, and try to decompress in /mnt; I get a bunch of errors. When I try to ls into OLPCRoot, I get a "Input/output error".
Perhaps something went wrong with the format of my disk.... hmm...
Logged
#224
Re: Installing Ubuntu using compressed files
moocapiean
Master Contributor
Posts: 330
March 26, 2008, 07:39:29 PM
vblackaby:
The fakeroot command may not be working because it isn't installed. Try running
sudo apt-get install fakeroot
in a terminal to get the program, then running the command you were trying. Good luck!
Logged
Pages:
1
...
12
13
14
[
15
]
16
17
18
...
24
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
OLPC G1G1 Information
-----------------------------
=> G1G1 Introduction
===> First Impressions
===> G1G1 Europe
===> XO Shipping - USA
===> XO Shipping - Canada
===> XO Shipping - Problems
=> XO User Groups
===> OLPC Canada
===> OLPC Learning Club DC
===> XO Europe User Group
===> Assistive Technology Group
=> OLPC Publicity
-----------------------------
XO Laptop
-----------------------------
=> XO Laptop Help
===> User Guide
===> Internet & Mesh Networking
===> Sugar & Linux
===> Battery & Power
===> T-Mobile HotSpot
=> XO 1.5 Laptop
=> XO Activities
===> Activities Development
===> Games!
===> eBooks
===> Music & Radio
===> Jabber & Chat
=> XO Hacks
===> Hardware Modifications
===> Other Operating Systems
=> XO Accessories
===> USB Memory Sticks & SD Cards
===> USB Adapters & Attachments
=> XO Problemo
===> Hardware Trouble
===> Keyboard
=> XO MISC
-----------------------------
OLPC Outreach
-----------------------------
=> Press & Blogs
=> Your Opinion
=> Promoting OLPC to Schools
-----------------------------
Other Devices
-----------------------------
=> Asus Eee PC
=> Classmate and 2go PC
=> Other 4P Computers
Stats
Members
Total Members: 2406
Latest:
sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 36
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 13
Total: 13
Loading...