Code Monkey home page Code Monkey logo

pimp-my-raspbian's Introduction

๐Ÿ‘‹ Hello World!

๐Ÿ•น๏ธ Technologies & Tools

๐Ÿ“ˆ GitHub Stats

nicnicknicky's GitHub Stats

pimp-my-raspbian's People

Contributors

nicnicknicky avatar taykangsheng avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

pimp-my-raspbian's Issues

Add ability to run commands on startup

Like executing iwconfig wlan0 power off to make sure Pi doesn't disconnect Wifi on inactivity

I'm currently inserting this command into /etc/rc.local

rasbian compatibility

Which rasbian image is this tested on?

I think will be helpful to put it in the README.

Add Docker config

  1. To install docker and docker-compose
  2. Ability to specify insecure-registries in the file /etc/docker/daemon.json

Sample steps to install docker and docker-compose

curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
sudo pip install docker-compose

Sample daemon.json

{
  "insecure-registries": [ "192.168.1.2:5000" ]
}

TBD Fixes and Features

  • Fix Locale setting during install
  • Change chromium autostart method
  • Add X server configurations to support kiosk mode
  • Autologin with admin user to replace pi

script is stucked

Not so sure whether its really stucked, but at the least the logs for these 3 commands are not shown in terminal when running ./setup.

Not so sure whether its affected by the last part 1> /dev/null got extra space.

DEBIAN_FRONTEND=noninteractive apt-get --yes update 1>/dev/null
DEBIAN_FRONTEND=noninteractive apt-get --yes upgrade 1>/dev/null
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes apt-transport-https 1> /dev/null

https://github.com/nicnicknicky/pimp-my-raspbian/blob/master/setup#L65

Add static ip config

For example, appending the following to /etc/dhcpcd.conf

interface wlan0
static ip_address=192.168.1.2/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
static domain_search=

errors

running this line $INSTALL_DIR/install $RPI_DEV_GROUP

----------------------------------
Mon Apr  9 08:43:33 UTC 2018 [INFO] Installing 1-default
----------------------------------
Mon Apr  9 08:43:33 UTC 2018 [TRACE] Installing curl packages
Mon Apr  9 08:43:36 UTC 2018 [TRACE] Installing usb-modeswitch packages
Mon Apr  9 08:43:39 UTC 2018 [TRACE] Installing usb-modeswitch-data packages
Mon Apr  9 08:43:42 UTC 2018 [TRACE] Installing usbutils packages
Mon Apr  9 08:43:46 UTC 2018 [TRACE] Installing man-db packages
Mon Apr  9 08:43:48 UTC 2018 [TRACE] Installing less packages
Mon Apr  9 08:43:51 UTC 2018 [TRACE] Installing more packages
E: Unable to locate package more
Mon Apr  9 08:43:52 UTC 2018 [ERROR] Installing 1-default failed
# launch chromium kiosk on startup
./install: line 19: $KIOSK_URL=www.google.com: command not found
./install: line 20: $CHROMIUM_FLAGS=--test-type --no-default-browser-check --no-first-run --disable-infobars --disable-session-crashed-bubble --ignore-certificate-errors --start-fullscreen: command not found

(process:21761): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
[21761:21761:0409/084501.638251:ERROR:desktop_window_tree_host_x11.cc(1155)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
./install: line 22: EOF: command not found
Mon Apr  9 08:45:22 UTC 2018 [ERROR] Installing chromium-kiosk failed
----------------------------------
Mon Apr  9 08:46:06 UTC 2018 [INFO] Installing network
----------------------------------
./install: line 10: syntax error in conditional expression
./install: line 10: syntax error near `;'
./install: line 10: `if [[ ! -z $SSID ]] && [[ ! -z $WPA_PSK ]; then'
Mon Apr  9 08:46:07 UTC 2018 [ERROR] Installing network failed
Mon Apr  9 16:47:36 +08 2018 [TRACE] Adding ufw rules
./install: line 12: ./ufw-default-rules: Permission denied
./install: line 15: ./ufw-add-rules: Permission denied
Mon Apr  9 16:47:36 +08 2018 [ERROR] Installing z-ufw failed
Mon Apr  9 16:47:36 +08 2018 [INFO] โšก๏ธ Package Installation Complete โšก๏ธ

TODO

  • Cleanup ugly building logs
  • xdotool: refresh/rotate tabs automatically
  • wlan0 connectivity check
  • README: Include prebuild steps
  • Differentiate for graphical/lite installs
  • Fix crontab error

How to use in README

No documentation of how to use and what are the things that will be configured.

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.