Hot answers tagged

76

If I understand this and that right, the lite distribution is just a Minimal image based on Debian Jessie without the X-server and its components installed. Meaning it uses less space on the SD-card and can run from a smaller SD card. Installing the minimal image will also reduce traffic during updates (as pointed out by Jacob). Any desired package can still ...


20

I was also eager to know more about the 24/7 capabilities of the Raspberry Pi. Therefore, I installed the app "stress" (sudo apt-get install stress), which is capable of loading the CPU for the full 100% all the time. The best thing about "stress" is that it gives priority to other running processes, it only "fills" the gap till the CPU is loaded for the ...


10

You are going to have to restart your Raspberry Pi (probably by unplugging it, since you can't run the shutdown or reboot commands). You may have to reflash your SD card if this corrupts your image. Some process is leaking memory, so other programs can't use it. To get an idea of what is causing this, run: ps --sort -rss -eo rss,pid,command | head You ...


9

The Raspberry Pi was designed as a low power computer. Low power both in power usage, and cpu workload. (I'm not counting GPU power here) It'll be able to do a lot of what your Ubuntu server can do, but at a lower power usage, and most likely a bit slower. The main things that the Pi has over a computer, is the easily accessible GPIO ports, and it's ...


7

Raspbian is primarily intended to be used as a desktop replacement and/or a network video/media player, so it needs a GUI to fulfil the purpose, and as far as I know there's no separate server (=headless) version because, as you noted, it's very easy to remove the GUI part using standard system methods. Regarding "clean" versus "unclean" installation, you ...


7

The reason why the ISC DHCPv4 server service fails is that at the time it is started the network interface configuration might not have been finished. As systemd cannot know when a service really has become ready (as opposed to have been started successfully), the usual start dependency service unit settings don't help either. Often, you'll find ugly ...


6

This answer is not specific to the raspberry pi, but is general advice for remote administered servers. ssh. Using secure shell is almost as good as being there. serial console and out of band administration: if you screw up your network interface having a second way to login is a lifesaver. a simple way would be to have a Identical backup machine running ...


6

I assume you want the script to run on boot, but without having to log in. There are many ways to do this, but you could just put your code into rc.local NOTE You do not need sudo, as the startup code is running as root. You cannot edit etc/rc.local directly as it is owned by root; make a copy to edit and replace the original (with the correct permissions)...


6

For video streaming, both the pi and Android can make use of DLNA via various client/server applications (on raspbian, see rygel or minidlna), although I'm not sure if those can be made to suit your purposes. For just logging onto the pi, there are SSH clients for Android -- "Juice SSH" is good.


6

You need to set up port forwarding on your router. Then you can use your (router's) public IP to access your raspberry pi from outside.


6

Size-wise lite is 1GB smaller (300MB vs 1.32GB)


6

I believe async and await are for python 3.5, I think you'll need to use the @asyncio.coroutine decorator for async def and yield from for await in python 3.4


6

sudo apt install lynx Then use lynx https://example.com/example.zip Or without installing anything extra wget https://example.com/example.zip or curl https://example.com/example.zip


5

As concern over long-term SD card reliability is frequently mentioned (and is a valid concern, especially for low-quality SD cards), there is another approach: initramfs (or initrd). This requires a little more dirty work, but essentially you need to rebuild a kernel with your own initramfs (or separately build an initrd). The initramfs would include ...


5

post-down script; Write a script to call 'reboot' as /path/to/script.sh Edit your /etc/network/interfaces file and add a line just below your eth0 config. auto eth0 iface eth0 inet static name "Ethernet0" address 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 network 192.168.1.0 gateway 192.168.1.254 post-down /path/to/script.sh Your /path/to/...


5

You won't see a big difference either way; GUI applications are actually not CPU intensive. Or at least, the GUI part of them is not; they may or may not be doing other things that are. To qualify that a bit further, if the application involves image processing or rendering special types of graphical documents (.pdf, etc.) to the screen, that's sort of an ...


5

I'm no Python expert but I'm surprised that in the server function you create the HTTP socket within the infinite loop. So basically (if I'm not mistaken) you create after each request handling a new server binding. Therefore, I'm not surprised that you get address already in use. Solution: Try to move the server = HTTPServer(('',port),CamHandler) before ...


4

Did you try using a SWAP-File? http://jankarres.de/2012/11/raspberry-pi-swap-erweitern/ The Tutorial is in German but the commands should be the same ;)


4

Have you tried googling 'Minecraft Bukkit Server system requirements', google is your friend you know. (No offence, but The first result, second response here gives a rough idea: Your biggest issue running a minecraft server seems to be the RAM. If everyone is in the same chunk, you're fine. When everyone has their own chunk and the 80 chunks around ...


4

Great to hear you have just recieved your Raspberry Pi! Instructions to set up the Pi's in the format you desire is documented incredibly well at http://www.southampton.ac.uk/~sjc/raspberrypi/pi_supercomputer_southampton.htm by Professor Simon Cox, the man who originally set up the idea. I hope this helped you and I cannot wait to see what you make with ...


4

For the server, it makes sense to obtain the hostname via host = socket.gethostname() But how should the client know to whom to connect if you use the same command there? In the client host = socket.gethostname() print (host) prints the name of the client, not the host, isn't it? Here, you might want to give the hostname of the server explicitly. ...


4

I was thinking about something similiar but being done with spare motherboards in my house. Clusters don't work like normal PCs. A cluster of slow computers is not the same as one fast. Clusters are designed to run cluster-targeted software. This software is coded to divide similiar parts of work to be done onto smaller pieces ready to be executed paralelly ...


4

It might be an evironment issue. java -Xmx1024M -Xms512M -jar minecraft_server.1.8.1.jar nogui That isn't telling it where minecraft_server.1.8.1.jar is located so it needs to be executed from the same directory. I would try adding the full path to the jar file in your start.sh like this: java -Xmx1024M -Xms512M -jar /home/pi/MinecraftServer/...


4

With only 1 GB RAM, the RPi 2B is unlikely to do be able to handle 3 virtual machines running Vista (??).


4

I'm port forwarding on my Raspberry Pi by adding these lines right before the exit line in /etc/rc.local: # Forward port 80 to 5000 (where our web server is) so the # web server can run at normal permissions iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5000 This allows me to request on port 80, but have the web server running at ...


4

I am afraid that those boards will not play nice in the sandbox together - at least not as supplied and without further hacks. The Amp+ and the DAC+ board share the following pins (see here GPIO usage): GPIO 2 and 3 for configuration GPIO 28 through 31 for the sound interface For pins 28..31 they also explicitely state that: You can’t use them for any ...


4

You're obviously running out of memory. Without knowing what exactly you're running on your system it's hard to advise, but check out two main suggestions: 1. Configure your web server. Go though /etc/nginx/nginx.conf and reduce settings which could use RAM (number of simultaneous connections, buffer sizes, etc.) If you're using web scripts (PHP and friends)...


4

Assuming you installed Apache via apt-get it will restart on startup without you needing to do anything. You can verify it is running by doing the following: sudo service apache2 status Since you mention that you do not need it all the time you can use a similar command to start: sudo service apache2 start stop: sudo service apache2 stop and restart: ...


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