rdesktop sound + pulseaudio

| No Comments
use padsp with rdesktop:

padsp rdesktop -r sound:local windows-host

seems to work fine

bscan bacula from disk volume

| No Comments
If you have a backup to disk volume with bacula and the database catalog gets corrupt and your database backup is also bad or you do not have one, then you can use the bscan application to import the volume into a new catalog.

You need to create a new empty database, in my case this is a sqlite database so I run the make_sqlite_tables script in /usr/share/bacula-director directory. After a while you have a new empty bacula.db sqlite database in /var/lib/bacula.

then we stop the bacula-director (/etc/init.d/bacula-director stop ). And then we run bscan:

bscan -V volume01 -v -s -m -c /etc/bacula/bacula-sd.conf /srv/testbacula

the last argument is the path to the archive device in the device section of bacula-sd.conf. Some minutes later, the volume will have been restored to the catalog. As we have probably run the bscan command as root, we need to change the ownership of the bacula.db to the bacula user or the director will not start.

That's it, start the director and check with the bat or bconsole that the catalog is there and that you can restore files. After running bscan, the volume will be marked as 'full', so if you need to re-use it, do not forget to update its status to append:


update volume="volume01" volstatus="Append" recyclepool="Default"


update-alternatives for fedora/red hat (javaplugin)

| No Comments
For future reference:

# alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so 20

fedora 11 citrix receiver

| No Comments
  1. get the client from citrix
  2. get openmotif from http://www.motifzone.net/filebrowser/openmotif/2.3/2.3.1 (at least version 2.3.1, there is a package for fedora 9 but it installs fine in 11)
  3. disable the cjkuni fonts (why?)
# cd cd /usr/share/fonts/
# mv cjkuni/fonts.dir cjkuni/fonts.dir.disabled
# mv cjkuni/fonts.scale cjkuni/fonts.scale.disabled

now the ctirix client starts as it should.

| No Comments
thanks for sharing this

openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem

Enter the certificate information as asked.

Change the permissions on the pem file.

chmod 600 /etc/apache2/apache.pem

Enable Apache 2.s SSL support

a2enmod ssl

Edit the file /etc/apache2/sites-available/default-ssl

Find the SSLCertificateFile option and change this line to:

SSLCertificateFile    /etc/apache2/apache.pem

Comment out the line below with a # that contains the SSLCertificateKeyFile as our file contains
both the key and the certificate.

Enable the SSL site

a2ensite default-ssl

Restart Apache

/etc/init.d/apache2 restart


convert *.pem to *.der

| No Comments
openssl x509 -outform der -in cert.pem -out cert.der

uptime snmp

| No Comments
  • for linux: snmpget host -c <community-name> -v 1hrSystemUptime.0
  • for windows and cisco devices: snmpget host -c <community-name> -v 1 sysUpTimeInstance

fedora dvd iso from a 4GB+ usb thumb

| No Comments

journaal 24 nos.nl in linux

| No Comments
The Dutch public sender NOS has a live stream online with 24/7 news: Journaal 24; unfortunately for us, you need to have the silverlight plugin to be able to watch it. There is a mono plugin called moonlight that supposedly works but not for me :(

Anyway, with a little work it does work and here is how. Go to the journal 24 site and in firefox click 'View' and then 'Page Source' (or use the ctrl-u key combination). A new window opens and in it you can read the html code of the site. Right in the first page of the document you can find this code piece:

<div id="content">
<div id="embedplayer"></div>
<div id="wmvlink">&gt; <a href="wmv.html">Bekijk de live uitzending in Windows Media Player</a></div>
		<script type="text/javascript">
var cnt = document.getElementById("embedplayer");
var src = '/static/global/js/jwplayer/wmvplayer.xaml';
var cfg = {
file:'http://www.omroep.nl/live/thema/nos_journaal24-bb.asx',
height:'310',
width:'514',
autostart:'true',
controlbar: 'over'
};
var ply = new jeroenwijering.Player(cnt,src,cfg);
var param = {
ns_st_id : 'http://www.omroep.nl/live/thema/nos_journaal24-bb.asx', // stream, URL
ns_st_pl : 'nos_journaal_gevolgd_door_nos_journaal_plus', // playlist
ns_st_pr : '', // programma
ns_st_ep : 'nos_journaal_gevolgd_door_nos_journaal_plus', // aflevering
ns_st_cs : '598x336', // video formaat
ns_st_st : 'journaal24' // zender (wellicht)
}
var today = new Date();
var vandaag = today.getFullYear() + today.getMonth() + today.getDate();
var sko = {
}
var pageurl = 'http://www.nos.nl/journaal24';
var debug = false;
var streamCounter = new NosSense(param, sko, debug, pageurl);
addListeners();
</script>

The interesting bit is the link:
http://www.omroep.nl/live/thema/nos_journaal24-bb.asx

If we feed it to media player like mplayer in the shell like this:

$ mplayer http://www.omroep.nl/live/thema/nos_journaal24-bb.asx
it tries to play it but fails. We go one step further, dumping the content of the stream to a file:
$ mplayer -dumpstream
http://www.omroep.nl/live/thema/nos_journaal24-bb.asx

we will get a file 'stream.dump' and if we open this file we will see this:

<ASX version = "3.0">
<Title>Journaal 24</Title>
<Entry>
<Title>Journaal 24</Title>
<Abstract>Journaal 24</Abstract>
<MoreInfo HREF="http://www.nos.nl"/>
<Author>NOS</Author>
<Copyright>Alle rechten voorbehouden</Copyright>
<Ref HREF="mms://tempo11.omroep.nl/nos_journaal24-bb" />
<Ref HREF="mms://emil03.omroep.nl/nos_journaal24-bb" />
<Ref HREF="mms://tempo06.omroep.nl/nos_journaal24-bb" />
<Ref HREF="mms://emil09.omroep.nl/nos_journaal24-bb" />
<Ref HREF="mms://tempo09.omroep.nl/nos_journaal24-bb" />
<Ref HREF="mms://livemedia2.omroep.nl/nos_journaal24-bb" />
</Entry>
</ASX>

Aha. Here we have the mms streams at our disposal. Use your favorite
media player again (vlc, mplayer, totem) and feed the last link and
bingo, it works.

<irony on>
Thanks, NOS people, for making it easy for us.
</irony off>

update: totem requires the gstreamer-ffmpeg package for the windows
8 and 9 codecs;

VLC has all the codecs but it has some buffering problems. Totem
plays the stream much more fluently.

Another update: this wheel had already been invented, obviously ;)

here you see all the internet stations:

link

hp tools lenny

| No Comments

Find recent content on the main index or look in the archives to find all content.

Recent Comments

  • natxete: rapidxen: http://rapidxen.com/getPlansServlet read more
  • natxete: done read more
  • abuelo: Pues ya sabéis, cuidado, cuidado. Un abrazo. Javier read more
  • abuelo: Vamos progresando, poco a poco, para cuando lleguéis a España read more
  • abuelo: Vaya, vaya con Tessa, que cuando tiene prisa echa la read more
  • abuelo: Ya sabéis cuanto nos alegran todas las noticias que nos read more
  • Abuela Pily: Que bien que bien, ya está ella siendo una mujercita, read more
  • abuelo: Vaya, no sabéis cuanto nos alegramos. A ver si sigue read more
  • abuelo: Bueno, está muy bien que Ainhoa haga sus necesidades en read more
  • abuelo: No me había dado cuenta de que poníais que no read more
OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.34-en