Linux errors/problems, tips & tricks

error # adr@adr-desktop:~$ su-to-root -X -c zenmap (gksu:24352): Gtk-WARNING **: cannot open display: adr@adr-desktop:~$ echo $DISPLAY … showing nothing … adr@adr-desktop:~$ export DISPLAY=:0.0 -> add this in .bashrc adr@adr-desktop:~$ su-to-root -X -c zenmap … now is working … # […]

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

Compiling protobuf-2.5.0 on synology

repairing some system bugs mkdir -p ~/temp/opt/i686-linux-gnu/lib mv -v /opt/i686-linux-gnu/lib/libpthread-0.10.so ~/temp/opt/i686-linux-gnu/lib ln -s /lib/libpthread.so.0 /opt/i686-linux-gnu/lib/libpthread-0.10.so mkdir -p /usr/local/i686-linux-gnu/i686-linux-gnu/lib ln -s /opt/lib/libstdc++.la /usr/local/i686-linux-gnu/i686-linux-gnu/lib/libstdc++.la export CPPFLAGS=”-march=i686″ export CXXFLAGS=”-march=i686″ cd ~/compile wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz tar xvzf protobuf-2.5.0.tar.gz cd ~/compile/protobuf-2.5.0 ~/x.sh ffpg-no-m4 ./configure –prefix=$HOME/apps […]

XPEnology

XPEnology-DSM-Change-Add-Serial-Number http://cyanlabs.net/Thread-XPEnology-DSM-Change-Add-Serial-Number XPEnology downloads http://xpenology.me/downloads/ Synology software http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/stable/ Synology bootstrap https://forum.synology.com/MediaWiki/index.php?title=How_to_Install_Bootstrap Synology gui http://192.168.1.121:5000/webman/index.cgi Cases http://www.inter-tech.de/index.php?option=com_content&view=article&id=1028%3Asy-m-208-desktop&catid=55%3Adesktop-gehaeuse&Itemid=843&lang=en http://www.tacens.es/cases/mini-towers/versa/ Windows 10 Activator | KMSPico http://windows10activatordownload.com/

Compiling PHP 7.0.0RC2

#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. NEW_BUILD_NAME=php NEW_BUILD_VER1=7.0.0RC2 NEW_BUILD_VER=$NEW_BUILD_VER1-zts MYSQL_BUILD_NAME_AND_VER=mysql-5.6.25 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$MYSQL_BUILD_NAME_AND_VER-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 sed -i s/”HAVE_GD_XPM\s1″/”HAVE_GD_XPM […]