Derwynd's Weblog

Derwynd's Weblog

Fedora 17 + Tata Photon (Huawei)

Connect Photon

#  lsusb | grep -i HUAWEI

Bus 001 Device 006: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card

See whats in bold

Go in directory

# /etc/usb_modeswitch.d

# vi 12d1\:140b

# Huawei E180
TargetClass=0xff
HuaweiMode=1
DefaultVendor= 0x12d1
DefaultProduct=0x140b
TargetVendor=0x12d1
TargetProduct=0x140b
MessageContent=”55534243123456780000000000000011062000000100000000000000000000″

# usb_modeswitch -I -W -c 12d1:140b

Reading config file: 12d1:140b

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.3 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x140b
TargetVendor=   0x12d1
TargetProduct=  0x140b
TargetClass=    0xff
TargetProductList=””

DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint=  not set
MessageContent=”55534243123456780000000000000011062000000100000000000000000000″
NeedResponse=0
ResponseEndpoint= not set

InquireDevice disabled
Success check disabled
System integration mode disabled

Looking for target devices …
searching devices, found USB ID 8087:0020
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 138a:0007
searching devices, found USB ID 12d1:140b
found matching vendor ID
found matching product ID
target class ff matching
adding device

# nm-connection-editor

Create a new mobile broadband connection . Select Tata Photon Plus.
Connection NO : #777

Username : internet
password: internet

Advertisements

September 25, 2012 Posted by | Uncategorized | Leave a comment

Fedora 17: Install OpenSSH Server

How to install the OpenSSH Server on Fedora 17 for remote access.

Open a terminal, become root and install the software.

# su -
# yum install -y openssh-server

Use existing user that need to be allowed to SSH  remotely (eg someuser someuser2).

Now, edit /etc/ssh/sshd_config and add the following.

PermitRootLogin no
AllowUsers someuser someuser2

The above will disable logins for root and only permit connects from someuser someuser2.

And finally, enable and start the SSH service.

systemctl enable sshd.service
systemctl start sshd.service

September 12, 2012 Posted by | Uncategorized | Leave a comment