Linux下配置短信猫的方法和常见错误。

本文详细介绍了在Linux系统中配置短信猫的步骤,包括安装必要的软件包、配置gnokii及相关依赖,并提供了配置文件gnokiirc的示例。在配置过程中可能遇到的错误,如gcc、glib、pkg-config等的安装,以及libgnokii库找不到、expat头文件缺失等问题的解决方法。最后,文章提到了通过`ls -l /dev/ttyS*`来查找串口,并给出了`apt`资源文件的示例及其配置建议。
摘要由CSDN通过智能技术生成

1.四个包先拉到/usr/local下并解压 tar -zxvf ~.gz
gnokii-0.6.31.tar.gz
intltool-0.40.6.tar.gz
XML-Parser-2.34.tar.gz
glib-2.20.1.tar.gz

所需包链接即可下载(https://pan.baidu.com/s/1xS95VN9Mgo7W1jy5Nl961g  提取码:fqvk)


2.
执行命令:
 apt-get install gcc
 
 apt-get install make
 sudo apt-get install gettext
 
 apt-get install libglib2.0-dev
 apt-get install pkg-config

(1)进glib-2.20.1
    ./configure
    make
    make install
(2)进XML-Parser-2.34

    #perl -MCPAN -e shell
sudo apt-get install libexpat1-dev
    perl Makefile.PL
    make
    make test
    make install
(3)进intltool-0.40.6
    ./configure
    make
    make install
(4)进gnokii-0.6.31
    ./configure
    make
    make install 或者 make&&install

切记更新

apt-get update
完全成功后
将源码包里的:
 Docs/sample目录下的gnokiirc 文件(这个配置文件是gnokii的配置文件)拷贝到/root下.
 mkdir -p /root/.config/gnokii
 cp /usr/local/gnokii-0.6.31/Docs/sample/gnokiirc  /root/.config/gnokii/config
 
 修改文件:nano /root/.config/gnokii/gnokiirc
 # This is a sample ~/.gnokiirc file. Copy it into your
# home directory and name it .gnokiirc.
# See http://wiki.gnokii.org/index.php/Config for working examples.
#
[global]
# Set port to the physical port used to connect to your phone.
# Linux version is:
#短信猫串口设备
port = /dev/ttyS0                           //根据串口配置
#
# For MacOSX you will need something like:
# port = /dev/cu.USA28X1P1.1
#
# For Win32 and ports from 1 to 9 you want to use:
# port = com1:
# or similiar. For ports greater than 9 you want to use:
# port = \\.\COM10
# or similiar.
#
# FreeBSD (probably NetBSD and OpenBSD too) use:
# port = /dev/cuaa0
#
# With Linux-IrDA you will want to use
# port = /dev/ircomm0
# or similiar.
#
# Use this setting also for the Bluetooth connection:
# port = aa:bb:cc:dd:ee:ff
# when using it with AT driver set it to:
# port = /dev/rfcomm0
# or similiar.
#
# For the Linux USB cables you will need one of the following settings (or
# similiar)
# port = /dev/ttyUSB0
# port = /dev/tts/USB0
# port = /dev/ttyACM0
# the last one will work only with AT driver. The correct setting should be
# given in the dmesg output.
#
# If you use connection type dku2libusb use it to denote which use endpoi

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值