For hardware, the government could subsidize manufacturers for units sold in the country that meet requirements. Or provide a tax rebates to citizens who purchase them. Nobody is saying "A car in every driveway, and a server farm in every basement." Just ensuring a general purpose computer is affordable for families earning some fraction of the poverty line.
For software, The government could give grants to developers of FOSS operating systems and essential software, similar to how the US encourage the arts through the National Environment for the Arts. The grants would come with a requirement for distributing the works online to any citizen (e.g. download link on a public page). For people with crappy or no internet, the gov could mail USB sticks or CDs for cost plus shipping.