Text this: Active particles in a tube: A generalized entropy potential approach