Open Terminal and type:
This results in the following output on my Raspberry Pi 2...
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
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.
Do not look at uname -a. That just shows kernel version. To find the distribution version, run:
sudo apt-get install lsb-release
My RPi shows:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
https://github.com/RPi-Distro/pi-gen/releases 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, https://github.com/RPi-Distro/pi-gen, ...
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 ...
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
Append these lines:
@xset s noblank
@xset s off
Possibly also comment out the line that says @xscreensaver -no-splash, so the complete file should look something like this:
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
iface wlan0 inet manual
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
file looks like this
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.
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 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:
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 ...
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
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 (...
Based on the name HASSbian, you are likely on a Debian derivative.
You can get the name of the distrubution with the following command line command:
Note this will likely return HASSbian. However if you look at the VERSION line it will likely return Jessie or Wheezy (these are Debian releases).
Assuming my assumption is correct you ...
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
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)...
you may use "--warning=no-timestamp" to skip the timestamp check and allow full extraction of your archive (see http://www.gnu.org/software/tar/manual/html_section/warnings.html for details).
however, that kind of error usually happens with corrupt archives, you'd better double check if all MD5/SHA checksums are correct and if your /boot folder really has ...
Is running "reboot" command enough to reliably restart the Raspian (Debian) system if filesystem/hdd is ok?
From the man page for reboot:
When called with --force or when in runlevel 0 or 6, this tool invokes the reboot(2) system call itself and directly reboots the system. Otherwise this simply invokes the shutdown(8) tool with the appropriate ...