lauralh: (rain)
[personal profile] lauralh
The other thing I've been occupying myself with is trying to get as much out of my Ubuntu box as I can, as Reg would like to convert his old box to a music/media server. So I switched from Rhythmbox to Banshee, and so far I prefer it a lot, but I had to go and rerate songs and that kind of shit. Mostly just drag'n'drop, and definitely less of a pain in the ass than it was to get it started in RB, but still takes up some time. Now I'm trying to get my sandisk MP3 player to work, and I'm having some issues. Some songs it copies, some it doesn't, and when I "ejected" then reconnected to attempt to fix the issue, it just didn't show up again. Blargh. Oh well, I'll reboot and try again later.

The real issue is Samba. I suppose I need to set up Reg's computer as a Samba server, since that miracle of technology that Windows uses - being able to read AND write over the network - is only one-way here. Reg watches all his movies from that machine over the wireless to his laptop, and if he can't do that, then there's no point in living. And I'll also have to export his torrent settings and ratios and whatnot. Anyway, if anyone has dealt with this kind of stuff, let me know.

(Also, if anyone knows why XP would freeze every hour or so during, say, DVD burning or something like, when it never used to do that...)

Date: 2009-09-14 08:44 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
I can help with Samba. Open source fileservers are a good portion of what I do for a living. (Also, I run Ubuntu exclusively on my own personal desktops these days, so I can frequently help on other stuff too. Haven't ever run Banshee, though.)

XP freezing every hour or so during DVD burning probably means failing hardware. Most likely RAM or the DVD drive itself. It COULD also mean a driver problem or a regression in whatever app you're using, though.

You can try to isolate the problem without having to buy parts by trying a different app (InfraRecorder is quite good, and free), and by doing a boot to live Linux environment - most machines in the last several years will boot fine off a USB key, and Ubuntu live from a USB drive is pretty responsive (and won't tie up your optical drive, so you can test burning things).

If you do want to set up a flash drive for booting Ubuntu, you'll want a utility called "unetbootin". Google it, you'll find all the docs you need easily enough; it's brain-dead easy once you know unetbootin exists.

sample /etc/samba/smb.conf file

Date: 2009-09-14 08:53 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
[global]
workgroup = myworkgroupname
netbios name=thiscomputersname
server string = %h server (Samba, Ubuntu)
name resolve order = wins lmhosts hosts bcast
local master = yes
os level = 255
preferred master = yes
wins support = Yes
directory mask = 0777

# We want Samba to log a minimum amount of information to syslog.
syslog = 0

passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = no

# Most people will find that this option gives better performance.
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[Sharename]
path = /path/to/shared/stuff
read only = No
# these masks force files created to be user and group
# readable, writeable, and executable. if you make the
# masks 0777 instead, they will also be world readable
# writeable and executable. 0775 will make them world
# readable and executable but not world writeable.
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770

# you probably don't really care about this bit, but
# it can't hurt. it makes Quickbooks and MS Access
# files group-accessible instead of locking them on
# read.
veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/*.qbw/*.QBW/*.ldb/*.LDB/*.mde/*.MDE/

[privateshare]
path = /path/to/secret/stuff
read only = No
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/*.qbw/*.QBW/*.ldb/*.LDB/*.mde/*.MDE/
# regardless of file permissions, only allow users "laural" and "reg" access
valid users = laural,reg

Date: 2009-09-14 08:58 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
The last bit is setting up the user accounts. There may well be a GUI-clicky way to do this in Ubuntu; but I know this stuff from doing it professionally so all I can really tell you is the command line way. But it's pretty easy.

You need to have a system user AND a matching Samba user. So let's say you've created a system user named reg (caps counts here). Now you have to make the matching Samba account.

laural@box:~/ smbpasswd -a reg
New SMB password:
Retype new SMB password:
laural@box:~/


Note however that you MUST HAVE HAD a correspondingly named system account FIRST, before running smbpasswd.

Also, you may have trouble with Windows machines logged in with null passwords. If you keep getting authentication problems, you will probably want to just set a password on the Windows box, and set a matching password using smbpasswd. (You don't need the -a flag if you're changing the password on an already existing Samba account.)

And of course, if you didn't already know how to install Samba in the first place... sudo apt-get install samba.

Date: 2009-09-14 08:59 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
One final note - that smb.conf file enabled WINS support, which means your Samba box will serve as a WINS server if you ask it to. I would recommend doing that, and configuring any other boxes in the house to use that machine as a WINS server. (Which would require the machine having a static IP address.)

Of course, you don't HAVE to do that - it'll still broadcast also - but Windows "browser elections" suck monkey cock.

Date: 2009-09-15 02:13 am (UTC)
From: [identity profile] langston.livejournal.com
interesting but I have nothing to contribute. Any thoughts on getting a PS3 to stream remotley off a windows xp platform through a router?

Date: 2009-09-15 03:41 pm (UTC)
From: [identity profile] jjsaysblah.livejournal.com

WINS sucks donkey cock... way too chatty.

to get around that forced browser election in XP you can either: 1. create a domain with a DC set to "auto" in the domain master browser reg key (but it is swatting a fly with a buick for this need) or 2. set ISDOMAINMASTER reg key set to FALSE on that XP box (recommended if not part of domain)

this way it kills off the forced browser elections, and you aren't running that WINS crap

my two cents for a question you didn't ask

:)

Date: 2009-09-15 04:33 pm (UTC)
From: [identity profile] herbaliser.livejournal.com
The freezing happens with MuTorrent dling things too, not just the DVD ripping/burning. The drive is the newest part of the machine.

Anyway the current problem I have is that I installed Ubuntu on Reg's computer months ago, but he has a wireless keyboard so I never booted into it, and I don't THINK I set up a password, but ummmm.... maybe I did.

Date: 2009-09-15 06:04 pm (UTC)
From: [identity profile] herbaliser.livejournal.com
I am not interested in running that WINS crap, but the only windows box is Vista.

Date: 2009-09-15 06:33 pm (UTC)
From: [identity profile] jjsaysblah.livejournal.com
hmmmmm - for some reason i thought your box was XP. my bad.

but moving on - if you only have a single windows box then you don't need to worry about those forced browser elections.

oh, and if you are running Vista, you may have an option. assuming you're running Ultimate, Professional, or Enterprise you could build a virtual machine hosted on that box. make THAT one your media box with whatever media stuff you use. reg can remote desktop to that wherever he's at and voila! all problems solved.

Date: 2009-09-15 06:45 pm (UTC)
From: [identity profile] herbaliser.livejournal.com
no, that's the client box.

Original situation: media sat on XP box, but XP box freezes, which is not great when watching video

future: media will sit on Ubuntu box, accessed by vista laptop and ubuntu desktop.

Date: 2009-09-15 06:50 pm (UTC)
From: [identity profile] jjsaysblah.livejournal.com
ahhhhh...

*lightbulb finally goes off*

that should work pretty damn good. vista can read from an NFS share without too much setup, and is pretty solid afterwards. biggest problem will be your network. it may require your media server to have a static IP (can't remember - i haven't done workstation support in years) and depending on your ISP that may or may not be a problem.

but sounds like you know what you're doing.

for a code jockey you seem to have a better handle on stuff than most systems guys i know.

Date: 2009-09-15 07:27 pm (UTC)
From: [identity profile] herbaliser.livejournal.com
heh thanks; I just ran my own linux box in college and after, till I bought a new computer. In college everything ran on Sun so it was just easier that way, and the memories they do return.

Date: 2009-09-15 09:17 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
Uhhhh... WINS "chatty"? WINS doesn't "chat". That's the whole purpose of WINS.

It works like DNS, but for NetBIOS names. When a client is subscribed to a WINS server, it registers itself in WINS. Then if it needs to get a list of machines in the network, it requests one from the WINS machine; or if it wants to translate a NetBIOS name to an IP, it asks the WINS server for the translation.

Date: 2009-09-15 09:19 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
Needs UPnP. WMP can do it, or you can install Tombstone. If it's genuinely "through" a router - ie in the LAN and out the WAN - there are some fairly serious security issues and it gets a lot more complicated. (If it's only "through" the router in the sense of both devices being wireless, it isn't really "through", and no worries.)

Date: 2009-09-15 09:32 pm (UTC)
From: [identity profile] jjsaysblah.livejournal.com
i think here we are going to have to disagree.

yes, i know it works like DNS - but also it does some things such as DHCP if asked, or not disabled (just ONE example).

this broadcast traffic at intervals is what i meant by chatty.

with dynamic DNS i don't need wins. either BIND 9 or higher or Windows 2000 or higher does away with the need for netbios resolution.

only reason i've ever seen a need for WINS since the above technologies is if DNS is fubar and the admins have been lazy (or an old NT4 box needed to stay alive - but i haven't seen that in years)

Date: 2009-09-15 09:35 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
WINS does *not* do DHCP, either on a Windows server or on a Samba server. The two are entirely separate services and functions. WINS also does not broadcast. Again, avoiding broadcast is a large part of the entire raison d'etre of WINS.

Date: 2009-09-15 09:39 pm (UTC)
From: [identity profile] jjsaysblah.livejournal.com
i mis-spoke....

with DNS you need DHCP, with Wins you do not have to.... because of it's fucntionality it can for resolution and addresses what DHCP does. but it does add to network traffic compared to a DNS/DHCP only solution

as i said, we're just gonna have to agree to disagree.

but i bet if you ask most standards and practices experts about it, they'd have you steer away from WINS

my two cents,

peace.

Date: 2009-09-15 09:56 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
You really need to look up what these services do. Again, WINS and DHCP are *entirely* separate services and perform *entirely* separate functions. The only connection at all between the two is that DHCP can push information about WINS server presence in the same way it pushes information about DNS server presence.

DHCP does no resolution, WINS does no allocation. Further, WINS neither broadcasts nor *requires* broadcasts from clients (DHCP servers do no broadcasting themselves, but DHCP clients locate available DHCP servers with a network broadcast to the local segment).

Date: 2009-09-15 09:58 pm (UTC)
From: [identity profile] jjsaysblah.livejournal.com
dude- i'm sure you're a nice guy, but we are not communicating effectively.

you can have this one - if ever we meet irl we can hash it out then if it still seems a good idea.

/this

Date: 2009-09-15 11:13 pm (UTC)
From: [identity profile] jimbojones.livejournal.com
Fair 'nuff.

Profile

lauralh: (Default)
Laural Hill

July 2017

S M T W T F S
      1
23456 78
91011121314 15
1617 1819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 1st, 2026 11:12 pm
Powered by Dreamwidth Studios