The Linux Community Forum

Non-Tech Zone => General Discussion => Topic started by: galaxytdm on November 05, 2011, 09:01:41 pm

Title: Finally got around to networking the house
Post by: galaxytdm on November 05, 2011, 09:01:41 pm
Finally got around to networking the house.
Laptop (Linux)
Desktop (Linux)
Phone (Android)
TV (Samsung running Linux kernel)
Sky+
Xbox 360 (Windows based  (http://www.carpe-tdm.net/ipb/style_emoticons/default/puke.gif))

(http://i207.photobucket.com/albums/bb310/celticbiker/2011-11-05203937.jpg)

All hooked up to the interweb and to each other.
Only thing is I'm worried they might start conspiring against me.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 05, 2011, 09:12:06 pm
HAHAHA .. Linux won't conspire against you, can't talk for the Xbox though ;)

Have you got one (or all) of the Linux boxes acting as a streaming media server for Xbox 360 yet ?
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 05, 2011, 09:17:28 pm
Will have both but haven't tried either yet. Been to busy setting up Live account and streaming media from the phone to the tv.
Why do you ask? am I going to have fun setting up.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 05, 2011, 09:35:53 pm
Not in the least .. it's VERY easy .. just wondered if you had done it and/or knew how :)

Install ushare on the Linux box, then follow this guide:
http://nexus172.wordpress.com/2009/04/26/how-to-stream-video-to-your-xbox360-using-ubuntu-ushare/ (http://nexus172.wordpress.com/2009/04/26/how-to-stream-video-to-your-xbox360-using-ubuntu-ushare/)

Any problems, gimme a shout :)

Just in case it helps .. here's my /etc/ushare.conf file (obviously you'd need to set different ports and USHARE_NAME on each Linux box)

Quote
# /etc/ushare.conf
# Edit this file with 'dpkg-reconfigure ushare'
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=Marks-PC

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49201

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=1338

# Directories to be shared (space or CSV list).ushare -x
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/mark/Music,/home/mark/Videos

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string intoushare -x
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=yes

# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=no

# Enable Telnet control interface (yes/no)
USHARE_ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
USHARE_ENABLE_XBOX=yes

# Use DLNA profile (yes/no)ushare -x
# This is needed for PlayStation3 to work (among other devices)
USHARE_ENABLE_DLNA=no


Once you've edited the /etc/ushare.conf file .. SAVE it, then run:
Code: [Select]
sudo /etc/init.d/ushare stop
and
Code: [Select]
ushare -x
to restart it with the new settings.

Then just fire up your Xbox and look in Videos or Music and whatever you put it the USHARE_NAME= feild will be listed :)

From now on, ushare should start at bootup.
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 12:10:30 am
Damn, you'd think I could do this by now wouldn't you, but no, I even managed to Bu**er this up.

I installed and ran set up, changed the name to Laptop, Ushare_iface to wlan0 and added a directory to share.
Run "sudo /etc/init.d/ushare stop" then ushare -x and got

Code: [Select]
/etc/ushare.conf: 6: Laptop: not found
and something about wlan0 not working, so in my wisdom I thought I would uninstall it and re install and start again but then I got this

Code: [Select]
[email protected]:~$ sudo apt-get install ushare
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed
  ushare
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/51.6kB of archives.
After this operation, 238kB of additional disk space will be used.
Preconfiguring packages ...
/etc/ushare.conf: 6: Laptop: not found
ushare failed to preconfigure with exit status 127.
Selecting previously deselected package ushare.
(Reading database ... 160522 files and directories currently installed.)
Unpacking ushare (from .../ushare_1.1a-0ubuntu5_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up ushare (1.1a-0ubuntu5) ...
/etc/ushare.conf: 6: Laptop: not found
dpkg: error processing ushare (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 ushare
E: Sub-process /usr/bin/dpkg returned an error code (1)
[email protected]:~$ sudo dpkg-reconfigure ushare
/usr/sbin/dpkg-reconfigure: ushare is broken or not fully installed.

and I can't seem to edit the config file directly.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 12:18:59 am
ok, run:
Code: [Select]
sudo apt-get install ushare

when that's done, run:
Code: [Select]
gedit /etc/ushare.conf

and post its contents here.
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 12:22:18 am
See above post now edited
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 12:27:17 am
try this:
Code: [Select]
sudo apt-get remove --purge ushare
then if that works
Code: [Select]
sudo apt-get install ushare
and let me know if there were any errors
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 12:39:06 am
Code: [Select]
Seemed to install ok that time.
[[email protected]:~$ sudo apt-get remove --purge ushare
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  ushare*
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 238kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 160536 files and directories currently installed.)
Removing ushare ...
 * Stopping uShare UPnP A/V & DLNA Media Server: ushare                  [ OK ]
Purging configuration files for ushare ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
[email protected]:~$ sudo apt-get install ushare
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed
  ushare
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/51.6kB of archives.
After this operation, 238kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ushare.
(Reading database ... 160521 files and directories currently installed.)
Unpacking ushare (from .../ushare_1.1a-0ubuntu5_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up ushare (1.1a-0ubuntu5) ...
 * Starting uShare UPnP A/V & DLNA Media Server: ushare ]
I'll try again now.
While you're here though, how do I know which interface to use
# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

and which ports to listen to

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49201

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_ PORT=1337
USHARE_TELNET_ PORT=1338
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 12:45:50 am
USHARE_IFACE=
should be the network interface that you use to connect to your router:

Seeing that you named ushare "Laptop", I'm guessing wireless ? .. in which case it *probably* should be:
USHARE_IFACE= wlan0

do you connect wirelessly or wired ?

and what is the output from:
Code: [Select]
ifconfig

The ports should be OK as long as they aren't being used by something else (which I doubt)

but obviously, youd want to raise/lower them by +1 (or whatever) for each Linux box you run ushare on .. if you get my meaning

[edit]

you could brobably leave the
USHARE_TELNET_ PORT=
field blank if you are setting the
USHARE_ENABLE_ TELNET=no
if you wish.
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 01:11:31 am
Code: [Select]
[email protected]:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:15:c5:43:37:d6 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:112 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18340 (18.3 KB)  TX bytes:18340 (18.3 KB)

wlan0     Link encap:Ethernet  HWaddr 00:18:de:0d:4e:ba 
          inet addr:192.168.0.6  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::218:deff:fe0d:4eba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27851 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26097 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26654896 (26.6 MB)  TX bytes:5966737 (5.9 MB)
[
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 01:14:42 am
Yup that line should read:

USHARE_IFACE=wlan0

for clarity, that's a zero on the end ;)
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 01:22:02 am
Changed it from eth0 to wlan0 and this happens
Code: [Select]
[email protected]:~$ sudo /etc/init.d/ushare stop
 * Stopping uShare UPnP A/V & DLNA Media Server: ushare                  [ OK ]
[email protected]:~$ ushare -x
Interface wlan0 is down.
Recheck uShare's configuration and try again !
uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ for updates.
Initializing UPnP subsystem ...
Starting in XboX 360 compliant profile ...
UPnP MediaServer listening on 192.168.0.6:49153
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /home/celticbiker/Pictures
Found 142 files and subdirectories.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 01:27:56 am
run this:
Code: [Select]
gedit /etc/ushare.conf
and post the contents

I take it wireless is working ?
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 01:40:22 am
Code: [Select]
# /etc/ushare.conf
# Edit this file with 'dpkg-reconfigure ushare'
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=Celticbiker

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=wlan0

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49201

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/home/celticbiker/Pictures

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=yes

# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=no

# Enable Telnet control interface (yes/no)
USHARE_ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
USHARE_ENABLE_XBOX=yes

# Use DLNA profile (yes/no)ushare -x
# This is needed for PlayStation3 to work (among other devices)
USHARE_ENABLE_DLNA=no
Yup, running this laptop and the desktop on wireless.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 02:08:09 am
change this:
USHARE_OVERRIDE_ICONV_ERR=yes
to
USHARE_OVERRIDE_ICONV_ERR=

save the file, and reboot your laptop .. then see if anything displays on the Xbox, in Pictures.

Though it must be said that most of my pics come up as unreadable .. I'll work that out in a minute
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 06, 2011, 02:15:49 am
Well regardless of what it says (I know you're going to roll your eyes and tut a lot here) I hadn't actually tried it, I was just trying to configure ushare.
However I just turned the xbox on and had a look and the pictures were there so it is connected.
Thanx for your help on this so far Mark but I gotta be up @06:00 so gonna cach a few Z's.
Will get back to you tomorrow.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 06, 2011, 02:31:48 am
OK.. cya later ;)

[EDIT]

Seems that tutorial was wrong or outdated ..

The way to stop, start, or restart ushare is now:-

Stop:
Code: [Select]
sudo service ushare stop

Start:
Code: [Select]
sudo service ushare start

Restart:
Code: [Select]
sudo service ushare restart

Ushare must be stopped/started (or restarted) when new pics are added to the folder before they will be displayed on the Xbox (either manually, or via a reboot)

Pictures that the Xbox doesn't like (so far I've discovered it doesn't like .png and .gif), not only won't display, but if they are in your shared folder(s) at all, even subfolders, will stop the others displaying .. so put them somewhere else.

If you restart Ushare from the command line, you *may* have to either restart the xbox, or at least come out of Pictures, and re-enter.

other than that .. have fun :)

Any questions .. just ask ;)
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 07, 2011, 12:50:29 am
What's the correct syntax for multiple folder locations?
Would it be
file path:file path
With no spaces?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 07, 2011, 12:58:18 am
NO, they are comma separated values/paths .. so like this:

USHARE_DIR=/home/celticbiker/SharedDir1,/home/celticbiker/SharedDir2,/home/celticbiker/SharedDir3

no spaces :)

Then restart Ushare, either from the command line. or with a reboot.
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 07, 2011, 01:13:22 am
Oohh so close.
Thanx Mark
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 07, 2011, 01:14:56 am
:) .. you're welcome.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 07, 2011, 01:46:59 pm
How do I share what used to be drive 'E:' & 'F:' separate HD's on a Windows system but is now used by Ubuntu. I have no idea what the proper drive pathname should be
I don't know how to find them on this system, I cant see a directory tree like I used to in Windows.
e.g. the hard drive icons or in a different view, the drive letters and other info
Title: Re: Finally got around to networking the house
Post by: BkS on November 07, 2011, 03:43:37 pm
In Linux, drives are not assigned a drive letter, again this is a bad windows habit. The proper way to find your hard-drive, is by it's label name. Usually this is "Filesystem", "Local drive" or similar. Drives won't appear on the desktop until you mount them, however your filesystem is always mounted, due to the operating system having to use it.

Is there a reason why you want to share your "drive"? Linux doesn't share the drive as this is another advantage Linux has over Windows. However, you can share folders from inside your "home" folder, given that the machines on your network are in the same workgroup as your computer.

You can share your folders by using samba, but you'll need to install it if you haven't already. It's easy enough, in terminal you can do:

Code: [Select]
sudo apt-get install samba smbfs


or you can go into your synaptic package manager, and search for samba. Mark it for installation and then hit Apply at the top. It'll then ask you to allow it to install the dependencies it needs, you hit ok and let it do it's thing.

After you've install, reboot your computer. Once you've logged back in, goto the folder you wish to share with other computers.




Right click > Sharing options. Tick "Share this folder", and then you'll enable sharing. If you want people to have read/write access, tick the second box, and for people to see on Windows, or other OS's you'll have to tick the third one. Once you've finished, hit ok. Don't worry about the share name, or comment just leave them as they are. You simply repeat the process from sharing options with any folder you wish to share.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 07, 2011, 03:51:11 pm

Is there a reason why you want to share your "drive"?

I just want to share it to my XboX's, yes, 2 - One in the front room and other in the bedroom. And not to any other location.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 07, 2011, 03:59:14 pm
Are these isnternal drive, Partitions, or external drives ?

Can you send the output from:
Code: [Select]
mount

and
Code: [Select]
sudo fdisk -l
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 07, 2011, 04:06:02 pm
They are internal drives, Windows gave them drive lables 'E:\' & 'F:\'
I want to be able to share them to ONLY my XboX's

Mount gives;
(click to show/hide)

sudo fdisk -l gives;
(click to show/hide)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 07, 2011, 04:27:47 pm
OK, fdisk is showing that there are 4 hard drives attached to the system

/dev/sda = 500GB Linux drive  = contains 3 partitions /dev/sda1, /dev/sda2, /dev/sda5 - and that /dev/sda2 is an extended partition that contains /dev/sda2

/dev/sdb = 250GB Windows formatted - containing a single NTFS partition /dev/sdb1

/dev/sdc = 250GB Windows formatted - containing a single FAT partition /dev/sdc1

/dev/sdd = 1000GB Windows formatted - containing a single NTFS partition /dev/sdd1

mount is telling us that ONLY the Linux /dev/sda1 partition is being mounted at boot time .. which doesn't mean the other drives aren't available in the file manager .. it means when you click them in the file manager, they *become* mounted.

These drives will need to be mounted at bootup, so that Ushare can index them.

Can you run this:
Code: [Select]
gedit /etc/fstab
and post the contents of that file.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 07, 2011, 07:19:00 pm
Result of gedit /etc/fstab;

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=959cb526-06f8-4d5d-bec2-a6b42f438b07 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none            swap    sw              0       0
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 08, 2011, 11:14:36 am
Can you post the output from:
Code: [Select]
sudo blkid

Have you any idea which 2 of the 3 Windows formatted drives you want mounted ? .. or all 3 ?

Are any of these 4 drives external ?

What do you want to call the mount points .. eg. E-Drive, F-Drive, or maybe Win-F, or maybe Pictures, Videos, etc.)

Do you know how to mount the partitions by clicking on them in the nautilus file manager (so a little arrow appears next to them) ?

Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 08, 2011, 05:52:41 pm
Result of sudo blkid
(click to show/hide)

All of them to be mounted if poss.
No idea how to mount them as I am completley new to this OS as used Windows for years.

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 08, 2011, 08:49:24 pm
First, read this and understand it:
https://help.ubuntu.com/community/MountingWindowsPartitions

OK, create 3 mount points (directories) in /media

Code: [Select]
sudo mkdir /media/Win-Storage
then:
Code: [Select]
sudo mkdir /media/Win-MyDocs
then:
Code: [Select]
sudo mkdir /media/Win-Video

Now make a backup of your/etc/fstab file:
Code: [Select]
sudo cp -v /etc/fstab /etc/fstab.original
the expected output from that commnd is:
Quote
`/etc/fstab' -> `/etc/fstab.original'
if it's ANYTHING else .. STOP NOW, and let me know.

Now open /etc/fstab for editing:
Code: [Select]
gksudo gedit /etc/fstab

and add these 3 lines to the bottom:-

Code: [Select]
/dev/sdb1 /media/Win-Storage ntfs-3g defaults,user,locale=en_GB.utf8 0 0
/dev/sdc1 /media/Win-MyDocs vfat defaults,user,locale=en_GB.utf8 0 0
/dev/sdd1 /media/Win-Video ntfs-3g defaults,user,locale=en_GB.utf8 0 0

SAVE the file, but don't close it yet .. and DO NOT REBOOT.

Back in the terminal mount all the entries in /etc/fstab with:
Code: [Select]
sudo mount -a

Then test the mounts with:
Code: [Select]
nautilus /media/Win-Storage
and check if the Windows files are visible.
then:
Code: [Select]
nautilus /media/Win-MyDocs
and check if the Windows files are visible.
then:
Code: [Select]
nautilus /media/Win-Video
and check if the Windows files are visible.

If ALL 3 directories show the windows files, you are done settting up the mounts.

If NOT .. go back to the /etc/fstab file, and "comment out" those 3 lines .. so they look like this:-

Code: [Select]
# /dev/sdb1 /media/Win-Storage ntfs-3g defaults,user,locale=en_GB.utf8 0 0
# /dev/sdc1 /media/Win-MyDocs vfat defaults,user,locale=en_GB.utf8 0 0
# /dev/sdd1 /media/Win-Video ntfs-3g defaults,user,locale=en_GB.utf8 0 0

SAVE the file, and let me know which directories worked, and which didn't.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 09, 2011, 09:20:44 am

Back in the terminal mount all the entries in /etc/fstab with:
Code: [Select]
sudo mount -a

Thats as far as I got, had to open another terminal window as the first one was held up by gedit.
when I typed 'sudo mount -a' it said;
[email protected]:~$ sudo mount -a
[sudo] password for peter:
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[email protected]:~$

also, MyDocs is saying it's NTFS not FAT
[email protected]:~$ sudo blkid
[sudo] password for peter:
/dev/sda1: UUID="959cb526-06f8-4d5d-bec2-a6b42f438b07" TYPE="ext4"
/dev/sda5: UUID="e56dad6b-358f-4948-b51f-4abce81f50b1" TYPE="swap"
/dev/sdb1: LABEL="Storage" UUID="01CB4AA7A24CB100" TYPE="ntfs"
/dev/sdd1: LABEL="Video" UUID="E6A88BB6A88B83B1" TYPE="ntfs"
/dev/sdc1: LABEL="My Documents" UUID="D0BCE8B4BCE8966E" TYPE="ntfs"

Could that ne why the error above?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 09, 2011, 11:44:02 am
Yeh I had noticed that before, but fdisk had reported it as FAT, and I trusted fdisk more .. maybe a mistake :) .. anyway, as you suggest lets try mounting it as an NTFS volume then.

make those 3 lines read:-

Code: [Select]
/dev/sdb1 /media/Win-Storage ntfs-3g defaults,user,locale=en_GB.utf8 0 0
/dev/sdc1 /media/Win-MyDocs ntfs-3g defaults,user,locale=en_GB.utf8 0 0
/dev/sdd1 /media/Win-Video ntfs-3g defaults,user,locale=en_GB.utf8 0 0

and try again :)

Same rules apply .. test them afterwards and comment them out if they don't work.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 09, 2011, 07:05:40 pm
Done it and they all showed up ok.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 10, 2011, 03:02:23 am
I take it you've worked out the paths to put into the ushare.conf file ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 11, 2011, 02:07:35 pm
I take it you've worked out the paths to put into the ushare.conf file ?
Not had chance to do anything yet, bit too busy - personal stuff.
What do I need to do next to sort it?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 12, 2011, 07:25:25 pm
Well the paths to those drives are:-

/media/Win-Storage
/media/Win-MyDocs
/media/Win-Video

So just enter those (or any subdirectories) in the ushare.conf file.

But read what I said about it not being happy with certain file types, and how it can stop them ALL being displayed.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 10:58:27 am
I tried;
[email protected]:~$ dpkg-reconfigure ushare
/usr/sbin/dpkg-reconfigure must be run as root

What do I do?

I also saw you asking the OP a command;
[email protected]:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:24:8c:bc:10:83 
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::224:8cff:febc:1083/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:83160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50987 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:119980491 (119.9 MB)  TX bytes:4263978 (4.2 MB)
          Interrupt:42 Base address:0xe000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2656 (2.6 KB)  TX bytes:2656 (2.6 KB)

I have no idea what to do to the config file, the ports n that.
Also, my Xbox is connected wireless.

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 15, 2011, 11:29:18 am
If a command ever tells you it needs to be run as root .. prefix the command with sudo and a space.

So:
Code: [Select]
dpkg-reconfigure ushare
becomes
Code: [Select]
sudo dpkg-reconfigure ushare

Though it may be easier just to edit the /etc/ushare.conf file manually .. whice directories are you trying to share with the Xbox, and what is the contents of your /etc/ushare.cong file:
Code: [Select]
gedit /etc/ushare.conf


It doesn't really matter how the Xbox connects to your router, and ifconfig has just told us your PC is using eth0 as its interface, so the INTERFACE line needs to read:
USHARE_IFACE=eth0
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 06:34:22 pm
# /etc/ushare.conf
# Edit this file with 'dpkg-reconfigure ushare'
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=Ubuntu PC Shares

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/media/Storage

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=

# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=

# Enable Telnet control interface (yes/no)
USHARE_ENABLE_TELNET=

# Use XboX 360 compatibility mode (yes/no)
USHARE_ENABLE_XBOX=

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
USHARE_ENABLE_DLNA=
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 15, 2011, 08:06:13 pm
As you haven't told me which directories you wish to share .. I'm going to assume you want to share 2 of the Windows drives that we just mounted .. ie. /media/Win-Storage and /media/Win-Video

Open /etc/ushare.conf for editing:
Code: [Select]
sudo gedit /etc/ushare.conf

Now make it read -

(click to show/hide)

SAVE the file and exit gedit.

In a terminal enter:
Code: [Select]
sudo service ushare restart

Now fire up your Xbox, and see if anything is listed under Videos
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 08:40:10 pm
I did it but got this;
[email protected]:~$ sudo service ushare restart
 * Stopping uShare UPnP A/V & DLNA Media Server: ushare                  [ OK ]
 * Starting uShare UPnP A/V & DLNA Media Server: ushare                         /etc/ushare.conf: 6: PC: not found
 * No shares avalaible ...
                                                                         [ OK ]

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 15, 2011, 08:46:12 pm
have you checked on the Xbox ?

if nothing is avai;able .. reboot, then turn off the Xbox, and turn it back on .. and check again.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 09:03:26 pm
Nope... Still nothing visible
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 15, 2011, 09:07:05 pm
In a terminal enter:
Code: [Select]
nautilus /media/Win-Video

does a window open showing the contents of the Windows Video drive ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 09:13:10 pm
Yes, it opens showing files and a notification at the bottom pops up saying read only
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 15, 2011, 09:19:37 pm
Hmm .. I wonder if this is a "permissions" issue .. I've never trued sharing files via ushare that were outside my Home directory.

I'll test it later, and get back to you.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 09:23:25 pm
No probs.
In the mean time could you recommend a good read so I can understand the system and the commands a bit better
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 15, 2011, 09:30:52 pm
See if there's anything here that takes your fancy:
http://linuxforums.org.uk/index.php?topic=232.0 (http://linuxforums.org.uk/index.php?topic=232.0)

There's also the Getting Started with Ubuntu 10.10.pdf here:
http://dl.dropbox.com/u/11876059/Getting%20Started%20with%20Ubuntu%2010.10.pdf (http://dl.dropbox.com/u/11876059/Getting%20Started%20with%20Ubuntu%2010.10.pdf)
bit outdated as far as the user interface, but the command line stuff will still translate.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 15, 2011, 09:55:43 pm
Thanks for them, got lots of reading to do now.
 8)
Title: Re: Finally got around to networking the house
Post by: galaxytdm on November 15, 2011, 11:11:09 pm
Are you connected via ethernet or wirelessly with the computer you are trying to configure?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 16, 2011, 10:46:13 am
Are you connected via ethernet or wirelessly with the computer you are trying to configure?

Wired to Virgin router, the new type (I'm on 30) then it's wireless to the XboX in the front room and wired to the one in our bedroom.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 16, 2011, 01:19:39 pm
Quick question .. does the Xbox list the Ushare server at all "Ubuntu_PC_Shares" ?

Reason I ask is because BkS has had all sorts of difficulties with local networking with one of the latest virgin boxes.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 16, 2011, 02:13:20 pm
It doesn't show any, 'No computers found'
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 16, 2011, 04:02:49 pm
Post the contents of your /etc/ushare.conf file again (as it is now):
Code: [Select]
gedit /etc/ushare.conf

[EDIT]

You *are* just selecting VIDEOS on the Xbox, and NOT that Media centre thingy ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 16, 2011, 04:48:48 pm
ushare.conf ;
(click to show/hide)
If I'm thinking you mean the 'Media Centre' that didn't work for my XboX as it wasn't the Media Centre version and is not Vista or 7 (they ommitted it from the XP version I used for some reason.
Or you mean XBMC or that other one I mentioned when I first posted m message, no as I have removed XBMC as I think it's crap and the other one, I've not got.

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 16, 2011, 05:45:14 pm
Try changing the:
USHARE_NAME=Ubuntu PC Shares
line to:
USHARE_NAME=ubuntu
or
USHARE_NAME=Ubuntu_PC_Shares

Code: [Select]
sudo gedit /etc/ushare.conf

SAVE the file .. Then reboot the PC and the Xbox

As I'm not sure if spaces are allowed.

What I meant was on the Xbox360, select My Xbox > Video Library .. is the PC listed down the left hand side ?

and NOT, My Xbox > Windows Media Center
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 02:39:25 am
Nope, it's not listed.
I'm just going to retry, will post results in a few.....

[EDIT]
Neither worked
How do you know what port the XboX is on?
I've just tried it on the other XboX in the bedroom (wired) and it cant find anything either.

[EDIT]
I found this http://nexus172.wordpress.com/2009/04/26/how-to-stream-video-to-your-xbox360-using-ubuntu-ushare/ (http://nexus172.wordpress.com/2009/04/26/how-to-stream-video-to-your-xbox360-using-ubuntu-ushare/)

Scroll down to see
Then I start uShare when I need it with:

    ushare -x  (-x is for xbox compatible mode)


It works now, do/can I put that command in the ushare.conf file for it to run every time on a boot up?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 06:03:45 am
Well I'm surprised that worked, as this line:

USHARE_ENABLE_ XBOX=yes

is supposed to be putting it in xbox compatibility mode anyway ???

Anywho .. there's nothing stopping you adding that command in "Startup Applications"
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 01:51:31 pm
How do I do that?
You have probably mentioned how to do it or similar before but I am swamped with all the new commands as I am new to it all, being an ex Windows user, it was basically all done for us by the PC.
Title: Re: Finally got around to networking the house
Post by: BkS on November 17, 2011, 02:09:51 pm
Search via Application Lens (if your in Unity) - Startup Applications

In Gnome-Shell you goto Applications > System > Startup Applications (I think)

then just click new on the right.

Name: Ushare
Command: ushare -x
Comment: whatever you please.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 02:22:40 pm
I cant see anywhere to add stuff?
(http://img802.imageshack.us/img802/3305/screenshotat20111117142.th.png) (http://img802.imageshack.us/i/screenshotat20111117142.png/)
Title: Re: Finally got around to networking the house
Post by: BkS on November 17, 2011, 03:58:00 pm
I do apologize, it seems Gnome 3 does not have the Startup Applications shown as default, instead it is hidden away for some obscure reason.

So you have 2 options here.

a) We can install Alacarte (https://launchpad.net/~gnome3-team/+archive/gnome3?field.series_filter=oneiric) to re-enable Startup Applications to be shown

or

b) We can set it to startup using Terminal commands.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 03:59:36 pm
Scroll down, or enter Startup Applications into the search box (top right of your pic)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 04:01:32 pm
@BkS .. are you sure .. it's there in mine .. and I don't remember adding it ???
Title: Re: Finally got around to networking the house
Post by: BkS on November 17, 2011, 04:03:57 pm
It could have been older versions of Gnome 3, but there were a few users reporting the Startup Applications not being shown. Ofcourse there is always a work around. They may have fixed it in Gnome 3.2, I'll have to look into it.

EDIT: I just started up my Oneiric VM, seems it's there in mine as well. They must've fixed it. I'm in fallback mode for Gnome3 on Oneiric so it's in Applications > Other > Startup Applications.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 04:13:11 pm
I think you may have been reading that some of the ITEMS that used to be listed in startup applications .. Bluetooth for example .. are no longer shown .. but Startup Applications itself is still there ;)

See that list of tweaks I showed you:
http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html (http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html)

@pooky2483

If you're having problems finding it, what happens if you run:
Code: [Select]
gnome-session-properties
and hit enter

Does the Startup Applications Preferences window open ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 07:24:29 pm
I said earlier it was sorted, well, theres one slight problem, it will only share ONE drive at a time;
it wont share /media/Win-Videos if the first one is /media/Win-Storage and vice-versa.

Also when I type gnome-session-properties
I get the programs that run at bootup and can add more if I wish but cant remember how to add them/dont know where the list of programs are kept!
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 08:05:34 pm
I know you said it was sorted .. but didn't you want to run ushare -x at bootup ?

If so .. run:
Code: [Select]
gnome-session-properties

Click Add

Make the fields read:

Name: Ushare Startup
Command: ushare -x
Comment: Start the Ushare application in Xbox compatibilty mode

Click Add

Make sure the "Ushare Startup" item is ticked .. click Close

Now the ushare -x command will be run every time you boot up.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 08:55:24 pm
Thanks for that  :)

But will that sort out the fact that it only shares the first share (location) in the list?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 09:03:17 pm
I doubt it .. have you mentioned that before ?

What's the contents of /etc/ushare.conf again ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 09:33:07 pm
# /etc/ushare.conf
# Edit this file with 'dpkg-reconfigure ushare'
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=Ubuntu

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49200

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=1337

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/media/Win-Storage, /media/Win-Video

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=

# Enable Web interface (yes/no)
USHARE_ENABLE_WEB=no

# Enable Telnet control interface (yes/no)
USHARE_ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
USHARE_ENABLE_XBOX=yes

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
USHARE_ENABLE_DLNA=no
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 09:37:39 pm
Close the gap in this line:
USHARE_DIR=/media/Win-Storage, /media/Win-Video
so it reads:
USHARE_DIR=/media/Win-Storage,/media/Win-Video

also check the directory exists .. and read my waring bout stuff not being displayed if it contains stuff it doesnt like.

So it may be best to create a folder on the Win-Video drive called something like Working

change that line to:
USHARE_DIR=/media/Win-Storage,/media/Win-Video/Working

Then copy your videos into it one at a time .. and test them on the Xbox.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 17, 2011, 09:42:48 pm
When I opened a few folders before, I did notice some files with a 'No Entry' sign before the filename, so it does display all the files but some are un-playable.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 17, 2011, 10:39:28 pm
When I had some .gif images in a shared folder .. the Xbox displayed a couple of working pics, a couple of "no entry" symbols, then stopped displaying anything else .. even though there were 100's of pics in there .. removed the .gif's .. ALL were displayed.

Read into that, what you want ;)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 04:34:05 pm
Any idea whats up?

Interface eth0 is down. <-- Why's it down, how do I fix it?
Recheck uShare's configuration and try again !
uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ (http://ushare.geexbox.org/) for updates.
Initializing UPnP subsystem ...
Starting in XboX 360 compliant profile ...
UPnP MediaServer listening on 192.168.0.2:49203
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /media/Win-Video/Films
Found 2528 files and subdirectories.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 24, 2011, 04:37:51 pm
Earlier in this topic the OP reported getting the same message, but the interface was obviously working, so as long as the connection is working .. just ignore that.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 06:00:54 pm
Is there anything wrong with this?
(click to show/hide)

Ive also noticed it doesn't like folders or files with '()' used in their name
I'm also getting a 'firewall' warning and Ive not got one set up!
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 24, 2011, 06:30:27 pm
Looks fine to me :)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 06:33:37 pm
It has NO problem with my '/media/WinStorage' folder. Theres even unplayable content in there, as reported by the XboX when it tried to play the files.
It's having BIG problems with my other one, 'media/Win-Video' even with additional information added to is, such as 'media/Win-Video/Films/Films_0-9'
It just wont display ANYTHING other than the 'Win-Storage' folder???
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 24, 2011, 06:40:42 pm
media/Win-Video
and
media/Win-Video/Films/Films_0-9

Won't work because that's a non existent path .. add a preceding / so it reads

/media/Win-Video
or
/media/Win-Video/Films/Films_0-9

Also check the paths are the correct case .. Linux IS case sensitive.

Also, remember my warning about it stopping when it saw content it wasn't happy with.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 06:51:56 pm
It's found them but will ONLY display the files in the 'Win-Storage' directory/folder and not the 'Win-Films' one even though it says it found X amount of files there?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 07:00:52 pm
It looks like for some reason, I can only share ONE drive at a time even though it sees ALL the files.
Also, there are some types of '.AVI' and '.MP4'  it CAN'T play
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 24, 2011, 07:01:48 pm
OK as a test .. create a directory at /media/Win-Video/test .. and put a SINGLE film in it that you know works.

adjust the line in ushare.conf to read:
USHARE_DIR=/media/Win-Video/test

Reboot .. and test if it's seen .. if it is, re-read my warning.

then try:
USHARE_DIR=/media/Win-Video/test,/media/Win-Storage

Quote
there are some types of '.AVI' and '.MP4'  it CAN'T play


this is the Xbox, not Ushare .. the Xbox just can't read some files, it doesn't have the codecs .. convert them with Arista using the XBMC Xbox preset.

Or go here:
http://www.transcoder.org/presets/create/ (http://www.transcoder.org/presets/create/)
to create your own Arista preset .. then import it into Arista.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 07:14:29 pm
Iv'e taken note of what you said earlier.
I had a go at putting a folder with .PDF's and .TXT' in the one that I know works, theres even an .MPG in there and the contents all show up.
Are there any characters it doesn't like?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 24, 2011, 07:21:59 pm
Sorry, but I haven't got a clue .. I no longer use Ushare as I share everything to my Xbox via a Linkstation Live NAS drive.

As I said .. create a test directory, and experiment .. that's all I can suggest  :o

I'm surprised by your statement that it can only use a single drive at a time, as Linux doesn't see drives as separate entities like Windows, it just mounts them as part of the directory tree .. ushare should just see the drives as folders that are part of the directory tree that starts at / .. if you get my meaning.

I still reckon that this is something to do with a file(s) ushare doesn't like being somewhere in the paths that it is indexing.

so start off with empty test directories set in ushare.conf .. then add things to those directories till you find one that doesn't show up, or makes other things disappear .. then re-encode that file if necessary (or leave it out).

As I said .. a .gif file stopped most of my pics showing up on the Xbox .. even though the command line said ushare was finding them all .. so I think this is more about the Xbox's behavior than Ushare's.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 07:32:09 pm
so start off with empty test directories set in ushare.conf .. then add things to those directories till you find one that doesn't show up, or makes other things disappear .. then re-encode that file if necessary.

What would you recommend using?
I've been messing with Arista but if you know of a better one, I'll give that one a go...

Also... my autostart of ushare -x is tempramental, thats why I've been getting firewall warnings from my XboX.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on November 24, 2011, 07:46:21 pm
Did what you said witha test folder.
I put one DIVX format file in there and it just showed the ONE file even though I had told it to share the 'Win-Storage' folder too

USHARE_DIR=/media/Win-Storage,/media/Win-Video/TEST

I then put ANOTHER DIVX format file in the TEST folder and it changes to just showing the contents of 'Win-Storage'
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 24, 2011, 07:51:39 pm
My guess would be that it's something on the Win-Storage drive that's messing things up then.

create a test folder on BOTH drives and put a single file in each .. adjust the ushare.conf .. restart ..  what happens then ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 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...
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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
Title: Re: Finally got around to networking the house
Post by: pooky2483 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???
Title: Re: Finally got around to networking the house
Post by: pooky2483 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???
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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
Title: Re: Finally got around to networking the house
Post by: pooky2483 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
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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 ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 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?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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 :)
Title: Re: Finally got around to networking the house
Post by: galaxytdm 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.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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
Title: Re: Finally got around to networking the house
Post by: galaxytdm 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.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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 (http://linuxforums.org.uk/index.php?topic=9716.msg69907#msg69907)
Title: Re: Finally got around to networking the house
Post by: galaxytdm 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.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) 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 ;)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 27, 2011, 01:16:00 am
Another idea .. if you dont want the /home/<username>/Ushare directory to always be visible, would be to put a "." in front of its name, so it's hidden by default .. such as:-

/home/<username>/.Ushare

Put the symlinks in there .. and adjust the line in ushare.conf to:
USHARE_DIR=/home/<username>/.Ushare



If you've already created the symlinks, you don't have to recreate them .. just rename the /home/<username>/Ushare directory and change the path in ushare.conf

Then restart Ushare and the Xbox.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on November 27, 2011, 01:46:06 am
Also .. there IS a GUI method of making symlinks ..

Right-click on the file or folder you want to make a link to, and select Make Link .. you will then see a symlink with the same name but prefixed with Link to .. you can then move that link to wherever you want it.

So if you're in your home directory, and you want to create a symlink to Pictures and put it in your Ushare directory ..

1) right-click the Pictures directory, and select Make Link
2) right-click the newly created Link to Pictures symlink and select Cut
3) navigate into the Ushare directory.
4) right-click and select Paste



You can also use the middle mouse button to drag and drop a file or folder, you will then be offered a context menu that contains a Link Here option.



FYI .. Did you also know you can open another directory as a "tab" in Nautilus by middle clicking the directory.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 09:50:27 pm
I have now changed drive details so need to remove the old symlinks but don’t know how to do it.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 10:13:33 pm
I want to unlock all files and folders but don’t know how to do it.

Example of what I mean in attachment;

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 10:17:42 pm
You can just delete them through Nautilus, as they're in your home directory, so probably belong to you.

If I were you, I'd seriously consider ditching Ushare in favour of MiniDLNA .. but up to you.

what are the contents of your /etc/ushare.conf

and what directories do you want to share ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 10:21:44 pm
You can just delete them through Nautilus, as they're in your home directory, so probably belong to you.

If I were you, I'd seriously consider ditching Ushare in favour of MiniDLNA .. but up to you.

what are the contents of your /etc/ushare.conf

and what directories do you want to share ?

I've found where they are after locating the '.Ushare' folder, as you can see in the pic, 2 are 'broken' so I'll delete them.
I want to share 'Drive 3' & 'Drive4' and the one that's already there, 'Win-MyDocs'
I found (on the side) 'File System' and a folder in there called 'media' and tried to share the drive's in there called'Drive3' & 'Drive4' but it had 'make link' greyed out.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 10:22:32 pm
use the chown command to take ownership of them.

But if I'm correct, you just want to delete those symlinks ?

if so, either delete them from the command line with elevated privileges:
Code: [Select]
sudo rm /path/to/symlink 

or just start Nautilus with elevated privileges:
Code: [Select]
gksudo nautilus
then navigate to them and delete them.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 10:27:26 pm
You're posting this across multiple topics which is a little confusing .. I know I asked for "one issue per topic" .. but what I meant was "where possible".

in other words .. don't start a topic about wireless drivers, then when that's resolved, use the same topic to ask about sound drivers .. as they are unrelated.

this stuff IS related ;)

so could all really have gone under .. "Changing Ushare shared directories" or similar.

I'm trying to neaten the forum .. not fragment it ;)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 10:27:43 pm
If I were you, I'd seriously consider ditching Ushare in favour of MiniDLNA .. but up to you.

Sorry, I didnt ask about this in last post, what exactly is it and how good is it?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 10:32:07 pm
Firstly .. I've merged your last few questions here :)

MiniDLNA is similar to Ushare, but smaller, better, and seemingly more compatible.

there's a tutorial on installing it on here somewhere.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 10:46:02 pm
use the chown command to take ownership of them.

But if I'm correct, you just want to delete those symlinks ?

if so, either delete them from the command line with elevated privileges:
Code: [Select]
sudo rm /path/to/symlink 

or just start Nautilus with elevated privileges:
Code: [Select]
gksudo nautilus
then navigate to them and delete them.

I navigated to the folder and just highlighted and deleted them like that
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 10:52:07 pm
Where is it need to go to select the whole 'drive' and create a symlink to share? I'm not 100% sure as I'm getting lost in the file/folder structure?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:11:51 pm
use the chown command to take ownership of them.

I'm sorry but even after looking at man chown I am still unsure on exactly what to type
How much pf the pathname do I enter
What '-' flags do I use
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 11:14:03 pm
If you're sticking with Ushare ..

Let me know what you're trying to share

and the contents of
Code: [Select]
gedit /etc/ushare.conf

If on the other hand "where is it" means, where in the minidlna tutorial .. let me know, but I'll still need to know which directories you want to share, and the full path to them
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 11:15:36 pm
use the chown command to take ownership of them.

I'm sorry but even after looking at man chown I am still unsure on exactly what to type
How much pf the pathname do I enter
What '-' flags do I use

Is this important now .. you've already deleted the symlinks ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:17:35 pm
I'm refering to the use of chown on other files/folders

[email protected]:~$ sudo chown Pete -R /media/Drive3/lost+found
[sudo] password for peter:
Sorry, try again.
[sudo] password for peter:
chown: invalid user: `Pete'
[email protected]:~$ sudo chown Peter -R /media/Drive3/lost+found
chown: invalid user: `Peter'
[email protected]:~$
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:19:15 pm
Just seen my error, CAPS P eter, should have been 'peter'
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:22:02 pm
My last question before 'chown' took over was, where is it that I go to share the whole 'drive'?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 11:30:22 pm
I don't know, because your not telling me the path ???
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:35:43 pm
Sorry,
/media/Drive3 & /media/Drive4
I asked earlier, how I get to where the drive icon is so I could 'right-click' and select 'make link' (but not in those exact words)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:47:13 pm
If you're sticking with Ushare ..

Let me know what you're trying to share

and the contents of
Code: [Select]
gedit /etc/ushare.conf

If on the other hand "where is it" means, where in the minidlna tutorial .. let me know, but I'll still need to know which directories you want to share, and the full path to them

I completely missed this post, sorry.
I want to share the drives already mentioned, 'Drive3' and 'Drive4' as well as the one already there, 'Win-MyDocs'

I want to get ushare up and running for the time being and then look into 'minidlna'
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 18, 2012, 11:51:27 pm
Still need to see the contents of ushare.conf :)

I'm guessing it's still sharing ~/.Ushare

But it's only a guess till you show me the ushare.conf contents.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 18, 2012, 11:57:47 pm
Code: [Select]
gedit /etc/ushare.conf

(click to show/hide)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 19, 2012, 12:14:20 am
Yeh, create symlinks to them in /home/peter/.Ushare

so ..

ln -sv /media/Disk3 /home/peter/.Ushare/<whatever_you_want_to_call_the_symlink>
and
ln -sv /media/Disk4 /home/peter/.Ushare/<whatever_you_want_to_call_the_symlink>

sommat like:-

Code: [Select]
ln -sv /media/Disk3 /home/peter/.Ushare/Videos
and
Code: [Select]
ln -sv /media/Disk4 /home/peter/.Ushare/Music

OR

Code: [Select]
ln -sv /media/Disk3 /home/peter/.Ushare/Disk3
and
Code: [Select]
ln -sv /media/Disk4 /home/peter/.Ushare/Disk4

then reboot both the desktop, and the Xbox (or whatever)



MiniDLNA doesn't suffer from the same "only share a single directory bug, so have to mess with symlinks as a workaround" issue .. and uses less system resources .. and seems to be more compatible with certain devices like networkable smart TV's etc.

Though it is *slightly* more work to set up.

Just in case you (or any future readers) are interested .. the installation instructions for MiniDLNA are here:
http://linuxforums.org.uk/index.php?topic=9822.msg70397#msg70397 (http://linuxforums.org.uk/index.php?topic=9822.msg70397#msg70397)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on April 19, 2012, 12:29:48 am
All sorted, thanks Mark.
I'll have a look at the other one later today after a sleep  :D
If you could pass me the link to it that is  ;)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on April 19, 2012, 12:31:29 am
I've just added it to my last response :)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 26, 2012, 11:34:07 pm
We've now got another PC and was wondering how I link them up, including the lappy (wireless), PC's are wired, so that they can all file-share and if possible, is there a program we can use so that we can chat to each other as if using something like Yahoo or other online chat program?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 27, 2012, 12:10:22 am
By far the easiest way to set up simple chat between 2 Linux PC's on a LAN is to install and run iptux on both PC's
Code: [Select]
sudo apt-get install iptux

Then just run iptux on both machines .. it will auto discover the other PC, and you'll be ready to go

Sharing files ..

Right click on the "Public" directory, and select "Share" .. Ubuntu should do the rest for you.

Once Ubuntu has set up the share (and if you elected to allow Guest access).. anything you put the "Public" directory will be available to anyone on the LAN.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 27, 2012, 11:03:59 am
Done it, is it supposed to echo back and find myself?
I'm trying to find the PPA for it as I've seen there is version 0.5.3-1 out. The version installed is 0.5.1.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 27, 2012, 11:08:18 am
Yes it discovers ALL instances of iptux that are running on the network .. including itself. (a bit odd, but I can live with that :) )

I haven't tried it from a PPA .. and unless there's a reason to, like added functionality, or the version in the repos is broken .. I'd stick with what's in the repos.

But your call.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 27, 2012, 12:45:13 pm
the download is a .deb file, i <think> I remember how to do them, I'll have to refresh mu memory first...
If I cant do it then it wont get done lol

[EDIT]
I found the .deb package installer but the .deb file is for 32bit systems and mine's 64bit
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 27, 2012, 01:16:04 pm
Sharing files ..

Right click on the "Public" directory, and select "Share" .. Ubuntu should do the rest for you.

Once Ubuntu has set up the share (and if you elected to allow Guest access).. anything you put the "Public" directory will be available to anyone on the LAN.

Sorry, can you refresh my memory, where's 'Public' directory located, I'm thinking the file browser but cant remember what it's called in Ubuntu?

[EDIT]
Added screenshot of options for file/folder in window
I can see 'Sharing Options'... is that it?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 27, 2012, 01:31:04 pm
The "Public" directory should be in your Home directory .. but you can share ANY directory in your Home directory.

If you right-click a directory in your Home directory .. Yes, sharing options is what you're after.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 27, 2012, 02:10:59 pm
Done it but it's asking for a password, that’s after I've shared a folder not in 'Public'. I've tried mine and Jenny's password but neither work.

[EDIT]
Will putting a short-cut to the folder I want to share that’s not in the 'Share' folder inside the 'Share' folder work so that we don’t have to enter a password?

[EDIT2]
How do I get to the 'Share' folder when I'm on another PC and want to see the stuff I'm sharing from my PC?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 27, 2012, 02:59:08 pm
Right-click the folder you want to share, and when setting the share options .. be sure to allow "Guest" access .. it then shouldn't ask for a password when accessed from another PC.

To access shares from another PC .. browse the network from within the nautilus file manager.

If you're still having problems, I'll try to be more specific later .. but I'm currently not sat at an Ubuntu PC

I take it both of the PC's are running Ubuntu ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 27, 2012, 05:51:45 pm
Right-click the folder you want to share, and when setting the share options .. be sure to allow "Guest" access .. it then shouldn't ask for a password when accessed from another PC.

To access shares from another PC .. browse the network from within the nautilus file manager.

If you're still having problems, I'll try to be more specific later .. but I'm currently not sat at an Ubuntu PC

I take it both of the PC's are running Ubuntu ?

I wasn’t quite sure about the 'Guest access'
yes, the 2 PC#s and the lappy are Ubuntu

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 27, 2012, 08:58:02 pm
Still not at an Ubuntu PC, but try this (from memory) .. Open the nautilus file makager, then go to Go>Network .. you should then be able to browse the network.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 28, 2012, 09:39:03 am
Thats sorted, the next thins is, how do I get Banshee to see the music & audiobooks that are on <my> PC to the lappy? Or can't it be done, or can it by way of putting shortcuts to them in my 'Public' folder?

Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 28, 2012, 11:34:04 am
Meant to add 'from other PC or lappy'
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 28, 2012, 01:14:01 pm
I don't think that will be possible without mounting the shares through /etc/fstab
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 29, 2012, 01:13:58 pm
Willing to give that a go, is that the '-ushare' stuff?
It's all sorted so I can see all the shared stuff through my XboX's but where do I need to go to see it on another PC/lappy, I'm not sure?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 29, 2012, 02:28:43 pm
Nope .. nothing to do with Ushare.

It's to do with mounting the drives that contain your media across the network on the other PC (so they appear as locally mounted directories), so they are visible by applications on the client PC.

If you're "Willing to give this a go" .. give it a go .. I'll help if thing go wrong, but ATM I'm too busy to be doing a complete walkthrough, as it's not critical to your system working, and what you're asking is complex and time consuming.

There are plenty of tutorials online :)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 29, 2012, 03:19:17 pm
Thanks for that, I'll go take a look.
It will be useful for Mrs Pooky so she can listen to the audiobooks I have on my PC to her lappy ;D
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on July 29, 2012, 03:21:13 pm
wouldn't it be easier to just transfer them across the network, then play them locally ?

[EDIT]

Here's a coulpe of hints ..

Connect to the share by browsing the network .. then either click the file (audiobook) to open it .. copy it to somewhere local .. or once you've visited the share once (in this session) you'll find the share mounted locally in a hidden directory in your home directory ~/.gvfs

There's nothing stopping you on Mrs Pooky's PC, browsing the network to the share, then clicking Bookmarks>Add Bookmark in nautilus .. then there will be a permanent bookmark in the left-hand panel of the nautilus file manager whch will take you there directly.

This way there's no need for mounting the shares in fstab
Title: Re: Finally got around to networking the house
Post by: pooky2483 on July 29, 2012, 04:52:52 pm
wouldn't it be easier to just transfer them across the network, then play them locally ?

It would be a waste of space and pointless to have duplicates if they can be listened to via the network.

Quote
[EDIT]

Here's a coulpe of hints ..

Connect to the share by browsing the network .. then either click the file (audiobook) to open it .. copy it to somewhere local .. or once you've visited the share once (in this session) you'll find the share mounted locally in a hidden directory in your home directory ~/.gvfs

There's nothing stopping you on Mrs Pooky's PC, browsing the network to the share, then clicking Bookmarks>Add Bookmark in nautilus .. then there will be a permanent bookmark in the left-hand panel of the nautilus file manager whch will take you there directly.

This way there's no need for mounting the shares in fstab

Sounds the best idea, will give that a go
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 03, 2012, 05:57:16 pm
I just installed Ubuntu 12.04 and need to sort out sharing again, I tried following the previous instructions but got lost in it all.
I need to install ushare and mount my Hard Drives again.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 04, 2012, 08:28:55 pm
OK, can you send the output from:
Code: [Select]
sudo fdisk -l
and preferably say what you want mounting, and where .. same as last time ?

Are you sure you want to use Ushare ? .. personally I think MiniDLNA is a better option, but if you'd prefer Ushare......
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 12:53:33 am
Code: [Select]
sudo fdisk -l

(click to show/hide)

I want them all mounting and called Drive2/3/4 respectively.
How good is MiniDLNA, how easy is it to set up and use?
What's the better more user friendly and stable one of the two?

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 02:28:40 am
OK, first things first .. I can see a futer problem arising if/when you move the system stuff off the 500GB (Ubuntu 11.10) drive.

The reason .. currently (I think) you have the bootloader spread across 2 hard drives (stage 1 on the 500GB, and stage 2 on the 250GB)

Can you let me know EXACTLY how you boot to 12.04 ?

Do you have to change the boot order in the BIOS, or select the 250GB drive at the boot device selection screen ?
or
Do you just boot normally, and GRUB offers you both 11.10 and 12.04 ?

and have you still got a 12.04 LiveCD ?



DON'T DO THIS YET, but I'm thinking it would be a good idea to swap the cables of the 500GB and 250GB drives, so the 250GB drive is the primary boot device, and if necessary fix the bootloader .. otherwise you are NOT (in the future) going to be able to remove the /boot directory from the 500GB drive.

Just answer the questions above, and we'll go from there.

Ushare vs MiniDLNA .. I prefer minidlna, it seems more stable, and more compatible .. the only problem I can foresee is you saying something like "that file used to play with ushare" ignoring the faact that some that didn't play in ushare now do.

If you're asking my opinion .. I'd say mindlna is better .. but now I've said that, I just KNOW you'll disagree the second we install it, which is why I'm asking YOU.

Once configured neither need user intervention .. so I don't understand the "which is more user friendly" question ???
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 11:36:07 am
OK, first things first .. I can see a futer problem arising if/when you move the system stuff off the 500GB (Ubuntu 11.10) drive.

The reason .. currently (I think) you have the bootloader spread across 2 hard drives (stage 1 on the 500GB, and stage 2 on the 250GB)

Can you let me know EXACTLY how you boot to 12.04 ?

Do you have to change the boot order in the BIOS, or select the 250GB drive at the boot device selection screen ?
or
Do you just boot normally, and GRUB offers you both 11.10 and 12.04 ?

and have you still got a 12.04 LiveCD ?



DON'T DO THIS YET, but I'm thinking it would be a good idea to swap the cables of the 500GB and 250GB drives, so the 250GB drive is the primary boot device, and if necessary fix the bootloader .. otherwise you are NOT (in the future) going to be able to remove the /boot directory from the 500GB drive.

Just answer the questions above, and we'll go from there.

Ushare vs MiniDLNA .. I prefer minidlna, it seems more stable, and more compatible .. the only problem I can foresee is you saying something like "that file used to play with ushare" ignoring the faact that some that didn't play in ushare now do.

If you're asking my opinion .. I'd say mindlna is better .. but now I've said that, I just KNOW you'll disagree the second we install it, which is why I'm asking YOU.

Once configured neither need user intervention .. so I don't understand the "which is more user friendly" question ???

As I explained in an earlier post, like you can select whether to boot from CD Drive or HD, I can change the order in which the BIOS looks at the HD's to boot from.
So, I don't need to swap the SATA cables round, I literally do that in the BIOS.

Re the GRUB, it offers a choice of boot at the start;
Normal system
Normal system (Safe Mode)
Recovery Mode
other stuff
Boot from sda1 (the 500GBHD)
another option to boot from sda1

So, when the 12.04 drive boots, it can see there’s another bootable drive connected.

I probably meant which is easier to use in respect of beginner to pro using minidlna.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 01:06:31 pm
You're not listening (or understanding) again ;)

I KNOW you can decide which drive to boot in your BIOS (but that's not what I'm asking) .. if you are not having to do that, the bootloader is probably spread across both hard drives (which you don't want if you're going to remove the "system stuff" from the 500GB drive).

if you're planning on clearing the "system stuff" from the 500GB drive .. the 250GB drive needs to be the primary boot device (dev/sda) AND contain both parts (stage 1 AND stage 2 of the GRUB bootloader) .. to achieve this, you'll want to swap the cables over, and possibly reinstall GRUB to the 250GB hard drive.

So I repeat ..

Are you having to select the 250GB drive as the boot device in the BIOS to boot 12.04 ?
or
are you just booting to the 500GB drive (normally) and being offered 12.04 by the GRUB menu ?

and
Do you still have a 12.04 LiveCD ?

It would be easy to check if the bootloader is spread across both drives .. disconnect the 500GB drive, and see if you can still boot 12.04



Quote
I probably meant which is easier to use in respect of beginner to pro using minidlna.

I'm still not understanding the question .. ONCE CONFIGURED they are both just as easy to "use", as neither of them require user intervention ??? .. all the user has to do is plonk files in the shared directories ???
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 01:53:21 pm
Are you having to select the 250GB drive as the boot device in the BIOS to boot 12.04 ?

Yes
Quote
or
are you just booting to the 500GB drive (normally) and being offered 12.04 by the GRUB menu ?

No
Quote
and
Do you still have a 12.04 LiveCD ?

Yes

Quote
It would be easy to check if the bootloader is spread across both drives .. disconnect the 500GB drive, and see if you can still boot 12.04

Give me a few mins to check.

Quote
I'm still not understanding the question .. ONCE CONFIGURED they are both just as easy to "use", as neither of them require user intervention ??? .. all the user has to do is plonk files in the shared directories ???

I'll stick with ushare.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 02:03:47 pm
With the 500Gb drive with 11.10 not connected it wont boot.
What's the next step, put the 250Gb drive with 12.04 in place of the 500Gb 11.10 drive?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 03:54:45 pm
Yes, swap the cables on the 250GB and 500GB drives, then boot to a 12.04 LiveCD/LiveUSB, open a terminal, and send the output from:
Code: [Select]
sudo fdisk -l
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 08:00:03 pm
Code: [Select]
sudo fdisk -l

(click to show/hide)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 08:25:15 pm
OK, REBOOT to the 12.04 LiveCD (IMPORTANT that you reboot, so no drives are mounted) .. run open a terminal (Ctrl+Alt+T) and run these commands in sequence:

Code: [Select]
sudo mount /dev/sda1 /mnt
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub

Exit chroot:- CTRL+D on keyboard

Then reboot (to the hard drive) with:
Code: [Select]
sudo reboot



Once booted, send the output from:
Code: [Select]
mount

and the contents of:
Code: [Select]
gedit /etc/fstab
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 08:35:19 pm
Sorry, I forgot to use liveCD12.04

Code: [Select]
sudo fdisk -l

(click to show/hide)

Does that change anything you asked me to enter?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 08:45:39 pm
Nope .. I'm a bit surprised the 500GB drive is now /dev/sdc .. but that's unimportant.

Same instructions as my last posting :)
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 08:51:34 pm
OK, REBOOT to the 12.04 LiveCD (IMPORTANT that you reboot, so no drives are mounted) .. run open a terminal (Ctrl+Alt+T) and run these commands in sequence:

Code: [Select]
sudo mount /dev/sda1 /mnt
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub

[email protected]:~$ sudo mount /dev/sda1 /mnt
[email protected]:~$ for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
[email protected]:~$ sudo chroot /mnt
[email protected]:/# grub-install /dev/sda
Installation finished. No error reported.
[email protected]:/# grub-install --recheck /dev/sda
Installation finished. No error reported.
[email protected]:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-27-generic
Found initrd image: /boot/initrd.img-3.2.0-27-generic
Found linux image: /boot/vmlinuz-3.2.0-23-generic
Found initrd image: /boot/initrd.img-3.2.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 11.10 (11.10) on /dev/sdc1
done
[email protected]:/#

Done that so far, now doing the rest
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 08:58:01 pm
OK, REBOOT to the 12.04 LiveCD (IMPORTANT that you reboot, so no drives are mounted) .. run open a terminal (Ctrl+Alt+T) and run these commands in sequence:

Once booted, send the output from:
Code: [Select]
mount

[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
/dev/sr0 on /media/Ubuntu 12.04 LTS amd64 type iso9660 (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks)
[email protected]:~$


Quote
and the contents of:
Code: [Select]
gedit /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=86fe3809-17a6-412c-be0a-250f6f29fa41 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none            swap    sw              0       0
# swap was on /dev/sdb2 during installation
UUID=03b9f227-9f5c-4abc-a50b-74ecc1590f44 none            swap    sw              0       0
# Mounted Drives
#/dev/sda1 /media/Home ext4 defaults,user,locale=en_GB.utf8 0 0
#/dev/sdc1 /media/Disk3 ext4 defaults,user,locale=en_GB.utf8 0 0
#/dev/sdd1 /media/Disk4 ext4 defaults,user,locale=en_GB.utf8 0 0

The 500Gb is 'c' because I moved the 250 into 'a', basically swapped them - as you asked
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 09:15:23 pm
Doesn't matter .. for some reason I thought the 500GB and 250GB drives were (originally) /dev/sda and /dev/sdb respectively .. as I said it's unimportant.

OK, now to sort out the swap partition .. can you send the output from:
Code: [Select]
sudo blkid
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 09:19:22 pm
Doesn't matter .. for some reason I thought the 500GB and 250GB drives were (originally) /dev/sda and /dev/sdb respectively .. as I said it's unimportant.

OK, now to sort out the swap partition .. can you send the output from:
Code: [Select]
sudo blkid

[email protected]:~$ sudo blkid
[sudo] password for pooky2483:
/dev/sda1: LABEL="12.04Boot" UUID="86fe3809-17a6-412c-be0a-250f6f29fa41" TYPE="ext4"
/dev/sda2: UUID="03b9f227-9f5c-4abc-a50b-74ecc1590f44" TYPE="swap"
/dev/sdb1: LABEL="Drive3" UUID="40d97c21-aec9-48ed-a089-082c41024994" TYPE="ext4"
/dev/sdc1: LABEL="Home" UUID="959cb526-06f8-4d5d-bec2-a6b42f438b07" TYPE="ext4"
/dev/sdc5: UUID="e56dad6b-358f-4948-b51f-4abce81f50b1" TYPE="swap"
/dev/sdd1: LABEL="Drive4" UUID="1e72a175-851f-43c3-a251-241d0e3800a7" TYPE="ext4"
[email protected]:~$

I'd like them named, if possible;
12.04Boot
Drive2
Drive3
Drive4
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 09:39:35 pm
One thing at a time ..

OK, run:
Code: [Select]
sudo cp -v /etc/fstab /etc/fstab.backup
then
Code: [Select]
sudo gedit /etc/fstab

Find the 4 lines that read

Code: [Select]
# swap was on /dev/sda5 during installation
UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none            swap    sw              0       0
# swap was on /dev/sdb2 during installation
UUID=03b9f227-9f5c-4abc-a50b-74ecc1590f44 none            swap    sw              0       0

and edit them to read:-

Code: [Select]
# swap was on /dev/sda5 during installation
# UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none            swap    sw              0       0
# swap was on /dev/sda2 during installation
UUID=03b9f227-9f5c-4abc-a50b-74ecc1590f44 none            swap    sw              0       0

SAVE the file .. REBOOT .. and send the output from:
Code: [Select]
mount
and
Code: [Select]
free
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 09:47:54 pm

Code: [Select]
mount

[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
[email protected]:~$

Quote
Code: [Select]
free

[email protected]:~$ free
             total       used       free     shared    buffers     cached
Mem:       3082840    1524460    1558380          0      39104     639468
-/+ buffers/cache:     845888    2236952
Swap:      2879484          0    2879484
[email protected]:~$
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 10:08:33 pm
Okey dokey then .. that's the 12.04 install sorted .. now for mounting your other hard drives.

Where you're saying you want them to be "named"

12.04Boot
Drive2
Drive3
Drive4

You're actually thinking in Windows terms .. ie. the drive "label".

The "label" is unimportant in Linux .. what IS important is where they are "mounted" and what "name" you give to the mount point.

So .. the 12.04Boot (as you called it) doesn't need a mount point .. it is already mounted at /

I'm taking it you want to create 3 mount points:-

/media/Drive1
/media/Drive2
/media/Drive3

and mount the other drives to those mount points ?

If so .. which of the 500GB, 1000GB, and 2000GB drives do you want as "Drive1", "Drive2", and "Drive3" ?

I'm after a response from you like

Drive1 = 500GB
Drive2 = 1000GB
Drive3 = 2000GB
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 10:13:37 pm
Okey dokey then .. that's the 12.04 install sorted .. now for mounting your other hard drives.

Where you're saying you want them to be "named"

12.04Boot
Drive2
Drive3
Drive4

You're actually thinking in Windows terms .. ie. the drive "label".

I'm after a response from you like

Drive1 = 500GB
Drive2 = 1000GB
Drive3 = 2000GB

Yep, thats exactly what I want.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 10:37:15 pm
Okey dokey .. run these 3 commands:
Code: [Select]
sudo mkdir /media/Drive1
sudo mkdir /media/Drive2
sudo mkdir /media/Drive3

Now open fstab for editing again:
Code: [Select]
sudo gedit /etc/fstab

Find the 4 lines that read:-

Code: [Select]
# Mounted Drives
#/dev/sda1 /media/Home ext4 defaults,user,locale=en_GB.utf8 0 0
#/dev/sdc1 /media/Disk3 ext4 defaults,user,locale=en_GB.utf8 0 0
#/dev/sdd1 /media/Disk4 ext4 defaults,user,locale=en_GB.utf8 0 0

and make them read:-

Code: [Select]
# Mounted Drives
/dev/sdc1 /media/Drive1 ext4 defaults,user,locale=en_GB.utf8 0 0
/dev/sdb1 /media/Drive2 ext4 defaults,user,locale=en_GB.utf8 0 0
/dev/sdd1 /media/Drive3 ext4 defaults,user,locale=en_GB.utf8 0 0

SAVE the file .. and run:
Code: [Select]
sudo mount -a
(if there's any output from that command, post it in your next response)

Now send the output from:
Code: [Select]
mount
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 10:47:18 pm
Only got this far;
[email protected]:~$ sudo mkdir /media/Drive1
[sudo] password for pooky2483:
[email protected]:~$ sudo mkdir /media/Drive2
[email protected]:~$ sudo mkdir /media/Drive3
mkdir: cannot create directory `/media/Drive3': File exists
[email protected]:~$ sudo gedit /etc/fstab
[email protected]:~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[email protected]:~$

Code: [Select]
sudo gedit /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=86fe3809-17a6-412c-be0a-250f6f29fa41 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
# UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none            swap    sw              0       0
# swap was on /dev/sdb2 during installation
UUID=03b9f227-9f5c-4abc-a50b-74ecc1590f44 none            swap    sw              0       0
# Mounted Drives
/dev/sdc1 /media/Drive1 ext4 defaults,user,locale=en_GB.utf8 0 0
/dev/sdb1 /media/Drive2 ext4 defaults,user,locale=en_GB.utf8 0 0
/dev/sdd1 /media/Drive3 ext4 defaults,user,locale=en_GB.utf8 0 0
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 10:48:15 pm
Code: [Select]
mount

[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
/dev/sdd1 on /media/Drive4_ type ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdc1 on /media/Home_ type ext4 (rw,nosuid,nodev,uhelper=udisks)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sdc1 on /media/Drive1 type ext4 (rw,noexec,nosuid,nodev,locale=en_GB.utf8)
/dev/sdd1 on /media/Drive3 type ext4 (rw,noexec,nosuid,nodev,locale=en_GB.utf8)
[email protected]:~$
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 10:55:16 pm
Post the output from:
Code: [Select]
ls -a /media

and the contents of:
Code: [Select]
gedit /etc/fstab
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 11:02:38 pm
Post the output from:
Code: [Select]
ls -a /media

[email protected]:~$ ls -a /media
.  ..  12.04Boot  Drive1  Drive2  Drive3  Drive4  Drive4_  Home  Home_
[email protected]:~$

Quote
Code: [Select]
gedit /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=86fe3809-17a6-412c-be0a-250f6f29fa41 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
# UUID=e56dad6b-358f-4948-b51f-4abce81f50b1 none            swap    sw              0       0
# swap was on /dev/sdb2 during installation
UUID=03b9f227-9f5c-4abc-a50b-74ecc1590f44 none            swap    sw              0       0
# Mounted Drives
/dev/sdc1 /media/Drive1 ext4 defaults,user,locale=en_GB.utf8 0 0
/dev/sdb1 /media/Drive2 ext4 defaults,user,locale=en_GB.utf8 0 0
/dev/sdd1 /media/Drive3 ext4 defaults,user,locale=en_GB.utf8 0 0
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 11:14:54 pm
Run (even if they error, just move on to the next one):
Code: [Select]
sudo umount /media/12.04Boot
sudo umount /media/Drive1
sudo umount /media/Drive2
sudo umount /media/Drive3
sudo umount /media/Drive4
sudo umount /media/Drive4_
sudo umount /media/Home
sudo umount /media/Home_

Now run:
Code: [Select]
sudo mount -a
(if there's any output from that command, post it in your next response)

Now send the output from:
Code: [Select]
mount
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 11:31:06 pm
Code: [Select]
sudo mount -a

[email protected]:~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mount: wrong fs type, bad option, bad superblock on /dev/sdd1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[email protected]:~$

Code: [Select]
mount

[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
[email protected]:~$

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 05, 2012, 11:43:57 pm
run:
Code: [Select]
sudo gedit /etc/fstab

comment out the last 3 lines so they read:

Code: [Select]
# /dev/sdc1 /media/Drive1 ext4 defaults,user,locale=en_GB.utf8 0 0
# /dev/sdb1 /media/Drive2 ext4 defaults,user,locale=en_GB.utf8 0 0
# /dev/sdd1 /media/Drive3 ext4 defaults,user,locale=en_GB.utf8 0 0

SAVE the file, and REBOOT

Once rebooted, do NOT mount any drives .. just open a terminal and send the output from:
Code: [Select]
mounts

and
Code: [Select]
ls -a /media
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 05, 2012, 11:51:27 pm
Code: [Select]
mouns
[email protected]:~$ mounts
No command 'mounts' found, did you mean:
 Command 'mount' from package 'mount' (main)
 Command 'mount' from package 'loop-aes-utils' (universe)
mounts: command not found

Code: [Select]
mount
[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
[email protected]:~$

Code: [Select]
ls -a /media
[email protected]:~$ ls -a /media
.  ..  12.04Boot  Drive1  Drive2  Drive3  Drive4  Home
[email protected]:~$
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 06, 2012, 12:03:52 am
OK, run:
Code: [Select]
sudo fsck /dev/sdc1

Then run:
Code: [Select]
sudo gedit /etc/fstab

and make the last 3 lines read:
Code: [Select]
/dev/sdc1 /media/Drive1 ext4 defaults 0 0
# /dev/sdb1 /media/Drive2 ext4 defaults,user,locale=en_GB.utf8 0 0
# /dev/sdd1 /media/Drive3 ext4 defaults,user,locale=en_GB.utf8 0 0

SAVE the file.

Now run:
Code: [Select]
sudo mount -a

is there any output ?

if not, what is the output from:
Code: [Select]
mount
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 06, 2012, 01:48:50 am
Code: [Select]
mount

[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sdc1 on /media/Drive1 type ext4 (rw)
[email protected]:~$
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 06, 2012, 03:07:08 am
OK lets run fsck on the other 2 drives, then mount those .. I'm also going to switch to using UUID's in fsatb ..

First REBOOT .. and when rebooted, do NOTHING that may mount any drives, just open a terminal and run:
Code: [Select]
sudo fsck /dev/sdb1
then
Code: [Select]
sudo fsck /dev/sdd1

Once those have completed, run:
Code: [Select]
sudo gedit /etc/fstab

Edit those last 4 lines to read:-

Code: [Select]
# Mounted Drives
UUID=959cb526-06f8-4d5d-bec2-a6b42f438b07 /media/Drive1 ext4 defaults 0 0
UUID=40d97c21-aec9-48ed-a089-082c41024994 /media/Drive2 ext4 defaults 0 0
UUID=1e72a175-851f-43c3-a251-241d0e3800a7 /media/Drive3 ext4 defaults 0 0

SAVE the file.

Run:
Code: [Select]
sudo mount -a
(if there's any output, post it)

and post the output from:
Code: [Select]
mount
and
Code: [Select]
sudo blkid
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 06, 2012, 06:26:03 am
Code: [Select]
mount

[email protected]:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdc1 on /media/Drive1 type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/pooky2483/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pooky2483)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sdb1 on /media/Drive2 type ext4 (rw)
/dev/sdd1 on /media/Drive3 type ext4 (rw)
[email protected]:~$

Code: [Select]
sudo blkid

[email protected]:~$ sudo blkid
/dev/sda1: LABEL="12.04Boot" UUID="86fe3809-17a6-412c-be0a-250f6f29fa41" TYPE="ext4"
/dev/sda2: UUID="03b9f227-9f5c-4abc-a50b-74ecc1590f44" TYPE="swap"
/dev/sdb1: LABEL="Drive3" UUID="40d97c21-aec9-48ed-a089-082c41024994" TYPE="ext4"
/dev/sdd1: LABEL="Drive4" UUID="1e72a175-851f-43c3-a251-241d0e3800a7" TYPE="ext4"
/dev/sdc1: LABEL="Home" UUID="959cb526-06f8-4d5d-bec2-a6b42f438b07" TYPE="ext4"
/dev/sdc5: UUID="e56dad6b-358f-4948-b51f-4abce81f50b1" TYPE="swap"
[email protected]:~$

Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 06, 2012, 11:14:05 am
So they're all now mounted at boot up ?

if so, tell me if they are writeable .. can you create a file/folder on them ?

Do they appear in the left panel of nautilus ? .. and/or on the desktop ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 06, 2012, 01:03:19 pm
So they're all now mounted at boot up ?

if so, tell me if they are writeable .. can you create a file/folder on them ?

Do they appear in the left panel of nautilus ? .. and/or on the desktop ?

Yes, they’re on Nautilus as mounted but, I can copy to all but Drive1
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 06, 2012, 01:36:47 pm
OK, you should "currently" have no problem copying/creating/moving stuff on Drive1, but ONLY in the home/pete idrectory on that drive .. the rest is still owned by root.

I take it the plan is eventually to delete all the old 11.10 "system stuff" from that drive ? .. and move the "user" stuff to the root of the drive ?

But before we change ownership of the root of the drive .. I need you to confirm that you understand this will be the END for 11.10 (as a bootable/fixable OS).

And just to be sure .. what's the output from:
Code: [Select]
ls -al /media/Drive1
?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 06, 2012, 08:36:22 pm
Code: [Select]
ls -al /media/Drive1

[email protected]:~$ ls -al /media/Drive1
total 212
drwxr-xr-x  27 root      root       4096 Jul 20 21:51 .
drwxr-xr-x   8 root      root       4096 Aug  5 23:29 ..
drwxr-xr-x   2 root      root       4096 May  6 21:23 bin
drwxr-xr-x   3 root      root       4096 Jul 25 22:51 boot
drwxr-xr-x   2 root      root       4096 Oct 28  2011 cdrom
-rwxrwxrwx   1 root      root         48 Apr 17 08:25 C:\nppdf32Log\debuglog.txt
drwxr-xr-x   2 root      root       4096 Nov 22  2011 .config
drwxr-xr-x   5 root      root       4096 Oct 12  2011 dev
drwxr-xr-x 175 root      root      12288 Aug  5 00:40 etc
drwxr-xr-x   4 root      root       4096 Nov 22  2011 home
lrwxrwxrwx   1 root      root         33 Jul 20 21:51 initrd.img -> /boot/initrd.img-3.0.0-23-generic
lrwxrwxrwx   1 root      root         33 Jul  1 07:55 initrd.img.old -> /boot/initrd.img-3.0.0-22-generic
-rw-r--r--   1 pooky2483 pooky2483   250 Jun 12  2011 .INSTALL
drwxr-xr-x  23 root      root       4096 Jul 29 13:56 lib
drwxr-xr-x   4 root      root      12288 Mar 10 07:50 lib32
drwxr-xr-x   2 root      root       4096 Mar 10 07:50 lib64
drwx------   2 root      root      16384 Oct 28  2011 lost+found
-rw-r--r--   1 pooky2483 pooky2483 33599 Jun 15  2011 md5sums
drwxr-xr-x   5 root      root       4096 Aug  2 21:25 media
drwxr-xr-x   2 root      root       4096 Oct  9  2011 mnt
drwxr-xr-x   4 root      root       4096 Jul 30 00:55 opt
-rw-r--r--   1 pooky2483 pooky2483   638 Jun 12  2011 .PKGINFO
-rwxr-xr-x   1 pooky2483 pooky2483   135 Jun 15  2011 postinst
-rwxr-xr-x   1 pooky2483 pooky2483   132 Jun 15  2011 postrm
drwxr-xr-x   2 root      root       4096 Oct  9  2011 proc
drwx------  22 root      root       4096 Jul  9 21:14 root
drwxr-xr-x   2 root      root       4096 Dec 20  2011 .rpmdb
drwxr-xr-x  12 root      root       4096 Nov 13  2011 run
drwxr-xr-x   2 root      root      12288 Jul 29 13:56 sbin
drwxr-xr-x   2 root      root       4096 Jun 21  2011 selinux
-rw-r--r--   1 pooky2483 pooky2483    52 Jun 15  2011 shlibs
drwxr-xr-x   2 root      root       4096 Oct 12  2011 srv
drwxr-xr-x   2 root      root       4096 Jul 14  2011 sys
drwxrwxrwt  12 root      root      12288 Aug  5 00:40 tmp
drwxr-xr-x  12 root      root       4096 Oct 29  2011 usr
drwxr-xr-x  14 root      root       4096 Aug  5 00:40 var
lrwxrwxrwx   1 root      root         29 Jul 20 21:51 vmlinuz -> boot/vmlinuz-3.0.0-23-generic
lrwxrwxrwx   1 root      root         29 Jul  1 07:55 vmlinuz.old -> boot/vmlinuz-3.0.0-22-generic
[email protected]:~$
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 06, 2012, 08:59:09 pm
But before we change ownership of the root of the drive .. I need you to confirm that you understand this will be the END for 11.10 (as a bootable/fixable OS).

Yes, I'm happy with that
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 06, 2012, 09:15:30 pm
OK, open a terminal and run:

Code: [Select]
sudo chown -R pooky2483:pooky2483 /media/Drive1
then
Code: [Select]
sudo chmod -R 755 /media/Drive1

Can you now write to ANYWHERE on Drive1 ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 06, 2012, 09:38:24 pm
Can you now write to ANYWHERE on Drive1 ?

Yes  :D
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 07, 2012, 04:53:28 pm
So, is that it, is it done?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 07, 2012, 05:18:39 pm
How should I know ? .. what else do you want to do ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 07, 2012, 05:57:26 pm
No, what I meant was, is that the problem sorted.
after all the instructions.
Going by your last comment, I guess it is.
 :D
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on August 07, 2012, 06:56:08 pm
Ahh .. YES then .. the mounts and bootloader are all sorted now.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 07, 2012, 07:02:29 pm
Ahh .. YES then .. the mounts and bootloader are all sorted now.

Many thanks for the help, it looks very complicated, what was done.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 28, 2013, 10:06:50 pm
I've installed the Kubuntu desktop and for some reason I now, when I use the XboX to view the films on my PC  I can't see them.
I have given the XboX (wired) a fixed IP address of 192.168.1.203.

Ushare.conf
(click to show/hide)

This is a list of ushare -x in terminal. Could the reason the XboX is not seeing the files be 'UPnP MediaServer listening' being assigned a different port number than what is in the above config file? Why is it not assigning it the one in the config file?

(click to show/hide)
Title: Re: Finally got around to networking the house
Post by: SeZo on August 28, 2013, 10:21:11 pm
Does this give you any clue?
Quote
[email protected]:/home/pooky2483/Documents# ushare -x
Interface eth0 is down.
Recheck uShare's configuration and try again !

Try:
Code: [Select]
ip link
That should give you which network adapter you are using.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 28, 2013, 10:39:50 pm
[email protected]:/home/pooky2483/Documents# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:24:8c:bc:10:83 brd ff:ff:ff:ff:ff:ff
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 46:63:1d:e8:93:ed brd ff:ff:ff:ff:ff:ff
[email protected]:/home/pooky2483/Documents#

'Interface eth0 is down'

That's a bug in the programming or something as it says that all the time as it has done in the past but still works, ask Mark about it and he'll say it's nothing to worry about.
Title: Re: Finally got around to networking the house
Post by: SeZo on August 28, 2013, 10:52:48 pm
OK. Can you ping your Xbox from Kubuntu?
Where and how do you set the fixed IP addresses?
You need to set your DHCP pool on your router, then set each PC to a fixed address outside of that pool.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 28, 2013, 11:11:25 pm
OK. Can you ping your Xbox from Kubuntu?
Where and how do you set the fixed IP addresses?

On the XboX itself

Quote
You need to set your DHCP pool on your router, then set each PC to a fixed address outside of that pool.

Already done, a couple of days ago. DHCP pool 192.168.1.2-200 so static IP's are 192.168.1.201-255
Title: Re: Finally got around to networking the house
Post by: pooky2483 on August 28, 2013, 11:13:56 pm
Unable to give you a result on the Xbox ping, I'll be able to do it later.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on September 09, 2013, 09:07:42 pm
Sorted it, jumped over to the Netgear forum and got it sorted, I had to set up a port forwarding rule for each XboX.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 01:52:17 pm
Correction on my last post... It's NOT working.

When I type:
Code: [Select]
sudo kate /etc/ushare.conf
I get
[sudo] password for pooky2483:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-pooky2483" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-pooky2483" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-pooky2483" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-pooky2483" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-pooky2483" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-pooky2483" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-pooky2483" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-pooky2483" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-pooky2483" is owned by uid 1000 instead of uid 0.

Why is this and how can I correct it.
I am unable to share my content to either of my XboX's.
I have even given them static IP's - Front Room XboX is 192.168.1.203 and the Bedroom is 192.168.1.205
The Kubuntu PC static IP is 192.168.1.201
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 02:48:24 pm
Dunno what the problem with Ushare is, but those error messages (from what I'm reading) can be safely ignored.

I take it the file IS opened ?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 03:00:15 pm
I take it the file IS opened ?

Don't quite get what you mean there?

Also, I'm sure I installed Samba (if that's needed?) and how can I check it's working, if that's possible?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 03:01:15 pm
I'm thinking it's a problem with the router but don't know how to fix it!!!
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 03:57:41 pm
Quote
Don't quite get what you mean there?
When you ran the command that gave you all those errors .. I take it the file DID open for editing in kate ?

Quote
Also, I'm sure I installed Samba (if that's needed?) and how can I check it's working, if that's possible?
Code: [Select]
service smbd status

Quote
I'm thinking it's a problem with the router but don't know how to fix it!!!
so which ports did you forward through the router, and where to ?
I'm noty convinced anything needs forwarding .. though if you're running a firewall on the Kubuntu box, you may have to open some ports.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 05:06:00 pm
When you ran the command that gave you all those errors .. I take it the file DID open for editing in kate ?

Yes

Quote
Also, I'm sure I installed Samba (if that's needed?) and how can I check it's working, if that's possible?
Code: [Select]
service smbd status

[email protected]:~$ service smbd status
smbd start/running, process 956
[email protected]:~$

Quote
I'm noty convinced anything needs forwarding .. though if you're running a firewall on the Kubuntu box, you may have to open some ports.

I've forwarded it through port(s) 49200 - 49210. As sometimes ushare does not start back using port 49200 but increases the port number.
And I do NOT have a firewall running in Kubuntu, ONLY the router firewall.
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 05:16:44 pm
OK, what's the contents of your ushare.conf



I'm still not sure you need those firewall rules in your router AT ALL .. the routers firewall stands between the local network and the internet .. not between PC's on the local network.

and you still don't say WHERE the rules forward the ports to ?

My guess is you've forwarded those ports from the internet to your Kubuntu box (or Xboxes) .. so are now blocking ushare.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 07:06:36 pm
(click to show/hide)

Using the port listed in the above config file (49200), it's forwarded to the front room XboX.
as there's 2 XboX's someone on the Netgear Forum recommended to put the other XboX in the DMZ!
Thinking about it, you're right - There should be NO need to fort forward to anything!
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 07:23:54 pm
Remove the changes you made to the router .. they're not necessary.

what's the output from:
Code: [Select]
ls -al /home/pooky2483/Ushare
?
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 08:02:44 pm
[email protected]:~$ ls -al /home/pooky2483/Ushare
total 8                                                                                                                         
drwxrwxr-x  2 pooky2483 pooky2483 4096 Sep 18 14:07 .                                                                           
drwxr-xr-x 38 pooky2483 pooky2483 4096 Oct  5 19:34 ..                                                                         
lrwxrwxrwx  1 pooky2483 pooky2483   20 Sep 18 14:07 Films-01 -> /media/Drive3/Films/                                           
lrwxrwxrwx  1 pooky2483 pooky2483   20 Sep 18 14:06 Films-02 -> /media/EXT-01/Films/                                           
lrwxrwxrwx  1 pooky2483 pooky2483   24 Sep 18 14:07 TV_Series-01 -> /media/Drive3/TV Series/                                   
lrwxrwxrwx  1 pooky2483 pooky2483   24 Sep 18 14:06 TV_Series-02 -> /media/EXT-01/TV Series/ 

Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 08:07:04 pm
I've amended the 'TV Series' to TV_Series'
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 08:29:54 pm
If you've removed the router firewall rules .. restart ushare and the xboxes.
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 09:08:21 pm
Done that but the folders are still not showing up on the XboX?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 10:06:14 pm
Does "Kubuntu_Shares" show up on the Xboxes ?

what's the output from:
Code: [Select]
sudo service ushare status
and
Code: [Select]
ps aux | grep ushare
and
Code: [Select]
ifconfig
and
Code: [Select]
sudo iptables -L
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 10:42:00 pm
Kubuntu_Shares is not visible to the XboX's

Code: [Select]
sudo service ushare status
* Usage: /etc/init.d/ushare {start|stop|restart|reload|force-reload}

Code: [Select]
ps aux | grep ushare
(click to show/hide)

Code: [Select]
ifconfig
(click to show/hide)

Code: [Select]
sudo iptables -L
(click to show/hide)
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 05, 2013, 10:57:56 pm
What happens if you start ushare as root:
Code: [Select]
sudo killall ushare
then
Code: [Select]
sudo ushare
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 11:21:02 pm
runs as normal but is still not showing on the XboX
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 05, 2013, 11:26:33 pm
Does it matter at all that every time I run it, the port number increases?
192.168.1.201:49200
192.168.1.201:49201
192.168.1.201:49202
192.168.1.201:49203
192.168.1.201:49204
192.168.1.201:49205...
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 06, 2013, 12:03:10 am
It's probably increasing because you're not terminating the already running ushare.

run:
Code: [Select]
sudo killall ushare
then what's the output from:
Code: [Select]
ushare -vx
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 06, 2013, 01:11:52 am
Bit of a big file so I've put it in my drobox
https://www.dropbox.com/s/9pwg60unx0xj7j8/sudo_ushare_-vx.txt
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 06, 2013, 02:14:38 am
just as a test .. run:
Code: [Select]
mkdir ~/usharetest
then
Code: [Select]
sudo kate /etc/ushare.conf

and change the line:-

USHARE_DIR=/home/pooky2483/Ushare

to

USHARE_DIR=/home/pooky2483/usharetest

SAVE the fie.

now copy a single mp3 file to the directory called "usharetest" in your home folder.

reboot.

reboot the xbox .. then go to "Music" on the xbox .. is the mp3 visible ?



[EDIT]

See the UPDATE at the top of this page:
https://help.ubuntu.com/community/Xbox360Media (https://help.ubuntu.com/community/Xbox360Media)

--
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 06, 2013, 11:42:21 am
Well, that's just great isn't it..
Thanks M$ (do they hate Linux THAT much?).

...Does that other one that you mentioned (still) work with XboX?
Title: Re: Finally got around to networking the house
Post by: Mark Greaves (PCNetSpec) on October 06, 2013, 11:59:06 am
minidlna .. it should do, but I haven't tested it lately.

or there's mediatomb .. haven't tried that myself though .. but it does come with a webbrowser accessed GUI
Title: Re: Finally got around to networking the house
Post by: pooky2483 on October 06, 2013, 12:08:44 pm
I'll give them a try laters...

From the sounds of it, M$ are shutting out Linux!
SimplePortal 2.3.3 © 2008-2010, SimplePortal