FOR DEVELOPERS: HOW TO PACKAGE YOUR PROJECTS INTO A .DEB FILE

How do you think you…

…create a .deb archive for Linux Debian and Debian-based systems.

First, open up the Linux terminal. Type:

mkdir whatyouwantyourpackagetobecalled

mkdir whatyouwantyourpackagetobecalled/usr

mkdir whatyouwantyourpackagetobecalled/usr/local

mkdir whatyouwantyourpackagetobecalled/usr/local/bin

Then, find all the files and folders you want the package to contain. Copy them into whatyouwantyourpackagetobecalled/usr/local/bin.

Then, type mkdir whatyouwantyourpackagetobecalled/DEBIAN into the terminal window.

Then, type sudo apt-get install gedit, then gedit whatyouwantyourpackagetobecalled/DEBIAN/control.

Then copy and paste the following:

Package: PackageName
Version: 1.0
Section: base
Priority: optional
Architecture: all
Depends: arequiredpackage(>= 1.0)
Maintainer: You
Description: A .deb package example

Replace PackageName with your Package’s name, Version with what version of your package you are distributing, Architecture with the kind of ISA (Instruction Set Architecture) it requires. For example, for Hard float ARM (ARMHF) Change “all” to armhf. For 64-bit AMD (AMD64), change “all” to amd64. Or leave it as “all” so it can be installed on any architecture. If your package requires any other packages, replace arequiredpackage(>= 1.0) with the dependencies (you will need to put their versions as well. Then change You to whatever you want to be known as, then change A .deb package example with a description suiting your package.

Click Save then close Gedit. Then type into the terminal:

dpkg-deb –build whatyouwantyourpackagetobecalled

Test-run the installation with:

sudo dpkg -i whatyouwantyourpackagetobecalled.deb

Remember to replace whatyouwantyourpackagetobecalled with what you want your package to be called.

Have a nice day!

Epic Chas Gamer 😀

All “Install Chromium on Raspberry Pi” posts are now obsolete!

Hi guys!

In the past, I have made a lot of “How to install Chromium on Raspberry Pi” posts. Now these posts are considered obsolete because a Chromium for ARMv7 and ARMv8 installer is found at https://coolchasgamer.wordpress.com/chromium-arm.

chromium53

Chromium 53 on a Raspberry Pi 3

Enjoy!

Epic Chas Gamer 😀

Install latest Chromium on ARM devices

Hi guys! Here is a script that installs latest Chromium onto ARM Linux! Enjoy!
# This script installs latest Chromium onto ARM Linux
# This script was created by Epic Chas Gamer
# Check out Epic Chas Gamer's blog at https://coolchasgamer.wordpress.com
# Leave feedback at https://coolchasgamer.wordpress.com/chromium-arm

echo "Welcome!"
echo "Chromium is installing..."

echo "Downloading Chromium packages"

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_53.0.2785.143-0ubuntu0.14.04.1.1142_all.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

echo "Unpacking Chromium-Codecs-Ffmpeg-Extra"
sudo dpkg -i chromium-codecs-ffmpeg-extra_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

echo "Downloading Libcrypt11"
wget http://ports.ubuntu.com/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-3_armhf.deb

echo "Unpacking Libcrypt11"
sudo dpkg -i libgcrypt11_1.5.0-3_armhf.deb

echo "Downloading Libpci3"
wget http://ports.ubuntu.com/pool/main/p/pciutils/libpci3_3.2.1-1ubuntu5.1_armhf.deb

echo "Unpacking Libpci3"
sudo dpkg -i libpci3_3.2.1-1ubuntu5.1_armhf.deb

echo "Installing Libspeechd2"
wget http://ports.ubuntu.com/pool/main/s/speech-dispatcher/libspeechd2_0.8.5-0ubuntu2_armhf.deb

echo "Unpacking Libspeechd2"
sudo dpkg -i libspeechd2_0.8.5-0ubuntu2_armhf.deb

echo "Unpacking Chromium-Browser-L10n"
sudo dpkg -i chromium-browser-l10n_53.0.2785.143-0ubuntu0.14.04.1.1142_all.deb chromium-browser_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

rm -R .cache/chromium

rm -R .config/chromium

sudo mv /usr/bin/x-www-browser /usr/bin/x-www-browser.bak

sudo mv /usr/bin/gnome-www-browser /usr/bin/gnome-www-browser.bak

sudo cp /usr/bin/chromium-browser /usr/bin/x-www-browser

sudo cp /usr/bin/chromium-browser /usr/bin/gnome-www-browser

echo "Chromium is now installed and set as your default browser"
"If you get issues then plz leave feedback at https://coolchasgamer.wordpress.com/chromium-arm"

Have fun surfing the web!

Epic Chas Gamer 😀

Firefox 49 on Raspbian Jessie Raspberry Pi 2 and 3

THIS WILL ONLY WORK ON A PI 2 OR PI 3!

IF YOU HAVE USED FIREFOX-ESR PREVIOUSLY DO SUDO APT-GET REMOVE FIREFOX-ESR BEFORE DOING THIS TUTORIAL!

wget https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/+build/10930950/+files/firefox_49.0+build4-0ubuntu0.14.04.1_armhf.deb

 

sudo dpkg -i firefox_49.0+build4-0ubuntu0.14.04.1_armhf.deb

Then click Menu/Internet/Firefox Web Browser.

firefoxonraspberrypi

Enjoy!

Epic Chas Gamer 😀

Firefox 45 on any Pi Model Raspbian

NOTE: I promised a User called M that I would find out how to get Firefox latest version running. However, this post focuses on installing Firefox 45. I will write a tutorial of how to install Firefox 48 or 49 soon!

Open up the terminal and type:

sudo apt-get update

sudo apt-get install firefox-esr

Launch Firefox 45 using Menu/Internet/Firefox ESR.

Enjoy!

Epic Chas Gamer 😎

What is a Raspberry Pi?

A Raspberry Pi is a £30 computer the size of a credit card designed with kids and programming in mind. It is capable of doing everything a desktop computer is capable of, from surfing the net to playing Minecraft. On this blog I sometimes write about it. You can learn more about the Raspberry Pi at raspberrypi.org.

Hope you now know!

Epic Chas Gamer 😎

Chromium 53 on Raspbian Jessie

 

chromium53.png

Chromium 53 on Raspberry Pi 3

THIS IS THE ONLY WAY TO GET CHROMIUM 53 ON JESSIE!

THIS WILL ONLY WORK ON A PI 2 OR PI 3!

ORIGINALLY PUBLISHED ON 16TH OCTOBER 2016 BUT LEAD TO DEPENDENCY ERRORS. I HAVE UPDATED THE COMMANDS TO AVOID DEPENDENCY ERRORS. CHEERS!

Open up the terminal and type:

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_53.0.2785.143-0ubuntu0.14.04.1.1142_all.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

sudo dpkg -i chromium-codecs-ffmpeg-extra_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

wget http://ports.ubuntu.com/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-3_armhf.deb

sudo dpkg -i libgcrypt11_1.5.0-3_armhf.deb

wget http://ports.ubuntu.com/pool/main/p/pciutils/libpci3_3.2.1-1ubuntu5.1_armhf.deb

sudo dpkg -i libpci3_3.2.1-1ubuntu5.1_armhf.deb

wget http://ports.ubuntu.com/pool/main/s/speech-dispatcher/libspeechd2_0.8.5-0ubuntu2_armhf.deb

sudo dpkg -i libspeechd2_0.8.5-0ubuntu2_armhf.deb

sudo dpkg -i chromium-browser-l10n_53.0.2785.143-0ubuntu0.14.04.1.1142_all.deb chromium-browser_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

rm -R .cache/chromium

rm -R .config/chromium

sudo mv /usr/bin/x-www-browser /usr/bin/x-www-browser.bak

sudo mv /usr/bin/gnome-www-browser /usr/bin/gnome-www-browser.bak

sudo cp /usr/bin/chromium-browser /usr/bin/x-www-browser

sudo cp /usr/bin/chromium-browser /usr/bin/gnome-www-browser

 

IF YOU GET ANY DEPENDENCY ERRORS PLEASE COMMENT. 

CHROMIUM DOESN’T HAVE AN AUTO UPDATE FEATURE LIKE GOOGLE CHROME DOES. AS SOON AS CHROMIUM 54 IS RELEASED I WILL POST INSTRUCTIONS OF HOW TO INSTALL IT.

IT WON’T WORK ON PI 1 AND PI 0 BECAUSE THIS CHROMIUM WAS COMPILED FOR UBUNTU AND UBUNTU NOT COMPATIBLE WITH PI 1 AND PI 0 BECAUSE PI 1 AND PI 0 ARE ARMv6 POWERED AND UBUNTU FOR ARM REQUIRES ARMv7 BASED PROCESSOR.

IF YOU WANT CHROMIUM ON ARMv6 PIs THEN INSTALL VERSION 51 (ALSO WORKS ON PI 2 AND PI 3) WITH THE FOLLOWING COMMAND:

sudo apt-get update

sudo apt-get install chromium-browser

Enjoy surfing the Internet!

Epic Chas Gamer 😀

How to install Chromium on Raspbian Wheezy

WARNING: CHROMIUM FOR RASPBIAN WHEEZY IS AT VERSION 22 AND THE CURRENT VERSION OF CHROMIUM IS v53. USE CHROMIUM ON RASPBIAN WHEEZY AT YOUR OWN RISK

NOTE: CHROMIUM ON WHEEZY IS SLOW.

First, boot up your Raspberry Pi. Then click on LXTerminal.

Type sudo apt-get update.

Then, to install Chromium v22, type sudo apt-get install chromium.

Then click the LXDE icon in the taskbar (called panel on Linux) and then click Internet. Then click Chromium Web Browser and Chromium should launch.

CHROMIUM v22 IS OUT OF DATE AND DESPITE HAVING ‘APPLICATION MENU’ IF YOU CLICK ON CHROME WEB STORE YOU WILL GET YOUR CHROME VERSION IS NOT SUPPORTED BY CHROME WEB STORE.

HTML5 support is very low, around 300 out of 555 points.

NO YOUTUBE SUPPORT IN v22. 

Enjoy browsing the Internet!

Epic Chas Gamer 😀

Scratch on Raspberry Pi

Hi guys. This is my 100th post on my blog and I am pleased to write about… Scratch!

True, I did say that I wouldn’t do too much about Raspberry Pi, but I use Scratch on my Raspberry Pi. If you are not using Raspbian on your Pi, or you have Linux installed on a different computer, use your package manager to install the package scratch. (Example: on Debian use sudo apt-get install scratch at the terminal)

Installers for Windows, Mac OS X and Linux are found on scratch.mit.edu.

Once done, run Scratch and a small window will open. It will look a bit like this:

2016-10-08-092841_1184x624_scrot

Then click control and click Control, then drag the When flag clicked to the scripts. Then, click Looks and drag “Say Hello! for 2 seconds” to the scripts and it should connect to the When Flag clicked. Click on the Green flag. The cat should say Hello!

Now replace the When Flag clicked with When Space Key Pressed. Choose which key triggers the program and tap it.

2016-10-08-093248_1184x624_scrot

While this is a good example, it fails to show Scratch’s power.

Lets make the cat sprite move:

Delete the Hello stuff (just drag the code relating to Hello! back into where you got it from).

The code is shown below:

2016-10-08-093619_1184x624_scrot

Now lets add jumping:

2016-10-08-093747_1184x624_scrot

These examples are basic. More powerful examples can be found at scratch.mit.edu.

Epic Chas Gamer 😀

 

How to install Chromium on Raspbian Jessie Raspberry Pi 2 and 3

Jpeg

Here are some instructions for how to install it on your Raspberry Pi 2 or 3!

THIS POST NOW OBSOLETE. LOOK AT  The installer for ARM Devices to get updates!

LATEST TUTORIAL FOR HOW TO INSTALL CHROMIUM 53. I RECOMMEND THIS TUTORIAL CURRENTLY.

First, start up your Raspberry Pi 2 or 3 and open up the terminal. Then type:

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_53.0.2785.143-0ubuntu0.14.04.1.1142_all.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

sudo dpkg -i chromium-codecs-ffmpeg-extra_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

wget http://ports.ubuntu.com/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-3_armhf.deb

sudo dpkg -i libgcrypt11_1.5.0-3_armhf.deb

wget http://ports.ubuntu.com/pool/main/p/pciutils/libpci3_3.2.1-1ubuntu5.1_armhf.deb

sudo dpkg -i libpci3_3.2.1-1ubuntu5.1_armhf.deb

wget http://ports.ubuntu.com/pool/main/s/speech-dispatcher/libspeechd2_0.8.5-0ubuntu2_armhf.deb

sudo dpkg -i libspeechd2_0.8.5-0ubuntu2_armhf.deb

sudo dpkg -i chromium-browser-l10n_53.0.2785.143-0ubuntu0.14.04.1.1142_all.deb chromium-browser_53.0.2785.143-0ubuntu0.14.04.1.1142_armhf.deb

rm -R .cache/chromium

rm -R .config/chromium

sudo mv /usr/bin/x-www-browser /usr/bin/x-www-browser.bak

sudo mv /usr/bin/gnome-www-browser /usr/bin/gnome-www-browser.bak

sudo cp /usr/bin/chromium-browser /usr/bin/x-www-browser

sudo cp /usr/bin/chromium-browser /usr/bin/gnome-www-browser

Launch Chromium using Menu/Applications/Internet/Chromium Web Browser

Enjoy!

Epic Chas Gamer😀

OLD TUTORIAL FOR v48 NOW CONSIDERED OUTDATED AND OBSOLETE. LOOK ABOVE FOR NEWER TUTORIALS. CHROMIUM 48 USERS SHOULD UPDATE NOW TO STAY SAFE.

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

wget http://ports.ubuntu.com/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

sudo dpkg -i chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

sudo dpkg -i chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb

Now launch Chromium by clicking on Menu, then Internet and then Chromium Web Browser

OLD AND UNSUPPORTED TUTORIAL FOR CHROMIUM 22 ON RASPBIAN WHEEZY. USE AT YOUR OWN RISK!

sudo apt-get install chromium

Enjoy!

Epic Chas Gamer 🙂