Postări

Se afișează postări din august, 2016

Root login - ssh

Simply adding a password for root is not enough for Ubuntu 14.04 Server. You also need to edit  /etc/ssh/sshd_config , and comment out the following line: PermitRootLogin without-password Just below it, add the following line: PermitRootLogin yes Then restart SSH: service ssh restart

Raspberry PI - Ubuntu Mate Camera - setup

Setup the camera First, connect the Raspberry Pi with the camera and boot it. The camera module needs these two packages: sudo apt-get install libraspberrypi-dev sudo pip install picamera Then, open config.txt with sudo nano /boot/firmware/config.txt and add the lines start_x=1 gpu_mem=128 at the end of the file. Save, then reboot the Raspberry Pi with sudo reboot Test the installation Open Python and enter import picamera camera = picamera.PiCamera() camera.capture('image1.jpg') camera.close() If this produced an image named image1.jpg in the current directory, all is fine.