Ubuntu: X11 forward to putty

Installation download http://cygwin.com/setup-x86_64.exe install X11 package configure /etc/ssh/sshd_config sudo grep -nri X11 /etc/ssh X11Forwarding yes X11DisplayOffset 10 Cygwin-X config make sure XWin Server shortcat contains the command below: F:\cygwin64\bin\run.exe –quote /usr/bin/bash.exe -l -c “cd; /usr/bin/startxwin — -listen tcp” configure putty […]

Ubuntu: login with certificate

# See also https://adrhc.go.ro/wordpress/how-to-create-a-certificate/ for how to create public-pub.openssh. # Configure server # Uncomment in /etc/ssh/sshd_config: AuthorizedKeysFile %h/.ssh/authorized_keys # public-key in openssh format cat public-key.openssh.pem > ~/.ssh/authorized_keys # Configure client # id_rsa -> mandatory name # # private-key.pem.des3.bitvise must start […]

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

Create mysql system db

# see also https://adrhc.go.ro/wordpress/mysql-command-line/ #CREATE SYSTEM DB (first step and mandatory before using mysql) export SRVPATH=/ffp/opt/srv mkdir -p $SRVPATH/mysql/innodb/ mkdir -p $SRVPATH/mysql/innodblogdir/ mkdir -p $SRVPATH/mysql/binlog/ mkdir -p $SRVPATH/mysql/log/ mkdir -p $SRVPATH/mysql/tmp/ mkdir -p $SRVPATH/mysql/data cd /ffp # use your my.cnf […]

Working with subversion (SVN)

#svn+ssh url examples: svn+ssh://ssh-user@your-remote-svn-server-ip/os-path-to-svn-repository/project-name svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor/trunk #starting svn server #path-to-svn-repository: the value for -r svnserve’s option svnserve -d -r path-to-svn-repository –log-file /ffp/log/svnserve.log #ssh-user will also be used as the Author when commiting to SVN #You’ll have to use Putty pageant […]

Common steps/commands when building/compiling

# These settings are (make sense) for NSA310 storage box with Fonz Fun Plug (FFP). # see also https://adrhc.go.ro/wordpress/configure-command-for-building-various-software/ export CFLAGS=”-march=armv5te -mfloat-abi=soft -mabi=aapcs-linux -fno-stack-protector -pthread -O2 -Wall -Wno-error” export BUILD_FLAGS=”$CFLAGS -I/ffp/include” unset LIBS export LDFLAGS=”-L/ffp/lib” export CPPFLAGS=”$BUILD_FLAGS” export CXXFLAGS=”$BUILD_FLAGS” NEW_BUILD_NAME=mpc […]

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

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