====== Private Cellium ─ EPiGEN Crystal ====== {{:rpi_epigen.jpg?nolink&250|}} Name: {{mdi>cards?28&color=#7E007B}} ''**EPiGEN** Crystal'' (official) | {{mdi>creation?28&color=#7E007B}} ''자몽'' (korean) ---- ===== Specification ===== {{mdi>raspberry-pi?32&color=#7E007B}} Model: [[https://www.raspberrypi.org/products/raspberry-pi-2-model-b//|Raspberry Pi 2 Model B+]] [[wp>Raspberry_Pi#Model_B|Raspbierry Pi Model B]] {{mdi>database-plus?32&color=#7E007B}} Storages --- {{mdi>harddisk}} [[SECURED:JUNE_HARDWARE#data_storage|Storage in details]] {{fa>lock}} * {{mdi>database?color=#7E007B}} ''**1T**'' --- ''~/Storage'' partition {{fa>usb?14&color=#005eb8}} * {{mdi>database?color=#7E007B}} ''**500G**'' --- ''~/Repository'' partition {{fa>usb?14&color=#005eb8}} === Live status of storages === Mounted on Type Size Used Avail Use% ~/Repository ext4 458G 208G 227G 48% ~/Storage ext4 917G 194G 677G 23% {{mdi>server-network?32&color=#7E007B}} --- {{mdi>wifi-strength-3-lock}} [[SECURED:HOME_NETWORK#dhcp_assigned_ip|Júne's home network]] {{fa>lock}} * {{mdi>lan?color=#7E007B}} Wired (''EPiGEN-enx001'') * {{mdi>wifi?color=#7E007B}} Wireless {{fa>usb?14&color=#030303}} (''EPiGEN-wlx001'') * {{mdi>lan?color=#7E007B}} Wired {{fa>usb?14&color=#030303}} (''EPiGEN-enx003'') {{mdi>lan-connect?32&color=#7E007B}} Private storage and Backup point ---- ==== +Work logs ==== * Disable ''transmission web'' port, ''9090'' and build ''proxy_pass'' pages --- Updated on //2020/07/11 03:25// * Plugin Wired Giga LAN {{fa>usb}} --- Updated on //2020/02/22 03:34// * ''fresh installation'' --- Updated on //2018/02/25 01:13// === +Que to do === * Change Boot microSD memory due to physical defects ---- ===== Operation manuals ===== ==== Configure System log (syslog) Server ==== Raspbian (debian) server can be used as a machine recording log from external devices such as router. \\ Install syslog-ng and related mods as well. sudo apt-get install syslog-ng After finishing installation, edit ''/etc/syslog-ng/syslog-ng.conf''. \\ source s_net { udp(ip(0.0.0.0) port(514)); }; destination d_router { file(“/var/log/router.log”); }; log { source(s_net); destination(d_router); }; ''source s_net'' defines the source where records are from ''0.0.0.0'' will be bind to all interfaces. \\ ''destination'' set your arbitrary name like ''d_router'' and set the path of log file. \\ ''log'' tells what source to use and what destination to take. If you have 'filter' option to utilize for more refined log results. \\ Create log file. sudo touch /var/log/router.log And restart ''syslog-ng'' service sudo systemctl stop syslog-ng.service sudo systemctl start syslog-ng.service For sensitive reason, you would better to **stop & start** service instead of restart. \\ Check size of log file is getting bigger and contents of log file. For archiving and compressing log files, ''edit'' ''/etc/logrotate.d/syslog.ng'' /var/log/router.log { rotate 4 weekly missingok notifempty compress delaycompress sharedscripts postrotate invoke-rc.d syslog-ng reload > /dev/null endscript } ---- ==== Delete unnecessary files regularly ==== ''sudo crontab -e'' Add command line to find & delete. e.g.) Delete all ''.nfo'' file in target directory and its sub-directories at 30 minutes past every 6 hours. 30 */6 * * * /usr/bin/find /..((your path)).../ -name '*.nfo' -exec rm -f {} \; Delete empty directory at 30 minutes past every 12 hours 30 */12 * * * /usr/bin/find /..((your path)).../ -type d -empty -delete ---- ==== Delete all files except for desired file types ==== find . -type f ! -name '*.mkv' -delete ----