Install OpenWRT on ASUS RT-N13U B1 and configure Hilink 4G modem

1 – Dowload firmware and upload over tftp

http://wiki.openwrt.org/toh/asus/rt-n13u

http://luizluca.blogspot.com.br/2012/01/openwrt-turbine-seu-roteador-instalando.html

2 – install luci

http://wiki.openwrt.org/doc/howto/luci.essentials

3 – Install kernel drivers for usb thetering

https://www.google.com.br/search?client=ubuntu&channel=fs&q=cdc_ether+param&ie=utf-8&oe=utf-8&gfe_rd=cr&ei=nuKAVZOYAdCJhASt04CwBQ#channel=fs&q=cdc+ether+openwrt

https://downloads.openwrt.org/snapshots/trunk/ramips/rt305x/

https://downloads.openwrt.org/snapshots/trunk/ramips/rt305x/packages/base/

http://wiki.openwrt.org/doc/howto/usb.tethering

 

 

 

upload tcpdump file to ftp server

tcpdump -w - | curl -u FTPUSER:FTPPASS ftp://ftpserver/where/ever/dump.pcap -T -

For wireshark format:

tcpdump -s 65535 -w - | curl -u FTPUSER:FTPPASS ftp://ftpserver/where/ever/dump.pcap -T -

ssh user@host "tcpdump -i tap0 -w -" | wireshark -k -i -

https://www.wireshark.org/docs/wsug_html_chunked/AppToolstcpdump.html

http://unix.stackexchange.com/questions/28188/how-to-upload-tcpdumps-in-realtime-to-ftp

ubuntu 14.04 tips

Transform Ubuntu 14.04 to look like Mac

http://www.noobslab.com/2014/04/macbuntu-1404-pack-is-released.html

http://www.noobslab.com/2014/11/mbuntu-macbuntu-1410-transformation.html

 

Remove anchor icon from docky

gconftool-2 --type Boolean --set /apps/docky-2/Docky/Items/DockyItem/ShowDockyItem False

Remove Anchor Icon from Docky

 

Installing Java 8 on Ubuntu via ppa

http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/

 

 

Install Google chrome via ppa

wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add –

sudo sh -c ‘echo “deb http://dl.google.com/linux/chrome/deb/ stable main” >> /etc/apt/sources.list.d/google-chrome.list’

sudo apt-get update

sudo apt-get install google-chrome-stable

http://www.howopensource.com/2011/10/install-google-chrome-in-ubuntu-11-10-11-04-10-10-10-04/

 

Enabling NPAPI in Chrome Version 42 and later

As of Chrome Version 42, an additional configuration step is required to continue using NPAPI plugins.

  1. In your URL bar, enter:
    chrome://flags/#enable-npapi
  2. Click the Enable link for the Enable NPAPI configuration option.
  3. Click the Relaunch button that now appears at the bottom of the configuration page.

Developers and System administrators looking for alternative ways to support users of Chrome should see this blog, in particular “Running Web Start applications outside of a browser” and “Additional Deployment Options” section.

 

http://java.com/en/download/faq/chrome.xml#npapichrome

 

MySQL connection fails with “unknown authentication method”

The new mysqlnd library necessitates the use of MySQL 4.1’s newer 41-byte password format. Continued use of the old 16-byte passwords will cause mysql_connect() and similar functions to emit the error, “mysqlnd cannot connect to MySQL 4.1+ using old authentication.”

If so, see http://stackoverflow.com/a/1340538/187954 for information on updating your password.

 

http://stackoverflow.com/questions/14612551/mysql-remote-connection-fails-with-unknown-authentication-method

 

 

 

 

Email autodiscover php script

 

http://0wned.it/geek-bits/scripts/open-source-autodiscover-implementation-in-php/

 

https://technet.microsoft.com/en-us/library/cc511507.aspx#BKMK_OverviewOfCommonSettingsDiscover

 

https://github.com/cfoellmann/ISPC-resources/blob/master/guides/autodiscover/.htaccess