Category / SysAdmin

I’m writing a “fun” script, and one of the fun commands it executes is Asciiquarium. This is my guide on how I got it working in Centos 6 🙂 First the dependecies : yum install perl-Curses perl-ExtUtils-MakeMaker If you miss one, you will get his error : Can’t locate ExtUtils/MakeMaker.pm in @INC First we need […]

Read More

gem: Command not found

19 January, 2018

While installing a ruby package I hit the error : gem install –version 1.15.4 bundler make: gem: Command not found make: *** [setup] Error 127 This can be resolved by installing the package : yum -y install rubygems-devel or for the Debian friends apt-get install rubygems Happy building 🙂

Read More

With the latest stable Rocket Chat (0.60.3) on Centos 7 machine I got this error : # node main.js /opt/Rocket.Chat/programs/server/boot.js:50 const { pause } = require(“./debug.js”); ^ SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/opt/Rocket.Chat/main.js:4:1) […]

Read More

Avoid rsyncing thumb.db

9 January, 2018

If your sync is syncing a bunch of thumb.db files from windows cause someone opened the directory, you can easely remove it from the sync : rsync -avhn –exclude ‘Thumbs.db’ source destination note : I added -n for copy/paste mistakes 🙂 if you got plenty of file types/extensions you want ignored/excluded use : rsync -avhn […]

Read More

Suddenly a Linux server, -only- serving as ‘open’ samba share (guest account allowed) stopt working. I logged in and found samba working, no weird network issues, nothing. A mystery ! After a service smb restart and a reboot -h now (sue me, uptime) I increased the log level of smb to level 3 this is done […]

Read More

While installing node.js : Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel) Requires: libhttp_parser.so.2()(64bit) Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel) Requires: http-parser >= 2.7.0 You can solve this by installing http_parser manually : yum install https://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/http-parser-2.7.1-3.el7.x86_64.rpm The reason behind the issue, is in that RHEL 7.4 now includes this package in the default repo, and for that reason its now removed from epel […]

Read More

I wanted to redo/rework the Passbolt install on Centos for a while. It’s seems like a horribly long and complex process, but in fact it’s not. With the recently released Passbolt 1.6 and my wish to play with asciinema for a while I thought why not combine both 🙂 Considering this is my first attempt, don’t shoot […]

Read More

It’s not the first time I received this error. It is the error you receive when the file (or large input in general) you tried to upload is too large and the server is declining it. Here is how you can fix it : Open your server {} specific config file for nginx : nano […]

Read More

I have some NFS servers (read: the main function is to store data and share it over NFS) to maintain and mostly they simply work (like everything in Linux). Most variables have been battle tested for … well forever. So rarely do you need to check on the best trade-off. Well enter the NFS thread […]

Read More

I recently learned about tcp_sack while I certainly don’t understand every detail of this feature, its clear it should be a huge help in cases where packets (in TCP protocol) are dropped and latency is relative high. From my basic understanding, when sending TCP protocol packages, every package has a number (sequence) when tcp_sack is […]

Read More