Category Archives: Linux

SCALE 15x

Went to the SoCal Linux Expo today.  First time attending and it was pretty neat.  I went to the Reactor8 guys talks/workshop.  Didn’t know anything they were talking about at first but eventually got an idea of their talks.  Beginning … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Deleting messages in mailq

Had all these messages stuck in the mailq and couldn’t figure out how to delete the queued messages.  Turns out they were in these locations: /var/spool/postfix/deferred /var/spool/postfix/defer   Ubuntu Postfix

Posted in Linux | Tagged , , , | Leave a comment

Apache paths (default)

Had to look this up multiple times now: access log (sudo): /var/log/apache2/access.log apache2.conf: /etc/apache2/apache2.conf props if figured out what I’m doing

Posted in Linux | Tagged , , , , , , , | Leave a comment

Linux: upstart job

Made a newbie mistake on my aws server.  Started a node.js server as a user (node server.js &) and didn’t realize that after I logged out the node.js server would go down with it.  Once I set the node.js to … Continue reading

Posted in Linux | Tagged , | Leave a comment

Install Node.js MongoDB on Ubuntu

For Ubuntu 12.04 Node.js (v 0.6.12) sudo apt-get install nodejs MongoDB sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 echo ‘deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen’ | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install mongodb-10gen Reference: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Posted in Linux | Tagged , , , | Leave a comment

Cross Compile libcurl

Here are the command I used to cross compile libcurl for ARM processor. I’m assuming you’ve got your cross compile in the PATH already:   ./configure –target=arm-linux –host=arm-linux –prefix=/opt/libcurl No SSH support

Posted in Linux | Tagged , | Leave a comment

Android AVD emulator not starting on Ubuntu

Ran into this error where the Android Emulator API 8 or 10 on Ubuntu 12.04 would not start. It just looks like it’s hanging there. The solution is this: in android-sdk you need to rename the libOpenglRender.so library. cd /path/to/android-sdk-linux/tools/lib … Continue reading

Posted in Android, Linux | Tagged , , , , , , | Leave a comment

GStreamer: HelloWorld example tip

Cross compiling the gstreamer HelloWorld example for my ARM J5 board, I ran into this warning and the associated error messages. /development/toolchains/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /development/ti-ezsdk_dm814x-evm_5_04_00_11/linux-devkit/arm-none-linux-gnueabi/usr/lib/libgstreamer-0.10.so, not found (try using -rpath or -rpath-link) /development/ti-ezsdk_dm814x-evm_5_04_00_11/linux-devkit/arm-none-linux-gnueabi/usr/lib/libxml2.so: undefined reference to `inflateEnd’ /development/ti-ezsdk_dm814x-evm_5_04_00_11/linux-devkit/arm-none-linux-gnueabi/usr/lib/libxml2.so: … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment

PulseAudio: pacmd volume commands

On the TM 814x EVM board (kernel 2.6.37), the TI linux didn’t include the pacmd  To get the CLI pacmd, I needed to install the following packages: opkg install pulseaudio-misc pulseaudio-module-cli pulseaudio-module-cli-protocol-unix Maybe some other pacakges too but I forgot. … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment

GDB: Remote target error

I was trying to debug a program on an ARM target and the debugger kept giving me this problem: gdb malformed packet Looking online, this error occurs because of a mismatch between the gdb on the host and the gdbserver … Continue reading

Posted in Linux, troubleshooting | Tagged , , | Leave a comment