Tag Archives: vmware workstation

openstack testing day

Only one day late!

I actually started installing this on the 8th but I forgot to install it to hdd so the ‘yum update’ failed and broke the machine with I/O errors :)

Installing it in a VMWare Workstation (fedora 64-bit type, 2, cores, 4G RAM, 20G disk).

http://fedoraproject.org/wiki/Test_Day:2012-03-08_OpenStack_Test_Day

Basic Setup

1

http://fedoraproject.org/wiki/QA:Testcase_install_OpenStack_packages – No problem.

2

http://fedoraproject.org/wiki/QA:Testcase_setup_OpenStack_Nova –

Says that if you are doing this in a VM you need to “configure nova to use qemu without KVM and hardware virtualization:”. This is not true, as VMWare Workstation 8 has virtualization pass-through.

[root@localhost mart]# vgcreate nova-volumes $(sudo losetup --show -f /var/lib/nova/nova-volumes.img)
  No physical volume label read from /dev/loop0
  Writing physical volume data to disk "/dev/loop0"
  Physical volume "/dev/loop0" successfully created
  Volume group "nova-volumes" successfully created
openstack-nova-db-setup

Gives this error, which already is reported:

Verified connectivity to MySQL.
Creating 'nova' database.
Asking openstack-nova to sync the databse.
2012-03-09 07:28:26 WARNING nova.utils [-] /usr/lib/python2.7/site-packages/nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py:49: SADeprecationWarning: useexisting is deprecated.  Use extend_existing.
  useexisting=True)

2012-03-09 07:28:28 WARNING nova.utils [-] /usr/lib/python2.7/site-packages/nova/db/sqlalchemy/migrate_repo/versions/081_drop_instance_id_bw_cache.py:40: SADeprecationWarning: useexisting is deprecated.  Use extend_existing.
  useexisting=True)

Complete!

3

[root@localhost nova]# ADMIN_PASSWORD=$OS_PASSWORD openstack-keystone-sample-data
The default service password has been detected.  Please consider
setting an actual password in environment variable SERVICE_PASSWORD

But after that it generates users.

4

No problems, should ‘glance index’ return anything at this stage?

5

No problems.

6 Add SSH keypair

No problems, just do exactly what the instructions say (don’t try to be smart and put them in .sh files for example :P).

7 Register Guest Images

At this point the wiki went down :/

[root@localhost ~]# glance add name=f16 is_public=true disk_format=qcow2 container_format=ovf copy_from=http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2
Failed to add image. Got error:
Unexpected response: 500
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.

Yes, this is where it fall short. Manpage for clance doesn’t even have the ‘copy_from’. Maybe it could be downloaded? ‘glance index’ doesn’t work either.

 

[root@localhost ~]# glance index
Failed to show index. Got error:
Internal Server error: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/eventlet/wsgi.py", line 336, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 210, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 279, in __
    response = req.get_response(self.application)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1086, in get_re
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1055, in call_a
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/keystone/middleware/auth_token.py", lin
    valid = self._validate_claims(claims)
  File "/usr/lib/python2.7/site-packages/keystone/middleware/auth_token.py", lin
    return self._validate_claims(claims, False)
  File "/usr/lib/python2.7/site-packages/keystone/middleware/auth_token.py", lin
    self.admin_password)
  File "/usr/lib/python2.7/site-packages/keystone/middleware/auth_token.py", lin
    return json.loads(data)["access"]["token"]["id"]
  File "/usr/lib64/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

[root@localhost ~]# cd images/
[root@localhost images]# ls
aki-tty  ami-tty  ari-tty
[root@localhost images]# http://berrange.fedorapeople.org/images/2012-02-29/f16-                                                                                        x86_64-openstack-sda.qcow2^C
[root@localhost images]# glance add name=aki-tty is_public=true container_format                                                                                        =aki disk_format=aki < aki-tty/image
=================================================[100%] 7.79M/s, ETA  0h  0m  0s
=[  2%]                                                 1.25M/s, ETA  0h  0m  3s                                                                                        Failed to add image. Got error:
You are not authorized to complete this action.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you                                                                                         requested. Either you supplied the wrong credentials (e.g., bad password), or yo                                                                                        ur browser does not understand how to supply the credentials required.


Note: Your image metadata may still be in the registry, but the image's status w                                                                                        =================================================[100%] 20.9M/s, ETA  0h  0m  0s
[root@localhost images]#

Stuck!

OpenIndiana + PostgreSQL + dCache

This is a test for installing openindiana and set up a working dCache test-vm.

dCache is a storage element of the Grid (scientific computing).

OI == OpenIndiana. Kind of like opensolaris with an Illumos kernel, not the sun/oracle kernel.

With http://www.guldmyr.com/blog/esxi-vmware-workstation/ as a base for how to set up ip settings etc in OI.

oi-dev-151a-text-x86.iso installed

pkg install package/pkg

pkg update

java -version

mkdir /var/postgres

useradd postgres

groupadd postgres

chown postgres:postgres /var/postgres

chmod 755 /var/postgres

The pkg update makes it into 151a2

If you do not create the ones above the install of service/postgres will fail and create a new BE.

pkg install pkg:/database/postgres-84
pkg install pkg:/service/database/postgres-84

vi /etc/passwd

change postgres to 90:90 and homedir to /export/home/postgres

mkdir /export/home/postgres

chown postgres.postgres /export/home/postgres
root@oi:~# vi /export/home/postgres/.profile
PATH=/usr/postgres/8.4/bin:${PATH}
PGDATA=/var/postgres/8.4/data
export PATH PGDATA

you probably also want to add these to the root user’s path

svcadm enable postgresql-84:32_bit

root@oi:/var/log# svcs -a|grep postg
disabled       17:29:37 svc:/application/database/postgresql_84:default_64bit
online         17:31:35 svc:/application/database/postgresql_84:default_32bit

su - postgres

psql

\l

I initially did this in an ESXi VM in VMWare Workstation, but that keept freezing so I went over to a ‘real vm’ instead. The VM is more responsive.

dCache stuff

wget it from www.dcache.org

pkgadd -d dcache-server-1.9.12-16.pkg

follow http://www.dcache.org/manuals/Book-1.9.12/start/in-install.shtml for the instructions of which postgresql-scripts and users and stuff to create

It’s however not enough :

root@oi:~# /opt/d-cache/bin/dcache start
/opt/d-cache/bin/dcache[127]: local: not found [No such file or directory]
/opt/d-cache/bin/dcache[128]: local: not found [No such file or directory]
/opt/d-cache/bin/dcache[129]: local: not found [No such file or directory]
/opt/d-cache/bin/dcache[130]: local: not found [No such file or directory]
/opt/d-cache/bin/dcache[131]: local: not found [No such file or directory]
/opt/d-cache/bin/dcache[132]: local: not found [No such file or directory]
/opt/d-cache/bin/dcache[317]: .[162]: local: not found [No such file or directory]

so, edit /opt/d-cache/bin/dcache and remove the if in the beginning that will make it use /usr/xpg4/bin/sh – so that it uses /bin/bash instead.

Like this:

if [ "$1" = "%" ]; then
    shift
elif [ "`uname`" = "SunOS" ]; then
    if [ -x /bin/bash ]; then
        exec /bin/bash $0 % "$@"
    else
        echo "Cannot find POSIX compliant shell. This script will"
        echo "probably break, but we attempt to execute it anyway."
    fi
fi

after I changed this, I noticed in the console that it said:

rpcbind: non-local attempt to set

bad?

anyway, then start dCache

root@oi:/opt/d-cache/bin# /opt/d-cache/bin/dcache start
Starting dCacheDomain done

in /var/log/dCacheDomain.log you’ll find why it’s not working:

touch /etc/exports

and it appears to be stable, except for some errors about (NFSv3-oi), however, we disregard those for now, we just want to get it running!

vi /opt/d-cache/etc/dcache.conf
dcache.layout=single
mkdir /pool1

and

vi /opt/d-cache/etc/layouts/single.conf

uncomment the pool1 section, set a maxDiskSize=2G to specify max disk space allowed.
Specifics are in the installation part on dcache.org in the book.

Then point your webbrowser to – see any blue buttons?! yay, it’s up!

Next step is to try it out, this might prove a little bit more difficult (to find dcap/root/srm client for opensolaris/oi).

PostgreSQL problem

so maybe next time you restart the vm it gives some errors and puts the postgresql-server in maintenance mode. Look in /var/adm/messages for some tips, it should point you to

svcs -xv svc:/application/database/postgresql_84:default_32bit

/var/svc/log/application-database-postgresql_84\:default_32bit.log

which will tell you more about what’s going on and how to fix it

svcadm restart
svcadm clear

Use dCache with webdav

We’ll start with trying to use Webdav (doesn’t require anything fancy on the client side, except maybe a browser plugin for uploading).

go to the layout file and uncomment the webdav part, add

webdavAnonymousAccess=FULL
webdavRootPath=/data/world-writable

The script /opt/d-cache/bin/chimera-cli.sh sadly assumes that you need bash or a special version of bash somehow.
So running

bash /opt/d-cache/bin/chimera-cli.sh mkdir /data

works, but

/opt/d-cache/bin/chimera-cli.sh mkdir /data

does not.

See http://www.dcache.org/manuals/Book-1.9.12/start/intouch-client.shtml for the rest.

If you keep the webdav in the same domain you’ll need to restart the whole dcache.

In Windows 7 you can then mount a new network folder and click “Connect to a web site that you can use to store your documents and pictures” and in there type:

Now you get another folder in your computer where you can create folders. These will also show up if you surf to , sadly however, you cannot write files. gridpp.ac.uk says it’s because pool is full. But it’s 2048MiB and all free?

https://twiki.grid.iu.edu/bin/view/Storage/MeetingMinutes2009Sep02

suggests minimum pool size might be 4G, changed pool maxdiskspace to 8G.

tada, now the copy starts, or the file creation starts, but I cannot actually write anything to it. So if I create a .txt file, I can give it a name and save it, unless I try to write anything inside it!

some errors to accompany this:

 (WebDAV-oi) [door:WebDAV-oi@dCacheDomain:13295xxx] Your resource factory returned a resource with a different name to that requested!!! Requested: null returned: world-writable - resource factory: class org.dcache.webdav.DcacheResourceFactory
 (WebDAV-oi) [door:WebDAV-oi@dCacheDomain:13295xxx] resource is being locked with a null user. This won't really be locked at all...
 (WebDAV-oi) [door:WebDAV-oi@dCacheDomain:13295xxx] resource is being locked with a null user. This won't really be locked at all...
 (WebDAV-oi) [door:WebDAV-oi@dCacheDomain:13295xxx] Your resource factory returned a resource with a different name to that requested!!! Requested: null returned: world-writable - resource factory: class org.dcache.webdav.DcacheResourceFactory
 (pool1) [00002CBCC971ABC14BDC9E496A0AEAA31FC3] A task was added to queue 'store', however the queue is not configured to execute any tasks.

trying dccp

[root] # cd /etc/yum.repos.d/
[root] # wget http://grid-deployment.web.cern.ch/grid-deployment/glite/repos/3.2/glite-UI.repo
or 
[root] # yum install dcap dccp -d 63 -H /bin/bash dcap://ip.to.server/data/world-writable/2nd/4 creates another empty file, while it adds an entry to the 'store' queue and then not so much happens. stuck on this: Sending control message: 2 0 client open "dcap://IP.to.server/data/world-writable/2nd/4" w -mode=0755 -truncate sl1 40619 -timeout=-1 -onerror=default  -alloc-size=938672  -uid=0 (len=153) 

NFSv41

uncomment the nfsv3 and add nfsv41
then on a system you should be able to ‘apt-get install nfs-common’; modprobe nfs; mkdir /nfsv4 mount -t nfs4 ip.to.server:/ /nfsv4′. But for me this stops working with an “cp: closing `./bash’: Input/output error”. Possibly because I could not specify -o minorversion=1 on this ubuntu install (3.0.0-16).

 

NFSv41 with dCacheToGo

Download dCache2Go from here:

To convert it into VMware format:

VBoxManage clonehd source.vdi target.vmdk --format VMDK

Then create new vm and set the new vmdk file as the disk.

When this VM is up (and the dCache server of course), hit:

mount -t nfs4 -o minorversion ip.to.dcache.host:/ /mnt

then

cd /mnt/data/world-writable
mkdir another
cd another
cp /bin/bash .
cp bash /tmp/bash
diff /tmp/bash /bin/bash

SCORE! We have a working dCache setup in a VM running openindiana!

Windows 8 Consumer Preview in VMWare Workstation

Checking out the new Windows 8 Consumer preview!
Installing in a VM on a host with Windows 7 and Intel Core i7.
Downloading the x64 English version from here: http://windows.microsoft.com/en-US/windows-8/iso
“To snap apps, you need a screen resolution of at least 1366 x 768” so I guess I better increase the resolution! Went with 1680×1050 which seems like an arbitrary number but with the highest (1920×1080) the text was blurry.

Could not detect which OS was on the disk, set it to Win7 x64. 4G RAM and 25G disk.

There’s a funny fish shown during first install.

After this, enter language and hit install, enter license key, custom install, use all disk.

This appears to be the current loading screen while the computer is booting too :)

After windows boots you get to decide hostname, enter your windows account, make some settings if you want to update drivers, safety filters. You can enter some extra security stuff (e-mail, alternative e-mail, security question).

 

Inside

To get to settings move the mouse cursor down to the bottom right corner.

A task bar is available if you move the cursor to the left top corner of the screen.

Xbox games doesn’t work (not allowed to sign in from my region).

Pinball FX starts but it’s lagging, a lot. But, if it’s slow just hit the windows key and you’re back to the block(s). In the end it doesn’t work either.

There’s a messaging square where you can add facebook, there’s also an e-mail square where you can add gmail.

Weather shows temperature as Fahrenheit, even though all my settings in control panel are set to Sweden/Swedish.

So I put some music on the skydrive, and then started it (whereupon it downloads the song). It then starts up a media player that takes up the whole screen. You can tell that this is meant to be used for a tablet where you don’t want clutter or where you want it to look nice.

Also, you go to settings to turn it off.

Dragonfly – Testing another OS

http://www.dragonflybsd.org/

Install

It’s based on … BSD! (FreeBSD 4.8 is apparently what dragonfly span off from)

What’s weird is that while VMWare Workstation scans the iso (to find which OS it is) it stops responding (other VMs are unaffected).
It finds FreeBSD 64-bit.

It has a ‘hammer’ filesystem.
Apparently this is unsupported for FS under 10GB and not recommended for under 50G and will apparently require a lot of things (period clean-up job) occasionally.

     HAMMER file systems are designed for large storage systems, up to 1
     Exabyte, and will not operate efficiently on small storage systems.  The
     minimum recommended file system size is 50GB.  HAMMER must reserve 500MB
     to 1GB of its storage for reblocking and UNDO/REDO.  In addition, HAMMER
     file systems operating normally, with full history retention and daily
     snapshots, do not immediately reclaim space when files are deleted.  A
     regular system maintenance job runs once a day by periodic(8) to handle
     reclamation.

 

Nice and straight-forward console-based installation.

Quick and easy!

Configure

As it’s BSD, add the user to the ‘wheel’ group so that it can become super-user.

Guide to get sshd working (basically set PasswordAuthentication = yes). The guide mentions a lot of other things, but in 3.0.1 sshd is on by default and the keys have been generated.

Install  software

Edit /usr/pkg/etc/pkgin/repositories.conf and add the URL to a repository near you.

pkgin update

pkgin full-update

pkgin search packagename

pkgin install bash

This installs bash to /usr/pkg/bin/bash

It’s not enough to just edit /etc/passwd to get the new shell, you need to edit it via ‘chsh’.

To install screen you need to

ln -s /usr/lib/libcrypt.so.4 /usr/lib/libcrypt.so.3

or it will complain that libcrypt.so.3 doesn’t exist.

The HAMMER filesystem

All commands start with ‘hammer’. Like ‘hammer info’.

 

Conclusion

While looking at it from the above angle (quite distant) – this doesn’t appear to be very different from other bsd/unix/linux distributions, a bit different commands to do some things but that’s not so odd in itself.

Personally I like the name, maybe that’s enough to use it? =)

Tails – A LiveCD/USB Linux Distribution

http://distrowatch.com/table.php?distribution=incognito

It looks like it’s been renamed to ‘tails‘.

It is based on Debian, is a LiveCD and it’s purpose is to preserve anonymity and privacy.

When you install it in a VM it gives a pop-up to this link saying that running it in a VM may not be the safest option.

There’s a few default plugins in iceweasel (looks like firefox, in fact it is a fork of firefox):

  • adblock plus
  • amnesia branding
  • cookie monster
  • firegpg
  • foxyproxy standard
  • greasemonkey
  • https-everywhere
  • monkeysphere
  • noscript
  • torbutton

It also starts with TOR configured and in ‘private browsing’ mode.
There is also an I2P application/network that can be used.
Both are however quite slow (but generally this shared type of proxy-ing usually is?)
As in ~10 seconds to load a web page.

Easy to use, but still slow.

Is performance is something worth losing to gain privacy and anonymity?

ESXi + VMWare Workstation + OpenIndiana

Before

Register and download ESXi here https://www.vmware.com/tryvmware/

Free license can be found there as well.

Get ESXi and the vSphere Client.

Get an OS to install in a VM (I chose openindiana).

Install ESXi in VMWare Workstation 8.

40G disk, 4GB RAM, 2 cores, enable Virtualization.

Very fast install.

Actually, in VMWare Workstation you can do ‘connect to server’. So for this you do not need the vSphere Client? Looks like through VMWare Workstation there’s a lot less options. Supposedly you can upload stuff to the datastore through the vSphere Client, and possibly more. Basically in VMWare Workstation you can just create a VM and make basically the same settings on it as you would on a normal VM.

Username: root. No password.

In the console, enable ssh and stuff. Then you can scp and ssh to the esxi host.

/vmfs/volumes/datastore is where you want to put isos.

you can also browse to the datastore via http!

Install OpenIndiana in a VMWare Workstation VM running ESXi.

Connect to the ESXi server in VMWare Workstation (connect to server, put in the IP of the ESXi VM, the IP is in the console).

After it’s there just create a new VM and select a ‘remote location’ of the iso when you look under CD. I’m went with openindiana.

8G disk, 1GB RAM, 1 CPU, “VM Network” (I presume this means the same as the one where the VM is). Nothing else special during install.

Feels a bit slow, but that could be because of the 1GB RAM. But I increased this to 2GB and still the Grub menu was slow to load.

Using OpenIndiana

In the console hit: ‘pfexec su -‘ to get to the root shell.

From the start I can ping a DNS-host on the internets. Great success.

Static IP in OI

If you don’t want to use nwam and you want to have a static IP you do this in the console:

  • Find interface name with ‘ifconfig -a’ or ‘dladm showphys’. If it’s not visible with ifconfig, it’s not plumbed, so ifconfig devname plumb. For this example, we’ll use e1000g0
  • Disable NWAM: svcadm disable svc:/network/physical:nwam
  • Set IP address in /etc/hostname.e1000g0: echo 1.2.3.4 > /etc/hostname.e1000g0
  • Set netmask in /etc/netmasks (there’s an example in there)
  • Set default gateway in /etc/defaultrouter: echo 1.2.3.1 > /etc/defaultrouter
  • Set DNS servers in /etc/resolv.conf (example: printf “nameserver 1.2.3.4\nnameserver 2.3.4.5\n” > /etc/resolv.conf)
  • Enable default: svcadm enable svc:/network/physical:default
  • Restart networking: svcadm restart svc:/milestone/network:default

After this, restart the system (init 6) and see if the settings stick. (I had to restart the VM twice but the IP setting stuck). The OI VM stuck at boot a few times after this as well. poweroff/restart got it back without any issues though.

Packages in OI

this is how to update your OI (no questions asked, just update everything).

pkg install pkg:/package/pkg
pkg update

You can of course do a lot more, see http://wiki.openindiana.org/oi/3.+Installing+software+and+package+management

Installing stuff

pkg install irssi

easy peasy, no problems at all (and screen is installed by default!).

JAVA is already installed by default (1.6.0.26).

java -version

Install Open Solaris in VMWare Workstation

Trying out osol-dev-134-x86.iso in vmware workstation.
You can download it from here: (genunix.org doesn’t work anymore – here is another place: http://okcosug.org/. Update 201308 this also broke. You can now use http://virtualboxes.org/images/opensolaris/)
Host OS: Core i7 with Windows x64.

1 core and 1300MB RAM, bridged networking and 16GB disk.

Installation looks initially very similar to openindiana (I guess it is the other way around..). Choose keyboard layout etc.

When you boot on the disc above you get directly into a desktop. If you only want text you can use the textinstall-134-x86.iso on the same page as above, the openindiana text-based installer had some more options than the ones in this graphical one in opensolaris. From there you can click an icon to install it. It only asks you for user/pw, timezone and partitioning stuff. 3.6GB needed. Nothing more, no packet selection or role customization.

I was not expecting the graphical desktop. Networking works straight from the box. Flash does not. However you can just download a .so file and get it working. Just find out where firefox is installed and copy it to the plugins directory. But flash is apparently dying now anyway.

There is an update manager but it doesn’t find any updates. Even though this version is from 2010. ? Why? Do I have to register to get updates? Register page takes me to Oracle. Perl version is 5.8.x and latest Perl now is 5.14.x. Supposedly ‘pkg image-update’ should update but it appears to not work anymore. There is now Solaris Express or whatever Oracle calls it which I presume they want you to update to and pay for. Of course openindiana is still there but it doesn’t install on the bl460c.

Protip: To get root level permissions you type ‘pfexec su -‘ or just ‘pfexec bash’.

The main idea I wanted to do this was to see what ‘touch /reconfigure’ did.
All it did was to add ‘configuring devices’ during the boot.
Also tried this on a bl460c blade where we replaced the system board. Nothing special, it booted up just fine!

Scientific Linux 6 – Basic Setup

Not allowing root to log in

By default sshd is running on SL6 and you can ssh in with ‘root’.

Probably a good idea to change this in /etc/ssh/sshd_config

permitrootlogin no

But first, create a user that can log in.

useradd mart
passwd mart

Then you can change sshd_config and ‘service sshd reload’.

Then you can ssh in and either hit’ su -‘ to get root access.
Or, if you hit ‘visudo’ and add your user. You can later just type ‘sudo bash’ to get a root bash shell.

Firewall

iptables -L to view the firewall setup, note that there is a ‘virbr0’ interface that has forwarding rules. This is probably for NAT or bridging for potential virtual machines, and was probably created when we chose ‘Virtual Host’ as the role for the system.
iptables-save : another view that may be easier to understand. This you can put in ‘file’ and then hit iptables-restore < file.

Slow before you get the login prompt while ssh-ing?

To see what is happening, ssh in with ‘ssh -v ip’.
In my case I saw

 debug1: An invalid name was supplied
Cannot determine real for numeric host address

A little googling showed me that this is because your machine doesn’t have a name lookup for that IP. So go ahead and add one in /etc/hosts and then it will be fast.

Notice that your ssh stops working after a while? Doesn’t accept input?

If so, add this to your ~/.ssh/config file:

Host *
   ServerAliveInterval 60

Make sure there is at least a space on the second line. I have three :p
You can change the * to a specific domain if you do not want to do this on all your boxes.
If the file doesn’t exist, create it.

Run sshd on a second port.

  1. Edit /etc/ssh/sshd_config
  2. Add a line saying: Port 6666
  3. look in /etc/hosts.allow (any entries? good)
  4. iptables-save > ~/fwrules
  5. vi fwrules
  6. copy the –dport 22 line and paste a new one above the -j REJECT lines (vi commands: yy and P)
  7. change the 22 to 6666 (vi commands: x for delete, R for replace mode. :wq! to save and quit)
  8. iptables-restore < ~/fwrules
  9. /etc/init.d/sshd restart

If you want you can hit: iptables -L or iptables-save.
These will also show the current iptables rules.
See ip6tables for IPv6 rules.

Now the port is running on another non-standard port (you could set it to whatever you want, as long as it’s lower then 65536 and preferably higher than 1024). This might be good for security reasons. You could still have port 22 open for access from your internal network (see adding a -s ip.add.r.ess on the row in the iptables rules) and the other one accessible from the internet or maybe even a specific network / address on the internet for even more security.

Install Scientific Linux 6 in VMWare Workstation

Time for some more Linux testing.

The reason for this is because I think I will go ahead and try to study for the RHCSA – Red Hat Certified System Administrator. Work might send me to a course in December, probably wise to play around with it before this.

So here we go.

Scientific Linux (SL) is a free clone of Red Hat Enterprise Linux (RHEL). Historically it’s been updated faster than CentOS. It’s same as Enterprise Linux (EL) – it’s re-compiled from source.

New VM, \SL-61-x86_64-2011-07-27-Install-DVD.iso, RHEL6 64-bit. 1 Core, 2G RAM, NAT, LSI Logic, New virtual disk, SCSI, 20G. Then boot the VM.

SL.org has this in pictures.

First thing you see is the Grub menu:

  1. Install or Upgrade
  2. Install with basic video driver
  3. Rescue
  4. Boot from local drive
  5. Memtest (I like that memtest is pretty standard now)

Chose 1. Next screen is a graphical interface where you click and write, so you need keyboard/mouse. Next screen asks if you want local disks or external storage (fc, iSCSI, or zFCP – for system Z). Hostname: SL1.localdomain.

Create disks. Custom/full size. xfs/encryption/lvm cannot be used for boot volumes.

Role: Virtual Host (I want to try KVM). Enabling SL 6.1 and SL 6.1 Security Updates repositories.

Pinging to something on the Intertubes work from the start.

More posts coming with more fun stuff :)

Windows 8 Developer Preview + VMWare Workstation

VMWare Workstation 8 is required (doesn’t work in 7).
The x64 version (without developer tools) installs just fine on my Win7 x64 Core i7 machine with virtualization enabled in BIOS.
Just disable the easy install bullcrap (you may have to remove the floppy drive).

Boots fine and logs on, can connect your Microsoft Live account to the computer. If you do connect it, you’ll get an e-mail to your Live e-mail asking if you did this and if you want to give this computer access to your account. Pretty integrated.

That’s how far I’ve gotten. Unsure if I’ll actually try anything more but it was nice to see that it works. Windows 7 has been so great to me (compared to 98, me, and xp) with very few problems that I doubt that I will upgrade for quite a while. Approaching 2 years, no reinstall yet and it’s still pretty quick. I suppose it all depends if Win8 is going to have some feature that I really do like/want.

If you just bring the mouse down to the right corner you get the start menu and a large clock, nice, no need to click. None of the apps worked (couldn’t click on them).
Looks nice and ‘streamlined’ or something, not too cluttered – nice.

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)!

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 :)

Virtualbox – Free OS Virtualization

Had the opportunity to try out virtualbox the other day on RHEL.

I really liked the part that the rpm that I downloaded was signed and I had to import the signature to be able to install the package! Feels safe. Install did not cause any other problems for me.

As far as the interface goes I like it a lot.
Quite intuitive and worked fine for what I did with it (load a pre-made .vdi, boot, configure).

Not that different at all from VMWare Workstation. But I didn’t do much at all with virtualbox except the initial setup of the VM.

It is also free!

Some cool stuff:

  • manage the VMs via php
  • updated about once a month
  • Runs on windows/linux/osx/solaris
  • you can convert vmware vms into virtualbox format or you can actually import a vmware vm

Not so cool stuff:

  • oracle -> means suddenly you may have to pay licenses for it ;s

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

RHEL 5 + Unity

See my previous post for how to install it.

A couple of days later and the time is still in synch.
When I logged on there was a pop-up saying there were some updates.
Put in root password and you get to see which are updates, the ones with a symbol next to them requires a reboot (kernel update in my case).

The VNC that was installed was a VNC client, not the server.
There aren’t that many packages by default – this is probably because all depositories are not enabled and that this is not Fedora.

After installing vmware-tools, a reboot or two and the resolution can be changed to larger than 800×600. And Unity works as well!

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.

Sharepoint – Part 3

The previous posts:
Part 1 – installing Sharepoint 2010 Foundation.
Part 2 – basic features in the web interface.

I said I was going to look into the RSS updates, how to manually edit the database and look into the underlying structure of the Sharepoint. But, only went through the last of the obvious administration tools :p

Other management tools

Under the start menu there are three new programs:

Central Administration –

This opens a page to http://win2k8:48820/default.aspx – I could log on with my extra account (the one with admin/owner privileges).

The sections are:

Application Management

Manage web apps, create site collections, service apps, content databases.

Under Manage Web apps there are some nice stuff you can change on each site. Select the site you want to work on and click on “General Settings”.

The central admin is it’s own site so by default there are two and the changes you make on one does not replicate over to the other one.
For example you can set timezone, resource throttling, outgoing e-mail, workflow, enable/disable some features.

In the bar on the top there is the possibility to change policy settings.

Back one step to App Management there is the possibility to add more databases and database servers.

System Settings

Manage farms and alternate access mappings.
Like adding features and solutions, change outgoing e-mail settings (notifications)

Backup and Restore

What ^^ says.
“To recover the data, use the PowerShell restore command Restore-SPSite.”

Monitoring

Review problems and solutions, check job status.

Security

manage farm admin group and configure service accounts

also you can specify anti-virus settings, block file types, and self-service site creation

Upgrade and Migration

check product, patch and upgrade status
for example you can see what versions you have installed:
I have:

Microsoft SharePoint Foundation 2010  – 14.0.4763.1000
Microsoft SharePoint Foundation 2010 1033 Lang Pack – 14.0.4763.1000
Microsoft SharePoint Foundation 2010 Core – 14.0.4763.1000

General Application Settings

configure send to connections, convert document settings, report services,

Configuration Wizards

none by default

Management Shell

This did not work, gave me this error: “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”

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?

Sharepoint 2010 Foundation – Part 2

Overview

See the installation guide which I published recently.

This article is a brief look what to do in Sharepoint after it has been installed!

Accounts

I don’t want to log on with the built-in Administrator account anymore.
Still no AD services installed.
Created a new standard account with no password – could not log on.
Logged on with account and set a password – could log on but

Error: Access Denied

In computer management there are three new groups:
WSS_ADMIN_WPG – write access to “system resources” for Sharepoint Foundation
WSS_WPG – read access to “system resources” for Sharepoint Foundation
Added my new user to both – did not work. Neither did if it’s in “administrators” group.
Then in side the web page, up in the left corner there is something called “site actions”.
Added my new user as a member/contributor” and whoopsie now it can log in!
This account can however not see all the actions under “site actions”.
So put it in the “owner” group – and now the account can see most of the settings.

– Now over to the fun stuff! All the things we can do inside the Sharepoint.

Site Administration

Set locale, RSS (niice! don’t think google reader will work for me), search/indexing (presuming robot.txt stuff), workflow(maybe authoring – reviews etc of documents?)

Site Features

You can create pages (wiki – so Sharepoint is like a wiki as well, never saw that part when I’ve used it before, I’ve only used it to upload documents :) – anyway – nice).
Calendar, lists, discussions, share documents (libraries), tasks, announcements, links, surveys, subsites and workspaces.

Change home page.

Apparently some stuff requires me to install another Software – Sharepoint Designer. Free.

Anyway, you cannot go into pages and then click on Home to edit the front page.
To edit the home page: go to the Home Page click on -> site actions and then Edit Page.

In there it feels free, you can add pictures, write things, change font, size, color, etc and you can drag things around.

Galleries

Here you can make fancy changes to what appears to be relatively complicated things such as defining content types, columns, templates, themes, master pages (default?) and dom-dom-dom Solutions.

Looksie Feelsie

Here you can change name of sharepoint, customize the menu on the left or on the top (top appears to only be able to give URL:s)

Stay tuned, there will be more things coming about Sharepoint!
I will look into the RSS updates, how to manually edit the database and look into the underlying structure of the Sharepoint.

Sharepoint 2010 Foundation + Windows 2008 R2 + VMWare Workstation

Overview

I just write down notes from the installation.
But intended as a guide for how to set up your own sharepoint lab.

Guides and Documentation

Sharepoint server on technet: http://technet.microsoft.com/en-us/library/cc303422.aspx

SQL Server 2008 R2 and Sharepoint 2010 server I downloaded the trial from Microsoft.

Terminology

VM – Virtual Machine
Host OS – I installed VMWare Workstation on my home desktop, so the Host OS will in my case be Windows 7 as that’s what’s installed on it.
Guest OS – On this host OS I have installed Windows 2008 R2 – this will be running inside VMWare Workstation.
NAT – Network Address Translation

Installation

  1. Install VMWare Workstation
  2. Install Windows 2008 R2
  3. Install a client – Windows 7 x64 – or connect from the host os.
  4. Install SQL Server 2008 R2
  5. Install Sharepoint

Windows 2008 R2

Easy Setup may not be the best choice -> when I did it took the timezone I was in and decided that Ukrainian would be a good language.

In the beginning it’s probably best to have the VMs connected to the Internet (so you can apply patches) – setting is called NAT when setting up the VM. I chose 2GB RAM and 40GB disk space (guide says 4GB RAM and 80GB disk).

The password/account you specify needs to meet the Windows 2008 password requirements.

Install patches
Set up remote desktop – so you can connect from your host and connect your host OS local disk drive to the guest OS – good way to share files between them.

I did not read the documentation or find a good step-by-step, figured I would try it out without any of that – this way I would learn better.

Initial Roles

Figured that a domain would be good to start with.

Select AD Domain Services and install. This installed .net 3.5.1 and then asked me to run dcpromo.

DCpromo – new forest – fqdn: guldmyr.lan – forest functional level: 2008 R2. Then it examines DNS configuration, takes forever, probably because I don’t have a DNS server installed. A while later it asks if you want to install the DNS server. Which recommends having a static IP. Changed ip to 192.168.232.10. Then it asks something about delegation, went to next and there you see a summary – with install DNS selected. That went without a hitch. Restarting. You get to set a special AD password as well. Reboot.

To test that the AD was probably installed – you now can either install a new VM with a client to try to log on. Or you can use the remote desktop and authenticate with a domain account. Also a “ping win2k8” or “ping guldmyr.com” showed that dns might be working as well. After the reboot the DNS server in the ipv4 configuration was changed to localhost – 127.0.0.1.

This worked for me with only the above steps – pretty easy!

When I open server manager there are some errors but none seems to awful. There are best practices you can run to improve things / harden the setup – but this is not so important at the moment – I just want to get a sharepoint server up and running.

SQL Server 2008 R2

Installing this package: SQLFULL_ia64_ENU of 1.4GB.
This extracts everything inside and takes roughly 2GB of space.
Turns out the IA64 does not work on an x64 system.
So then I tried to download SQL Express 2008 R2 instead, and it’s free and only 250MB!
http://www.microsoft.com/express/Database/

Let’s see how this goes :)
Installing this package: SQLEXPRWT_x64_ENU of 250MB

New installation, accept, chose default settings in regards to directories and what to install, named instance – default settings,  Create an account – I named it SQL – click on browse to select it – format is GULDMYR\SQL. Then you get to specify SQL Server Admins. After that it’s installing. Completed without any hitches. Pathces. Reboot.

SQL Server Management Studio – could not connect.

Uninstalling SQL Server 2008 R2. Selected the R2 x64. That took care of most. ALso ENU and native client I uninstalled. Because in the hardware/software requirements this is mentioned Preparation Tool installs “SQL Server 2008 Express with SP1”

Sharepoint Server 2010

Couldn’t install –  error: “installation of this package failed”
Couldn’t extract the file either – broken download. Re-downloaded.

OK, this extracted.
Now it says that the language is not supported.
Stupid Ukrainian.
Reinstalling Win2k8

Reinstalled win2k8 – chose “install OS later” to get rid of the auto-install.
Also changed RAM to 3GB and disk to 40GB (it doesn’t use space until it’s used).

Now all is in English!

Did not install AD services this time.
Did not configure a second account, doing the install with the Administrator account.

Downloading Sharepoint 2010 Foundation instead of the server version.

Selected “install software pre-requisities”.
This installed lots of stuff successfully. Reboot. Install continues afterwards.
Ran installation file again, chose standalone setup. Completed OK.
Then a wizard runs. Completed.

Opens http://win2k8/ – log on with administrator

And now we got a sharepoint!

Summary

With the Foundation version there are a minimal amount of settings to configure when following the wizards. No choice in terms of storage, sql server, accounts. Just click-click-click!

Total size of the VM after all this is 13.6GB (14 661 324 079 bytes).

  1. Install Windows 2008 R2
  2. Patch it.
  3. Run Sharepoint 2010 Foundation pre-requisities install
  4. Run Sharepoint 2010 Foundation install
  5. Point your web browser to http://localhost or http://servername. OR http://ip (this will work from the host os).

Next post will be about what to do inside sharepoint!