Wednesday, March 26, 2008

SAMBA Swat

Just had to sort out a niggling issue on a SLES 10 box at dad's work. I have given up for the time being trying to sort out Samba acting as a primary domain controller (PDC) for the Network there. So I have enabled SWAT and found this very useful post which went into the detail. It doesn't look like the default xinted config file for swat is particularly helpful. Added the blue lines to it.

service swat
{

port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
only_from = localhost

}

I always expected that YAST on SLES would be able to do all of the necessary configuration. Not yet. One day it will but the whole setup is rather clunky. If you read this article you can see how fiddly it is.

It's not a lot to ask!

I have never understood what all of the directory permissions and ownership need to be on the physical disk. I am sure that 777 is overkill.

Tuesday, March 25, 2008

Is it this or is it that ringtone

So I wanted to have Is it this or is it that as a ringtone on my new Nokia 6300. So I found a wmv and downloaded the link. I guess mp3 would be the right format so I had to:
  1. Strip the audio out of the the file.
  2. Convert some sort of windows format to mp3.
  3. Bluetooth it onto my new phone.
  4. Select it as a new ringtone for my profile.
"Easy peasy Japenesea." Ella would say. It was, sort of.

From this forum thread on Ubuntu it is very easy from the command line.

ffmpeg -i video.wmv audio.wav

(Does anyone know how to go the {{{ }}} wiki thing)

Then from this post it reminded that LAME does the mp3 conversion. I should have remembered that one.

lame -V0 -h -b 160 --vbr-new input.wav output.mp3
At this point if you might be wondering what all of this means if you have never used Linux.  If you do know then I am using OpenSUSE 10.3 on a dual core 939 AMD Athlon

Linux 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC x86_64 x86_64 x86_64 GNU/Linux
Then the tricky bit came. For some reason I could not just drag and drop the mp3 into the phone when I opened it up by typing in the Nautilus address bar:

obex:///

But it would drop it onto my old Nokia 6230i phone. So I did that and then bluetoothed the file from one phone to the other phone. Mission accomplished but I may need to sort out why Nautilus thinks there is no space on my new phone.



Starter for 10

I have a million and one little projects on the go just now. Many of these seem to involve technology and dicking around in my study, as Hils refers to it as. In my projects I always seem to solve issues and never really write them up at all so I thought I could start this blog to document things that I find out so I can find them again easily and others may stumble across them and may find them useful.

So what are the projects then? Well of course there isn't a list, it changes on a day by day basis. Is it this or is it that? Well that's the question and the first task this morning.