Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, November 12, 2011

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/Release.gpg Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)

Fix'd thanks to: this post.
I had the same error on a new install. It looked like a DNS issue. So I configured my network connection to use OpenDNS directly, rather than via my router. That seems to have solved the problem.

Right-click network icon, select "edit connections"
Select the connection you are using at the moment.
Click "edit"
Select the "IPv4 settings" tab
Set method to "Automatic (DHCP) addresses only"
Then input "208.67.222.222, 208.67.220.220" into the DNS servers box

Exit, reset the network connection and retry "apt-get update"

Weird that my ISPs DNS doesn't resolve some of the addresses now :/

Friday, October 21, 2011

Getting redis 2.2.2 on Ubuntu 10.04 LTS

Found instructions here

sudo add-apt-repository ppa:bitpusher/ppa; sudo apt-get update; sudo apt-get upgrade

Thursday, October 20, 2011

Creative VFO260 works in Skype

To get my Creative VFO260 webcam to work with skype I have to run it with the "v4l2convert.so" shared object loaded:
env LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
you can create a launcher with that as the "command" so you won't have to run from terminal every time.

MOAR from the wikipedia:

The dynamic linker can be influenced into modifying its behavior during either the program's execution or the program's linking. Examples of this can be seen in the run-time linker manual pages for various Unix-like systems[1][2][3][4][5]. A typical modification of this behavior is the use of the LD_LIBRARY_PATH and LD_PRELOAD environment variables. These variables adjust the runtime linking process by searching for shared libraries at alternative locations and by forcefully loading and linking libraries that would otherwise not be loaded and linked, respectively.

I do not know what kind of code is in the shared object that we are loading, but it works for me :)

Tuesday, June 7, 2011

How to compile Context Free Art 3 alpha on ubuntu

Context Free Art Forum Topic

*edit*
easy peasy now, just make :D

How to make/compile context free art 2.2.2 on ubuntu

So, you need LEX and YACC for some crazy wizard parsing these guys do so...

$sudo apt-get install flex bison

Then change line 54 in ./src-common/yglue.h
from:
size_t yyget_leng (void);
to:
int yyget_leng (void);

This is because one thing is expecting one data type and its like nah its something else, thanks to this post I was able to find the fix.

Then go along as usual...

$make cfdg

*computer rumbles*

$./cfdg
Missing input file
cfdg - 2.2.1(v11)

Usage:
cfdg [options] input.cfdg [output.png/svg]
or to pipe a cfdg file on standard input:
cfdg [options] - [output.png/svg]
The output file name is omitted if the -o option is used

Options: ... etc


HOORAY! I'm thinking of adding some group tag support based on rule names from CFDG grammar to the output SVG files. I don't know C++, but I got a C- in the college class for it.