raspberry etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
raspberry etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

30 Haziran 2013 Pazar

Raspberry - cgi dizini


./apache2/sites-available/default dosyasındadır.

Örnek:
./apache2/sites-available/default:      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

Sonuçta Raspbian da bir Debian dağıtımıdır.



Raspberry - Hostname değiştirmek

sudo vi /etc/hostname
sudo reboot
hostname --fqd

11 Haziran 2013 Salı

Ramlog - Raspberry Pi


SD CARD

An SD Card has a limited lifetime, it depends on various factors. Normally the lifetime declared by manufacturers is very long, but I have experienced that sometimes the lifetime is very short. °v°.

So taking care of the healt status of the SD CARDs could lead to a high reliability.

One of the factors that could broke your SD Card is the write cycles. As said, this number is normally very high but you cannot say if your SD CARD will have a behaviur in the average or under the average. So you can think to reduce the number of writes.

 

 



The /var/log directory contains the log files for your services and these files are often updated, if you have a lot of services running you have a lot of writes on your SD CARD, if the log files are not essential in your system you can move them on a RAM disk and then you can backup them when you want.

In my production system I'm using a tool that does the job: Ramlog.

"Ramlog act as a system daemon. On startup it creates ramdisk, it copies files from /var/log into ramdisk and mounts ramdisk as /var/log. All logs after that will be updated on ramdisk. Logs on harddrive are kept in folder /var/log.hdd which is updated when ramlog is restarted or stopped. On shutdown it saves log files back to harddisk so logs are consistent. Ramlog 2.x is using tmpfs by default, ramfs and kernel ramdisk are suppored as well. Program rsync is used for log synchronization."

To install Ramlog on your Raspbian system run the following instructions:

# sudo apt-get install lsof

# wget http://www.tremende.com/ramlog/download/ramlog-2.0.0.tar.gz

# cp -a ramlog /etc/init.d/ramlog

# cp -a ramlog.8.gz /usr/share/man/man8/ramlog.8.gz

# cp -a ramlog.cron /etc/cron.daily    #or to other dir based on your need

# cp -a ramlog.logrotate /etc/logrotate.d/ramlog

# cp -a ramlog.conf /etc/default/ramlog

 

With your favourite editor, edit the file /etc/default/ramlog and set the value for your RAM filesystem, for example TMPFS_RAMFS_SIZE=20 means you want to use 20 mega bytes of RAM.

You can retrieve the actual size for /var/log directory issueing the following command:

# ramlog getlogsize

 

Last, reboot your system

# sudo reboot -n

 



















4 Nisan 2013 Perşembe

Raspberry - Boot'ta ssh'ı açmak

ssh'ı kurmak
sudo apt-get install ssh


ssh dinlemeye başlamak
sudo /etc/init.d/ssh start


tek sefere mahsus boot ile dinlemeyi öğretmek

sudo update-rc.d ssh defaults

 
reboot
sudo reboot

Raspberry - Network bilgileri

/sbin/ifconfig

2 Nisan 2013 Salı

Raspberry - SD boot sürücüsü oluşturmak / yedeklemek

http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi

28 Mart 2013 Perşembe

Raspbian - Sistem dilini değiştirmek

sudo dpkg-reconfigure locales

Raspbian - Klavye dilini değiştirmek

sudo vi /etc/default/keyboard

Raspbian - VNC'yi boot ile başlatmak

Start VNC Server Automatically on Bootup

There's no point in having VNC if you have goto to the Pi, login and start the server manually. So let's start it on bootup before the login prompt.
Create a new file in the init.d directory:
sudo nano /etc/init.d/tightvncserver
Enter the following details:
#!/bin/sh
# /etc/init.d/tightvncserver
VNCUSER='pi'
case "$1" in
    start)
        su $VNCUSER -c '/usr/bin/tightvncserver :1'
        echo "Starting TightVNC Server for $VNCUSER "
        ;;
    stop)
        pkill Xtightvnc
        echo "TightVNC Server stopped"
        ;;
    *)
        echo "Usage: /etc/init.d/tightvncserver {start|stop}"
        exit 1
        ;;
esac
exit 0
Give the script executable permission:
sudo chmod 755 /etc/init.d/tightvncserver
We can now start or stop the service manually:
sudo /etc/init.d/tightvncserver start
sudo /etc/init.d/tightvncserver stop
But let's make Tight VNC Server start every time the Raspberry Pi starts up:
sudo update-rc.d tightvncserver defaults
Now just power off the Raspberry Pi. Make sure it's connected to the network and power back on. You can now connected across the network using the VNC Viewer!


http://www.neil-black.co.uk/raspberry-pi-beginners-guide#.UVyuTjdvC9o

25 Mart 2013 Pazartesi

Debian - Bağlı paketlerle birlikte kurmak

sudo apt-get build-dep python-scipy --fix-missing