Wednesday, May 11, 2011

How to install GWT SDK and SmartGWT on Mac

Install GWT on Mac like this:
1. Download GWT SDK from this site http://code.google.com/intl/uk-UA/webtoolkit/download.html

2. Unzip it and move it to Applications folder on your Mac.

Install SmartGWT on Mac like this:
1. Download  SmartGWT from this site http://www.smartclient.com/product/download.jsp

2. Unzip it and move it to Applications folder on your Mac.

In Terminal set GWT_HOME and GST_HOME like this:
Open in Terminal with Vim .profile: vi ~/.profile
Add these lines:
export GWT_HOME=/Applications/gwt-2.1.1 (put here your version of gwt)
export GST_HOME=/Applications/smartgwt-2.4 (put here your version of smartgwt)
Restart your Mac and in Terminal check path to GWT_HOME and GST_HOME:
echo $GWT_HOME
echo $GST_HOME


That's all. 

Tuesday, May 10, 2011

How to Copy directory in Linux

Here is the command in Linux or Mac (in Terminal) that will make one directory to be copied into another:

cp -r one_directory other_directory.

Important add is the argument -r


Check this link about copy command in Linux.

VIM on Mac

When someone first trying VIM editor he will wondering how to finish VIM :) Here is how to do it.

HOW to save and close VIM on Mac:
Type only two characters: ZZ


Check this link for further instruction about commands of VIM.

Monday, May 9, 2011

Enter svn with username

svn --username login@domain.com list http://domain_of_repository

Install Maven (mvn) on Mac

First of all check version of Maven on your Mac with this command:
mvn --version


MacOS goes with Maven 3.0.2 preinstalled. If you will need mvn 2.2.1 go to this http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.zip 
and download BINARY (!!!) NOT SRC (!!!) file of maven.


Create in ~/usr a new directory local.
Put into ~/usr/local/ this downloaded binary Maven.
Add to ~/.profile this line: 
export PATH=/usr/local/apache-maven-2.2.1/bin:$PATH


IMPORTANT!!! Reboot Mac. Then check again mvn --version and there should be maven 2.2.1.


Here is where to you should to set PATH for JAVA_HOME:


~/.profile


DON'T forget to changes properties of Maven version in IDE!
Here is example where to do it in NetBeans 7:







How to call command ifconfig in Linux CentOS

If the command ifconfig could not be found try to call this command with explicit path to it e.g.:

/sbin/ifconfig

Tuesday, April 5, 2011

Monday, April 4, 2011

Irregular Verbs

Это линк на страничку неправильных глаголов в английском языке.

Thursday, January 27, 2011

Linux commands to be reminded

LINUX
su - зайти под другим пользователем (пример: su devvm)
cat - создать новый файл с содержанием
touch - создать пустой файл
rm -rf - удалить (-r рекурисвно, -f принудительно)
vi /etc/inittab Что бы загрузиться в графическом интерфейсе надо поменять id:3:init:default: на id:5:init:default: цифра 5 указывает на уровень загрузки в графической оболочке X11


ps -x | grep safari Вывод процесса программы Safari (kill safari - посылает команду на завершение)
chmod +x netbeans-6.9.1-ml-linux.sh Установка инсталера для NetBeans (шаг 1)
./netbeans-6.9.1-ml-linux.sh Установка NetBeans (шаг 2)

vi editor
a - перейти в режим редактирования
esc - возвращает в режим просмотра

:wq - сохранить (записать) и выйти из vim (visudo)
:q! - выйти без изменений
Остальные подсказки по этому текстовому редактору смотреть ЗДЕСЬ.

настройка NS сервера
vi /etc/resolve.conf (nameserver присваивается DHCP. Если IP static, можно менять).
service network restart
system-config-network
sudo ifconfig eth0
vi /etc/hosts
nslookup google.com.ua
chattr +i /etc/resolv.conf делает содержание файла immutable
chattr -i /etc/resolv.conf отменяет команды immutable
Остальные подсказки (видео) по настройке NS сервера ЗДЕСЬ.

SVN
svn list http://domain/WW/Trinity/ проверяет содержание директорий
svn co http://domain/WW/Trinity/ делает чекаут (checkout/co) директорий
svn commit дает команду на обновление измененных файлов


svn copy http://www-site-com/WW/Trinity/trunk
         http://www-site-com/WW/Trinity/branches/TRT-322 \
         -m "TRT-322 Creating a private branch of trunk"


svn delete http://www-site-com/WW/Trinity/branches/TRT-322
         -m "TRT-322 Removing obsolete branch from the repository"



A Short SVN Tutorial ЗДЕСЬ и ЗДЕСЬ.

CAT
ctrl + D выйти из CAT (курсор должен быть на пустой строке)
Остальные подсказки по CAT ЗДЕСЬ.

PING
ping -c 4 paniov.com Если не указать в параметре команды Ping количество пингов (в данном примере я поставил -c 4 (-c от слова count)), она будет продолжать пинговать пока ей не дадут команду стоп.
ctrl + c (или delete) Эта команда останавливает в консоле процесс ping.



Wednesday, January 26, 2011

Single user mode with GRUB: how to login in Linux in Single mode and change password of root in Linux

Single user mode in GRUB Linux / change root password:

1. During the start press esc
2. Choose the parameter of the booting
3. Type "a"
4. Write at the end of the sentence "single"
5. Reboot
6. After Linux reboot the last line will be something like this: sh-3.2#
7. Type "chsh" (i.e. change shell)
8. You will see the line with this text:
            Changing shell for root
     New shell [/bin/bash]:
9. Type the new path to the shell: /bin/sh
10. Call for changing root password with the command: passed root
11. Type the new password and confirm it
12. Reboot Linux and login with the new password


А теперь то же самое на русском ))
1. При рестарте надо успеть нажать esc.
2. Выбрать параметр загрузки;
3. Нажать "а";
4. Дописать в конце строки "single";
5. Перезагрузиться;
6. Линукс загрузится, последней будет строчка: sh-3.2#
7. Ввсести в строке: "chsh"; (означает change shell)
8. Появятся строчки: Changing shell for root (1 первая строчка); New shell [/bin/bash]: (2 строчка)
9. Ввести новый путь к shell: /bin/sh
10. Запросить смену пароля рута: passwd root;
11. Ввести новый пароли и подтвердить его, например USXy___tex;
12. Перезагрузиться и зайти под новым паролем.