I have to share cd-rom and printer to network which contains windows and linux machines. For this solve I have got: a rpi 3 b+, hp deskjet 2520hc printer and cd-rom reader/writer (transcend).

  • Plug each of your devices into your ethernet network and follow each manufacturers instructions. For Raspberry Pi, search "How do I get Raspberry Pi on my network?". In general, start with wired connections before attempting wifi.
    – OyaMist
    Commented Jun 18, 2018 at 16:15
  • cd-rom reader is a basic reader with usb connection which don't have network functions
    – danil _
    Commented Jun 18, 2018 at 16:22

1 Answer 1


Install the samba server:

rpi ~$ sudo apt update
rpi ~$ sudo apt full-upgrade
rpi ~$ sudo apt install samba

It description (apt show samba) says:

SMB/CIFS file, print, and login server for Unix
Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file and printer sharing with Microsoft Windows, OS X, and other Unix systems.

Edit /etc/smb.conf and configure the server to your needs. There are some examples in it and you get tons of information for this on the internet.

To connect a linux client to a smb share you need smbclient and/or cifs-utils.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.