Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Not sure, but for me, dmesg in konsole tells me both /dev/ttyUSB0 and /dev/ttyUSB1 the first time I press it. The second time, it tells me the Palm is connected to /dev/ttyUSB2 and /dev/ttyUSB3.
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
Hotplugging is the problem, and unfortunately, there is no good solution, other than perhaps to create a script that kills the old daemon and restarts it.
Linux does not necessarily know where to find the palm pilot. If you point the kpilot deamon to the USB ports, it will look for it and find it where it says it is, that time. Remember USB is pretty dynamic. You can add and remove devices all day long. Unfortunately hotplugging interferes because the port address might be reassigned. Restarting the deamon is the only current solution to this.
Hotplugging in Linux is not as developed as it is in Windoze. It's pretty much an add-on technology, and devices tend to be very proprietary. That makes it difficult to get USB working well, especially with few hardware manufacturers going out of their way to help develop for Linux.
I find that if I try to synch twice with kpilot it won't work. However, if I close the program and restart it, than I am ok (I have kpilot set to close the deamon upon exit). As I said before, you can write a script that will kill and restart the process and assign it to a icon on your desktop. You can call it Pilot Refresh or something. Alternatively, set kiplot to kill the deamon on exit and close kpilot after synching like I do.
Previously, I used visudo to run sudo without a password and it works.
However, when I run the script as a regular user, I get this message:
sudo: killproc: command not found
Doesn't sudo let me run just any command, as if I were root? This is my sudoers file:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specificationxgandalf ALL=(ALL) NOPASSWD: ALL
# Defaults specification
Defaults targetpw
%users ALL=(ALL) ALL
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
myusername ALL=(ALL) NOPASSWD: ALL
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.