Author Topic: Finally got around to networking the house  (Read 44972 times)

0 Members and 2 Guests are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2104
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #90 on: November 24, 2011, 08:21:37 pm »
how do I start and stop the service without rebooting as I'm having to do that every time I make a change...

Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #91 on: November 24, 2011, 08:27:32 pm »
AFAIK -

Code: [Select]
sudo service ushare restart

but if that gives you problems ..

Code: [Select]
sudo killall ushare

should terminate it :)

then just restart it
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

The Linux Community Forum

Re: Finally got around to networking the house
« Reply #91 on: November 24, 2011, 08:27:32 pm »

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2104
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #92 on: November 24, 2011, 08:31:47 pm »
[email protected]:~$ sudo service ushare restart
[sudo] password for peter:
 * Stopping uShare UPnP A/V & DLNA Media Server: ushare                         start-stop-daemon: warning: failed to kill 1438: No such process
                                                                         [ OK ]
 * Starting uShare UPnP A/V & DLNA Media Server: ushare                  [ OK ]
[email protected]:~$

Is that what you meant???

Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2104
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #93 on: November 24, 2011, 08:36:11 pm »
Tried the 2 folders test and it doesn't like having to share both, it just shares the 'Win-Storage' when asked to share both???

Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #94 on: November 24, 2011, 08:38:40 pm »
Very strange .. try calling one folder test2 .. and adjusting the paths in ushare.conf

I'm guessing the way you are starting it, ie.:
Code: [Select]
ushare -x
isn't starting it as a service.

Either try:
Code: [Select]
sudo killall ushare
or
Code: [Select]
ushare stop

then start it again with:
Code: [Select]
ushare -x
or
Code: [Select]
sudo service ushare start
« Last Edit: November 24, 2011, 08:43:18 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

The Linux Community Forum

Re: Finally got around to networking the house
« Reply #94 on: November 24, 2011, 08:38:40 pm »

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2104
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #95 on: November 24, 2011, 08:40:05 pm »
I've named them TESTA and TESTB and both had a DIVX in that I KNOW works

Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #96 on: November 24, 2011, 08:45:40 pm »
maybe it didn't get restarted properly .. see above, or reboot.

and also, restart the Xbox.

If that STILL doesn't work .. maybe you are right about the 2 drives thing, though I can't see why

I'm guessing they are different films ? .. do they both have an AVI extension ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2104
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #97 on: November 24, 2011, 08:56:32 pm »
I'm guessing they are different films ? .. do they both have an AVI extension ?

AFAIK 'divx' as they were converted with DivX Converter.
how can I find out the info on a file?

Kubuntu 18.04LTS 64bit|KDE 5.47.0|Plasma 5.12.19|QT 5.9.5|Linux 5.4.0.54-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #98 on: November 24, 2011, 09:02:30 pm »
Change the extension to .avi .. they should still work .. and see what happens then.

You can always change it back again :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

The Linux Community Forum

Re: Finally got around to networking the house
« Reply #98 on: November 24, 2011, 09:02:30 pm »

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #99 on: November 26, 2011, 10:19:13 pm »
I think you might be chasing shadows here.
I gave up on trying to share more than one folder.
I wanted to share music, videos and pictures (all on the same drive) but could only ever see the first  folder in the list.
It's not an xbox issue, the tv gave the same results (only seeing one folder) so I think it's either a ushare issue or a syntax problem.
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #100 on: November 26, 2011, 10:38:40 pm »
IGNORE THIS POSTING .. it doesn't work .. but see my next posting

According to the ushare.conf comments, multiple directories can be separated by EITHER a space, or a comma.

Quote from: ushare.conf
# Directories to be shared (space or CSV list).

has anyone tried a space ?

as in:
USHARE_DIR=/media/Win-Video /media/Win-Storage

rather than:
USHARE_DIR=/media/Win-Video,/media/Win-Storage
« Last Edit: November 26, 2011, 11:42:25 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #101 on: November 26, 2011, 11:41:54 pm »
Nope, just tries to read the whole string as one and says there is no such folder.
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #102 on: November 26, 2011, 11:46:21 pm »
OK, I've cracked it .. well more of a workaround really

First Create a directory in your home directory and call it Ushare

Set the share line in ushare .conf to:
Code: [Select]
USHARE_DIR=/home/<username>/Ushare
(obviously replace <username> with YOUR username)

Then create symlinks in that directory to the directories you want to share.

If you don't know how to create a symlink .. tell me all the directories you want to share and I'll give you the correct commands.



In this case ..

The command for creating a (soft) symlink is in the format:-
ln -vfs /path/to/target/directory /path/to/where/you/want/to/create/the/symlink/symlink-name

So lets say I wanted to share these 3 directories -
/home/mark/Music
/home/mark/Pictures
/home/mark/Videos

the 3 commands to create the symlinks in /home/mark/Ushare would be:-

ln -vfs /home/mark/Music /home/mark/Ushare/Music
ln -vfs /home/mark/Pictures /home/mark/Ushare/Pictures
ln -vfs /home/mark/Videos /home/mark/Ushare/Videos



Once you've created the symlinks and edited the ushare.conf .. you'll have to restart both Ushare and the Xbox



For GUI method(s) of creating a symlink .. see here:
http://linuxforums.org.uk/index.php?topic=9716.msg69907#msg69907
« Last Edit: November 27, 2011, 02:12:12 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #103 on: November 27, 2011, 12:31:05 am »
I'm trying to learn this stuff from books rather than just be given the answers, so if I understand correctly
Code: [Select]
ln -s [file path of folder I want to link to] [file path of ushare folder]
You edited your post while I was having my dinner didn't you.
« Last Edit: November 27, 2011, 12:34:50 am by galaxytdm »
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Finally got around to networking the house
« Reply #104 on: November 27, 2011, 12:41:15 am »
YES .. but also give the symlink a name, so:-

ln -s [path of file or folder I want to link to] [path of Ushare folder/symlinkname]

I also use the -v and -f options

-f  so creation is forced (in case one already exists)
and
-v so I get an output from the creation of the symlink, so I can see it worked.

hence my use of
-vfs

Quote
You edited your post while I was having my dinner didn't you.

Yes I did .. sorry, I thought it may make things clearer ;)
« Last Edit: November 27, 2011, 01:25:27 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal