Posts Tagged ‘debian’

Skype on Debian Testing

April 30, 2013

The instructions on the official wiki worked for me.

Advertisements

Starting a Program at Boot-time

February 9, 2013

First step is to become root. One of the following should do

sudo su
ssh root@localhost

Next step is to copy the skeleton service:

cp /etc/init.d/skeleton /etc/init.d/SERVICENAME

Then update the copy to make sure that the variables DESC, NAME, DAEMON, DAEMON_ARGS, PIDFILE, and SCRIPTNAME are correct:

nano /etc/init.d/SERVICENAME

Then depending on distribution run one of the following (first is for debian, last is for redhat):

update-rc.d SERVICENAME defaults
chkconfig SERVICENAME on

MSP-FET430UIF on Debian Testing

February 7, 2013

Connecting the TI MSP-FET430UIF (a msp430 programmer) to a box running debian testing will not result in a device being created. This is caused by a missing firmware file (ti_3410.fw).

Download it from here (local copy here) and place it in the /lib/firmware directory. Then reconnect the FET430 and the port should show up.

Found the fix here.

Installing Android Developer Tools on Debian Testing

January 11, 2013

Download

Download from here.

Extract

Assuming that (i) /opt exists, (ii) you have permission to write to it, and (iii) you downloaded the amd64 version to ~/Downloads:

cd /opt
unzip ~/Downloads/adt-bundle-linux-x86_64.zip

Verify

Start by running:

cd /opt/adt-bundle-linux/eclipse
./eclipse

Add shortcut to Gnome Shell

Save the following to /usr/share/applications/adt.desktop:

[Desktop Entry]
Version=1.0
Name=Android Developer Tools
GenericName=Android Developer Tools
Comment=Android Developer Tools
Exec=/opt/adt-bundle-linux/eclipse/eclipse
Terminal=false
Icon=/opt/adt-bundle-linux/eclipse/configuration/org.eclipse.osgi/bundles/2/2/.cp/icons/android-64.png
Type=Application
Categories=Programming;
MimeType=text/x-java-source;

Notes:

  1. You must be superuser to write to this location.
  2. There are two references to the installation directory.
  3. There should be a local version of /usr/share/applications/, but I couldn’t find it.
  4. The 64-bit version depends on a 32-bit libncurses package.

At this point ADT should be registered with the gnome activity screen.

Building DEB packages

July 28, 2009

A good starting point is the Debian Binary Package Building HOWTO. The postinst and prerm scripts can be placed in /DEBIAN/ and dpkg-deb will do the right thing when building the package.

The ubuntu wiki also has a nice introduction.

Creating a debian/ubuntu meta package

May 11, 2009

This article explains how to create a DEB-style meta package.

Creating a personal APT repository

May 11, 2009

This guide seems to explain it all.

You may run into errors of the form:

$ reprepro -Vb . includedeb jaunty /path/to/package.deb
Error: Distribution jaunty contains an architecture called 'all'.
There have been errors!
$ reprepro -Vb . dumpreferences
Error: Distribution jaunty contains an architecture called 'all'.
There have been errors!
$

In that case, try removing all from the “architectures” line of nano conf/distributions.