Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home

jorgenmodin.net - Blog

Install Oracle Java on Ubuntu the easy way

I cannot vouch for the quality or integrity but my guess is that it is legit.

 

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


Read more: Link - 10 Things To Do After Installing Ubuntu 14.04 Trusty Tahr To Get A Near Perfect Desktop ~ Web Upd8: Ubuntu / Linux blog

Apr 19, 2014 10:59

Om: A ClojureScript interface to Facebook's React

Note to self:

ClojureScript interface to Facebook's React

 

A clojurescript interface to a javascript library

 

Apr 19, 2014 07:25

A python script to download videos from video sites, including youtube

Update: Did not work that well on my Ubuntu 13.10; seems to have hard coded names for stuff that have other names on Ubuntu.

Requires package libav-tools on Ubuntu 13.10 .

 

youtube-dl is a small command-line program to download videos from YouTube.com


Read more: Link - youtube-dl

Apr 12, 2014 08:20

MoviePy - video editing from python

Impressive demos, including picture in picture. Uses ffmpeg and numpy.

 

 


Read more: Link - MoviePy — MoviePy 0.2 documentation

Apr 12, 2014 08:15

How to find out your OpenSSL version

Summary:

Type

openssl version

With the recent disclosure of the long standing heartbleed bug, it is a god idea to check what version of openSSL you are actually running. Just type openssl on the command line followed by the word "version". According to this page, the versions that are compromised are

  • OpenSSL 1.0.1 through 1.0.1f (inclusive)

OpenSSL cheat sheet

Apr 08, 2014 10:30

Tunneling of VNC over ssh in one command

Well actually two, but you stick them in one file that gets executed in bash:

ssh -fN  -L 5900:localhost:5900 remotserver.example.com
vncviewer -encoding tight -quality 5 localhost:0

 

The -N switch prevents commands to be sent to the remote host, the -f switch allows the terminal to come back and prompt for a vnc password that is triggered by the second line.

Warning: Haven't figured out how to exit cleanly.
 

Mar 27, 2014 10:35

A reasonable setting for low bandwidth VNC over SSH

Tightvnc used in this case:


vncviewer -encoding tight -quality 5 localhost:1
Mar 27, 2014 10:30

Making a python 2.4 virtualenv buildout on Ubuntu 10.4 & Debian 7 as of 2014-03

It gets harder and harder to install a python 2.4 buildout on Ubuntu and Debian. Basically, the different scripts involved will try to execute code that is not compatible with python 2.4 at every step of the way. I need python 2.4 for some old Plone 2.5 sites. Here is what I did to get it running this time, tested both on Ubuntu 10.4 and Debian 7:

Use a separate virtualenv script, so do not rely on the one installed in the system which is made for another python version. Instead download a standalone script of some vintage:

wget --no-check-certificate https://raw.github.com/pypa/virtualenv/1.7.2/virtualenv.py

Setup the virtual environment like so:

python2.4 virtualenv.py .

It will crash when trying to install setuptools, but by then it has installed python.

Now you should have a working python.

Time to install a setuptools that actually works. Version 1.4.2 works (somewhat selected at random, you can try newer ones if you like). That version is not linked from the https://pypi.python.org/pypi/setuptools page, but with some detective work it can be found at:

https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz

Download and unpack it and install it in the old-fashioned way:

./bin/python setuptools-1.4.2/setup.py install

Time to install easy_install. Download the script from:

http://peak.telecommunity.com/dist/ez_setup.py

Then install easy_install with:

./bin/python ez_setup.py

Time to install zc.buildout:

./bin/easy_install zc.buildout==1.4.4

In your buildout.cfg file, you must also pin setuptools to the version you have installed. Otherwise, you guessed it, zc.buildout will download and fail to run a newer incompatible version of setuptools:

[versions]

setuptools = 1.4.2

And there you go:

./bin/buildout

 

 

 

 

Mar 16, 2014 06:20

A free web/blog site with tables?

I had the need for a quick and easy way to publish a table on some free web publishing service. The table must be easy to edit. However finding a free blog site or web publishing site where you can add tables in the wysiwyg editor turned out to be not that easy. In fact I have not found one yet:

 

Wordpress.com

 

no wysiwyg tables. There are plugins for wordpress that have this, but they are not available at wordpress.com, at least not for free.

Tumblr.com

 

no wysiwyg tables

Livejournal.com

 

no wysiwyg tables and has peculiar ideas about password security and annoying captchas

blogspot.com

 

no wysiwyg tables

blogetery.com

 

Is supposed to have some wordpress plugins, which ones they are is not listed, but signup does not work whether using Firefox or Chrome from Ubuntu, so it will remain a mystery.

angelfire.lycos.com

 

has a table "plugin" but it disappears when you try to click it in Google Chrome or Firefox

notehub.org

 

has markdown publishing, but does not support the markdown table format

 

Mar 05, 2014 03:35

Running a GUI application on your Linux machine as a different user

sux seems to do the job. If you are on Ubuntu:

 

sudo apt-get install sux

 

sux other_user_name gui_program_to_run

 

You may need to include the full path to the program you want to run, e.g. if is a Windows program to be run under wine

sux other_user_name wine /path/to/program

 

Haven't tried without full path though.

Jan 10, 2014 09:41 | Comments (2)
Ads