Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, October 12, 2016

Interfacing The SSD1306 OLED Display To OrangePi

I recently purchased an 0.96 Inch 4Pin IIC I2C OLED Display Module and needed to interface it to my OrangePi.  It uses the SSD1306 chipset and can be updated via I2C interface.

SSD1306 Datasheet.

I modified a Python library built for RaspberryPi so it would work with the OrangePi I2C ports.

You can checkout the library here: https://github.com/nukem/ssd1306


You can buy the OLED Display here: https://goo.gl/coVB5o

Saturday, May 09, 2015

How To Setup A Free Proxy Server Using Amazon Services CentOS

Tinyproxy is a small and fast HTTP/HTTPS proxy server daemon.

Open Amazon Web Services (AWS) Account


Register for a free AWS account. You will need a valid credit card to register. The free tier allows you to use their services free (limited) for up to 12months.

Create an EC2 Instance. Here's a great tutorial on how to do it. It includes how to connect to it via SSH.


Install tinyproxy


Connect to your instance via SSH and issue the following command:


yum -y install tinyproxy --enablerepo=epel


Configure tinyproxy


You must allow your IP to connect to the server

sudo vim /etc/tinyproxy/tinyproxy.conf

Allow XXX.XXX.XXX.XXX #Your public IP address

Then we need to make sure it runs even on restart.
sudo chkconfig tinyproxy on
sudo service tinyproxy start






TheFollowerShop - Where to buy Instagram Followers, Instagram Likes

Saturday, December 20, 2008

UNIX time to human readable

You can easily convert a UNIX time to human readable using the shell command date.



$ date -d @1212312323
Sun Jun 1 13:25:23 GST 2008

Sunday, November 02, 2008

RPM for Everybody

1. Listing content of an RPM file:

rpm -qpl package-version.rpm

2. Unpacking of an RPM archive:

rpm2cpio < myfile.rpm | cpio -i --make-directories

all contents of the RPM package will be extracted into the current directory creating relative path..

3. Installing an RPM package.

rpm -ivh package-version.rpm

4. Upgradinga an RPM package.

rpm -Uvh package-version.rpm

5. Listing installed packaged on your system:

rpm -qai

This will list all packages installed via the RPM system.

6. Uninstalling RPM packages:

rpm -e package-version.rpm

7. Building RPM from source:

@todo

Saturday, February 24, 2007

Determining BIND version using dig

Here's a simple way to query a nameserver what version of BIND it is running.


# dig @yns1.yahoo.com version.bind chaos txt

; <<>> DiG 9.2.4 <<>> @yns1.yahoo.com version.bind chaos txt
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31576 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: version.bind. 0 CH TXT "9.2.3" ;; Query time: 238 msec ;; SERVER: 66.218.71.205#53(66.218.71.205) ;; WHEN: Sat Feb 24 19:10:14 2007 ;; MSG SIZE rcvd: 48 #