Ubuntu swap & ram

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 # […]

Ubuntu: phpMyAdmin setup

wget https://files.phpmyadmin.net/phpMyAdmin/ tar xvzf phpMyAdmin- mv phpMyAdmin- 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 […]


#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 […]

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 {} […]

Tomcat datasource in context.xml

<Resource name=”exifweb” auth=”Container” type=”javax.sql.DataSource” factory=”org.apache.tomcat.jdbc.pool.DataSourceFactory” testWhileIdle=”true” testOnBorrow=”true” testOnReturn=”false” validationQuery=”SELECT 1″ validationInterval=”30000″ timeBetweenEvictionRunsMillis=”30000″ maxActive=”10″ minIdle=”2″ maxIdle=”3″ maxWait=”5000″ initialSize=”1″ removeAbandonedTimeout=”60″ removeAbandoned=”false” logAbandoned=”false” minEvictableIdleTimeMillis=”30000″ jmxEnabled=”false” jdbcInterceptors=”org.apache.tomcat.jdbc.pool.interceptor.ConnectionState” username=”exifweb” password=”exifweb” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/exifweb”/>

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 […]