I have my OSRM running on UBUNTU.
How do I change the demo server of routing machine to my own OSRM server on Leaflet?
You have to configure the settings as mentioned here. so it would be like this
L.Routing.control({
waypoints: [
L.latLng(57.74, 11.94),
L.latLng(57.6792, 11.949)
],
router: new L.Routing.OSRMv1({
serviceUrl: url_to_your_service
})
}).addTo(map);