Archive

Posts Tagged ‘howto’

openconnect: SSL wrote too few bytes!

No Gravatar

At the time of writing this openconnect in Ubuntu 12.10 have a bug, that disconnects the client from the VPN.

There is an issue for it: https://bugs.launchpad.net/ubuntu/+source/openconnect/+bug/1072328

And a solution from Michael R. Crusoe.

Just do:

sudo apt-add-repository ppa:misterc/ppa

sudo apt-get update

sudo apt-get upgrade

That’s it.

Share
Categories: linux, open source, oss, ubuntu Tags: , , ,

Openconnect replacement for Cisco AnyConnect on Linux (Ubuntu)

No Gravatar

Your company decided to use Cisco AnyConnect. You are on Linux, and you are provided with Cisco AnyConnect Linux client, and you are happy: At last, they had Linux in mind… But your happiness lasts only for a half an hour, when you realize, that the client just does not work. Or you might be lucky and the client work as expected, but in that case you wouldn’t be here… ;-)

But fear not, there is a better solution for your problem. And it is called Openconnect. What you will need:

  • Windows machine with configured AnyConnect — needed just to create an initial configuration; not needed for operation
  • any flavor of Linux, – but I’m using Ubuntu, so the there will be some Ubuntu specific parts, but you’ll know how to translate those to your flavor of Linux
  • about 1h
To set up just follow these steps… Read more…
Share

Provide log4j configuration fast and dirty

No Gravatar
If you are developing with Java, I’m sure you ran into a console output that looks like this:
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).log4j:WARN Please initialize the log4j system properly.
The message is clean: provide a log4j configuration. But, hey, I just want to debug/test/… it… Or I just want to change the debug level, but I cannot modify the app, or cannot find the (right) configuration…
I just need a fast solution for this.
So here it is:
  1. Create a folder and place a log4j.properteies file in it.
  2. Edit your log4j.properteies for your needs.
  3. Add the given folder to your apps classpath (as a first entry)

That’s it.

Read more…

Share

Debuging OpenEJB’s TomEE with Eclipse WTP

No Gravatar

This is just a short description on how to use OpenEJB with Tomcat to debug it within Eclipse.

The point is to be able to debug EJB applications from within Eclipse with a lightweight Tomcat container using OpenEJB.

Read more…

Share

Linux and the Active Directory

No Gravatar

(update: may 29., as a result of feedback)

As a Linux fan, I’m in minority in a company I work. Or at least if we look at the fact that there are about 140 Windows workstations, and just about 3 Linux workstations. – This is a result of company policy and the lack of time and knowledge at support level. This might change, but it would need really lot of time.

For those windows workstations, there are of course an NT domain defined, which is controlled with Active Directory (AD). As the member of the team I need to access shares of co-workers and the central file server. Read more…

Share