Cumbers

Entries tagged as ‘linux’

So now I have a slug with SLUGOS…..

May 28, 2008 · 4 Comments

….what should I do (aside from upload currentcost data)?! Dale has an excellent post about the installation, and for me it was pretty much the same. The only real difference was that as Dale is very much a windows chap he used Sercomm Firmware Updater, and as I am more of a linux chap I used upslug2 to flash the device. upslug2 is a simple application that scans for slugs that are in admin mode, and then if you pass the correct parameters will go ahead and flash the firmware, very quick and easy to do!

This post is about getting the slug to be a functional mini linux box (for example the creation of a non-root user).

Bash

I prefer bash to the sh shell, so ‘ipkg install bash’ was the first installation I did. Job Done.

Who wants to be root anyway?

I am primarily an Ubuntu user, have been now for over 2 years and am very happy with it. I like the lack of root user, although you can configure it, and the more or less enforced use of sudo. So my first task was to add a user that was not root, and setup sudo. I started trying to use ‘useradd’, but it was not there, but swapping the two words to ‘adduser’ brought up what we come to expect. a cryptic message stating that I should use ‘adduser {OPTIONS] username‘. Note the lack of mentioning what the actual options could be! A quick google search and I found the following: http://tinylogin.busybox.net/TinyLogin.html which on it details the required options and what to do with them, and thus I constructed: ‘adduser -s /bin/bash -h /home/cumbers cumbers’. Next I created the user directory, chown’d it to my user and did a passwd to set my password.

sudo was just as simple as installing bash. ‘ipkg install sudo’ was all that was required, and then a visudo to edit the sudoers file. I like to use the wheel group with a password so uncommented the relevant line, and then created a wheel group using ‘addgroup wheel’.

With the two steps above I now had a system that I felt was a little more secure in my sometimes careless typing world!

Timezones and ntp

According to the tzdata packages we (the UK) are not in tzdata-europe as you would suspect, but are in fact in tzdata-misc package! A simple ln -s /etc/localtime /usr/share/zoneinfo/<final path to your locale> and I was setup. Again using the ipkg tool I installed the ntpclient and ntp-tools packages. There are various sites that deal with configuring this, so just give it a google!

Miscellaneous

I also installed the following (in no particular order)

  • findutils – gives me locate and updatedb
  • coreutils – something no admin should be without
  • tar
  • gzip
  • ncftp – powerful ftp client, including bookmarks
  • grep

What next for the slug?

The device is surprisingly repsonsive and I am looking forward to pushing it to its limits. Dale has already recompiled perl modules so that he can use the full mysql package, before find out about sqllite, but there seems to be a lot you can do with this piece of kit, so who knows maybe an mp3 server, or just a samba share point for the house! This device was bought to replace an old shuttle pc, that seemed to use about 40W to publish the data, my resting wattage in my house is now around 60, which is pretty damn good!

Categories: CurrentCost · linux
Tagged: , , , , ,

Upgrading to Hardy Heron

April 25, 2008 · 1 Comment

At work I have been using Ubuntu for over 2 years on my laptop (most use Windows XP), I think I have been an Ubuntu user since 5.04 and the upgrade process in the last few releases has been getting better, although never without its problems. My upgrade from Gutsy Gibbon was amazingly easy, a few clicks and about an hour later I had 8.04 installed, so easy and now I am completely up-to-date.

HardyHeron comes comes with the latest and greatest GNOME 2.22, and from a day of using it there are minor improvements, but nothing mind blowing. The biggest change I noticed even as I was upgrading was a change in fonts. I do not know why the new fonts are better, but I feel I like them a lot more, maybe just because they are new and shiny!

My T61 Thinkpad comes with nvidia drivers and, as I like using compiz-fusion, I cross over to the dark side and use nvidia’s properitary driver, which seems to work very well. I still have more issues with external monitors then I would using XP, but overall it is a pleasant experience. Compiz-fusion is improving with every release. With Gutsy Gibbon I had issues with changing effects where they were only implemented after a restart of X, this has been fixed in this release.

The Network Config Manager has changed, mainly for the better. When I want to set a manual config change, I am not initially asked for the admin rights, but have to click a button to ‘unlock’ the admin features. LEAP network authentication has always been an issue, this seems to have improved in this release and I have actually managed to connect to the IBM secure network, although this is still not as good as it was with Windows XP.

Firefox 3 has been bundled in and whilst I am a user of flock (built on Firefox-2), I am impressed with the speed of Firefox 3 and look forward to Flock building off the latest version (they are still only Beta2). Have not had any issues with my plugins unlike Dale.

OpenOffice is now 2.4 (noticed that the splash screen now has the Sun Logo). Comes with ODF (competition with OOXML). My biggest problem with OpenOffice is spreadsheets, specifically graphing data. Having had a quick play, I see massive improvements compared to previous versions, and could potentially use it as a replacement for Microsoft’s Excel.

The biggest problem…..My Numlock does not seem to work with Keypad :( It appears that the upgrade changed my numpad to be a mouse pointer, and a quick google search gave me the link I needed. (http://ubuntuforums.org/showthread.php?t=765584).

All in all I am very happy with the new release!

Categories: linux
Tagged: , ,