Tuesday, January 3, 2012

Ubuntu SFTP via Another Host

Just need to reach SFTP. But have access from another host.

Solution looks like:

Host sftp_host_aliase
  ProxyCommand ssh -q user@dmz.host nc %h %p $*
  HostName sftp_ip_address

Ubuntu Count Files In The Folder


As usual, the trick is very simple:
ls -l | wc -l

See
man wc 
for further details

Ubuntu CPU Temperature

Trick is simple
http://ubuntuforums.org/showthread.php?t=2780&page=46

sudo apt-get install lm-sensors
sudo sensors-detect
sensors

Will see how it works !

Saturday, November 5, 2011

Ubuntu: Where the package come from ?

Really nice trick:


apt-cache policy


For example:
apt-cache policy uno-libs3
uno-libs3:
  Installed: 1.6.0+OOo3.2.0-7ubuntu4.2
  Candidate: 1.7.0+LibO3.3.4-0ubuntu1~lucid1~ricotz2
  Version table:
     1.7.0+LibO3.3.4-0ubuntu1~lucid1~ricotz2 0
        500 http://ppa.launchpad.net/ricotz/ppa/ubuntu/ lucid/main Packages
 *** 1.6.0+OOo3.2.0-7ubuntu4.2 0
        500 http://ua.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     1.6.0+OOo3.2.0-7ubuntu4 0
        500 http://ua.archive.ubuntu.com/ubuntu/ lucid/main Packages



So, In my case I can see that the last version 1.7.0 comes from non-Ubuntu report


Reference:
http://superuser.com/questions/106794/how-to-tell-from-what-ubuntu-or-debian-repository-a-package-comes

Wednesday, November 2, 2011

Ubuntu, Clocks in Ukraine move back October 30, 2011

Wow, what I love about opensource community is ...
https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/881250

Clocks in Ukraine move back October 30, 2011 

The problem:
On October 31, 2011 my clock time was wrong. Winter time was not supported, somehow
It was supposed to be one hour back. But not in my case.

Solution:
So what's the reason ?
Appeared to be the Ukrainian government changed its mind late enough.
Firstly it decided ti do a permanent DST from 2011.
But then the desicion was reverted.

tzdata package represent the databaes of DST changes for timezones
https://launchpad.net/ubuntu/+source/tzdata

And the latest version
https://launchpad.net/ubuntu/+source/tzdata/2011n-0ubuntu0.10.04
was not updated on my laptop

Useful commands:

Not correct output. It includes permanent DST without a Winter time
sudo zdump -v /etc/localtime | grep 2011
/etc/localtime  Sun Mar 27 00:59:59 2011 UTC = Sun Mar 27 02:59:59 2011 EET isdst=0 gmtoff=7200
/etc/localtime  Sun Mar 27 01:00:00 2011 UTC = Sun Mar 27 04:00:00 2011 FET isdst=0 gmtoff=10800



With the latest update, there is a winter time step back in October 30, 2011
sudo zdump -v /etc/localtime | grep 2011
/etc/localtime  Sun Mar 27 00:59:59 2011 UTC = Sun Mar 27 02:59:59 2011 EET isdst=0 gmtoff=7200
/etc/localtime  Sun Mar 27 01:00:00 2011 UTC = Sun Mar 27 04:00:00 2011 EEST isdst=1 gmtoff=10800
/etc/localtime  Sun Oct 30 00:59:59 2011 UTC = Sun Oct 30 03:59:59 2011 EEST isdst=1 gmtoff=10800
/etc/localtime  Sun Oct 30 01:00:00 2011 UTC = Sun Oct 30 03:00:00 2011 EET isdst=0 gmtoff=7200


Useful links:
https://launchpad.net/ubuntu/+source/tzdata
http://en.wikipedia.org/wiki/Time_zone
http://en.wikipedia.org/wiki/Daylight_saving_time
http://en.wikipedia.org/wiki/Tz_database


So, thank you OpenSource community for hot updates