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

 

Problemas de acentuação com UTF-8

header('Content-Type: text/html; charset=utf-8');
mysql_connect($servidor,$usuario,$senha);
mysql_select_db($database);
mysql_query("SET NAMES 'utf8'");
mysql_query('SET character_set_connection=utf8');
mysql_query('SET character_set_client=utf8');
mysql_query('SET character_set_results=utf8');

http://rmonte.com/blog/acentuacao-no-php-e-mysql-com-utf-8/