The following commands can be used on the ASA to achieve the same as we did on the ASDM:
ASA-1(config)# router rip
ASA-1(config-router)# network 192.168.1.0
ASA-1(config-router)# network 192.168.2.0
ASA-1(config-router)# version 2
ASA-1(config-router)# passive-interface Outside
ASA-1(config-router)# no auto-summarize
ASA-1(config-router)# redistribute static