Skip to content

Instantly share code, notes, and snippets.

View putztzu's full-sized avatar

Tony Su putztzu

  • Su _Network_Consulting
View GitHub Profile
@putztzu
putztzu / Install_ocsinventory_on_LEAP_15.2.sh
Last active November 27, 2020 12:14
Install ocsinventory from source on openSUSE LEAP 15.2
## Add and activate PHP repository for 15.2
zypper -n ar -f http://download.opensuse.org/repositories/devel:/languages:/php/openSUSE_Leap_15.2/ PHP_repo
## Add and activate Perl repository for 15.2
zypper -n ar -f http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Leap_15.2/ Perl5_repo
## Private Padom repository for php7-imap
zypper -n ar -f https://download.opensuse.org/repositories/home:/Padom/openSUSE_Leap_15.2/ Private_Padom_repo_for_php7-imap
## Refresh repos
@putztzu
putztzu / draft-lc0-install-on-openSUSE.sh
Last active January 2, 2019 02:39
Late Draft, automated installation lc0 on any version of openSUSE
#!/bin/bash
# This script can be run from any location, but must be run in a root console.
# Start OS detection and setting variables
ID=$(grep -w ID= /etc/os-release | sed -e 's/ID=//')
VERSION_ID=$(grep -w VERSION_ID= /etc/os-release | sed -e 's/VERSION_ID=//' | sed -e 's/"//g')
#If Tumbleweed is detected, the Tumbleweed install
@putztzu
putztzu / gist:3ac9af1a620560efdd3c22afceb7c126
Last active October 1, 2016 20:57
Install nodejs on raspberry pi - Method from nodejs
# This installs leading edge, experimental version 9/30/2016
# Do not use link in nodejs web download page https://nodejs.org/en/download/current/
# Instead go to https://nodejs.org/download/release/, then drill down (recommend v6.7.0 as this writing)
# Select a package with "-linux-armv6l." in the name for RPi 1 and Zero, "armv7l" for RPi 2 and RPi3
# Note in the above names "armv6l" and "armv7l" that last character is an "L" for "lite" not a number 1
# Download your node package, following is a tar
wget https://nodejs.org/download/release/v6.7.0/node-v6.7.0-linux-armv6l.tar.gz
# Unpack
tar xzvf ~/node-v*.tar.gz --strip=1
@putztzu
putztzu / HowToOTGFast.md
Last active September 3, 2017 21:02 — forked from gbaman/HowToOTGFast.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

###Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)
More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).

If Avahi, Bonhjour or iTunes is blocked for unknown reasons, an alternative setup on Windows is to manually configure an IP address for the RPi using an unused network connection as described at the following link. Once configured, the device will automatically make its hostname available to the HostOS which is required to SSH to the RPi (SSH the IP address will not be authenticated properly) https://github.com/ev3dev/ev3dev/wiki/Setting-Up-Windows-USB-Ethernet-Networking#SettingIPAddress

1. Flash Raspbian Jessie f