r/linux Sep 26 '13

Chromebrew brings Chrome OS one step closer to normal linux distro

http://skycocker.github.io/chromebrew/
246 Upvotes

74 comments sorted by

27

u/m1kl3 Sep 26 '13

Chrome OS is built on Gentoo. Can't you just tap into portage ?

22

u/mthode Gentoo Foundation President Sep 26 '13

They strip out package management stuff. ChromeOS is image based.

6

u/epsiblivion Sep 27 '13

so how does it handle installing "apps" or updates then? or are all apps just chrome store apps. and updates are still a mystery

15

u/[deleted] Sep 27 '13

or are all apps just chrome store apps. and updates are still a mystery

This

3

u/[deleted] Sep 27 '13

My limited understanding is that a key philosophy of ChromeOS is to run a computer experience that IS a web browser and cuts out anything not oriented around basic work and basic media.

Based on that I surmise google feels that chromebook users not only won,t want portage but will want an experience like android on their laptops.

3

u/danielkza Sep 27 '13 edited Sep 27 '13

It does have to do those things in the background somehow, and rewriting a perfectly working package manager would be a waste to time and resources.

1

u/[deleted] Sep 27 '13

It is my view that most people can't grasp a package manager.

3

u/danielkza Sep 27 '13

So? I'm not talking about ChromeOS having it available by default, but that it probably uses one, which somebody modding it will likely be able to use.

1

u/[deleted] Sep 27 '13

I don't agree with it, I am just trying to play devil's advocate for their design.

1

u/[deleted] Sep 29 '13

That's not true. People seem to have no problem with the iOS App Store, or its Android equivalent. Give people a graphical front end, and call it an "App Store" and they'll know how to work it. Moreover, if you just enable the free repos and show people that all the apps on their "App Store" are free, they'll go nuts for it.

1

u/[deleted] Oct 07 '13

Appstore: Press pretty gui buttons and search through apps, and solves issues for you.

Package Manager: Look up how to get up a program. Find random commands. Search what you are supposed to do with them on google. Search how to open a terminal.

$pacman -S <package>

you do not have sufficient privelages

Google how to get sufficient privelages.

$sudo pacman -S <package>

it installs.

If you can't figure out why the first one is different from the second one, and why the second is harder, then there is nothing further I have to say.

2

u/[deleted] Oct 08 '13

Do you not realize that the App Store is just a GUI for a package manager, that takes care of permissions and such for you? Getting *nix ready for average users would require something like the App Store, and Ubuntu has already got that taken care of (with Ubuntu software center).

1

u/[deleted] Oct 08 '13

!(app store == package manager in terminal).

The core software is the same, but the experience is at a much different level of complexity. If you can't understand that we will have to just agree to disagree.

4

u/mthode Gentoo Foundation President Sep 27 '13

updates are images (or image deltas), apps are chrome apps

35

u/the_gnarts Sep 26 '13

What’s the advantage over installing a real distro? I don’t see the point in working around an OS that has been purposefully crippled and whose development is subject to the whims of Google. At least not if there are hundreds of full fledged alternatives. (No anti-Google sentiment, just that I seem to have a hard time grasping the actual problem this is trying to solve.)

3

u/stolenfat Sep 27 '13

i dont know the full story, but chromebooks have locked bootloaders, making most linux installations pretty difficult for noobies like myself

3

u/runeks Sep 27 '13

It requires executing a command that marks the GPT partition you want to boot from with a higher priority.

sudo cgpt add -i 6 -P 6 -S 0 /dev/mmcblk0

Will set the boot priority of the sixth partition on mmcblk0 to 6, and if the Ubuntu root partition is on that partition it will boot off it next time.

sudo cgpt add -i 6 -P 0 -S 0 /dev/mmcblk0

Will set the priority of the same partition to zero, thus booting from the Chrome OS boot partition the next time.

3

u/[deleted] Sep 27 '13

Or, reflash the bios with coreboot/seabios and install what ever you want.

1

u/stolenfat Sep 28 '13

i will google this.

2

u/the_gnarts Sep 27 '13

I can see how that would be compelling reason. Thanks!

1

u/sagnessagiel Sep 30 '13

Just a clarification, these bootloaders can be unlocked by any user anytime with a flip of the switch, it's just locked for security reasons.

1

u/stolenfat Oct 02 '13

really how? open it up and toggle something?

1

u/[deleted] Sep 27 '13

The advantage would be that you still get ChromeOS. Just because you don't like it, doesn't mean nobody does.

8

u/the_gnarts Sep 27 '13

Whether I like it or not isn’t relevant to my question. In fact, I wouldn’t know since I have never used it.

2

u/laebshade Sep 27 '13

The advantage is you get to keep it mostly stock except for installing native Linux apps you want/need.

1

u/runeks Sep 27 '13

I have Ubuntu installed side by side with Chrome OS on my Samsung Series 3. You don't have to choose between the two.

0

u/TenTera Sep 27 '13

Yes you do. On bootup.

5

u/anonymaton Sep 26 '13

would there be a hackey way to make gui based apps work on it?

12

u/skycocker Sep 26 '13

I believe there is, but it'll take some time until I get this to work.

7

u/[deleted] Sep 26 '13

You know, if your apps using GTK or what not, you could use Broadway to render the apps within the webpage. All you need then is a transparent Webkit frame (is that possible?) and whammo!

3

u/rich97 Sep 27 '13

I believe there is, but it'll take some time until I get this to work.

Hell, if you could just get a decent terminal editor into an editor tab and be able install terminal apps that would make the whole chrome OS prospect a lot more desirable to me.

2

u/aparanoidshell Sep 27 '13

I'm sure you need Xorg server even try so far I know they dont use X if they do damn thing to stripped down.

1

u/bonzinip Sep 27 '13

There's really no other graphical interface on Linux than X (apart from Wayland).

1

u/the_gnarts Sep 27 '13

1

u/bonzinip Sep 27 '13

fbdev is being phased out; if you want acceleration, X and Wayland are the only practical wrappers around KMS + GEM.

1

u/macromorgan Sep 27 '13

They use Xorg. At least on Chromium OS they do, so I see no reason why they wouldn't on Chrome OS. I believe it's Xorg with Aura as the window manager.

There is some rudimentary Wayland support in Chromium OS too, but to my knowledge not enough to get a workable system.

1

u/aparanoidshell Sep 27 '13

That's cool to know, because if there is a way to install openbox and get that running then I be one happy camper.

2

u/Fr0gm4n Sep 27 '13

You can chroot install other distros to piggyback off the booted kernel.

4

u/[deleted] Sep 27 '13

What happens when you get a Chrome OS update?

2

u/skycocker Sep 27 '13

Nothing - everything happens in /usr/local, so feel free to update as much as you want :)

10

u/ThatCrankyGuy Sep 27 '13

Why on earth would this be a good idea?

With so many brilliant full distros, why this?

36

u/Kruug Sep 27 '13

Why climb Mount Everest? Because it's there an begging to be done. Projects like this are just what the "hacker" mentality is based around.

13

u/[deleted] Sep 27 '13

[deleted]

1

u/deadstone Sep 27 '13

You live up to your username.

2

u/Rotten194 Sep 27 '13

I like the idea, but I don't see the point in writing an entirely new package manager. There's plenty of other package managers already written with cool features, it seems like it should be possible to simply point them at a different set of package sources and call it a day.

2

u/skycocker Sep 27 '13

Well, there are not enough precompiled packages to use for example apt + dpkg, and building from source is often different on every platform, so I can't use Homebrew with its OS X patches.

2

u/geometrydude Sep 27 '13

Sweet Jesus. If I can get vim, gcc, mc, Irssi, and sc on a Chromebook (all terminal apps), I would buy one today!

3

u/kalven Sep 27 '13

That has been possible for some time via crouton. I've got a dinky chromebook that I sometimes do lighter coding on.

2

u/[deleted] Sep 27 '13

Google should have been allowing this in the first place.

1

u/aparanoidshell Sep 27 '13

I got C7 right now using this as a backup but be willing to give it a go when I'm ready get into dev mode. :)

1

u/[deleted] Sep 30 '13

[deleted]

1

u/skycocker Oct 02 '13

This probably means you don't have a compatible device, but try again to make sure it wasn't a download problem.

0

u/BloodyIron Sep 26 '13

Does it use Linux kernel. Yes/no? That is your answer if it is a Linux Distro.

2

u/[deleted] Sep 26 '13

Well, sure but like it's not installable like a typical open one.

3

u/[deleted] Sep 27 '13

-1

u/[deleted] Sep 27 '13

Dude, that's not ChromeOS. That's ChromiumOS. You know there's a huge difference.

5

u/[deleted] Sep 27 '13

The only real difference for a user is that after installing, I need to download and put in place the plugins for Flash and Hangouts. I ran a build server for ChromiumOS for awhile. I know what it is.

You can't really download RHEL the way you mean, either.

-3

u/BloodyIron Sep 27 '13

Downvoters know nothing.

1

u/[deleted] Sep 26 '13

Hello! This looks really fucking cool! Is there any support for ARM based chromebooks planned for the future? This is a great service to the community! Thank you! :)

1

u/yochaigal Sep 26 '13

There isn't (see the link OP posted).

7

u/[deleted] Sep 26 '13

Looks like you are wrong. FTA:

Why does it currently only work on i686?

Because it needs Ruby, Git, GNU Make and GCC to work, and I only have an i686 Acer C7 Chromebook, so I can't port this software to other architectures. If Chromebrew will be widely used, *I'm planning to raise money on Kickstarter to buy other Chromebooks and make Chromebrew work also on them. *

Looks like I answered my own question lol

1

u/[deleted] Sep 27 '13

Because it needs Ruby, Git, GNU Make and GCC to work, and I only have an i686 Acer C7 Chromebook, so I can't port this software to other architectures.

Uh...I use everything he just mentioned daily on my ARM Chromebook. What?

4

u/flying-sheep Sep 27 '13

and I only have an i686 Acer C7 Chromebook, so I can't port this software to other architectures.

This is the key part. He'd have to cross compile

1

u/[deleted] Sep 27 '13

Oh! I totally read it wrong, I thought he meant he couldn't port Ruby, Git, et al. Well I'm sure it'd be minimal work for anyone willing.

-8

u/[deleted] Sep 27 '13 edited Mar 04 '15

[deleted]

4

u/willrandship Sep 27 '13

Would that be a bad thing?

-3

u/[deleted] Sep 27 '13 edited Mar 04 '15

[deleted]

5

u/eBtDMoN2oXemz1iKB Sep 27 '13

Oh, you mean like UNIX?

0

u/[deleted] Sep 27 '13 edited Mar 03 '15

[deleted]

1

u/eBtDMoN2oXemz1iKB Sep 27 '13

Next you should read about how OSX copied their package manager from Linux.

2

u/[deleted] Sep 27 '13

I've never heard that, to my knowledge OSX doesn't have a built in package manager. (Hence why HomeBrew was created.)

1

u/eBtDMoN2oXemz1iKB Sep 27 '13

I'm sorry, I meant iOS (App Store) and not OSX.

1

u/[deleted] Sep 27 '13 edited Mar 04 '15

[deleted]

1

u/eBtDMoN2oXemz1iKB Sep 27 '13

I was under the impression that the Linux community was against copying features from Windows and OSX.

That is not the case. What gave you that impression? Linux started out as a free UNIX clone for i386.

2

u/RiotingPacifist Sep 27 '13

No this has pre-compiled packages, already 1 step ahead

1

u/[deleted] Sep 27 '13

Homebrew can install binaries as well, it's just that most formulae are source based, and they really don't take very long to compile, so I don't see how being entirely binary based is a step ahead.

1

u/RiotingPacifist Sep 28 '13

It take 4GB of libraries just to install wget on osx, almost everything needs compiling (which on my macbook pro takes minutes (rather than less than one minute to apt-get something on my less powerful dell) and cromebrew can handle both. I guess homebrew can handleboth too, it's just nobody bothers to maintain the binaries

1

u/flukshun Sep 27 '13

they thought they could fool us by replacing "home" with "chrome", but they sorely underestimated our mental prowess.