понеділок, 31 грудня 2012 р.

Console Weather Channel

A METAR weather report is predominantly used by pilots in fulfillment of a part of a pre-flight weather briefing, and by meteorologists, who use aggregated METAR information to assist in weather forecasting.

Raw METAR is the most popular format in the world for the transmission of weather data. It is highly standardized through International Civil Aviation Organization (ICAO), which allows it to be understood throughout most of the world.

Easiest way to read METAR data is connect to http://weather.noaa.gov/pub/data/observations/metar/stations/icao_airport_code.TXT

where icao_airport_code — ICAO airport code (UKKK for Kyiv International airport)

Example:
$ curl http://weather.noaa.gov/pub/data/observations/metar/stations/UKKK.TXT 
2012/12/31 11:00 
UKKK 311100Z 26005MPS 9000 NSC 00/M03 Q1019 26190060 NOSIG 



пʼятниця, 9 березня 2012 р.

Linux: creating ISO image

Following command able to copy local directory into an ISO-9660 image:

mkisofs -r -o name-of-iso-image.iso name-of-directory-containing-files

вівторок, 29 березня 2011 р.

Identifying type of CPU and RAM size in HP-UX and Linux

If you want to be shure how many memory installed in your server, make the command in HP-UX system:
/usr/contrib/bin/machinfo


понеділок, 28 березня 2011 р.

MacOS X: single user mode

Single-user mode may be used for troubleshooting, include reseting forgoten root password.

Shut down your Mac in case that it running. Press the power button to start computer, immediately press and hold the Command (Apple) key and the "s" key for starting MacOS X in single-user mode.

You have successfully entered single-user or verbose mode when you see white text appear on the screen.

If you want to reset your root password tape the "/sbin/mount -wu /" for mount file system in read-write mode, then "passwd root" for change root password (even in you don't known password)

To exit single-user mode type "reboot" then press Return.

субота, 19 березня 2011 р.

Reset to factory default: Extreme Networks Summit, Cisco Ctalist 2960, Ericsson ECN330

Returning the switch to the default configuration results in the loss of all existing configurations. It can be dangerous in you network or very useful when you buy used equipment in eBay ;)

Extreme Networks Summit
To return the switch configuration to factory defaults1, use the following command:
unconfig switch
This command resets the entrie configuration except user accounts and passwords. To reset all parameters, use the following command:
unconfig switch all

понеділок, 28 лютого 2011 р.

Зміна імені інтерфейсу у Linux

У одному із тестових серверів почергово побували декілька мережевих карт, в результаті єдиний інтерфейс став eth3, і виникла потреба змінити його на eth0.

Для цього, знаходимо і редагуємо файл /etc/udev/rules.d/30-net_persisent_name.rules

середа, 29 грудня 2010 р.

How to add permanent static routes in Ubuntu

Static route can be added (as usual) by “route” command:
sudo route add [-net|-host] IP netmask MASK gw GATEWAYIP dev INTERFACE

Fo the permanent route add the line to the /etc/network/interfaces:

up route add [-net|-host] IP/MASK gw GATEWAYIP dev INTERFACE

See also: How to add route in HP-UX (Ukrainian language)