Samba Server
#16
Okay I am a total ubuntu/linux noob and tried to do this with no luck. Every time I try and access files like smb.conf I am unable to edit, delete or even replace the file. I tried on the revo and thru putty. Using putty I logged in as root and still couldn't access the file without getting a permission denied error.

Any specific help on how to do this will be appreciated.

Thanks
Reply
#17
sounds like the filesystem is mounted readonly. run the command 'mount' and show us the output.

if that is the case, you can try to remount it by running:

Code:
sudo mount -o rw,remount /
Reply
#18
miked2024 Wrote:sounds like the filesystem is mounted readonly. run the command 'mount' and show us the output.

if that is the case, you can try to remount it by running:

Code:
sudo mount -o rw,remount /

Thanks for the reply. I tried the command quoted above after running "sudo mount" first and getting this result:

(T: XBMCLive)xbmc@XBMCLive:~$ sudo mount
unionfs on / type unionfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda3 on /home type ext3 (rw)

On a different note I installed the Aeon65 skin and curiously there are no backdrops being displayed at all. When I went into the settings section for that skin I went to browse for backdrops. I could not acess any folders except for:

/home/xbmc/Music
/home/xbmc/Pictures
/home/xbmc/Folders

Is that normal? There are files that should be displayed in /home/xbmc/.xbmc/skin/aeon65 1.0-temmi2000/media/backdrops
Reply
#19
hrm. mount output looks good (everything is mounted rw). can you pastebin the output of the 'dmesg' command, and the /var/log/messages file?

also, what's the output when you do 'ls -al' in /etc/samba?

as a shot in the dark, try to edit the /etc/samba/smb.conf file and when you write-quit do ':wq!' to force a write.
Reply
#20
miked2024 Wrote:hrm. mount output looks good (everything is mounted rw). can you pastebin the output of the 'dmesg' command, and the /var/log/messages file?

also, what's the output when you do 'ls -al' in /etc/samba?

Okay... the dmesg result is HERE. I don't know if I got it all because I don't know how to stop the text a page at a time like in dos.

The /var/log/messages file contents are HERE

Output of output when you do 'ls -al' in /etc/samba is:

total 32
drwxr-xr-x 2 root root 4096 2009-11-11 16:49 .
drwxr-xr-x 80 root root 4096 2009-11-11 19:38 ..
-rw-r--r-- 1 root root 18 2009-11-11 16:49 dhcp.conf
-rw-r--r-- 1 root root 8 2009-10-01 14:44 gdbcommands
-rw-r--r-- 1 root root 12416 2009-11-10 04:13 smb.conf

Quote:as a shot in the dark, try to edit the /etc/samba/smb.conf file and when you write-quit do ':wq!' to force a write.

(T: XBMCLive)xbmc@XBMCLive:~$ /etc/samba/smb.conf
-bash: /etc/samba/smb.conf: Permission denied

Can you give me more specific command to use? I'm really new and when I was trying to edit before it was by doing it locally and copying it over.

Thanks
Reply
#21
XELOR Wrote:(T: XBMCLive)xbmc@XBMCLive:~$ /etc/samba/smb.conf
-bash: /etc/samba/smb.conf: Permission denied

Can you give me more specific command to use? I'm really new and when I was trying to edit before it was by doing it locally and copying it over.

Thanks

that's your problem, right there. when you just provide the file name the shell attempts to execute the file (as if it were a program). you need to edit the file. try 'sudo vi /etc/samba/smb.conf' add your code at the very bottom of the file (SHIFT-g to go to the last line, letter 'o' to open a new line below the current, then add your text, hit 'esc' and write-quit ':wq')

then 'sudo /etc/init.d/samba restart'
Reply
#22
Okay small problem. I went in and pressed o for the next line and pasted to code. After that I could not exit the file properly? Is there a command to finished editing? When I pressed esc it didn't seem to do return me to the prompt. I tried to type the command provided but it seemed to get mixed in with the file I was editing. Then I got frustrated and closed putty. Tried again and the same thing happened. Now I have two swap/temp files I cant get rid of. This permission denied thing is really getting on my nerves. I feel like just starting over with a new install Sad
Reply
#23
Thanks for all the help. sudo apt-get install samba worked with xbmc live no problems.
Reply
#24
Ok i have tried these steps and get an error "Couldn't find package samba"

Im running xbmc 9.11 beta 1, i used the ctrl alt f2 to get command line, i entered the command "sudo apt-get install samba" i then get

"E: Couldn't find package samba"

Linux guys any help. Just looking at this i would say that its looking local for the instal pack and is not going out to the web?

Birnie
Reply
#25
birnie Wrote:Ok i have tried these steps and get an error "Couldn't find package samba"

Im running xbmc 9.11 beta 1, i used the ctrl alt f2 to get command line, i entered the command "sudo apt-get install samba" i then get

"E: Couldn't find package samba"

Linux guys any help. Just looking at this i would say that its looking local for the instal pack and is not going out to the web?

Birnie

Hi guys,
I have the same problem "E: Couldn't find package samba", and like i'm a total noob in linux......Sad

OK I find the solution for the downloading problem :
We need first to add extra repositories and then it's work !
Reply
#26
Ok i used pico to edit the file, but my live ver does not contain any souce lists but the cdrom. Can you please post the source list you used to install samba. I did a seach on the net and found these but they dont seem to work.

deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

Thanks

Birnie
Reply
#27
I also added these:

deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates

deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

I keep getting an error now:

The following packages have unmet dependencies:
samba: Depends: update-inetd but it is not installable
Recommends: logrotate but it is not installable
Reply
#28
Working using sources list from:

http://forum.xbmc.org/showthread.php?tid=62487 post 9
Reply
#29
After numerous problems I finally solved samba installation problem (with XBMC Live on USB stick) with this http://www.linuxquestions.org/questions/...-1-171107/, port #6
Reply
#30
i ahve done everything.. and it looks okej..

but what is the name on the "server" ?

\\Xbmc ? if so it dont work =(

I have:
Windows 7
Xbmc Live USB (9.11 Beta1)
Reply

Logout Mark Read Team Forum Stats Members Help
Samba Server0