Archive for the network Category

Install Samba file sharing

| January 30th, 2016

Install Samba file sharing

sudo apt-get install samba

edit the /etc/samba/smb.conf

sudo nano /etc/samba/smb.conf

If you wish for the users home directories to be visable when a samba user has been authed then around line number 193 (press CRTL + C) to check the current line number, change “read only” to from yes to no.

[homes]
 comment = Home Directories
 browseable = no
# By default, the home directories are exported read-only. Change the
 # next parameter to 'no' if you want to be able to write to them.
 read only = no

To add the whole system files to be visable accross the network add the following lines in the config file.

[system]
 comment = System
 path = /
 browseable = no
 writable = yes
 force user = root

Add a external usb drive as a network share

[Media]
 comments = 2TB WD Passport USB Drive
 path = /media/Media
 valid users = osmc
 browseable = yes
 writable = yes
 force user = root

Restart the samba service

sudo service smbd restart

Add a samba user called “osmc”.

$ sudo smbpasswd -a osmc
  New SMB password:
  Retype new SMB password:
  Added user osmc.

OnionPi

| June 23rd, 2013

Tor on the Raspberry Pi After following the adafruit via this page http://learn.adafruit.com/onion-pi?view=all which sets up a default wheezy image to a wifi access point and then shows you how to install tor and get it configured to browser anonymously using the tor proxy. For people who don’t want to go thought the hassle with setting up the software, I’ve made my image file available. This is the default wheezy 2013-05-25 image (.img file) with the installed software for using onion pi. Download the OnionPi wheezy image (5GB) 20-03-2014 Download link broken, will try and get another image sorted or a install script might be better so it self configures.. Sorry. The image was written to my 8GB SD card, but I have not resized the partition, so you should be able to resize if you copy it onto the same size card or larger. The default user is pi and password is the raspberry pi standard of ‘raspberry’ (would be good to change it) The wifi adaptor I’m using is the zd1211, if your Wifi Dongle differs you can test if it’s got AP capabilities by using the command iw list After writing the image to a SD card, booting up your pi, you should see a SSID of the name ‘AnoNet’. Connect to this with your Wifi device (I used my net-book) and you should be able to check if your browsing is now anonymous. 5d01cdd6dc3211e29c6822000a1f9688_7 The wifi key is ‘Raspberry’ (please note the upper case R) I did have a issue with connecting via Windows 7, but that was before i rebooted the Pi after setting up all the scripts following the adafruit tutorial, though I think there might be a issue with Windows 7 computer and the DHCP server that is running on the Pi.

Samba

| May 18th, 2013

Install Samba

sudo apt-get install samba samba-common-bin

edit /etc/samba/smb.conf

[homes]
comment = Home Directories
browseable = no

# read only = yes
writeable = yes

Restart Samba, with::

sudo service samba restart

Set the password for the pi user so you can login via another comptuer.

sudo smbpasswd -a pi

Setting up Wifi on Wheezy

| July 29th, 2012

Plug in your USB wifi adaptor and then type this command

$lsusb

You should see a output of the listings such as this

Bus 001 Device 005: ID 0ace:1215 ZyDAS ZD1211B 802.11g

Now check the reposotiry to see if there is a driver for this chipset

$apt-cache search zd1211

zd1211-firmware - Firmware images for the zd1211rw wireless driver

Install the driver

$sudo apt-get install zd1211-firmware

Now you can install a wireless tool

$sudo apt-get install wicd-curses

Once this has installed you can then run the configuration tool which, and connect to your wifi network.

$wicd-curses

And you will see a interface like the one shown below

From here you can setup your wifi network