[SOLVED] Journalctl is not formatting correctly and is not in color.

My user is a member of adm, but when I run journalctl it just prints out the "ESC[1;39m" instead of formating it in bold or red for errors.
example line:
Nov 04 12:16:24 red5 kernel: ESC[1;39mLinux version 3.6.5-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Wed Oct 31 20:57:39 CET 2012ESC[0m
If I run it as sudo journalctl it formats everything as expected. I'm using xterm and less.
Last edited by greg5 (2012-11-06 00:39:13)

I figured out at least a workaround, I'm not sure if this is the best way to do things, but so far it's the only thing that's worked.
Here's my pager and less environment variables from .bashrc:
export LESS='-j4aR'
export PAGER="less"
The option that fixed it is -R, here's what it says on the less man page:
-R or --RAW-CONTROL-CHARS
Like -r, but only ANSI "color" escape sequences are output in "raw" form. Unlike -r, the screen appearance is maintained correctly in most cases. ANSI "color" escape sequences are sequences
of the form:
ESC [ ... m
where the "..." is zero or more color specification characters For the purpose of keeping track of screen appearance, ANSI color escape sequences are assumed to not move the cursor. You can
make less think that characters other than "m" can end ANSI color escape sequences by setting the environment variable LESSANSIENDCHARS to the list of characters which can end a color escape
sequence. And you can make less think that characters other than the standard ones may appear between the ESC and the m by setting the environment variable LESSANSIMIDCHARS to the list of
characters which can appear.
I'm still not sure why I need to do this on my desktop and not on any other machines.

Similar Messages

  • Playbook - apps not loading correctly and icons not on desktop

    I have a new Playbook 32GB with OS 2.1.0.1526.
    I have had hassled with Wi-Fi not connecting (now fixed) and apps not downloading (needed to advance date to 2014 and reboot).
    Now the few apps I have tried to download are listed in the "MyWorld" as installed but not on the desktop.
    Where are they?! How can I use them?
    Help very much appreciated. The "out-of-the-box" experience lacking at present!
    Solved!
    Go to Solution.

    Scroll down to the bottom of the homepage. There's also a second (or more) page tobthe right but they invariably appear at the bottom of the first page.

  • Agent not installing correctly and host not appearing in console

    Hi,
    I encounter troubles with agents on some servers running Red Hat Enterprise Linux ES release 4 (Nahant Update 5).
    *1)* The install script doesn't run correctly. It hangs after some times
    install.log :
    11-21-2007 17:37:05> check rpm with rpm -q rpm
    11-21-2007 17:37:05> Checking if user is root
    11-21-2007 17:37:05> Checking UCE upgrade
    11-21-2007 17:37:05> rpm -q sun-uce-agent
    11-21-2007 17:37:05> CMD: rpm -q director-agent
    11-21-2007 17:37:05> checking /opt/local/uce/agent//bin/.uce.rc
    11-21-2007 17:37:05> /opt/local/uce/agent//bin/.uce.rc was not found
    If I install the rpm manually, the packages is successfully installed. I then just copy the .uce.rc file at the correct location.
    *2)* On those servers when the agent it running, it fails to connect to the SDS with this error in the error.log :
    29739:2007-11-21_17:01:13 ERROR [ default_logger: source_unavailable: #0 ] 17236224 Failed to initialize application. Check that you entered passwords and keys correctly.
    Any idea of what could be done ?
    Best regards,
    Fred. Oger

    Hi,
    Still don't know why the agent installer doesn't work correctly, but I found the reason of the host not appearing in console :
    The uce.public file had to be installed in /opt/local:uce/agent/bin

  • Recovery USB is not partitioning correctly and will not recover to factory.

    Started a thread here but apparently only for US models
    http://forums.toshiba.com/t5/System-...t/false#M24453

    Originally Posted by Macius
    I have made recovery installation many times and Ive never noticed some problems.
    When you start recovery image installation a few steps will be performed:
    1/ the whole HDD will be deleted and formatted
    2/ new partitions will be created
    3/ recovery image will be copied to recovery partition on the HDD
    4/ recovery image will be installed
    5/ Windows start and configuration
    There must be some problem with the HDD.
    Yes,HDD is full of bad sectors.
    Found a spare HDD and installation is going ahead.

  • Apparently a recent update did not install correctly and we get a message: Service (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services. How do we fix?

    Apparently a recent update did not install correctly and we get a message: Service (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start systen services, How do we fix this?

    Solving the iTunes Installation Problems in Windows
    1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
    2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80.

  • I've updated all my software and iTunes on my Macbook Pro but when I went to open iTunes it tells me it's either corrupted or not installed correctly and to reinstall it. Is there anyway to fix it without reinstalling the whole program?

    I've updated all my software and Itunes on my Macbook Pro but when I went to open iTunes it tells me it's either corrupted or not installed correctly and to reinstall it. Is there anyway to fix it without reinstalling the whole program?

    Here's a previous discussions that seems to have solved a similar issue in the past:
    https://discussions.apple.com/message/12209861#12209861

  • File not formatted correctly error

    Dear All,
    when am trying to import a contract file as excel sheet, not CVs file, i get the error ( File not formatted correctly ). any advice?

    the issue with date formatting would be corrected in Excel. When an export file that includes dates is opened in Excel, they get reformatted by the Excel program. In my experience, I have had to reformat those cells in Excel to the YYYY-MM-DD format and save the Excel file before I could import again into CM. But, if you are just exporting and then importing without opening the file in Excel, then the dates are not the problem. What are you exporting from CM? Are you trying to import into a different project or database than you exported from?

  • RTF not formating correctly

    Hi everyone
    I imported an RTF document and inlcuded it in my splash screen. I have some lingo that updated the ducumented when the EXE is ran:
    on beginsprite me
         member("Lawyer_bio").fileName = the moviePath & "Lawyer_bio.rtf"
         member("Lawyer_bio").rtf = member("Lawyer_bio").rtf
    end
    For some reason, the bullet points on my document are not formating correctly. It works fine with some RTF documents, but with other it does the following:
    See how only the first bullet if formating correctly, why are the other ones not? Like I said, it doesn't happen with all the RTF documents.
    thank you for your time,
    Rafa.

    Dear Rafa,
    Please check to see that the sprite cast you were transferring into was not a accidentally a “field” cast member.  Text and field objects have different properties and methods.  Both sprites should be Text cast members. (I can visualize the problem you describe occurring if you were transferring into a Field Cast member from a Text cast member.)
    Curious about how dynamic your application will be, Rafa. 
    I did not experience the same problem when attempting to duplicate the scenario you described.
    Are the formatting errors introduced when you import the file?  Or were they already there in the RTF document before you imported? 
    The way I would troubleshoot is to ‘put char()’ in the message window, from just before to just after the bullet, comparing that with another Text cast member that has properly formatted text, and discover the anomaly.  It should then be easy to write a Lingo handler to detect anomalies and correct the formatting.
    Here is the syntax for text cast members, illustrated.  By creating two text cast members (“A” eh) on the stage, then go to the message window and try:
    set T1 = the member of sprite 1
    set T2 = the member of sprite 2
    et T1.text ="Hello World"
    set T2.text = T1.text
    put char 1 of T2.text
    put the text of member 1 of castlib 1  -- or use the name of the cast member …
    likewise:
    put char 2 of (member 2 of castlib 1).text
    TEXT cast members are much improved over earlier versions of Director.  You used to only be able to manipulate FIELD cast members with Lingo, and the limit to a field cast member was 32kb.
    Adobe keeps on improving Director.  I wonder if Adobe will revive the Shockwave player, or build Director Shockwave into Acrobat.
    I’ve been out of the game for a long time.  I’ve got a lot of catching up to do. 
    But try my Pokey’s Puzzle Page www.devant.com/pokey

  • Apple iBooks not formatted correct

    i posted this to the wrong discussion gourp
    https://discussions.apple.com/message/25408887?ac_cid=op123456#25408887
    The problem is my wife purchased some iBooks fromt the Apple iBook store and they are not formatted correct for the her iPad2. What is strange is they can be read on the MacBook Pro using 10.9.2 and the iPad was recently updated. 
    He books on the iPad go away and it takes a reboot to get them back. All of the older iBooks work.... the new ones are formattted wrong

    >My wife has an appointment at the Genius Bar this afternoon to discuss the nonstandard format being sold by iBooks.
    B-I-N-G-O   The Genius Bar person FIXED it for her!
    The problme was the Apple server sent her bad files.  The fix was to delete them from the iPad2 and download them again. She was not charged for the 2nd download  the three books all work perfect now.
    What willl be interesting is she has the good copies on the iPad and the bad copies on hte MacBook Pro.  Will synce move the good books iTunes on the MBP or will it sync the bad books back tto the iPad. Stay tuned

  • Downloaded a book from itunes, works on iphone6, but will not open on ipad air. "not formatted correctly ". Any ideas ?

    Downloaded a book from itunes, works on iphone6, but will not open on ipad air. "not formatted correctly ". Any ideas ?

    Hello colinOxford0917,
    I'm sorry to hear you are having these issues with iBooks on your devices. If you continue to have issues opening the book in question on your iPad Air due to a format error, you may want to try deleting the copy on your iPad, then redownloading it directly to your iPad from the iBook Store. You may find the information and steps outlined in the following articles helpful:
    Frequently asked questions about iBooks - Apple Support
    iBooks: Tips for managing your iBooks library and storage on iOS devices - Apple Support
    Regards,
    - Brenden

  • I have had problems with iTunes lately it says iTunes was not installed correctly and to reinstall I tried 3x and still will not. Now I get msg it can not start because MSVCR80.dll is missing reinstall to fix??

    I have had problems with iTunes lately it says iTunes was not installed correctly and to reinstall. I tried 3x and still will not. Now I get a message it can not start because MSVCR80.dll is missing reinstall to fix??

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).

    Hello.  Since accepting the upgrade to the current version of I Tunes (11.4) I have been unable to get the application to boot.  I receive the message that I Tunes was not installed correctly and Error 7 (Windows Error 193).  I have uninstalled/reinstalled I Tunes several times and this has not resolved the issue.  I also uninstalled/reinstalled Microsoft.net Framework 4 since this was suggested by Apple support.  This also has not resolved the issue.
    When I reinstall I Tunes, I get a message that the “Service ‘apple mobile device’ failed to start.”  Verify you have sufficient privileges to start system services.  I attempted to manually start the Apple Mobile Device service but get a pop up stating, “Error 1053: The service did not respond to the start or control request in a timely fashion.”Unsure what I should try next. 

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it, which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    The section Install missing components has advice on breaking down the iTunes installer into the individual .msi files which might prove useful if one component, such as Apple Mobile Device Support, won't install normally.
    In your case I suggest you start with a clean download of the setup file using the direct link. If reinstalling AMDS alone doesn't work try tearing everything down again.
    tt2

  • I have tried to download ITunes 11on Windows 7 but I keep getting error message 5 telling me it did not install correctly and to install again. Can anyone help?

    I have tried to download ITunes 11on Windows 7 but I keep getting error message 5 telling me it did not install correctly and to install again. Can anyone help?

    HI there,
    I would recommend taking a look at the troubleshooting steps found in the artilce below.
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    -Griff W

  • Application is not displaying correctly and is showing as incomplete

    please i really need help i am not understanding this at all i need to send them as pdf files because there application forms I have an issue when it comes to sending the pdf files to someone else and they open the file to then tell me that the text on your application is not displaying correctly and is showing as incomplete.
    how do i fix that, they are opening it up using adobe 11 the same as I.

    Hey Robert,
    Please let me know what OS are you using and ensure whether you are using Adobe Acrobat or Adobe Reader to view PDF files.
    Also, tell me whether the recipient downloads the file first and then open in Reader or opens it in the browser only.
    Please clarify to me whether you are getting this error pop-up or the recipient?
    Hope to get your response.
    Regards,
    Anubha

  • It says that itunes was not installed correctly, and i cant fix it. what do i do?

    first it said that a file was missing and i needed to uninstall and reinsall. so i tried that and it did nothing. so i got the new virsion (10.3 ?) now it says that it was not installed correctly and i need to reinsall to fix it. so i did and it didnt do anything. i still get the same massage, "not insalled correctly. please reinstall"

    Hello megszlee
    It sounds like there was an issue when installing the update. The following article may be of assistance:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thanks,
    Matt M.

Maybe you are looking for