Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[HOW-TO] Install in BerryBoot
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
[HOW-TO] Install in BerryBoot
20th Feb, 2013, 05:56 AM
Post: #1
reeeky2001 Offline
Registered
Posts: 3
Joined: Feb 2013
Reputation: 1
[HOW-TO] Install in BerryBoot
Intro: I wanted to use Xbian in BerryBoot on the RPi, b/c I'm new to the Pi and wanted to find out what distro I wanted to use, w/o having to constantly backup and wipe my SD card. So BerryBoot it was.

Prerequisites:
PC w/ Linux (I used ubunutu from a DVD)
Raspberry Pi w/ keyboard and mouse
Xbian img file
SD card
USB stick at least as big as your SD card

How to:
  1. Install Xbian img on SD card
  2. Put SD Card in RPi and let it resize and start up fully.
  3. Shutdown RPi, unplug mouse and use keyboard. Start the RPi again.
  4. While Xbian is starting, but before the GUI is started (b/c I can't figure out how to start a terminal instance in XBMC), press Control-C then use the command "dd bs=1M if=/dev/mmcblk0 of=/media/sda1/backup.img", sda1 being my USB stick.
  5. Wait until its done. This could take a while depending on the size of your SD card, mine was 4GB and took about 15 mins.
  6. Once its finished you'll be able to start programs/commands again. Turn off RPi and unplug USB stick.
  7. Mount USB in Linux on PC. I used Ubunutu 12.10 LiveCD, as its not my primary OS.
  8. Use the following code, obviously if loop2p2 is something else, use that.
    Code:
    $ sudo kpartx -av backup.img
    add map loop2p1 (252:5): 0 117187 linear /dev/loop0 1
    add map loop2p2 (252:6): 0 3493888 linear /dev/loop0 118784
    $ sudo mount /dev/mapper/loop2p2 /mnt
  9. Goto /mnt/etc/ and commented out all the entries in fstab
    Code:
    $ sudo sed -i 's/^\/dev\/mmcblk/#\0/g' /mnt/etc/fstab
    This code may do that, but I did it manually. I do get a warning when starting Xbian via BerryBoot that may be the result of me not using this code, but idk.
  10. Use mksquash on the img that we mounted, make sure squashfs-tools is installed, "sudo apt-get install squashfs-tools" if its not installed.
    Code:
    $ sudo mksquashfs /mnt /media/sda1/xbian-bb.img -comp lzo -e lib/modules
    $ sudo umount /mnt
    $ sudo kpartx -d image_you_want_to_convert.img
  11. Put this img file on your USB drive, boot the BerryBoot SD card on your RPi, click edit menu, click and hold on Add OS until you get a sub-menu for adding IMG from USB.
  12. Add the XBian img and go from there. You should know what to do now


Also, you could ignore the above and install the img here http://www.mediafire.com/download.php?by1007dtub0wro4
Find all posts by this user
Quote this message in a reply
22nd Feb, 2013, 11:44 AM
Post: #2
javcarbe Offline
Registered
Posts: 1
Joined: Feb 2013
Reputation: 0
RE: [HOW-TO] Install in BerryBoot
I restore the img in the sdcard didnt boot, i did something wrong
Find all posts by this user
Quote this message in a reply
23rd Feb, 2013, 07:51 AM
Post: #3
brantje Offline
Tester
Posts: 305
Joined: Dec 2012
Reputation: 32
RE: [HOW-TO] Install in BerryBoot
What xbian version is the img?

XBian Skin Beta Testing
Clock Screensaver

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
5th Mar, 2013, 04:01 AM
Post: #4
reeeky2001 Offline
Registered
Posts: 3
Joined: Feb 2013
Reputation: 1
RE: [HOW-TO] Install in BerryBoot
(23rd Feb, 2013 07:51 AM)brantje Wrote:  What xbian version is the img?

It WAS the latest at the time, so Alpha 4 I believe.
Find all posts by this user
Quote this message in a reply
19th Jul, 2013, 05:41 PM
Post: #5
Bref Offline
Registered
Posts: 2
Joined: Jul 2013
Reputation: 0
RE: [HOW-TO] Install in BerryBoot
What is wrong?

What I do:

- install xbian on sd card (download image, dd to sd card)
- start pi and let it do its stuff (expand etc)
- login via ssh
- sudo dd bs=1M if=/dev/mmcblk0 of=/pathtomyexternalusbdriveattachedtothepi/out.img
go back to my laptop with my usbdrive.
- sudo kpartx -av /pathtomyexternalusbdriveattachedtothepi/out.img
- sudo mount /dev/mapper/loop2p2 /mnt

now what I get:

bref@Bref-wan:~$ tree -L 2 /mnt
/mnt
├── home
│   ├── @
│   └── @safe
└── root
├── @
└── @safe

meaning something went strange and I cannot go on with changing fstab, mksquashfs etc.

cheers
Find all posts by this user
Quote this message in a reply
19th Jul, 2013, 06:03 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: [HOW-TO] Install in BerryBoot
(20th Feb, 2013 05:56 AM)reeeky2001 Wrote:  [*]While Xbian is starting, but before the GUI is started (b/c I can't figure out how to start a terminal instance in XBMC), press Control-C then use the command "dd bs=1M if=/dev/mmcblk0 of=/media/sda1/backup.img", sda1 being my USB stick.

best way (and for me the only one which should be followed) is to put "rescue" into cmdline.txt and to it from emergency shell.

(or hold down shift on keyboard during boot.

btw: https://github.com/xbianonpi/xbian-package-initramfs/wiki/XBian-specific-cmdline.txt-options

(19th Jul, 2013 05:41 PM)Bref Wrote:  What is wrong?

/mnt
├── home
│   ├── @
│   └── @safe
└── root
├── @
└── @safe

this correct. just for root fs mount use additional parameter "subvol=root/@" and for home (to be mounted under /home) "subvol=home/@"

this are sub volumes used under normal operations, @safe ones are snapshots with frozen state as it was on beta1 image. for failover, rescue booting etc.

you can delete it, if not needed with btrfs command, exactly as you have it mounted now, just run

"btrfs sub del /mnt/root/@safe" and "btrfs sub del /mnt/home/@safe"

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
19th Jul, 2013, 11:09 PM
Post: #7
Bref Offline
Registered
Posts: 2
Joined: Jul 2013
Reputation: 0
RE: [HOW-TO] Install in BerryBoot
Thanks.

I had no idea about the btrfs and subvolumes.

One step closer to my raspify/xbian pi Smile
Find all posts by this user
Quote this message in a reply
5th Dec, 2013, 05:41 AM
Post: #8
coloxim Offline
Registered
Posts: 33
Joined: Dec 2013
Reputation: 0
Help xbian in berryboot
Hi guys...I've read some guide for install xbian in berryboot, but is too much complicated for me...is it possible that there isn't a simple way to do it?
Someone can help me? Please...
Find all posts by this user
Quote this message in a reply
5th Dec, 2013, 06:27 AM
Post: #9
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: [HOW-TO] Install in BerryBoot
(5th Dec, 2013 05:41 AM)coloxim Wrote:  Hi guys...I've read some guide for install xbian in berryboot, but is too much complicated for me...is it possible that there isn't a simple way to do it?
Someone can help me? Please...

merged your thread into this one as there is no need to have a separate one opened!

Also here you have some HowTo so you can try follow and also you can discuss further if needed.
-thx-

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
5th Dec, 2013, 07:44 AM
Post: #10
coloxim Offline
Registered
Posts: 33
Joined: Dec 2013
Reputation: 0
RE: [HOW-TO] Install in BerryBoot
Sorry...

Smile
Find all posts by this user
Quote this message in a reply
5th Dec, 2013, 09:26 AM
Post: #11
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: [HOW-TO] Install in BerryBoot
@coloxim

just short info until I upload the packages (later today), but:

current XBian deb packages (and content) is fine tuned to such extend that it is possible to download download public Raspbian image and with stock config without any mods or edits you can install XBian packages (as you would install any other simple application available from raspbian / debian repo.

then you can either manually have full control over starting x-windows (with FB browser etc) or xbmc. or you can choose to have XBian set booting to X-Windows as user pi by default. then if you just re-login as user XBian, XBMC will be started. and after XBMC quit, you are again in X-Windows. of course without reboot or console fidling.

this is often requested by the users so you don't have to care about two separated systems - but if it is not suitable for you, you choose to host another system on standalone partition, drive or subvolume on XBian's btrfs filesystem. then if cmdline.txt contains "bootmenu" XBian's during early boot searches all attached drives (SD cards, sticks, USB external drives) for user boot configuration (boot netry). then it lets you to pick one and boot it.

you will find details under section Installation in few hours.

mk

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
5th Dec, 2013, 11:56 PM
Post: #12
coloxim Offline
Registered
Posts: 33
Joined: Dec 2013
Reputation: 0
R: RE: [HOW-TO] Install in BerryBoot
(5th Dec, 2013 09:26 AM)mk01 Wrote:  @coloxim

just short info until I upload the packages (later today), but:

current XBian deb packages (and content) is fine tuned to such extend that it is possible to download download public Raspbian image and with stock config without any mods or edits you can install XBian packages (as you would install any other simple application available from raspbian / debian repo.

then you can either manually have full control over starting x-windows (with FB browser etc) or xbmc. or you can choose to have XBian set booting to X-Windows as user pi by default. then if you just re-login as user XBian, XBMC will be started. and after XBMC quit, you are again in X-Windows. of course without reboot or console fidling.

this is often requested by the users so you don't have to care about two separated systems - but if it is not suitable for you, you choose to host another system on standalone partition, drive or subvolume on XBian's btrfs filesystem. then if cmdline.txt contains "bootmenu" XBian's during early boot searches all attached drives (SD cards, sticks, USB external drives) for user boot configuration (boot netry). then it lets you to pick one and boot it.

you will find details under section Installation in few hours.

mk

OK.. thanks.. But if I use in berryboot and raspbian without startx (if I want x-windows I've to write stratx because in rasp-confing I don't want autoboot in desktop) so I'm using it from terminal(command line), can I install .deb?

If I didn't understand don't be angry, I'm not expert, and English is not my language..

Thanks
Find all posts by this user
Quote this message in a reply
6th Dec, 2013, 02:09 AM
Post: #13
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: [HOW-TO] Install in BerryBoot
how you will start the programs it is solely up to you…

you flash raspbian, you configure basic things through raspi-config, then set boot to console only. you installs XBian packages and nothing extra will happen. you restart, you will se the same as before. when XBian is installed on top of raspian then XBMC is not set to autostart.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Dec, 2013, 04:16 AM
Post: #14
coloxim Offline
Registered
Posts: 33
Joined: Dec 2013
Reputation: 0
R: RE: [HOW-TO] Install in BerryBoot
(6th Dec, 2013 02:09 AM)mk01 Wrote:  how you will start the programs it is solely up to you…

you flash raspbian, you configure basic things through raspi-config, then set boot to console only. you installs XBian packages and nothing extra will happen. you restart, you will se the same as before. when XBian is installed on top of raspian then XBMC is not set to autostart.

Ohh.... Perfect... And for update it? I've to download new .deb or can I update directly from raspberry ?
Find all posts by this user
Quote this message in a reply
6th Dec, 2013, 06:50 AM
Post: #15
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: [HOW-TO] Install in BerryBoot
(6th Dec, 2013 04:16 AM)coloxim Wrote:  
(6th Dec, 2013 02:09 AM)mk01 Wrote:  how you will start the programs it is solely up to you…

you flash raspbian, you configure basic things through raspi-config, then set boot to console only. you installs XBian packages and nothing extra will happen. you restart, you will se the same as before. when XBian is installed on top of raspian then XBMC is not set to autostart.

Ohh.... Perfect... And for update it? I've to download new .deb or can I update directly from raspberry ?

you use apt-get upgrade & update, or just click update from XBMC or allow autoupdates.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Install Xbian in berryboot Eloy88 4 127,011 25th Jun, 2013 10:41 PM
Last Post: Alastaire

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 05:30 PM Powered By MyBB, © 2002-2025 MyBB Group.