LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2011, 09:44 AM   #1
etika
Member
 
Registered: Dec 2010
Posts: 38

Rep: Reputation: 0
Question problem in using gnokii utility


hi

iam trying to send sms using gnokii utility in linux

firstly i did
sudo apt-get install gnokii
after that
i got a gnokiirc.gz file in /usr/share/doc/gnokii/sample/gnokiirc.gz file here
after that i did
gunzip gnokiirc.gz
then i transferred my file from the /usr/share/doc/gnokii/sample to home directory by using copy command as copying files to home is not allowed so i used sudo
sudo cp gnokii /home
after that
i changed the port=/dev/ttyUSB2
and model=AT in the gnokiirc file in the home directory
and then i wrote
gnokii --identify

GNOKII Version 0.6.29
Couldn't read /home/etika/.config/gnokii/
config config file.
Couldn't read /etc/xdg/xdg-gnome/gnokii/config config file.
Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it...
Telephone interface init failed: Command timed out.
Quitting.
Command timed out.


i followed as in the http://www.gnokii.org/docs.shtml and http://sp2hari.com/2008/04/18/settin...-using-gnokii/ and except this "Note that you will need read/write permissions on whatever serial port you specify in .gnokiirc."(iam confused what is my serial port is it ttyUSB2 )

please do tell me what can be the reason of this error and how it can be rectified

Last edited by etika; 03-16-2011 at 10:14 AM.
 
Old 03-16-2011, 12:00 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Presumably sudo cp gnokii /home created the /home/gnokii. Later you write about "the gnokiirc file in the home directory". gnokii works OK for me using /home/<user name>/.config/gnokii/config. I vaguely recall trying /home/<user name>/.gnokiirc and it not working so changing to /home/<user name>/.config/gnokii/config. Might be worth trying that (so you don't get the Couldn't read /home/etika/.config/gnokii/config config file message) and then we can concentrate on the serial port device file issues.
 
Old 03-17-2011, 12:29 AM   #3
etika
Member
 
Registered: Dec 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Question

now i have copied the gnokiirc file in /home/etika/.config/gnokii directory and still the problem persist same message is displayed
etika@etika-4545-uT-PCghfA:~/.config/gnokii$ gnokii --identify
GNOKII Version 0.6.29
Couldn't read /home/etika/.config/gnokii/config config file.
Couldn't read /etc/xdg/xdg-gnome/gnokii/config config file.
Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it...
Telephone interface init failed: Command timed out.
Quitting.
Command timed out.

what to do ??
 
Old 03-17-2011, 02:44 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
It needs to be /home/etika/.config/gnokii/config not /home/etika/.config/gnokii/gnokiirc
 
Old 03-17-2011, 10:07 PM   #5
etika
Member
 
Registered: Dec 2010
Posts: 38

Original Poster
Rep: Reputation: 0
ok thanx
 
Old 03-18-2011, 03:07 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Glad you found a solution

Threads can be marked SOLVED via the Thread Tools menu.
 
Old 03-18-2011, 05:42 AM   #7
etika
Member
 
Registered: Dec 2010
Posts: 38

Original Poster
Rep: Reputation: 0
hey
catkin
can you tell me how to read sms from gnokii
i tried
gnokii --getsms ME 1 end
but its not working ...
 
Old 03-18-2011, 08:18 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
I've never tried getting SMSes from a phone. Have you tried to do anything else and did it work? What are the symptoms of "not working"? It helps if you can copy-paste the exact command and the output.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnokii installing problem san_to_all Linux - Software 4 09-11-2010 02:50 PM
USing Gnokii for the first time kavinchat Linux - Newbie 0 10-21-2008 06:11 AM
Newbie trying to install gnokii with general installation problem. zest n zeal Linux - Software 0 06-27-2008 11:57 AM
gnokii gui problem abourke Linux - Software 0 12-13-2006 01:04 PM
Slackware and 3310 ( gnokii problem ) TheSpy Linux - Software 0 03-21-2006 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration