First steps after Raspbian install

Installing system can be troublesome. One must install all stuff, drivers, change settings. Its hard to remember  what needs to be tweaked. Maybe this list will help. After all those steps you will have a good base to start. I2C, 1wire, SPI, MySQL, Samba and some basic libraries will be installed and ready for usage.

  1. When plugged to tvout  I always have to calibrate output
    in config.txt uncomment overscan options and play with values
  2. Enable ssh from raspi-config
  3. Update system
     sudo apt-get update
     sudo apt-get upgrade
     sudo rpi-update
  4. Install some useful packages:
     sudo apt-get install mc
     sudo apt-get install ntfs-3g
     sudo apt-get install i2c-tools
     sudo apt-get install python-setuptools
     sudo easy_install pip
  5. Enable I2C
    – edit /etc/modprobe.d/raspi-blacklist.conf and put # before blacklist i2c-bcm2708
    – edit /etc/modules and add i2c-dev

     - sudo apt-get install i2c-tools
     - add user: sudo adduser pi i2c

    – reboot
    – install python libs

     sudo apt-get install python-smbus
  6. Enable 1wire
    – edit /etc/modules and add w1-gpio and w1-therm
  7. Enable SPI
    – edit /etc/modprobe.d/raspi-blacklist.conf put # before blacklist spi-bcm2708
  8. Decrase I/O on sd card.
    Check /etc/fstab and look for / mount. If there is defaults,noatime than do nothing. If noatime is missing add it
  9. Enable samba share
     - install samba: sudo apt-get install samba samba-common-bin
  10. Share home folder
    – edit /etc/samba/smb.conf and under Share Definitions add
    comment= Pi Home
    only guest=no
    create mask=0777
    directory mask=0777
    – add user pi to samba:

     sudo smbpasswd -a pi

    – restart samba: sudo /etc/init.d/samba restart

  11. Install MySQL
     - sudo apt-get install mysql-server

    – tweek mysql

     sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
     sudo cp /usr/share/doc/mysql-server-5.5/examples/my-small.cnf /etc/mysql/my.cnf

    – edit /etc/mysql/my.cnf add query_cache_size = 8M
    – restart mysql

  12. Install python support:
     sudo pip install pymysql
     sudo apt-get install python-dev libmysqlclient-dev
     sudo pip install MySQL-python
     sudo pip install peewee
  13. Allow remote connection to mysql server
    – login into mysql:

    mysql -u root -p

    – add remote user:  GRANT ALL privileges ON *.* TO ‘root’@’192.168.0.%’ IDENTIFIED BY ‘mypassword’


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s