ALT+F2 gksudo gedit /etc/sysctl.conf #append or modify (if already exists) the following: #0 .. 100 (0 = no swap) vm.swappiness=1 # http://askubuntu.com/questions/1357/how-to-empty-swap-if-there-is-free-ram # swap info swapon -s cat /proc/swaps vmstat 1 systemctl list-units –type=swap systemctl list-units | grep .swap # […]
Configuration
Ubuntu: phpMyAdmin setup
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.0.2/phpMyAdmin-4.5.0.2-english.tar.gz tar xvzf phpMyAdmin-4.5.0.2-english.tar.gz mv phpMyAdmin-4.5.0.2-english myadmin mkdir myadmin/config chown -R **** myadmin/config /etc/php5/fpm/php.ini session.gc_maxlifetime = 3600 sudo service php5-fpm restart #save configuration created using https://adrhc.go.ro/myadmin/setup mv -v myadmin/config/config.inc.php myadmin/config.inc.php sudo chown **** myadmin/config.inc.php rmdir myadmin/config sudo service php5-fpm […]
Ubuntu and Plex
installation sudo apt-get install plexmediaserver ### my custom systemd setup (plex-override.conf) # # Plex Media Server – Systemd service override file # # All entries must be systemd compliant (Environrment=”var=absolute_value”) # # cp -v $HOME/bin/systemd-services/plex-override.conf /etc/systemd/system/plexmediaserver.service.d && sudo chown […]
CouchPotato
#search for extract errors: grep -nri “Failed to extract” /ffp/opt/couchpotato_data/logs/ | awk ‘{print $8;}’ | sort | uniq #https://github.com/outkastm/Filelist.ro mkdir /ffp/opt/couchpotato_data/custom_plugins/filelist cd /ffp/opt/couchpotato_data/custom_plugins/filelist git clone https://github.com/outkastm/Filelist.ro #/ffp/opt/couchpotato_data/custom_plugins/filelist/init.py: class Filelist(MovieProvider, Base): cat_ids = [ ([25], [‘3d’]), ([19], [‘720p’, ‘1080p’, ‘brrip’, ‘dvdr’]), […]
Gallery 3
Gallery3 requires mysql and msgpack: php_value[extension]=mysql.so php_value[msgpack]=mysql.so or extension=mysql.so extension=msgpack.so See https://adrhc.go.ro/wordpress/configure-command-for-building-various-software/ for learning how to compile msgpack. The user/group of the php processes (specified in php-fpm.conf) show be the same for gallery3 directory: chown -R nobody:nobody ~/apache-htdocs/gallery3 After installing […]
NSA310: phpMyAdmin setup
#start configuration mkdir $HOME/apache-htdocs/myadmin/config chown -R nobody:nobody ~/apache-htdocs/myadmin Access https://adrhc.go.ro/myadmin/setup. #you’ll then have $HOME/apache-htdocs/myadmin/config/config.inc.php which you must move to $HOME/apache-htdocs/myadmin/config.inc.php #then delete $HOME/apache-htdocs/myadmin/config #bzopen and bzcompress functions required This means you don’t have extension=bz2.so somehow enabled into php. #Enable Features […]
nginx autoindex and apaxy
I advise you to download apaxy + http://adrhc.go.ro/public/apaxy_for_nginx.js # then replace the urls below with the ones for your server. # Possible values for: # defaultSortProperty (string): “name”, “parsedDate”, “size” # isDescSort (boolean): true/false # apaxyIconsRoot (string): the root […]
FFP 0.7 startup scripts
#Executed at startup /usr/local/zy-pkgs/ffproot/after_booting.sh /etc/init.d/samba.sh restart /ffp/start/sshd.sh /ffp/etc/fun_plug.local -> here insert your startup commands /ffp/etc/rc /ffp/etc/rc /ffp/start/.sh #executed at least for shell logins /ffp/etc/profile /ffp/etc/profile.d/.sh
Compiling Perl 5.20.1
#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #search http://search.cpan.org/ for modules #see http://www.thegeekstuff.com/2008/09/how-to-install-perl-modules-manually-and-using-cpan-command/ #Installing Perl modules from CPAN (didn’t work): http://perl.about.com/od/packagesmodules/qt/perlcpan.htm #environment […]
NSA310, FFP, lddd (missing libraries)
#see http://forum.nas-central.org/viewtopic.php?f=249&t=14699&hilit=lddd&start=0#p82527 wget http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/scripts/lddd -O /ffp/sbin/lddd chmod 755 /ffp/sbin/lddd lddd #Do NOT solve like below the missing libraries reported by lddd: ln -s /lib/libc.so.6 /ffp/lib/ ln -s /usr/lib/libdb-5.2.so /ffp/lib/ ln -s /usr/lib/libffi.so.5 /ffp/lib/ ln -s /lib/ld-linux.so.3 /ffp/lib/
PyLoad setup
cd ~/compile rm -r ~/compile/pyload unzip pyload-src-v0.4.9.zip cd ~/compile/pyload find . -type f ( -exec sed -i s/”\/usr\/bin\/perl”/”\/ffp\/bin\/perl”/g {} \; , -exec sed -i s/”\/usr\/bin\/python”/”\/ffp\/bin\/python”/g {} \; , -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/g {} \; , -exec sed -i s/”\/usr\/bin\/sh”/”\/ffp\/bin\/sh”/g {} […]
Install & configure pydio
cd $HOME #database mysql -p CREATE DATABASE pydio CHARACTER SET utf8; GRANT ALL ON pydio.* TO ‘pydio’@’%’ IDENTIFIED BY ‘pydio’ WITH GRANT OPTION; FLUSH PRIVILEGES; exit cd /i-data/60cb70cf/www/pages/ wget http://sourceforge.net/projects/ajaxplorer/files/pydio/stable-channel/5.2.5/pydio-core-5.2.5.tar.gz/download tar -xzvf pydio-core-5.2.5.tar.gz cd pydio-core-5.2.5 #go to https://adrhc.go.ro/pydio/ ./x.sh hstop […]
Install & configure ghost
Installing ghost on linux (official) Compiling nodejs cd /ffp/opt/ rm -r ghost #rm ghost.zip #curl -L -k https://ghost.org/zip/ghost-latest.zip -o ghost.zip unzip -uo ghost.zip -d ghost cd /ffp/opt/ghost find . -type f -exec sed -i s/”\/usr\/bin\/bash”/”\/ffp\/bin\/bash”/ {} \; find . -type […]
Zyxel NSA310 and Java 8
tar xvzf ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.gz cd /ffp/home/root/ejdk1.8.0/bin #Modifica /ffp/home/root/ejdk1.8.0/bin/jrecreate.sh cu “java -Xms128m -Xmx192m”. ./jrecreate.sh –vm client –dest ~/jdk1.8.0-full-cli+ext –no-compression –extension locales,charsets -v ./jrecreate.sh –vm client –dest ~/jdk1.8.0-full-cli –no-compression -v