1. First, download and install dosbox & wine. If you use debian based distro (eg: Ubuntu): just execute
    $ sudo apt-get install dosbox wine
  2. Next, download Turbo Pascal 7. And install it by using wine.
  3. Mount the location of the folder so that you can access it from inside the DOSBOX.
  4. Execute the tpx.exe

Now, you can do pascal programming on Linux. Although you can use freepascal compiler, but there are some syntaxs that is non-conformance between fpc and Turbo pascal.