Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
taqueso
Mar 8, 2004


:911:
:wookie: :thermidor: :wookie:
:dehumanize:

:pirate::hf::tinfoil:

GregNorc posted:

So I would like to set up Thunderbird so it pulls all the mail from the server, and stores it locally. (But leaving a copy on the server - Dreamhost claims I get infinite storage, so what the hell, might as well test their claim)

Use IMAP if you are not. Go to the account settings, choose "Synchronization & Storage". Check the box that says "Keep messages for this account on this computer". Click the Advanced button and choose which folders you want to keep locally.

Adbot
ADBOT LOVES YOU

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

ExcessBLarg! posted:

Backports is more for when you want to run a stable, production system, but need one or two newer versions of packages than what the shipping version offers.

If he's coming from Fedora, testing sounds entirely appropriate. Also, who's to say his kernel bug isn't an issue in 2.6.32?

It's my bias I guess, considering the sheer level of stuff i'm responsible for, that i'd want to run the most stable stuff.

Ninja Rope
Oct 22, 2005

Wee.
djbdns is kind of a lovely dns server. It's fine if you're doing something very limited with it, but in general nsd and unbound are better choices. BIND's not so bad.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

What's the easiest way to keep my bash settings when I launch screen?

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

Bob Morales posted:

What's the easiest way to keep my bash settings when I launch screen?

put 'em in .bashrc. Those settings will get imported for non-login shells.


If you use .bashrc for other stuff, you can set up screen with something like

screen -s bash --rcfile .screenbashrc

nitrogen fucked around with this message at 14:29 on Jun 15, 2011

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

nitrogen posted:

put 'em in .bashrc. Those settings will get imported for non-login shells.


If you use .bashrc for other stuff, you can set up screen with something like

screen -s bash --rcfile .screenbashrc

derp. It was all in .bash_profile, works now. Thanks.

Dinty Moore
Apr 26, 2007

Ninja Rope posted:

djbdns is kind of a lovely dns server. It's fine if you're doing something very limited with it, but in general nsd and unbound are better choices. BIND's not so bad.

I personally favor PowerDNS, but that's because I use it at work, and we host thousands of domains. Zone data in a database is a beautiful thing.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

nitrogen posted:

put 'em in .bashrc. Those settings will get imported for non-login shells.


If you use .bashrc for other stuff, you can set up screen with something like

screen -s bash --rcfile .screenbashrc

What kind of horrible black magic to I get from symlinking my .bash_profile to .bashrc?

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

FISHMANPET posted:

What kind of horrible black magic to I get from symlinking my .bash_profile to .bashrc?

Internet says to source .bashrc from .bash_profile

http://hintsforums.macworld.com/archive/index.php/t-16493.html

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Bob Morales posted:

Internet says to source .bashrc from .bash_profile

http://hintsforums.macworld.com/archive/index.php/t-16493.html

Welp, I guess that's what I actually do:
code:
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

Underflow
Apr 4, 2008

EGOMET MIHI IGNOSCO
source ~/.bashrc (in .bash_profile)

some kinda jackal
Feb 25, 2003

 
 

Martytoof posted:

Since we're talking about wpa_supplicant, can someone post their wpa_supplicant.conf that's known to work with a WPA Personal AP?

I'm fighting with wpa_supplicant every step of the way to get wireless running on this headless ubuntu-server machine (laptop with broken screen that I figured I'd repurpose). "iwlist scan" shows that it finds my AP's SSID so I think (hope) that means my card is actually working.

Here's mine, that I'm having zero luck with:

ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Giewont"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=passgoeshere
}

For what its worth, I got it working by just using:

ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Giewont"
scan_ssid=1
key_mgmt=WPA-PSK
psk="xyz"
}

in my wpa_supplicant conf file and adding:

post-up wpa_supplicant -ieth0 -c/etc/wpa_supplicant.conf -B

to my eth0 definition in /etc/network/interfaces because whatever wpa_supplicant flags it was supplying were completely breaking the process, and I didn't feel like tracking down the flags one by one in the .d files. Wish I'd thought to do this yesterday instead of fighting with it for like 3 hours.

MachinTrucChose
Jun 25, 2009
I'm trying to set up pptpd on a cheapo Debian VPS I have so I can watch Hulu. It's not going well. I followed various guides but my Windows 7 client can't connect to the Debian server.

I enabled debug logging and the only entry at connection time is this:

code:
server1:/var/log# tail /var/log/debug
Jun 16 04:01:04 server1 pptpd[23580]: CTRL: Reaping child PPP[23581]
Jun 16 04:17:27 server1 pptpd[3319]: CTRL: Reaping child PPP[3321]

server1:/var/log# tail /var/log/messages
Jun 16 04:01:04 server1 pppd[23581]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Jun 16 04:17:27 server1 pppd[3321]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Jun 16 04:17:27 server1 pppd[3321]: pptpd-logwtmp: $Version$
That's more info than debug IMO. I have no way of knowing if it's authentication, bad protocol handshake, or what.

On the Windows 7 client, it goes "Verifying username and password", then "Connecting to <server1> using 'WAN Miniport (SSTP)'" then 30 seconds later gives an error 619.

Googling the "reaping child" error gives advice to turn off compression and headers. pptpd-options has compression disabled by default (nobsdcomp), but neither conf file mentions headers so I'm not sure what the deal is here.

Here's /etc/pptpd.conf:
code:
option /etc/ppp/pptpd-options
logwtmp
localip 10.1.0.50
remoteip 10.1.0.90-99
and /etc/ppp/pptpd-options:
code:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
nodefaultroute
debug
dump
lock
nobsdcomp
Any advice on where I can go from here?

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

MachinTrucChose posted:

I'm trying to set up pptpd on a cheapo Debian VPS I have so I can watch Hulu. It's not going well. I followed various guides but my Windows 7 client can't connect to the Debian server.

Any advice on where I can go from here?

Try ssh -Dlocalhost:1234 (the putty equivalent is "Dynamic" i think) and then configure your browser to use localhost:1234 as your socks proxy.

That'll be much easier. That's how I would break out of a work firewall at work, if I ever did such things, which I'd NEVER do.

EDIT: Didnt mean to sound like a shithead, if you REALLY want to set up pptpd, I can help, but argh, it IS a lovely experience.

nitrogen fucked around with this message at 04:16 on Jun 16, 2011

taqueso
Mar 8, 2004


:911:
:wookie: :thermidor: :wookie:
:dehumanize:

:pirate::hf::tinfoil:

Last time I set up pptpd it was a big headache to troubleshoot. As nitrogen says, SSH is way easier.

MachinTrucChose
Jun 25, 2009
Good idea. I set up an SSH tunnel. Seema to work, whatismyip reports my US IP, and I can access Hulu now (well most videos give me a "Sorry, we are unable to stream your connection" error, but it works)

Thanks for your advice.

Modern Pragmatist
Aug 20, 2008
The other day I was trying to diagnose a problem where my machine wasn't able to access other computers via hostname (turned out to be due to the lack of hosts: wins entry in nsswitch.conf). During the process, there was some command I used that gave me a listing of all IPs and associated hostnames on the network and now I can't remember it. Does anyone know what command I'm talking about?

taqueso
Mar 8, 2004


:911:
:wookie: :thermidor: :wookie:
:dehumanize:

:pirate::hf::tinfoil:

Modern Pragmatist posted:

The other day I was trying to diagnose a problem where my machine wasn't able to access other computers via hostname (turned out to be due to the lack of hosts: wins entry in nsswitch.conf). During the process, there was some command I used that gave me a listing of all IPs and associated hostnames on the network and now I can't remember it. Does anyone know what command I'm talking about?

"arp -a" or nmap?

Modern Pragmatist
Aug 20, 2008

taqueso posted:

"arp -a" or nmap?

Neither of these ring a bell, but they both accomplish what I need. Thank you.

bort
Mar 13, 2003

smbstatus does that for NetBIOS names.

Adraeus
Jan 25, 2008

by Y Kant Ozma Post
Anyone know how to update (and perhaps only) Apache httpd 2.2.3 to 2.2.19 on CentOS 5.5?

I already have httpd installed. I tried to make install the 2.2.19 source, but it was installed to /usr/local/apache2 and didn't upgrade 2.2.3.

And yum remove httpd looks like I'd have to go through the process of installing php 5.3.6 again.

JHVH-1
Jun 28, 2002
Looks like the CentAlt repo has 2.2.19.
Instructions here: http://centos.alt.ru/repository/centos/readme.txt ( the EPEL link is out of date, should say epel-release-5-4.noarch.rpm )

It will try and ugprade other things though if you aren't careful. You can set enabled=0 in the /etc/yum.repos.d/ file and then use something like yum --enablerepo=CentALT upgrade httpd

Alternately you can use rpm -e --nodeps (or whatever the flags you need to make it not uninstall other stuff), but then you end up with a messy system.

dolicf
Sep 12, 2010
Is there a specific reason that you need httpd 2.2.19? RHEL based systems (like CentOS) have patches backported, so even though the version number isn't in line with the most recent release from the original maintainers of the project, it likely still contains most/all of the relevant bugfixes and security patches.

Unless you have a compelling reason for 2.2.19, I would strongly recommend you simply stick with the version that's present in the yum channels. It's significantly easier to stay on top of updates and maintain the system with a package manager as opposed to compiling from source.

Underflow
Apr 4, 2008

EGOMET MIHI IGNOSCO
Is there a way to suppress specific kernel messages? I run Slackware 13.37 on one machine, but had to downgrade to an older Samba build because of crucial shares on a Windows 95 dedicated audio workstation. The custom-built hardware it carries is unsupported by newer Windows versions (and motherboards).

The annoying thing is that each time I mount the shares the following msg gets plastered all over stdout on every terminal, incl. any open in a GUI. The machine isn't up on a daily basis, and never on before the Slackware box, so it's no use checking if it's up in an init script.

---
[20985.593711] smbfs is deprecated and will be removed from the 2.6.37 kernel. Please migrate to cifs

Message from syslogd@machine at date ...
machine kernel: [20985.593711] smbfs is deprecated and will be removed from the 2.6.37 kernel. Please migrate to cifs
---

It's not a big problem; just annoying as hell when I'm editing stuff on terminals.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

Underflow posted:

Is there a way to suppress specific kernel messages?

In Redhat/Fedora you can do this:

setterm -msg off

Underflow
Apr 4, 2008

EGOMET MIHI IGNOSCO
Ah, thanks for the tip, didn't think of that. Unfortunately, even though the option is clearly valid according to the man page in Slack the it's still getting through. Strange thing is that it's just that particular one re. Samba.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

There's something terribly wrong with the system clock on my Thinkpad W510, running Ubuntu 11.04. It only started acting up after the upgrade to 11.04, but the clock basically drifts by a couple of hours each day. It's not a timezone issue, as the clock is not off by an exact hour interval. I tried installing NTP, but it doesn't seem to do anything. I have no idea what's going on, but I'm really sick of typing "austin time" into google.

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

peepsalot posted:

There's something terribly wrong with the system clock on my Thinkpad W510, running Ubuntu 11.04. It only started acting up after the upgrade to 11.04, but the clock basically drifts by a couple of hours each day. It's not a timezone issue, as the clock is not off by an exact hour interval. I tried installing NTP, but it doesn't seem to do anything. I have no idea what's going on, but I'm really sick of typing "austin time" into google.

ntpq -p

post output

cat /etc/ntp.conf (or wherever ntp.conf lives on that)
and post output.

ntpdate -qd

and post output (if you have ntpdate), otherwise sudo apt-get install ntpdate
pastebin might be better.

nitrogen fucked around with this message at 21:51 on Jun 19, 2011

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

nitrogen posted:

ntpq -p

post output

cat /etc/ntp.conf (or wherever ntp.conf lives on that)
and post output.

ntpdate -qd

and post output (if you have ntpdate), otherwise sudo apt-get install ntpdate
pastebin might be better.


/etc/ntp.conf

code:
peeps@peeps-ThinkPad-W510:~$ ntpq -p
ntpq: read: Connection refused
peeps@peeps-ThinkPad-W510:~$ sudo ntpq -p
ntpq: read: Connection refused
peeps@peeps-ThinkPad-W510:~$ ntpdate -qd
19 Jun 16:11:16 ntpdate[11328]: ntpdate 4.2.6p2@1.2194-o Thu Mar 10 21:16:06 UTC 2011 (1)
19 Jun 16:11:16 ntpdate[11328]: no servers can be used, exiting
peeps@peeps-ThinkPad-W510:~$ sudo ntpdate -qd
19 Jun 16:11:19 ntpdate[11378]: ntpdate 4.2.6p2@1.2194-o Thu Mar 10 21:16:06 UTC 2011 (1)
19 Jun 16:11:19 ntpdate[11378]: no servers can be used, exiting
Edit:
I had to manually restart /etc/init.d/ntp daemon

code:
peeps@peeps-ThinkPad-W510:/$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp1.digitalwes .GPS.            1 u    3   64    1   72.535  46887.9   0.000
 68.68.18.78.cus 192.43.244.18    2 u    2   64    1   86.422  46982.5   0.000
 w1-wdc.ipv4.got 10.0.77.54       4 u    1   64    1   66.532  47076.1   0.000
 cheezum.mattnor 24.56.178.140    2 u    -   64    1   33.096  47172.9   0.000
 europium.canoni .INIT.          16 u    -   64    0    0.000    0.000   0.000
Still same message from ntpdate though

peepsalot fucked around with this message at 22:32 on Jun 19, 2011

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

peepsalot posted:

/etc/ntp.conf

code:
peeps@peeps-ThinkPad-W510:~$ ntpq -p
ntpq: read: Connection refused
peeps@peeps-ThinkPad-W510:~$ sudo ntpq -p
ntpq: read: Connection refused
peeps@peeps-ThinkPad-W510:~$ ntpdate -qd
19 Jun 16:11:16 ntpdate[11328]: ntpdate 4.2.6p2@1.2194-o Thu Mar 10 21:16:06 UTC 2011 (1)
19 Jun 16:11:16 ntpdate[11328]: no servers can be used, exiting
peeps@peeps-ThinkPad-W510:~$ sudo ntpdate -qd
19 Jun 16:11:19 ntpdate[11378]: ntpdate 4.2.6p2@1.2194-o Thu Mar 10 21:16:06 UTC 2011 (1)
19 Jun 16:11:19 ntpdate[11378]: no servers can be used, exiting

my bad, I should have said:
ntpdate -qd ntp.ubuntu.com


It seems like ntpd isnt running.

ps -ef |grep ntp |grep -v grep

and see if i'ts running.

if it's not:
sudo /etc/init.d/ntp start

and lets see what it says. Also, tail /var/log/syslog and post exactly what's there after a restart.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

I edited my post before I saw your reply, the ntpq results are above.

Here is the new ntpdate results:
code:
peeps@peeps-ThinkPad-W510:/$ ntpdate -qd ntp.ubuntu.com
19 Jun 16:31:32 ntpdate[21867]: ntpdate 4.2.6p2@1.2194-o Thu Mar 10 21:16:06 UTC 2011 (1)
Looking for host ntp.ubuntu.com and service ntp
host found : europium.canonical.com
transmit(91.189.94.4)
receive(91.189.94.4)
transmit(91.189.94.4)
receive(91.189.94.4)
transmit(91.189.94.4)
receive(91.189.94.4)
transmit(91.189.94.4)
receive(91.189.94.4)
transmit(91.189.94.4)
server 91.189.94.4, port 123
stratum 2, precision -20, leap 00, trust 000
refid [91.189.94.4], delay 0.15791, dispersion 0.36201
transmitted 4, in filter 4
reference time:    d1a8e711.3855fa88  Sun, Jun 19 2011 16:22:25.220
originate timestamp: d1a8e97c.d2d4de9f  Sun, Jun 19 2011 16:32:44.823
transmit timestamp:  d1a8e93b.14072120  Sun, Jun 19 2011 16:31:39.078
filter delay:  0.15906  0.15805  0.16025  0.15791 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 65.09973 65.29283 65.48714 65.67915
         0.000000 0.000000 0.000000 0.000000
delay 0.15791, dispersion 0.36201
offset 65.679155

19 Jun 16:31:41 ntpdate[21867]: step time server 91.189.94.4 offset 65.679155 sec
Syslog messages after ntp start:
code:
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24747]: ntpd 4.2.6p2@1.2194-o Thu Mar 10 21:16:06 UTC 2011 (1)
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: proto: precision = 0.112 usec
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: Listen and drop on 1 v6wildcard :: UDP 123
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: Listen normally on 2 lo 127.0.0.1 UDP 123
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: Listen normally on 3 wlan0 192.168.2.11 UDP 123
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: Listen normally on 4 wlan0 fe80::224:d7ff:fe45:d374 UDP 123
Jun 19 16:35:08 peeps-ThinkPad-W510 ntpd[24748]: Listen normally on 5 lo ::1 UDP 123

peepsalot fucked around with this message at 22:37 on Jun 19, 2011

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?
Hrm.

Do the following:

$ sudo /etc/init.d/ntp stop

$ sudo ntpdate pool.ntp.org

$ sudo hwclock --systohc

then reboot
$ sudo shutdown -r now

and then run the steps I said at first (ntpq -p, etc)
as well as log entries from syslog re: ntp

At worst case at this point, you can use "sudo ntpdate -u pool.ntp.org" to set the time if we can't get ntpd working properly.

nitrogen fucked around with this message at 22:56 on Jun 19, 2011

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

OK, I ran through those commands, rebooted and immediately ran ntpq etc, but ntpd was not initally running after reboot. I had to manually start it again.

http://pastebin.ubuntu.com/629577/

Hughmoris
Apr 21, 2007
Let's go to the abyss!
Wow, color my impressed. I'm still a newbie trying to play around with Linux, so I installed Kubuntu on an older laptop.

I needed to print something out so I downloaded a 365MB HP driver to use on my computer running Windows. I plugged the printer into my Kubuntu laptop and it printed right away, no downloads needed. Amazing.

quackquackquack
Nov 10, 2002

MachinTrucChose posted:

Good idea. I set up an SSH tunnel. Seema to work, whatismyip reports my US IP, and I can access Hulu now (well most videos give me a "Sorry, we are unable to stream your connection" error, but it works)

Thanks for your advice.

I believe I discovered when I set up an SSH tunnel for Hulu (it was a while ago) that Flash did not respect the browser proxy settings in Firefox.

I think I used Chrome and it worked?

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

peepsalot posted:

OK, I ran through those commands, rebooted and immediately ran ntpq etc, but ntpd was not initally running after reboot. I had to manually start it again.

http://pastebin.ubuntu.com/629577/

Did you check the links in /etc/rc2.d? (or are they rc3.d in ubuntu?)

I have no idea what else it could be at this point.

You could always try
apt-get --purge remove ntp

and then reinstall with
apt-get install ntp

thats my last ditch guess.

nitrogen fucked around with this message at 02:42 on Jun 20, 2011

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

OK, the rc2.d script was disabled, labeled K77ntp instead of S77ntp. I renamed it and it starts on boot now. I'll have to wait and see if it stays set correctly this time.

Edit: looks like it's drifting behind by about 5 minutes every hour. So, after a day it will be off by about 2 hours, and I'm pretty sure ntp won't sync up when the time is too far off. Back to the same old problem

peepsalot fucked around with this message at 05:29 on Jun 20, 2011

Wheelchair Stunts
Dec 17, 2005

peepsalot posted:

OK, the rc2.d script was disabled, labeled K77ntp instead of S77ntp. I renamed it and it starts on boot now. I'll have to wait and see if it stays set correctly this time.

Edit: looks like it's drifting behind by about 5 minutes every hour. So, after a day it will be off by about 2 hours, and I'm pretty sure ntp won't sync up when the time is too far off. Back to the same old problem

I want to say that there will be an /etc/default/ntp.conf or something similar that you can use to modify the drift correction. As I recall, ntp won't adjust the date if it's over a pre-defined threshold. Man page checking would also be beneficial.

Underflow
Apr 4, 2008

EGOMET MIHI IGNOSCO
---moved to HoTS, sorry---

Underflow fucked around with this message at 22:38 on Jun 20, 2011

Adbot
ADBOT LOVES YOU

nitrogen
May 21, 2004

Oh, what's a 217°C difference between friends?

peepsalot posted:

OK, the rc2.d script was disabled, labeled K77ntp instead of S77ntp. I renamed it and it starts on boot now. I'll have to wait and see if it stays set correctly this time.

Edit: looks like it's drifting behind by about 5 minutes every hour. So, after a day it will be off by about 2 hours, and I'm pretty sure ntp won't sync up when the time is too far off. Back to the same old problem

$ sudo /etc/init.d/ntp stop

$ sudo rm /var/lib/ntp/ntp.drift

$ sudo ntpdate 0.ubuntu.pool.ntp.org
[look for a line that says something like
code:
20 Jun 12:24:19 ntpdate[16254]: adjust time server 204.235.61.9 offset -0.009897 sec
$ sudo /etc/init.d/ntp start

wait about 30-45 mins then

$ ntpq -p

you should see output like:

code:
$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+173-203-122-111 81.25.192.148    3 u  802 1024  377   25.963   -6.175   4.984
+109.169.60.186  204.9.54.119     2 u  165 1024  377   48.010    4.028   7.349
*68.68.18.78.cus 192.43.244.18    2 u 1007 1024  377   23.387  -11.151   4.515
-mirror          128.138.140.44   2 u  554 1024  377   26.370  -29.166  27.323
Make sure one of your lines has an entry that begins with "*" (like the 3rd line here does) this means your ntpd is locked onto a good source.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply