Thursday, May 20, 2010

Developing your bootloader

http://tldp.org/LDP/LGNET/85/mahoney.html

Google group
http://groups.google.ca/group/alt.os.development/topics

Hello world bootloader
http://www.viralpatel.net/taj/tutorial/hello_world_bootloader.php

Wednesday, May 19, 2010

Tun/TAP networking with QEMU

http://people.gnome.org/~markmc/qemu-networking.html

http://people.gnome.org/~markmc/qemu-networking.html

http://compsoc.dur.ac.uk/~djw/qemu.html

http://technology-shettyprasad.blogspot.com/2009/01/qemu-tap-network-setup.html

Saturday, May 15, 2010

Pxe boot installation for Ubuntu

On many blogs on internet it says
"If you have the cd or cd image mounted in /var/www/ubuntu, then you will have material for netboot here: /var/www/ubuntu/install/netboot/"

but that is not the case
That is exactly where the problem is the instead it has a directory named casper where it has initrd and vmlinuz some where I read for this I need a Live CD of Ubuntu
in the install directory I have following only
root@tapas-laptop:/mnt/install# ls
mt86plus README.sbm sbm.bin

Just check the following link I downloaded netboot from Ubuntu Jaunty repositories from here
http://archive.ubuntu.com/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/
they have an image named mini.iso

Finally I found a solution the CDs named alternate have the netboot folder this is what is needed.



TFTp settings on Ubuntu I forgot but had discussed some thing here
http://ubuntuforums.org/showthread.php?t=1331410

I kept in /var/lib/tftpboot the files related to installtion
the TFTP settings for booting via network
Following changes were made to config files


First file
/etc/inted.conf
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
## netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd


Second file
/etc/default/atftp
USE_INETD=true
OPTIONS="--tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /var/lib/tftpboot"


Third file
/etc/default/tftp-hpa

#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"

Fourth file I touched was
/etc/default/xinetd

# Default settings for xinetd. This file is sourced by /bin/sh from
# /etc/init.d/xinetd

# enable xinetd Inetd compat mode
INETD_COMPAT=Yes

# Options to pass to xinetd
#
# -stayalive comes by default : it can be removed if xinetd is expected
# not to start when no service is configured
#
XINETD_OPTS="-stayalive"




Then 5th file
/etc/dhcp3/dhcpd.conf
/etc/dhcpd.conf
ddns-update-style none;
allow booting;
allow bootp;

option domain-name "www.yourdomainhere.com";
#option domain-name-servers ns1.example.org, ns2.example.org;

option domain-name-servers 4.2.2.6;

default-lease-time 600;
max-lease-time 7200;
log-facility local7;


# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

subnet 192.168.1.0 netmask 255.255.255.0 {
}

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.4 192.168.1.250;

option domain-name-servers 4.2.2.6;
option domain-name "internal.example.org";
option routers 192.168.1.250;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
next-server 192.168.1.45;
filename "pxelinux.0";
option domain-name-servers 4.2.2.6;
option domain-name "internal.example.org";
option routers 192.168.1.250;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
next-server 192.168.1.45;
filename "pxelinux.0";



A good article explaining what DHCP entries are
http://www.informit.com/articles/article.aspx?p=370627&seqNum=2

bug in tasksel

https://bugs.launchpad.net/ubuntu/+source/tasksel/+bug/150252
http://www.google.co.in/search?hl=en&safe=off&q=ubutnu+how+to+recover+damaged+desktop+tasksel&aq=f&aqi=&aql=&oq=&gs_rfai=
http://qa.ubuntu.com/reports/ogasawara/jaunty-buglist.html

data recovery linux

Data recovery from Linux
http://www.linux.com/archive/feature/56588

Tuesday, May 11, 2010

Some good links about Xen

Good link for Xen not for beginners
http://www.informit.com/articles/article.aspx?p=1187966

Following was a problem I faced
http://forums.novell.com/novell-product-support-forums/suse-linux-enterprise-server-sles/sles-virtualization/343286-unable-connect-xend.html

http://lists.xensource.com/archives/html/xen-users/2007-10/msg00799.html

Python scripts for Xen
http://wiki.xensource.com/xenwiki/XenIntro#head-4e27782aeef9debb00d812d9041a8e180ca414f0

Ok type
http://unixfoo.blogspot.com/2007/11/managing-xen.html


http://www.kernelthread.com/publications/virtualization/
http://virtualization.info/en/
http://www.linuxjournal.com/article/8812 Linux Clustering 1
http://www.linuxjournal.com/article/8816 Linux Clustering 2

http://vmblog.com/
Linux Virtualization with Xen (Orielly Guide)
http://linuxdevcenter.com/pub/a/linux/2006/01/26/xen.html

Zimbra guide
http://www.scribd.com/doc/24550764/Zimbra-NE-Admin-Guide-6-0-2

http://runningxen.com/resources/index.html

Novells Excellent Guide
http://www.novell.com/documentation/sles10/book_virtualization_xen/?page=/documentation/sles10/book_virtualization_xen/data/cha_xen_virtualization_vhost_setup.html

Tracing system calls with Linux and implementing your system calls xen code documentation

http://www.cyberciti.biz/faq/howto-use-linux-truss-strace-command/

http://linux.die.net/man/1/strace

http://www.mjmwired.net/kernel/Documentation/oops-tracing.txt

http://www.ibm.com/developerworks/linux/library/l-system-calls/index.html

http://tldp.org/HOWTO/html_single/Implement-Sys-Call-Linux-2.6-i386/

Xen code documentation.
http://markmail.org/thread/hycuztz5md375x2y

Monday, May 10, 2010

CentOS DomU on Debian

http://www.grantmcwilliams.com/tech/virtualization/xen-howtos/410-centos-5-virtual-machine-64-bit-installation-on-xen

http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU
Discussion going on here
http://markmail.org/thread/h7rooucvlhnivibd

and here nothing came till now
http://markmail.org/thread/ltl2faagvqdl4coh


Some one mentioned to do it
http://markmail.org/thread/hhdh3ifcxhn22tq4

A relevant thread is
http://markmail.org/thread/cvu56ik7n3kplisw

Another installation method which seems not to give error
http://www.cmdln.org/2008/04/25/xen-installing-centos-5-domu-inside-debian-etch-dom0-with-xen-tools-and-rinse/

xen-create-image --hostname=ocw --size=96GB --swap=2048 Mb --ip=172.21.100.196 --memory=1024 --arch=amd64 --role=udev --force --install-method=rinse --install-source=/root/inscd/
Most probably when you delete an existing VM and create a new with same name LVM shows that it is no more infact that is what is causing problems.So to my surprise change of name had worked.

Problem in configuring VNC
http://www.virtuatopia.com/index.php/Configuring_a_VNC_based_Graphical_Console_for_a_Xen_Paravirtualized_domainU_Guest

http://hub.opensolaris.org/bin/view/Community+Group+xen/setupvnc

http://www.intelligentedu.com/blogs/post/free_computer_books/4241/xen-virtualization-online-book


Now finally we are moving to QEMU vnc thing had failed
http://www.virtuatopia.com/index.php/Building_a_Xen_Guest_Domain_using_Xen-Tools
using QEMU and pygrub etc etc
http://www.virtuatopia.com/index.php/Using_QEMU_Disk_Images_for_Xen_DomainU_Systems

These are snapshots of running QEMU
http://www.flickr.com/photos/48996087@N07/
http://markmail.org/thread/swek2xhvhzeb6sjs

The installation was very slow so I had to finally kill because in 2 hours only 20% of it was installed some one suggested to use kqemu.

This article http://www.debian-administration.org/articles/545
did not worked for me.
Trying this one

http://www.illuminatedvirtual.com/node/14


Some snapshots of all the process.












Finally to be able to boot from QEMU on SSH
I did
qemu-system-x86_64  -hda /dev/virtualization/centos5-disk -hdb
/dev/virtualization/centos5-swap -m 1024 -boot c -net nic -net tap



http://www.open.hr/~dpavlin/debian-amd64.html#ToC4
http://www.weiqigao.com/blog/2007/11/27qemu_the_open_source_virtualizer.html
http://www.debian-administration.org/article/Running_Microsoft_Windows_inside_Debian_qemu

http://snippets.dzone.com/posts/show/689



http://wiki.debian.org/QEMU

http://www.debianhelp.co.uk/qemu.htm

http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-9.10

http://www.novell.com/coolsolutions/feature/14951.html                          
http://how2forge.org/how-to-convert-a-xen-virtual-machine-to-vmware

http://warpedtimes.wordpress.com/2010/01/06/hardware-accelerated-virtualization-with-qemu-and-kvm/ 

http://www.google.co.in/search?hl=en&source=hp&q=vmware+to+xen+converter&aq=0&aqi=g2&aql=&oq=vmware+to+xen+c&gs_rfai= 


http://unixfoo.blogspot.com/2008/12/vmware-to-xen-conversion.html



http://www.novell.com/coolsolutions/feature/14951.html


A strange problem using QEMU



--------------------------------------------------------------------------------------------
I am facing one more problem during the installation.If I press a key
once after some time I see the effect in QEMU screen there is some
delay and after this delay the effect of pressing the key is as if I
have clicked multiple times.Say
I have to enter the gateway address 192.168.1.2
If I press 9 or any of the above digit once
rather than typing
192.
it types
199999999999999999 and then after some time it releases the cursor to
type any thing.
to choose between two menu
---> press cancel
           |
           |
 yes  no
If I choose yes it clicks many times automatically yes and goes back
to previous menu and then comes again to forward menu so back and
forth switching between menus.
Which makes it very difficult to move ahead it has been two hours but
I could not proceed at all with this.
More over the response is coming very slow if pressing any key stroke
from my laptop because of which I have to wait for a long time to get
the response and move to another menu.

I am not using the GUI based installer it is a text based install.If I
use a GUI  it is very very slow and have to wait for a very long time
for the response to come.
For example clicking on License agreement you agree yes
to do so it takes a very long time which it is not taking in text mode
but the above problem of seeing the effect multiple times in an
undesired way and slow response is there.
This is not a consistent situation but occurring at irregular
intervals.This has made my work very slow.
Is there any way to get rid of this?

--------------------------------------------------------------------------------------------
~                                                           
~
Did this with KQEMU
https://help.ubuntu.com/community/WindowsXPUnderQemuHowTo
After all the above experiments failed we finally moved to virsh
http://edin.no-ip.com/content/virt-manager-libvirt-kvm-debian-mini-howto

Now a nonsense blog made my work difficult.Later on problem was resolved.

Sunday, May 9, 2010

Kernel Development

Greg Kroah Hartman on Linux Plumbing
http://video.google.com/videoplay?docid=3385088017824733336#

Screen cast
http://www.youtube.com/watch?v=L2SED6sewRw

http://www.kroah.com/linux/talks/ols_2005_driver_tutorial/
http://www.kroah.com/linux/talks/portable_kernel_code_talk_2001_10_02/
Got both above from here
http://www.kroah.com/linux/

http://www.advancedlinuxprogramming.com/
http://www.codesourcery.com/qmtest

http://www.google.co.in/search?q=codesourcery&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Difference between initrd and initramfs
http://ldn.linuxfoundation.org/article/the-kernel-newbie-corner-initrd-and-initramfs-whats-up-with-that
Some information can be searched here
http://www.linux.com/search/kernel+newbie+corner/%252F?ordering=oldest&searchphrase=exact&limit=20

Saturday, May 8, 2010

some blogs blah blah

Linux Administration books Available for free
http://www.cyberciti.biz/tips/gnulinux-advanced-administration-pdf-book.html
http://www.cyberciti.biz/tips/page/3

http://www.cyberciti.biz/faq/

Linux: Allow SSH Console Login But Not GDM / KDM / X Windows Based Login
http://www.cyberciti.biz/faq/restrict-linux-users-from-gdm-kdm-login-but-allow-ssh/#more-7349

Download of the day: GNU/Linux Advanced Administration PDF Book
http://www.cyberciti.biz/tips/arrrggg-open-source-users-are-pirates.html

NiXcraft PDF
http://www.cyberciti.biz/tips/nixcraft-faq-pdf-collection-now-available-to-all.html

Multiple X sessions
http://www.cyberciti.biz/faq/running-multiple-x-sessions/

UniX Haters book
http://www.cs.washington.edu/homes/weise/uhh-download.html

My name there
http://blog.xen.org/index.php/2010/04/23/xen-org-weekly-newsletter-vol-10-no-16/

http://www.adamsinfo.com/extending-tc-and-iproute2-linux-routing-split-access-multiple-uplinks-multiple-isps-iptables-masquerading/

Teo En Min Xing Blog
How to setup your own Virtual Super Computer
http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/10/video-tutorial-how-to-setup-virtual.html

Open Source project management softwares
http://www.cyberciti.biz/tips/open-source-project-management-software.html


http://www.cyberciti.biz/faq/howto-linux-unix-setup-nginx-ssl-proxy/#more-6960
Grep
http://www.cyberciti.biz/faq/grep-regular-expressions/#more-6486
Limit IPTABLES connection per limit

http://www.cyberciti.biz/tips/nixcraft-faq-pdf-collection-now-available-to-all.html


http://www.cyberciti.biz/faq/iptables-connection-limits-howto/#more-6434

Invert IPTABLES
http://www.cyberciti.biz/faq/iptables-invert-ip-or-protocol-with/#more-6339

http://www.cyberciti.biz/faq/ksh-read-file/#more-5797

Useful for servers
http://www.cyberciti.biz/faq/linux-kernel-etcsysctl-conf-security-hardening/#more-5564

A shell script for IPTABLES see later
http://www.cyberciti.biz/faq/linux-iptables-add-delete-ip-address/#more-5462
Restrict Access to commands
http://www.cyberciti.biz/faq/protect-command-by-configuring-linux-unix-group-permissions/#more-5311


find ~ -name \.\* -exec chmod go-w {} \;
http://www.cyberciti.biz/faq/bsd-macosx-linux-unix-displayall-user-dot-files/#more-5014

hdparm: HDIO_DRIVE_CMD(identify) Failed: Inappropriate Ioctl For Device
http://www.cyberciti.biz/faq/hdiodrive_cmdidentify-failed-inappropriate-ioctl-device/#more-4921

Using Awk for Shell scripts
http://www.cyberciti.biz/faq/bash-scripting-using-awk/#more-4779

Arrrggg: Open Source Users Are Pirates
http://www.cyberciti.biz/tips/arrrggg-open-source-users-are-pirates.html

nixCraft FAQ PDF Collection Now Available To All
http://www.cyberciti.biz/tips/nixcraft-faq-pdf-collection-now-available-to-all.html

Open Source Project Management Softwares
http://www.cyberciti.biz/tips/open-source-project-management-software.html
Comparison of Project Management Softwares
http://en.wikipedia.org/wiki/Comparison_of_project_management_software





Syslog tutorial
http://www.howtoforge.com/syslog-better-logging-tutorial

Perfect Desktop
http://www.howtoforge.com/the-perfect-desktop-ubuntu-10.04-lucid-lynx

WireShark Tutorial
http://www.howtoforge.com/wireshark-remote-capturing
Network Analysis with WireShark
http://www.howtoforge.com/network-analysis-with-wireshark-on-ubuntu-9.10

Firewall Builder
http://www.howtoforge.com/new-features-in-firewall-builder-4.0

Subversioning on Lenny
http://www.howtoforge.com/the-perfect-subversion-server-debian-lenny-ispconfig-3

Load Balancing Cluster on CentOS
http://www.howtoforge.com/efficient-high-available-loadbalanced-cluster-on-centos-5.3-direct-routing-method

Install Multiple Distributions PXE
http://www.howtoforge.com/install-multiple-linux-distributions-via-pxe-the-easy-way

Setting Up a PXE server on Ubuntu
http://www.howtoforge.com/setting-up-a-pxe-install-server-on-ubuntu-9.10

Friday, May 7, 2010

Beowulf Clusters

http://en.wikipedia.org/wiki/Beowulf_%28computing%29

http://www.linuxjournal.com/article/6340?page=0,2

http://en.wikipedia.org/wiki/OpenMPI

http://en.wikipedia.org/wiki/Open_Source_Cluster_Application_Resources

http://en.wikipedia.org/wiki/Cluster_%28computing%29

http://www.linuxvirtualserver.org/docs/scheduling.html

http://en.wikipedia.org/wiki/Linux_Virtual_Server

Xen Virtualization and Linux clustering
http://www.linuxjournal.com/article/8812

Gazab gyan
http://en.wikipedia.org/wiki/Clustered_file_system

http://www.linux-mag.com/id/1501

http://www.ehu.es/AC/ABC.htm

Thursday, May 6, 2010

Grail Geromino imp links

http://marc.info/?l=geronimo-user&m=121074097613835&w=2
http://apache-geronimo.328035.n3.nabble.com/grail-application-deployment-plan-on-geremino-via-command-line-td775678.html#a781851

http://www.ibm.com/developerworks/opensource/library/os-ag-grails/

http://marc.info/?l=geronimo-user&m=125402368616253&w=2

http://marc.info/?l=geronimo-dev&m=122358770909371&w=2

Web based Server controls

http://www.virtualmin.com/

http://blog.thebartels.de/2006/12/11/howto-ajax-based-ssh-client-for-your-debianplesk-setup-ajaxterm/

http://demo.syscp.org/

http://www.gnupanelvps.com/
http://gnupanel.org/archives/category/documentation

http://antony.lesuisse.org/software/ajaxterm/

http://en.wikipedia.org/wiki/Plesk
http://en.wikipedia.org/wiki/Domain_Technologie_Control
http://en.wikipedia.org/wiki/DirectAdmin
http://en.wikipedia.org/wiki/Lxadmin

http://www.google.co.in/search?q=ajax+based+ssh+servers&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

http://en.wikipedia.org/wiki/Web-based_SSH

http://tipotheday.com/2008/01/15/ever-want-your-own-web-based-ssh-terminal/

http://www.bgevolution.com/blog/web-based-ssh-clients/

http://www.bgevolution.com/blog/web-based-ssh-clients/

http://isp-control.net/

Ajax term for remote administration
http://articles.techrepublic.com.com/5100-10878_11-6168000.html
Open SSH login tricks
http://articles.techrepublic.com.com/5100-10878_11-6155832.html?tag=rbxccnbtr1
Reverse SSH tunnels
http://articles.techrepublic.com.com/5100-10878_11-5779944.html?tag=btxcsim

http://www.webos-internals.org/wiki/Ajaxterm

Tuesday, May 4, 2010

Grails apache geronimo some problem in deploying debian

I want to deploy a web application that is made using grails.
By reading documentation I came that has to be converted to a .war format file.
This file has a deployment plan which comes in two XML files.

Right now I failed to deploy the application on the geronimo server.

I went through
https://cwiki.apache.org/GMOxDOC22/creating-deployment-plans-for-web-applications.html
http://java.sun.com/xml/ns/javaee/
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
https://cwiki.apache.org/GMOxDOC22/configuring-resources-in-the-application-scope.html
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
http://java.sun.com/xml/ns/j2ee/
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
https://cwiki.apache.org/GMOxDOC22/configuring-resources-in-the-application-scope.html

Troubleshooting J2EE asset deployment
http://publib.boulder.ibm.com/wasce/V1.0.1.1/en/Tasks/Deploy/Trouble.html

I did read all of the above links but I was not able to created xml
files to deploy them as specified.Upto this point I infer that the
problem is coming from deployment plan.

A solution that after came to mind to is create the website
using an IDE like Eclipse on a laptop or so and then that IDE will
take care of deployment plan which may have errors that I am right now
not able to find.

Then that application can be deployed on the server.Since I do not
have a GUI on server so it is not possible right now to do that way on
server.

Here is a link to what I am saying.
http://www.ibm.com/developerworks/opensource/library/os-gerplug/index.html


Since the helloworld script war running successfully on grails server
so it comes to either the way deployment is done or the deployment
plan that refers to XML files.



using windows to deploy .war files
http://www.ibm.com/developerworks/opensource/library/os-gerplug/index.html
https://cwiki.apache.org/GMOxDOC11/quick-start-apache-geronimo-for-the-impatient.html

Check if some thing goes wrong
http://publib.boulder.ibm.com/wasce/V1.0.1.1/en/Tasks/Deploy/Trouble.html


Creating a deployment plan for web applications
https://cwiki.apache.org/GMOxDOC22/creating-deployment-plans-for-web-applications.html

IBM technical library
http://www.ibm.com/developerworks/views/opensource/library.jsp
also this one
http://www.ibm.com/developerworks/views/opensource/libraryview.jsp?topic_by=All+topics+and+related+products&sort_order=asc&lcl_sort_order=desc&search_by=apache&search_flag=true&type_by=Articles&show_abstract=true&start_no=1&sort_by=Title&end_no=100&show_all=false&S_TACT=105AGX44&S_CMP=GRNMO


Apache Geronimo on Grails
http://www.ibm.com/developerworks/opensource/library/os-ag-grails/




Geronimo deployment using Eclipse
http://www.ibm.com/developerworks/opensource/library/os-gerplug/index.html









Some relevant links for GRAILs

Tutorial from IBM about Grails
https://www.ibm.com/developerworks/java/library/j-grails01158/

http://code.google.com/p/derjanandhisblog/wiki/GWTGrailsTutorial


Grails1 tutorial
http://www.cavneb.com/media/Introduction%20to%20Grails%20-%20Part%201/Introduction%20to%20Grails%20-%20Part%201.m4v


Grails 2 tutorials


http://www.teachmetocode.com/screencasts/introduction-to-grails-part-2




Grails
http://www.grails.org/Checking+Projects+into+SVN


Creating an Admin using Nested Controllers
http://www.cavneb.com/media/Creating%20an%20Admin%20using%20Nested%20Controllers/Creating%20an%20Admin%20using%20Nested%20Controllers.m4v

Debian help to install Java
http://www.debianhelp.co.uk/debianjava.htm

http://grails.org/doc/latest/

http://www.grails.org/XML%20RPC%20plugin

Websites that run Grails

http://www.splendicon.net/app/

http://www.opensymbolic.org/

http://www.gfunkmedia.com/gfunkmedia/

http://www.voyij.com/

http://crm.draftsoft.pl/login/auth;jsessionid=67F5EAF0A52072F96007AECA75396A0C

Login sample
https://www.centrastage.net/csm/login/index;jsessionid=7FF929DC7F1495C094DE42402A299D3B


Grails tutorials
http://www.springbyexample.org/examples/simple-spring-jms.html

http://www.ibm.com/developerworks/java/library/j-grails01158/

Difference between geronimo and tomcat
https://cwiki.apache.org/GMOxKB/both-geronimo-and-tomcat-are-created-by-apache-what-is-the-difference-between-these-projects.html




Deployment plan for xml files

https://cwiki.apache.org/GMOxDOC22/creating-deployment-plans-for-web-applications.html
http://java.sun.com/xml/ns/javaee/
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
https://cwiki.apache.org/GMOxDOC22/configuring-resources-in-the-application-scope.html
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
http://java.sun.com/xml/ns/j2ee/
http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1
https://cwiki.apache.org/GMOxDOC22/configuring-resources-in-the-application-scope.html