Dans ce tutoriel je vous montre comment installer VNC server sur un système Linux et le configurer pour s’y connecter à distance.
Le logiciel VNC server utilisé est tightvncserver.
http://www.tightvnc.com/
apt-get install xcowsay
apt-get install cmatrix
apt-get install oneko
sudo apt-get install libcurses-perl
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
tar -zxvf Term-Animation-2.4.tar.gz
cd Term-Animation-2.4/
perl Makefile.PL && make && make test
sudo make install
cd /tmp
wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
tar -zxvf asciiquarium.tar.gz
cd asciiquarium_1.1/
sudo cp asciiquarium /usr/local/bin
sudo chmod 0755 /usr/local/bin/asciiquarium
mkdir MyTweeter
cd MyTweeter
sudonano
MyTweeter.py
#!/usr/bin/env python
import sys
fromtwython
importTwython
CONSUMER_KEY
='***************mettez le votre*****************'
CONSUMER_SECRET
='*************** mettez le votre *****************'
ACCESS_KEY
='*************** mettez le votre *****************'
ACCESS_SECRET
='*************** mettez le votre *****************'
api
=Twython
(CONSUMER_KEY
,CONSUMER_SECRET
,ACCESS_KEY
,ACCESS_SECRET
)
api
.update_status
(status
=sys
.argv
[1])
sudochmod
+x MyTweeter.py
Il faut faire un test :
python MyTweeter.py
'Hi, you can watch all my tutorials about the #raspberrypi http://www.hamdygitalxyz’
import os
cmd
='/opt/vc/bin/vcgencmd measure_temp'
line
=os
.popen
(cmd
).readline
().strip
()
temp
=line
.split
('=')[1].split
("'")[0]
api.update_status(status='Watch my video tutorials about the #pi at https://www.youtube.com/channel/UCMfyuwkikjx0BAVotujTDSQ My #raspberrypi temperature is '+temp+' C')
sudocrontab
-e
*/60 * * * * python /home/pi/SillyTweeter/MyTweeter.py
*/240 * * * * python /home/pi/SillyTweeter/MyTweeter.py
copier :recalbox-themes-master/themes/
\\recalbox\share\system\.emulationstation\themes
.emulationstation
est un dossier caché il faut afficher les dossiers cachés.
#sudo nano /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.141/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1