LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 04-30-2007, 03:36 AM   #1
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Rep: Reputation: 30
help me -> c++ and linux in controlling hardware devices


after 5 days of self-study in using linux, i can say that i have improved for about 50%, specially with the command line and the bash scripting(thanks to linuxquestions.org, where i got a big help to mods and fellow members)...now,im almost ready to learn c++ using linux as my environment...and my training starts today...part of my c++ training is to be able to control hardware devices(specifically dvd-rom, hard disk)..sadly, i am not yet familiar on how to control these hardware in the command line interface/bash scripting...do anybody here knows a tutorial that i could use for my training...before diving to c++ language, i want my self to be armed ultimately with linux commands...im planning to start first in creating a script that will control the dvd-rom to open and close(since linux treats hardware devices as files)...it would be of good help if you can post tutorials or sample commands/scripts for my reference...help! lol...im half there dude, thank you to everyone here...

Last edited by jaepi; 04-30-2007 at 03:39 AM.
 
Old 04-30-2007, 08:52 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I don't want to discourage you, but "5 days of self-study on Linux" is probably not the halfway point to writing device drivers in C++....

Do you already have some programming skills? What languages do you already know?

I am currently working my way thru "Beginning Linux Programming" from Wrox. There is a chapter on device drivers. Another popular book is "Linux Device Drivers" by Greg Kroah-Hartman. Both of these--and others--should be on Amazon.

Google will probably give a bazillion hits also.
 
Old 05-01-2007, 07:19 PM   #3
jaepi
Member
 
Registered: Apr 2007
Location: Urban Jungle
Distribution: Ubuntu
Posts: 189
Blog Entries: 1

Original Poster
Rep: Reputation: 30
hehe..maybe 10%...i have to learn a lot from linux, i think..im a java programmer..and it's my first time to handle both linux and c++ programming..what about the net, is there any online tutorial? iv'e been googling around and i get no good response..
 
Old 05-02-2007, 01:03 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I have found lots of tutorials and such, but not necessarily for C or C++. I think you need to buy at least one book.
 
Old 05-02-2007, 04:15 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Find the source for the command line tool 'eject'. It opens
and closes CD-ROM trays.

http://www.ibiblio.org/pub/Linux/uti...t-2.1.5.tar.gz



Cheers,
Tink

Last edited by Tinkster; 05-02-2007 at 04:18 AM. Reason: link added
 
Old 05-02-2007, 06:04 AM   #6
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Mint 17
Posts: 582

Rep: Reputation: 135Reputation: 135
There are lots of tutorials and such here: CProgramming. I have been using the site quite a bit. Not sure if it has what you are looking for but it is a place to start.

John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
list the hardware devices encryptakey Linux - Hardware 7 11-21-2006 06:56 PM
how to install hardware devices mandrakelinux Slackware 15 12-03-2005 06:32 PM
Mounting USB Devices--Controlling the dev file lawrencegoodman Linux - Hardware 1 03-08-2004 04:57 PM
obtaining information about controlling devices infamous41md Programming 2 03-07-2004 12:24 PM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration