Yeah, We got Pi!
  page01| page02| page03| page04| page05| page06| page07| page08| page09| page10

Access Windows Shares
## as root
mkdir -p /mnt/machine/share # change this to reflect your machine

#add to etc/fstab
/machine/share /mnt/machine/share cifs -o sec=ntlm,username=myname,password=mypass 0 0

#finally mount it
mount /mnt/machine/share

or a one off mount can be done thus:-
sudo mount -t cifs -o username=username,password=password //server-name/share-name mount-point


Network Attached Storage (file server)
## as root
adduser guest --home=/home/public --shell=/bin/false --disabled-password
chmod -R 0700 /home/public
chown -R guest.guest /home/public
apt-get install samba smbfs samba-common-bin

sudo vi etc/samba/smb.conf
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

####### Authentication #######
   security = share

   obey pam restrictions = yes
   guest account = guest
   invalid users = root
##################################
#shares
[SHARE]
comment = Public Filespace
read only = no
locking = no
path = /home/public
guest ok = yes
force user = guest

#restart samba
etc/init.d/samba restart


LAMPP(Linux Apache MySQL PHP webserver)

  • sudo apt-get install apache2
  • sudo apt-get install mysql-server
  • sudo apt-get install php5
  • sudo apt-get install php5-mysql
  • sudo apt-get install phpmyadmin

at some point errors accessing PMA I needed to add the line :
Include etc/phpmyadmin/apache.conf
to etc/apache2/apache2.conf
and restart with
sudo etc/init.d/apache2 restart

...BACK<-->MORE...

 
    
© 2024 Outanet Ltd.