[solved] timezone change

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[solved] timezone change

Postby mave » Mon Dec 23, 2013 4:20 pm

Hello,

my pi is in the wrong timezone, so I used
$this->bbcode_second_pass_code('', 'ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime')
to link localetime to another zone, but the link target doesn't change.
After that I removed localtime and tried to create a new link, I am litte confused

$this->bbcode_second_pass_quote('', 'l')n -s [target] [linkname]

should be the syntax, and recreate the link, but I get "/etc/localtime" no such file or directory.

With an empty localetime file, I receive
$this->bbcode_second_pass_code('', '0 /etc/localetime 4 /usr/share/zoneinfo/Europe/Berlin ')

What does the numbers mean?
Last edited by mave on Mon Dec 23, 2013 4:50 pm, edited 2 times in total.
mave
 
Posts: 6
Joined: Mon Dec 23, 2013 1:46 pm

Re: timezone change

Postby WarheadsSE » Mon Dec 23, 2013 4:32 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: timezone change

Postby mave » Mon Dec 23, 2013 4:36 pm

@WarheadsSE
This is what I did, but it is not creating a new link.

$this->bbcode_second_pass_quote('', '/')usr/share/zoneinfo/Europe/Berlin
exist
mave
 
Posts: 6
Joined: Mon Dec 23, 2013 1:46 pm

Re: timezone change

Postby WarheadsSE » Mon Dec 23, 2013 4:38 pm

$this->bbcode_second_pass_code('', '
rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
')

It is not that complex. Do this as root.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: timezone change

Postby mave » Mon Dec 23, 2013 4:45 pm

I know, I created symlinks serveral times before and wrote above that I removed and used the same command as root...I don't know why, but it is working now.
...I'm feeling so stupid :(
mave
 
Posts: 6
Joined: Mon Dec 23, 2013 1:46 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests