Go to advanced search

by smithg400
Tue Jun 21, 2016 7:56 pm
Forum: Device Tree
Topic: Understanding w1-gpio and w1-gpio-pullup
Replies: 3
Views: 2834

Re: Understanding w1-gpio and w1-gpio-pullup

Just trying to understand the differences
by smithg400
Tue Jun 21, 2016 7:21 pm
Forum: Device Tree
Topic: Understanding w1-gpio and w1-gpio-pullup
Replies: 3
Views: 2834

Understanding w1-gpio and w1-gpio-pullup

Could someone kindly explain (or point me in the direction of some clear documentation) the difference(s) between the dtoverlays w1-gpio and w1-gpio-pullup and their parameters. I can see that for w1-gpio-pullup an extra pin (default GPIO #5) is used - but what for / how is it connected? And each op...
by smithg400
Mon Jan 04, 2016 10:59 pm
Forum: Troubleshooting
Topic: Issue with dhcp server
Replies: 19
Views: 3250

Re: Issue with dhcp server

Not sure if it will help, but I had a similar problem with some wireless clients when using dnsmasq as my DHCP server. It seems some old clients don't work if the dhcp response from the server is sent to a specific hardware address and the response has to be broadcast instead - they should ask that ...
by smithg400
Tue Apr 22, 2014 5:27 am
Forum: Beginners
Topic: How to fill to ENTIRE screen for VNC?
Replies: 2
Views: 6990

Re: How to fill to ENTIRE screen for VNC?

I'm assuming that the resolution of the projector attached to the Pi is higher than that of the display on the PC you are using. If this is the case you will get the behaviour you are experiencing. The Pi is using the full screen but the PC isn't sending enough pixels to fill it. For example if the ...
by smithg400
Tue Apr 22, 2014 4:48 am
Forum: Beginners
Topic: Can't stop rc.local script
Replies: 14
Views: 14070

Re: Can't stop rc.local script

Firstly the init=/bin/sh trick should work. Did you append it to the line in cmdline.txt or append it to the file as a second line? The command in cmdline.txt has to be on a single line. The init= option instructs the kernel what to run as a first command, if you don't specify it then the kernel, by...
by smithg400
Mon Apr 14, 2014 6:09 pm
Forum: Troubleshooting
Topic: Removed Raspi-Config... how??
Replies: 10
Views: 1761

Re: Removed Raspi-Config... how??

After reinstalling raspi-conifg, try

Code: Select all

dpkg -s raspi-config
the output includes the list of dependancies.
by smithg400
Mon Apr 14, 2014 5:31 pm
Forum: Troubleshooting
Topic: Removed Raspi-Config... how??
Replies: 10
Views: 1761

Re: Removed Raspi-Config... how??

As lua5.1 is a dependancy of raspi-config it should automatically install it when you install raspi-config
by smithg400
Mon Apr 14, 2014 3:08 pm
Forum: Troubleshooting
Topic: Removed Raspi-Config... how??
Replies: 10
Views: 1761

Re: Removed Raspi-Config... how??

raspi-config is contained in a package called raspi-config, so "sudo apt-get install raspi-config" should install it again
by smithg400
Mon Apr 14, 2014 2:43 pm
Forum: Beginners
Topic: setting up internet connection
Replies: 7
Views: 3377

Re: setting up internet connection

No I'm afraid you can't use that router - you need one with an ethernet WAN connection. I'd assumed that you'd tried to bridge 2 ethernet connections on your PC, so had 2 ethernet ports. Obviously an incorrect assumption. There are three solutions I can think of: 1) Buy a suitable router 2) Buy an e...
by smithg400
Mon Apr 14, 2014 4:24 am
Forum: Beginners
Topic: setting up internet connection
Replies: 7
Views: 3377

Re: setting up internet connection

From what you've said it appears that you have two ethernet connections available on your PC. If that is the case then the simplest solution is to setup internet connection sharing on your windows PC. You can't bridge the ethernet connections because your of your dial-up connection via the modem, th...
by smithg400
Mon Apr 14, 2014 3:55 am
Forum: Beginners
Topic: The user Pi seems to be super user?
Replies: 13
Views: 2167

Re: The user Pi seems to be super user?

Alternatively edit the sudoers file (sudo visudo) and remove the NOPASSWD: option from the pi user and it will go back to prompting for a password when the pi user uses sudo.
by smithg400
Tue Apr 08, 2014 6:27 am
Forum: Beginners
Topic: Daily update from network drive
Replies: 2
Views: 455

Re: Daily update from network drive

To actually copy the file you have a couple of options. You could mount the windows share as a directory on your Pi - if you search for 'mount windows share in linux' (or similar) I'm sure you'll find plenty of instructions on how to do that. However if you just want to copy one file you'll find the...
by smithg400
Sat Apr 05, 2014 12:12 pm
Forum: Beginners
Topic: Debian wheezy - fsck of root file system??
Replies: 3
Views: 3956

Re: Debian wheezy - fsck of root file system??

Are you saying 'sudo shutdown -F -r now' doesn't do a root filesystem check at boot? It certainly does on my system. The kernel mounts the root filesystem read-only, does a filesystem check and then remounts the root filesystem read-write. If you want to do things manually, you can always do a basic...
by smithg400
Mon Mar 31, 2014 8:47 pm
Forum: Beginners
Topic: Connecting a 16mm latching button to pi + breadboard
Replies: 7
Views: 1266

Re: Connecting a 16mm latching button to pi + breadboard

Hard to say exactly what you have there just given the picture. It could be that it contains two switches and (for example) pins 1 & 2 are one switch and 3 & 4 another. It could be that it is illuminated and pins 1 & 2 are the switch and pins 3 & 4 connect to the light. It could also be many other t...
by smithg400
Mon Mar 31, 2014 6:51 am
Forum: General discussion
Topic: script editing issue
Replies: 4
Views: 863

Re: script editing issue

Just a little clarification here, in the case of the vnc server invocation the :0, :1, :2 etc. isn't identifying which display to connect to, but rather which virtual display number the server is to become. Remember that when the X Desktop system was developed computers were very expensive (10s of t...
by smithg400
Sun Mar 30, 2014 7:25 am
Forum: Beginners
Topic: Last command executed before halt?
Replies: 3
Views: 1259

Re: Last command executed before halt?

When changing runlevel (which includes starting up, shutting down, rebooting etc.) Raspbian runs the scripts in the /etc/rcN.d directory (where N is the runlevel the system is entering). All the files in these directories start with either the letter K or the letter S and then two digits - the K ind...
by smithg400
Sat Mar 29, 2014 6:07 pm
Forum: Beginners
Topic: installing codec license keys
Replies: 3
Views: 2376

Re: installing codec license keys

You'll find that this is covered in the RaspBMC support forum here: http://forum.stmlabs.com/showthread.php?tid=2366

Hope it helps.
by smithg400
Tue Mar 25, 2014 10:48 pm
Forum: Other programming languages
Topic: Using scp to backup a directory, creating new directory?
Replies: 5
Views: 2935

Re: Using scp to backup a directory, creating new directory?

rsync is probably the way to go here but for future reference I think you'll find that

Code: Select all

scp -r /var/www/media/. [email protected]:/home/pi/archive/$(date +"%y%m%d")
would have given you the behaviour you were after - the additional "." makes all the difference!
by smithg400
Mon Mar 17, 2014 7:15 am
Forum: General discussion
Topic: Port forwarding issue with pi
Replies: 14
Views: 2042

Re: Port forwarding issue with pi

I'd first agree that VNC isn't the most secure protocol to be opening up to the outside world and you'd be far better off setting up a VPN to allow access to your network - you then wouldn't need to do the port forwarding. However given you want to do this then reading through these posts I can see:...
by smithg400
Sat Mar 15, 2014 5:52 am
Forum: Beginners
Topic: Trying to understand some basic commands
Replies: 4
Views: 1297

Re: Trying to understand some basic commands

If a file already exists in the directory you are in with the name you are trying to create then the 'ln -s' will fail. Just before creating the link find out what is already there by issuing the command ls -l librxtxSerial.so If this produces something that looks similar to this lrwxrwxrwx 1 pi pi ...
by smithg400
Mon Mar 10, 2014 7:15 am
Forum: Troubleshooting
Topic: Need to fix inittab (Solved)
Replies: 4
Views: 1290

Re: Need to fix inittab

Try following these instructions on resetting a lost password http://rpi.tnet.com/project/faqs/resetpasswd but having remounted the root filesystem read-write, instead of issuing the command to reset the password, you can fix your error.
by smithg400
Mon Mar 10, 2014 6:35 am
Forum: Beginners
Topic: Debian wheezy - fsck of root file system??
Replies: 3
Views: 3956

Re: Debian wheezy - fsck of root file system??

Just reboot the pi2 with the force fsck option set, i.e. sudo shutdown -F -r now The -F option requests that a filesystem check is done on reboot. By default the filesystems aren't checked every time a linux system boots (it would take too long) but are checked if any of he following conditions occu...
by smithg400
Sat Mar 08, 2014 2:28 pm
Forum: Beginners
Topic: New to Pi. Help with project
Replies: 4
Views: 669

Re: New to Pi. Help with project

Actually I think that article explains how to create a wireless bridge to connect a wired ethernet client device (like a TV) to a wireless network. The original question was asking to create a wireless network in the bedroom, where their current wireless network doesn't reach, and send it down a wir...
by smithg400
Wed Mar 05, 2014 6:06 am
Forum: Beginners
Topic: Data Logging
Replies: 4
Views: 1235

Re: Data Logging

Simplifying it slightly, but when you close the connection the operating system sends a 'hangup' signal to all the processes started by that connection and by default the hangup signal causes the processes to close - this is designed to tidy up when you logoff. The solution is to run the program in ...
by smithg400
Mon Mar 03, 2014 8:22 pm
Forum: Beginners
Topic: Firs Pi start
Replies: 2
Views: 533

Re: Firs Pi start

en4 looks like the name of an Ethernet device on your macbook, Mac ethernet devices are usually en0, en1, ... whereas the pi Ethernet device is called eth0 usually. I'm assuming you typed ifconfig on your macbook so what you've got is an IP address for your macbook and you are trying to SSH back to ...

Go to advanced search