• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

DIYing with the Raspberry Pi?

Would you believe it??? All the files in the Windows Data share are in the /mnt/sambashare folder!

So the Pi is actually connected to the Data share but it says it is not mounted. Can't understand that at all. Maybe the 'not mounted' error is spurious.

Now I need to find why the File Manager cannot open that folder although it can open Users which is not in the sambashare folder.
 
I can now open the Data share folder in the Rapsberry Pi folder.

I can browse using the graphical interface to the Data directory (must start using Linux terms) but when I try to open that Dir. by clicking on it I get the 'Not Mounted' message.

However, if I enter the path: /mnt/mylocalfolder then all is available as normal. Each sub directory/file can be opened by clicking.

I have no idea why I get the error and will chase it down one day but for now having made a bookmark, I am satisfied.

For interest these are the files installed manually:

sudo nano /etc/samba/smb.conf:

[global]
workgroup = myhome
netbios name = newlappy
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = bcast host lmhosts wins

security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
map to guest = bad user

[share]
path = /home/mnt/mylocalfolder
browsable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777

sudo nano /etc/fstab: (On one line)

//192.168.1.4/data /mnt/mylocalfolder cifs username=myusername,password=mypassword,iocharset=utf8,sec=ntlm 0 0

If anyone can see errors I would appreciate a nod in my direction while I have a weekend away from the RPi.
 
I can browse using the graphical interface to the Data directory (must start using Linux terms)
Folders are for Windows woosies. DOS had directories. It took me a while to get used to using "folders" for the benefit of the hoi polloi.
 
Xrdp package is the remote desktop of choice, rather than Vino. Download and install, start woosie Windows RDP you are in!
 
/etc/xdg/autostart/

An entry here may be a better way to autostart the RPi/Windows communications. That is where the Vino entries were to autostart Vino on boot.

Certainly worth a try.
 
Xrdp package is the remote desktop of choice, rather than Vino. Download and install, start woosie Windows RDP you are in!

Not if you want the actual desktop! Should have read the label.

However apparently Windows RDP can communicate with Vino on a port of your choice. I cannot get past the password stage on connecting at the moment.
 
However apparently Windows RDP can communicate with Vino on a port of your choice. I cannot get past the password stage on connecting at the moment.
What Windows are you running? RDP is not available in Win7 Home Premium, for example, you might want to install VNC.
 
What Windows are you running? RDP is not available in Win7 Home Premium, for example, you might want to install VNC.

I have Windows 7 Pro. However I I have not yet tried changing the RDP port as I was sidetracked by xRDP.

I was using TightVNC previously and was trying to get more security. At the moment you cannot change the Vino port because they have removed that facility.
 
This may be helpful to those interested in or considering splashing out on an RPi.

NB. The newest release of Raspbian already has a lot of the software installed, for example, Omxplayer. However, I cannot find a list and as I didn't know what was, I installed/reinstalled/setup everything. If someone has a detailed list of the included software it would be very handy.

Getting started with Raspbian on a Raspberry Pi and Windows 7 Part 1

Start here:
http://www.raspberrypi.org/wp-content/uploads/2012/12/quick-start-guide-v1.1.pdf

Setup the Raspberry Pi:
http://www.raspberrypi.org/quick-start-guide

In raspi-config choose:
1. Expand Filesystem
2. Enable Boot to Desktop
3. Internationalisation Options – Change Times Zones
4. Memory Split – Change if necessary (Allow more for video?)
5. Advanced Options – SSH (If required)
6. Update


Start the Desktop (If not done already)
startx

Download PuTTY:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Log in to your RPi using your IP and password

Update the existing RPi software:
sudo apt-get update

Update the RPi:
sudo apt-get upgrade

Change the Desktop Settings (Too bright for me)
Right click on the desktop and change as required.

Download WinSCP: (Use for transferring test files from PC)
http://winscp.net/eng/download.php

Setup networking (static):
sudo nano /etc/network/interfaces

Insert the following above the existing entry:

# The loopback interface
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static

#your static IP
address 192.168.x.x

#your gateway
gateway 192.168.x.x
netmask 255.255.255.0

#your network address "family"
network 192.168.x.0
broadcast 192.168.x.255

Save: (Ctrl+X; Y; Enter)


Install Vino: (Reseach possible security problem)

Install the vino server
sudo apt-get install vino

Execute the vino preferences script:

Using the keyboard, open a LXTerminal window, enter:

vino-preferences

In the window which opens:

Tick the “Allow users to view your desktop”
Tick the “Allow other users to control your desktop”
Untick the “You must confirm each access to this machine”
Tick the “Require the user to enter this password” (Enter a password; can be same as the RPi password)
Close the window

Create an autostart file:
sudo nano /etc/xdg/autostart/vino.desktop

Enter:

[Desktop Entry]
Type=Application
Exec=/usr/lib/vino/vino-server
Hidden=false
NoDisplay=true
Name=vino
Comment=shared access desktop server

Save (Ctrl+X; Y; Enter)

Reboot:
sudo reboot

Test:
sudo netstat -nlp | grep vino

Should say:
tcp 0 0 0.0.0.0:5800 0.0.0.0:* LISTEN 2757/vino-server
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 2757/vino-server

Install TightVNC on your Windows 7 PC
http://www.tightvnc.com/download.php

Enter the IP of the RPi.
Enter the password and connect to the displayed screen (Now breath again)

Sound is already loaded:

Test installation:
aplay /usr/share/sounds/alsa/Front_Center.wav
speaker-test -t sine -f 440 -c 2 -s 1

Also try:

wget http://www.freespecialeffects.co.uk/soundfx/household/bubbling_water_1.mp3

Playing an MP3 Using Omxplayer:

omxplayer bubbling_water_1.mp3
 
'sudo -s' is the more usual form but both work!


Posted on the move; please excuse any brevity.
 
Back
Top