Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Monday, January 23, 2017

Shredding a disk securely



shred -vfz -n 10 /dev/sda5


-v: show progress
-f: change permissions to allow writing if necessary
-z: add a final overwrite with zeros to hide shredding
-n: overwrite N times instead of the default (3)

Tuesday, January 17, 2017

Serial Edit on VIM editor

When we need to use serial edit while on vim editor.

The following command will change from lines 3 to 7 all words of dogs in to cats.

:3,7s/dogs/cats/g

Sunday, June 23, 2013

Synergy setup for my friend

This is the synergy client script which runs at the client end.




At the synergys side do like the following

synergys -a 127.0.0.1 --config /etc/synergy.conf &

cat /etc/synergy.conf
section: screens
synergys:
synergyc:
end

section: aliases
synergyc:
127.0.0.1
end

section: links
synergys:
left = synergyc
synergyc:
right = synergys
end

section: options
screenSaverSync = false
keystroke(f12) = lockCursorToScreen(toggle)
end

Sunday, April 21, 2013

View Unbilled usage in Airtel Internet


Log on to this website https://ebpp.airtelworld.com/myaccount/

After logging in you need to select you internet account, first click on "My account" > Then drop down > Then select you DSL connection.



Now select on my account


On scrolling down we can see the unbilled usage.  If we need detailed usage, we can still click on "Click here"



Thursday, April 18, 2013

Chennai Property Tax


One of my acquaintance wanted to pay property tax online hence approached me for help thinking I can help, well what do you know after a bit of google search I was able to come up with this :-)

http://www.chennaicorporation.gov.in/online-civic-services/ptbillSearch.do?do=getOldLoad

With this link you can enter old data get new

Zone Number:
Ward Number:
Bill No:
Sub No:



Wednesday, September 5, 2012

Updating Flash on Ubuntu 10.04

On one of my machine I had Ubuntu 10.04 which got its Firefox upgraded to 15, so from then on when ever I opened Firefox it would connect to Mozilla's website to check if all the plugin are upto date and it kept complaining that Flash is out of date. It also gave me a small button next to it to fix the issue.  So I clicked it and downloaded the tar.gz file, extracted it.

Then move the old libflashplayer.so to old.

# mv /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so_old

Then copy the libflashplayer.so from the extracted tar.gz file to the location.

# cp -rvf /home//Downloads/software/Adobe\ Flash/install_flash_player_11_linux.x86_64/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so


Restart the browser, The plugin check should not complain once again.  Then go ahead and remove the old libflashplayer.so_old file.

# rm /usr/lib/mozilla/plugins/libflashplayer.so_old

Saturday, July 21, 2012

Fixed DVD Driver not opening

Wow I have never removed almost all the components of a DVD drive and put them back togather to this extent.

LG DVD tray opening problem, It stopped opening even when I take a pin and push the pin hole.

Note:  I don't take responsibility if you break you DVD by following my steps.

Step1: Remove the drive from CPU by removing all the screws.
Step2: Remove Four Screws to remove the back plate of DVD drive.
Step3: Detach two sets of Ribbon cable from the main board and remove the board, be careful there are two more cable behind the board as well.
Step4: Now you can just see under side of the board where in two more cable are attached.  The smaller Ribbon cable will pop out as soon as you pull it, However the larger one is clipped down, we have to move the clip up before pulling the largest Ribbon Cable.
Step5: Remove the assemble which holds the Lens by unscrewing two screws towards the end of the box.  The other side is just held with Rubber which can be squeezed to pull them out.
Step6: Now remove the Plastic where the Rubber was attached to the Lens assembly.
Step7: Now remove the Tray by sliding it out,  Here I broke a small notch as I did not know how to remove it.
Step8: Now clean all the place where you see movement and I applied Lip Vaseline.
Step9: Do all the steps shown above in reverse :-)
Step10: You have now breathed new air into your old DVD which was about to be dumped :-D Hurray.


Sunday, June 10, 2012

Convert JPEG to PDF

WOW there is a very simple tool which comes along with Ubuntu called convert

$convert input.jpeg output.pdf

Wola that is it we have the image in a PDF form now enjoy :-)

Sunday, June 3, 2012

Adding WaterMark

To add WaterMark to an image we can use the tool which ships with Ubuntu

$composite -dissolve 10% -gravity south input_file.jpeg watermark.jpeg output.jpeg
$composite -dissolve 10% -gravity south watermark1.jpeg IPTables1.jpeg output.jpeg

Here 10% is the brightness of the watermark1.jpge
-gravity south will pull your image to the bottom

Friday, June 1, 2012

nethogs - See which process is eating Bandwidth

Today I discovered that nethogs will show exactly what I wanted (i.e) group the process which are currently active and which are transmitting over the Ethernet\wireless.

#apt-get install nethogs

You need to start nethogs as root

#nethogs


Friday, December 9, 2011

Adit0 SSL VPN

While starting adito if it refuses to start do as shown in the link :-)

http://sourceforge.net/projects/openvpn-als/forums/forum/824507/topic/2883732

Add these two lines: 
wrapper.java.classpath.1=/opt/adito-0.9.1/lib/adito-boot.jar wrapper.java.mainclass=com.adito.boot.Bootstrap
 
To this file: /opt/adito-0.9.1/conf/wrapper.conf and service adito start should now work.

Friday, November 25, 2011

FFMPEG

http://howto-pages.org/ffmpeg/

http://www.commandlinefu.com/commands/tagged/76/ffmpeg


Thursday, October 20, 2011

CUPSPDF

http://embraceubuntu.com/2006/03/23/print-to-pdf-using-cups-pdf/

Thursday, October 13, 2011

Wednesday, October 12, 2011

McAfee's Free Tools

http://www.mcafee.com/us/downloads/free-tools/index.aspx

http://www.mcafee.com/us/downloads/free-tools/stinger.aspx

Get Suspected files
https://kc.mcafee.com/corporate/index?page=content&id=KB69385