ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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 another two questions here and wondering if I could get help.
1. I need to write (or copy) a simple program to send some texts to the printer connected to the parallel port. I have found this page to write program fragment in user mode : http://kernelnewbies.org/documents/k...book/x886.html
I do not need a complex driver (program). Do you have some other useful links?
2. What file(s) I should modify and how to modify to let linux start up directly into my account (without the name and password) prompt, and how to automatically excecute a program after this?
by captainstorm 1. I need to write (or copy) a simple program to send some texts to the printer connected to the parallel port. I have found this page to write program fragment in user mode : http://kernelnewbies.org/documents/...tbook/x886.html
I do not need a complex driver (program). Do you have some other useful links?
anything wrong with cat file > /dev/printerdevice
by captainstorm 2. What file(s) I should modify and how to modify to let linux start up directly into my account (without the name and password) prompt, and how to automatically excecute a program after this?
why does it need to log you in?? just put the command you wanna execute in your rc.local, rc.sysinit or whatever its called.
The 1st program slice I should integrate into the main stream. Can you show me some directions how to use bash in C?, Or maybe just use the User-Level driver can do.
As for the second, I am also looking at this rc.sysinit, inittab, etc. But I think it is necessary to modify the after the last module has been loaded. In /etc/rc3.d the last module I think should be S99local. Do you mean I could modify here?
It seems to me like he wants linux to automatically boot to his user account, without a display manager or command line prompt.
If you are using KDM as your display manager you can go into Kcontrol and tell KDM to automatically log you in when it starts up.
As for automatic execution ofyour program, the safest options would either to add a line to your rc.local but instead using the
command "su -l user -c command" , without quotes. If it is an program that needs X, id use either kde or gnome's autostart features...if you user kde/gnome that is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.