tweenux
RSS Feed Email Feed

Resetting Thomson Speedtouch routers

Hard Resetting a Thomson router if password is not obtainable: Telenor/NGT modems.
(Or upgrade your existing Speedtouch router to support bridging.)

Works for:
Thomson SpeedTouch 516i v6
Thomson SpeedTouch 546i v6

From a terminal window in Ubuntu (10.10):

:~$ sudo aptitude install bootp tftpd-hpa
:~$ sudo pico /etc/default/tftpd-hpa

(more…)

SparkleShare with gitosis on ubuntu 10.10

Installing gitosis

Install gitosis on a server where you would like to backup/store documents.
On my debian 5.08 (lenny) server, gitosis may simply be installed via aptitude.

my-git-server:~$ sudo aptitude install gitosis

Now, standard “home-dir” for gitosis is /srv/gitosis. I would like to store my git-repositories on a raid location called /storage/. To change home-directory for gitosis, run this command: (Be sure not to create the new home folder gitosis).

my-git-server:~$ sudo usermod -m -d /storage/gitosis gitosis

-m tells usermod to copy over what is already installed in the current home folder for the user.
-d specifies the new home directory for the user.

Now we want to configure gitosis, and create our first repository.
(more…)

Fully working remote control (HVR-4000) on kernel 2.6.35

Remote control support (input device events) is now handled by the kernel (>=2.6.17). However, not all remote buttons may work out of the box. The driver that handles input device events, xf86-input-evdev, needs to be patched in order to remap higher keycodes than the xserver may handle. x server (Xorg/x11) is built with 255 keycodes in mind, out from the fact that a keyboard rarely has so many keys (but perhaps >128). The problem arise when we use new special keys like on a remote control or extended keyboards or laptops that uses multimedia keys. These keys might have a keycode higher than the regular keycode space may interpret. (>255). (more…)

Authenticating Debian servers

Problem updating software depository with aptitude, a signature / public key changed.

W: GPG error: http://debian.samfundet.no etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B

:~$ sudo gpg --keyserver pgpkeys.mit.edu --recv-key 9AA38DCD55BE302B
:~$ sudo gpg -a --export 9AA38DCD55BE302B | sudo apt-key add -

Grails on Debian Lenny

Grails is an open source web application framework which uses the Groovy programming language (which is in turn based on the Java platform). It is intended to be a high-productivity framework by following the “coding by convention” paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer.

Wikipedia

Install java-sdk/jdk:

:~$ sudo aptitude install openjdk6-jdk

http://www.grails.org/Download
Download grails.zip package, unzip and move to /usr/local/

:~$ unzip grails.zip
:~$ sudo mv grails-1.2.3.4/ /usr/local/

Symlink grails-1.2.3.4 to grails:

:/usr/local/$ sudo ln -s grails-1.2.3.4/ grails

Export paths to enviroment:

:~$ export GRAILS_HOME=/usr/local/grails
:~$ export PATH=${PATH}:${GRAILS_HOME}/bin
:~$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

To set the variables edit either (whether you want system wide changes or not):
/etc/profile or ~/.profile / ~/.bash_rc (~/.profile is disregarded if ~/.bash_rc exist! )

Example /etc/profile:

# GRAILS ENVIRONMENT
export GRAILS_HOME=/usr/local/grails
export PATH=${PATH}:${GRAILS_HOME}/bin
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

:~$ grails create-app YourApp

References: http://wiki.debian.org/Java

Hauppauge remote control issue (HVR-4000)

Ubuntu 10.10 (Maverick)

OUTDATED: go to http://archive.pfb.no/2010/12/14/fully-working-remote-control/

I have been quite frustrated over the lack of being able to navigate in media center menus for a long time since the back/exit button has failed to do the desired response, namely navigate back / go up one level / go to parent dir / go to parent menu. (more…)

Install SystemC on Ubuntu 10.10

SystemC is a set of C++ classes and macros which provide an event-driven simulation kernel in C++ (see also discrete event simulation). These facilities enable a designer to simulate concurrent processes, each described using plain C++ syntax. SystemC processes can communicate in a simulated real-time environment, using signals of all the datatypes offered by C++, some additional ones offered by the SystemC library, as well as user defined. In certain respects, SystemC deliberately mimics the hardware description languages VHDL and Verilog, but is more aptly described as a system-level modeling language.

Wikipedia

Register, download and untar systemc-2.2.0.tgz from http://www.systemc.org

We need to patch src/sysc/utils/sc_utils_ids.cpp because Ubuntu environment does know the getenv, strcmp command. Those commands are available in cstdlib and string.h.
(more…)

Redirect hostname.com/stuff to www.hostname.com/stuff

Okay,
The lazy days are over and I figured out it was time to create a more useful redirection of a hostname in my apache2 configuration files. The past few years I have been using this redirection method, but not been happy with it:

RedirectMatch ^/$ http://www.hostname.com

This is ok, but if the user is trying to reach hostname.com/?p=something,
the request ?p=something will be dropped and the user will only be presented with the main page of the site, www.hostname.com.
(more…)

Charging Acid batteries

Garden/Lawn Tractor batteries can be recharged by using a 12V automotive charger.
A typical 12V Tractor battery has a capacity of about 10Ah.
Be sure to set the charging time accordingly to the Ah output of the charger.

It is a good practice to charge the battery before storing the Tractor for the winter.
Store the battery in a safe and frost-free place.

Source: All About Circuits

extract pages from a pdf file

I came across a nice little command to extract pages from a pdf file.

:~$ gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
       -dFirstPage=3 -dLastPage=4 \
       -sOutputFile=OUTFILE_p3-p4.pdf SOURCEFILE.pdf

Putting (splicing) multiple pdfs together:

:~$ gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=OUTFILE.pdf SOURCE_FILE_1.pdf SOURCE_FILE_2.pdf

Source: http://www.linuxjournal.com/content/tech-tip-extract-pages-pdf

« Older Entries