Posts with the category Ubuntu 11.04
Install the LaTeX Distribution TeX Live on Ubuntu Linux
Install the most important packages using:
sudo apt-get install texlive texlive-latex-extra
optionally also install some German language support packages:
sudo apt-get install texlive-lang-german
If you want the full TeX Live system:
sudo apt-get install texlive-full
Resources
- Official Ubuntu Help: https://help.ubuntu.com/community/LaTeX#TeX_Live
- Ubuntuusers Wiki: http://wiki.ubuntuusers.de/LATEX#TeX-Live (German)
- Package Search for TeX Live: http://packages.ubuntu.com/texlive
Downloading Picasa Web Albums
Picasa-Downloader – A simple Python script to get the normal size images
https://github.com/anoopjt/Picasa-Downloader
pip install BeautifulSoup cd ~/Downloads wget https://raw.github.com/anoopjt/Picasa-Downloader/master/picasa_downloader.py
Pycasa – capable of downloading full size images
http://code.google.com/p/pycasa-download/
This open source software includes a GUI. It relies on PyGTK and it is therefore difficult to get it to work with Mac OS...
FlickrMS - Mounting Flickr as FUSE File System
Requirement: flickcurl
flickcurl is a library to access the Flickr API via C.
On Debian/Ubuntu simply install libflickcurl-dev:
sudo apt-get install libflickcurl-dev
or get the latest dev version:
sudo apt-get install libxml2-dev libcurl4-openssl-dev libcurl4-gnutls-dev libgcrypt11-dev libgnutls-dev libgpg-error-dev libraptor1-dev libtasn1-3-dev libxslt1-dev raptor-utils cd ~/Downloads git clone git://github.com/dajobe/flickcurl.git cd flickcurl ./autogen.sh make sudo make install
Apply for...
Install an Asterisk Server on Debian from Source
https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source
Get Requirements
We need gcc, g++ and some libraries:
sudo apt-get install build-essential libxml2-dev ncurses-dev
Get the source, compile and install
cd ~/Downloads # get the source code wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.5.0.tar.gz # untar it tar -xf asterisk-1.8.5.0.tar.gz cd asterisk-1.8.5.0 # clean the build directory (of crap from previous runs) make distclean # configure and compile Asterisk: ./configure make # install Asterisk...
Sniff Serial Connection
Windows
- My favorite: Advanced Serial Port Monitor v4.1.5 2011-03-28.
Works with Windows 7, somewhat limited in the free edition but good for me.
http://www.aggsoft.com/serial-port-monitor/serial-port-sniffer.htm - 232Analyzer has a free edition: http://www.232analyzer.com/232default.htm.
- Portmon
http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx - Advanced Serial Port Monitor v3.00
http://www.kmint21.com/serial-port-monitor/
I don't know if this works with newer Windows versions. - SAL232 - RS-232...
Use Middle Mouse Button in a Parallels 6 Virtual Machine running Linux on a MacBook Pro
Sometimes you have to use the middle mouse button, sometimes it's just convenient to do so. Either way, if you want to use it on a virtualised Linux machine on a Parallels 6 (or any other virtualisation software) you can't out-of-the box on a MacBook Pro as the touch pad...
Use a Prologix GPIB-to-USB Controller via Linux
Plug'n'Play on Linux
Plug the Prologix GPIB-USB Controller in on your Ubuntu 11.04 machine (most probably it will work on most older versions too) it directly shows up as a serial port via USB, such as /dev/ttyUSB0
. No additional drivers needed. Here is the output of dmesg
when you plug it...
cherokee – A Very Fast and Small Webserver Software
http://www.cherokee-project.com/
Installation
http://www.cherokee-project.com/doc/
Debian/Ubuntu offers Cherokee packages but they are quite outdated for the stable branch. So you may want to prefer the manual installation from source.
Manual Installation From Source
The easy way of installation:
wget http://cherokee-project.com/install && python install
or get the source and compile it yourself:
wget...
Markdown for the Gedit Text Editor on Ubuntu 11.04
This is the continuation of the topic gedit Markdown plugin and the comment by Jean-Philippe Fleury, the author of the plugin.
If you frequently have to create Markdown documents, you might want your text editor of choice to support you. Jean-Philippe Fleury developed a nice plugin for Gedit to...
Sandboxing on Ubuntu with Arkose using LXC
Arkose can serve to make sandboxing easy on Ubuntu Linux. It uses LXC as technology to isolate programs that you don't trust fully.
On Natty 11.04 the installation is as simple as
sudo apt-get install arkose
Check the links below for more information.
Resources
- The developer's blog: http://www.stgraber.org/2011/01/09/sandbox-changes-name-to-become-arkose/
- The Arkose source code...
Using Python to interact with the Google Spreadsheets API
update 2015-09-08: this is outdated, please refer to my new blog post instead.
Install the Google Data Library (you should consider installing it in an isolated virtualenv environment):
cd ~/Downloads curl -C - -O http://gdata-python-client.googlecode.com/files/gdata-2.0.14.tar.gz tar -xf gdata-2.0.14.tar.gz cd gdata-2.0.14 python setup.py install
Now you are ready to test the example...
IPv6 Privacy Extensions
The privacy extensions as defined in RFC4941 make your device change its IP every now and then.
Privacy addresses are not enabled by default. Their generation is activated via the sysctl
directive use_tempaddr
that can be set to one of the following values:
0
don't use privacy extensions.1
generate privacy addresses2
...
Instantaneous IPv6 Connectivity using Teredo on Debian / Ubuntu
On Debian and Ubuntu, getting IPv6 connectivity is as easy as running this command in terminal:
sudo apt-get install miredo
You should instantaneously be connected to the internet via IPv6 (provided you have a working IPv4 setup).
If you want to customize your IPv6 connectivity, you can edit the miredo configuration...
Mobile IPv6
Mobile IP / Mobile IPv6 / mip6d seems to be quite dead at the moment:
- Have a look at the dates of the drafts of the IPv6 Mobility working group: http://tools.ietf.org/wg/mip6/index.pyht?sort=3&reverse=1.
- As Martin F. Krafft says in th section Mapping names to laptops of its IPv6 with Debian blog post,...
SixXS Static 6in4 IPv6 Tunnel on Ubuntu / Debian
Define the tunnel in /etc/network/interfaces
You can simply put the following setup in your interfaces configuration file and this will allow you to set up your tunnel automatically at startup or manually using ifup sixxs
.
# Please refer to <http://www.sixxs.net/faq/connectivity/?faq=ossetup&os=linuxdebian> for further information auto sixxs iface <span...
IPv6 6in4 Tunnel via Hurricane Electric (Tunnelbroker.net): Tunnel Setup on Ubuntu 11.04
Using the CLI tool ip
I wrote the following script to set up the tunnelbroker.net IPv6 6in4 tunnel on Linux using the ip
command. You have to adjust the constants to the values given on the tunnelbroker.net site on the tunnel that you created. Just execute it and you should be...
Clear Cached Memory on Ubuntu
To clear the cache / cached memory (free pagecache, dentries and inodes) on Ubuntu or Debian you can write the value 3
to /proc/sys/vm/drop_caches
:
# You should be the superuser ('root') or become the superuser: sudo su # Now sync filesystem and clear the caches: sync && echo...
Fix a problem with NX on Ubuntu 10.10 with the key d (inadvertently minimizing the current window)
Go to System → Preferences → Keyboard Shortcuts and set the shortcut for Hide all normal windows and set focus to desktop
to something sane like Alt + D
update 2011-07-13: This happened again when I used Ubuntu 11.04 inside a NX session on a Mac OS X host computer. :(
resources
<a...
Install the Collaboration Tool Gobby and its Server infinoted
sudo apt-get install gobby
Open gobby and create a session, tell your collaborators your IP, port and password and start working on documents together.
install newer version using launchpad PPD
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CFB6301E echo "deb http://ppa.launchpad.net/infinote/ppa/ubuntu jaunty main" | sudo tee -a /etc/apt/sources.list sudo apt-get update sudo...
Remove openjdk and install sun-jdk
For 9.04 jaunty: http://ubuntuguide.org/wiki/Ubuntu:Jaunty#Java_Runtime_Environment_.28JRE.29_for_Firefox_plug-in
For 11.04 natty: http://ubuntuguide.org/wiki/Ubuntu:Natty#Java_Runtime_Environment_.28JRE.29_for_Firefox_plug-in
# remove the previous openjdk # (may have to be adjusted for newer Ubuntu versions such as natty): sudo apt-get remove icedtea6-plugin openjdk-6-jre icedtea-6-jre-cacao ca-certificates-java openjdk-6-jre-headless openjdk-6-jre-lib sudo apt-get install sun-java6-jre sun-java6-plugin
Update the Turboprint Installation
amd64: http://www.zedonet.com/index.php?en_p_turboprint_download_uni=&arch=1&dist=0
i386: http://www.zedonet.com/index.php?en_p_turboprint_download_uni=&arch=0&dist=0
Update the Turboprint installation:
cd ~/Downloads/ wget http://www.turboprint.info/tp2/turboprint_2.20-1_amd64.deb sudo dpkg -i turboprint_2.20-1_amd64.deb