Printk behaviour change with early_printk enabled

Normally printk does not print any messages before console_init which is present in start_kernel. But with early_printk enabled, printk starts printing messages before console initialization. Now how does this behaviour of printk change since I am st...
more »

2017-01-13 11:01 (1) Answers

Understanding exec in bash

After reading explanations of how the exec builtin works in bash, I understand that its basic function is to replace the current process without forking. It also seems to be used for redirecting I/O and closing file descriptors in the current proces...
more »

2017-01-12 01:01 (1) Answers

FUA, flush and ordering

A FUA command usually means the data needs to be committed to the NVM before signalling completion. From my understanding, there is no requirement to flush the data before the FUA command to the NVM. 1. If we have LBA0 (in Cache), LBA1(cache), L...
more »

2017-01-12 00:01 (1) Answers

How to make linux power off when halt is run?

I have successfully used the pm_power_off function pointer to make my custom Linux board call its power management chip over i2c (to turn the power off). I would like the Linux halt command to switch the power off too. How can I achieve this? The ...
more »

2017-01-11 18:01 (1) Answers

How to pipe live video frames from ffmpeg to PIL?

I need to use ffmpeg/avconv to pipe jpg frames to a python PIL (Pillow) Image object, using gst as an intermediary*. I've been searching everywhere for this answer without much luck. I think I'm close - but I'm stuck. Using Python 2.7 My ideal pipel...
more »

2017-01-11 00:01 (0) Answers

Linux "Locate" command and symbilic link

Does anyone know why "locate" command ignore symbolic links? Ex: lrwxrwxrwx 1 user user 6 Jan 17 2015 bin -> ../bin When I use locate to find file under this bin, it doesn't find anything. Command I used is = locate -ir '.*/bin/java$' ...
more »

2017-01-10 18:01 (0) Answers

Path to Linux Fonts in Python3 and tkinter

By a coincidence I now have two Python 3.5 environments on my Ubuntu 16.10 Linux PC. One environment came with the Ubuntu install and I started using it until I found that Spyder was broken by the 16.10 upgrade. I installed Python 3.5 from Anaconda s...
more »

2017-01-10 17:01 (0) Answers

SVN using MacOS, Linux, and Windows

For a long term university project involving a small team (2/5 people), using Matlab and Java, we are trying to set up an SVN. The problem is that the computers used in this project run different OS. The main computer where the code should be com...
more »

2017-01-10 13:01 (1) Answers

unshare mount namespace not working as expected

When I call the Linux system function unshare(CLONE_NEWNS), it returns 0 indicating success. But, it doesn't seem to work as I was expecting. Specifically when I then add a new mount such as a tmpfs one, it is globally visible. Therefore it is in f...
more »

2017-01-10 05:01 (1) Answers

PHP update to 5.6 from 5.5

I have a problem after I updated my php version to 5.6 from 5.5. OS: Ubuntu 14.04.1 LTS. Server version: Apache/2.4.7 (Ubuntu). PHP version: 5.5. Laravel 4.2 with yajra package. I have done the following steps: sudo add-apt-repository ppandrej/ph...
more »

2017-01-10 04:01 (0) Answers

Installing older gdb version

I'm having a problem with the latest gdb so I want to use an older one. I found the gdb archive here but how do I compile/install one of them so it can be used? According to the manual, first configure: $ ./configure checking build system type... x...
more »

2017-01-09 21:01 (2) Answers

Mass-renaming of files with double quote in name

I have a file system with a lot of files that I want to use on a Windows machine. Illegal characters in filenames are a problem, so I searched for a bash command which recursively sanitizes illegal characters from all files. I found this solution (h...
more »

2017-01-09 12:01 (1) Answers

Linux sscanf function doesn't fill variable

I am currently writing an FTP server and I need to parse the ip and port of a remote server from an input string buffer in the following format: xxx,xxx,xxx,xxx,yyy,zzz where: xxx stands for an ip address octet in decimal yyy is round((remote po...
more »

2017-01-09 03:01 (3) Answers