Home
Forum
Help
Login
Register
XO Laptop Shop
Forum Staff
OLPC News
OLPC News Forum
»
XO Laptop
»
XO Hacks
»
Other Operating Systems
»
Beyond the Ubuntu Installation
Welcome,
Guest
. Please
login
or
register
.
Get your own OLPC -
Buy an XO laptop on eBay
!
Pages:
1
...
26
27
28
[
29
]
30
31
32
...
37
« previous
next »
Print
Author
Topic: Beyond the Ubuntu Installation (Read 414699 times)
#420
Re: Beyond the Ubuntu Installation
teapot
OLPC News Forum Expert
Posts: 662
October 16, 2008, 08:30:10 AM
Quote from: mavrothal on October 16, 2008, 08:24:45 AM
Quote
Quote
If the latter can you reinstate backlight and network manually or should use the set-powersave-mode off ?
Yes.
Yes which one?
or yes both?
Backlight level can be set manually using brightness buttons. Radio remains off until
set-powersave-mode off
is called (Network Manager should pick it up after that).
Logged
#421
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 16, 2008, 09:03:57 AM
Quote
Backlight level can be set manually using brightness buttons. Radio remains off until set-powersave-mode off is called (Network Manager should pick it up after that).
Got it! and works fine! You know what would be nice though... invoking the script once goes to save mode, invoking it the second goes to off and so on. So with one launcher button you do both! Now if you also make the button change accordingly would be perfect...
About the extreme mode, I did not tried it because I hated it in Sugar. Having the screen dim after 30 seconds is very annoying. Make it 3-5 minutes and I'll try it
«
Last Edit: October 16, 2008, 09:07:38 AM by mavrothal
»
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#422
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 16, 2008, 01:51:06 PM
Quote
You know what would be nice though... invoking the script once goes to save mode, invoking it the second goes to off and so on.
Here is my answer to my suggestion
generate the file in /usr/bin, named
power-save
or modify accordingly teapot's original
set-powersave-mode
file in the same directory as follow
Code:
#!/bin/bash
# modification of teapot's set-powersave-mode script for on and off with the same script
if [ -e .p_s_test ]
then
MODE=false
rm .p_s_test
else
MODE=true
touch .p_s_test
fi
dbus-send --system --print-reply --dest="org.freedesktop.Hal" \
/org/freedesktop/Hal/devices/computer \
org.freedesktop.Hal.Device.SystemPowerManagement.SetPowerSave \
"boolean:${MODE}" > /dev/null 2>&1
then make it executable by
Code:
chmod 755 power-save
Finally insert a launcher item in the drop-down menu that will execute the command
Code:
power-save
First time you click it goes to power save second time it exits and so on.
If i could also find a nice picture for it....
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#423
Re: Beyond the Ubuntu Installation
hoogee
New
Posts: 3
October 16, 2008, 07:35:50 PM
Question:
I did the whole installation process with 711 installed (8.1). Now, I want to upgrade my Sugar to the new release 767 (8.2). Can I do so without damaging the xubuntu install? Do I need to re-copy those few directories from the sugar side again (/lib/firmware, /security/, etc...)
Will the upgrade break anything?
Logged
#424
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 16, 2008, 10:42:53 PM
Quote from: hoogee on October 16, 2008, 07:35:50 PM
Question:
I did the whole installation process with 711 installed (8.1). Now, I want to upgrade my Sugar to the new release 767 (8.2). Can I do so without damaging the xubuntu install? Do I need to re-copy those few directories from the sugar side again (/lib/firmware, /security/, etc...)
Will the upgrade break anything?
As the instructions say, if you have stuff that you want to keep backup both your sugar
http://wiki.laptop.org/go/How_to_backup_your_XO
and ubuntu
http://olpcnews.com/forum/index.php?topic=3062.msg24431#msg24431
Then remove your SD card restart and update any way you want. After you update reboot and when you are happy with 8.2
insert your card and update the kernel etc as described here
http://olpcnews.com/forum/index.php?topic=2240.msg25873#msg25873
None of the above is mandatory and the update and ubuntu should work without any of the above steps
but...
Also is unclear if the suspend process will work with older kernels in Ubuntu
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#425
Re: Beyond the Ubuntu Installation
Rao
Contributor
Posts: 71
October 17, 2008, 12:51:05 PM
Quote from: mavrothal on August 30, 2008, 01:20:31 AM
“After further review” (see discussion in this thread from this point on
http://olpcnews.com/forum/index.php?topic=3063.msg25017#msg25017
) I thought that scripting the installation for a USB stick may be feasible.
After updating my XO to build 767, I reinstalled Ubuntu following the
InstallTOusb.txt procedure on a USB drive. The installation and booting went well, as far as I can tell (by echoing $? at each step of the procedure).
However, after I logged in as olpc/olpcolpc the screen froze on me! After a while the screen saver kicked in and hitting the return key returned to the frozen screen.
Can somebody please help?
Rao
«
Last Edit: October 17, 2008, 12:52:59 PM by Rao
»
Logged
#426
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 17, 2008, 01:15:33 PM
Quote
However, after I logged in as olpc/olpcolpc the screen froze on me! After a while the screen saver kicked in and hitting the return key returned to the frozen screen.
Why did you reinstalled Ubuntu? A kernel update would be sufficient.
Did you reinstalled from the original teapot's torrent or from a backup of your previous install?
How did you determined that is frozen? Try an external mouse to see if is just the mousepad acting up, because it looks like that programs and keyboard are woking. Reboot to see if is just a glitch, and see if the text during boot gives any strange messages.
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#427
Re: Beyond the Ubuntu Installation
teapot
OLPC News Forum Expert
Posts: 662
October 17, 2008, 01:20:12 PM
Quote from: Rao on October 17, 2008, 12:51:05 PM
Quote from: mavrothal on August 30, 2008, 01:20:31 AM
“After further review” (see discussion in this thread from this point on
http://olpcnews.com/forum/index.php?topic=3063.msg25017#msg25017
) I thought that scripting the installation for a USB stick may be feasible.
After updating my XO to build 767, I reinstalled Ubuntu following the
InstallTOusb.txt procedure on a USB drive. The installation and booting went well, as far as I can tell (by echoing $? at each step of the procedure).
However, after I logged in as olpc/olpcolpc the screen froze on me! After a while the screen saver kicked in and hitting the return key returned to the frozen screen.
You have copied files under /boot but forgot to copy files/directories under /lib/modules (and probably /lib/firmware )
Logged
#428
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 17, 2008, 01:48:09 PM
Quote
You have copied files under /boot but forgot to copy files/directories under /lib/modules (and probably /lib/firmware )
!!!
It makes sense if the addition of echo $? messed up the process where the cp -a /lib/modules ask if its OK to overwrite. Is that the case? is echoing $? when the program asks for input interrupts the process? (just try to improve on my linux knowledge
)
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#429
Re: Beyond the Ubuntu Installation
Rao
Contributor
Posts: 71
October 17, 2008, 03:04:24 PM
Quote from: mavrothal on October 17, 2008, 01:48:09 PM
Quote
You have copied files under /boot but forgot to copy files/directories under /lib/modules (and probably /lib/firmware )
!!!
It makes sense if the addition of echo $? messed up the process where the cp -a /lib/modules ask if its OK to overwrite. Is that the case? is echoing $? when the program asks for input interrupts the process? (just try to improve on my linux knowledge
)
In fact, I forgot to copy the lib/modules/* (however, I had copied the firmware/). But copying the lib/modules/* caused boot up problems (lot of fs errors). So I am redoing the whole thing!
Since I don't know how to name the drive USB, I had manually typed the commands. Also, the umount command fails if I type the commands in the order given (the journal doesn't show the drive and so can't unmount via the journal) and if I go ahead in spite of that the fsdisk commands fails.
By trial and error I found out that with the following procedure fsdisk command
works successfully.
1 plug in the Ubuntu drive (df shows it on /dev/sda1)
2 umount the Ubuntu drive
3 plug in the drive containing the bz2 file into another USB port (df shows it on /dev/sdb1)
4 issue the inhibit-suspend and haldaemon commands
5 the rest as per the installToUSB.txt procedure (from dd command on).
I don't know if my procedure makes sense for you guys but that is what worked for me. Copying the lib/modules never asks for OK. But in fact, the mke2fs command asks for response at a couple of points but continues even without response.
«
Last Edit: October 17, 2008, 03:06:44 PM by Rao
»
Logged
#430
Re: Beyond the Ubuntu Installation
teapot
OLPC News Forum Expert
Posts: 662
October 17, 2008, 03:09:00 PM
Quote from: mavrothal on October 17, 2008, 01:48:09 PM
Quote
You have copied files under /boot but forgot to copy files/directories under /lib/modules (and probably /lib/firmware )
!!!
It makes sense if the addition of echo $? messed up the process where the cp -a /lib/modules ask if its OK to overwrite. Is that the case? is echoing $? when the program asks for input interrupts the process? (just try to improve on my linux knowledge
)
Usually every process has standard input, standard output and standard error output that by default are attached to a terminal. Terminal does not pass data between processes running in it (*) -- everything at the input is read from the terminal and everything at the output is printed on the terminal, so merely printing something does not affect what other processes can read. To pass data between processes, so output of one is read at the input of another, you need to connect them through a pipe.
Also
cp -a
never asks for confirmation. On some systems when cp, rm and mv are called in an interactive session (as opposed to being called from a script), shell adds -i option, so they ask for confirmation. This is configured in sh/bash/... startup scripts using alias command.
--
(*) There is an exception to this rule -- some control sequences sent to the terminal can cause the terminal itself to "type" a response. If a program requested a response but did not read it, it will remain in the buffer and the next program will see it at its input. For example,
echo -e '\033[c'
produces an equivalent of typing
<Esc>[?
<some number>
;
<some number>
;c
Logged
#431
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 18, 2008, 02:49:18 PM
Quote
I have uploaded a new version of the power management scripts at
http://mars.illtel.denver.co.us/~abelits/software/olpc/power-management/xo-power-management-0.3.tar.gz
One little problem is that if you suspend from the power button and then close the lid within 3-5 sec, it suspend again (and sounds like it)! Opening the lid you get the screen saver (with no login window) but if you start typing, it appears, you login and then goes to suspension again by itself if there is no activity for few seconds! Pressing the power button wakes up again and is fine. I would guess if suspension is initiated would not be retriggered but does not seem to be the case.
Also some times with this process of double suspend and wakeup, the network manager is gone and have to restart to recover it...
Just to let you know for v 0.4
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#432
Re: Beyond the Ubuntu Installation
Rao
Contributor
Posts: 71
October 18, 2008, 04:43:58 PM
Quote from: teapot on October 17, 2008, 03:09:00 PM
Quote from: mavrothal on October 17, 2008, 01:48:09 PM
Quote
You have copied files under /boot but forgot to copy files/directories under /lib/modules (and probably /lib/firmware )
!!!
It makes sense if the addition of echo $? messed up the process where the cp -a /lib/modules ask if its OK to overwrite. Is that the case? is echoing $? when the program asks for input interrupts the process? (just try to improve on my linux knowledge
)
I ran the following command on my xO to install Ubuntu on a USB drive (after updating to build 767),
sh -x Ubinstall.sh >out1 2>out2&
It finished in about 10 minuutes.
The out1 file is as follows:
Stopping HAL daemon: ^[[60G[^[[0;32m OK ^[[0;39m]
Disk /dev/sda: 1011 cylinders, 64 heads, 62 sectors/track
Old situation:
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 3981- 3982- 2006823 b W95 FAT32
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
New situation:
Units = cylinders of 2031616 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 1010 1011- 2005823+ 83 Linux
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table ...
Filesystem label=OLPCRoot
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
125440 inodes, 501455 blocks
25072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=515899392
16 block groups
32768 blocks per group, 32768 fragments per group
7840 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: 0/16^H^H^H^H^H 1/16^H^H^H^H^H 2/16^H^H^H^H^H 3/16^H^H^H^H^H 4/16^H$
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
All done!
Reboot your XO to start using Ubuntu
login with username:olpc password:olpcolpc
===
The out2 file is as follows:
+ touch /etc/ohm/inhibit-idle-suspend
+ /etc/init.d/haldaemon stop
+ umount /dev/sda1
umount: /dev/sda1: not mounted
+ dd if=/dev/zero of=/dev/sda1 bs=4096 count=1
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.00288093 s, 1.4 MB/s
+ sfdisk -f /dev/sda
Checking that no-one is using this disk right now ...
OK
Warning: The partition table looks like it was made
for C/H/S=*/16/63 (instead of 1011/64/62).
For this listing I'll assume that geometry.
end: (c,h,s) expected (1023,15,63) found (908,15,63)
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(
.)
+ mke2fs -j -L OLPCRoot /dev/sda1
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
+ mkdir /media/OLPCRoot
+ mount /dev/sda1 /media/OLPCRoot
+ mkdir /media/OLPCRoot
+ mount /dev/sda1 /media/OLPCRoot
+ cd /media/OLPCRoot
+ tar xvjf /media/7008-CB1C/OLPCFiles-hardy-20080506.tar.bz2
+ cp -a /security .
+ cp -ia /boot/System.map-2.6.25-20080925.1.olpc.f10b654367d7065 /boot/actos.zip /boot/ac$
cp: overwrite `boot/olpc.fth'? + cp -a /lib/modules/2.6.25-20080925.1.olpc.f10b654367d706$
+ cp -a /lib/firmware/usb8388.bin lib/firmware/
+ cp /media/7008-CB1C/fstab etc/fstab
+ cp /media/7008-CB1C/olpc.fth boot/olpc.fth
+ cd /
+ umount /media/OLPCRoot
+ echo 'All done!'
+ echo 'Reboot your XO to start using Ubuntu'
+ echo 'login with username:olpc password:olpcolpc'
+ rm /etc/ohm/inhibit-idle-suspend
+ /etc/init.d/haldaemon start
+ exit 0
==
As far as I can tell the script ran without any problem.
But the boot up of Ubuntu fails.
The errors printed out many times are,
EXT3 fs error
Cannot execute /sbin/getty
INIT: Id 1-6 respawning too fast, disabled for 5 minutes
Can somebody tell me what I am doing wrong this time.
I hope I can expect to be forgiven for the long post!
thanks,
Rao
Logged
#433
Re: Beyond the Ubuntu Installation
mavrothal
Administrator
OLPC News Forum Expert
Posts: 1289
October 19, 2008, 01:58:34 AM
Quote
Checking that no-one is using this disk right now ...
OK
It would appear that your stick is still mounted. Is a VFAT stick so you MUST unmount it from the Journal, before you run the script.
Also try a factory fresh stick just in case that this one has something that blocks the process
I'm not really sure why you get this
Quote
For this listing I'll assume that geometry.
end: (c,h,s) expected (1023,15,63) found (908,15,63)
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(.)
But looks like that you have still have a VFAT filesystem when you install Ubuntu, so is unlikely for the OS to work I would say.
Also you may be using the older version of the script that makes 3 more empty partitions. Is not a problem, but since you have partition problems use the latest version.
«
Last Edit: October 19, 2008, 02:02:02 AM by mavrothal
»
Logged
XO-1: Is never going to run Flash, but is certainly flashy!
(If you want Flash, get an XO-1.5 running OLPC 11.2.0 or
XOpup
)
#434
Re: Beyond the Ubuntu Installation
Rao
Contributor
Posts: 71
October 19, 2008, 07:09:06 AM
Quote from: mavrothal on October 19, 2008, 01:58:34 AM
Quote
Checking that no-one is using this disk right now ...
OK
It would appear that your stick is still mounted. Is a VFAT stick so you MUST unmount it from the Journal, before you run the script.
Also try a factory fresh stick just in case that this one has something that blocks the process
I'm not really sure why you get this
Quote
For this listing I'll assume that geometry.
end: (c,h,s) expected (1023,15,63) found (908,15,63)
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(.)
But looks like that you have still have a VFAT filesystem when you install Ubuntu, so is unlikely for the OS to work I would say.
Also you may be using the older version of the script that makes 3 more empty partitions. Is not a problem, but since you have partition problems use the latest version.
Thanks for the prompt reply.
I beg to differ. I did unmount it from the journal before starting the Ubinstall.sh script (the USB drive (a SanDisk) was wiped out clean using U3Uninstall too provied by U3.com). I believe that it does use VFAT when it formats the drive.
Also, as you can see from Out2 file in my post, the fourth line reads/says "umount: /dev/sda1: not mounted."
Is there any tool on XO that I can use to clean out the drive?
thanks,
Rao
Logged
Pages:
1
...
26
27
28
[
29
]
30
31
32
...
37
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: 43
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 17
Total: 17
Loading...