I want to print this text :
make -j 5 KDEB_PKGVERSION=1.yourcustomname deb-pkg
But I feel because of the underscore , LaTeX generates an error missing $ inserted and it doesn't print it as well.
Secondly, In the \fbox{} , I wanted to print the two texts on the next line(i.e) one text per line , so I used \ and even \par but it doesn't seem to work and I would like to align the (or) as well.
\fbox{\texttt{uname -a}\\(or) \texttt{cat /proc/version}}
Here is my full source code:
\documentclass[12pt]{article}
\author{Subham Soni S.}
\date{\today}
\title{Compiling and Installing a Kernel 3.13.3 On Ubuntu, Debian and its Derivatives}
\begin{document}
\maketitle
To replace the existing \textsl{kernel} with a new one, do the following:
\begin{enumerate}
\item Create a folder named \emph{kernel} in the home directory.
\item Download the latest kernel to the folder from \texttt{www.kernel.org}.
\item Extract the file.
\item In the terminal, type the following command to \textbf{install the neccesary tools to compile the kernel}:
\begin{center}
\fbox{\texttt{sudo apt-get install gcc libncurses5-dev dpkg-dev}}
\end{center}
\item Enter the directory of the extracted kernel source
\begin{center}
\fbox{\texttt{cd kernel} \par \texttt{cd linux-3.13.3}}
\end{center}
\item Configure the kernel
\begin{center}
\fbox{\texttt{make menuconfig}}
\end{center}
In this menu you can customize your kernel
\item Save and exit
\item Compile the kernel
\begin{center}
\fbox{\texttt{make -j 5 KDEB_PKGVERSION=1.yourcustomname deb-pkg}}
\end{center}
\emph{This process might take a while...}
\item Install the kernel
\begin{center}
\fbox{\texttt{sudo dpkg -i ../linux*.deb}}
\end{center}
\item Reboot
\begin{center}
\fbox{\texttt{sudo reboot}}
\end{center}
\item Run the following commands to check the kernel version
\begin{center}
\fbox{\texttt{uname -a}\\(or) \texttt{cat /proc/version}}
\end{center}
\item You can easily uninstall the kernel with the command:
\begin{center}
\fbox{\texttt{sudo apt-get purge linux-image-3.13.3 linux-image-3.13.3-dbg}}
\end{center}
\end{enumerate}
\end{document}


\usepackage{newverbs}and inputting the command lines as\fverb!do_something!– egreg Feb 21 '14 at 09:40