when enabling sharing, always tells me services not installed but won't install. Internet connection enabled

Asked by dougpb

Trying to share folder across two Ubuntu 8.10 machines, one desk one laptop network ok, shared printing working ok

In Places, when right clicking on sharing options, tells me services not installed, click install, then says restart session. Then when I go back into sharing the same thing happens, says sharing services not installed and so on.
When trying through terminal then shares-admin, says services not installed, click install enter correct password, returns to services not installed so on and so forth...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt-get install samba

Revision history for this message
dougpb (doug-chris) said :
#2

Tried that, got a message to install samba common and smbclient instead, tried and received message saying that they were already installed and latest versions, 0 packages installed

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok cool, then you can easily add entries to /etc/samba/smb.conf using

gksudo gedit /etc/samba/smb.conf

simply add an entry like this:

[DOWNLOADS]
path = /home/andy
comment = Some stuff
browsable = yes
read only = no
writable = yes
hide dot files = yes
guest ok = yes

The thing in the brackets is the share name for the share, you will need to change the path to the share from /home/andy

save the file, then run:

sudo /etc/init.d/samba restart

you have now just shared a folder. Simple

Revision history for this message
dougpb (doug-chris) said :
#4

Edited the file ok, typed in sudo /etc/init.d/samba restart gave me a samba file error, looked in init.d directory, no samba file exists... Anyway rebooted to test, no indication from the folder that it is shared, couldn't access it from the other machine (not 100% on how to do this either though...)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

then run:

sudo apt-get --reinstall install samba

This is why you cannot do sharing from nautilus or for that fact anywhere, samba is not fully installed.

Revision history for this message
dougpb (doug-chris) said :
#6

When I try this i get a message saying that Samba (Smbclient samba-common) cannot be downloaded and cannot be re-installed

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#7

Please be sure your system is updated/upgraded with no pending packages or errors

Open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo dpkg --configure -a

give your user password when requested, you don't see nothing when you type it, then press enter.

sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo aptitude reinstall samba
sudo apt-get clean
sudo apt-get autoremove

and if is needed, then please reboot your system, type

sudo reboot

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
dougpb (doug-chris) said :
#8

followed the instructions ok, reinstall samba didn't actually install anything, it actually removed two headers,
however,
after following all the instructions and then going back through sharing options it downloaded the 3 files for samba and it has actually worked now.

Thanks for all your help.

Revision history for this message
dougpb (doug-chris) said :
#9

Thanks marcobra (Marco Braida), that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Glad you got the gold :D. If you can master the smb.conf file you can ssh onto your server to edit the file then restarting the samba process and poof another folder will be shared and you configured it remotey rather than trugging over to attend the system physically.

If you want to connect via ssh in windows you can install putty, Linux systems have an ssh client in them by default.