Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Setting time
PostPosted: Mon Apr 12, 2010 11:33 pm 
Offline
Junior Member

Joined: Tue Apr 06, 2010 8:08 pm
Posts: 22
Location: U.S.
On brand new install of Ubuntu 8.04, I issued the command to change time: sudo dpkg-reconfigure tzdata

That got me a blue screen with a gray box on it and the words package configuration at the top of the gray box. Inside the box is code...lqqqqqq etc.

So instead I used tzselect. That did bring up the time zone prompts. What confused me was at the end it said, "You can make this change permanent for yourself by appending the line
TZ='America/Los_Angeles'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Can someone tell me if I'm doing this correctly before I upload to server? I can't find anyone else that has had this situation:

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi

mesg n
TZ='America/Los_Angeles'; export TZ


Top
   
 Post subject:
PostPosted: Tue Apr 13, 2010 1:40 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If you want to change the time zone globally do the following
Code:
mv /etc/localtime  /etc/localtime-old
ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Where UTC is the new timezone


Top
   
 Post subject: Re: Setting time
PostPosted: Tue Apr 13, 2010 2:43 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
nw-woman wrote:
On brand new install of Ubuntu 8.04, I issued the command to change time: sudo dpkg-reconfigure tzdata

Yes, that's the right way of doing it.

nw-woman wrote:
That got me a blue screen with a gray box on it and the words package configuration at the top of the gray box. Inside the box is code...lqqqqqq etc.

And that sounds like you tried to run it in the ajax console, and not over SSH (regular or to LISH, doesn't matter).


Top
   
 Post subject: Interesting
PostPosted: Wed Apr 14, 2010 12:08 am 
Offline
Junior Member

Joined: Tue Apr 06, 2010 8:08 pm
Posts: 22
Location: U.S.
TY for the help rsk>

I ran the command over SSH using Tunnelier, a ssh2 client, terminal console. Is it really using secure channel? Key exchange occurs. And, I ran it again to see the log of connect'ng steps:

21:04:49.100 Starting a new SSH2 session.
21:04:49.190 Connecting to SSH2 server 69.164.205.139:22.
21:04:49.360 Connected.
21:04:49.550 Starting first key exchange.
21:04:50.482 Server version string: SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
21:04:52.575 New host key received. <snip>
21:04:55.279 Authentication completed.
21:04:55.619 Auto opening SFTP session.

??


Top
   
 Post subject:
PostPosted: Wed Apr 14, 2010 3:54 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Yes, it is an SSH connection. Still, apparently the client you're using is not providing a proper full-screen emulation as it should.

Try Putty for a change.

If you're connecting through LISH emergency console (linodeXXXXX@datacenterXX.linode.com), make sure to set your program's window size to 80x24, and type
Code:
TERM=vt100
export TERM

after login and before the call to dpkg-reconfigure.
If you're using a regular connection to your sshd (yourlogin@yourlinodeaddress) it should not be necessary.

In any case, you can try falling back to Debconf's text interface, which has a better chance of working in a misconfigured terminal:
Code:
dpkg-reconfigure -freadline tzdata


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group