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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-16-2005, 01:26 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Posts: 5
Rep:
|
Symobolic LInk to Devices Missing on Reboot
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.
|
|
|
01-16-2005, 03:03 PM
|
#2
|
Member
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139
Rep:
|
What are you attempting to accomplish?
|
|
|
01-16-2005, 03:21 PM
|
#3
|
LQ Newbie
Registered: Jan 2005
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
01-16-2005, 03:45 PM
|
#4
|
Member
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139
Rep:
|
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.
|
|
|
01-16-2005, 04:12 PM
|
#5
|
LQ Newbie
Registered: Oct 2004
Posts: 14
Rep:
|
is that possible to write this command into .bashrc?
|
|
|
01-16-2005, 07:09 PM
|
#6
|
Member
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121
Rep:
|
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.
|
|
|
01-16-2005, 07:38 PM
|
#7
|
LQ Newbie
Registered: Jan 2005
Posts: 5
Original Poster
Rep:
|
Yes I am using 2.6 thanks for the tip. I will read up on how to make a new rule thanks.
|
|
|
01-16-2005, 10:13 PM
|
#8
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 03:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|