Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server
#9
I have a Ubuntu 18.10 headless (No desktop) server that houses some movies and ton's of files and my Music collection.
I mount the music folder on the server into all my desktops so I can use any music app to play them. I found this on "AskUbuntu" and is works great!
With some changes you can just about share anything... Big Grin
Give it a look and try it out... Later!

Code:
# Here is the process I used that I found on "Ask Ubuntu" web site:
#
This worked for me:

# Before we get started, open a TERMINAL: "Ctrl+Alt+ T" on most Ubuntu base Distro's...
sudo apt-get install cifs-utils
or
sudo apt install cifs-utils

# Created a hidden text file called 'smbcredentials' in my home folder.
# Now, "In Your Open Terminal" type the following:
echo >.smbcredentials

# Change the permissions of the file to prevent unwanted access to your credentials:
chmod 600 ~/.smbcredentials

# Now edit the newly created ".smbcredentials" file like this:
gedit or nano ~/.smbcredentials

# Add these 2 lines to the ".smbcredentials" (this was my remote samba user account details):
username=Your server Login Name
password=Your server Login Password

# Save the file and close the editor...:

# I created a folder in my /home/Your_folder/Music folder called "ServerMusic"..:
# Now open Terminal again, and change to the ~/music folder like this:
# At the prompt type..
>$ cd ~/Music

# Now type this to make a new "ServerMusic" folder:
mkdir /home/your_folder/Music/ServerMusic

# We need to edit the "fstab" but we need to make a backup just in case something FooBars...
# Open a terminal and type this:
sudo cp /etc/fstab fstab.old
# Now "hit enter" now you can "ls" the /etc directory and you should have a fstab and fstab.old files. If the we can continue:....

# Now we need to edit the /etc/ fstab file:
sudo gedit or nano /etc/fstab

# Then added the line below to the bottom of your fstab file:

//192.168.x.xxx/Music /home/your_folder/Music/ServerMusic cifs auto,credentials=/home/your_folder/.smbcredentials,iocharset=utf8

Our line will look like the:
//192.168.5.300/starbase/Master_Music_Processed_Files /home/your-name-here/Music/ServerMusic cifs auto,credentials=/home/your-name-here/.smbcredentials,iocharset=utf8

# Now save the "fstab" file and close the editor...
# Now type in the terminal the following command to test to see if the new folder will be loaded automatically when the system boots:
sudo mount -a

# After typing the mount -a command you should go back to a plain command prompt... If there is a error it will be displayed and you will have to fix it in the "fstab" or it will not work and the system will now boot to the desktop and the system will halt booting....
Good luck and enjoy your new Music folder..... Bruce
Have fun and enjoy the Music!
Big Grin
**********************************************************
Taglines of the BBS Days:
Today is the tomorrow you worried about yesterday. 
  Everybody remember where we parked. - Kirk
    Not everything in life is a 1 or a 0.
       Experience enables you to recognise a mistake when you make it again...
Reply


Messages In This Thread
Server - by muddy - 05-28-2019, 11:18 PM
RE: Server - by spudnuts - 05-29-2019, 07:11 PM
RE: Server - by muddy - 05-30-2019, 08:46 AM
RE: Server - by spudnuts - 05-31-2019, 01:46 AM
RE: Server - by muddy - 06-01-2019, 01:26 PM
RE: Server - by spudnuts - 06-01-2019, 05:47 PM
RE: Server - by muddy - 06-01-2019, 06:06 PM
RE: Server - by spudnuts - 06-02-2019, 07:40 PM
RE: Server - by bescott9944 - 06-03-2019, 12:20 AM
RE: Server - by bescott9944 - 06-02-2019, 06:13 PM
RE: Server - by bescott9944 - 06-02-2019, 07:25 PM
RE: Server - by muddy - 06-02-2019, 08:02 PM
RE: Server - by henrysay - 06-03-2019, 02:12 AM
RE: Server - by muddy - 06-03-2019, 12:42 PM
RE: Server - by bescott9944 - 06-03-2019, 07:16 PM
RE: Server - by muddy - 06-20-2019, 09:58 PM
RE: Server - by bescott9944 - 06-21-2019, 02:51 AM
RE: Server - by muddy - 06-21-2019, 04:44 AM
RE: Server - by bescott9944 - 06-21-2019, 05:13 AM
RE: Server - by muddy - 06-21-2019, 05:35 AM
RE: Server - by muddy - 06-21-2019, 11:37 AM
RE: Server - by bescott9944 - 06-21-2019, 01:09 PM
RE: Server - by muddy - 06-23-2019, 01:13 AM
RE: Server - by bescott9944 - 06-25-2019, 05:14 PM
RE: Server - by muddy - 06-25-2019, 11:43 PM
RE: Server - by bescott9944 - 06-26-2019, 02:43 AM
RE: Server - by bescott9944 - 06-26-2019, 10:17 PM
RE: Server - by muddy - 07-04-2019, 10:16 AM
RE: Server - by muddy - 07-05-2019, 12:36 AM
RE: Server <SOLVED> - by muddy - 07-05-2019, 06:32 PM
RE: Server <SOLVED> - by bescott9944 - 07-10-2019, 02:08 AM
RE: Server - by dps - 07-26-2019, 04:22 PM
RE: Server - by johnsmith101 - 04-21-2020, 08:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)