The following error popped up when I was accessing a Ubuntu EC2 instance from my MacOS X system:
‘xterm-256color’: unknown terminal type.
To fix this error I needed to install ncurses-term via
sudo apt-get install ncurses-term
Sometimes installing Java can be as if someone stabs you hundreds of pencils in the ass. I had trouble to install the Sun Java6 JDK after updating to Ubuntu 10.04.
If you have a Subversion running including a Trac connection, it’s nice to have the post-commit-hook running, too.
With this hook, you can include additional keywords (closes, fixes) in commit-comments which then allow to close, fix etc. tickets.
I installed it in the following way.
My Subversion directory is in this case /svn and my Trac directory is /trac.
mkdir -p /usr/share/trac/contrib cd /usr/share/trac/contrib wget http://trac-hacks.org/export/7848/timingandestimationplugin/branches/trac0.11/scripts/trac-post-commit.py
Now the SVN settings
cd /svn/hooks vim post-commit
Add this content to the post-commit file (via http://trac-hacks.org/wiki/TimingAndEstimationSVNPostCommitHook):
#!/bin/sh REPOS="$1" REV="$2" LOG=`svnlook log -r $REV $REPOS` AUTHOR=`svnlook author -r $REV $REPOS` TRAC_ENV='/trac' /usr/bin/python /usr/share/trac/contrib/trac-post-commit.py \ -p "$TRAC_ENV" \ -r "$REV" \ -u "$AUTHOR" \ -m "$LOG"
Change some privileges and owner-ships:
chown www-data:www-data post-commit chmod 755 post-commit
Install ppa-purge from this site:
https://launchpad.net/~xorg-edgers/+archive/ppa/+sourcepub/893290/+listing-archive-extra
Just click the .deb file and install it.
Then use it via command line. Here: Removing the Mozilla ppa:
sudo ppa-purge ppa:ubuntu-mozilla-daily/ppa
I just tried to install some Python package with easy_install and got the following error:
Python.h: No such file or directory
Installing of the Python development headers solved the problem. I just executed:
sudo apt-get install python2.6-dev
To get the best version of the apt-package search for it using e.g.
sudo apt-cache search python
I wanted to update my Debian packages via
sudo apt-get update
and what I got was the following error:
GPG error: ftp://mirror.hetzner.de etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE303B
To fix this, I just had to add the keys via
gpg --keyserver pgpkeys.mit.edu --recv-key 9AA38DCD55BE303B gpg -a --export 9AA38DCD55BE302B | sudo apt-key add -
or
gpg --keyserver pgpkeys.mit.edu --recv-key 9AA38DCD55BE303B gpg -a --export 9AA38DCD55BE302B | apt-key add -
if you are already root.
Install it via
sudo apt-get install php5-tidy
Then use it for example this way:
$config = array(
'indent' => true,
'output-xhtml' => true,
'show-body-only' => true,
'wrap' => 0);
$tidy = new tidy;
$tidy->parseString($html_txt, $config, 'utf8');
$tidy->cleanRepair();
echo $tidy;
I got the following errors when I ran
locale
on my Debian installation:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
To fix this I executed
localedef -i en_US -c -f UTF-8 en_US.UTF-8
to redefine my locale-settings.
Whenever i need to manage my subversion repository, i am using rapidsvn under Ubuntu. Pretty simple interface, but it fullfills its purpose.
I got the following error when i wanted to install passenger via
gem install passenger
on my ubuntu machine:
no such file to load — mkmf
To fix this i had to install the ruby modules via
sudo apt-get install ruby1.8-dev
I got the following error when trying to create a ssl-certificate on Ubuntu 8.04:
apache2-ssl-certificate: command not found
The problem was that there is a new command to create such a certificate:
sudo apt-get install ssl-cert sudo mkdir /etc/apache2/ssl sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
install Erlang and Mochiweb under Ubuntu
First of all we install necessary components and start with the Erlang installation:
sudo apt-get build-dep erlang
sudo apt-get install java-gcj-compat java-gcj-compat-dev
Then we download the source of Erlang (newest versions are available here: http://erlang.org/download.html). I took the R12B-5 release.
wget http://erlang.org/download/otp_src_R12B-5.tar.gz
Extract
tar xfvz otp_src_R12B-5.tar.gz
Configure (choose your favorite directory for the Erlang installation, here: /usr/local/erlang), build and install it:
cd otp_src_R12B-5
./configure --prefix=/usr/local/erlang
sudo make
sudo make install
Now the Mochiweb part
We checkout the newest Mochiweb source using subversion (if not installed yet. Install subversion using sudo apt-get install subversion).
svn checkout http://mochiweb.googlecode.com/svn/trunk/ mochiweb
cd mochiweb
sudo make