Giter Site home page Giter Site logo

device-config's People

Contributors

appsforartists avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

device-config's Issues

how do you get this thing to work?!

I know nothing about openbox, or X, really. I've run all the scripts and have everything installed that is mentioned here, is there anything else I need?

I entered the chroot and tried 'startx' but nothing is happening, just a blank screen. Then when I go back to chromeos, I see the terminal blowing up with this noise:

Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1

Any ideas? Thanks!

Update run_from_chroot_as_user.sh

# install Sublime Text
wget -O ~/Downloads/sublime_text_2.0.2.tar.bz2 http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2
tar -xvjf ~/Downloads/sublime_text_2.0.2.tar.bz2 -C ~/Applications/
ln -s ~/Applications/Sublime\ Text\ 2/sublime_text ~/bin/subl
wget -O ~/Downloads/package_control.zip https://sublime.wbond.net/Package%20Control.sublime-package
python -m zipfile -e ~/Downloads/package_control.zip ~/.config/sublime-text-2/Packages/Package\ Control
git clone https://github.com/buymeasoda/soda-theme/ ~/.config/sublime-text-2/Packages/Theme\ -\ Soda
git config --global core.editor "subl -n -w"

# install AppEngine
wget -O ~/Downloads/google-cloud-sdk-python.zip https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk-python.zip
python -m zipfile -e ~/Downloads/google-cloud-sdk-python.zip ~/Applications/cloud_sdk
mv ~/Applications/cloud_sdk/google-cloud-sdk/* ~/Applications/cloud_sdk
rm -rf ~/Applications/cloud_sdk/google-cloud-sdk/

Installation and Openbox on Pixel 2015

Has anyone tried this out on the Pixel 2015's?

I was able to follow the instructions provided until the very end where I had some troubles.

  • When executing sudo sh -e run_from_chroot_as_root.sh, the script fails when it goes to install the google-cloud-sdk.
--2015-08-26 22:35:57--  https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
Resolving dl.google.com (dl.google.com)... 74.125.224.99, 74.125.224.96, 74.125.224.100, ...
Connecting to dl.google.com (dl.google.com)|74.125.224.99|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2591881 (2.5M) [application/zip]
Saving to: `/opt/google-cloud-sdk.zip'

100%[===================================>] 2,591,881   2.17M/s   in 1.1s    

2015-08-26 22:35:59 (2.17 MB/s) - `/opt/google-cloud-sdk.zip' saved [2591881/2591881]

rsync: change_dir "/usr/local/n/versions//./root/etc" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]

This isnt super critical to me, because I don't think I'll need the google cloud sdk anyways.

  • When running sh -e run_from_chroot_as_user.sh, I got a much more serious error.
run_from_chroot_as_user.sh: 13: run_from_chroot_as_user.sh: [[: not found
ln: failed to create symbolic link `/home/agraham/.Xauthority': File exists

I went into the script itself, and removed the line ln -s /var/host/Xauthority ~/.Xauthority because it seems that its already created and then re-ran the script.

This time, these are my results:

(dev)agraham@localhost:/opt/pixel_webdev$ sh -e run_from_chroot_as_user.sh
run_from_chroot_as_user.sh: 13: run_from_chroot_as_user.sh: [[: not found
--2015-08-26 22:42:16--  https://sublime.wbond.net/Package%20Control.sublime-package
Resolving sublime.wbond.net (sublime.wbond.net)... 50.116.34.243, 2600:3c02:e000:42::1
Connecting to sublime.wbond.net (sublime.wbond.net)|50.116.34.243|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 174110 (170K) [application/octet-stream]
Saving to: `/home/agraham/Downloads/package_control.zip'

100%[===================================>] 174,110     --.-K/s   in 0.08s   

2015-08-26 22:42:17 (2.01 MB/s) - `/home/agraham/Downloads/package_control.zip' saved [174110/174110]

Cloning into '/home/agraham/.config/sublime-text-3/Packages/Theme - Spacegray'...
remote: Counting objects: 740, done.
remote: Total 740 (delta 0), reused 0 (delta 0), pack-reused 740
Receiving objects: 100% (740/740), 2.01 MiB, done.
Resolving deltas: 100% (406/406), done.
run_from_chroot_as_user.sh: 32: run_from_chroot_as_user.sh: source: not found

If I proceed as if everything is fine and attempt to open SublimeText inside ChromeOs, I get some awful Openbox-Messages:

(dev)agraham@localhost:/opt/pixel_webdev$ export DISPLAY=:0.0; openbox --replace &
[1] 3517
(dev)agraham@localhost:/opt/pixel_webdev$ Openbox-Message: Failed to open the display from the DISPLAY environment variable.
subl
[1]+  Exit 1                  openbox --replace

Is there something I'm missing here, or will this just not work with the Pixel 2?

Can't access HTTP ports from other machines.

ChromeOS by default blocks all incoming connections, so if you do something like this:

python -m SimpleHTTPServer

> Serving 0.0.0.0 on port 8000

you'll be able to access it from your Chromebook on 192.168.1.1:8000, but not on another device with your public IP. The solution is pretty simple:

sudo /sbin/iptables -A INPUT -p tcp --dport 8000:8100 -j ACCEPT

where 8000:8100 is the range of ports you'd like to open. Considering that this will be a common need for a webdev machine, this should probably be aliased to something like open_ports 8000:8100.

Setup Instructions?

Could I get some info on how you expect this to be setup? I.E. post-crouton with curl? or pre?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.