Numerous applications in fundamental and applied research, security, and industry require robust, compact sources of x-rays, with a particular recent interest in monochromatic, spatially coherent, and ultrafast x-ray pulses in well-collimated beams. Such x-ray sources usually require production of high-quality electron beams from compact accelerators. Guiding a radially polarized laser pulse in a plasma waveguide has been proposed for realizing direct laser acceleration (DLA), where the electrons are accelerated by the axial electric field of a co-propagating laser pulse (Serafim et al 2000 IEEE Trans. Plasma Sci. 28 1190). A moderate laser peak power is required for DLA when compared to laser wakefield acceleration, thus offering the prospect for high repetition rate operation. By using a density-modulated plasma waveguide for DLA, the acceleration distance can be extended with pulse guiding, while the density-modulation with proper axial structure can realize the quasi-phase matching between the laser pulses and electrons for a net gain accumulation (York et al 2008 Phys. Rev. Lett. 100 195001; York et al 2008 J. Opt. Soc. Am. B 25 B137; Palastro et al 2008 Phys. Rev. E 77 036405). We describe the development and application of a test particle model and particle-in-cell model for DLA. Experimental setups designed for fabrication of optically tailored plasma waveguides via the ignitor-heater scheme, and for generation and characterization of radially polarized short pulses used to drive DLA, are presented.