Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm attempting to track down a problem with a particular CSS file being returned as text/html instead of text/css.

file -mime install.css returns some less useful info:

install.css: text/x-c; charset=us-ascii

So I was encouraged to use xdg-mime instead:

[box]# xdg-mime query filetype install.css
xprop:  unable to open display ''
usage:  xprop [-options ...] [[format [dformat]] atom] ...

What am I missing?

share|improve this question
up vote 0 down vote accepted

I was logged in over ssh. Logging in via noMachine and issuing the command on a terminal in that session worked. No idea why it fails over ssh.

share|improve this answer
Try to login with ssh -X if you have an X Server installed on your remote machine. This will forward the DISPLAY to your local machine. – Sven Oct 9 '12 at 13:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.