Archive for the ‘Ubuntu’ Category

Running GUI applications over SSH

If you want to execute a GUI based application on the remote server through SSH, you can achieve it quite easily using the ssh command. Just type ssh -X username@server The -X flag is used to define the DISPLAY environmental variable on the remote host, so each X11 executed application will be forwarded to your [...]

Read the rest of this entry »

How to find out what GNU/Linux distribution you’re using

Recently I needed to find out what GNU/Linux a terminal-only server is using. The most obvious thing I could think of was to use: uname -a Unfortunately, it will return the kernel information only – no details about the distribution though. The distribution info is located in a different file which is dependent on… the [...]

Read the rest of this entry »

More than one -exec in ‘find’

I was trying to execute several commands on a single record found by the GNU/Linux find command. The first attempt was to create something like: find . -name “*.pdf” -exec echo ‘test’ && echo ‘test2′ \; But it’s not the way the find command works. 1 person likes this post. Like Unlike

Read the rest of this entry »

Wireshark on remote host through SSH

I was trying to find a way to capture the network interface traffic on a remote server, just to see what (or who!) messed up the Web Services based communication. I didn’t have to search too long, because my favorite capturing software, Wireshark, can listen on a named pipe. So, below you can find the [...]

Read the rest of this entry »

Kdenlive – cannot render in Xvid, H.264, MPEG-4, etc.

It’s at least the third time I try to find a solution for the unavailable codecs proclem during rendering video project in Kdenlive. This time, I’ll write it down and link to this great site to make sure I’ll be able to easily find it next time ;-) The process is quite simple (I’m using [...]

Read the rest of this entry »

MD5 checksum in PHP and BASH

I wondered why the same word has different MD5 checksum if I use the PHP md5(-) method and BASH md5sum command. What I mean is: PHP <?php echo md5(“sol”); ?> The result is: 12313a3d28f802e3a22b07d2e01c6dcf BASH $ echo “sol”|md5sum The result is: 56717d999058f0e053d4b580c9396a92 It seems that echo command is, by default, adding a newline character after [...]

Read the rest of this entry »

Every possible combination of given letters in BASH

If you want to create every possible word or combination of letters (or any other characters) you can use very simple BASH function: $ echo {a..c} This command will print all possible letters starting with a and ending on c (inclusive), so the result is: a b c You can get every possible combination of [...]

Read the rest of this entry »

Axis and Java2WSDL

In the Axis2 (which you can download from this site) bin subdirectory, there is a java2wsdl.sh file which can be used to generate a WSDL file from plain Java classes. Below is a very rough example how to use it: /home/palli/axis2-1.5.4/bin/java2wsdl.sh -o /home/palli/ -of Test.wsdl -sn WSAdditionalOperations -cp . -cn com.nullhaus.ediploma.server.WSAdditionalOperations Used arguments: o – [...]

Read the rest of this entry »

Problem with execution of SNX on GNU/Linux (libstdc++)

I’ve recently bumped into a problem with using a SSL Network Extender when trying to establish a VPN connection through the web browser. The SNX was throwing a ‘failed to initialize’ error without any details despite the right credentials. To identify the error, I needed to execute the snx from the command line (snx) which [...]

Read the rest of this entry »

System-wide SOCKS Proxy

Sometimes, there is a need to use SOCKS Proxy for connection even if an application itself isn’t providing such feature. If you’re working on Windows you can use FreeCap which allows you to put your applications into FreeCap “sandbox”. Everytime you run app from this “sandbox” it is sent through the SOCKS proxy you set [...]

Read the rest of this entry »