RSS

Posts in 2018

  • Aggregate images into a video with mencoder

    Monday, April 30, 2018 in Miscellaneous

    Aggregate png images into a video mencoder mf://*.png -mf w=1400:h=700:fps=1:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi You should use the following to specify a list of files instead of *.png: mf://@list.txt …

    Read more

  • Bash tcp client

    Wednesday, March 21, 2018 in Miscellaneous

    There are somea fun toys in bash. I would not rely on it for a production script, but here is one such things : exec 5<>/dev/tcp/10.1.0.254/8080 bash$ echo -e "GET / HTTP/1.0\n" >&5 bash$ cat <&5

    Read more

  • Seti@Home

    Monday, March 05, 2018 in Miscellaneous

    apt install boinc echo "graou" > /var/lib/boinc-client/gui_rpc_auth.cfg systemctl restart boinc-client boinccmd --host localhost --passwd graou --get_messages 0 boinccmd --host localhost --passwd graou --get_state|less boinccmd --host …

    Read more

  • Removing libreoffice write protection

    Monday, March 05, 2018 in Miscellaneous

    You can choose to ignore write-protection by setting Tools > Options > libreOffice Writer > Formatting Aids > Protected Areas > Ignore protection.

    Read more

  • Qmail

    Monday, March 05, 2018 in Miscellaneous

    Commands Get statistics : qmail-qstat list queued mails : qmail-qread Read an email in the queue (NNNN is the #id from qmail-qread) : find /var/qmail/queue -name NNNN| xargs cat | less Change queue lifetime for qmail in seconds (example here for 15 …

    Read more

  • Link to a deleted inode

    Monday, March 05, 2018 in Miscellaneous

    Get the inode number from lsof, then run debugfs -w /dev/mapper/vg-home -R 'link <16008> /some/path' where 16008 is the inode number (the < > are important, they tell debugfs you manipulate an inode). The path is relative to the root of …

    Read more

  • LDAP auth with nginx

    Monday, March 05, 2018 in Miscellaneous

    ldap_server ldap { auth_ldap_cache_enabled on; auth_ldap_cache_expiration_time 10000; auth_ldap_cache_size 1000; url "ldaps://ldapslave.adyxax.org/ou=Users,dc=adyxax,dc=org?uid?sub?(objectClass=posixAccount)"; binddn …

    Read more

  • Understanding make

    Tuesday, January 30, 2018 in Miscellaneous

    http://gromnitsky.users.sourceforge.net/articles/notes-for-new-make-users/

    Read more

  • Some bacula/bareos commands

    Wednesday, January 10, 2018 in Miscellaneous

    Bacula is a backup software, bareos is a fork of it. Here are some tips and solutions to specific problems. Adjust an existing volume for pool configuration changes In bconsole, run the following commands and follow the prompts : update pool from …

    Read more

Posts in 2016

  • Building rpm packages

    Monday, February 22, 2016 in Miscellaneous

    Here is how to build locally an rpm package. Tested at the time on a centos 7. Setup your environment First of all, you have to use a non-root account. Create the necessary directories : mkdir -p ~/rpmbuild/{BUILD,RPMS,S{OURCE,PEC,RPM}S} Tell …

    Read more