Alex
  • Member for 8 years, 10 months
  • Last seen this week
Why is the Linux kernel 15+ million lines of code?
24 votes

tinyconfig bubble graph svg (fiddle) shell script to create the json from the kernel build, use with http://bl.ocks.org/mbostock/4063269 Edit: turned out unifdef have some limitation (-I is ignored ...

View answer
mutt: save message to specific folder
Accepted answer
22 votes

tagged mails: macro index S ":set confirmappend=no delete=yes\n<tag-prefix-cond><save-message>=archive\n<sync-mailbox>:set confirmappend=yes delete=ask-yes\n" current only: macro ...

View answer
How to install a deb file, by dpkg -i or by apt?
14 votes

Check the dependencies with dpkg -I my.deb and apt-get install the dependencies before dpkg -i my.deb. May be you can copy the my.deb in /var/cache/apt/archives and install it directly with apt-get ...

View answer
Bitmap Font data as array in C
Accepted answer
7 votes

You can use convert as shown here: C header file with bitmapped fonts Probably there are a lot of commands to convert fonts to bitmap, but the freetype API is easy enough to write your own with not ...

View answer
Systemd Unit service restart if another service start or reload
4 votes

I had no control over stop with PartOf=, and A must not stop with B, so I ended up using Overriding vendor settings, seems to work. /etc/systemd/system/B.service.d/override.conf [Service] ExecStart= ...

View answer
Generate MIPS architecture assembly code on a X86 machine
4 votes

You need a cross toolchain, gcc (+binutils) which run on x86_64 but output mips binaries. You can try to build it yourself from scratch (google for examples: build cross toolchain) or download a pre-...

View answer
Remove a manually installed driver (wireless usb)
4 votes

According to your link the filename of the driver should be mt7601Usta.ko (.ko is the extension for kernel modules). Kernel modules are usually installed in /lib/modules/$(uname -r), so use find /lib/...

View answer
How to custom build debian's busybox?
Accepted answer
4 votes

If you need a .deb customized on the fly mkdir /tmp/bb cd /tmp/bb apt-get source busybox sudo apt-get build-dep busybox cd busybox-1.20.0/ fakeroot debian/rules build make -C debian/build/deb/ ...

View answer
How to change color of a character while tailing and tr
4 votes

tail -f file.log | sed -n '/TEST/s/\x1/\x1b[32m|\x1b[0m/gp' -n tell sed to suppress the output by default (but the final p will tell to print the matched rows, a sort of grep) /TEST/ select only ...

View answer
How to create a formatted partition image file from scratch?
4 votes

losetup /dev/loop0 file -o 1048576 --sizelimit limit Offset specified should be in bytes (1048576 = 2048 sectors * 512 bytes per sector). mount -o loop,offset=1048576,sizelimit=limit For more ...

View answer
Loop Mounting in Parallel
4 votes

Maybe a threaded version could be a bit faster, you've to adjust the mount() parameters yourself. #include <stdio.h> #include <pthread.h> #include <sys/mount.h> #include <string....

View answer
dnsmasq as dns only, map mac-address to hostname for dynamic ip
Accepted answer
3 votes

Solved, see poor-mans-device-discovery-dns new link Use dnsmasq's option addn-hosts=/etc/dyn.hosts to read an additional hosts file, which is generated periodically using the command arp-scan (and ...

View answer
Fixing a broken packet system (apt-get)
Accepted answer
3 votes

/etc/rc1.d/S01killprocs -> ../init.d/killprocs is missing, obviously, it is in initscripts but insserv requires it. chkrequired Maybe you can install it manually extracting the .deb in some other ...

View answer
buildroot compiling driver
Accepted answer
3 votes

asm/ is a symbolic link to your target architecture, if it doesn't exist probably you're missing some target in your kernel build directory, configure (if not, maybe just module_headers can make it) ...

View answer
vfat not recognized in debian
Accepted answer
3 votes

mount use libblkid to guess the filesystem from the device you're trying to mount, and you can see that it work from the error message it give: mount: unknown filesystem type 'vfat' but the weird ...

View answer
Where would I start looking for documentation on the graphical mode of the Linux console?
Accepted answer
3 votes

Sorry for repeating but take a look to Nano-X sources. git clone git://microwindows.org/microwin In particular take a look to the files: drivers/kbd_tty.c drivers/scr_fb.c What is done in the tty ...

View answer
Make debian package to install python
Accepted answer
2 votes

One fast and easy way could be to use alien, it convert .tar to .deb: tar czf pkg-name.tgz usr/ fakeroot alien -d pkg-name.tgz Else use the old way, I use a Makefile like that: all: deb deb: ...

View answer
Reserve fixed RAM memory region as a block device ( with a given start physical address)
2 votes

Before the introduction of tmpfs / initramfs there was ramdiskused to load the initrdimages, a pre-defined fixed size block devices, I think contiguous, at least on earlier implementations. The block ...

View answer
Build a package for Debian
Accepted answer
2 votes

I think the important thing your build is missing is that on make install the Makefile honours the DESTDIR variable (which on packaging target should be something like ./debian/myprog). After the ...

View answer
Installing GRUB in a dual-boot
Accepted answer
2 votes

Assuming you're partitioning with MBR and not GPT. First, you can backup and eventually restore your mbr (assuming hda is the target disk): dd if=/dev/hda of=/path/mbr-backup bs=512 count=1 # ...

View answer
error caused by undefined symbol: glXGetProcAddress
Accepted answer
2 votes

@peterph's answer was very close to the problem. The video card was a Matrox G550 (mga) but in the past there been an nvidia installed and some glx stuff remained in /usr/lib/tls. I've not ...

View answer
How to deduce the right target for a GCC cross-build?
2 votes

You should not deduce, you must know and choose the one you need, if you needed compatibility with an old 486 or the best performance with your 686. The missing headers are just a different issue.

View answer
debian: add custom patch to dkms module
1 votes

It was simpler and took less time than I anticipated, as man 8 dkms says just put them in/usr/src/<module>-<module-version>/patches/and then add the file name of the patch indkms.conf of ...

View answer
How to add a precompiled library in autotools?
Accepted answer
1 votes

This old workaround seems to be still working mylibdir = $(libdir) dist_mylib_SCRIPTS = libxxx.so

View answer
Physical Address Extension - how do virtual addresses work?
1 votes

pae stand for physical address extension and allow a cpu with a 32bit address bus to address more than 4G. Notice that if your /proc/cpuinfo show support for pae isn't enough, you need to use a ...

View answer
CheckInstall fails to install on Debian
Accepted answer
1 votes

If checkinstall failed probably the package isn't installed, no need to remove, eventually try sudo dpkg -r <package-name>, and you can safely remove with rm intermediate files left in the ...

View answer
Differences between dd in Mac OS X and Linux
Accepted answer
1 votes

Sometimes the copy succeeds and sometimes it fails. Probably it fail because some process in the while wrote to the mounted filesystem, guess that's why is a good practice to umount before :-) dd ...

View answer
ttyS1/uart1 initialised but not accessible through /dev/ttyS1
Accepted answer
1 votes

mknod /dev/ttyS1 c 4 65 (if /dev is read-only use any writable directory mounted without the option nodev) If the node is created without errors you can check if your patch is working reading/...

View answer
Is it possible to have two separate one way (simplex) serial ports to make single tty device?
1 votes

I would use LD_PRELOAD and a dynamic library (you have to create it) to override the calls that minicom do, open(), read(), write(), ioctl(), close(), I don't think are much more. google for "...

View answer
Is there a way to listen to process?
1 votes

With ptrace() you can attach a tracer to a process (or run a new one), set an hook with PTRACE_O_TRACEEXIT (linux >= 2.5.60) and sleep until the process exit, then with PTRACE_GETEVENTMSG get the exit ...

View answer