The discussion of the Alien series of films and the props used in them is the aim, but if it's got Big Bugs and Big Guns, then they are welcome too!





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Linux SDcard setup for Raspberry pi
PostPosted: Sat Sep 23, 2017 8:12 pm 

Country: United States
Download your image here:
https://www.raspberrypi.org/downloads/
noobs or raspbian will work. If you have a weird network setup or are using WEP like me you will need to download the full image and not the lite image. Also bear in mind the lite image will miss a lot of the simple components you might need on some of your builds.

on mac or PC run the sdcard formatter utility
https://www.sdcard.org/downloads/formatter_4/


open a terminal window
run: diskutil list
note your sdcard partition:
on mine it was /dev/rdisk2

change directory to your folder containing your image file(s) and run:
sudo dd bs=1m if=raspianstretch.img of=/dev/rdisk2
you will get output:
Password:
1768+1 records in
1768+1 records out
1854418944 bytes transferred in 125.531660 secs (14772520 bytes/sec)

Device will then auto mount. Dismount and you are ready to boot your raspberry pi.
Note the raspberry pi WILL NOT BOOT if it DOES NOT SEE a proper boot image.
Here is a quick search result for a page listing compatible cards: http://www.raspberry-pi.co.uk/2012/06/0 ... -sd-cards/

Rule of thumb: if you pay less than 10 for the card it might not work with your pi.
I found this out the hard way when I spent all morning trying to get a few Sdcards off of wish.com to work only to find that there is a firmware compatibility issue with the pis and certain cheap scares something to do with data image leveling and communications issues. Hopes are that this will get fixed soon.

Given the fact many builds are now starting to use these I am not sure if this is sticky worthy or not.

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Initial OS setup
PostPosted: Sun Sep 24, 2017 2:07 pm 

Country: United States
OS setup.


Now since I am using web based security I had to hack my interface file in \etc\network

and change below the line : auto wlan0
allow-hotplug walnut
iface wlan0 net dhcp (it was manual)
# comment out the reference to the wpa supplicant
# replace dhcp with static above if you need an unchanging IP
# these are the options used to statically assign an IP address
# address 10.0.0.41
# netmask 255.255.255.0
# network 10.0.0.0
# broadcast 10.0.0.255
# gateway 10.0.0.1
wireless-essid your-ssid-here
wireless-key your-key-goes-here
wireless-channel 6
# use static ip with ad-hoc networks.
# wireless-mode ad-hoc
# iface default net dhcp

(add as shown if you do not see the lines in your interfaces file, then reboot after other adjustments made.)

since I was using nano invoked with the sudo command as per standard security measures (su - and staying as root is disabled by default)

now update your wpa_supplicant:
at the end hit enter and add:
network={
ssid="yourssidhere"
key_mgmt=NONE
web_key0="yourkeyhere"
}

hit cntrl+x and hit y and then enter.

now once you do all that
run:
sudo /etc/init.d/networking restart
sudo service wpa_supplicant stop
sudo service wpa_supplicant start
sudo ifdown wlan0
sudo ifup wlan0



You should see a stream of dhcp ack and offer messages indicating you are now getting an IP address.

If using ad-hoc networks, add this to /etc/rc.local
before the start scripts:

ifconfig wlan0 up
iwconfig wlan0 essid test

Now that you are on the network.

Update your pi:
run:
sudo apt-get update
wait
sudo apt-get dist-upgrade
sudo rpi-update
wait
y
and enter

Generally speaking update your pie to the latest version there are numerous performance issues and bugs that are rapidly being addressed and fixed and this especially applies with the raspberry pi.

_________________
The impossible takes a while longer and goes over budget too...


Last edited by knoxvilles_joker on Fri Sep 29, 2017 12:18 am, edited 4 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Set your keyboard nationality/localization options
PostPosted: Sun Sep 24, 2017 6:06 pm 

Country: United States
If you have issues mapping keys correctly. In the states run this:

setxkbmap -layout us

you can access raspberry pi configuration from the X-window session. If you don't have that type: "startx" without quotation marks and hit enter.

From the command line run:
sudo raspi-config

you can set localisation options there or from the GUI windows session.

_________________
The impossible takes a while longer and goes over budget too...


Last edited by knoxvilles_joker on Sun Sep 24, 2017 7:15 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: streaming camera
PostPosted: Sun Sep 24, 2017 6:55 pm 

Country: United States
sudo apt-get install vlc

streamer with the pi camera:

raspivid -h 600 -w 800 -o - -t 0 | cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264

on client device:
launch vlc
open network
address http://x.x.x.x:8090

on the client pi run:

omxplayer -o hdmi http://x.x.x.x:8090

vlc will not work properly with the pi due to the software decoding quirks and lack of a VPU and use of CPU processing.

_________________
The impossible takes a while longer and goes over budget too...


Last edited by knoxvilles_joker on Tue Sep 26, 2017 11:43 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: set script to launch at startup
PostPosted: Sun Sep 24, 2017 8:24 pm 

Country: United States
I have not had luck with this:
crontab -e
@reboot nohup /boot/camera.sh &

I instead have to do this:
sudo nano /etc/rc.local

before exit 0
add
nohup /boot/camera.sh &

add "sleep 30" or some other number within the camera.sh.
You want to have a login screen so you can kill the script really quick after boot up in case you need to tweak something as there will be no way to exit the camera.sh script otherwise.

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Re: Network troubleshooting
PostPosted: Fri Sep 29, 2017 12:30 am 

Country: United States
OK first for wireless connections, IWLIST and IWCONFIG are your friends. Second the network setup with jessie and raspbian is a little iffy for the pi zero ws. I have tried to include sufficient information to cover getting it working from the command line.

You can manually set parameters with IWCONFIG that you can later save to /etc/network/interfaces.

for example:

sudo iwconfig wlan0 essid test mode ad-hoc channel 6

sets your interface wlan0 with an said of test in ad-hoc mode on channel 6 (default is channel 1 which tends to be congested.)

sudo ifconfig wlan0 down
sudo ifconfig wlan0 up

shuts down and starts back up interface wlan0.

ifconfig lists all active interfaces. If you do not see wlan0 or eth0 the interface is not online or up.

TO setup ad-hoc mode:

sudo iwconfig wlan0 mode ad-hoc
sudo iwconfig wlan0 esset yourssid

then run
iwconfig wlan0
if it says no cell associated then check your settings on both computers

If using ad-hoc networks, add this to /etc/rc.local
before the start scripts:

ifconfig wlan0 up
iwconfig wlan0 essid test

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
 Post subject: Not all distress are the same
PostPosted: Mon Oct 02, 2017 11:38 am 

Country: United States
Apparently only NOOBS works OK with the pi zero w.

Jessie Stretch that I spent the past week on will not work properly with the motion tracker setup.

_________________
The impossible takes a while longer and goes over budget too...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: