Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

How to Generate graph of IOZone output

Output of  the command
iozone -a -+u -g 2G -b file-au2g.ods

provides benchmark on the filesystem(ext4) which includes various reports namely
writer report
re-writer report
reader report and others
This (howto)graph is generated for only writer report

a Data range used
b select insert chart

In the chart wizard, selected line(c) and line type-> smooth(d)(its your choice what kind of chart you want)

Select e to define the data range

Select the data range f which gets reflected in g

Graph takes its form

No need to fiddle with data ranges and data series

Enter the title, x axis and y axis label

The final output



**Image edited with pinta

Without consensus..

yesterday as I was carrying out my mundane task with my wa3002g4 - regular disconnection issue still persisting - but with all that and no program accessing the network the wlan indicator was blinking as in being accessed and with the firewire it was evident that the network was being used without my consensus and now was very eager to find which program was accessing the network so with little search, the very regular form of suggestion - netstat/tcpdump/wireshark was propping up so with the tcpdump found that the
ec2-184-73-194-227.compute-1.amazonaws.com.www
was accessing my box without permission. but even before checking which was the process that was doing it. It stopped - later on found that it was the amazon site doing its job - but how could they do that with no consensus.

The output of tcpdump

ranjit@dell-laptop:~$ sudo tcpdump -i ath0
[sudo] password for ranjit:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ath0, link-type EN10MB (Ethernet), capture size 96 bytes
21:53:31.197831 IP 192.168.1.2.50074 > resolver2.opendns.com.domain: 38512+ TXT? current.cvd.clamav.net. (40)
21:53:31.214828 IP 192.168.1.2.38499 > resolver2.opendns.com.domain: 29628+ PTR? 220.220.67.208.in-addr.arpa. (45)
21:53:31.786371 IP resolver2.opendns.com.domain > 192.168.1.2.50074: 38512 1/0/0 TXT[|domain]
21:53:31.828202 IP resolver2.opendns.com.domain > 192.168.1.2.38499: 29628 1/0/0 (80)
21:53:31.828568 IP 192.168.1.2.56419 > resolver2.opendns.com.domain: 382+ PTR? 2.1.168.192.in-addr.arpa. (42)
21:53:32.400625 IP resolver2.opendns.com.domain > 192.168.1.2.56419: 382 NXDomain 0/0/0 (42)
21:53:32.962176 IP 192.168.1.2.36395 > resolver2.opendns.com.domain: 49785+ A? database.clamav.net. (37)
21:53:33.217134 IP 192.168.1.2.46661 > ec2-184-73-194-227.compute-1.amazonaws.com.www: S 1825043612:1825043612(0) win 5840
21:53:33.531595 IP resolver2.opendns.com.domain > 192.168.1.2.36395: 49785 7/0/0 CNAME[|domain]
21:53:33.532318 IP 192.168.1.2.42104 > resolver2.opendns.com.domain: 17149+ A? database.clamav.net. (37)
21:53:33.725063 IP ec2-184-73-194-227.compute-1.amazonaws.com.www > 192.168.1.2.46661: S 225898766:225898766(0) ack 1825043613 win 5840
21:53:33.725154 IP 192.168.1.2.46661 > ec2-184-73-194-227.compute-1.amazonaws.com.www: . ack 1 win 5840
21:53:33.725360 IP 192.168.1.2.46661 > ec2-184-73-194-227.compute-1.amazonaws.com.www: P 1:580(579) ack 1 win 5840
21:53:34.115542 IP resolver2.opendns.com.domain > 192.168.1.2.42104: 17149 7/0/0 CNAME[|domain]
21:53:34.116268 IP 192.168.1.2.52688 > resolver2.opendns.com.domain: 22086+ A? database.clamav.net. (37)
21:53:34.249847 IP ec2-184-73-194-227.compute-1.amazonaws.com.www > 192.168.1.2.46661: . ack 580 win 5211
21:53:34.707608 IP ec2-184-73-194-227.compute-1.amazonaws.com.www > 192.168.1.2.46661: F 232:232(0) ack 580 win 5211
21:53:34.707686 IP 192.168.1.2.46661 > ec2-184-73-194-227.compute-1.amazonaws.com.www: . ack 1 win 5840
21:53:34.709628 IP ec2-184-73-194-227.compute-1.amazonaws.com.www > 192.168.1.2.46661: P 1:232(231) ack 580 win 5211
21:53:34.709677 IP 192.168.1.2.46661 > ec2-184-73-194-227.compute-1.amazonaws.com.www: . ack 233 win 6432
21:53:34.710019 IP 192.168.1.2.46661 > ec2-184-73-194-227.compute-1.amazonaws.com.www: F 580:580(0) ack 233 win 6432
21:53:34.712310 IP resolver2.opendns.com.domain > 192.168.1.2.52688: 22086 7/0/0 CNAME[|domain]
21:53:34.713132 IP 192.168.1.2.41256 > resolver2.opendns.com.domain: 6712+ A? database.clamav.net. (37)
21:53:35.209814 IP ec2-184-73-194-227.compute-1.amazonaws.com.www > 192.168.1.2.46661: . ack 581 win 5211
21:53:35.293719 IP resolver2.opendns.com.domain > 192.168.1.2.41256: 6712 7/0/0 CNAME[|domain]
21:53:35.295279 IP 192.168.1.2.37929 > resolver2.opendns.com.domain: 37947+ A? database.clamav.net. (37)
21:53:35.876052 IP resolver2.opendns.com.domain > 192.168.1.2.37929: 37947 7/0/0 CNAME[|domain]
21:53:35.882849 IP server-216-137-63-13.lhr3.cloudfront.net.www > 192.168.1.2.43040: F 2145307016:2145307016(0) ack 305058198 win 6880
21:53:35.884099 IP server-216-137-63-13.lhr3.cloudfront.net.www > 192.168.1.2.43039: F 2144127637:2144127637(0) ack 299530464 win 6650
21:53:35.921135 IP 192.168.1.2.43040 > server-216-137-63-13.lhr3.cloudfront.net.www: . ack 1 win 11360
21:53:35.921386 IP 192.168.1.2.43039 > server-216-137-63-13.lhr3.cloudfront.net.www: . ack 1 win 53960
21:53:35.936700 IP 192.168.1.2.38807 > resolver2.opendns.com.domain: 65025+ A? database.clamav.net. (37)
21:53:36.506826 IP resolver2.opendns.com.domain > 192.168.1.2.38807: 65025 7/0/0 CNAME[|domain]
21:53:37.402571 IP 192.168.1.2.58837 > resolver2.opendns.com.domain: 18747+ PTR? 227.194.73.184.in-addr.arpa. (45)
21:53:37.992783 IP resolver2.opendns.com.domain > 192.168.1.2.58837: 18747 1/0/0 (101)
21:53:37.993610 IP 192.168.1.2.45190 > resolver2.opendns.com.domain: 41743+ PTR? 13.63.137.216.in-addr.arpa. (44)
21:53:38.720639 IP resolver2.opendns.com.domain > 192.168.1.2.45190: 41743 1/0/0 (98)
21:53:39.731410 IP 192.168.1.2.43040 > server-216-137-63-13.lhr3.cloudfront.net.www: F 1:1(0) ack 1 win 11360
21:53:39.731514 IP 192.168.1.2.43039 > server-216-137-63-13.lhr3.cloudfront.net.www: F 1:1(0) ack 1 win 53960
21:53:39.896928 IP server-216-137-63-13.lhr3.cloudfront.net.www > 192.168.1.2.43034: F 2136823304:2136823304(0) ack 273815452 win 8944
21:53:39.933138 IP 192.168.1.2.43034 > server-216-137-63-13.lhr3.cloudfront.net.www: . ack 1 win 28400

41 packets captured
41 packets received by filter
0 packets dropped by kernel
ranjit@dell-laptop:~$

or use tcpdump -ni ath0

the links below are the outcome of the amazon related stuff

http://aws.amazon.com/ec2/
http://www.malwareurl.com/listing.php?as=AS14618

Netbook - LiMo

visit  http://bit.ly/bS9mPd

Latest driver for HP Deskjet F4488



The default hplip 2.8.2 on ubuntu 8.04 was not recognizing the deskjet_F4400 printer so the latest driver (hplip-3.10.6.tar.gz) at the HP was installed from src.
Almost all the steps are specified in hplipopensource.
If the default hplip is installed, remove it.

Download the src from http://hplipopensource.com/hplip-web/downloads.html

extract the tar.gz file

./configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

make
and
sudo make install

add username to the lp group
sudo usermod -a -G lp $USER

now connect the usb printer and power on the printer... if not done this way the hplip will not detect the device

su hp-setup 
will activate qt4 based config dialog... follow the instruction as specified and by opting for test prn page the following will be printed out..




All the features of the all in one printer has not been used on my box
In my case the cups daemon was disabled... to enable it use
sudo sysv-rc-conf

and start the service using
/etc/init.d/cupsys start 


[u-21-11-2011]

I have been using the scanner of F4488 without any problem whatsoever for quite some time now on ubuntu 8.04 and the application used is Xsane Image Scanner(v-0.995). It working fine for me. Some of the screen shots of the application in action.
 


[/u-21-11-2011]

GNU/Linux came to the rescue.

wifiLinux saved my day. Yet another encounter with itchy scenario which I wished Ginnie could have completed and I could devote my time to bit more constructive work.
One of the typical answer that one gets when dealing with  msoft os is any problem is plainly/blindly blamed on virus. In the current senario it was the corrupt driver or inappropriate driver that was giving the problem BSOD.

The wifi wasn't working properly and wasn't sure whether it was the driver or the device itself(atheros -AR242x 802.11abg Wireless PCI Express Adapter )
so the linux(ubuntu) was used with the atheros driver to check the functionality of the device. the instruction(http://nothingcanstopu.blogspot.com/2009/06/ubuntu-804-atheros-communications-inc.html) previously scribbled came in handy and worked like a charm. no probs whatsoever.
Product compaq presario c700
c795tu



The installation of OS using pen drive is almost becoming a defacto standard with the arrival of netbook which doesn't have an internal cd/DVD drive. there are almost Mton of article on how to make the usb stick bootable  -
for vista too one can make usb bootalbe with novicorp - wintoflash

With freebsd the installation is much simpler than linux as we just need to create a slice which latter on is partitioned. The GUI is as effective as any linux version. wasn't able to get the atheros wifi working even though the inbuilt option of atheros driver was present.

Disable the Atheros hardware driver by selecting system->Administration->Hardware Driver

Reboot

Checkout the source madwifi(Multiband Atheros Driver for WiFi) from

svn co https://svn.madwifi-project.org/madwifi/branches/madwifi-hal-0.10.5.6

Use make
**sudo apt-get install build-essential

and sudo make install to install the madwifi driver

edit the /etc/modules using any editor and enter ath_pci at the end
simple one gksudo gedit /etc/modules
I have a Dell Vostro A840 - having atheros wifi card and unfortunately ubuntu 8.04 doesn't support the driver i.e the restricted driver - by default it supports madwifi (Multiband Atheros Driver for Wireless Fidelity) driver but the HAL part is closed.

Good news ath5k is open every where - so go ahead and have a peak

http://linuxwireless.org/en/users/Drivers/ath5k

Happy hacking

How fast is the bootprocess - Bootchart


The bootchart app gives a graphical o/p of the boottime process. Even after disabling some unwanted services it's bit slow..

Ubuntu 9.04 Desktop - release Notes


Guys before jumping over to 9.04 read the release notes well for hackers they can figure it out as they go by..

http://www.ubuntu.com/getubuntu/releasenotes/904

Avant Window navigator with Intrepid

How to messup the desktop ;)

Go for DELL - ubuntu preinstalled


Dell vostro a840 with ubuntu 8.04 - Personal Desktop configured
top