Archive for the ‘Linux’ Category

How to get Telenor Mobile Broadband to work in Ubuntu 9.04

Friday, July 31st, 2009

There has been some trouble getting Mobile Broadband (Mobilt BredbĂ„nd) from Telenor working in Linux for some time now. But when Ubuntu 9.04 came it seemed promising for those who have had problems before. Everything needed is included at install time. But you have to use some non-default configurations when connecting. All you need to do is plug in your USB-dongle, follow the wizard and when you’re done, edit the connection settings. You need to add Username and password (both are the telephone number for your sim card). Write “telenor” as the APN. I entered the PIN too, but I’m not sure if it’s needed. That should be it. Hope it helps!

Monitoring a server with GKrellM remotely over SSH

Thursday, June 12th, 2008

I would like to monitor my server on my desktop computer with the GKrellM-utility. I would also like to have it run over ssh, so that it can run over the internet without being open to everyone. So here’s what I did:

  • First step is to set up key-based passwordless login.
  • Install gkrellmd (gkrellm-server). As I use debian I type “apt-get install gkrellmd”. Use your flavor of package-manager.
  • (optional) Edit /etc/gkrellmd.conf if there’s anything you’d like to change. The default works perfectly when using SSH-tunnels, because it looks like you’re running from localhost. If you don’t want to run over SSH you could add your desktop’s IP in allowed-host. Restart gkrellmd if you have changed the config.
  • Now open a SSH-tunnel on your desktop to your server. The text in red you should change to your wish, and the text in green is OK if you didn’t change anything in the config-file.
  • ssh -N -f -L 19150:127.0.0.1:19150 user@server
  • The red number is the local port which leads to your tunnel. If you want to monitor more than one computer you’ll need to change this number to an available port (check with netstat -nt). The red text is of course your user login on the server.
  • run:
  • gkrellm -s 127.0.0.1 -P 19150
  • The red number should be the same as above.
  • GKrellM should pop up and do it’s thing :)