We report on the scanning tunneling microscopy and small-wide angle X-ray scattering and diffraction of four linear and rigid pi-conjugated p-phenyleneethynylene (PPE) oligomers. The four compounds possess two dode-canoxy side chains on the central PPE moiety, differ in conjugated length (3 and 5 phenyleneethynylene moieties) and are benzyl, Bz3PEBz, Bz5PEBz, or carboxylic acid, Ac3PEAc, Ac5PEAc, end-capped. We found that in the benzylbenzoate terminated oligomers, a staggered arrangement of molecules is obtained endorsed by the pi-pi interaction between the benzyls. In contrast, for the carboxylic acid terminated oligomers, a rather linear type arrangement is promoted by the hydrogen bond created between the carboxylic acid groups. In general, all of the molecules form a lamellar like pattern adopting face-on arrangements, where the conjugated backbones are flat-lying on the HOPG surface. The lamella length corresponds to the oligomer conjugation length, while within the lamellae, the calculated distances correspond to the spacing between conjugated backbones with an average value of 2.06 nm, consistent with that found by XRD, SAXS and DFT/def-SVP for the oligomers that self-assemble with the lateral alkyl chains interdigitated. The lack of more dodecanoxy side chains on the rest of the phe-neyleneethynylene moieties gives rise to mesoporous type self-assembled monolayers on HOPG.