Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have created a symoblic link to /dev/ttyS0 called /dev/pilot. I am using Fedora 3 but on the reboot the symbolic link disappears. Also I am trying to keep the permissions to /dev/ttyS0 to 0666. Please advice so that I can keep my symbolic link and permission on reboot. Thanks in advance.
What i am trying to do is setup gnome-pilot to work with Evolution. Each time I press the Hot-Sync on the Palm Pilot it does not sync. So to check if it is working after a reboot, I use pilot-xfer -p /dev/pilot -l to check if the palm pilot is seen by the system. I get the following message:
$> pilot-xfer -p /dev/pilot -l
The device /dev/pilot does not exist..
Possible solution:
mknod /dev/pilot c <major> <minor>
Unable to bind to port: /dev/pilot
Please use --help for more information
Then I recreate the link using ln -s /dev/ttyS0 /dev/pilot as root. I rerun the pilot-xfer command and receive the following message:
$> pilot-xfer -p /dev/pilot -l
Please check the permissions on /dev/ttyS0..
Possible solution:
chmod 0666 /dev/ttyS0
Unable to bind to port: /dev/pilot
Please use --help for more information
Once I do sthe chmod command, it works.
$> pilot-xfer -p /dev/pilot -l
Listening to port: /dev/pilot
Please press the HotSync button now...
Let me know what I need to do so I do not have to setup the symbolic link and the permissions everytime I boot. Thanks for responding.
Perfect. I'm not sure which distro you are using but with Slackware, there is a file called /etc/rc.d/rc.local. It is made to be a script file that can run user specified commands whenever the computer is started up. All you do is add the necessary commands and they run each time the computer starts up.
What kernel are you using? If it's a 2.6 udev pretty much controls creation of the /dev directory and you would have to add an additional rule to create that symlink.
the permissions is easy
/etc/udev/permissions.d
and go for the one numbered earliest and in there you find permissions being set for the device
it uses the four numbers format for permissions
ignore the first number
the rest are user,group,others
4=read
2=write
1=execute
man for the link i would just put it in the bootscripts for now -- at the bottom of something that starts last or something -- i wrote mine at the bottom of my firewal script
it's a hack but the alternative is figuring out those udev rules (roll eyes)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.