Some USB/NFC help applications

Find USB device details in Linux using lsusb command

As a Linux User we should know USB bus details as well as devices connected. In this post we will see how to use lsusb command to display different USB properties.

Example1: List all the USB ports available

ubuntu@ubuntu:~$ sudo lsusb

Output:


Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 04e6:5591 SCM Microsystems, Inc.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 13ee:0001 MosArt
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

04e6:5591 SCM Microsystems, Inc.” means SCM reader is correctly connected.

Use nfc-list to find out if nfc driver is correctly installed.

ubuntu@ubuntu:~$ sudo nfc-list

Output:


nfc-list uses libnfc 1.7.0
NFC device: SCM Micro / SCL3711-NFC&RW opened

How to connect to Linux via SSH using PuTTY at Windows

Download PuTTY

Download PuTTY from the website. After you download PuTTY, launch the application.

Configure you connection

In the PuTTY Configuration window, enter the following values and then click Open: In the Host Name enter the IP address of your live CD Server. Ensure the Connection Type is set to Telnet. (Optional) In the Saved Sessions field, you can assign a name for this connection. Feel free to save it to whatever name you want: it simply saves time next time you use Putty.

putty

Enter your username and password

The terminal prompts you for your username (“ubuntu“) and password (empty, just return). If you have entered the correct login, the prompt responds with a shell prompt:

putty

putty

How does ifconfig find a machine’s external IP address?

At new boot live cd machine:

ubuntu@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:a0:2c:0b:7e
inet addr:192.168.0.106 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: ::e99f:70cc:edb5:ba84/64 Scope:Global
inet6 addr: ::21a:a0ff:fe2c:b7e/64 Scope:Global
inet6 addr: fe80::21a:a0ff:fe2c:b7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:296 errors:0 dropped:0 overruns:0 frame:0
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23978 (23.9 KB) TX bytes:8146 (8.1 KB)
Interrupt:17

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1184 (1.1 KB) TX bytes:1184 (1.1 KB)

“inet addr:192.168.0.106” is machine‚Äôs external IP address.