If look at the /etc/init.d/skeleton script, in the beginning of it there are two marks : ### BEGIN INIT INFO and ### END INIT INFO.
All the data inside those marks is the configuration for runtime dependences and you can look them up in the Debian Wiki.
Your script is missing these tags and configuration so insserv just uses some defaults.
This is just a ...
You can install Python 3 easily:
$ sudo apt-get install python3
However: I wouldn't recommend settting this as the default version of Python.
If you're not already, starting using virtualenv, a tool for creating 'sandboxed' Python environments. Virtualenv will let you install multiple versions of Python without them conflicting with each other.
You can use the same number used for buying the MPEG license.
Quoting MPEG-2 license key:
To find your serial number, type cat /proc/cpuinfo at the command
line as shown below:
pi@raspberrypi:~$ cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : swp half thumb fastmult vfp edsp java ...
The Gammu documentation suggests (but doesn't go into any detail of) a workaround,
Edit: Atmel has an Application Note that nicely describes the enumeration process.
Enumeration changes because it happens in a conversation between host, hub and device, and response timing from each of these may vary, even if the setup is identical from one reboot to the ...
Whichy display are you using to display your graphics? I believe that display 0 is the HDMI output on the Pi.
You'll need to tell pygame to use the TFT:
os.environ["SDL_FBDEV"] = "/dev/fb1"
You can directly call pygame.init() after this. No need to deal with different drivers etc. etc.
[Most of this answer is outdated and will not be useful with versions of Raspbian beyond the first one, "jessie".]
If all the ethernet lights are on when the cable is in, and you can connect a monitor and keyboard or a serial line as John suggests, you should be able to get the connection up.
First, just run ifconfig. Possibly eth is not up, and you will ...
For a lot of newcomers the problem is not necessarily the SD card/installation, but rather the communication with your monitor (as Eric Wilson rightly asks above). Many people reuse an old(er) 'VGA' (or similar, SVGA, XVGA) monitor with the PC-style VGA connector, and then use an HDMI-to-VGA 'adaptor'. BUT there are 'issues' with this, that require you to ...
You've partially answered your own question, but there is another way of doing it, especially for serial devices: the /dev/serial/* paths. I have a Prolific USB→RS232 interface on my Raspberry Pi which almost invariably shows up as /dev/ttyUSB0. But it also appears on the system as:
Is there a command that I can run to clean up (uninstall) all non essential packages
No, since "non-essential" is hugely subjective. If you mean, the bare minimum to have a running system, then that wouldn't include things that make it a "server". If you mean, just the bare minimum plus whatever you need to make it a server, this begs the question, "What ...
Did you try to keep a ping command running on the Raspberry (ping your router IP for example)? Does it stop after awhile? Or does it work but you can't connect to SSH somehow?
Disable WiFi power saving
Are you using power saving mode on the WiFi dongle? Check it:
$ iw wlan0 get power_save
Power save: on
If it is ON, perhaps try to ...
Not comming up with a complete answer but some thoughts on that matter.
Let's have a look at the hardware side: schematics unfortunately not helpful for the Pi B+ and not even available for the Pi2, so we are stuck with B Rev 2.1 here for now.
The audio output of the headphone jack is generated by PWM. Right from the BCM2835's GPIO pins 40 and 45 through a ...
You can for example create a ramdisk with 8MB size like so mkfs -q /dev/ram1 8192. So you just have to put the size of the ramdisk as the last parameter to mkfs.
But why didn't you think about using tmpfs?
tmpfs is great because it is capable of using swap and the memory is dynamically allocated.
You can create a tmpfs like that: mount -t tmpfs -o size=16M,...
Zip files are quite easy to create on the Pi.
It is as simple as running one command:
zip -r zip-name directory-to-be-zipped
This will zip directory-to-be-zipped into a zipfile named zip-name. The -r bit is necessary, otherwise the program that makes zip files won't go into directories recursively.
It's not a problem for root. Because on ext filesystems 'root' user has extra %5 reserved space on filesystem while formatting. If that reserved space filled up you will not create file/dir on filesystem neither. Delete some files on your filesystem to get free space.
The 8GB is only the guideline size of a card. Because of the nature of flash memory and management of dead cells there are slight variations in actual usable space.
This usable space will also decrease as the card gets older and older. With SSD's and SD cards like this it is a good idea to leave a small amount of space that is unused. I would say about 1% ...
For the sake of providing an answer specific to raspbian.
The background is set via /etc/alternatives/desktop-background so the background can be changed through two different ways:
sudo update-alternatives --config desktop-background and you will get a list to choose from. Those are background provided by packages.
manually overwrite the /etc/alternatives/...
Take a look at man shutdown. There it says:
/sbin/shutdown [-akrhPHfFnc] [-t sec] time [warning message]
So when you are using shutdown you can send out a warning message:
sudo shutdown -h 12:30 'System will go down due to rainy weather.'
It will also print the number of minutes until shutdown. This should be sent to all users logged ...
To run your program just add it to ~/.bashrc using sudo, as the pi user has sudoers permissions without password authentication already, this way the program will be started when you login.
What you can do instead to is create a service unit, is you are using arch on your pi just create a new systemd unit file in /etc/systemd/system and then enable it, the ...
First, you went about this the wrong way. If you had simply disabled the service (update-rc.d -f dphys-swapfile) instead, it would be much easier to fix.
You could also have just added
dphys-swapfile swap off
Next, I want you to read this, and if you then are not convinced that the unfounded and absurd concerns about ...
After plugging in the device, (or after boot if it's already plugged in), you should see in dmesg what the device has been registered as in /dev. The device registration will also trigger a udev call. You can create a custom rule to always assign it to a specific device.
For example, creating a /udev/rules.d/90serial file with this should work, and create /...
It outputs current at 800 ma/h
I think this measurement/units are wrong. Amps are defined as Coulombs/s. So your current cannot be 800 mA/h. Your output current is 800mA. You can give a measure of the energy hours stored in the battery using a unit like A*h. But I digress...
What matters here is the output current, I think as long as you're close to 1Amp ...
Ok, so I figured it out:
I needed to comment out one line in /etc/ld.so.preload file by adding # at the line beginning before starting Raspbian (problems with booting disappeared) and use:
qemu-system-armw.exe -M versatilepb -m 256 -cpu arm1176 -no-reboot -serial stdio -kernel kernel-qemu -hda rpi_disk.vmdk -append "root=/dev/sda2 panic=1"
command to ...
Problem solved. Actually I've made some local change in sources.list file according to local server.Now I've changed it and make it as original.
Use sudo apt-get update and sudo apt-get install libgtk-3-dev(for gtk-3) or sudo apt-get install libgtk2.0-dev(for gtk-2) Now its working.
Since Pi 2 has a ARM Cortex-A7 CPU it does not depend on the hard float modification anymore.
It never depended on it. The SoC has hardware floating point registers; not all ARM processors do, and those systems require libraries and executables compiled to perform equivalent operations using software. Hence the "soft" and "hard" -ware versions. You can ...
Here is how I made it work.
Almost everything here needs to be done as super-user, so use 'sudo bash' or put sudo in front of everything (if not already shown).
The following basic steps are needed:
Arrange for the 'i2c' drivers to be present if not already;
there is an additional driver for rtc_ds1307
remove fake-hwclock. This is a subsystem which will ...
Raspbian jessie does have ssh enabled by default, I don't know if wheezy have ssh enabled by default. What I recommend doing is:
Go to the terminal
And type: sudo raspi-config
Go to advanced options
In the advanced options will be an option to enable/disable ssh.
There you can enable SSH
More information here: https://www.raspberrypi.org/documentation/...