If you can't read please download the document
Raspberry Pi 2 誤自宅サーバー移行日記
Embed Size (px)
Citation preview
- 1. Raspberry Pi 2 Ubuntu 15.04 15.06
- 2. 2. : @96smcln :IT OS
- 3. 3. Tiny Tiny RSS tt-rss Apache,PostgreSQL DNS DHCP tt-rss
Proxy Squid + Ziproxy + Privoxy VPN L2TP/IPsec
- 4. 4. tt-rss RSS Google Reader RSS gihyo.jp ( http://gihyo.jp/
) ASCII.jp ( http://ascii.jp/ ) ( http://blog.goo.ne.jp/ikunya
)
- 5. 5. eee PC 901-X CPU Intel Atom N270 1.6GHz RAM 2GB SSD 32GB
NIC 100Mbps 2
- 6. 6. Y^Y^Y^Y^Y
- 7. 7. Raspberry Pi 2 2015 2 Raspberry Pi 2 Ubuntu 1
- 8. 8. OSC 2015 Tokyo/Spring Ubuntu Japanese Team Xubuntu
Raspberry Pi 2 microUSB GUI
- 9. 9. Raspberry Pi 2 5,400 1,296 8GB microSDHC Toshiba 2,290
USBSONY 1,020 RTC 766 RTC 188 10,960
- 10. 10. Ubuntu
URL:http://gihyo.jp/admin/serial/01/ubuntu-recipe/0362
URL:http://gihyo.jp/admin/serial/01/ubuntu-recipe/0376 microSDHC
ssh-server
- 11. 11. Web OS Ubuntu Core WEB WEB Nginx
- 12. 12. Nginx Ubuntu :1.45 Nginx stable :1.80 Ubuntu Nginx
Raspberry Pi 2 armhf PPA armhf PPA
- 13. 13. Web $ sudo add-apt-repository ppa:nginx/stable $ sudo
apt update $ sudo apt install nginx php5-fpm php5-pgsql php5- curl
php5-cli postgresql-9.3 git
- 14. 14. Nginx defult Ubuntu PPA Ubuntu /usr/share/nginx/html
PPA /var/www/html $ sudo vi /etc/nginx/sites-available/default $
sudo service nginx restart
- 15. 15. Nginx server { listen 80 default_server; root
/var/www/tt-rss; index index.php; server_name _; location / {
try_files $uri $uri/ =404; } location ~ .php$ { include
snippets/fastcgi-php.conf; fastcgi_pass
unix:/var/run/php5-fpm.sock; } }
- 16. 16. tt-rss DB DB DB DB ttrss DB $ sudo -u postgres
createuser --pwprompt ttrss $ sudo -u postgres createdb
--owner=ttrss ttrss
- 17. 17. tt-rss :1.7.1 tt-rss :1.15.3 tt-rss Ubuntu Github
tt-rss Web $ cd /var/www $ sudo git clone
https://github.com/gothfox/Tiny-Tiny- RSS.git tt-rss $ sudo chown
-R www-data:www-data tt-rss/
- 18. 18. tt-rss URL http:// IP /install/ DB DB DB
- 19. 19. PostgreSQL dump DB DB DB $ psql -h localhost -U ttrss
< ttrss_db.dump $ pg_dump -h localhost -U ttrss -c ttrss >
ttrss_db.dump
- 20. 20. 2
URL:http://gihyo.jp/admin/serial/01/ubuntu-recipe/0266 $ sudo vi
/etc/init/ttrss.conf $ sudo start ttrss
- 21. 21. microSDHC Web
- 22. Raspberry Pi 2