Category: Linux

Various posts related to Windows operating system

Posted in Linux Tools

Don’t use valgrind on MacOS!

Subj, It’s buggy and misleading. You will do better by installing Oracle Virtualbox (free) with Linux (free) and running valgrind (free) in the virtual machine.

READ MORE
Posted in How To Linux Other

GIT: ! [remote rejected] master -> master (n/a (unpacker error))

I’m working on multiple machines under multiple accounts on the same project and using git to sync between the codebases. The program by its nature has to run under root account, so no wonder at some point permissions got screwed up and I’ve got stuck with this error: ! [remote…

READ MORE
Posted in Linux

Why on earth make invokes cc instead of gcc!?!

I’m working on my next cool project (subscribe to RTFMS.com to find out details) and got stuck with an interesting problem. Here is a fragment of my Makefile: … SOURCES := $(wildcard *.c) … %.o: %.c %.h $(I_CC) $(I_CCFLAGS) -c $< ... When I run make clean;make the output is...

READ MORE
Posted in Hardware Linux

Fixing Wireshark’s “TCP checksum offload” error in linux

On some linux machines when you run wireshark you may notice that a lot of packets are marked as invalid (highlighted as black). The contents looks perfectly correct, but for some reason checksum is brkoen and wireshark suggestes that the reason for such unpleasant event is “TCP checksum offload”. Let’s…

READ MORE
Posted in Hardware Linux Robotics Software

Fix: Error: register r24, r26, r28 or r30 required

I was recently compiling some Arduino code with NewSoftSerial and got hit by infamous “Error: register r24, r26, r28 or r30 required” error. NewSoftSerial is a great library and those using older avr-gcc compiler enjoy it alot. Problem is the newer gcc doesn’t like one nasty error in the code…

READ MORE
Posted in Hardware Linux

Solving libopenocd.so: undefined reference to `FT_GetLatencyTimer’ problem during openocd compilation

If you dare to build OpenOCD from svn trunk and lucky to have a USB JTAG adapter there is a good chance you will see something like /bin/sh ../libtool –tag=CC –mode=link gcc -std=gnu99 -g -O2 -I/root/Distr/ftd2/libftd2xx0.4.16 -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd main.o libopenocd.la -ldl…

READ MORE
Posted in Linux

How to autologin root

This is a famous/popular question in many Linux forums. The typical answer to the question is “Login (especially autologin) into a system as root is bad”. That’s right, but WTH! The person is asking how to do that, not if it is good or bad! If you don’t know the…

READ MORE
Posted in Linux

How to resize knote

In some versions of KDE (like 4.2.2) there is a bug in knote that prevents users from resizing the note. The bug is fixed in 4.2.3, but if you are still using 4.2.2 you still can resize it.

READ MORE
Posted in Linux

“Build dependency: Please do not compile as root.” in kamikaze 8.09

Good news is OpenWRT 8.09 got recently released. Bad news is that you can’t compile it as root. Yes, compiling as root is bad, but in some situations you absolutely need to do that and you’re just unable to do that. In previous versions it was possible to “export FORCE=1”…

READ MORE
Posted in Linux Robotics

How to add serial interface to WRT54GL router

If you decided to mod your wrt54gl router and turn it into one of the most capable routers for soho network, probably the first mod you should start with is adding serial interface to it. Why? Because when you do the other mods (like adding SD reader, turning into robot,…

READ MORE
Posted in Linux

Updating BIOS on ALIX 2 series (fixing “NET: Registered protocol family 16” boot freeze)

I recently tried to install voyage linux on an ALIX computer and found that versions 5.0 don’t run on it hanging with “NET: Registered protocol family 16” message during the boot. After quick research I found that “MFGPT workaround” option should be disabled in the bios settings in order to…

READ MORE