Hot answers tagged

40

For Raspbian Jessie From this document: We will use dnsmasq package for this purpose because it is combined DHCP and DNS server and also easy to configure. If you want something a little more 'heavyweight', you can use the isc-dhcp-server and bind9 packages for DHCP and DNS respectively, but for our purposes, dnsmasq works just fine. sudo apt-...


13

try reversing the slashes and pointing to the root mnt folder sudo mount -t cifs -o username=USERNAME,password=PASSWORD //192.168.2.12/TestShare /mnt/ if your password or username contains special characters try simplifying them.


13

Github.com gitlab.org bitbucket.org anywhere code related really


9

To have a jsfiddle-like shareable link for your scripts, create a Github account, and save your scripts as GISTs: https://gist.github.com/ You will be able to update them in the future if you need. Regarding a place to post them, I think you are looking for the wrong thing. You want a place to share Raspian stuff, not Raspberry right? RaspberyPI is just the ...


6

One place to go to - if you care about some explaining of those scripts too - would be our official+ blog Piversify: Piversify is a blog dedicated to the Raspberry Pi, written by members of the raspberrypi.stackexchange.com community. Here's the procedure how to contribute. + Piversify is not hosted by or otherwise linked to StackExchange itself or ...


6

Being your purpose provide internet access to your LAN devices, will assume double 'NAT' will not be a big issue. With this configuration you will provide wireless access to non WiFi devices that will benefit from internet access. Prerequisite Make sure your Wi-Fi is properly configured and working. if something goes bad your access to the device through ...


5

Please before you start commenting about breaking the law etc etc notice that there are many freeware programs out there which you can download and share freely. Also, I would have posted more links for the software you need to do this, but I do not have enough reputation First of all these are the things you need to start your project Your Raspberry Pi A ...


3

Utilize Microsoft's Common Interface File System (cifs) - the core of Microsoft's LAN Manager. (You can safely skip this tech info and proceed with the steps listed below) https://technet.microsoft.com/en-us/library/cc939973.aspx The Common Internet File System (CIFS) is the standard way that computer users share files across corporate intranets and the ...


3

This used to be really simple, you could just use a device uri like usb:/dev/usb/lp0. Unfortunately, this has been deliberately removed. It can be enabled again by replacing just a line that signals failure with the open of the device file, but it requires a recompile of the usb backend. If you want to avoid the recompile, you can try the parallel backend, ...


3

I do not understand why VSFTPD, ProFTPD, PureFTPD should not work. They all are available from the default Raspbian repository. You should be able to just install one of them, configure and run it. But anyway, if you use default Raspbian Stretch then there is no need to install any FTP server. ssh has a sftp server module that is installed by default: rpi ~...


3

Create a mountpoint for your share: sudo mkdir /media/winshare sudo chown pi:pi /media/winshare Create a smbcred file: nano /home/pi/.smbcred Write the following into it (replace username and password) : username=username password=paswword Save (CTRL-O) and exit (CTRL-X). The dot at the beginning of the filename indicates a hidden file. Hidden files ...


2

Install SAMBA sudo apt-get install samba Then create a directory in your mnt folder, and mount your Windows share to the folder. Make sure your windows share allows ananoymous or myuser read and write without password su (make sure you do this as root) mkdir /mnt/linky_share mount -t cifs -o user=myuser //192.168.1.104/share /mnt/samba_share <enter> ...


2

You can create a shared directory on Windows in the normal way. (If you don't know how to do this the Pi site is not the best place to ask). The Pi can connect to the shared directory via SMB (Samba). You will find lots of discussion on this. One tutorial http://www.raspberrypihelp.net/tutorials/12-mount-a-samba-share-on-raspberry-pi If you have more ...


2

If the power goes off (blackout) the Raspberry Pi should boot up again when the power is there again (it's like pulling and plugging the power adapter). If you didn't do it already, enable remote SSH access for the time you are away, this way you can connect and configure the device. If you have a dynamic IP address, then you'll need a dynamic DNS to be ...


2

I have seen this problem both after a power outage and, occasionally, if the NAS has 'gone to sleep'. The following bit of script has 'cured' the problem for me. You could put this in a while-loop with a counter and raise an alarm after too many tries. I haven't needed to do that. #!/bin/bash # check if the NAS is available. just need to check if we can ...


2

There are various programs that utilize SFTP, which is the file protocol that runs on the SSH port as well. Programs such as Filezilla, WinSCP, and others allow this type of connection. When using the program, input the IP of the Pi, and the username and password of your account when logging into SSH, and it will direct you to your /home/{user} directory or /...


2

Ok. I was able to get it to work. Things to note: With current version of Raspbian (JESSE/LITE), the use of /etc/network/interfaces is obsolete. But keep it as it is used by if-up and if-down scripts. My Setup Gave Raspberry Pi's eth0 a static IP address, connected to router's WAN port. Gave router a static IP address on the same network with the ...


2

If you just want to read the files, you can install nginx on your Pi and share the directory that has the files you want everybody else to read. This is read only, is pretty simple and very light weight. You then get your files by using anything really. Another way is to create NFS shares, these should work well between Pi's if you are on the same network....


1

I did something similar and used this basic set-up: Remotes controlling sensors send data to central. In my case I send JSON with the data over http. Central stores data in a MySQL database when the message is received. Central runs a webserver with a visual interface to retrieve the data for users. I was only measuring whereas you want to provide control, ...


1

I had the same ideas before and after some research I found that we can share it as an open source project in Github. That's why I have created new Repository for this purpose and anybody can contribute in it. It's the project of usage Raspberry Pi & Co in home usage. If it's interesting for you - follow this link.


1

So in frustration, I've thrown a little site together that has one script on it so far. It's very much a static site. I plan on adding a comments section on it later, but for now, it's very much non-interactive. If you've any feedback on it (positive or negative) let me know. http://bash.blyzz.com/ I hope the stackexchange sites don't mind me imitating ...


1

It depends on which OS you are using and how you have configured networking. Also you haven't posted your current ifconfig. The default for current Raspbian is dhcpcd (which does an excellent job and is quite robust). The problem is it tries to automatically configure ALL network interfaces. This probably means it is trying to get an IP address for eth0 ...


1

See this good tutorial for how to set up lprng on a Raspberry Pi.


1

I would not expect //$server/$share to resolve as a host name using DNS or WINS. $server is (presumably) the host name. It looks like you can ping it by name (e.g. ping server) by omitting the $share and extraneous '/' portions of the commands that fail, so you are getting name resolution. That would be the expected result.


1

installing these helps resolve windows hostnames: sudo apt-get install samba winbind sudo nano /etc/nsswitch.conf and change 'hosts: files dns' TO 'hosts: files wins dns' if your rpi is on a static ip you may have to add the dns server in the /etc/resolve.conf


1

It works following way ,too sudo mount -t cifs -o username=USERNAME,password=PASSWORD '\\192.168.2.12\TestShare' /mnt/


1

While I was reading the image a few times the card reader it disconnected, so sometime after that it had stopped working. I had an older version of the image that wasn't corrupt, and imaged the card with that and it works flawlessly. Remember to always safely eject your SD card, and don't use unreliable card readers with the RPi!


1

well you can either transfer them via scp: # Copy the file "foobar.txt" from a remote host to the local host scp your_username@remoteip:foobar.txt /some/local/directory more examples here OR you can just set up a http server with python: go to your directory where the picture is saved and run this command: python -m SimpleHTTPServer This starts a ...


1

I've had this exact same problem using SMB (with a pi as well as without). It was caused by failed hostname resolution issues that were due to conflicting WINS servers on the network. Solution was to connect via IP instead of hostname.


1

In my options I don't have the read only = no option, but a writable = yes option. Did you try this already? Update: I tried the same as you: sharing a external HDD. The problem was, that the HDD was not mounted propperly. So only root could do anything on this directory. There were two methodes which worked for me. 1. force user = root 2. mount -...


Only top voted, non community-wiki answers of a minimum length are eligible