總網頁檢視次數

星期二, 10月 15, 2019

Install linux driver for TP-Link Archer T4U AC1200 Wireless Dual Band USB adapter for Centos/linux

TP-Link Archer T4U AC1200 Wireless Dual Band USB Adapter Linux Drivers
Internal photos of the TP-Link Archer T4U Wireless Adapter lodged with the FCC shows this device consists of a RealTek RTL8812au chipset.

The T4U has a USB Vendor ID (VID) of 0x2357 and Product ID (PID) of 0x101.

To date, the mainline Linux Kernel does not support this device, hence drivers need to be compiled manually.

One source for the drivers is Anand Babu (AB) Periasamy's git repository. Clone the source:

git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux/
TP-Link T4U's USB VID and PID has not yet been included. Edit op_dep/linux/usb_intf.c and add the following line to the bottom of the CONFIG_RTL8812A #ifdef section.

    {USB_DEVICE(0x2357, 0x0101),.driver_info = RTL8812}, /* TP-Link - T4U */
Now you are ready to make and install the driver:

make
sudo make install
At this stage, plugging in a T4U dongle should be detected and the appropriate driver loaded:

[   57.083756] usb 1-1: new high-speed USB device number 2 using ehci-pci
[   57.292224] usb 1-1: New USB device found, idVendor=2357, idProduct=0101
[   57.292231] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   57.292234] usb 1-1: Product: 802.11n NIC
[   57.292236] usb 1-1: Manufacturer: Realtek
[   57.292238] usb 1-1: SerialNumber: 123456
[   57.337273] cfg80211: Calling CRDA to update world regulatory domain
[   57.486501] 8812au: module verification failed: signature and/or  required key missing - tainting kernel
[   57.507475] cfg80211: World regulatory domain updated:
[   57.507480] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   57.507482] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   57.507485] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   57.507487] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   57.507488] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   57.507490] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   61.711265] usbcore: registered new interface driver rtl8812au

星期一, 10月 14, 2019

How to use TCPDUMP to capture network traffic

星期五, 10月 04, 2019

How to use connection proxy for PuTTY

You can use Host 1 as a bridge to connect to Host 2 by PuTTY..

You can even setup chain of bridge to do that .

i.e. You => Host1 => Host 2 => Host 3 ..

First , you setup a SESSION for You => Host 1 => Host 2..

Then you can use this session and setup You => SESSION=> Host #

Here is the way to setup it ..

How to enable SSH Proxy Tunnel by PuTTY

1. Launch PuTTY and enter the hostname ( .math.ucla.edu ) and port. Port should be set to 22.
    - The hostname should be your UCLA homesite followed by ".math.ucla.edu".  Login to a linux machine and type "home" and this will display your homesite.
2. On the left side, in the Category window, go to Connection -> SSH -> Tunnels.
3. For 'Source Port' enter '31415' (this can be configured to whatever you want, just remember it).
4. Under 'Destination' select the 'Dynamic' radio button and leave the 'Auto' button selected.
5. Press the 'Add' button.  You should see 'D31415' in the 'Forwarded ports:' box.
6. Then select the 'Open' button.  This should open and terminal window and you should be prompted to login.

Once the tunnel is established, you now need to set up a SOCKS proxy in your web browser.
1. Launch Firefox.
2. Go to Tools -> Options.
3. On the left side of the window, select Advanced.
4. Under Advanced, in the middle of the page, select Network -> Connection -> Settings.
5. Under 'Configure Proxies to Access the Internet' select the 'Manual proxy configuration' radio button.
6. In the 'SOCKS Host' box enter 'localhost' and for 'Port' enter '31415' (or whatever you set your SSH Tunnel up with).
7. Make sure 'SOCKS v5' is selected and select the 'OK' button to save.

As long as your PuTTY SSH connection remains connected, your proxy tunnel will be open and you will be able to use the internet through this proxy.
To determine that the proxy is up:
1.  Go to http://www.whatsmyip.org and confirm that your IP address matches the host IP that you are tunneling through.
2.  Also, if you are trying to gain access to MathSciNet, go to http://www.ams.org/mathscinet and look for "Univ of Calif, Los Angeles" in the top right of the page. 

星期四, 8月 01, 2013

Google Adwords 菜鳥教學 1 - Avg. Pos. ( Average position )

"1" is the highest position, and there is no "bottom" position. An average position of 1-8 is generally on the first page of search results, 9-16 is generally on the second page, and so on. Average positions can be between two whole numbers.

 For example, an average position of "1.7" means that your ad usually appears in positions 1 or 2.

Generally, position 1 to 3 will be the top placement ( top of the pages ) while position 4 to 8 may be the side adv position. for 9 or later, they may appear in the next pages.


Source : https://support.google.com/adwords/answer/1722122?ctx=tltp