2015-09-14, 19:51
Ah done it now lol
Ive renamed it Frontoom so as soon as i entered \\Frontroom i was straight on
Ive renamed it Frontoom so as soon as i entered \\Frontroom i was straight on
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue ([email protected])
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
# samba.conf
# This configuration file allows you to customize the samba shares
# available from your machine
[global]
server string = OpenELEC
workgroup = WORKGROUP
netbios name = %h
security = share
guest account = root
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
# Using the following configurations as a template allows you to add
# writable shares of disks and paths under /storage
[.kodi]
path = /storage/.kodi
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/.kodi
[Storage]
path = /storage
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage
[Update]
path = /storage/.update
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/.update
[Videos]
path = /storage/videos
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/videos
[Music]
path = /storage/music
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/music
[TV Shows]
path = /storage/tvshows
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/tvshows
[Recordings]
path = /storage/recordings
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/recordings
[Downloads]
path = /storage/downloads
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/downloads
[Pictures]
path = /storage/pictures
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/pictures
[Emulators]
path = /storage/emulators
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/emulators
[Configfiles]
path = /storage/.config
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/.config
[Userdata]
path = /storage/.kodi/userdata
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/.kodi/userdata
[Screenshots]
path = /storage/screenshots
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/screenshots
[Logfiles]
path = /storage/logfiles
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/logfiles
root preexec = createlog
[Backup]
path = /storage/backup
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/backup
(2015-09-14, 19:17)trogggy Wrote:(2015-09-14, 19:06)J_E_F_F Wrote: make sure you start with \\ and not //Good spot - just tried that ('//') and I got what Steve saw.
ie. \\192.168.1.1
Hopefully solved...?
(2015-09-14, 20:07)Steve_uk Wrote: Back again
Ive added them lines to the samba.conf.sample and rebooted but the .kodi and storage are still not showing
Do they have to be in a certain position to work
here's the code in my file
(2015-09-14, 19:08)Steve_uk Wrote: Thanks again its just come up with this though about invalid option h i've tried changing the letter h to another but think find i got it wrong.
Any ideas ?
Code:sort: invalid option -- 'h'
BusyBox v1.23.2 (2015-08-21 12:12:44 CEST) multi-call binary.
Usage: sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...
Sort lines of text
-b Ignore leading blanks
-c Check whether input is sorted
-d Dictionary order (blank or alphanumeric only)
-f Ignore case
-g General numerical sort
-i Ignore unprintable characters
-k Sort key
-M Sort month
-n Sort numbers
-o Output to file
-k Sort by key
-t CHAR Key separator
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline
-mST Ignored for GNU compatibility
xargs: du: terminated by signal 13
(2015-09-14, 11:05)rascas Wrote: Don't know if there is any addons, but you can easily do this in a terminal:
List files by size, biggest on top and direct the output to a file:
Code:find . -type f -print0 | xargs -0 du -h | sort -rh > bigfiles.txt
List dirs by size, biggest on bottom (less output):
Code:du -h | sort -h
find . -type f -print0 | xargs -0 du -k | sort -rn > bigfiles.txt
du -m | sort -n
(2015-09-14, 20:25)Milhouse Wrote:(2015-09-14, 20:07)Steve_uk Wrote: Back again
Ive added them lines to the samba.conf.sample and rebooted but the .kodi and storage are still not showing
Do they have to be in a certain position to work
here's the code in my file
Don't add the lines to samba.conf.sample - copy samba.conf.sample to samba.conf and add your lines to samba.conf.
(2015-09-14, 20:55)trogggy Wrote:(2015-09-14, 20:07)Steve_uk Wrote: Back againLooks fine.
Ive added them lines to the samba.conf.sample and rebooted but the .kodi and storage are still not showing
Do they have to be in a certain position to work
At a guess your edited file is called samba.conf.sample or samba.conf.txt...?
(2015-09-14, 21:24)rascas Wrote:(2015-09-14, 19:08)Steve_uk Wrote: Thanks again its just come up with this though about invalid option h i've tried changing the letter h to another but think find i got it wrong.
Any ideas ?
Code:sort: invalid option -- 'h'
BusyBox v1.23.2 (2015-08-21 12:12:44 CEST) multi-call binary.
Usage: sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...
Sort lines of text
-b Ignore leading blanks
-c Check whether input is sorted
-d Dictionary order (blank or alphanumeric only)
-f Ignore case
-g General numerical sort
-i Ignore unprintable characters
-k Sort key
-M Sort month
-n Sort numbers
-o Output to file
-k Sort by key
-t CHAR Key separator
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline
-mST Ignored for GNU compatibility
xargs: du: terminated by signal 13
(2015-09-14, 11:05)rascas Wrote: Don't know if there is any addons, but you can easily do this in a terminal:
List files by size, biggest on top and direct the output to a file:
Code:find . -type f -print0 | xargs -0 du -h | sort -rh > bigfiles.txt
List dirs by size, biggest on bottom (less output):
Code:du -h | sort -h
Yes, OpenELECs sort command doesn't have -h option.
Try this:
List files by size in kilobytes, biggest on top and direct the output to a file:
Code:find . -type f -print0 | xargs -0 du -k | sort -rn > bigfiles.txt
List dirs by size, in megabytes, biggest on bottom (less output):
Code:du -m | sort -n