Troubleshoot Huawei E398 On Manjaro Linux

Its been days, my Tata Photon Plus device, E398 was not working properly on my favourite linux distro, Manjaro. So today I found some time to dig it and solve the problem.

Problem was that, My modem was showing up lsusb but was not getting detected by wvdial or dmesg.

$ lsusb
Bus 002 Device 009: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard

First of all, install following packages.

Here, note down following.
Vendor ID = 12d1
Product ID = 1505

Now install these packages.

# pacman -S usb_modeswitch modemmanager wvdial ppp

Edit this file after installing the packages

vim /lib/udev/rules.d/40-usb_modeswitch.rules

Append following lines at the end, and replace Vendor ID and Product ID accordingly.

#Huawei E398
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1505", RUN+="usb_modeswitch '%b/%k'"

Issue following command to test

# usb_modeswitch -v 12d1 -p 1505 -V 12d1 -P 1506 -M "55534243123456780000000000000011062000000100000000000000000000" 

If everything goes right issue this command using your product and vendor ID.

modprobe option vendor=0x12d1 product=0x1506

Replug the Modem, It will work like a charm. Keep me posted if you face any problems.

Cheers !

Installing Gnome 3.10 on Ubuntu 13.10 (Saucy) Final Beta

Gnome 3.10

Want to spice up your desktop by installing the crisp of new Gnome shell ?

Gnome 3.10
Gnome 3.10

Gnome 3.10 is the major release after 3.8, which includes various performace + UI improvements. It also have various extensions already installed as well as “Tweak Tool” is also pre-installed. Use following commands to install Gnome 3.10 on Ubuntu 13.10 Final Beta.

Open Terminal :

sudo add-apt-repository ppa:gnome3-team/gnome3-next

sudo apt-get update

sudo apt-get install gnome-shell ubuntu-gnome-desktop

Install it and have some fun 😉

Setting up openDKIM with Postfix (+ Troubleshooting)


DomainKeys Identified Mail, abbreviated as DKIM. It is a protocol which ensures that, the emails received are from right and authentic senders, and are not forged. DKIM uses public key cryptography [wiki link]. Most of the times when you deal with a mail server, emails are unfortunately going into spam, because your DNS does not have a DomainKey record, which authenticates the emails coming from your domain.


  1. I assume you are familiar with Debian based distrubution.
  2. You are having postfix mail server, this guide deals with postfix only.
  3. You have knowledge of basic linux commands


You can simply issue issue the following command to install openDKIM.

sudo aptitude install opendkim opendkim-tools dkim-filter


Two configuration files of DKIM.


Firstly edit, /etc/opendkim.conf , Make sure your file do have these. Just edit “Domain” and “Selector”.

Domain         #Use your domain here
KeyFile                 /etc/mail/dkim.key # We will generate this key later on
Selector                mail #this can be anything

# DomainKey is combined with "Selector" and "Domain", including an extra string "_domainkey"
# For Example

# Common settings. See dkim-filter.conf(5) for more information.
AutoRestart             yes
Background              yes
Canonicalization        relaxed/relaxed
DNSTimeout              5
Mode                    sv
SignatureAlgorithm      rsa-sha256
SubDomains              no
X-Header                no

After that, edit /etc/default/dkim-filter and make sure it have following

DAEMON_OPTS="-l -o DKIM-Signature,X-DKIM"
DAEMON_OPTS="$DAEMON_OPTS -d -k /etc/mail/dkim.key -s mail"

Now we’ll edit /etc/postfix/ file. Append following text into the file.

milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891

Thats all for the Configuration.

Generate Public/Private key for DKIM

This command with generate a public/private key pair. Replace “mail” with your own selector, and “” with your domain name.

opendkim-genkey -t -s mail -d

After this, place the private key to its right place at /etc/mail/dkim.key

cp mail.private /etc/mail/dkim.key  
# here <strong>mail</strong> refers to the selector

Thats it.

Optionally, you can also create a public/private key pair from Change Selector accordingly into /etc/opendkim.conf file.

If you have generated the keys on the web, then create a new file /etc/mail/dkim.key and paste private key into it.

Adding DNS (txt record) for domainkey

Adding the DNS entry is the most crucial part, please be patient and read carefully. When you created public/private key pair. Use public key for DNS entry. Login to your domain’s control panel, change DNS Settings, and add a TXT record. TXT record will ask you for two things. Host and Data.

Host will be ( change accordingly for your case )
## [Selector]._domainkey.[]

and data would be something like


Add the entry, and you’re done. Now we will test it out.

Starting DKIM and Troubleshooting

sudo service opendkim start

If you’re not able to send email, probably there is something wrong with the configuration. Check the mail logs.

grep -i dkim /var/log/mail.log

Check if DKIM is working correctly at

Facing problems ? Post comment Or Hire me, I’ll be back after my “Double-Tikki” Burger. Hah !