Let $G$ be the fundamental group of a surface, and consider an extension $1 \to \mathbb{Z}/p\mathbb{Z} \to E \to G \to 1$. Is $E$ residually finite?
I'm interested in proving the injectivity of the map $\mathbb{Z}/p\mathbb{Z} \to \widehat{E_p}$, where the latter group is the pro-$p$ completion of $E$. I know that this map is injective (at least for some surface groups $G$, for example when the surface is orientable with genus $g \geq 1$), but I'm not really sure how to proceed, and this seems the most promissing way.
Yes, in central general, central extensions of f.g. linear groups are not linear. Famous examples of this are due to Deligne, Millson and Rahunathan.
The hint for your group is to notice that the presentation of this group (after passing to a finite index subgroup if needed) has the form $$ \langle t, a_1,b_1,...,a_g,b_g| [a_1,b_1]\cdots[a_g,b_g]t, [a_i,t], [b_j,t], t^q, 1\le i, j\le g\rangle. $$ Take the quotient by the normal closure of the subgroup generated by $a_2, b_2,...,a_g,b_g$. The result is a 2-generated nilpotent group to which the center of your group maps injectively. Now, use the fact that finitely generated nilpotent groups are linear. Hence, you obtain an (unfaithful) linear representation of your group such that the center maps injectively. The rest you should be able to figure out.