Tag Archives: Ubuntu

High amount of Load_Cycle_Count on Green Western Digital disks

You are monitoring the SMART values of your disks right? They’re usually a real good indicator of the health of the drive.

Thought I’d check out the SMART value of the disks in my desktop today (while checking if I had notifications from smartd on).

Low and behold, the Load_Cycle_Count (LLC) was really high, much higher than power_cycle_count on the 3TB WD disk I have. It turns out this is quite an old problem so there are a few posts about this on the Internets.
The Interwebs says max in the specs are 300k load cycles. Smartctl -a says I’m already at 218602 after 9302 power on hours (387 days but I power off the computer at night).

Disk:

Model Family:     Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:     WDC WD30EZRX-00DC0B0

For Windows there’s a wdidle3.exe that is a DOS program that one can put on a bootable floppy (…) and boot a computer on to change some stuff on a disk.

Fortunately I run Linux (Ubuntu 14.10 since yesterday) and there’s a tool called idl3ctl – one can grab it from here: http://idle3-tools.sourceforge.net/

I got the latest source code and compiled it myself because there had been some updates to it since the last release (2012 vs 2011 ..).
“idl3ctl -g” shows that the disk was set to park itself after 8s. I disabled that with idl3ctl and powered off and on the computer and now the tool says it’s disabled.

Hopefully this should increase the lifetime of my disk.

Upgrade Ubuntu 12.04 LTS to 14.04

Yesterday I upgraded Ubuntu 12.04 LTS to 14.04 devel release. This is not recommended :)

I wonder what will happen when 14.04 real is out.. *update: it is out now, so the “-d” in “update-manager -d” is no longer necessary?

How to? Just run “update-manager -d” and click on some buttons!

Update process was nice, I like apt-get over yum when it sees a conflicting file it doesn’t just overwrite or write the file as .rpmsave  but instead it displays see the difference(s) between the two files and you get to decide what to do!

One issue I have heard about is VMWare Workstation 10.0.1 on 14.04 and recompiling kernel modules. Patching instructions in here: http://dandar3.blogspot.cz/ and patch file is the one at the bottom of this post https://communities.vmware.com/message/2326986

Running Ubuntu on a Desktop

Introduction

Recently I’ve had the pleasure of installing Ubuntu on my desktop. Here are some thoughts and what I initially do:

Machine is a:

Motherboard: Gigayte GA-EX58-UD3R
CPU: Intel Core i7
Memory: 8GB
Disks: Intel i300 SSD, 2x500GB and 1x3TB Western Digital Drives.
Graphics Card: AMD HD6800

Here are some of the things figured out along the way:

  • grub2 does not like keyboard, but if I boot on the Ultimate Boot CD (grub) – the keyboard does work. This is with flipping all the USB keyboard, mouse, storage, legacy .. settings on and off in BIOS.
    • After removing Ubuntu 12.10 and installing 12.04 (this is with USB things enabled in BIOS) – the keyboard works in grub2 menu.
  • to install better drivers, easiest is to open Ubuntu Software, edit sources and allow post-release things.
    • then go to settings and “additional drivers”
  • after upgrading to fglrx,
    • to change speed of the GPU fan to 20% hit: aticonfig –pplib-cmd “set fanspeed 0 20”
    • to view the speed of the GPU fan hit: aticonfig –pplib-cmd “get fanspeed 0”
    • to view the GPU temperature hit: aticonfig –adapter=0 –od-gettemperature

If you do decide to try with newer drivers for the ATI – card, make sure you have the installation CD/DVD handy. Or even better, get it on a USB-drive, way faster.

To find the devices for / and /boot – at least when I boot up there are these disk icons in the side-bar on the left side. If you hover over the icon you’ll see the size, if you click, it mounts and then a folder is opened. Then in the output of ‘mount’ you can see which device it is. Unmount and then proceed with these to get a working chroot:

sudo mount /mnt /dev/devicethathasroot
sudo mount /mnt/boot /dev/devicethathasslashboot
sudo mount ‐‐bind /dev /mnt/dev
sudo mount ‐‐bind /proc /mnt/proc
sudo mount ‐‐bind /sys /mnt/sys
xhost +local:
# above xhost is to get x things working from within a chroot (possibly unsafe?).
chroot /mnt
# you can get network working, it needs a good /etc/resolv.conf first. Either overwrite the existing one or somehow get the local nameserver up and running

Install some good software

apt-get install screen openssh-server tmux openjdk-6-jre unrar p7zip pidgin vim

Spotify Repository – http://www.ubuntuupdates.org/ppa/spotify

Google Chrome Repository – http://www.ubuntuupdates.org/ppa/google_chrome

Universal Media Server

For UMS you’ll also need:

apt-get install ffmpeg mplayer mencoder libzen-dev mediainfo

You also need to make sure zen and mediainfo works – check trace log in UMS to see if there are any errors in the beginning that they are not found. If so the hack is to create symlinks. For me the libzen.so and libmediainfo.so are in the /usr/lib/x86_64-linux-gnu/ directory.

Getting graphite running (for graphing / system monitoring )

One reason was that I wanted to learn more about this tool – but another reason is that it’s quite light weight, especially if you’re going to be running an httpd anyway.

To install it, follow this guide: http://coreygoldberg.blogspot.fi/2012/04/installing-graphite-099-on-ubuntu-1204.html

Carbon-cache initd-script: https://gist.github.com/1492384

To monitor temperature and fan speed of your AMD/ATI card put this script in /usr/local/bin/atitemp.sh:

#!/bin/bash
# Script to monitor temp and fanspeed of an AMD/ATI card.
# amdccle required? Also X?

HOST1="$(hostname -s)"
DEBUG="0"

CMD="$(which aticonfig)"

if [ "$?" != "0" ]; then
        echo "Cannot find aticonfig, check paths and if it's even installed."
        exit $?
fi

while [ 1 ];
do

TEMP=$(/usr/bin/aticonfig --adapter=0 --od-gettemperature|grep Sensor|awk '{print $5}'|sed -e 's/\.00//')
SPEED=$(/usr/bin/aticonfig --adapter=0 --pplib-cmd "get fanspeed 0"|grep Result|awk '{print $4}'|tr -d "%")
DATU="$(date +%s)"
LOGF="/tmp/atitemp.log"

echo "##########" >> $LOGF

if [ "$TEMP" != "" ]; then
echo "servers.$HOST1.atitemp $TEMP $DATU"|nc localhost 2003

if [ "$DEBUG" == "1" ]; then
echo $TEMP >> $LOGF
fi

fi

sleep 1
if [ "$SPEED" != "" ]; then
echo "servers.$HOST1.atifanspeed $SPEED $DATU"|nc localhost 2003

if [ "$DEBUG" == "1" ]; then
echo $SPEED >> $LOGF
fi

fi

sleep 60;
done

To graph useful system resources (network bandwidth, cpu/mem-usage, disk space)

Would be good to install collectl and just export to graphite. But this does not work well currently because the version of collectl with Ubuntu 12.04 LTS is 3.6.0 (3.6.3 with 12.10).
3.6.1 is needed to make it work with graphite and 3.6.5 to make it work good if you want to group servers.

There are plenty of other options though. You can write some scripts yourself, use diamond or a few other tools that has graphite-support.

Diamond is another option, to install follow these two links https://github.com/BrightcoveOS/Diamond/wiki/Installation (only addition is first you have to clone the git repository, from in there you run make builddeb).

How to manually configure a custom collector: https://github.com/BrightcoveOS/Diamond/wiki/Configuration

Update / Install Spotify 0.8.2.637 on RHEL6 x64

Previous post:

http://www.guldmyr.com/blog/how-to-update-spotify-on-rhel6-x64-native-client/

Installed spotify-client-0.8.2.637.g252b980.486-2.x86_64.rpm – this is converted from the .deb package that is downloaded from: http://repository.spotify.com/pool/non-free/s/spotify/

you convert with ‘alien’ and this command:

alien --to-rpm spotify-client_0.8.2.637.g252b980.486-1_amd64.deb

To install you need to uninstall first:

rpm -ev spotify-client
rpm -ivh Downloads/Spotify/spotify-client-0.8.2.637.g252b980.486-2.x86_64.rpm
error: Failed dependencies:
libcef.so()(64bit) is needed by spotify-client-0.8.2.637.g252b980.486-2.x86_64
libcrypto.so.0.9.8()(64bit) is needed by spotify-client-0.8.2.637.g252b980.486-2.x86_64
libcrypto.so.0.9.8(OPENSSL_0.9.8)(64bit) is needed by spotify-client-0.8.2.637.g252b980.486-2.x86_
libssl.so.0.9.8()(64bit) is needed by spotify-client-0.8.2.637.g252b980.486-2.x86_64
libssl.so.0.9.8(OPENSSL_0.9.8)(64bit) is needed by spotify-client-0.8.2.637.g252b980.486-2.x86_64

OK, that didn’t work so well.

Install:

# rpm -ivh --nodeps Downloads/Spotify/spotify-client-0.8.2.637.g252b980.486-2.x
Preparing...                ########################################### [100%]
   1:spotify-client         ########################################### [100%]

You’ll get errors while trying to start spotify:

spotify 
spotify: error while loading shared libraries: libnss3.so.1d: cannot open shared object file: No such file

What you need to do is create symlinks:

ln -s /usr/lib64/libnss3.so /usr/lib64/libnss3.so.1d
ln -s /usr/lib64/libnssutil3.so /usr/lib64/libnssutil3.so.1d
ln -s /usr/lib64/libsmime3.so /usr/lib64/libsmime3.so.1d
yum -y install nspr nspr-devel
ln -s /usr/lib64/libplc4.so /usr/lib64/libplc4.so.0d
ln -s /usr/lib64/libnspr4.so /usr/lib64/libnspr4.so.0d

However, it still crashes when I try to right-click on an app – but now it has apps :)

Ubuntu 11.04 Natty

Time for another ‘do-release-upgrade’!

This took away dwm-tools and suckless-tools (amonger other stuff). This means that META+p does not work anymore. So you cannot start any apps. Just install them again with ‘sudo apt-get install dwm’ and you’re good to go. Don’t even need to restart anything.

Found this cool command to check what release you’re on: lsb_release -d -s -c.

Maybe this only works on Ubuntu?

How to restrict access to your phpmyadmin

Went through the apache logs on my web-server and saw some access requests to my phpmyadmin page.

It’s probably a good idea to restrict access to this web based sql admin interface (in case there is an exploit I don’t want somebody to use it on this).

How to make phpmyadmin a bit more secure

sudo vi /etc/phpmyadmin/apache.conf
or
sudo nano /etc/phpmyadmin/apache.conf

Under
“Alias /phpmyadmin /usr/share/phpmyadmin”
<Directory /usr/share/phpmyadmin>

add this:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0.0/24

This will let your vm access the /phpmyadmin part and also anything with an IP on the 192.168.0.0/24 network.

Also, up there in the alias where it first says /phpmyadmin – change this to something else like “Alias /youcannotguessthis /usr/share/phpmyadmin” and it will be a lot harder for automatic scanners to find it.

Here is some more information.

Ubuntu + Automatic Software Updates

How often do you actually log on to your machine – hit
sudo apt-get update; sudo apt-get upgrade
without reading what the changes are? I do it every time, unless it’s a dist-upgrade we’re talking about.

So how do we get this going?

The tool you’re looking for is called cron-apt.

$sudo apt-get install cron-apt

This installs postfix for you as well (I chose local server, bah to e-mails, no pain, no gain).
After this, edit /etc/cron.d/cron-apt to your preferences.
If you want to see what it does – just hit what it says in that file:

test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt

and see what it does!

Test -x (file exists and execute permission is granted)
Second one runs it (but this did not produce any output)
Check out /var/log/cron-apt/log for details of what it does.

Please note that the cron-apt also runs “apt-get dist-upgrade” which would upgrade your distribution. So be careful.
It also runs autoclean :)

If you want more details – it’s possible to do this other ways (for example with anacron and /or bash scripts).
See this link: https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo

Ubuntu Server + VMWare Workstation

0/ Have your own virtual machine in your desktop is not hard!

0.1/ Some Terminology

  • OS – Operating System
  • Host OS – Underlying OS – in this you install VMWare Workstation.
  • Host needs to be stared for the guest to be able to start.
  • Guest OS – The extra OS you install inside the host or in VMWare Workstation.
  • VM – Virtual machine.

1/ Pre-install

1.1/ Storage space, memory, CPU

What do you want to do?
Do you have enough of it?
My desktop has an Intel i7-920, 8GB RAM and two 500GB hard drives.
Generally when testing I would give it 1GB or maybe 2GB for Windows. This can be decreased later if you feel the need.
You can also increase storage, memory and CPU after you create your virtual machine.
It is easy to create a new virtual machine so do not worry if you make it too small or too big.

1.2/ Network setup, LAN, Bridged, Hidden.

Do you want to be able to access your VM from your LAN, Internet or do you want a completely private network between your virtual machines?

Especially if you do set up a Windows guest OS (perhaps to use as a client in your test environment) please do remember that before you connect it to the Internet (to install patches etc) you should definitely think about installing an anti-virus solution on it.
I recommend Microsoft Security Essentials (MSE) – it is free and takes up little resources.
I read recently that the time you have until your unprotected computer is infected is about 10 seconds. But if your computer is behind a NAT – broadband router (so it has an IP like 192.168.x.x or 10.x.x.x or 172.16.x.x.x) then it is safer, but not safe from other computers on your network.

2/ Install the OS

2.2/ Download Ubuntu, easy setup wizard

There are two versions of Ubuntu – desktop and server version. If this is your first time with Linux you may be better of starting with the desktop variant. I used the server version (uses less resources – no graphical user interface).

Here is a guide for using the Ubuntu Virtual Kernel with VMWare Workstation.

2.3/ Windows 2008 R2?

sharepoint-2010-foundation-windows-2008-r2-vmware-workstation

3/ Set up management

3.1/ sshd – autostart if you reboot host OS / Windows.

I haven’t managed to set up autostart of the VM when rebooting the OS.
But then again, I do not run “life-critical” services in the virtual machine, just some cheap bash-script and an EyeOS. Not sure if I want to have it autostart, I like to have a fast reboot.

3.2/ Timezone, time.

Quite frustrating, but here is how it worked out in Linux: time-sync-for-linux-vms-in-vmware-workstation

4/ Post-Installation Joy

4.1/ Something simple like screen + irssi

This is really easy to set up.
Basically all you need to do is install these in a Debian style Linux (like Ubuntu):

sudo-apt get screen irssi openssh-server

then start a screen session called chat and the command ‘irssi’

screen -S chat irssi

It then starts irssi in a screen.
You can hit CTRL+A+D (or, CTRL+A D also works) to detach it and get back to the terminal. You can then close the terminal / log off from the server. Next time you log on you can just type:

screen -rdx chat

Irssi is my IRC tool of choice, it’s slim and well, I’ve gotten used to it. It has scripts and you can do encryption and lots of nice little things with it if you want to.

Of course the screen does not resume when you restart the whole server / virtual machine.

4.2 Other ideas:

Red Hat Enterprise Linux in VMWare Workstation.
How small VM can you have for just IRSSI?
File share from Windows to Ubuntu in a VM.
EyeOS – OS in your web browser.


Upgrade Ubuntu 10.10 to Natty

Saw this note today in the MOTD – that I can upgrade with do-release-upgrade.

Official instructions/details from Ubuntu and here is another quality post  on unixtutorial.

My Ubuntu 10.10 is running inside a VMWare Workstation Virtual Machine on my Windows 7 x64.

I did it over ssh with ‘sudo screen -S upgrade do-release-upgrade‘ .
Probably not wise to do this over ssh, but the setup started an extra sshd service on another port, just in case something breaks.

It would need to download about 210MB of packages, if you press on ‘d’ at the right time you’ll get into a ‘less’ of all the removes, upgrades and new installs. Press q to exit that.

During upgrade:

  • I got to chose keyboard (I have an IBM Thinkpad T40, but it wasn’t in the list, took an R60 instead, looked pretty similar).
  • It then asks for which services that are using NSS (I had no idea, so just used the default of rsync, mysql, apache and one more).
  • memtest86?? Does it come with this automagically? This is pretty cool, I’ve only heard about this being used in an iso to quite thoroughly test memory. The OS uses quite a lot of the RAM so if you test RAM from inside the OS you will not be able to test all, thus the boot CD. However, later on it turns out that memtest86 is actually put in the grub/boot menu! Very handy!
  • apparmor – this is a security module – apparently you can give applications profiles
  • 2.6.38! woop! See the link for more updates in the kernels. On that page – kernelnewbies.org – you can also find details about the other updates. Kernel.org only has detailed change log as far as I could see (lots of text).
  • Later on it asks you, do you want to delete these packages (d for details): libisc60, libdns66, linux-image-2.6.35-22-generic, python-newt, libxapian15, byobu
  • Last question: do you want to reboot? – No pain, no gain. Is ‘adventurous’ to do kernel upgrades remotely ;)
  • VM came back online after what felt like just 15 seconds.
  • Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic x86_x64)!

HP Virtual Room Installation on RHEL 6 x64

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1478734

I couldn’t get it to work.

Eventually I installed Ubuntu 10.04 LTS in a VM in Virtualbox and in there it worked.

However, resolution is only 800×600. So I found this page: 

http://forums.virtualbox.org/viewtopic.php?t=15679

 

That told me to install some stuff and then install the Guest Addition stuff. After that and a reboot HP Vroom no longer worked. But resolution was fine! Grah. Then I just used the “Live CD” of Ubuntu instead, or the normal .iso but no need to install, just boot from it.

 

Ubuntu 11 in VMWare Workstation

Time for another test! This time it’s Ubuntu 11.04 Natty.

My setup is a Intel Core i7 920 on Windows 7 x64 with 8GB RAM.

*** Update 2011-04-29 – I just heard that if you run this in a Virtual Machine you do not get all the shebang on the default graphical user interface. But for me it looks fine. Also when I looked on this video it didn’t look much different except for the left side bar. If you want to check out the supposedly nicer graphical user interface I would recommend that you put Ubuntu on a CD/DVD and then boot your desktop with it. That way you can see if it’s for you and if it works without doing anything to your hard drives :)

*** Update 2011-04-29 Also added link where to get Ubuntu 11.04 as now it’s not in beta anymore.

Installing

  1. Install VMWare Workstation
  2. Download the Ubuntu ISO. (I got the x64 / AMD64 one) from http://www.ubuntu.com/testing/natty/beta
  3. As it’s public now, you can get it from http://www.ubuntu.com/download/ubuntu/download
  4. Add new Virtual Machine (VM) in VMWare Workstation, browse to the .iso and it will with easy install find Ubuntu 64-bit.
  5. Gogogo! Chose language and set up your user account. That’s all. After that you can log on to the desktop. It took quite some time for me to install it – though I wasn’t in a rush so did not measure time and just left the PC. Maybe it went sleeping or something.

Uses 5.2GB effective disk space (checked properties on the directory from Windows) after install and that upgrade below.

After install.

Looks pretty smooth. Quite different from what I remember. I set it to 2GB  RAM and it’s only using 300MB from scratch. This is nice. And it turns off in a couple of seconds.

  • Unity thing in VMWare Workstation works from scratch (7.1.3 and 7.1.4). In 7.1.4 even with the VMWare Tools not installed updated.
  • First thing I ran was a software update – 160MB already after it being out only a couple of days. Guess some big package got an update.. however, no reboot required for it!
  • One thing you should be aware of, is that the program options/menu bar, is at the top of the screen, “File”, “View”, stuff like that. So quite a bit like Mac OS (if I’m not mistaken).
  • Audio is also working from start.
  • Resolution/screen proportions are automagically updated so that Ubuntu fits the whole screen. Nice. Ubuntu 10.10 does not do this in Virtualbox on RHEL6.

Comes default with these programs:

  • Mozilla Firefox 4.0
  • Libreoffice (not openoffice??) – looks like openoffice anyway.
  • Evolution Mail/calendar
  • Empathy chat cilent
  • Gwibber – twitter I guess
  • Transmission – torrent client
  • Shotwell photo manager
  • “ubuntu software manager” – where you download apps. There is still however apt-get and synaptic.

This “ubuntu software manager” is a bit of a fail. It seems very mainstream.

For example:

  • irssi cannot be found there

That’s about all I can think of for now.

Adobe Flash:

  • No flash from the start. But! Search for it in the software manager and you can install it. This however failed. I tried to report but it required a login so I skipped.
  • After fail the app still has a green check-mark on it.
  • Flash still works though. And it’s not lagging for me at all. But hey, I just tried it right after starting the browser. Maybe it gets choppier after some heavy browsing :p

Unity

The unity thing is pretty darn neat. What it does is it gives you an “extra” start-button. It’s not visible all the time, only when you go near your normal one – it pops out. With that you can then start a program from the Ubuntu virtual machine and it will look like any other program on your PC.

Supposedly Unity may work better after upgrading VMWare Tools. I got a little bar at the bottom of the screen, extracted and ran the thing. Then it was gone.

Conclusion

All in all, feels pretty good! I have some plans to get a laptop of mine up running this. Just need some other work done on it first I believe. There were some bugs, but that’s not surprising, considering it is in beta. Always liked ubuntu because installing it is so smooth. Might not be the most awesome for preserving system resources but honestly, only using 300MB from start is pretty ok isn’t it? If I get it on my laptop, I’ll definitely be trying another window manager, like awesome or dwm –  should bring the memory usage down :)

Time Sync for Linux VMs in VMWare Workstation

You may have seen in my previous post about EyeOS that I tried many things to get time in sync on the virtual OS. It was drifting lots of time and after a few hours it was an hour behind. Google tells me this is quite common but I could not find anything that decidedly fixed it.

run ntpdate every hour. This is not advised, primarily because it will add a lot of extra load after a while to the public(free) time servers. Especially if I want to have several machines up to date. One thought then was to set up a local ntpd and let other guest OS sync time with that. But then I could not get that in sync so we were back to square one.

others mention using VMWare tools time sync.

My setup:

Intel Quad Core i7-920
8GB RAM Corsair XMS3 DDR3 1333MHz 8GB CL9
Gigabyte GA-EX58-UD3R
Windows 7 x64
Vmware Workstation 7.1.1

What works for me

For ubuntu 10.10 x64:

Make sure vmware tools is installed (type vmware and hit ‘tab’).
With a .txt editor open up “vmname.vmx” on your host OS.
Set tools.syncTime = “FALSE” to “TRUE”. Restart vm.

Now on this particular machine I’ve had ntpd installed, but it is now uninstalled.

For Red Hat Enterprise Linux  5 x64 – RHEL 5:

  • Install vmware-tools (without make/gcc installed).
  • Set tools.syncTime = “TRUE”
  • Set up ntpd with the below from ntp.conf
  • Restart ntpd by getting root shell with ‘su -‘ and then ‘/etc/init.d/ntpd restart’

I filled out the ntp-information during installation and then after wards I added the “tinker panic 0” which should let the ntpd make ‘big jumps’ and by commenting the fudge-line I chose not to use the local clock because this is drifting so much.
More than 24 hours after I installed the OS the driftfile is still 0.000.

ntp.conf:

tinker panic 0
restrict default kod nomodify notrap nopeer noquery

restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#fudge  127.127.1.0 stratum 10

driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
restrict 0.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

Red Hat Enterprise Linux(RHEL) in VMWare Workstation

Test with Red Hat Enterprise Linux (RHEL).

Download: Sign up for an evaulation on https://access.redhat.com/downloads/

rhel-server-5.6-x86_64-disc1.iso

VMWare Workstation does find this in “easy install”. Not doing that this time.

20GBdisk (default) and 1552MB RAM (default 1024MB)

  1. install in either graphical or text mode, going with graphical. There are also special modes. Maybe something similar to Ubuntu’s minimal virtual kernel is available?
  2. test cd
  3. Mouse works!
  4. Get subscription number with the help of this: https://access.redhat.com/kb/docs/DOC-15404. Copy paste did not work.
  5. Filesystem stuff. Modify or not. Encrypt or not. I went with default and encryption. For encryption you need to set a boot password (min 8 chars).
  6. IP/Timezone settings.
  7. root password (not min 8 chars)
  8. software sets – software development, virtualization, web server. I went with the two last. You can also customize it deeper. Like: gnome/kde? Printing support? Samba? I chose web server but mysql was not selected, not the php-mysql plugin for apache either. Virtualization is Xen – openfabrics enterprise distribution for RDMA/infiniband stuff.
  9. cool stuff found: iptraf, hwbrowser, vnc
  10. /root/install.log for install .. log.
  11. After this it says that it will require all cds.. but I want to download them instead. How? proceeding anyway, let’s see what happens. Maybe it gives the opportunity to download instead. Googling in the meantime. Doesn’t look good. One way to do it would be to put the CDS/dvd on a network/http server in your LAN. But it does not mention a public repository etc.
  12. Formatting, then installing. It asks for CD2. No other buttons. Getting DVD instead. rhel-server-5.6-x86_64-dvd.iso
  13. DVD went fine, nothing after this, just reboot.

Booting

  1. Insert LUKS password – the encryption password you entered before.
  2. IPv6 failed during first boot.
  3. Also some kind of disk monitoring.
  4. Then a little configuration! This is nice. In ubuntu/debian it just goes into the system with a bunch of default setings.
  5. Like firewall, enabled/disabled. Trusted srevices.
  6. SELinux – ‘improved’ security controls, enforced/permissive/disabled. Keeping default: enforced.
  7. no kdump
  8. NTP! Enabling this, using default ntp servers (0.rhel.pool.ntp.org) and disabling ‘use local time source’. This part contacts the NTP server during install, which worked, so that looks good.
  9. Connect to RHN. Said yes. Takes a long time to register? no contact. Trying this later.
  10. Set up a new user. You can use kerberos or NIS too from here.
  11. Insert additional CDS
  12. Login prompt!

After login

  1. VM -> Install VMWare Tools – I want to use “Unity” in Red Hat. I’ve used it for Windows XP (had a guest os for work) and it was great.
  2. Right-click the tarball and ‘extract to’. You need to have root access when you run it. So open a terminal and type ‘su -‘ – this will give you the root prompt.
  3. Then go to where you extracted it. ./vmware-install.pl.
  4. Gives message that I apparently am running a Xen kernel and that this is not supported. Trying anyway. Answering yes as default on the questions.
  5. Install was successful, opening configuration tool. Some green ‘OK’ s.
  6. Before we can compile we need to have make and gcc installed. It also asks for kernel headers that it couldn’t find. Going with the default “” on that.
  7. memory manager, vmhgfs (filesystem driver for shared folders), vmxnet (fast ethernet), vmblock (drag ‘n’ drop), communication service, vsock, vmxnet3 (virtual network card), pvscsi,  – not installed because no compilation software like make/gcc installed.
  8. x configuration, host resolution found but vm resolutions max at 800×600!?
  9. restarting and it said good stuff, but unity does not work and resolution cannot be changed above 800×600.
  10. accessing via ssh works fine too

Ubuntu 10.10 + VMWare + Irssi

How small VM can you make if you are only going to use it to run Irssi in a screen?

OS: Ubuntu 10.10 x64 Virtual Kernel
Hypervisor: VMWare Workstation

Disk – no logs – 1.10GB is what my previous took, with samba, so probably less but 1.1 should be all right, don’t want it to run out of space either. Should probably partition /var/log into its own so that if that fills up (maybe after bruteforce ssh logins) then it doesn’t fill up the rest of /.
RAM –

  • turn off cron jobs
  • install virtual kernel

about the cron jobs, I just installed a ubuntu virtual kernel and only cron job running (as seen in syslog) is this:

CRON[9141]: (root) CMD (   cd / && run-parts –report /etc/cron.hourly)

Test 1

1.2GB disk
64MB RAM

Kernel panic – not syncing: attempted to kill init!
ctrl-alt-del in the VM doesn’t work, had to hard kill it :p
Reboot – same problem. It does this after selecting minimal virtual kernel and pressing install Ubuntu Server.

Test2

Increased RAM to 96MB and now it passed.
However, after selecting keyboard it still crashes. So 96 is also too little.

Googled around a little and found an article on Ubuntu.com that gives some insight.

For example: if you run out of memory, then it will swap. So if you are not running out of memory then it’s probably better to give it a little more to be on the safe side.

Test 3

Increased RAM to 128MB
Now it goes even longer.

Partitioning -> chose manual.
There is a device there ‘sda’ -> SCSI3. Mark that and hit enter. Say yes to create new empty partition. Then it creates a new space pri/log. Create new partition.

As size, type in: 100MB
Primary, beginning, default settings on the filesystem etc but mount point: /var/log. Then done setting up this partition.

Then we will create another partition for / (or the rest).

Like this:

ubuntu_partition right

ubuntu_partition right

The above does not include a swap space, and the installation complains that there is no swap space defined and that there may be problems if this is not configured during install.

Let’s see :)

** maybe Ubuntu is not the slimmest OS to install for this purpose. The guide I linked to above mentions a DSL – damn small linux. But we want a minimal server OS, not a desktop one. Maybe the new Debian 6 would be cool to try.

During install there was a dialogue about something being already on the disk.. and that this could cause issues. Maybe this was copied there from one of the previous tries with less amount of RAM. Went back and erazed this on each just to be on the safe side. Very slow though. About 1% / s. After this I went into each and set them to format instead. It mentions old installation files anyway. Proceeding. This happened twice? Three times now.. Maybe this is not going so well. Ok happened four times.

Hit Alt+F2 (and then enter to get the console) and then df -h. Nothing is over 20% except the SR0/cd-rom which is at 100%. Did a ‘more /var/log/syslog’ and at the end there are some ‘Out of memory’ things going on.

So there we go. 128MB is too little.

But here:  it says that 128MB is the requirement..

Test 4

I will try to install again and not mess up with the partitions.
1.2GB and 128MB again.
Going pretty well, looks like it’s stopped at 75% and “storing language”. Patience. Ok, 10mins later still there. Nothing about out of memory in /var/syslog. The Guest was behaving a little slow though when working the console.
Left it on over night and when I looked again the following day it was at the next step!

Installing openssh via the installation menu this time.
Taking quite long time this time as well. Like hours. 2 hours now. Nothing happening in syslog. Think I’ll give Debian a shot next Test.

In the meantime did Test 5. However 4 hours later, still configuring ‘language-pack-en-base’.

Now, approximately lots of hours later. It is at configure grub.

And yay, it finally boots!

user@irssi:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             1.1G  430M  606M  42% /
none                   54M  164K   54M   1% /dev
none                   57M  4.0K   57M   1% /dev/shm
none                   57M   36K   57M   1% /var/run
none                   57M     0   57M   0% /var/lock
none                  1.1G  430M  606M  42% /var/lib/ureadahead/debugfs
/home/martbhell/.Private 1.1G  430M  606M  42% /home/martbhell

And the size of the folder in Windows: 750 MB (787 341 312 bytes)

With 128MB ram there is maybe 10MB free and it swaps a little (just a few kB so far).

Test 5

debian-6.0.0-amd64-netinst
Using Debian 5 64-bit.

  1. graphical menu is seen, no advanced options used
  2. chose languages – look a lot like Ubuntu but there are some differences:
  3. After choosing a hostname it asks for domain. Put in WORKGROUP.
  4. Set a root account password (so no more sudoing – probably just add my user to the wheel/root group).
  5. and you have a few more options in the partitioning, like a separate /home partition
  6. then you get to chose a debian mirror (becuase I use the netinst). ftp.fi.debian.org is the one I chose
  7. you can participate in a “most used packages” survey
  8. software selection: graphical desktop, web, dns, ssh, laptop, standard system utilities. I chose SSH and standard system utilities.
  9. grub, then reboot and loading!

Internet works fine from the start. apt-get update; apt-get install irssi
Remember, here you have to log in as root to run ifconfig or apt-get.

It’s the same way in Debian as in Ubuntu to set static ip. Just edit /etc/network/interfaces / don’t forget you can just restart the networking services by ‘/etc/init.d/networking start’ instead of rebooting ;)
Now, I actually forgot to set minimal ram/disk for this one. So we have to do this again ;)

Test 6

debian-6.0.0-amd64-netinst
Using Debian 5 64-bit.
128MB RAM

One thing that’s cool about a VM is that you can resize the amount of RAM whenever (probably good to turn off the guest first). So how about just lowering it instead of installing a new one?

OK, so it now has 512MB. Going down to 64 in one go (listed as minimum in VMWare Workstation).

It’s swapping after just a few minutes with screen+irssi.

to sort by memory usage in top press SHIFT+m

biggest memory hogs (all over 1% – figures in bold) are :

1474 user 20   0 23388 6220 1572 S  0.0 11.2 0:00.25 bash
1503 user 20   0 50084 5228 3824 S  0.0  9.4 0:00.06 irssi
1470 root      20   0 70488 3280 2584 S  0.0  5.9 0:00.03 sshd
913 root      20   0  117m 1788  904 S  0.0  3.2 0:00.01 rsyslogd
1473 user 20   0 70488 1680  964 S  0.0  3.0 0:00.06 sshd
1502 user 20   0 25184 1472  992 S  0.0  2.6 0:00.01 screen
1546 user 20   0 19040 1300 1004 R 99.9  2.3 0:00.01 top
985 root      20   0 22392  712  512 S  0.0  1.3 0:00.00 cron
1233 Debian-e  20   0 44140  660  392 S  0.0  1.2 0:00.00 exim4
1472 root      20   0  5928  620  520 S  0.0  1.1 0:00.00 getty
1 root      20   0  8352  616  560 S  0.0  1.1 0:01.42 init
1277 root      20   0 49168  544  428 S  0.0  1.0 0:00.00 sshd

What I might be able to get rid of is rsyslogd and cron. But then again, if I were to connect this to the internet so I could access it and resume the screen/irssi from anywhere, I would want to keep track of what is happening on the machine.

user@debian:/var/log$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             3.8G  638M  3.0G  18% /
tmpfs                  28M     0   28M   0% /lib/init/rw
udev                   23M  140K   23M   1% /dev
tmpfs                  28M     0   28M   0% /dev/shm

Windows usage: 887 MB (930 816 000 bytes)

Summary

The Ubuntu Server 10.10 with the minimal virtual kernel took forever to install (maybe it would have been faster to have more mem during install and then lower when it’s done) and with 128MB it still swaps a little with only screen and irssi running. But it does use about 130MB or 200MB less space than the Debian6 guest.

The Debian 6 however runs OK with 64MB, swaps a little at that though so I would probably run this with 96 or 128MB just to be on the safe side if I were to run it.

File share from Ubuntu 10.10 with Windows 7 Client

Figured I would give this a shot and see how this is done in Linux.

Overview

1x Ubuntu 10.10 VM in VMWare Workstation. Installed with virtual kernel.
1x Windows 7 VM. All updates.

Not going to go through the installations in this post, just the domain/LDAP part. See previous posts for installation stuffs.

Found this article on ubuntu.com -> -> 10.10/serverguide/C/network-authentication.html .. But this does not exist anymore.

Whoa, quite a lot to do. Think I will read the manuals this time :)

Basically I think I just need to install and then configure Samba.
Because it has file-sharing and authentication/authorization.

So, first step will be to install Samba and try file-sharing.

File Sharing

sudo apt-get install samba

installs these:

The following NEW packages will be installed:
libavahi-client3 libavahi-common-data libavahi-common3 libcups2
libfile-copy-recursive-perl libgnutls26 libldap-2.4-2 libsasl2-2
libsasl2-modules libtalloc2 libtasn1-3 libwbclient0 samba samba-common
samba-common-bin update-inetd

After that I can run \\192.168.0.ip which is the IP of the VM running samba – it gives me a login prompt.

Uncommenting this in /etc/samba/smb.conf

[homes] comment = Home Directories
browseable = yes

Still asks for a password. Tried with user@ip – this seems to work. It shows a directory called “homes” but it doesn’t work to browse into it.

[2011/02/06 16:30:45.949726,  1] smbd/service.c:678(make_connection_snum)
create_connection_server_info failed: NT_STATUS_ACCESS_DENIED

Set ‘share’ and set the guest account = nobody  then I got this:

[2011/02/07 13:22:06.770082,  0] smbd/service.c:988(make_connection_snum)
canonicalize_connect_path failed for service foo, path /mnt/foo

Then what I did was this:

  1. created a directory called /samba
  2. sudo chmod +x /samba
  3. sudo chmod 777 /samba
  4. sudo chown nobody /samba
  5. add this to /etc/samba/smb.conf
  6. [foo] comment = foo
    path = /samba
    read only = no
    guest ok = yes
    guest only = yes
    browseable = yes
  7. security = share
  8. guest account = nobody

And then \\ip\foo and woopsie! I can both write and read :)

[2011/02/07 13:23:14.022980,  1] smbd/service.c:1070(make_connection_snum)
192.168.0.ip (192.168.0.ip) connect to service foo initially as user nobod

yay!

Ubuntu 10.10 Minimal Virtual Kernel + VMWare Workstation

To install Ubuntu 10.10 with a virtual kernel instead of the normal one = good, less stuff installed that you may not need.

  1. When setting up the install, do not use the easy install. Chose to install an OS later. Set up bridged/nat depending on which one you want.
  2. Add the install .iso to the CD-drive in the VM
  3. Select a language
  4. Press F4 (it didn’t work in the first screen)
  5. Chose – install a minimal virtual machine
  6. Install Ubuntu Server
  7. Chose language again
  8. Chose key map – (I chose English and had to browse to Finland)
  9. Asked to press some buttons, wanted Swedish (but have an English keyboard) so tried to press the right ones :p
  10. Then time zone Helsinki/Finland was found.
  11. Using default (whole disk, no encryption or lvm) for partitioning.
  12. set up users
  13. set up encryption on home dir
  14. proxy setup
  15. installing security updates automagically
  16. any extra packages (DNS, LAMP, Mail, OpenSSH, etc)? – I chose no, want to chose this myself later.
  17. yes I want grub (it finds only one OS on the virtual disk ;)

Then I see the login prompt! Obviously the easy-install in VMWare Workstation has a lot less steps :)

But on the other hand you could install OpenSSH directly through the install and then you do not have to log on to the VM via VMWare Workstation, but can do it via your favorite ssh program instead.

Post install

What I want installed every time after an uninstall.
After install it is a very very small installation.
Not even ‘man’ is installed.

sudo apt-get install openssh-server ntp nano

edit /etc/network/interfaces – configure static ip
edit /etc/ntp.conf – add time servers
edit ~/.bashrc – change colors in the prompt and add color

Kernel difference you can see when running uname: 2.6.35-22-virtual in comparison to 2.6.35-22-generic

There!

Now you can set up whatever you want on it! Of course you may want to do more things, set up iptables or you could use it like it is before the things I do after each install. You can use vi instead of nano/pico and use dhcp instead, depends on what you are going to do with your VM.

EyeOS – Cloud Desktop in your browser – Part 2

After my first comment ever by Adrian from the eyeOS forum I will now try this again and try not to install eyeOS wrongly by following a guide!

1/ Because I also tried to install cactii on the same VM the other day – and after that I saw some nasty out of memory messages. I will create a new VM – fresh, and with only 256MB RAM!

However, the guide is only for 2.x – So I will freestyle this time too. But follow the installation instructions on eyes.org :)

Overview

1/ Install Ubuntu 10.10
2/ Follow guide Not possible because uh, there is none for Ubuntu. There is one that begins with graphic interface for Debian.
3/ Win!

Requirements – PHP5

Installing Ubuntu

I use VMWare Workstation.
File -> New VM. Typical, installer disc image.
I used ubuntu-10.10-server-amd64 – I have an intel core i7.. (this is the one I used before, tried to find on ubuntu.com which one I should use but it says if you have a 64-bit, you’ll get the amd64..). Anyway. and also apparently it’s possible to press F4 during install and it will install a ‘virtual kernel’ which is good for when running in a virtualized environment! I had to change memory down to 256MB and then I also set the network type to “bridged” – so that it gets IP/DNS settings from my router instead of from my computer.

Also found a forum post that confirms, if you have an Intel 64-bit CPU – it is the “amd64” version you want to install.

So first time when I entered the VM through the VMWare shell everything worked fine.
Except that they keyboard was a bit messed up. When I pressed down it sent an enter.
In SSH via PuTty it’s working so I’ll do it that way instead. If you have this problem, check out this post – might be a VMWare bug or you may fix it with some CLI magic.

sshd is not installed by default -> sudo apt-get install openssh-server

Also probably good to change IP in the beginning, in case you want it on a static IP.
See my previous post how to set that. It’s a at the bottom of the post.

Time

Another good thing would be to set the time zone on the VM. You can find out how to do that in this post about lifehack/currency exchange rate.

To sync the time – so that it is up to date (mine was 30mins off) –

Edit /etc/default/ntpdate
Add a pool or use the default one – http://www.pool.ntp.org/zone/fi for Finnish ones.
Then run sudo ntpdate-debian

Do I really need to run this anymore? I’ll just let it be and try to keep track of it :p

*** Update: Just checked in on the time some 2 hours later and:

4 Feb 14:43:45 ntpdate[2494]: step time server 194.100.2.198 offset 910.266238 sec

So we need to have this executed every now and then, especially if it’s off 15minutes in just a couple of hours!!

Also found post on debian.org which clearly says that ntpd is awesome for fixing this. Especially in my case where the clock appears to be going slowly.

sudo apt-get install ntp
sudo pico /etc/ntp.conf

add your NTP-servers in there, I added those from the link above on ntp.org

then if you run this: sudo /etc/init.d/ntp status
it will tell you if it is running or not

I’ll check back tomorrow to see if this improved things ;)

*** 0847 unfortunately time is by now almost an hour off (0757).

martbhell@ubuntu:/var/www$ sudo /etc/init.d/ntp status
* NTP server is running

martbhell@ubuntu:/var/log$ ntpq –peers
remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
europium.canoni 193.79.237.14    2 u   12   64  377   44.012  2995645 13778.9

but supposedly this only runs once a day?

there is a program called ntp under /etc/cron.daily/

i’ll wait until today afternoon

** 2045  – it is now over an hour late..
** rebooted, now time is 2215.. 23 minutes too much!
** rebooted again, now time is good, 2054. :s

** a day later (maybe more)- and now it’s 3 hours behind.

supposedly ntpd will catch the drift after a while.

stopped VM and made a copy of hostname.vmx

then edited this with pspad and and changed

tools.syncTime = “FALSE”

to

tools.syncTime = “TRUE”

now time is good (Tue Feb  8 15:12:34 EET 2011), is that because of the reboot? Probably. That’s how it looks in syslog anyway.

Checking back in a day or two.

*** Wed Feb  9 06:45:09 EET 2011 – now 45minutes late.

*** Set up a script that monitors the offset. Looks like this:

offset = 3287.419925,;Tue Feb 15 04:30:01 EET 2011;
offset = 3634.005591,;Tue Feb 15 06:30:01 EET 2011;
offset = 3980.517817,;Tue Feb 15 08:30:01 EET 2011;

347,346,374

From /etc/ntp.conf I found that the drift file is this:

/var/lib/ntp/ntp.drift

it contains this value: 0.000

Manually changing this to -346.500

Also changed the default values to this in /etc/ntp.conf

restrict -4 default kod notrap nomodify
restrict -6 default kod notrap nomodify

#restrict 127.0.0.1
#restrict ::1

and rebooting the server, again.

bbl.

ok, this is bs.

sudo apt-get remove ntp

then running this:

sudo ntpdate 0.fi.pool.ntp.org

confirmed it updates time

44 * * * * /usr/sbin/ntpdate 0.fi.pool.ntp.org >> /home/user/tid/tid.log

bbl

ok, looked one hour later at 1445 and the time was right.
can now keep an eye on that tid.log file instead :)

don’t forget to add that to the root user crontab, with ‘sudo crontab -e’

*** a week later

ok that was an ugly fix and I do not condone doing that, that was me being a little frustrated :)

See http://www.guldmyr.com/blog/time-sync-for-linux-vms-in-vmware-workstation/ for how it worked out..

lamp

Download 1.x

install LAMP -> sudo apt-get install lamp-server^
The ^ needs to be there! All you need to do is to insert a mysql root password.

After this you can surf into http://localhost or http://ip of the VM.

phpymadmin

I also want to put in phpmyadmin (sudo apt-get install phpmyadmin) as well, this is nice tool to manage the mysql db. In that installation, choose apache2 by pressing space, then tab to get to the OK button. Then it asks about dbconfig-common, I chose no here because the db(mysql) is already installed. Then surf to http://ip/phpmyadmin/ and log on. If you see any databases there already -> you are now connected to the mysql you created before! Woop!

EyeOS Install

cd – this gets you to your homedir
mkdir eyeos
cd eyeos
wget $URL of eyeOS
install unzip -> sudo apt-get install unzip
unzip $FILENAME
put this in your web dir.
by default this is /var/www
by default you do not have permission to put files there, so use sudo to put the eyeOS folder in there.

sudo mv eyeOS /var/www
after this the user you have logged on with have ownership inside /var/www/eyeOS – means you don’t have to write sudo all the time :)

point your web browser to http://ip/eyeOS (note that it is case sensitive)
it will tell you that you need to chmod 777 some files, do that.

Then it will tell you to install these packages: SQLite and IMAP if you want mail client.

sudo apt-get install php5-sqlite (restart apache with ‘sudo apachectl restart’ and hit F5 on the installation page to see that the installation script now finds it)
sudo apt-get install php5-imap (free-styled that, worked out well ;)

put in a password and then hit install

then it’s installed!

eyeOS – nice!

It’s a lot slimmer than eyeOS 2.x and stuff appears to be working just off the bat.
Everything runs so fast too, in comparison to 2.x.

1.9.x for the win!

Do I really want to use this? Would I find it useful? Honestly I am a little scared by running this on my own pc.

EyeOS – Cloud Desktop in your browser

Useful? Hopefully!
Interesting? Very!

Download on eyeos.org
//update 2011-12-20 : turns out there’s been some changes here. 2.5 is the one now and it’s found under open-source. There’s also professional or other editions.

Installation

The installation manual can be found in the above link as well – will I try to use it first? No :)  What is the fun in that ;)

1st attempt

sudo apt-get -d install eyeos – this did not work, no such package.

2nd attempt

– downloading the .tar.gz – surfed to the sourceforge.
There is a 2.x and a 1.x of eyeOS – link above goes to 2.x

Commands: wget/mv (super long file) then

tar -zxvf (no errors). This extracts the whole archive into the directory you are, so probably best to put the archive in a new and empty directory before doing this.

Files are index.php, settings.php (maybe the installation is done by just surfing into it?). There are some sub directories too: resource, eyeos, install. The install dir also has index.php

cp -R files/ /var/www
cd /var/www
mv files/ eyeos
cd eyes
chmod 777 *

surfing to 192.168.232.128/eyeos ->

EyeErrorException: fopen(./system/conf/libs/log4php/logs/eyeos_20110131.log): failed to open stream: Permission denied

-> a lot nicer, gives a welcome to eyeOS 2 installation!

You then get to click on "install" and it will check the requirements.

I did not have these (working php, mysql and apache already installed, quite clean ubuntu 10.10 installation in a VMWare Workstation):

Sorting out the pre-requirements

if you don't know what to run you can either google or check out packages.ubuntu.com

curl

sudo apt-get install php5-curl
The following NEW packages will be installed:
libcurl3 php5-curl

Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl_5.3.3-1ubuntu9.1_amd64.deb  404  Not Found [IP: 91.189.92.171 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

sudo apt-get update

then trying again, working a lot better ;)

install looked a bit weird, or it went very fast.

anyway, did a "sudo apachectrl restart" and then curl was OK in the installation (it didn't install any of the others by chance though :/)

sqlite extensions and  PDO sqlite driver

php5-sqlite - this package should do the trick new packages: libsqlite0 php5-sqlite searched for sqlite pdo on packages and it didn't find anything so starting with the above one and it installed both, restarted apache and now it's a lot greener :)

python

Python simplejson:    Not installed (Needed in collaborative features)
- python-simplejson

new packages: libjs-jquery python-simplejson

installed without a hitch - comes up as installed

Python uno:    Not installed (Needed to convert office documents)
- python-uno - takes up 255 MB - skipping it for now.

Python stomp.py:    Not installed (Needed in collaborative features)
- package name: python-stompy (I am unsure about this one, it looks old and on packages it doesn't say hardy).

The following NEW packages will be installed: python-dingus python-nose python-pkg-resources python-stompy

after a restart of apache and refresh -> doesn't come up as installed. But I really want this so googling.

http://stomppy.googlecode.com/files/stomp.py_3.0.2_all.deb found on http://code.google.com/p/stomppy/

wget that.
then

sudo dpkg -i stomp.py_3.0.2_all.deb

now it's green in eyeOS pre-req check! Check!

php.ini display errors is enabled (eyeos recommends disabled)

keeping this as it is for now

recoll:    Not Instaled (Needed for document indexation)

package name: recoll

sudo apt-get install recoll

The following NEW packages will be installed:
aspell aspell-en fontconfig libaspell15 libaudio2 libice6 liblcms1 libmng1
libqt4-dbus libqt4-designer libqt4-network libqt4-qt3support libqt4-script
libqt4-sql libqt4-sql-mysql libqt4-xml libqtcore4 libqtgui4 libsm6 libtiff4
libxt6 recoll x11-common

worked fine, no need to restart apache and it showed up as installed

exiftool:    Not Instaled (Needed to extract MP3 metadata)

found this package: libimage-exiftool-perl

same story: sudo apt-get install libimage-exiftool-perl

worked like a charm :)

OpenOffice Daemon:    Not running (Needed to convert office documents)

skipping this for now

Kaazing gateway:    Not running (Needed for real time notifications)

no hits in ubuntu packages

googled and found this:

sudo wget into /usr/share/kaazing
sudo tar -zxvf
cd /usr/share/kaazing/kaazing-websocket-gateway-demos-2010.05.1.21/bin
./gateway.start

then script shows it as good!

ActiveMQ Daemon:    Not running (Needed for real time notifications)

no hits in ubuntu packages

google found this: http://www.nic.funet.fi/pub/mirrors/apache.org//activemq/apache-activemq/5.4.2/apache-activemq-5.4.2-bin.tar.gz

found in README - installation guide: http://activemq.apache.org/version-5-getting-started.html

sudo wget into /usr/share/php5/apachemq
sudo tar -zxvf
cd /usr/share/php5/apachemq/apache-activemq-5.4.2/bin/activemq
then ./activemq
This did not work, complaining about JAVA.

ERROR: Configuration varaiable JAVA_HOME or JAVACMD is not defined correctly.
(JAVA_HOME='', JAVACMD='java')

INFO: Invoke the following command to create a configuration file
./activemq setup [ /etc/default/activemq | /home/user/.activemqrc ]

sudo ./activemq setup /etc/default/activemq

sudo chown root:nogroup '/etc/default/activemq'; sudo chmod 600 '/etc/default/activemq'

./activemq then only complains about this:

ERROR: Configuration varaiable JAVA_HOME or JAVACMD is not defined correctly.
(JAVA_HOME='', JAVACMD='java')

sudo pico /etc/default/activemq

has this:

JAVACMD="auto"

and

martbhell@ubuntu:/etc/default$ whereis java
java: /usr/share/java

this directory is however quite empty, just a libintl.jar

searching for java - going for this package: sun-java6-jre
did not work, not in the repository.. Found this link which advises to run "sudo add-apt-repository ppa:sun-java-community-team/sun-java6" . This command lets me know that add-apt-respository does not exist

and cat /etc/issue gives me 10.10

sudo apt-cache search java

meh, ok, opening the installation guide..

didn't help much, more talk about repositories

Found this on ubuntuforums

went to /etc/apt/sources.list - searched for 'partner' and uncommented that line.

then sudo apt-get update; sudo apt-get install sun-java6-jre

The following NEW packages will be installed:
avahi-daemon consolekit dbus gsfonts gsfonts-x11 java-common libasound2 libavahi-common-data libavahi-common3 libavahi-core7 libck-connector0
libdaemon0 libeggdbus-1-0 libfontenc1 libltdl7 libnss-mdns libpam-ck-connector libpolkit-gobject-1-0 libpython2.6 libxfont1 libxi6 libxtst6
odbcinst odbcinst1debian2 sun-java6-bin sun-java6-jre unixodbc xfonts-encodings xfonts-utils

that's a lot. 115MB too.

but went pretty fast, trying to run activemq again
changed the JAVACMD setting back to "auto" after it gave some kind of permission error

then sudo ./activemq restart

martbhell@ubuntu:/usr/share/php5/apachemq/apache-activemq-5.4.2/bin$ sudo ./activemq status
INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
ActiveMQ is running (pid '5995')

after that it comes up as green ;)
adding this to boot as well now

autostart activemq and kaazing

add this to /etc/rc.local

sudo /usr/share/php5/apachemq/apache-activemq-5.4.2/bin/activemq start &
sudo /usr/share/kaazing/kaazing-websocket-gateway-demos-2010.05.1.21/bin/gateway.start &

Configuration during install

Clicked on the next, where it asks for mysql login information and eyeOS root password

this was already filled in so went with that :)

however, still gives this:

EyeErrorException: fopen(./system/conf/libs/log4php/logs/eyeos_20110131.log): failed to open stream: Permission denied

/var/www/eyeos$ chmod 777 * -R

Logging in!

Login prompt does not show up in FF4 B10 or Chrome.
It does show up in IE8. But when I click on new user nothing happens.
apachectrl restart
trying with both root/martbhell account

After looking around in the mysql server I didn't see any new stuff. So: To fix it I had to create a db called whatever I filled out in the form ;)

Creating new user works too!

Static IP in Ubuntu Server 10.10

Changed to static IP on the server by editing /etc/network/interfaces

to make it look like this :

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Restart the neworking service using the following command

sudo /etc/init.d/networking restart

and changing to a bridged ethernet - then it's on my local LAN network :)

a restart also shows stuff is running (by going back to the installer)

Summary

It's not really excellent. Documents didn't work (as in I cannot open them), but I suppose that is because I didn't install the OpenOffice stuff. But I just don't like the feel of it. It's not smooth enough. Maybe it's because the VM only has one CPU and 2GB RAM?

Well just looking at 'top' while clicking around and CPU idle goes down to 18-19% and then goes back to 100% after whatever I started in eyeOS is done.

Maybe I'll try to install the OO parts and see if that does the trick.
I just got the feeling that this is probably something that iCloud can do better (at least the screenshots look nicer on their web page). There's quite a few other hits on 'webos' on the Intarweb and quite a lot of them aren't updated.. Like lucid, some kind of windows4all on sourceforge..

Looks nice, but maybe the web browser isn't ready to be the OS just yet?