Sha256: a2a42d61b960097830152f26b6d5baa907f56ae0a89ae43aa63c2296bac3a6fd

Contents?: true

Size: 1.5 KB

Versions: 30

Compression:

Stored size: 1.5 KB

Contents

run_command "apt-get update"

package 'rbenv' do
  action :install
end

package 'vim' do
  action :install
end

package 'git' do
  action :install
end

gem_package 'bundler' do
  action :install
end

# OTG
execute "append dtoverlay=dwc2 to /boot/config.txt" do
  not_if "grep dtoverlay=dwc2 /boot/config.txt"
  command "echo 'dtoverlay=dwc2' >> /boot/config.txt"
end

execute "append dwc2 to /etc/modules" do
  not_if "grep dwc2 /etc/modules"
  command "echo dwc2 >> /etc/modules"
end

execute "append libcomposite to /etc/modules" do
  not_if "grep libcomposite /etc/modules"
  command "echo libcomposite >> /etc/modules"
end

# PBM
execute "Initialize PBM" do
  command <<~SHELL
    sudo mkdir -p /usr/share/pbm/shared
    wget https://gist.githubusercontent.com/jiikko/3f9fb3194c0cc7685e31fbfcb5b5f9ff/raw/23ddee29d94350be80b79d290ac3c8ce8400bd88/add_procon_gadget.sh -O /usr/share/pbm/shared/add_procon_gadget.sh
    chmod +x /usr/share/pbm/shared/add_procon_gadget.sh
 SHELL
end

# ruby
execute "Install ruby" do
  user "pi"
  not_if "rbenv versions | grep 3.0.1"
  command <<~EOH
    mkdir -p "$(rbenv root)"/plugins
    git clone https://github.com/rbenv/ruby-build.git --depth 1 "$(rbenv root)"/plugins/ruby-build
    rbenv install 3.0.1
  EOH
end

run_command 'sudo systemctl disable triggerhappy.socket'
run_command 'sudo systemctl disable triggerhappy.service'
run_command 'sudo systemctl disable bluetooth'
run_command 'sudo systemctl disable apt-daily-upgrade.timer'
run_command 'sudo systemctl disable apt-daily.timer'

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.11 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.10 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.9 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.8.1 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.8 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.7 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.6 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.5 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.4 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.3.1 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.3 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.2 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.1 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.3.0 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.2.3 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.2.2 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.2.1 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.2.0 docs/setup_raspi.mitamae.rb
procon_bypass_man-0.1.23 docs/setup_raspi.mitamae.rb