Hot answers tagged


Open Terminal and type: cat /etc/os-release This results in the following output on my Raspberry Pi 2... PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="" SUPPORT_URL="" BUG_REPORT_URL="http://www....


Check for the existence of the directory: /lib/arm-linux-gnueabihf the soft-float version do not have this directory, they have: /lib/arm-linux-gnueabi instead, or you can list the packages installed using: dpkg -l and see the platform in the third column (all/armhf/armel)


The other solutions here did not work for me (fresh Raspbian, boot to GUI). Instead, this worked: Open up /etc/lightdm/lightdm.conf using your favorite text editor (I prefer nano). Look for the line #xserver-command=X. Change it to xserver-command=X -s 0 dpms It should be at line 87 if things don't change. Save and reboot. Source


Do not look at uname -a. That just shows kernel version. To find the distribution version, run: sudo apt-get install lsb-release lsb_release -a My RPi shows: No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy

20 lists releases of Raspbian since 2016-05-10. To find your Raspbian distribution image release date (not the /etc/os-release information such as VERSION="8 (jessie)") on a running system: $ cat /etc/rpi-issue Raspberry Pi reference 2016-05-10 Generated using pi-gen,, ...


The accepted answer is correct, but a really simple method is: dpkg --print-architecture If your system is using a hard float architecture, you will then see: armhf ARM Hard Float. :-)


As @Milliways commented here is where the power of systemd comes to play. There is no need to wait that sequential processed commands are finished. systemd is working parallel (that is what it makes a bit unfamiliar). It can start services after other services are started. Because this "network-up thing" is a very common problem, we have a nice service for ...


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 ...


I have this problem, too, when I'm using my huge TV. Try this: setfont /usr/share/consolefonts/Lat15-TerminusBold20x10.psf.gz To see a list of available fonts: ls /usr/share/consolefonts/ The numbers at the end indicate width and height (though not always that exact!) No idea why config.txt is missing. However, you can use this:


I have since learnt that the Raspberry Pi foundation uses this repository for generating their images: This can be modified to create an image as desired.


Following massive botnet attacks in 2016 due to IoT devices being easily hacked with default passwords, Raspbian once again comes with SSH turned off by default (source). The fix is pretty easy, you just need to create a file in the boot partition (not the directory within the root filesystem) called ssh. To check if you're in the right partition, it ...


I think @Jivings answer may be better, but I have it in my notes to do this: Install apt-get install x11-xserver-utils Edit /etc/xdg/lxsession/LXDE/autostart Append these lines: @xset s noblank @xset s off @xset -dpms Possibly also comment out the line that says @xscreensaver -no-splash, so the complete file should look something like this: @lxpanel --...


Assuming you're using Raspbian, you need to find out which .deb file you need, and transfer those to your Raspberry Pi, and place them in /var/cache/apt/archives/partial, and then just use the command: sudo dpkg -i /var/cache/apt/archives/partial/xxxx where xxxx is the exact name of the .deb file you want to install If you need to find dependencies, http:/...


CA certificates are located in /etc/ssl/certs as well as /usr/share/ca-certificates/ and in some cases /usr/local/share/certificates. In general CA certs should not be manually added to the local trust store. There are reasons why certain CAs are not included. Without further research, it's unclear why this particular CA root cert was not included in ...


This worked for me sudo nano /etc/network/interfaces and add the following lines auto wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf sudo nano /etc/wpa_supplicant/wpa_supplicant.conf file looks like this country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="your ssid" psk="...


To prevent the screen from going blank try adding consoleblank=0 to the end of the first line of /boot/cmdline.txt Source

10 Are all system users necessary? Yes and no. Debian comes with some predefined users (user id (UID) < 99 as described in Debian Policy or /usr/share/doc/base-passwd/README) to ease the installation of some services that require that they run under an appropriate user/UID. If ...


uname -a will give you the kernel version etc. There are some other parameters you could try as well - to see them: man uname


The shell interprets and handles redirection before the command is executed. So the redirection (>/sys/class/leds/led0/trigger) is attempted with the user's permissions, thus fails. The generally recognized solution is to use the tee command: (man page and wikipedia) echo heartbeat | sudo tee /sys/class/leds/led0/trigger >/dev/null The tee command ...


You need to run your text editor (Leafpad, I assume) as the super user (aka root). In LXTerminal, type sudo leafpad and hit Enter. It will prompt you for your password; after you type it in, Leafpad will start and you will be able to overwrite /etc/rc.local.


You could try epeg. It's designed exactly for the job you need - to create fast thumbnails from jpeg files. The only problem is, you need to compile it yourself as there is no package for it for RaspberryPi. It's a library but it comes with a simple test tool that you can use.


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 ...


To install programs on machine unable to access internet enter command as normal and read output look towards end of results for the failed to fetch lines and enter these links into a web capable machine, save the links to a usb memory stick. Repeat for all failed to fetch lines *pi@raspberrypi ~/pi $ sudo apt-get install scrot Reading package lists... ...


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: /dev/serial/by-path/platform-bcm2708_usb-usb-0:1.3:1.0-port0 /dev/serial/by-...


For better boot times, update the firmware (with rpi-update), install the system with hard-floats and keep it updated. Older firmware are usually slower, hard-floats increase a lot the system speed, every day there are more optimization for arm, specially for rpi


You need to edit your ~/.xinitrc file, removing or commenting this line: exec ck-launch-session startlxde and adding this line: exec awesome Then run startx as usual. The .xinitrc file defines the commands that execute when X is started.


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 ...


I was able to install pcscd daemon and using pcsc-lite wrapper in NodeJS on Raspbian (Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux) using Raspberry Pi B+ and Raspberry Pi 2. Here an extract of the Requirements installation from the full guide of mine project on GitHub: Install PC/SC and libnfc (...


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,...


Create an init.d script to run your application you can run the mono service in linux OS by using the command mono-service [options] program.exe call this from an init.d sript Check this man page for more details about running mono service on linux

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