Fatdog Arm for Raspberry Pi2

A home for all kinds of Puppy related projects
Message
Author
User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#76 Post by ally »

berryboot

:)

kerl
Posts: 154
Joined: Tue 16 Apr 2013, 21:15

#77 Post by kerl »

ally wrote:berryboot

:)
Thanks Ally. I hope to see a tutorial soon. Is there a M$Windows installer to manage Berryboot? :P

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#78 Post by ally »


kerl
Posts: 154
Joined: Tue 16 Apr 2013, 21:15

#79 Post by kerl »

Reply to Ally:

Yo Ally! This is really useful. I told a developer about this tool an he says it's very handy. Cheers and beers

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#80 Post by don570 »

I am storing the zip package on Google drive now.

I highly recommend using Windows sd card formatting software
to format your sd card to fat32.

I find that using linux gparted doesn't work.

fatdogarm people recommend this
https://archive.org/details/Puppy_Linux_Fatdog_Arm_Beta
General problems
================
If the system cannot boot, please zeros out your SD card first. Sometimes
leftover data prevents the system from starting.

To zeros SD card:
"dd if=/dev/zero of=/your/sdcard/device bs=4M"

and wait until it's finished, then re-partition the card.
____________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#81 Post by don570 »

New version fatdogarm-02-08-2018.zip

SSH clone ---> dropbear is loaded automatically so that the
user can use SSH from another computer to set the raspberry pi board .

After successful install you can use

Code: Select all

ssh -p 22 root@192.168.1.145  


(fill in your own raspberrypi address) to make a connection over the ethernet cable.

Also whatever mp3 files that are placed in Music folder will be played
automatically at bootup time by playmusic app.

I am doing this to make a music machine . It will be able to bootup
headless and play music out of the analog jack.
________________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#82 Post by don570 »

A quick note on how to connect to a samba server.

Networking should be enabled. See in tray or type 'ifconfig' in terminal

Launch 'Fatdog Connect' from start menu.

Hopefully it will find your server's address.
Then fill in the share name. If you don't know it then
click on Share list and it will be shown somewhere.

Common Windows share name is 'ShareDocs'
Puppy linux uses 'puppyshare' or 'shares'

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#83 Post by step »

don570 wrote:New version fatdogarm-02-08-2018.zip
Hi Don, did you intend to post a download link? Because I looked for one in your recent posts but couldn't find it.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#84 Post by don570 »

First post has the link.
_______________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#85 Post by don570 »

Here is my setup. Note that the raspberry pi2 doesn't have a keyboard or monitor.

x11vnc can be used by connecting with SSH first,
then type 'x11vnc' in SSH terminal in main computer.
Password is woofwoof.

I use vnc viewer in fatdog linux.
Xming in windows.
_______________________________________________
Attachments
raspberrypi2-setup-headless.jpg
(42.45 KiB) Downloaded 360 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#86 Post by don570 »

New version available first post:
fatdogarm-02-12-2018.zip
219mb
md5ssum: 285ccf5e0b6f12d518b878d43dba969d
https://drive.google.com/open?id=1t1-sQ ... JXpLM4wMSc

1) I made change to playmusic startup script so that it won't launch
during bootup if /Music folder is empty

2) Removed the berryboot kernel which makes the zip file smaller.

3) I included omxplayer-loop script (in /usr/bin)
so I can play the mp3 files in /Music without the need of a GUI app




I got the script from Raspberry pi forum...
https://www.raspberrypi.org/forums/view ... hp?t=26277

I modified to
FILES=`ls /aufs/devbase/Music/*.mp3`
____________________________________________



Code: Select all

#!/bin/bash
# infinity-looper-2.sh
# Infinite looping script
# J.E.HUTTING 21-JAN-2017

#set -x # expand the commands

# set here the files to play ---------------------------------------------------
FILES=`ls /aragorn/music/singles/T*.mp3`
# ------------------------------------------------------------------------------
#echo $FILES

# who's playing it
OMXPLAYER="omxplayer"

echo "*****INFINITE LOOPING SCRIPT!!!"
echo "*****ABORT WITH CTRL+C"
while true; do
    while true; do
        IFS=$'\n'   # IFS: Internal field separator
        for entry in $FILES
        do
            IFS=$' \t\n'

            # let's play
            echo $entry
            $OMXPLAYER "$entry" > /dev/null
        done
    done
done

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

headless wireless raspberry pi2

#87 Post by don570 »

headless wireless raspberry pi2

I have found a way to make my Raspberry pi2 into a headless wireless machine
that is connected to a home network.

Method:

I install my version of fatdogarm onto a SD card formatted fat32 in windows as usual. Note: savefile=none

I boot up my raspberry pi and connect to a wireless home network
by using the Control Panel or simply typing 'network-setup.sh' in terminal.

I choose my home network which is Cisco99987 (see image)
from a list of all available.
I made sure it is configured as shown in image.

Check that your wireless network is working by typing 'ifconfig' in terminal.
eth0 Link encap:Ethernet HWaddr b8:27:eb:a8:cd:57
inet addr:192.168.1.138 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fea8:cd57/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:263 errors:0 dropped:1 overruns:0 frame:0
TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19677 (19.2 KiB) TX bytes:20623 (20.1 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3755 (3.6 KiB) TX bytes:3755 (3.6 KiB)

wlan0 Link encap:Ethernet HWaddr 00:24:b2:d7:fb:6c
inet addr:192.168.1.137 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::224:b2ff:fed7:fb6c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:354 errors:0 dropped:0 overruns:0 frame:0
TX packets:123 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:57017 (55.6 KiB) TX bytes:20367 (19.8 KiB)
You can see that there is an internet address for wlan0 ---> 192.168.1.137

Also check if the configuration of the wireless home network has been saved to disk by looking at the file /etc/network-setup/access/....
The file there should have your settings. The password is encoded for safety.
Attachments
screenshot-password.png
(11.3 KiB) Downloaded 269 times
screenshot-wpa.png
configuration that is saved
(26.64 KiB) Downloaded 263 times
screenshot-ssid.png
Choose my home network
(17.56 KiB) Downloaded 261 times
Last edited by don570 on Fri 16 Feb 2018, 01:04, edited 3 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#88 Post by don570 »

Continuing wireless setup...


We need to load a savefile at bootup
The following change to the file cmdline.txt will load the default save file called 'fdsave.ext'

Code: Select all

 pkeys=en waitdev=3 savefile=direct:local   basesfs=device:mmcblk0p1:/fatdogarm/fd-arm.sfs
EDIT: I now use savefile=direct:local when I first boot up

Add any more apps from fatdog's repository if you wish...

Now we create the save file by simply selecting 'Reboot' at the start menu. You are led thru the procedure of creating a save file.
It will be located on your SD card.

Be sure the name is 'fdsave.ext' and save on your sd card.
It will take a couple of minutes to create. This save file has the scripts and apps that you have added.
_________________________________________________________


There are windows utility apps like Advanced ip scanner and putty which are useful for
working with a headless machine.


If you do have a monitor attached to your pi2, then check the wireless
network by typing 'ifconfig' in terminal. You can try 'ping' command
to another machine as well.

When you know the other machine's address you can use 'fatdog connect' to attach to a server in you network.

However I should point out that I want to use this raspberry pi2 as a headless music machine. So I have set it up so
that it plays the music files located in /Music automatically when first booted. It uses the play music script by Thunor.
http://www.murga-linux.com/puppy/viewtopic.php?t=73761
It loops endlessly, so un-plug the computer to stop.

_______________________________________________
Last edited by don570 on Sat 24 Feb 2018, 18:15, edited 6 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#89 Post by don570 »

There are two ways to edit a text file in fatdogarm
if you have a headless machine.

Code: Select all

vi [FILE]
or use midnight commander

Code: Select all

mc -e [FILE]
__________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#90 Post by don570 »

Here are some tips when running a headless wireless raspberry pi2.

1) Good connections are important!! The music should sound clear i.e. no hum, if you
have made the proper connections.

2) First check that your setup is working properly by attaching a HDMI monitor and some speakers (or use headphones as alternative).
Check that your wireless network is connecting consistently when first booted. You can put a music file in /Music folder to check if playmusic script is working.

3) With another PC in your network you can test SSH and x11vnc.
(You will need a x11vnc viewer. Fatdog linux uses
turbovnc viewer

Windows computers use Xming)

____________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#91 Post by don570 »

Some more tips using headless wireless Raspberry pi2.

When you have made SSH connection with a PC,
your raspberry pi computer can use files in a server located in the PC.
(Note : if you have x11vnc up and running then you can use YASSM
but I am describing if you can't get x11vnc to work)

Instructions : Make a folder in /root/network/

mkdir -p /root/network/Shared

then one more command

Code: Select all

mount-Full -t cifs //192.168.1.xxx/SharedDocs   /root/network/Shared
where 192.168.1.xxx is the PC address and SharedDocs is the share folder name
(you should fill in your own parameters for your home network)

You should be able to play music from server using

Code: Select all

cd  /root/network/Shared
omxplayer  [musicfile]
____________________________________________
If found x11vnc easy to setup. First make sure SSH is running correctly.

Code: Select all

ssh root@192.168.1.yyy
where 192.168.1.yyy is my raspberrypi2 address.
Type in password 'woofwoof'
and then type 'x11vnc' in SSH terminal.
Port 5900 is automatically set.

You now need a x11vnc viewer.
Check with your PC repository.
Fatdog linux has it built-in. That is why I like it. 8)
The size of viewer window is small but useable.

________________________________________________


Using SSH you can shutdown your raspberry pi2 using simple command

Code: Select all

poweroff
but power is still connected to board so undo cable .

__________________________________________-
Last edited by don570 on Thu 22 Feb 2018, 00:36, edited 8 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#92 Post by don570 »

Another tip...

I am using a USB wireless adaptor. Of course I want signal strength to be best possible.

Here are two suggestions.
1) Bigger sized adaptors are better. (probably because of attenna size)
A good brand name is Netgear.

2) If you have x11vnc up and running then you can check the signal strength visually.
Click on wireless icon in bottom tray of x11vnc viewer window.

There is strength bar at bottom. (see image) Try several positions for your USB wireless adaptor.
I was able to increase strength from 88 to 92.

Alternative:
If you understand what pinging is then you can probably judge strength
with a 'ping' command
Attachments
screenshot-wireless-fatdogarm.jpg
(47.21 KiB) Downloaded 737 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

headless install of fatdogarm

#93 Post by don570 »

Headless install of fatdogarm

I was able to setup my Raspberry pi2 without the need of a monitor ,keyboard or mouse.
Another computer is needed. x11vnc is used.
This might be of use for a student on a budget.

Here are steps:

Format card fat32 , open zip file folder and drag the files and folders onto the card.

Put card in raspberry pi, connect your ethernet cable . USB wireless
adaptor should be plugged in as well if you want wireless service.

Plug in power cable to start booting process.

Because of headless use a method of sniffing the raspberry pi address is needed.
For windows use advanced IPscan
fatdog linux uses peasyport
There is also a terminal command 'mpscan' that is useful.
.....next post
_________________________________
Attachments
screenshot-peasyport.png
peasyport
(4.95 KiB) Downloaded 661 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#94 Post by don570 »

...continuing.

Using your ethernet cable make a network connection...

Code: Select all

ssh root@192.169.1.yyy
where 192.169.1.yyy is your raspberry pi2 address.

Note: you may have to go inside folder /root/.ssh/ to eliminate an old key

You can now make a wireless network connection using the non-GUI app network-setup.sh
You will select from among all the networks that are available in your neighborhood.


Now it is time to launch x11vnc

Code: Select all

x11vnc  -display  :0 
x11vnc options....
http://www.karlrunge.com/x11vnc/x11vnc_opts.html


Back in fatdog linux PC I launch x11vnc viewer. I can now change
cmdline.txt file ---> savefile=none to savefile=direct:local

Choose to shutdown the raspberry pi2 to make a save file named fdsave.ext which is the default name.

You can now undo the ethernet cable and use your raspberry pi 2 wirelessly and headless.

It's a bit slow to respond to some commands , the startup menu is slow to pop up
but the mouse works fine. I use it to play music.
________________________________________________
Last edited by don570 on Sat 24 Feb 2018, 17:57, edited 1 time in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#95 Post by don570 »

New version on first post:
fatdogarm-02-20-2018.zip

1) removed my personal wireless network info from package :oops:
Fortunately the password is encoded

2) added /usr/share/audio/2barks.au for ptmtimer

3) trashcan and console icon links made

4) fatdog connect app works properly with wireless .
It should now find the server's address automatically,
but share name still needs to filled in properly.
_________________________________________

A tip from James Bond...

To format a SD card in linux ...
First zero out card, then format with gparted.

just do "dd if=/dev/zero of=/dev/<flash-drive-device-name> bs=1M count=1". After doing this Gparted will regard you flash drive as completely empty and will offer to create a new MS-DOS partition table - which you should accept.
_________________________________________________

Post Reply