Sunday, May 18, 2008

Dag Wieers view on Mark's pledge for synchronized release

Read it here: http://dag.wieers.com/blog/ubuntus-need-to-catch-a-wave

So Mark's article is wishful thinking and hoping to ride the wave that Red Hat (and Novell) are funding. If he can use that same kernel, with the same backports, fixes and regressions tests, Ubuntu LTS does not need to do anything to support the same vendor hardware. Easy, but at the expense of both Novell and Red Hat.

That explains why Mark wants 2 out of 3 Enterprise Linux distributions to enter his circle. I could imagine Novell and Mandrake joining forces to align the release cycle to try and take on Red Hat's 80% Enterprise Linux market share (sales, not necessarily install-base). There is hardly any benefit in Mark's proposal for Red Hat.

Graphical memory usage map using gmemusage

I am a heavy multitasker. I run a lots of apps at once.. sometimes to the point where this dual screen 22" + 14" setup still feels like I need more screen. However, screen space is not the primary problem, but RAM/Swap utilization instead. Its not unusual for me to have 95%+ RAM 90%+ swap (on a 1.2GB RAM with 1.2GB swap machine) utilization with all the apps I ran and freeing the RAM is kindof a tricky task.

I usually use ps and top to detect apps that consume a lot of RAM and stop them. However, the values shown on the commands are hard to be quickly identified due to the scheme of Virtual, Shared, Resident, Swap does not show the values on how I would expect it to be.

So I went googling and I found out about a very ancient tool ported from SGI IRIX called gmemusage. It shows a graphical representation of the memory consumption by apps running on the system in a quite useful display.



Now I can efficiently find apps that uses lots of memory and free up my RAM without resorting to a reboot.

Yum search gmemusage yielded no result. So, a new package review sent #447080

Saturday, May 17, 2008

Fedora LiveUSB creation on Windows platform

A great article about Luke Macken's LiveUSB-Creator on Lifehacker: http://lifehacker.com/391067/fedora-9-puts-your-desktop-on-a-usb-drive.

Want source? : https://fedorahosted.org/liveusb-creator/

The implementation in theory might be possible to create a Wubi-like installer for Fedora. Perhaps it will be possible some time in the future with this.

Digg it!: http://digg.com/linux_unix/Linux_On_A_Stick_Fedora_9_Puts_Your_Desktop_on_a_USB_Drive

When Ubuntu tries to be Fedora

They struggled trying to keep the betas in control. Inclusion of too new , latest technologies caused breakage and other problems to Ubuntu 8.04 Hardy Heron.

Harald Hoyer wrote a good comment out of the responses to Mark Shuttleworth's post about synchronizing distro releases.

Ubuntu should stay as they are. Its a good distro for me to recommend for those users who just want a JustWorks machine with no interest to contribute to FOSS world. Fedora development is admittedly way too fast for those type of users to bother. If Ubuntu tries to follow Fedora rapidness, that won't solve anything (except, maybe, open a way for grabbing the Fedora contributor/userbase to the Ubuntu side). Ubuntu has been a good player in trying to solve their bug #1. So, keep it that way. The Fedora path is too hostile for Ubuntu current target market.

Stickers ~

Thanks Nicu Buculei for the great Fedora Sticker Kit

To MyOSS'ers, I just printed the stickers for giveaway. 23 in total.



I'll bring them along on the next MyOSS Meetup (whenever that will be).

Instant noodles + Miso + some stuff from freezer = yum3

Something off-topic once a while.

Went experimenting with the microwave oven just now, wondering if I can make something more tasty than a plain instant noodle. Went through the freezer and thrown in some stuff, and it turned out great!.

Maybe someone want to try it out, here's the recipe.


1 packet Instant Noodle (curry flavour)
1 frozen crab stick
some frozen vegetables (just pick how much u like, I simply grab once and throw)
some miso paste (2 tablespoon or so)
some margarine (1/2 teaspoon or so)
water

Boil water and put it into a microwave safe bowl. Take out the frozen stuff from the freezer, wash it and throw them into the hot water. Throw in the miso paste and margarine too. Open up the instant noodle, and put the soup stock into the bowl.

Put the bowl into the microwave oven, and heat it up until its boiling for 30seconds or so. Stir. Put in the noodle, restart microwave for 2 minutes. Eat :P.


The miso paste gave some nice texture and improved the taste of the soup. The margarine for some oily taste. The vege and crab stick are simply some garnish.

Off to enjoy da late-night menu~ :D~ :D~

Thursday, May 15, 2008

Complementary Repository CD ISO for "Sulphur" i686 LiveCD

I've been wanting to do this, several times since F7 but kept forgetting due to occupied with stuff. I have put together a complementary ISO containing a repository containing some Livna packages, OpenOffice, and a bunch of stuff which I guess might be useful to users. It is generated using the i686 LiveCD as the root for dependency checks, so, its dependency compatible with the official i686 LiveCD. I'm not sure how beneficial this ISO will be. But I guess it can help our users who does not have big bandwidth to grab certain stuff. Also helps for people who want a kindof-complete desktop environment without being online to grab from stuff from the repos.

Here's the torrent
- SulphurComplementary-i386-20080515.iso.torrent.
I'm the only one seeding it, so, seeding help is really appreciated.


===================================
"Sulphur" LiveCD Complementary ISO
===================================

Introduction
-----------------

''What is this CD?''

Nothing much than just a complementary repository for
the Fedora 9 "Sulphur" LiveCD. It contains several
additional packages which complements the LiveCD
packages, which includes stuff from Livna/RPMFusion.
Therefore, this is _NOT_ US Legal safe.

Using it
---------

It was best to use this with system-cdinstall-helper.
However, the replace of Pirut with PackageKit removed
that tool altogether.

Theres several ways to use this:

0) mount this ISO somewhere. eg: /mnt/sulphur-complementary

1) Use yum-tmprepo. (prefered)
- Theres an rpm called yum-tmprepo in the packages folder
- Install it using:

rpm -ivh yum-tmprepo\*

- Use yum with --tmprepo parameter to yum from this CD

yum --tmprepo=/mnt/sulphur-complementary/ install

2) Add as a repository (works with GUI tools)
- create a config in /etc/yum.repos.d/sulphur-complementary.repo
with this content:

[sulphur-complementary]
name=Sulphur complementary CD
baseurl=file:///mnt/sulphur-complementary/
gpgcheck=0
enabled=0

- use as usual like you would with normal repositories

3) Just install everything in one blow

- If you are lazy and want everything:

cd /mnt/sulphur-complementary/packages
rpm -ivh *.rpm


====================
Have Fun ~ (^-^)
====================


If you want to generate something similar like this ISO on your own, here's the trick:

-> Grab a fedora installation
-> copy our its /var/lib/rpm directory
-> put it in a computer which have internet
-> create an temporary dir
-> paste /var/lib/rpm dir to tmpdir/var/lib/rom
-> yumdownloader --installroot=/full/path/to/tmpdir/ --resolve packageA packageB packageC ...
-> createrepo -d .

and u basically get this a dir with a bunch of rpms for a repo. Maybe case some of you might have noticed, I got this trick from Debarashi's OPYUM's prototype. Have been playing with this trick quite some time as I found it useful to help gather new users in the restrictive/bad service network of my university.


P/S: One of the stuff that I wish F10 will have is the revival of the Add-on CD section on Anaconda/Firstboot. So that more of this produced in the future ^-^.

Update: Urgh .. this is what happen when I do stuff on 2AM .. Those who downloaded the torrent before, please redownload the torrent .. I put a wrong tracker URL .. Or, you can also change it yourself to http://tracker.prq.to/announce ..

Wednesday, May 14, 2008

Its out!! Its out!!!! Fedora 9 "Sulphur" Is OUT!!!!!!!!!!



With this announcement, its now official!!!. Fedora 9 "Sulphur" has been released!!!

The Release Summary describes very well on whats the latest and greatest OSS technologies offered by this release of Fedora.

Grab it NOW while its still hot!. However, for those who have fallen slave to the proprietary NVidia/ATi drivers, grab it now only if you are brave - because your vendor could not catch up with the latest and greatest of OSS.

With Fedora 9 released, Fedora 10 have started rolling, and the cycle of innovation and creation begins again!.

For those who are upgrading from Fedora 7 or Fedora 8, give PreUpgrade a try!. It allows an almost-live upgrade from your old Fedora release to Fedora 9!!. RPMs for preupgrade with F9 listed as an option are available / pointed here.

Congratulations and kudos to all Fedora Contributors. Have fun and keep hacking!!!! (^-^)

Tuesday, May 13, 2008

Hooray to Fedora 9!

Paul W. Frields, the Fedora Project leader's words on Fedora 9 release:
https://www.redhat.com/archives/fedora-announce-list/2008-May/msg00006.html


LiveUSB, PackageKit, PolicyKit, FreeIPA, easy partition resizing, one-click encryption, RandR support and a faster X, TeXLive, Firefox 3, GVFS, ext4, GCC 4.3, and so much more.... There are far too many improvements to list them all, but certainly even to the naked eye there are worlds of difference between our present and our past -- and the change is overwhelmingly for the better! Go check out the full list at http://fedoraproject.org/wiki/Releases/9/FeatureList on the wiki.

All of this work is done with our constant, unwavering commitment to upstream -- making sure that the Fedora Project always donates back to the source from which we draw. When we find opportunities for improvement, we share that with our upstream contributors to make sure that all open source participants benefit.

By being good citizens of the free and open source software community, we ensure the health and progression of thousands of projects that make the Fedora distribution a vehicle for advancing freedom. You can read more about this philosophy at http://fedoraproject.org/wiki/PackageMaintainers/WhyUpstream on the Fedora wiki.

And always, we continue to use our own work for everything we do. We push the improvements and results out as 100% free and open source, available for everyone to use, poke, prod, and build upon.

That's why Fedora is so much more than a Linux distribution. It's a mindset -- "Doing The Right Thing," as we like to say. Giving credit where credit is due, and working hand-in-hand with others, but not being afraid to stand apart when doing otherwise means sacrificing hard-won ground.

But most importantly, Fedora is a community, where people come together for a common good -- making it possible for every human being, everywhere to have the same access to information, communication, standards, and knowledge.


A great speech indeed. Hooray to Fedora9!! Kudos to all Fedora contributors!! To rawhide addicts, Fedora 10 rawhide will be branched soon!.

Want to be a part of this great community of Fedora Project? Join Us Now!!

Exporting Plone3.0 Memberdata and Passwords

I need to export plone accounts from Inigo Intranet to LDAP. To accomplish that, first I need some way to export the data I need. Plone itself does not have such tool for it (that I know of).

Not so long ago, Kaeru pointed me to a zope script for such purpose, however, the script fails to extract passwords from Plone3.0 mainly due to passwords are now managed by the PluggableAuthService - which made getPassword() to return None and _getPassword() to raise NotImplementedError. I don't know whether somebody forgot to implement those functions into PAS or it was purposely done. Googling lead me to this page in plone.org and from there, to this other script. Again, none of them able to extract the password hashes. I lost hope with google, and to the source I went.

After a whole night digging through the plone source, at last, I managed to found the method to extract the hash. So, heres the External Script which I wrote to extract stuff I want.


# Memberdata export script for Plone 3.0
#
# based on:
# http://transcyberia.info/archives/23-howto-sync-mailman-from-plone.html
# http://www.zopelabs.com/cookbook/1140753093
# http://plone.org/documentation/how-to/export-member-data-to-csv
#
# desc:
# None of the scripts above can extract password hashes on Plone3.0,
# BUT THIS ONE CAN!!!
#
# Execute this as normal External Script, and DON'T make it public accessible
# (unless you don't mind people having your hashes). You have been warned.
# Have fun (^,^)
#


from StringIO import StringIO
import csv
import time

def getMembersCSV(self):

request = self.REQUEST
text = StringIO()
writer = csv.writer(text)

# core properties (username/password)
core_properties = ['member_id','password']

# extra portal_memberdata properties
extra_properties = ['fullname',
'email',
'location',
'home_page',
'description']

properties = core_properties + extra_properties

writer.writerow(properties)

membership=self.portal_membership
passwdlist=self.acl_users.source_users._user_passwords

for memberId in membership.listMemberIds():
row = []
for property in properties:
if property == 'member_id':
row.append(memberId)
elif property == 'password':
row.append(passwdlist[memberId])
else:
member = membership.getMemberById(memberId)
row.append(member.getProperty(property))

writer.writerow(row)


request.RESPONSE.setHeader('Content-Type','application/csv')
request.RESPONSE.setHeader('Content-Length',len(text.getvalue()))
request.RESPONSE.setHeader('Content-Disposition',
'inline;filename=members-%s.csv' %
time.strftime("%Y%m%d-%H%M%S",time.localtime()))

return text.getvalue()


Have fun (^.^)

Sunday, May 11, 2008

F9 Leaked ISOs ?

meng in #fedora-my pointed me that there are several torrents which claims to be Fedora9 "Sulphur" Final ISO in several torrent sites. While I don't know how legit they are - and didn't bother to download since I've been on F9 since alpha, but here is a little warning for those who couldn't be patience and wait for official release.

Until the official SHA1/MD5 sums for those ISO is officially released in FedoraProject.Org, its validity and security is doubted. It is possible for some people with malicious intent to inject a rootkit into that ISO, and make themselves able to take over your computer and data. It is not that hard to spin a rootkit'ed ISO considering revisor and friends are rather easy to use. If I remember correctly, it have happened before with a Fedora release and was mentioned somewhere.

You have been warned, so, if you still couldn't wait for 3 days more, go ahead and search for the torrents and have fun cleaning up stuff if you got rootkit'ed (^-^).

Saturday, May 10, 2008

My Life (too) ..

Saw this in Planet MyOSS today. Hey!! Its my life too!!!.

Sunday, May 04, 2008

Prism 0.9.0 Static RPM SPEC

Call me impatient of whatever. I've been wanting to use Mozilla Prism. It is not yet packaged in Fedora so I tried my luck to package it properly for Fedora. However, I totally have no idea how Mozilla buildsystem work and how to compile Prism's trunk on Fedora. Trying to follow the Creating XULRunner Apps with the Mozilla Build System lead me nowhere. I got stuck trying to find what package provide the buildsystem and the "client.mk" file, but I given up due to I totally have no clue. In the end, I ended up packaging the official binary tarball released by upstream and make it installed in /opt.

Here is the specfile for those interested to use prism on Fedora: http://izhar.fedorapeople.org/static-specs/prism_static.spec

Like the Static OSS Skype SPEC I made before, just download the corresponding source and invoke rpmbuild with the spec. For those who are not familiar with rpmbuild, the shell commands below will help you


# as root
yum install rpmdevtools

# as user
rpmdev-setuptree
cd ~/rpmbuild/SPEC
wget http://izhar.fedorapeople.org/static-specs/prism_static.spec
spectool -R -g -A prism_static.spec
rpmbuild -bb prism_static.spec

# ... wait ... wait ... wait
# grab the generated RPM
# rpm -ivh (the generated rpm)
# enjoy~

Saturday, May 03, 2008

Anxiety strikes

Sulphur release is getting very near. With all the improvements on F9, somehow, it made me very anxious imagining how RHEL6/CentOS6 would be. With all the improvements Fedora have brought in since Fedora 6, I can only imagine that RHEL6/CentOS6 would be a great distro to recommend for people who don't want to upgrade their distro every half or full year.

With all the device support, the EPEL repository, the giant improvements on yum, PackageKit, FreeIPA, new Xorg, and lots of goodness of a desktop distro, if all these made it into RHEL6/CentOS6, I am nothing but very happy and excited.

RH is abandoning the desktop?. So what?. They let the desktop world move on its own, freely, and Fedora _is_ that desktop. What got in Fedora, got into RHEL too. With CentOS set loose on the internet, high quality Free (both philosophy and price) environment is not that far away from reach. ^-^.