The ticking noise is the sound of the hard drive being started up and the stopped. This is normal.
What do you mean by "turning on and off by itself"? Do you mean the ticking noises (which is normal) or do you mean the display turns on and off, or do you mean the music turns on and off?