Problem to configure LMMS in Ubuntu studio

Having trouble with LMMS? Ask about it here.
I have big problem to configure LMMS, the Midi Usb cable device in Ubuntu studio (and in window too).
For other software, example Rosegarden and Tuxguitar, it's very easy, and there are no problem.
In LMMS, for me it's impossible.
May somebody give me some advice about how to do that?
I add little more details about that.

if I write in terminal:

aplaymidi -l

I have this information
Port Client name Port name
14:0 Midi Through Midi Through Port-0
20:0 CH345 CH345 MIDI 1
128:0 TiMidity TiMidity port 0
128:1 TiMidity TiMidity port 1
128:2 TiMidity TiMidity port 2
128:3 TiMidity TiMidity port 3

if I write:
aplaymidi -p20:0 song.mid

I have sound in my midi device.

In Rosegarden and in Tuxguitar it is very easy to utilize the midi device. In LMMS it ìs very difficult for me.
Does this help ?

https://lmms.io/wiki/index.php?title=Using_MIDI

For Linux the only difference is the sound setting, for Linux its not WinMM bust Alsa.
Unfortunally doesn't help too much.
In this setting I have this:
DUMMY (No midi support)

After It's possible to change, there are other three choice:
- ALSA-RAW,
- ALSA-Sequencer
- OSS midi, Open Sound system.

I choice ALSA sequencer and click ok,

After I save this choice, and exit
After I restart LMMS but yet there is no sound

OK. now I have understood.
I have the sound, but I must to make the setting for evry track.

For example, I have a midi of 20 track. I go in midi tab in track 1 and so I have sound for the track 1, but I have other 19 track, I must go in midi track in every track and repeat the same choice for each of the other 19 track?
OK, now it works. No need to replay at this post.
The problem it is only that for LMMS need to configure the midi option for EVERY single track, not only one setting as in other program, that automatically set for all track just in a click.
Thank you.