Friday, May 23, 2008
1. Download Thunderbird 2 from Mozilla (http://www.mozilla.com/en-US/thunderbird/) or other mirros like (http://mirror.oscc.org.my/mozilla/thunderbird/). I downloaded thunderbird-22.214.171.124.tar.gz to the directory /tmp.
2. Extract the files
3. Open a terminal and login as root to thee directory /opt
4. Copy the extracted forlders to /opt
cp -rf /tmp/thunderbird /opt
5. Install the older library of libstdc++.so.5 (5.1 comes with version libstdc++.so.6)
yum install compat-libstdc++-33.i386
6. Test the Thunderbird as a normal user
7. Copy the icons to the user wide pixmap
cp thunderbird/icons/mozicon*.xpm /usr/share/pixmaps/
8. When Thunderbird starts, it complains about the mode for /var/spool/mail, as it cannot write to this folder. As root do the following
chmod 01777 /var/spool/mail
Add the application launcher in the panel/menu using the mozicon icon. Only things left is to install other plugins. My first plugins are always the Calendar (lightning) and birthday.
Wednesday, May 21, 2008
Tested with CentOS 5.1.
# tcpdump -i eth0 tcp port 80
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
10:16:41.172405 IP 10.20.20.164.36273 > 10.20.20.232.http: S 1619435837:1619435837(0) win 5840
10:16:41.172433 IP 10.20.20.232.http > 10.20.20.164.36273: S 553643372:553643372(0) ack 1619435838 win 5792
10:16:41.172683 IP 10.20.20.164.36273 > 10.20.20.232.http: . ack 1 win 92
10:16:41.172932 IP 10.20.20.164.36273 > 10.20.20.232.http: P 1:445(444) ack 1 win 92
10:16:41.172951 IP 10.20.20.232.http > 10.20.20.164.36273: . ack 445 win 54
10:16:41.174744 IP 10.20.20.232.http > 10.20.20.164.36273: P 1:208(207) ack 445 win 54
10:16:41.174832 IP 10.20.20.232.http > 10.20.20.164.36273: F 208:208(0) ack 445 win 54
10:16:41.174996 IP 10.20.20.164.36273 > 10.20.20.232.http: . ack 208 win 108
10:16:41.177857 IP 10.20.20.164.36273 > 10.20.20.232.http: F 445:445(0) ack 209 win 108
10:16:41.177866 IP 10.20.20.232.http > 10.20.20.164.36273: . ack 446 win 54
Using Tcptrack (GUI)
# tcptrack -i eth0 port 80
# tshark tcp port 80
Running as user "root" and group "root". This could be dangerous.
Capturing on eth0
0.000000 10.20.20.164 -> 10.20.20.232 TCP 46538 > http [SYN] Seq=0 Win=5840 Len=0 MSS=1460 TSV=1461217 TSER=0 WS=6
0.000027 10.20.20.232 -> 10.20.20.164 TCP http > 46538 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 TSV=609213593 TSER=1461217 WS=7
0.000279 10.20.20.164 -> 10.20.20.232 TCP 46538 > http [ACK] Seq=1 Ack=1 Win=5888 Len=0 TSV=1461217 TSER=609213593
0.000285 10.20.20.164 -> 10.20.20.232 HTTP GET / HTTP/1.1
0.000305 10.20.20.232 -> 10.20.20.164 TCP http > 46538 [ACK] Seq=1 Ack=445 Win=6912 Len=0 TSV=609213594 TSER=1461217
0.001955 10.20.20.232 -> 10.20.20.164 HTTP HTTP/1.1 200 OK (text/html)
0.002056 10.20.20.232 -> 10.20.20.164 TCP http > 46538 [FIN, ACK] Seq=208 Ack=445 Win=6912 Len=0 TSV=609213595 TSER=1461217
0.002212 10.20.20.164 -> 10.20.20.232 TCP 46538 > http [ACK] Seq=445 Ack=208 Win=6912 Len=0 TSV=1461218 TSER=609213595
0.002593 10.20.20.164 -> 10.20.20.232 TCP 46538 > http [FIN, ACK] Seq=445 Ack=209 Win=6912 Len=0 TSV=1461218 TSER=609213595
0.002601 10.20.20.232 -> 10.20.20.164 TCP http > 46538 [ACK] Seq=209 Ack=446 Win=6912 Len=0 TSV=609213596 TSER=1461218
For ports that are being used but is receiving data, the data can be displayed using nc.
#nc -l 80
GET / HTTP/1.1
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:126.96.36.199) Gecko/20080418 Ubuntu/7.10 (gutsy) Firefox/188.8.131.52
Using ngrep (from dag repo)
# ngrep -q -t -d any port 80
filter: (ip) and ( port 80 )
T 2008/05/21 18:26:53.772736 10.20.20.164:49392 -> 10.20.20.232:80 [AP]
GET / HTTP/1.1..Host: 10.20.20.232..User-Agent: Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:184.108.40.206) Gecko/20080418 Ubuntu/7.10 (gutsy) Firefox/2.0.0.
pt-Encoding: gzip,deflate..Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7..
Keep-Alive: 300..Connection: keep-alive..Cookie: Cacti=s5kjjkt79vg5kq17kf86
T 2008/05/21 18:26:53.774644 10.20.20.232:80 -> 10.20.20.164:49392 [AP]
HTTP/1.1 200 OK..Date: Wed, 21 May 2008 10:26:53 GMT..Server: Apache/2.2.3
(CentOS)..X-Powered-By: PHP/5.1.6..Content-Length: 16..Connection: close..C
ontent-Type: text/html; charset=UTF-8....
And the netstat
- List all open ports
$ sudo netstat -lpAinet
- List users of a specific port. Example port 443
$ sudo fuser -v 443/tcp
Monday, May 19, 2008
- Which Linux should I use?
- Why isnt there a policy for a single Linux distro?
An article from Linux.com mentioned about the comings of Linux Standard Base (LSB) Desktop Project. What does this mean? Anyone can choose their own Linux desktop and still work with others in the same environment.
In 2008, we have LSB 3.2 that allows portable applications among the Linux distributions.
As a guide to which Linux distribution, refer to only those found at https://www.linux-foundation.org/lsb-cert/productdir.php?by_lsb
Following is a list of those already LSB certified. Try to look out for the LSB Certified trademark.
- LSB 3.1
- RHEL 5
- SUSE Linux Enterprise 5
- Ubuntu 6.06
- Bitmap images - uses PNG
- Compressed photo - uses JPEG
- Fonts - uses Freetype2 (2.1.10)
- Cryptographic - OpenSSL
- X graphics renderer - uses X version 11 release 6.4
- Desktop menu directory - uses Desktop Menu specification 1.0
- Executable and Linking Format and part of ISO/IEC 23360
- Required user and group names include root, bin and daemon
- Software installation is in RPM or LSB conforming installer
On 26th Feb 08, Sun Microsystems acquired MySQL AB for USD$1 Billion. Sun Microsystems gave the world OpenOffice.org and kept for itself Star Office. Will this model be the same for MySQL? Going to Sun's website, MySQL can now be seen as one of its enterprise solution product. At MySQL, the logo of Sun can be seen in its banner (merged with MySQL logo).
Some question come to mind after reading all this news and Monty Widenius presentation.
- Will the developers of MySQL around the world continue with the main stream development?
- Will Sun create closed source extensions, like it does for the other Sun products?
- Will there be more value for the community in the acquisition?
- Can MySQL start accepting more outside contribution instead of relying on MySQL AB developers? Currently it is very limited on how users can contribute to the code base.
Tuesday, May 13, 2008
In the ~/dcs directory issue the command and download Twisted
svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk Twisted
What is Twisted?
Examples of programs which were written using the Twisted framework are twisted.web (a web server), twisted.mail (a mail server, supporting both SMTP and POP3, as well as relaying), twisted.words (a chat application supporting integration between a variety of IM protocols, like IRC, AOL Instant Messenger's TOC and Perspective Broker, a remote-object protocol native to Twisted), im (an instant messenger which connects to twisted.words) and faucet (a GUI client for the twisted.reality interactive-fiction framework). Twisted can be useful for any network or GUI application written in Python.
Continue with the Calendar Server scripts
Test this with a web browser pointing to the server with port 8008.
Example URL location http://10.20.20.205:8008/calendars/
Based on the link http://firstname.lastname@example.org/msg00195/LinuxBuildAndRun-DarwinCalendarServer
Here are my steps:
1. Connect to the CentOS server as user nicholas
2. create the working folder ~/dcs
3. Ensure subversion is installed. Get the svn for Calendar Server
svn checkout http://svn.macosforge.org/repository/calendarserver/CalendarServer/trunk CalendarServer8. Trouble was encountered to download several subversion packages. Therefore I have to download and extract them manually.
4. Install python-kerberos and python-devel
su -c "yum install python-kerberos python-devel"
5. Setup the disk to use extended filesystem
su -c "vi /etc/fstab"
Edit the options to include user_xattr in the filesystem that will hold the calendar.
/dev/hdb1 /mnt/data ext3 user,rw,user_xattr 0 2
6. Add a directory to put dcs data :
su -c "mkdir /mnt/data/dcs-data"
su -c "chown nicholas:nicholas /mnt/data/dcs-data/"
In DCS source directory, copy and edit the developement config file:
cp ./conf/caldavd-test.plist ./conf/caldavd-dev.plist
Look for the string element specifying where to put data :
And change it to point to a directory of your XATTR mounting point :
7. Run the CalendarServer scripts. This will download and place the required scripts at same level as dcs directory.
tar xzvf ez_setup.tar.gz
I am stuck at the following...so will wait till i can find out why I cant download the Twisted.
svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk Twisted
Monday, May 12, 2008
The Thunderbird 220.127.116.11 email client on Ubuntu 7.10 took some getting use to. Today something had to happen. The IMAP server returned an error on my Thunderbird (email client) with the following Alert popup.
Something must have changed at the mail server over the weekend. Using the Web client, things were all fine, so this may be a Thunderbird and IMAP setting problem. At the client side, do the following to clear it. Originally I had the value 5 for the number of cached connections.
Step 1: Open Thunderbird. Choose Edit ->Account Settings
Step 2: Identify which account having the IMAP Alert problem and choose Server Settings and click on Advanced.
Step 3: In Maximum number of connections to cache from 5 to four. If this value does not work, keep reducing by one.
Step 4: Click OK. A second time OK to accept the changes.
Step 5: Restart Thunderbird to ensure things are reset. However, it still did work without restarting.
The "This body part will be downloaded on demand." message.
When the body of an email says "This body part will be downloaded on demand." and the attachments seem corrupted you cant access the Email.
Possibility 1: You are in offline mode and the downloads have been restricted.
Ensure the View -> Display Attachments Inline is checked.
Possibility 2: The message headers go messed up.
Rebuild the specific folder index table. Rebuilding the .msf file for that folder. Right click on the folder, select properties, general information and then press the "Rebuild Index" button. If that doesn't recover all of the messages its probably due to your folder being corrupted.
For details of the OOoCon 2008 programmes, you will have to wait till Aug 08. However, papers can be submitted now at cfp2008. This is a first for Asia and I am looking forward to seeing the OOo future in Asia apart from the OOo technical development.
Malaysian government agencies have been moving towards OOo actively the last one year. It will be good if a government representative can be there to share on their experiences. This should raise awareness and adoption of OOo in Malaysia and the surrounding region.
Friday, May 9, 2008
For those who have been migrating from MS Office to OpenOffice.org (OOo), here is an upgrade that will reduce formatting problems in older MS Office documents.
OpenOffice.org 2.4 adds support for Access 2007 (.accdb) and improves the "find and replace" feature in OOo Writer. The 2.4 may be the last of the 2.x series and next is the 3.x version by end of 2008. I wont go into the debate of weather one should wait for 3.x or not.
Introducing new keyboard shortcuts and the ability to print hidden and place-holder text is going to allow more areas for power users to explore. Keyboard shortcut improvement includes the Ctrl+0 for Text body, Ctrl+1 to Ctrl+5 for the Heading 1 to 5. Ctrl+Shift+0 changes to default.
PDF handling benefits from new export options. This includes ability to use slide names as bookmarks.
OOo promises Impress to allow 3D transition effects in its extensions. Ok, I cant find any extensions for this but I am looking forward to it. Initially this 3D feature will be only available on Linux.
Printing of hidden text in Writer is useful to find all those things that we have been controlling the layout. To do this in OOo 2.4 choose Tools ->Options ->Writer ->Print. Then select Hidden Text.
Displaying OOo version
To display the installed version of the OpenOffice.org along with its build and patches, look at the file versionrc.
OpenOffice.org from the main stream is installed in /opt directory. The file can be found in /opt/openoffice.org2.4/program/versionrc
Here is the content of versionrc
UpdateUserAgent=OpenOffice.org 2.4 (680m17(Build:9310); $_OS; $_ARCH; BundledLanguages=en-US)
Sunday, May 4, 2008
Have been trying OOo 2.4 on Ubuntu 7.10, CentOS 5.1 and MS Win XP. The standard features have been consistent with OOo 2.3 but with faster access to previews and reduced lagging of screen updates in animation. Oh, nested table problems have been reduced. Can't wait to see what other improvements there are.
Learning something new each day!
In the OOo gallery, the TAB key can be used to access the different functions. Other interesting keyboard short cuts include
- Ctrl+Shift+Insert is to create a link to the clipart
- Ctrl+i is to insert the clipart into the document
The template is usually installed as a normal user, therefore the gallery goes into the user's home directory.
In Ubuntu 7.10, this will be in the directory
One problem with this template is that the Photos section does appear in the correct folders and can be previewed in gallery. For example, try double-clicking any of the photos, and a blank is shown. Double click on the blank space again, the preview appears again. This means that it can be previewed but it cannot be dragged into any OOo document.
One solution is to do the following.
- Amend each Photo that you want to view. For example to view Photo - fauna.
- In the Gallery view, Right click "Photo - Fauna" and choose Properties.
- Select Files tab. Click "Find Files"
- Choose gallery/clipart/fauna/Photos/Fauna
- Click "Add All" -> "Ok"
- Right click "Photo - Fauna" and choose "Update".
- ► 2018 (20)
- ► 2017 (20)
- ► 2016 (24)
- ► 2015 (34)
- ► 2014 (24)
- ► 2013 (30)
- ► 2010 (29)
- ► 2009 (54)
- Thunderbird on CentOS 5.1
- Using linux to view network traffic on a port
- How many Linux do I need?
- Will OSS such as MySQL still be free?
- Installing Calendar Server on CentOS - part 2
- Installing Calendar Server on CentOS - part I
- Thunderbird Troubleshooting
- OpenOffice.org Annual Conference (OOoCon 2008)
- First glimpse of OOo 2.4
- OpenOffice.org 2.4 working fine
- OOOP-accessories template problem with Photos
- ▼ May (11)