|
|
Home Linux and 3G Forum
|
|
PHARscape 3G Datacards and Linux
|
| View previous topic :: View next topic |
| Author |
Message |
twentyfour-fr
Joined: 26 May 2008 Posts: 13

|
Posted: Wed May 28, 2008 10:43 pm Post subject: |
|
|
| Quote: | | All the source code is provided. Delete the executable and recompile it for your system. |
Thank you for your response, however, sorry, but I can not do that, that is why I ask you so that you can do it for me to install thereafter.
I do not have the required level to do it myself.
Unless you explain what to do and how and how to do so.
Thank you for your help. |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 510 Location: UK and Belgium

|
Posted: Thu May 29, 2008 12:54 pm Post subject: |
|
|
| Quote: |
Unless you explain what to do and how and how to do so.
|
Please follow Step 5 in my Howto. I have improved the description to help you.
Make sure that you have glibc-headers installed.
Cheers,
Paul |
|
| Back to top |
|
 |
twentyfour-fr
Joined: 26 May 2008 Posts: 13

|
Posted: Thu May 29, 2008 5:29 pm Post subject: |
|
|
yes I have this package to install it puts me directly when installing gcc and if I make sure to install after he said there already is.
As against this error make a step 5 am and continue to say that your utility is for the i386 version and not for x86_64 the evidence is here :
| Quote: | [root@localhost rezero]# tar zxf hso-udev.tar.gz
[root@localhost rezero]# ls
hso.udev Makefile rezero rezero.c
hso-udev.tar.gz README rezero.8 rezero.o
[root@localhost rezero]# rm ./rezero
rm: détruire fichier régulier `./rezero'? o
[root@localhost rezero]# ls
hso.udev hso-udev.tar.gz Makefile README rezero.8 rezero.c rezero.o
[root@localhost rezero]# make
cc -o rezero rezero.o
/usr/bin/ld: i386 architecture of input file `rezero.o' is incompatible with i386:x86-64 output
collect2: ld a retourné 1 code d'état d'exécution
make: *** [rezero] Erreur 1
[root@localhost rezero]# |
Watch what I put in bold!
Voila pourquois I ask you if you can not let us pre compile for x86_64 versions?
Thank you in advance for your assistance. |
|
| Back to top |
|
 |
twentyfour-fr
Joined: 26 May 2008 Posts: 13

|
Posted: Fri May 30, 2008 1:55 pm Post subject: |
|
|
Thank you for all your help it works perfectly now under a system i386 (32bit) I think it will be good to clarify that, since the module is "Rezero" create systems for 32 bit only in those 64 bit it is not running, that was he or someone you precompile to work under the 64 bit to make it installable over then.
I can be worn even a bit of your time because the one small concern that I meet now is that the port ttyHS1 am willing to engage in the session as "Root" and not under my personal session, I therefore seeks to know how do so under my session it works without me connect as "root" so that it works?
In my opinion it was can change a file "39_hso-udev.rules" ? giving that any user can launched the connection on port !
Thank you again and in advance for this information. |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 510 Location: UK and Belgium

|
Posted: Sat May 31, 2008 12:21 am Post subject: |
|
|
Congratulations on making progress. [I will ask the author of the rezero command to look in to the 64-bit compilation for a future release.]
| twentyfour-fr wrote: |
In my opinion it was can change a file "39_hso-udev.rules" ? giving that any user can launched the connection on port !
. |
MODE 666 will allow read/write for every one. It works for me! Check what your system has set the ports too.
Also check the rezero command SETUID bit and make sure that the hsoc package is read for all users (and the directories are rwx for everyone).
Have fun,
Paul |
|
| Back to top |
|
 |
twentyfour-fr
Joined: 26 May 2008 Posts: 13

|
Posted: Sat May 31, 2008 12:42 am Post subject: |
|
|
Sorry, I d'ont understand this !
| Quote: |
Also check the rezero command SETUID bit and make sure that the hsoc package is read for all users (and the directories are rwx for everyone). |
Can you explain me ?
Yes, ttyHS0-3 is created in my "/dev" file, in my session "quentin" but in HSO connect this error :
| Quote: | | Init serPort /dev/ttyHS1Could not open port: [Errno 13] Permission non accordée: '/dev/ttyHS1' |
In "Root" this error does not appear and connection is fonctional, but my session, no.
What ?
Thank you. |
|
| Back to top |
|
 |
Paul Site Admin
Joined: 08 Oct 2004 Posts: 510 Location: UK and Belgium

|
Posted: Sat May 31, 2008 3:57 pm Post subject: |
|
|
| Quote: | | Init serPort /dev/ttyHS1Could not open port: [Errno 13] Permission non accordée: '/dev/ttyHS1' |
Make sure the udev rule exists /etc/udev/udev.rules/39_hso-udev.rules:
| Code: | # send rezero command via usb_storage driver for all ZCOPTION devices
SUBSYSTEMS=="scsi", ATTRS{vendor}=="ZCOPTION", KERNEL=="sg[0-9]*", RUN+="/usr/sbin/rezero /dev/%k"
KERNEL=="ttyHS?", [b]MODE="0666",[/b]OWNER="root",GROUP="uucp" |
On my system the ports look like this:
| Code: | [paul@localhost ~]$ ls /dev/ttyHS?
/dev/ttyHS0 /dev/ttyHS1 /dev/ttyHS2
[paul@localhost ~]$ ls -al /dev/ttyHS?
crw-rw-rw- 1 root uucp 248, 0 2008-05-31 17:49 /dev/ttyHS0
crw-rw-rw- 1 root uucp 248, 1 2008-05-31 17:49 /dev/ttyHS1
crw-rw-rw- 1 root uucp 248, 2 2008-05-31 17:49 /dev/ttyHS2 |
Cheers,
Paul |
|
| Back to top |
|
 |
twentyfour-fr
Joined: 26 May 2008 Posts: 13

|
Posted: Mon Jun 09, 2008 12:16 am Post subject: |
|
|
yes it exists here and the content of my file:
| Quote: | # send rezero command via usb_storage driver for all ZCOPTION devices
SUBSYSTEMS=="scsi", ATTRS{vendor}=="ZCOPTION", KERNEL=="sg[0-9]*", RUN+="/usr/sbin/rezero /dev/%k"
KERNEL=="ttyHS?", MODE="0666",OWNER="root",GROUP="uucp"
|
On my system the ports look like this:
| Quote: | [quentin@localhost dev]$ ls /dev/ttyHS?
/dev/ttyHS0 /dev/ttyHS1 /dev/ttyHS2 /dev/ttyHS3
[quentin@localhost dev]$ ls -al /dev/ttyHS?
crw-rw---- 1 root uucp 248, 0 jun 9 01:59 /dev/ttyHS0
crw-rw---- 1 root uucp 248, 1 jun 9 01:59 /dev/ttyHS1
crw-rw---- 1 root uucp 248, 2 jun 9 01:59 /dev/ttyHS2
crw-rw---- 1 root uucp 248, 3 jun 9 01:59 /dev/ttyHS3
[quentin@localhost dev]$
|
But not fonctional in my session, but in root session is ok
Why?
How to solve my problem? I followed the letter your entire tutorial and nothing done.
I understand that. |
|
| Back to top |
|
 |
martijnv
Joined: 01 Feb 2007 Posts: 10

|
Posted: Wed Jun 11, 2008 10:45 am Post subject: |
|
|
| twentyfour-fr wrote: |
On my system the ports look like this:
| Quote: | [quentin@localhost dev]$ ls /dev/ttyHS?
/dev/ttyHS0 /dev/ttyHS1 /dev/ttyHS2 /dev/ttyHS3
[quentin@localhost dev]$ ls -al /dev/ttyHS?
crw-rw---- 1 root uucp 248, 0 jun 9 01:59 /dev/ttyHS0
crw-rw---- 1 root uucp 248, 1 jun 9 01:59 /dev/ttyHS1
crw-rw---- 1 root uucp 248, 2 jun 9 01:59 /dev/ttyHS2
crw-rw---- 1 root uucp 248, 3 jun 9 01:59 /dev/ttyHS3
[quentin@localhost dev]$
|
But not fonctional in my session, but in root session is ok
Why?
|
probably you need to add your user account to the uucp group. or change the permissions on the devices to be crw-rw-rw- instead of crw-rw---
You can add yourself to the group by editing (as root) /etc/group find the uucp group and add your username to the end of the line |
|
| Back to top |
|
 |
timlau
Joined: 27 Jun 2008 Posts: 1

|
Posted: Fri Jun 27, 2008 11:34 am Post subject: Fedora 9 RPMS |
|
|
Hi Paul
Thanks for all the great work you have done
I working on making Fedora 9 RPMS of all the tools needed by HSOConnect
they are located here:
http://timlau.fedorapeople.org/files/packages/hso/
My rpms sould me the Fedora 9 howto much easier.
Is the there a source tarball of HSOConnect available some where, i would like to repackage it, with deps to my rpms and get most of the rpms included in the Fedora 9 repositories. (All except dkms-hso).
I have seen somewhere that the hso moudule will get included in the upstream kernel, is that right ?
It would be very nice if the different tarball was available directly to be linked at in the specfiles.. |
|
| Back to top |
|
 |
borge
Joined: 13 Aug 2008 Posts: 1

|
Posted: Sun Aug 17, 2008 9:18 pm Post subject: a solution to enable non root user to start the aplication |
|
|
1. I edited the udev rule so that GROUP="uucp" in stead of GROUP="root"
| Code: | su
gedit /etc/udev/rules.d/39_hso-udev.rules |
| Quote: | # send rezero command via usb_storage driver for all ZCOPTION devices
SUBSYSTEMS=="scsi", ATTRS{vendor}=="ZCOPTION", KERNEL=="sg[0-9]*", RUN+="/usr/sbin/rezero /dev/%k"
KERNEL=="ttyHS?", MODE="0666",OWNER="root",GROUP="uucp" |
2. Then I made myself member of the uucp group
| Code: | su
usermod -G uucp my_username
|
3. Then I changed the group for the the HSOconnect folder
| Code: | su
chgrp uucp /tmp/HSOconnect/
|
4. Then I changed the permissions for the HSOconnect folder
| Code: | su
chmod 775 /tmp/HSOconnect
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|
|
|
|