Normally I use ssh for everything, but sometimes I need a GUI to run stuff and remote X11 over ssh does not really work for me.
So normally I use VNC, but then you need a client and in the corporate universe you will not have it (or get it easily). Sure, there is the java-version you can run in your browser, but I'm not fan of that either.
Solution: xrdp
Comes with ubuntu and not much to configure. And the client (Remote Desktop Connection) comes with Windows.
2011-08-08
2011-05-19
Removing quotes
One great program I have to use returns values quoted like this: `bla'
So to be able to process it's output in a pipe easier, I use tr. The command just looks too beautiful to not mention it:
So to be able to process it's output in a pipe easier, I use tr. The command just looks too beautiful to not mention it:
tr -d '`'"'"
2011-04-20
Weird locales
Sometimes I wonder who comes up with installations like these:
> locale -aWell, at least they have the french French. IMHO It should be taken out for consistency. :-)
C
POSIX
de_LU.UTF-8
en_GB
en_GB.ISO8859-1
en_GB.ISO8859-15
en_GB.ISO8859-15@euro
en_GB.UTF-8
en_IE
en_IE.ISO8859-1
en_IE.ISO8859-15
en_IE.ISO8859-15@euro
en_IE.UTF-8
fr.ISO8859-15
fr.UTF-8
fr_BE
fr_BE.ISO8859-1
fr_BE.ISO8859-15
fr_BE.ISO8859-15@euro
fr_BE.UTF-8
fr_BE.UTF-8@euro
fr_FR.ISO8859-15
fr_FR.ISO8859-15@euro
fr_FR.UTF-8
fr_FR.UTF-8@euro
fr_LU.UTF-8
iso_8859_1
nl
nl.ISO8859-15
nl_BE
nl_BE.ISO8859-1
nl_BE.ISO8859-15
nl_BE.ISO8859-15@euro
nl_BE.UTF-8
nl_NL
nl_NL.ISO8859-1
nl_NL.ISO8859-15
nl_NL.ISO8859-15@euro
nl_NL.UTF-8
My DWTF
Just found myself writing the following in a Doku-Wiki page:
[..]<html><br></html>[..]Really horrible stuff, but I see no alternative (beside upgrading/installing new Wiki).
2011-04-01
Shot yourself in the foot with carriage return.
Just today somebody had a problem with a file that he "could not cat",
but less worked. The reason was that the file had only a carriage
return at the end of the only line.
Here's an example how to reproduce:
but less worked. The reason was that the file had only a carriage
return at the end of the only line.
Here's an example how to reproduce:
> echo -en "bla\r" > bla2
> cat bla2
> od -c bla2
0000000 b l a \r
0000004
Subscribe to:
Posts (Atom)