Tag Archives: kubuntu

Reinstalling my workstation

Disclaimer

THIS IS NOT A BEST PRACTICE ON HOW TO INSTALL A LINUX BOX!
This document serves as a reminder to myself, on what needs to be done when reinstalling my workstation, and I have put it here to have it conveniently at hand. Because of this, the document may not be of any help to anybody but me. The last month I’ve had 3 failing harddrives, one new and 2 used ones, so this makes me want to document the process, at least in an overall fashion…

Installing dependencies

  • I have a script listing all my script dependencies and all software I always want installed, so this part is easy:
Posted in Linux | Tagged , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Installing Net ID in Firefox

Telia have patched a security hole in their Net ID software so I decided to download the new version and try to install it.

I’ve never managed to get Net ID working in Linux, due to Telia only supporting Ubuntu 10.04 and a very old version of Firefox. For this embarassing reason (for Telia), I have been forced to use a virtual machine with Windows XP whenever I had to identify myself…

With the latest software update I was hoping that they would have corrected the previous problems. I downloaded the file iidsetup_64.tar.gz with the x64 version and after extracting it I installed it as root:

Posted in Linux | Tagged , , , , , , , , | 2 Comments

Logrotate: duplicate log entry

Cron is mailing me reports like these:

/etc/cron.daily/logrotate:
error: squeezeboxserver:1 duplicate log entry for /var/log/squeezeboxserver/server.log
error: found error in /var/log/squeezeboxserver/server.log , skipping
error: squeezeboxserver:14 duplicate log entry for /var/log/squeezeboxserver/scanner.log
error: found error in /var/log/squeezeboxserver/scanner.log , skipping

As the report tells you, logrotate tries to rotate some logs twice. Not a severe error but annoying enough to be fixed.

Begin by changing directory:

cd /etc/logrotate.d

Search for the filenames mentioned in the error report:

grep "/var/log/squeezeboxserver/scanner.log" *
logitechmediaserver:/var/log/squeezeboxserver/scanner.log {
squeezeboxserver:/var/log/squeezeboxserver/scanner.log {

It seems that squeezeboxserver changed name (this has happened before…) to logitechmediaserver with the latest software upgrade. An old entry still exists in logrotate for squeezeboxserver. Move this file out of the way:

mv squeezeboxserver /tmp/

There, problem fixed!

Posted in Linux | Tagged , , , , , , , , | Leave a comment

Using exfat filesystems

Having recently dist-upgraded to Kubuntu 12.04 Precise Pangolin, I was kind of hoping for the system to be able to read the SDXC card from my Nikon camera. It’s a 64GB SD card with the filesystem exfat. Exfat is an M$ proprietary filesystem intended to replace FAT32 (vfat), and unfortunately Linux is still unable to read this filesystem (kernel 3.2.0-26). Doing some googling I found this link.

The solution to the problem is simple:

sudo apt-add-repository ppa:relan/exfat
sudo apt-get update
sudo apt-get install fuse-exfat

 

I still haven’t tried writing anything with this driver. I just want to be able to copy the images from my and the driver works well for this.

Posted in Linux | Tagged , , , , , , , , , , , , , , | Leave a comment

connect: No buffer space available

First time I’ve gotten this problem when trying to ping another host:

$ ping pong
connect: No buffer space available

The command ifconfig didn’t show anything unusual, but dmesg showed some interesting lines:

[332083.737268] ipv4: Neighbour table overflow.
[332205.552806] net_ratelimit: 15 callbacks suppressed

I noticed that minidlna sucked up 100% from one core, but I don’t know if this is related. I restarted minidlna and the network, and all was back to normal again:

$ sudo /etc/init.d/minidlna restart
$ sudo /etc/init.d/networking restart

When I was back online again, I was curious and googled the problem. I found some hints to check the routing table and arp table, which I’ll do in the future should the problem ever arise again.

Posted in Linux | Tagged , , , , , , , , , , , , , , , , | 2 Comments

Syslogging in Natty Narwhal

Having recently moved up to Kubuntu 11.04 Natty Narwhal, I noticed early on that the log file /var/log/messages was missing in the new install. Seeing this a peculiar but not investigating further to why it was missing, I finally did caved in and did some quick googling on the matter.

It turns out the developers felt it was redundant to save the same data in both /var/log/syslog and /var/log/messages. I have previously felt that they are similar but they are not identical, as /var/log/messages holds more information than what is found in /var/log/syslog.

Posted in Linux | Tagged , , , , , , | Leave a comment

Installing NTP daemon

Network Time Protocol can help you keeping your computers time accurate. This is important to maintain correct timestamps in log files. Not to mention how annoying it is with a clock not showing the correct time… Installing a basic NTP server will help your computer to have its time accurately controlled by NTP. The beauty of this is that when your computers time is wrong, NTP will speed up/down your clock to catch up. This is done so that cron and other time dependent tools will not notice anything.

Posted in Linux | Tagged , , , , , , , , , | Leave a comment

Adding package archive for KDE

Since I’m still running Lucid Lynx, updates for KDE is lagging behind a bit. To keep a bit more up to date with existing KDE updates, I’m adding a PPA found on Launchpad, to /etc/apt/sources.list:

# KDE updates
deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu lucid main

Update the package index:

apt-get update
Posted in Linux | Tagged , , , , , , , , , , , | Leave a comment

System monitoring with Munin

This is a brief guide to installing and configuring Munin.

This is how the Munin project describes their software on their site:

Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

Installing the server

Installing a Munin server in Kubuntu is easy. This will install the server as well as the client on the server itself:

Posted in Linux | Tagged , , , , , , , , , , , | 1 Comment

How to change time of cron.daily?

I’ve scoured different Linux forums for the answer to this onequestion. One of many answers is that this can’t/shouldn’t be done, because this crontab is to be executed after a computer has been booted and not at a specific time.

But what if I keep my computer on 24/7, and the time of cron.daily disturbs my work because disk intensive task are run at inconvenient times, instead of when I’m not in front of the computer. For me, the important thing is that cron.daily is executed once a day, and not x minutes after booting.

Posted in Linux | Tagged , , , , , | Leave a comment