A Blog about technology, linux, peer2peer, cool new downloads and software development.

Wednesday, February 25, 2009

installing InternetExplorer on ubuntu linux

Download from :
http://www.tatanka.com.br/ies4linux/page/Main_Page
And install :
./ies4linux --no-gui --install-corefonts


Alternative :
http://appdb.winehq.org/appview.php?versionId=469


IE 7 (hacks) :
...
if I launch install with:
./ies4linux --install-ie7 --hack-ie7-proxy-settings --no-gui

IE7 works, except cookies,

if I install with:
./ies4linux --install-ie7 --no-gui

still no cookies and is very slow

Tuesday, February 24, 2009

ubuntu linux mind mapping apps

sudo apt-get install freemind
sudo apt-get install kdissert

Tuesday, February 17, 2009

ubuntu linux S.M.A.R.T disk monitoring

Monitor the disk heath and temperature

> install :
sudo apt-get install smartmontools
sudo apt-get install hddtemp

> monitor temperature :
sudo apt-get install sensors-applet
sudo killall gnome-panel
add to gnome-panel : "hardware sensors monitor"

> monitor health :
install GSmartControl (there is a deb download) @
http://gsmartcontrol.berlios.de/home/index.php/en/Home

restart gnome-panel

sudo killall gnome-panel

Sunday, February 15, 2009

linux network bandwidth monitors

sudo apt-get install nload

sudo apt-get install bmon

sudo apt-get install iptraf

sudo apt-get install iftop

sudo apt-get install ntop

Tuesday, February 10, 2009

sshmount tutorial on ubuntu linux

sudo apt-get install sshfs
mkdir /mnt/tmp
sudo sshfs user@server:/tmp /mnt/tmp
...
umount /mnt/tmp

linux banner commands

banner :
/usr/games/banner test

figlet :
sudo apt-get install figlet

toilet :
sudo apt-get install toilet

SSH reverse tunnel (Detached & Persistent)

nohup bash -c "while [ 1 ]; do ssh -o ExitOnForwardFailure=yes -o ConnectTimeout=2 -o TCPKeepAlive=yes -o ServerAliveInterval=2 -o ServerAliveCountMax=2 -N -R 2222:localhost:22 user@server.com; sleep 1; done" &

(after authorizing key with ssh-copy-id)
Example : run on boot of virtual machine that has a dynamic ip - connect via : ssh localhost:2222

Sunday, February 8, 2009

vimdiff shortcut keys

keys :

ctrl+w ctrl+w - switch windows
do - diff obtain
dp - diff put
[c - previous difference
]c - next difference
:diffupdate - diff update ;)
:syntax off - syntax off
zo - open folded text
zc - close folded text

ubuntu linux visual directory compare / diff tools

sudo apt-get install meld
meld dir1 dir2

sudo apt-get install kompare
kompare dir1 dir2

sudo apt-get install kdelibs4c2a
wget http://launchpadlibrarian.net/10679965/kdiff3_0.9.92-2ubuntu1_i386.deb
wget http://launchpadlibrarian.net/13473685/libkonq4_3.5.9-0ubuntu7_i386.deb
wget http://launchpadlibrarian.net/10679966/kdiff3-doc_0.9.92-2ubuntu1_all.deb
dpkg -i *.deb
kdiff3 dir1 dir2

http://www.sourcegear.com/diffmerge/
http://www.scootersoftware.com/index.php

DNS : dig // nslookup // host

$ host google.co.il
google.co.il has address 72.14.221.104
google.co.il has address 66.249.93.104
google.co.il has address 216.239.59.104
google.co.il mail is handled by 10 smtp3.google.com.
google.co.il mail is handled by 10 smtp4.google.com.
google.co.il mail is handled by 10 smtp1.google.com.
google.co.il mail is handled by 10 smtp2.google.com.


$ nslookup google.co.il
Server: 10.1.1.235
Address: 10.1.1.235#53

Non-authoritative answer:
Name: google.co.il
Address: 72.14.221.104
Name: google.co.il
Address: 66.249.93.104
Name: google.co.il
Address: 216.239.59.104


$ dig google.co.il

; <<>> DiG 9.5.0-P2 <<>> google.co.il
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53300
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.co.il. IN A

;; ANSWER SECTION:
google.co.il. 204 IN A 66.249.93.104
google.co.il. 204 IN A 216.239.59.104
google.co.il. 204 IN A 72.14.221.104

;; Query time: 5 msec
;; SERVER: 10.1.1.235#53(10.1.1.235)
;; WHEN: Sun Feb 8 12:48:41 2009
;; MSG SIZE rcvd: 78

Saturday, February 7, 2009

mysql - remove duplicate records


CREATE
TABLE new_table AS SELECT * FROM old_table WHERE 1 GROUP BY [COLUMN TO remove duplicates BY];

DROP
TABLE old_table;

RENAME
TABLE new_table TO old_table;

SSH socks proxy tunnel (Detached & Persistent)

make detached ssh socks proxy tunnel :

nohup bash -c "while [ 1 ]; do ssh -o ExitOnForwardFailure=yes -o ConnectTimeout=2 -o TCPKeepAlive=yes -o ServerAliveInterval=2 -o ServerAliveCountMax=2 -N -D 8080 user@server.com; sleep 1; done" &

(after authorizing key with ssh-copy-id)
Set firefox proxy to socks V5 - lolcahost:8080