After upgrading do the Kernel 4.18, a chroot I used somewhat frequently stopped working. Everytime I tried to start it I just got that simple, but horrifying message: ~# chroot /path/to/jail /bin/bash -i -l Segmentation Fault As the project I was working on did not depended on that chroot I’ve set this aside until now. …
Author Archives: Vargas
Upgrading the linux-image in Debian stretch
In the last few days I was trying to make some BPF scripts work and for that I tought I needed to upgrade my Debian to a new kernel. The original version is 4.9 with all the debian patches, and I’ve decided to go for the latest one available, which was 4.18. $ apt-cache search …
Continue reading “Upgrading the linux-image in Debian stretch”
Using LDAP to authenticate with a svnserve server
I had this already set up in another server but we had to set up a new svn server even though we already switch most of our stuff to git… So, after setting the the svnserve daemon, we need to set up LDAP authentication. We are using debian servers so I needed to install sasl2-bin …
Continue reading “Using LDAP to authenticate with a svnserve server”
Setting up a UTF-8 environment in linux
Based on this post. Check if the locales package is installed (dpkg -l locales). Then run: dpkg-reconfigure locales and choose the desired locales (en_US.UTF-8, for me). Then, to be sure, export the variables (~/.bashrc) export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 You should start tmux or screen with the parameters, to be sure: $ tmux -u …
Cycling throught windows in Windows 8
This Lifehacker post is about a really useful Windows 7 hack, that works fine on Windows 8 and Windows 10. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced New DWORD (32-bit), name it LastActiveClick, value 1. Restart explorer. Fearing that the link may break someday, here is a copy of the full content: Windows 7’s taskbar is undoubtedly a great addition to …
Resizing a tmpfs partition without losing the files
Took me just a few seconds of Googleing, but it seems worth taking a note here. To resize a tmpfs filesystem without losing the files. Assuming that /tmp is being mounted in a tmpfs. You can do it so it lasts until next reboot with: mount /tmp -o size=3000M,remount Or you can do it so …
Continue reading “Resizing a tmpfs partition without losing the files”
Good Console solution for Windows
After coming across this stackoverflow post: http://stackoverflow.com/questions/913912/bash-shell-for-windows I discovered Console: http://sourceforge.net/projects/console And I can use it with the Git shell, setting the shell to: “C:\Program Files (x86)\Git\bin\sh.exe” –login -i Just amazing! Update 2017/05/04: The original project is no longer active, but this fork seems to be: https://github.com/cbucher/console
Visualizing thread context switch and schedule timeline in Linux
Recently I needed to see when my threads were executing and in which processor, and it took me a couple of days to get this done. Here is the best solution I’ve found. First of all, we need the kernel to be compiled with some debug features enabled http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt https://www.kernel.org/doc/Documentation/trace/ftrace.txt We’ll need to mount the …
Continue reading “Visualizing thread context switch and schedule timeline in Linux”
“Xlib: PuTTY X11 proxy: wrong authentication protocol attempted” solution!
After wasting a couple hours I’ve found someone who had the solution, which I found through this guy’s blog. In my case, what I had was a chroot jail inside a server (which I also had full control), here are the steps: Connect to the server Execute: # xauth list devserver/unix:10 MIT-MAGIC-COOKIE-1 f44098e4ee6687e163c152a72c7dacbd and …
Continue reading ““Xlib: PuTTY X11 proxy: wrong authentication protocol attempted” solution!”