Raspberry Pi notes

print
To use SSH, first you need your Pi’s IP address. Boot your Pi to the command line and type:
sudo ifconfig
inet addr” followed by an IP—something like 192.168.2.2, a
my inet address
downlpad putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/

login as: pi
[email protected]’s password: raspberry

Remote Desktop Your Raspberry Pi
On your Raspberry Pi’s command line, (and yes, you can do this with SSH), type:
sudo apt-get install xrdp

puter for a program called Remote Desktop Client.

b8:27:eb:44:a3:6c

configuration file on the Pi in the nano text editor:
sudo nano /etc/network/interfaces
Change the line “iface eth0 inet dhcp” to “iface eth0 inet static” to inform it that it’s now static.

inet addr:192.168.2.7 Bcast:192.168.2.255 Mask:255.255.255.0

192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Link encap:Ethernet HWaddr b8:27:eb:44:a3:6c
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::895b:f114:17d2:87fc/64 Scope:Link

inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
what our DHCP wasn’t already using.
address 192.168.2.2
netmask XXX.XXX.XXX.X
network XXX.XXX.X.X
broadcast XXX.XXX.X.X
gateway XXX.XXX.X.X

Reboot the Raspberry Pi with “sudo reboot” and run “ifconfig” one more time. Your new static settings should appear!
http://www.dnsdynamic.org/
install DDClient with the following line:
sudo apt-get install ddclient

my ip 141.237.105.169

daemon=60 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library
use=web, web=myip.dnsdynamic.com # get ip from server.
server=www.dnsdynamic.org # default server
[email protected] # default login
password=password # default password
server=www.dnsdynamic.org, \
protocol=dyndns2 \
awesome.dnsdynamic.com

use=web, web=checkip.dyndns.com/, web-skip=’IP Address’

protocol=dyndns2
server=dynupdate.no-ip.com
login=shadowmanpat
password=nikos1987
http://shadowmanpat.ddns.net/

sudo service ddclient restart
sudo apt-get install samba
sudo apt-get install samba-common-bin

sudo nano /etc/samba/smb.conf
[global]
sudoworkgroup = WORKGROUP
wins support = no
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
security = share
encrypt passwords = yes
syslog = 0
panic action = /usr/share/samba/panic-action %d
usershare allow guests = yes

[share]
path = /
comment = Pi share
writeable = yes
browseable = yes
read only = no
guest ok = yes
force user = root
create mask = 0755
directory mask 0755

sudo service samba restart

sudo ln -s /etc/wordpress/config-localhost.php ↵
/etc/wordpress/config-192.168.2.10.php

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.