12hr clock

Discussion in 'Linux' started by edraven, Aug 28, 2008.

  1. edraven

    edraven

    Joined:
    Aug 15, 2008
    Messages:
    7
    Likes Received:
    0
    From terminal:

    sudo nano /home/user/.config/xfce4/panel/clock-1.rc

    and change it to read:
    military=false
    ampm=true

    then exit & save & reboot.
     
    edraven, Aug 28, 2008
    #1
  2. edraven

    Guest Guest

    tried that saved file restarted and still on 24 hour time.
     
    Guest, Aug 28, 2008
    #2
  3. edraven

    Toddy

    Joined:
    Aug 24, 2008
    Messages:
    1
    Likes Received:
    0
    Same thing happened to me when I rebooted. It didn't change to 12 hour. I went back and edited the file again, despite saving it, it managed to revert back to true. This time I saved the file, and did a shutdown. Upon restarting the machine, it then displayed 12 hour time.
     
    Toddy, Aug 28, 2008
    #3
  4. edraven

    caribeboi

    Joined:
    Sep 1, 2008
    Messages:
    6
    Likes Received:
    0
    yer i just tried this and it wouldnt work i tried turning off then back on
    any help?
     
    caribeboi, Sep 1, 2008
    #4
  5. edraven

    JimK

    Joined:
    Aug 14, 2008
    Messages:
    218
    Likes Received:
    0
    When I fixed mine, I think I had to kill the panel and then restart it. Sorry I can't remember the exact command -- maybe someone else will know? Also I changed it to show AM/PM by changing that line to True.
     
    JimK, Sep 1, 2008
    #5
  6. edraven

    dark_construct

    Joined:
    Aug 29, 2008
    Messages:
    2
    Likes Received:
    0
    It seems that the panel must write out its settings upon shutdown/restart. It was driving me nuts!
    You can kill the panel, but first you need to know what the process id number is. Lookup the number, then kill it.
    Your number will probably be different than mine (1690). Once the panel goes away, edit the file, save, and reboot.

    [user@localhost ~]$ pidof xfce4-panel
    1690
    [user@localhost ~]$ kill 1690

    ___James
     
    dark_construct, Sep 1, 2008
    #6
  7. edraven

    caribeboi

    Joined:
    Sep 1, 2008
    Messages:
    6
    Likes Received:
    0
    ok thanks just tried it and am about to shutdown will say if it works
     
    caribeboi, Sep 1, 2008
    #7
  8. edraven

    caribeboi

    Joined:
    Sep 1, 2008
    Messages:
    6
    Likes Received:
    0
    ok yerp that worked so for everyone else if the first posts guide doesn't work try that and it should
     
    caribeboi, Sep 1, 2008
    #8
  9. edraven

    Guest Guest

    Must try this, thanks.
     
    Guest, Sep 1, 2008
    #9
  10. edraven

    Zeratul

    Joined:
    Aug 31, 2008
    Messages:
    14
    Likes Received:
    0
    I copied and pasted this command into terminal. I get the following message:
    "sudo: nano: command not found"

    Any ideas?

    I also tried "su -c /home/user/.config/xfce4/panel/clock-1.rc"
    It asked me for a password, I input the password and I got the following message:
    "bash: /home/user/.config/xfce4/panel/clock-1.rc: Permission denied"

    If anyone can solve the latter problem about the 'access denied,' that would greatly help me in another problem I have.

    Thanks.
     
    Zeratul, Sep 2, 2008
    #10
  11. edraven

    JimK

    Joined:
    Aug 14, 2008
    Messages:
    218
    Likes Received:
    0
    try
    sudo mousepad /home/user/.config/xfce4/panel/clock-1.rc
     
    JimK, Sep 2, 2008
    #11
  12. edraven

    hiker_jon

    Joined:
    Aug 24, 2008
    Messages:
    28
    Likes Received:
    0
    You should not need to be root to edit the panel files that are in ~/.config/xfce4/panel
    The panel DOES sometimes (but not always) overwrite its files on exit. So before you edit them do this:
    xfce4-panel -x
    This will kill the panel. Type xfce4-panel -h for help.

    Jon
     
    hiker_jon, Sep 4, 2008
    #12
  13. edraven

    Zeratul

    Joined:
    Aug 31, 2008
    Messages:
    14
    Likes Received:
    0
    Thanks guys.

    I killed the panel by typing in 'xfce4-panel -x'
    and typed in 'sudo mousepad /home/user/.config/xfce4/panel/clock-1.rc'
    and it worked like a charm!
     
    Zeratul, Sep 4, 2008
    #13
  14. edraven

    morrislee

    Joined:
    Sep 5, 2008
    Messages:
    24
    Likes Received:
    0
    use command:

    sudo mousepad /home/user/.config/xfce4/panel/clock-1.rc

    this uses the mousepad text editor that factory installed with aspire one

    best order to get this to work:

    1. disable the xfce4-panel
    2. edit the values in clock-1.rc
    3. run xfce4-panel
    4. clock working isn 12 hours then try rebooting see if it resets it back
     
    morrislee, Sep 5, 2008
    #14
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.