LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2003, 02:13 AM   #1
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 31
I have Two quesitons: 1.printer 2.startup


Hello all,

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?

Again, Thank you for any help!
 
Old 09-12-2003, 05:15 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
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.
 
Old 09-12-2003, 07:39 AM   #3
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Original Poster
Rep: Reputation: 31
Thank you Kev82 you are the best I believe.

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?

Many thanks to you for all the help
 
Old 09-12-2003, 09:24 AM   #4
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
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.
 
Old 09-12-2003, 09:55 AM   #5
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Original Poster
Rep: Reputation: 31
Thank you all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some quesitons rilians Slackware 4 07-01-2004 12:36 PM
printer startup tgkspike Linux - Software 0 05-08-2004 10:31 PM
Newbie Ask you some quesitons after installing RH:) acer_peri Red Hat 2 11-29-2003 11:41 AM
A few newbie quesitons about RedHat 9. XMMS freezed up, how can I force kill the app sabaka Linux - Software 8 10-03-2003 08:23 AM
convert from IIS 5 to Apache quesitons mac_casey Linux - Networking 6 07-03-2002 03:14 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration