<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2495801455710894373</id><updated>2024-11-08T17:35:53.652+02:00</updated><category term="linux"/><category term="ubuntu"/><category term="gentoo"/><category term="mint"/><category term="gnome"/><category term="boot"/><category term="cups"/><category term="filesystem"/><category term="grub"/><category term="hardware"/><category term="php"/><category term="adobe flash"/><category term="amarok"/><category term="debian"/><category term="ext3"/><category term="firefox"/><category term="gnome-panels"/><category term="music players"/><category term="mysql"/><category term="ntfs"/><category term="printing"/><category term="xorg"/><category term="8bit"/><category term="apache"/><category term="attack"/><category term="chemistry"/><category term="cloudprint"/><category term="comedy"/><category term="console"/><category term="date"/><category term="desktop icons"/><category term="encodings"/><category term="fastcgi"/><category term="fat"/><category term="fat32"/><category term="files"/><category term="flash"/><category term="fstab"/><category term="gdm"/><category term="gedit"/><category term="google"/><category term="hack"/><category term="icq"/><category term="instant messenger"/><category term="lamp"/><category term="login manager"/><category term="masked packages"/><category term="mathematics"/><category term="money"/><category term="music"/><category term="nautilus"/><category term="nginx"/><category term="password"/><category term="phpvirtualbox"/><category term="portage"/><category term="psmouse"/><category term="public key"/><category term="restore"/><category term="screen resolution"/><category term="security"/><category term="ssh"/><category term="text"/><category term="touchpad"/><category term="usb"/><category term="uuid"/><category term="virtualization"/><category term="vmware"/><category term="wake-on-lan"/><category term="weather applet"/><category term="xdebug"/><title type='text'>psy_ipm</title><subtitle type='html'>Мой антисклерозный блог =)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-1916346452780292620</id><published>2014-09-10T11:41:00.001+03:00</published><updated>2014-09-10T11:42:54.010+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="xdebug"/><title type='text'>Ubuntu 14.04 php 5.5 xdebug</title><content type='html'>Устанока Xdebug используя PECL:&lt;br /&gt;
&lt;blockquote&gt;
sudo apt-get install php5-dev php-pear&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
sudo pecl install xdebug
&lt;/blockquote&gt;
По завершении компиляции будет выведен путь к xdebug.so, он должен выглядеть примерно так: /usr/lib/php5/20121212/xdebug.so&lt;br /&gt;
можно также выполнить поиск библиотеки:

&lt;br /&gt;
&lt;blockquote&gt;
find /usr/lib/ -name &#39;xdebug.so&#39; 2&amp;gt; /dev/null&lt;/blockquote&gt;
будет выведен путь к файлу: /usr/lib/php5/20121212/xdebug.so

Далее нужно добавить extension в конфиге php.ini

для apache2:

&lt;br /&gt;
&lt;blockquote&gt;
sudo vi /etc/php5/apache2/php.ini&lt;/blockquote&gt;

&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
для cli:

&lt;br /&gt;
&lt;blockquote&gt;
sudo vi /etc/php5/cli/php.ini&lt;/blockquote&gt;
Добавляем в конфиг строку

&lt;br /&gt;
&lt;blockquote&gt;
zend_extension=&quot;/usr/lib/php5/20121212/xdebug.so&quot;&lt;/blockquote&gt;
Создаем файл 20-xdebug.ini в папках apache2/conf.d и cli/conf.d, пишем

&lt;br /&gt;
&lt;blockquote&gt;
xdebug.remote_enable = 1&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
xdebug.renite_enable = 1&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
xdebug.max_nesting_level = 1000&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
xdebug.profiler_enable_trigger = 1&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote&gt;
xdebug.profiler_output_dir = &#39;/var/log&#39;
&lt;/blockquote&gt;
&lt;a href=&quot;http://xdebug.org/docs/all_settings&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;полный список опций&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;Рестартим сервер (apache):

&lt;br /&gt;
&lt;blockquote&gt;
sudo service apache2 restart&lt;/blockquote&gt;
Для рестарта php-dev сервера: Ctrl+C в терминале где запущен сервер&lt;br /&gt;
Проверяем что все работает:
&lt;br /&gt;
&lt;blockquote&gt;
ipm@n:~$ php -v&lt;br /&gt;
&lt;br /&gt;
PHP 5.5.9-1ubuntu4.3 (cli) (built: Jul  7 2014 16:36:58) &lt;br /&gt;
Copyright (c) 1997-2014 The PHP Group&lt;br /&gt;
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies&lt;br /&gt;
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans&lt;br /&gt;
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies&lt;/blockquote&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://stackoverflow.com/questions/20457856/installing-xdebug-with-php-5-5&quot;&gt;stackowerflow&lt;/a&gt;, &lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=525257&quot;&gt;ubuntuforums&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/1916346452780292620/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2014/09/ubuntu-1404-php-55-xdebug.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/1916346452780292620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/1916346452780292620'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2014/09/ubuntu-1404-php-55-xdebug.html' title='Ubuntu 14.04 php 5.5 xdebug'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-2275565400950447744</id><published>2013-05-19T23:35:00.000+03:00</published><updated>2013-05-25T22:30:20.862+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="phpvirtualbox"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualization"/><title type='text'>phpVirtualBox на Ubuntu 12.10 Desktop</title><content type='html'>идем на &lt;a href=&quot;https://www.virtualbox.org/wiki/Linux_Downloads&quot;&gt;https://www.virtualbox.org/wiki/Linux_Downloads&lt;/a&gt;&lt;br /&gt;

смотрим, что последняя версия - 4.2 &lt;br /&gt;

добавляем в /etc/apt/sources.list строку:

&lt;blockquote&gt;deb http://download.virtualbox.org/virtualbox/debian precise contrib&lt;br /&gt;&lt;/blockquote&gt;

добавляем публичный ключ Oracle vbox:

&lt;blockquote&gt;wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -&lt;br /&gt;&lt;/blockquote&gt;

обновляем список пакетов:

&lt;blockquote&gt;sudo apt-get update&lt;br /&gt;&lt;/blockquote&gt;

устанавливаем VirtualBox:

&lt;blockquote&gt;sudo apt-get install virtualbox-4.2&lt;br /&gt;&lt;/blockquote&gt;

&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
качаем и устанавливаем extension pack (он необходим для работы USB 2.0, VRDP, &lt;a href=&quot;https://www.virtualbox.org/manual/ch01.html#intro-installing&quot;&gt;etc...&lt;/a&gt;):

&lt;blockquote&gt;wget http://download.virtualbox.org/virtualbox/4.2.12/Oracle_VM_VirtualBox_Extension_Pack-4.2.12-84980.vbox-extpack &lt;br /&gt;
sudo VBoxManage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-4.2.12-84980.vbox-extpack&lt;/blockquote&gt;

добавляем юзера для virtualbox:

&lt;blockquote&gt;sudo useradd -m vbox -G vboxusers&lt;br /&gt;
sudo passwd vbox
&lt;br /&gt;&lt;/blockquote&gt;

в файле /etc/defaults/virtualbox добавить строку:

&lt;blockquote&gt;VBOXWEB_USER=vbox&lt;br /&gt;&lt;/blockquote&gt;

включаем автозапуск сервиса:

&lt;blockquote&gt;update-rc.d vboxweb-service defaults&lt;br /&gt;
/etc/init.d/vboxweb-service start&lt;br /&gt;&lt;/blockquote&gt;

устанавливаем веб-сервер:

&lt;blockquote&gt;sudo apt-get install apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common apache2 apache2-doc apache2-suexec libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapr1 php5-common php5-mysql php5-suhosin php-pear wget&lt;br /&gt;

sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;/blockquote&gt;

качаем phpvirtualbox:

&lt;blockquote&gt;cd /var/www&lt;br /&gt;
wget `wget -q -O - http://phpvirtualbox.googlecode.com/files/LATEST.txt` -O phpvirtualbox-latest.zip&lt;br /&gt;

unzip phpvirtualbox-latest.zip&lt;br /&gt;
cd phpvirtualbox&lt;br /&gt;
&lt;/blockquote&gt;

копируем конфиг:

&lt;blockquote&gt;cp config.php-example config.php&lt;br /&gt;&lt;/blockquote&gt;

в конфиге указываем юзера и пароль:

&lt;blockquote&gt;sudo nano config.php&lt;br /&gt;&lt;br /&gt;
[...]&lt;br /&gt;
/* Username / Password for system user that runs VirtualBox */&lt;br /&gt;
var $username = &#39;vbox&#39;;&lt;br /&gt;
var $password = &#39;passwd&#39;;&lt;br /&gt;
[...]&lt;br /&gt;&lt;/blockquote&gt;


можно заходить из браузера, по дефолту юзер - admin, пароль - admin</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/2275565400950447744/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2013/05/phpvirtualbox-ubuntu-1210-desktop.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/2275565400950447744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/2275565400950447744'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2013/05/phpvirtualbox-ubuntu-1210-desktop.html' title='phpVirtualBox на Ubuntu 12.10 Desktop'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-707957543583817425</id><published>2013-05-19T23:25:00.000+03:00</published><updated>2013-05-19T23:27:28.291+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cloudprint"/><category scheme="http://www.blogger.com/atom/ns#" term="cups"/><category scheme="http://www.blogger.com/atom/ns#" term="google"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Добавление CUPS-принтера в Google Cloud Print</title><content type='html'>добавление локальных Cloud-принтеров через chrome работает пока только в Windows, поэтому немного погуглив я нашел решение - cloudprint (https://github.com/armooo/cloudprint.git). Если принтер работает на локальном компьютере, то будет работать и через облако google.

Установка cloudprint:

&lt;br /&gt;
&lt;blockquote&gt;
sudo apt-get install cloudprint&lt;br /&gt;
&lt;/blockquote&gt;

также можно обновить из git до последней версии:

&lt;br /&gt;
&lt;blockquote&gt;
sudo apt-get install git python-pip&lt;br /&gt;
sudo pip install --upgrade git+https://github.com/armooo/cloudprint.git&lt;br /&gt;
&lt;/blockquote&gt;

&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;
Чтобы добавить локальные принтеры в аккаунт google Cloud Print нужно запустить из терминала cloudprint, ввести логин и пароль:

&lt;br /&gt;
&lt;blockquote&gt;
cloudprint&lt;br /&gt;
Google username: username@gmail.com&lt;br /&gt;
Password:&lt;br /&gt;
Added Printer Brother-HL-2170W&lt;br /&gt;
&lt;/blockquote&gt;

Теперь можно печатать с любого android-девайса :)
Принтеры печатают только когда запущен cloudprint. Для добавления его в автозагрузку я нагуглил скрипт:

&lt;br /&gt;
&lt;blockquote&gt;
#!/bin/bash&lt;br /&gt;
# /etc/rc.d/cloudprint&lt;br /&gt;
# Description: Starts the Google Cloud Print script on startup&lt;br /&gt;
# ----------------&lt;br /&gt;
#&lt;br /&gt;
### BEGIN INIT INFO&lt;br /&gt;
# Provides: Cloud-Print&lt;br /&gt;
# Required-Start: $cups $network $local\_fs $syslog&lt;br /&gt;
# Required-Stop: $local\_fs $syslog&lt;br /&gt;
# Default-Start: 2 3 4 5&lt;br /&gt;
# Default-Stop: 0 1 6&lt;br /&gt;
# Description: Start Google Cloud Print&lt;br /&gt;
### END INIT INFO&lt;br /&gt;
case $1 in&lt;br /&gt;
start)&lt;br /&gt;
echo -n &quot;Starting Google Cloud Print: &quot;&lt;br /&gt;
sudo -iH -u cloudprint cloudprint -d&lt;br /&gt;
;;&lt;br /&gt;
stop)&lt;br /&gt;
echo -n &quot;Stopping Google Cloud Print: &quot;&lt;br /&gt;
sudo -iH -u cloudprint killall cloudprint&lt;br /&gt;
;;&lt;br /&gt;
restart)&lt;br /&gt;
echo -n &quot;Restarting Google Cloud Print: &quot;&lt;br /&gt;
su -c &quot;killall cloudprint.py&quot; cloudprint&lt;br /&gt;
sudo -iH -u cloudprint killall cloudprint&lt;br /&gt;
sudo -iH -u cloudprint cloudprint -d&lt;br /&gt;
;;&lt;br /&gt;
*)&lt;br /&gt;
echo &quot;Usage: cloudprint {start|stop|restart}&quot;&lt;br /&gt;
;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;/blockquote&gt;

сохраняем его в cloudprint.sh, делаем исполняемым, и добавляем в автозагрузку.
Для печати я создал отдельного пользователя, как написано в скрипте. 


&lt;br /&gt;
&lt;blockquote&gt;
sudo groupadd --system cloudprint&lt;br /&gt;
sudo useradd --system --disabled-password --ingroup cloudprint --shell /bin/bash cloudprint&lt;br /&gt;
sudo cp cloudprint.sh /etc/init.d/cloudprint&lt;br /&gt;
sudo update-rc.d cloudprint defaults&lt;br /&gt;&lt;/blockquote&gt;

запускаем:

&lt;br /&gt;
&lt;blockquote&gt;
sudo /etc/init.d/cloudprint start&lt;br /&gt;&lt;/blockquote&gt;

при первом запуске нужно ввести логин и пароль. если настроена двухэтапная аутентификация, то нужно создать application-specific password.

ссылки:
&lt;br /&gt;
&lt;blockquote&gt;
https://github.com/armooo/cloudprint&lt;br /&gt;
http://jjumaka.wordpress.com/2013/01/12/getting-google-cloud-printing-working-on-ubuntu-12-10/&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/707957543583817425/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2013/05/cups-google-cloud-print.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/707957543583817425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/707957543583817425'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2013/05/cups-google-cloud-print.html' title='Добавление CUPS-принтера в Google Cloud Print'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-3270480482550229168</id><published>2012-08-22T16:55:00.000+03:00</published><updated>2012-08-22T16:56:02.157+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="fstab"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="uuid"/><title type='text'>How To Use UUID To Mount Partitions</title><content type='html'>A &lt;a href=&quot;http://en.wikipedia.org/wiki/UUID&quot;&gt;universally unique identifier&lt;/a&gt; (UUID) is an identifier standard used in software construction, standardized by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).

The intent of UUIDs is to enable distributed systems to uniquely identify information without significant central coordination. In this context the word unique should be taken to mean &quot;practically unique&quot; rather than &quot;guaranteed unique&quot;. Since the identifiers have a finite size it is possible for two differing items to share the same identifier. The identifier size and generation process need to be selected so as to make this sufficiently improbable in practice. Anyone can create a UUID and use it to identify something with reasonable confidence that the same identifier will never be unintentionally created by anyone to identify something else. Information labeled with UUIDs can therefore be later combined into a single database without needing to resolve identifier (ID) conflicts.&lt;br&gt;

To list UUIDs of all partitions type:

&lt;blockquote&gt;sudo blkid&lt;/blockquote&gt;

You can add device UUID to /etc/fstab to mount it automatically:

&lt;blockquote&gt;sudo nano /etc/fstab&lt;/blockquote&gt;

add new line with following syntax:

&lt;blockquote&gt;UUID={UUID}  {/path/to/mount} {file system type} {options} {dump} {pass}&lt;/blockquote&gt;

example:

&lt;blockquote&gt;UUID=ae1ec4a1-5d6b-4fc8-a8dc-f58e8af2328d       /media/sda5     ext3    user,noexec  0       0&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/3270480482550229168/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2012/08/how-to-use-uuid-to-mount-partitions.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/3270480482550229168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/3270480482550229168'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2012/08/how-to-use-uuid-to-mount-partitions.html' title='How To Use UUID To Mount Partitions'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-7803554936895005296</id><published>2012-07-20T18:59:00.003+03:00</published><updated>2012-07-20T18:59:55.430+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="console"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Colorized console in Debian Linux</title><content type='html'>If you want &#39;ls&#39; to be colorized you need to edit your ~/.bashrc:

&lt;blockquote&gt;# You may uncomment the following lines if you want `ls&#39; to be colorized:&lt;br&gt;
export LS_OPTIONS=&#39;--color=auto&#39;&lt;br&gt;
eval &quot;`dircolors`&quot;&lt;br&gt;
alias ls=&#39;ls $LS_OPTIONS&#39;&lt;br&gt;
alias ll=&#39;ls $LS_OPTIONS -l&#39;&lt;br&gt;
alias l=&#39;ls $LS_OPTIONS -lA&#39;&lt;br&gt;
&lt;/blockquote&gt;


&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOuDrfeHhyphenhyphennSS3rYO22lo7r1UsA_c0iT-BXG769vc9H2NJUH1wlvuVcRRwlKs5-gSLd_Bml-0ygMiFBa7mk5xcb9eoZC3-T7ztiM3kFMOQ8IsTMPSDMAIFe5z2FdMLrGEC5BtO7HeYgXwB/s1600/Untitled123.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;62&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOuDrfeHhyphenhyphennSS3rYO22lo7r1UsA_c0iT-BXG769vc9H2NJUH1wlvuVcRRwlKs5-gSLd_Bml-0ygMiFBa7mk5xcb9eoZC3-T7ztiM3kFMOQ8IsTMPSDMAIFe5z2FdMLrGEC5BtO7HeYgXwB/s400/Untitled123.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;


Now you can easily recognize files, folders and attributes</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/7803554936895005296/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2012/07/colorized-console-in-debian-linux.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/7803554936895005296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/7803554936895005296'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2012/07/colorized-console-in-debian-linux.html' title='Colorized console in Debian Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOuDrfeHhyphenhyphennSS3rYO22lo7r1UsA_c0iT-BXG769vc9H2NJUH1wlvuVcRRwlKs5-gSLd_Bml-0ygMiFBa7mk5xcb9eoZC3-T7ztiM3kFMOQ8IsTMPSDMAIFe5z2FdMLrGEC5BtO7HeYgXwB/s72-c/Untitled123.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-63081072186636157</id><published>2012-04-12T23:00:00.001+03:00</published><updated>2012-04-12T23:00:19.601+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="public key"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>Настройка аутентификации SSH по public key</title><content type='html'>Генерируем rsa или dsa ключ на локальной машине:

&lt;br /&gt;
&lt;blockquote&gt;
localhost$ ssh-keygen -t rsa&lt;/blockquote&gt;
пароль можно оставить пустым (только имейте ввиду, что все что нужно для логина - ключ на вашем компьютере)&lt;br /&gt;

Копируем ключ на сервер:

&lt;br /&gt;
&lt;blockquote&gt;
localhost$ scp ~/.ssh/id_rsa.pub remote.server.com:.ssh/authorized_keys2&lt;/blockquote&gt;

&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://www.petefreitag.com/item/532.cfm&quot;&gt;source&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/63081072186636157/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2012/04/ssh-public-key.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/63081072186636157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/63081072186636157'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2012/04/ssh-public-key.html' title='Настройка аутентификации SSH по public key'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-4924874038480244600</id><published>2012-03-25T20:43:00.000+03:00</published><updated>2012-03-25T21:11:33.290+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fat32"/><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="usb"/><title type='text'>Format USB flash drive to FAT32 with linux</title><content type='html'>1. Find out under which device your flash drive is mounted:

&lt;br /&gt;
&lt;blockquote&gt;
sudo fdisk -l&lt;/blockquote&gt;
or 

&lt;br /&gt;
&lt;blockquote&gt;
lsusb&lt;/blockquote&gt;
or

&lt;br /&gt;
&lt;blockquote&gt;
df&lt;/blockquote&gt;
&lt;blockquote&gt;
ipm@n:~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;
/dev/sda3             39238760  27615552  11623208  71% /media/sda3&lt;br /&gt;
/dev/sdb1              3907104         4   3907100   1% /media/Linux Mint 12 32-bit&lt;br /&gt;&lt;/blockquote&gt;

2. Unmount your flash:

&lt;br /&gt;
&lt;blockquote&gt;
sudo umount /dev/sdb1&lt;/blockquote&gt;
3. Format:

&lt;br /&gt;
&lt;blockquote&gt;
sudo mkdosfs -F32 -I /dev/sdb1&lt;/blockquote&gt;
(I - is capital letter i)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://moonbd.blogspot.com/2007/03/format-pendrive-in-linux-with-fat32.html&quot;&gt;source&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/4924874038480244600/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2012/03/format-usb-flash-drive-to-fat32-with.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4924874038480244600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4924874038480244600'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2012/03/format-usb-flash-drive-to-fat32-with.html' title='Format USB flash drive to FAT32 with linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-7546518168747266182</id><published>2012-02-04T19:42:00.000+02:00</published><updated>2012-02-04T19:42:03.550+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="psmouse"/><category scheme="http://www.blogger.com/atom/ns#" term="touchpad"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Включение скроллинга для ALPS touchpad в Ubuntu 11.10</title><content type='html'>Создаем файл /etc/modprobe.d/psmouse.conf с таким содержимым:

&lt;br /&gt;
&lt;blockquote&gt;
options psmouse proto=imps&lt;/blockquote&gt;
перезагружаем модуль psmouse:

&lt;br /&gt;
&lt;blockquote&gt;
sudo modprobe -r psmouse&lt;br /&gt;
sudo modprobe psmouse&lt;/blockquote&gt;
&lt;br /&gt;

&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://ubuntuforums.org/showpost.php?p=9306708&amp;amp;postcount=6&quot; target=&quot;_blank&quot;&gt;ubuntuforums.org&lt;/a&gt;&amp;nbsp;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/7546518168747266182/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2012/02/alps-touchpad-ubuntu-1110.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/7546518168747266182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/7546518168747266182'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2012/02/alps-touchpad-ubuntu-1110.html' title='Включение скроллинга для ALPS touchpad в Ubuntu 11.10'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-6500138281062638900</id><published>2011-11-08T19:57:00.003+02:00</published><updated>2013-02-21T19:31:47.494+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnome-panels"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="weather applet"/><title type='text'>Добавление города в Weather applet Gnome</title><content type='html'>На gnome-панели можно добавить прикольную штуковину - (&lt;strike&gt;впадлу встать и в окно посмотреть))&lt;/strike&gt;) погодный апплет. Точнее он есть в двух видах: отдельно для погоды, и с часами, куда можно тоже добавить вывод информации о погоде.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtV6eL_nay4PcM3UdExzi74S1C9IV7abAGrowzYwNSjsNuET6sBsS-dkG1gBa42HU_I5bXxciu4jNu1jKJFt0O-NGLxZMTW_IRZReUeR1uDPYJj43L5IVpk5Z_5xlg7EHtpSGxmEO7mhq7/s1600/Screenshot-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;82&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtV6eL_nay4PcM3UdExzi74S1C9IV7abAGrowzYwNSjsNuET6sBsS-dkG1gBa42HU_I5bXxciu4jNu1jKJFt0O-NGLxZMTW_IRZReUeR1uDPYJj43L5IVpk5Z_5xlg7EHtpSGxmEO7mhq7/s320/Screenshot-4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Но некоторых городов в списке нет. &lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Если просто ввести координаты, то погода показываться не будет, это зависит от кодов аэропортов (ICAO). Найти их можно в &lt;a href=&quot;http://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%B0%D1%8D%D1%80%D0%BE%D0%BF%D0%BE%D1%80%D1%82%D0%BE%D0%B2_%D0%A3%D0%BA%D1%80%D0%B0%D0%B8%D0%BD%D1%8B&quot;&gt;википедии&lt;/a&gt; или просто погуглив.&lt;br /&gt;
&lt;br /&gt;
Итак, для отображения погоды в апплете часов:&lt;br /&gt;
Alt+F2 -&gt; открываем gconf-editor&lt;br /&gt;
идем в &lt;b&gt;/apps/panel/applets/clock_screen0/pref&lt;/b&gt; и ищем параметр &lt;b&gt;cities&lt;/b&gt;. Выглядит он так:&lt;br /&gt;
&lt;blockquote&gt;&lt;location name=&quot;Lugansk&quot; city=&quot;Lugansk&quot; timezone=&quot;Europe/Kiev&quot; latitude=&quot;45.350000&quot; longitude=&quot;39.200000&quot; code=&quot;UKCW&quot; current=&quot;true&quot;/&gt;&lt;/blockquote&gt;и пишем свой город, код аэропорта и координаты.&lt;br /&gt;
&lt;br /&gt;
Для апплета Weather report:&lt;br /&gt;
в файле &lt;b&gt;/usr/share/libgweather/Locations.xml.gz&lt;/b&gt; дописываем свои параметры:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&amp;lt;name&amp;gt;Lugansk&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;name xml:lang=&quot;ru&quot;&amp;gt;Луганск&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;name xml:lang=&quot;uk&quot;&amp;gt;Луганськ&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;coordinates&amp;gt;45.349998 39.200001&amp;lt;/coordinates&amp;gt;&lt;br /&gt;
&amp;lt;location&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;Lugansk&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;UKCW&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;coordinates&amp;gt;45.349998 39.200001&amp;lt;/coordinates&amp;gt;&lt;br /&gt;
&amp;lt;/location&amp;gt;&lt;br /&gt;
&amp;lt;/city&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;
Правленый файл я залил &lt;a href=&quot;http://musicdl.orgfree.com/uploads/files/2011-Nov/Locations.xml.gz&quot;&gt;сюда&lt;/a&gt;, а статью нашел &lt;a href=&quot;http://www.oposumo.com/2010/01/gnome-weather-applet-adding-new-city.html&quot;&gt;здесь&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/6500138281062638900/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/11/weather-applet-gnome.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6500138281062638900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6500138281062638900'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/11/weather-applet-gnome.html' title='Добавление города в Weather applet Gnome'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtV6eL_nay4PcM3UdExzi74S1C9IV7abAGrowzYwNSjsNuET6sBsS-dkG1gBa42HU_I5bXxciu4jNu1jKJFt0O-NGLxZMTW_IRZReUeR1uDPYJj43L5IVpk5Z_5xlg7EHtpSGxmEO7mhq7/s72-c/Screenshot-4.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-6344828579266967942</id><published>2011-11-01T20:09:00.000+02:00</published><updated>2012-01-31T21:40:48.996+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adobe flash"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><title type='text'>Установка Firefox 7.0.1 и Flash Player 11.0.1 в Gentoo Linux</title><content type='html'>&lt;span style=&quot;font-size: x-small;&quot;&gt;Надоело пользоваться старым файрфоксом (3.6), который ставится по дефолту с Gentoo, решил обновить и.. оказывается, не все так просто :)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Установка Adobe Flash Player 11:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;su&lt;br /&gt;
echo &quot;&amp;gt;=www-plugins/adobe-flash-11.0.1.152 ~x86&quot; &amp;gt;&amp;gt; /etc/portage/package.keywords&lt;br /&gt;
echo &quot;ACCEPT_LICENCE=&quot;*&quot;&quot; &gt;&gt; /etc/make.conf&lt;br /&gt;
emerge &quot;&amp;gt;=www-plugins/adobe-flash-11.0.1.152&quot;&lt;/blockquote&gt;&lt;br /&gt;
Аналогично устанавливаем Firefox 11:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;echo &quot;&gt;=www-client/firefox-7.0.1-r1 ~x86&quot; &gt;&gt; /etc/portage/package.keywords&lt;br /&gt;
emerge &quot;&gt;=www-client/firefox-7.0.1-r1&quot;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/6344828579266967942/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/11/firefox-701-flash-player-1101-gentoo.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6344828579266967942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6344828579266967942'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/11/firefox-701-flash-player-1101-gentoo.html' title='Установка Firefox 7.0.1 и Flash Player 11.0.1 в Gentoo Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-2987061157019316859</id><published>2011-11-01T19:32:00.000+02:00</published><updated>2011-11-01T19:32:12.104+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="nautilus"/><title type='text'>Enable Open in Terminal on Nautilus Context Menu</title><content type='html'>Some linux distributions have good feature in context menu - Open folder in Terminal. I&#39;ll show how to install it for Gentoo Linux. It&#39;s very simple:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;sudo emerge nautilus-open-terminal&lt;/blockquote&gt;&lt;br /&gt;
..and restart X&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://musicdl.orgfree.com/uploads/posts/2011-11/Screenshot-Downloads.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; width=&quot;281&quot; src=&quot;http://musicdl.orgfree.com/uploads/posts/2011-11/Screenshot-Downloads.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/2987061157019316859/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/11/enable-open-in-terminal-on-nautilus.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/2987061157019316859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/2987061157019316859'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/11/enable-open-in-terminal-on-nautilus.html' title='Enable Open in Terminal on Nautilus Context Menu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-4381917575972708655</id><published>2011-08-27T23:40:00.000+03:00</published><updated>2011-08-27T23:40:14.136+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boot"/><category scheme="http://www.blogger.com/atom/ns#" term="grub"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Restore GRUB after Windows installation</title><content type='html'> If your ubuntu is  (hd0,3)  then this should do it from a liveCD:&lt;br /&gt;
&lt;br /&gt;
In terminal&lt;br /&gt;
sudo grub&lt;br /&gt;
root (hd0,3)    &amp;lt;-- this must point to location of &#39;stage1&#39;, else see nb:&lt;br /&gt;
setup (hd0)     &amp;lt;-- installs grub IPL to MBR of first hard drive. &lt;br /&gt;
quit&lt;br /&gt;
Reboot&lt;br /&gt;
&lt;br /&gt;
nb: if location of &#39;stage1&#39; is unknown,&lt;br /&gt;
find grub/stage1&lt;br /&gt;
or&lt;br /&gt;
find /boot/grub/stage1&lt;br /&gt;
is needed, after step #1&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1285499&quot;&gt;http://ubuntuforums.org/showthread.php?t=1285499&lt;/a&gt;&amp;nbsp;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/4381917575972708655/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/08/restore-grub-after-windows-installation.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4381917575972708655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4381917575972708655'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/08/restore-grub-after-windows-installation.html' title='Restore GRUB after Windows installation'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-371936965180345512</id><published>2011-06-19T00:56:00.001+03:00</published><updated>2011-06-19T00:59:54.675+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fastcgi"/><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Установка nginx + php-fpm + mysql на Gentoo</title><content type='html'>Устанавливаем nginx:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;USE=fastcgi emerge nginx&lt;/blockquote&gt;Создаем юзера и группу для www:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;groupadd www&lt;br /&gt;
useradd www -g www&lt;/blockquote&gt;&lt;br /&gt;
Установка MySQL:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;blockquote&gt;emerge dev-db/mysql&lt;br /&gt;
mysql_install_db --basedir=/usr --datadir=/var/lib/mysql --user=mysql&lt;/blockquote&gt;&lt;br /&gt;
Запускаем MySQL:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;/etc/init.d/mysql start&lt;/blockquote&gt;&lt;br /&gt;
Зададим пароль для mysql-юзера root:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;mysqladmin -u root password &#39;new password&#39;&lt;/blockquote&gt;&lt;br /&gt;
Далее, устанавливаем php-fpm. Качаем php-5.3.0 отсюда: http://www.mediafire.com/?bzbvz2klo3y и патч для php-fpm: http://dpvps.googlecode.com/files/php-5.3.0-fpm-0.5.12.diff.gz&lt;br /&gt;
&lt;br /&gt;
можно поставить его и через svn. подробности здесь: http://php-fpm.org/download/&lt;br /&gt;
&lt;br /&gt;
Распаковываем php и патчим:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;tar jxf php-5.3.0.tar.bz2&lt;br /&gt;
gzip -cd php-5.3.0-fpm-0.5.12.diff.gz | patch -d php-5.3.0 -p1&lt;/blockquote&gt;Ставим библиотеки png, jpeg, truetype и gd:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;emerge libpng jpeg freetype&lt;br /&gt;
USE=&quot;png jpeg truetype&quot; emerge gd&lt;/blockquote&gt;&lt;br /&gt;
Копмилим php:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;cd php-5.3.0&lt;br /&gt;
&lt;br /&gt;
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --enable-fpm --enable-sockets --enable-pdo --with-pdo-mysql=/usr --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib&lt;br /&gt;
&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;/blockquote&gt;&lt;br /&gt;
Копируем конфиг php:&lt;br /&gt;
&lt;br /&gt;
cp php.ini-production /usr/local/php/etc/php.ini&lt;br /&gt;
&lt;br /&gt;
Code listing /usr/local/php/etc/php.ini:&lt;br /&gt;
Unix user of processes&lt;br /&gt;
&lt;value name=&quot;user&quot;&gt;www&lt;/value&gt;&lt;br /&gt;
&lt;br /&gt;
Unix group of processes&lt;br /&gt;
&lt;value name=&quot;group&quot;&gt;www&lt;/value&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;value name=&quot;style&quot;&gt;apache-like&lt;/value&gt;&lt;br /&gt;
&lt;br /&gt;
Копируем конфиг php-fpm:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;cp /usr/local/php/sbin/php-fpm /etc/init.d/php-fpm&lt;/blockquote&gt;&lt;br /&gt;
Запустим php-fpm и добавим в автозагрузку:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;/etc/init.d/php-fpm start&lt;br /&gt;
rc-update add nginx default&lt;br /&gt;
rc-update add mysql default&lt;br /&gt;
rc-update add php-fpm default&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;nginx + php&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Редактируем конфиг nginx:&lt;br /&gt;
&lt;blockquote&gt;nano /etc/nginx/nginx.conf&lt;/blockquote&gt;&lt;br /&gt;
Code listing /etc/nginx/nginx.conf:&lt;br /&gt;
&lt;blockquote&gt;user www;&lt;br /&gt;
worker_processes  5;&lt;br /&gt;
&lt;br /&gt;
error_log  /var/log/nginx/error.log;&lt;br /&gt;
pid        /var/run/nginx.pid;&lt;br /&gt;
&lt;br /&gt;
events {&lt;br /&gt;
worker_connections  1024;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
http {&lt;br /&gt;
include       /etc/nginx/mime.types;&lt;br /&gt;
default_type  application/octet-stream;&lt;br /&gt;
&lt;br /&gt;
access_log /var/log/nginx/access.log;&lt;br /&gt;
&lt;br /&gt;
# configure log format&lt;br /&gt;
log_format main &#39;$remote_addr - $remote_user [$time_local] &#39;&lt;br /&gt;
&#39;&quot;$request&quot; $status  $body_bytes_sent &quot;$http_referer&quot; &#39;&lt;br /&gt;
&#39;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#39;;&lt;br /&gt;
&lt;br /&gt;
# main access log&lt;br /&gt;
access_log  /var/log/nginx_access.log  main;&lt;br /&gt;
&lt;br /&gt;
sendfile        on;&lt;br /&gt;
#tcp_nopush     on;&lt;br /&gt;
&lt;br /&gt;
#keepalive_timeout  0;&lt;br /&gt;
keepalive_timeout  2;&lt;br /&gt;
tcp_nodelay        on;&lt;br /&gt;
&lt;br /&gt;
gzip  on;&lt;br /&gt;
&lt;br /&gt;
include /etc/nginx/conf.d/*.conf;&lt;br /&gt;
include /etc/nginx/sites-enabled/*;&lt;br /&gt;
}&lt;/blockquote&gt;&lt;br /&gt;
Создаем папку sites-enabled, и в ней файл с именем сайта:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;mkdir /etc/nginx/sites-enabled&lt;br /&gt;
nano /etc/nginx/sites-enabled/example.com&lt;/blockquote&gt;&lt;br /&gt;
Code listing /etc/nginx/sites-enabled/example.com:&lt;br /&gt;
&lt;blockquote&gt;server {&lt;br /&gt;
listen 80;&lt;br /&gt;
server_name example.com www.example.com;&lt;br /&gt;
access_log /var/log/example.com-access.log;&lt;br /&gt;
error_log /var/log/example.com-error.log;&lt;br /&gt;
&lt;br /&gt;
root /var/www;&lt;br /&gt;
&lt;br /&gt;
location ~ /.svn/ {&lt;br /&gt;
deny all;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
location ~ \.php$ {&lt;br /&gt;
root           /var/www/;&lt;br /&gt;
fastcgi_index  index.php;&lt;br /&gt;
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;&lt;br /&gt;
include        fastcgi_params;&lt;br /&gt;
fastcgi_pass   127.0.0.1:9000;&lt;br /&gt;
}&lt;br /&gt;
}&lt;/blockquote&gt;&lt;br /&gt;
Рестартим nginx:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;/etc/init.d/nginx restart&lt;/blockquote&gt;&lt;br /&gt;
Проверка php и mysql:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;echo &quot;&quot; &amp;gt; /var/www/test/index.php&lt;/blockquote&gt;&lt;br /&gt;
..и качаем скрипт для mysql отсюда: http://www.wallpaperama.com/forums/simple-php-mysql-connection-test-script-example-t5702.html&lt;br /&gt;
&lt;br /&gt;
Ссылки: &lt;a href=&quot;http://hily.me/blog/2010/01/gentoo-nginx-mysql-php-fastcgi/&quot;&gt;hily.me&lt;/a&gt;, &lt;a href=&quot;http://habrahabr.ru/blogs/nginx/71062/&quot;&gt;habrahabr.ru&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/371936965180345512/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/06/nginx-php-fpm-mysql-gentoo.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/371936965180345512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/371936965180345512'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/06/nginx-php-fpm-mysql-gentoo.html' title='Установка nginx + php-fpm + mysql на Gentoo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-7242031226858045449</id><published>2011-06-15T15:23:00.000+03:00</published><updated>2011-06-15T15:23:03.709+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="masked packages"/><category scheme="http://www.blogger.com/atom/ns#" term="portage"/><title type='text'>Using Masked Packages</title><content type='html'>The package.unmask location&lt;br /&gt;
&lt;br /&gt;
Important: The Gentoo developers do &lt;b&gt;not&lt;/b&gt; support the use of this location. Please exercise due caution when doing so. Support requests related to package.unmask and/or package.mask will not be answered. You have been warned.&lt;br /&gt;
&lt;br /&gt;
When a package has been masked by the Gentoo developers and you still want to use it despite the reason mentioned in the package.mask file (situated in /usr/portage/profiles by default), add the desired version (usually this will be the exact same line from profiles) in the /etc/portage/package.unmask file (or in a file in that directory if it is a directory).&lt;br /&gt;
&lt;br /&gt;
For instance, if =net-mail/hotwayd-0.8 is masked, you can unmask it by adding the exact same line in the package.unmask location:&lt;br /&gt;
&lt;br /&gt;
Code Listing 3.1: /etc/portage/package.unmask&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;=net-mail/hotwayd-0.8&lt;/blockquote&gt;&lt;br /&gt;
or in the package.keywords file /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
Code Listing: /etc/portage/package.keywords&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;x11-wm/compiz&lt;br /&gt;
x11-wm/compiz-fusion&lt;br /&gt;
x11-wm/emerald&lt;br /&gt;
gnome-extra/nautilus-dropbox&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&amp;chap=3&quot;&gt;Gentoo handbook&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/7242031226858045449/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/06/using-masked-packages.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/7242031226858045449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/7242031226858045449'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/06/using-masked-packages.html' title='Using Masked Packages'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-8795890271872009573</id><published>2011-05-29T14:42:00.000+03:00</published><updated>2011-05-29T14:42:40.126+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><title type='text'>How to associate firefox with magnet protocol</title><content type='html'>In the address prompt type:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;about:config&lt;/blockquote&gt;&lt;br /&gt;
and promise firefox to be careful :)&lt;br /&gt;
&lt;br /&gt;
add three boolean values:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;network.protocol-handler.warn-external.magnet;true&lt;br /&gt;
network.protocol-handler.external.magnet;true&lt;br /&gt;
network.protocol-handler.expose.magnet;false&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/8795890271872009573/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/05/how-to-associate-firefox-with-magnet.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/8795890271872009573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/8795890271872009573'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/05/how-to-associate-firefox-with-magnet.html' title='How to associate firefox with magnet protocol'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-6638169726715786641</id><published>2011-05-21T12:09:00.000+03:00</published><updated>2011-05-21T12:09:36.415+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>How to uninstall VMWare workstion.bundle?</title><content type='html'>Operating system: Gentoo 2.6.36-r8 x86&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;ipm@i ~ $ vmware-installer -l&lt;br /&gt;
Product Name           Product Version     &lt;br /&gt;
====================== ====================&lt;br /&gt;
vmware-workstation     7.1.1.282343        &lt;br /&gt;
ipm@i ~ $ sudo vmware-installer -u vmware-workstation 7.1.1.282343&lt;br /&gt;
Password: &lt;br /&gt;
ipm@i ~ $ &lt;br /&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/6638169726715786641/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/05/how-to-uninstall-vmware-workstionbundle.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6638169726715786641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6638169726715786641'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/05/how-to-uninstall-vmware-workstionbundle.html' title='How to uninstall VMWare workstion.bundle?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-6272355734580179889</id><published>2011-04-27T19:00:00.000+03:00</published><updated>2011-04-27T19:00:52.308+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adobe flash"/><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Установка Adobe Flash в Gentoo Linux</title><content type='html'>Q: пакет adobe-flash замаскирован, что с ним делать?&lt;br /&gt;
A: в файле /etc/make.conf дописать:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;ACCEPT_LICENSE=&quot;*&quot;&lt;/blockquote&gt;&lt;br /&gt;
т.к. в adobe flash player найдено множество уязвимостей, устанавливаем следующей командой:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;emerge --ask --oneshot --verbose &quot;&gt;=www-plugins/adobe-flash-10.1.102.64&quot;&lt;/blockquote&gt;&lt;br /&gt;
все работает! =)</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/6272355734580179889/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/04/adobe-flash-gentoo-linux.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6272355734580179889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6272355734580179889'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/04/adobe-flash-gentoo-linux.html' title='Установка Adobe Flash в Gentoo Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-2370374134506407920</id><published>2011-04-27T17:00:00.001+03:00</published><updated>2011-04-27T17:00:44.901+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gdm"/><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Установка GDM</title><content type='html'>Долго думал, почему нет кнопочки Shut Down в меню System)) Оказывается все просто: надо было поставить Gnome Display Manager =)&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;Кстати, удобная штука для управления USE-флагами - gentoolkit (euse -E flag to enable, euse -D flag to disable)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;emerge gdm&lt;/blockquote&gt;&lt;br /&gt;
Для того, чтобы использовать GDM, нужно в файле /etc/conf.d/xdm добавить:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;DISPLAYMANAGER=&quot;gdm&quot;&lt;/blockquote&gt;&lt;br /&gt;
И добавить скрипт xdm в автозагрузку:&lt;br /&gt;
&lt;blockquote&gt;rc-update add xdm default&lt;/blockquote&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* Messages for package gnome-base/gdm-2.20.11:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* To make GDM start at boot, edit /etc/conf.d/xdm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* and then execute &#39;rc-update add xdm default&#39;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* GDM has changed the location of its configuration file.  Please&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* edit /etc/X11/gdm/custom.conf.  The factory defaults are located&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* at /usr/share/gdm/{defaults.conf,factory-defaults.conf}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* See README.install for more information about the change.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* For autologin to unlock your keyring, you need to set an empty&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;* password on your keyring. Use app-crypt/seahorse for that.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/2370374134506407920/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/04/gdm.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/2370374134506407920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/2370374134506407920'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/04/gdm.html' title='Установка GDM'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-303922531895581437</id><published>2011-04-27T11:51:00.000+03:00</published><updated>2011-04-27T11:51:31.964+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="gnome-panels"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Установка gnome-applets</title><content type='html'>Из &lt;a href=http://psyipm.blogspot.com/2011/04/simple-login-manager-gentoo-linux.html&gt;предыдущего поста&lt;/a&gt; мы помним, что после emerge gnome-light мы получим абсолютно &quot;пустой&quot; gnome. Напишу немного о gnome-panels. На панели можно добавить только ссылки и небольшое количество апплетов&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;emerge gnome-base/gnome-applets&lt;/blockquote&gt;&lt;br /&gt;
теперь можно добавлять апплеты типа system-monitor на гном-панели :) Едем дальше. При настройке громкости видим окно с такой ошибкой:&lt;br /&gt;
&lt;br /&gt;
Failed to start Volume Control: Failed to execute child process &quot;gnome-volume-control&quot; (No such file or directory)&lt;br /&gt;
&lt;br /&gt;
Решение - установка gnome-volume-control, это часть пакета gnome-media.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;emerge gnome-media&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/303922531895581437/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/04/gnome-applets.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/303922531895581437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/303922531895581437'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/04/gnome-applets.html' title='Установка gnome-applets'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-4227023257596792139</id><published>2011-04-27T11:38:00.009+03:00</published><updated>2011-11-02T01:16:42.250+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="login manager"/><category scheme="http://www.blogger.com/atom/ns#" term="xorg"/><title type='text'>Установка Simple LogIn Manager в Gentoo Linux</title><content type='html'>В официальных мануалах по Gentoo мало что написано о последующей настройке Gnome, поэтому пишу это все для того чтобы потом заново не гуглить =)&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Установка Gnome&lt;/h2&gt;&lt;a href=http://www.gentoo.org/doc/en/gnome-config.xml&gt;http://www.gentoo.org/doc/en/gnome-config.xml&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Сначала пишем:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;emerge gnome-light&lt;/blockquote&gt;&lt;br /&gt;
..и можно ложиться спать)) это порядка 160 пакетов. После того как это все скомпилится, у нас будет gnome, но без единого приложения вообще.&lt;br /&gt;
&lt;br /&gt;
Итак, про slim. При входе в систему мы видим ужасно некрасивый логин-менеджер. Давайте поставим, например, Simple LogIn Manager:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;blockquote&gt;emerge slim -pv&lt;/blockquote&gt;&lt;br /&gt;
Для того, чтобы он запустился, нужно в /etc/conf.d/xdm дописать:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;DISPLAYMANAGER=&quot;slim&quot;&lt;/blockquote&gt;&lt;br /&gt;
и добавить скрипт xdm в автозагрузку. Для этого выполнить:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;rc-update add xdm default&lt;/blockquote&gt;&lt;br /&gt;
темы от SLIM лежат в /usr/share/slim/themes/ (Для просмотра тем без их установки slim -p /usr/share/slim/themes/default/). Устанавливаются темы в простом и хорошо комментированном конфиге /etc/slim.conf&lt;br /&gt;
&lt;br /&gt;
Или можно сделать так: &lt;a href=http://psyipm.blogspot.com/2011/04/gdm.html&gt;установка gdm&lt;/a&gt;. Тогда еще появится кнопочка Shut Down в меню System</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/4227023257596792139/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/04/simple-login-manager-gentoo-linux.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4227023257596792139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4227023257596792139'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/04/simple-login-manager-gentoo-linux.html' title='Установка Simple LogIn Manager в Gentoo Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-5010749061179747863</id><published>2011-04-11T07:43:00.001+03:00</published><updated>2011-04-11T07:43:58.692+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mint"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to install Gnome shell 3 in Mint 10</title><content type='html'>This is the new look of GNOME. Its called Gnome Shell and it due to some out late fall of this year. I recommend to just try it out on a live USB Drive because the system is very buggy as it is still in developing process. To install type this in the terminal...&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install gnome-shell&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
export GNOME_SHELL_DISABLE_TFP=1 (for Intel Graphic Cards only!)&lt;br /&gt;
&lt;br /&gt;
gnome-shell --replace&lt;br /&gt;
&lt;br /&gt;
-To uninstall&lt;br /&gt;
sudo apt-get uninstall gnome-shell&lt;br /&gt;
Enjoy and subscribe! =D&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;iframe title=&quot;YouTube video player&quot; width=&quot;425&quot; height=&quot;344&quot; src=&quot;http://www.youtube.com/embed/jji3AQh7bao&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/center&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/5010749061179747863/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/04/how-to-install-gnome-shell-3-in-mint-10.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/5010749061179747863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/5010749061179747863'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/04/how-to-install-gnome-shell-3-in-mint-10.html' title='How to install Gnome shell 3 in Mint 10'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/jji3AQh7bao/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-6145357842028958872</id><published>2011-04-05T11:23:00.001+03:00</published><updated>2011-04-05T11:35:15.900+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="8bit"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="music"/><title type='text'>PC Speaker Beep</title><content type='html'>Сегодня я расскажу, как можно позабавиться с PC Speaker&#39;ом. PC Speaker или Динамик ПК - это маленький динамик на материнской плате, он обычно пищит при загрузке. Beep!&lt;br /&gt;
&lt;br /&gt;
Система у меня Ubuntu, но этот пример подойдет для любого GNU/Linux.&lt;br /&gt;
Для начала, поставим пакет beep, с ним будет проще пищать.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;sudo apt-get install beep&lt;/blockquote&gt;&lt;br /&gt;
Далее попробуем пискнуть:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;beep&lt;/blockquote&gt;&lt;br /&gt;
Нет звука? Значит не подгружен модуль pcspkr. Загружаем его:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;modprobe pcspkr&lt;/blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
И пробуем снова пискнуть:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;beep&lt;/blockquote&gt;&lt;br /&gt;
Должно работать.&lt;br /&gt;
Можно поиграться с длительностью -l и частотой(от 0 до 20,000 Гц) -f.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;beep -f 200 -l 1000&lt;br /&gt;
beep -f 1200 -l 1000&lt;br /&gt;
beep -f 1800 -l 1000&lt;br /&gt;
beep -f 10000 -l 1000&lt;/blockquote&gt;&lt;br /&gt;
Ну, а теперь, настоящая музыка:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;beep -n -f 196 -l 400 -n -f 262 -l 800 -n -f 196 -l 600 -n -f 220 -l 200 -n -f 247 -l 800 -n -f 165 -l 400 -n -f 165 -l 400 -n -f 220 -l 800 -n -f 196 -l 600 -n -f 175 -l 200 -n -f 196 -l 800 -n -f 131 -l 400 -n -f 131 -l 400 -n -f 147 -l 800 -n -f 147 -l 400 -n -f 165 -l 400 -n -f 175 -l 800 -n -f 175 -l 400 -n -f 196 -l 400 -n -f 220 -l 800 -n -f 247 -l 400 -n -f 262 -l 400 -n -f 294 -l 1200 -n -f 196 -l 400 -n -f 330 -l 800 -n -f 294 -l 600 -n -f 262 -l 200 -n -f 294 -l 800 -n -f 247 -l 400 -n -f 196 -l 400 -n -f 262 -l 800 -n -f 247 -l 600 -n -f 220 -l 200 -n -f 247 -l 800 -n -f 165 -l 400 -n -f 165 -l 400 -n -f 220 -l 800 -n -f 196 -l 400 -n -f 175 -l 400 -n -f 196 -l 800 -n -f 131 -l 400 -n -f 131 -l 400 -n -f 262 -l 800 -n -f 247 -l 400 -n -f 220 -l 400 -n -f 196 -l 1600 -n -f 330 -l 1600 -n -f 294 -l 400 -n -f 262 -l 400 -n -f 247 -l 400 -n -f 262 -l 400 -n -f 294 -l 1200 -n -f 196 -l 400 -n -f 196 -l 1600 -n -f 262 -l 1600 -n -f 247 -l 400 -n -f 220 -l 400 -n -f 196 -l 400 -n -f 220 -l 400 -n -f 247 -l 1200 -n -f 165 -l 400 -n -f 165 -l 1600 -n -f 262 -l 800 -n -f 220 -l 600 -n -f 247 -l 200 -n -f 262 -l 800 -n -f 220 -l 600 -n -f 247 -l 200 -n -f 262 -l 800 -n -f 220 -l 400 -n -f 262 -l 400 -n -f 350 -l 1600 -n -f 350 -l 1600 -n -f 330 -l 400 -n -f 294 -l 400 -n -f 262 -l 400 -n -f 294 -l 400 -n -f 330 -l 1200 -n -f 262 -l 400 -n -f 262 -l 1600 -n -f 294 -l 1600 -n -f 262 -l 400 -n -f 247 -l 400 -n -f 220 -l 400 -n -f 247 -l 400 -n -f 262 -l 1200 -n -f 220 -l 400 -n -f 220 -l 1600 -n -f 262 -l 800 -n -f 247 -l 400 -n -f 220 -l 400 -n -f 196 -l 800 -n -f 131 -l 600 -n -f 131 -l 200 -n -f 196 -l 1600 -n -f 220 -l 800 -n -f 246 -l 800 -n -f 262 -l 3200&lt;/blockquote&gt;&lt;br /&gt;
И в 3 раза быстрее =)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;beep -n -f 1568 -l 100 -n -f 2096 -l 200 -n -f 1568 -l 150 -n -f 1760 -l 50 -n -f 1976 -l 200 -n -f 1320 -l 100 -n -f 1320 -l 100 -n -f 1760 -l 200 -n -f 1568 -l 150 -n -f 1400 -l 50 -n -f 1568 -l 200 -n -f 1048 -l 100 -n -f 1048 -l 100 -n -f 1176 -l 200 -n -f 1176 -l 100 -n -f 1320 -l 100 -n -f 1400 -l 200 -n -f 1400 -l 100 -n -f 1568 -l 100 -n -f 1760 -l 200 -n -f 1976 -l 100 -n -f 2096 -l 100 -n -f 2352 -l 300 -n -f 1568 -l 100 -n -f 2640 -l 200 -n -f 2352 -l 150 -n -f 2096 -l 50 -n -f 2352 -l 200 -n -f 1976 -l 100 -n -f 1568 -l 100 -n -f 2096 -l 200 -n -f 1976 -l 150 -n -f 1760 -l 50 -n -f 1976 -l 200 -n -f 1320 -l 100 -n -f 1320 -l 100 -n -f 1760 -l 200 -n -f 1568 -l 100 -n -f 1400 -l 100 -n -f 1568 -l 200 -n -f 1048 -l 100 -n -f 1048 -l 100 -n -f 2096 -l 200 -n -f 1976 -l 100 -n -f 1760 -l 100 -n -f 1568 -l 400 -n -f 2640 -l 400 -n -f 2352 -l 100 -n -f 2096 -l 100 -n -f 1976 -l 100 -n -f 2096 -l 100 -n -f 2352 -l 300 -n -f 1568 -l 100 -n -f 1568 -l 400 -n -f 2096 -l 400 -n -f 1976 -l 100 -n -f 1760 -l 100 -n -f 1568 -l 100 -n -f 1760 -l 100 -n -f 1976 -l 300 -n -f 1320 -l 100 -n -f 1320 -l 400 -n -f 2096 -l 200 -n -f 1760 -l 150 -n -f 1976 -l 50 -n -f 2096 -l 200 -n -f 1760 -l 150 -n -f 1976 -l 50 -n -f 2096 -l 200 -n -f 1760 -l 100 -n -f 2096 -l 100 -n -f 2800 -l 400 -n -f 2800 -l 400 -n -f 2640 -l 100 -n -f 2352 -l 100 -n -f 2096 -l 100 -n -f 2352 -l 100 -n -f 2640 -l 300 -n -f 2096 -l 100 -n -f 2096 -l 400 -n -f 2352 -l 400 -n -f 2096 -l 100 -n -f 1976 -l 100 -n -f 1760 -l 100 -n -f 1976 -l 100 -n -f 2096 -l 300 -n -f 1760 -l 100 -n -f 1760 -l 400 -n -f 2096 -l 200 -n -f 1976 -l 100 -n -f 1760 -l 100 -n -f 1568 -l 200 -n -f 1048 -l 150 -n -f 1048 -l 50 -n -f 1568 -l 400 -n -f 1760 -l 200 -n -f 1968 -l 200 -n -f 2096 -l 800&lt;/blockquote&gt;&lt;br /&gt;
После перезагрузки, модуль pcspkr прийдется загружать снова вручную, можете добавить этот модуль в автоматическую загрузку. Для этого допишите название модуля в /etc/modules&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://blog.denisiuk.org/2009/11/pc-speaker-beep.html&quot;&gt;Source&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/6145357842028958872/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/04/pc-speaker-beep.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6145357842028958872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6145357842028958872'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/04/pc-speaker-beep.html' title='PC Speaker Beep'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-1745441245707652090</id><published>2011-03-14T01:53:00.001+02:00</published><updated>2011-04-05T11:36:52.902+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="amarok"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mint"/><category scheme="http://www.blogger.com/atom/ns#" term="music players"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>How to compile Amarok 1.4 in Linux Mint 10</title><content type='html'>This tutorial will explain How-To Compile Amarok 1.4.10 in Ubuntu 10.04 (Lucid)&amp;gt;Some users still would like to use amarok 1.4.10.&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;more-7980&quot;&gt;&lt;/span&gt;&lt;b&gt;Preparing your system&lt;/b&gt;&lt;br /&gt;
First you need to install following packages from your terminal&lt;br /&gt;
&lt;blockquote&gt;sudo apt-get install libgpod-common libgpod-dev libgpod4 kdelibs4-dev libxine-dev libtag1-dev libsqlite3-dev libtunepimp-dev libmysqlclient15-dev libpq-dev libvisual-0.4-dev libsdl1.2-dev libifp-dev libxine1 libxine1-ffmpeg build-essential checkinstall&lt;/blockquote&gt;&lt;b&gt;Download amarok&amp;nbsp; source&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;cd ~/Downloads&lt;br /&gt;
wget http://download.kde.org/stable/amarok/1.4.10/src/amarok-1.4.10.tar.bz2&lt;br /&gt;
&lt;br /&gt;
tar -xvf amarok-1.4.10.tar.bz2&lt;br /&gt;
cd amarok-1.4.10&lt;/blockquote&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Patchs to Fix The Code (fix for GCC, Cover Manager and Wikipedia lookup)&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;wget http://yep.it/savedpatch/amarok-1.4.10-gcc44.patch&lt;br /&gt;
patch -p1 &amp;lt; amarok-1.4.10-gcc44.patch&lt;br /&gt;
wget http://yep.it/savedpatch/amarok-1.4.10-covermanager-fix.patch&lt;br /&gt;
patch -p1 &amp;lt; amarok-1.4.10-covermanager-fix.patch&lt;br /&gt;
&lt;br /&gt;
wget http://yep.it/savedpatch/amarok-1.4.10-wikipedia.patch&lt;br /&gt;
patch -p1 &amp;lt; amarok-1.4.10-wikipedia.patch&lt;/blockquote&gt;&lt;b&gt;Compile &amp;amp; Install Amarok 1.4.10&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;./configure --without-arts&lt;br /&gt;
make&lt;br /&gt;
sudo make install&lt;/blockquote&gt;&lt;b&gt;Restore Original Appication Icons &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;cd ~/Downloads&lt;br /&gt;
wget http://pprc.qmul.ac.uk/~jmorris/personal/amarok/amarok.icons.__usr.share.icons__.tar.gz&lt;br /&gt;
sudo cp ~/Downloads/amarok.icons.__usr.share.icons__.tar.gz /usr/share/icons&lt;br /&gt;
cd /usr/share/icons&lt;br /&gt;
sudo tar zxvf amarok.icons.__usr.share.icons__.tar.gz&lt;/blockquote&gt;That’s it and you are ready to launch amarok application</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/1745441245707652090/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/03/how-to-compile-amarok-14-in-linux-mint.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/1745441245707652090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/1745441245707652090'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/03/how-to-compile-amarok-14-in-linux-mint.html' title='How to compile Amarok 1.4 in Linux Mint 10'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-4634814940858707487</id><published>2011-02-11T09:59:00.001+02:00</published><updated>2011-04-05T11:37:55.912+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mint"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="wake-on-lan"/><title type='text'>How to set your system for Wake-On-LAN in Linux Mint 10</title><content type='html'>1. If you havent already, go to your BIOS, and turn on WakeOnLAN (it varies, look for it.) If your network card is onboard, your set for step 2, otherwise there is &lt;i&gt;probably&lt;/i&gt; a cable that should go from your network card to your motherboard, though this is not always the case.&lt;br /&gt;
&lt;br /&gt;
2. Back in ubuntu, kubuntu, xubuntu, w/e, we now need to make a script that will run every time the computer is started, because this command only lasts until the computer is turned on again once.&lt;br /&gt;
&lt;br /&gt;
2a. Find out what network device you want to have the computer wake-able from, usually all, which is just one. If you have more network devices in your system, 9 chances out of 10, you already know what they are called.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;You can NOT wake up a laptop or computer that is only connected via wireless with wake-on-lan, unless the bios has a method for this, this is very rare, and I do not garuntee this howto will work in such cases.&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
In your terminal, type:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ifconfig&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
So, I want this system to be wake-able from eth0.&lt;br /&gt;
&lt;br /&gt;
2b. Now we create the script.&lt;br /&gt;
Change to the startup script directory and start editing a new file:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo -i&lt;br /&gt;
apt-get install ethtool&lt;br /&gt;
cd /etc/init.d/&lt;br /&gt;
nano wakeonlanconfig&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Paste, or type this into the file, replacing eth0 with your network device, repeat the ethtool line as many times for your devices before the exit line:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#!/bin/bash&lt;br /&gt;
ethtool -s eth0 wol g&lt;br /&gt;
exit&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Set the permissions of the file and make the script run on startup:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;chmod a+x wakeonlanconfig&lt;br /&gt;
update-rc.d -f wakeonlanconfig defaults&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Adding system startup for /etc/init.d/wakeonlanconfig ...&lt;br /&gt;
/etc/rc0.d/K20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;br /&gt;
/etc/rc1.d/K20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;br /&gt;
/etc/rc6.d/K20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;br /&gt;
/etc/rc2.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;br /&gt;
/etc/rc3.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;br /&gt;
/etc/rc4.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;br /&gt;
/etc/rc5.d/S20wakeonlanconfig -&amp;gt; ../init.d/wakeonlanconfig&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Now we finish by running it, and making sure there are no errors.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sh /etc/init.d/wakeonlanconfig&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
This should produce no output and put you right back at the prompt you started at.&lt;br /&gt;
&lt;br /&gt;
3. Use it. you&#39;ll need something to send wake-on-lan packets with, &quot;wakeonlan&quot; is in the repos. And you&#39;ll need the mac address of the system.&lt;br /&gt;
&lt;br /&gt;
To get your MAC address, on the same system you just enabled WOL on, type:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ifconfig | grep HW&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
its the thing that looks like 01:23:45:67:89:ab , write it down and turn off that system:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo halt&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;In MOST cases, you CAN SEND wake on lan packets from a wireless connected computer.&lt;/b&gt;&lt;br /&gt;
If that doesnt work, its likely the port on the system your trying to wake up isnt the default (9), try 7, or if your BIOS settings or book told you one, use that one.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;wakeonlan -p 7 01:23:45:67:89:ab&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
If that STILL doesnt work, make sure wakeonlan is enabled in your bios and your hardware supports it.&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=234588&quot;&gt;Original article&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/4634814940858707487/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/02/how-to-set-your-system-for-wake-on-lan.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4634814940858707487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/4634814940858707487'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/02/how-to-set-your-system-for-wake-on-lan.html' title='How to set your system for Wake-On-LAN in Linux Mint 10'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2495801455710894373.post-6676425754338304639</id><published>2011-02-10T01:07:00.004+02:00</published><updated>2011-04-05T11:39:48.294+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="lamp"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.10 (LAMP)</title><content type='html'>LAMP is short for &lt;b&gt;L&lt;/b&gt;inux, &lt;b&gt;A&lt;/b&gt;pache, &lt;b&gt;M&lt;/b&gt;ySQL, &lt;b&gt;P&lt;/b&gt;HP.   This tutorial shows how you can install an Apache2 webserver on an  Ubuntu 10.10 server with PHP5 support (mod_php) and MySQL support.&lt;br /&gt;
&lt;h4&gt;Installing MySQL 5&lt;/h4&gt;First we install MySQL 5 like this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install mysql-server mysql-client&lt;/blockquote&gt;&lt;br /&gt;
You will be asked to provide a password for the MySQL root user.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h4&gt;Installing Apache2&lt;/h4&gt;Apache2 is available as an Ubuntu package, therefore we can install it like this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install apache2&lt;/blockquote&gt;&lt;br /&gt;
Now direct your browser to your server, and you should see the Apache2 placeholder page (It works!).&lt;br /&gt;
Apache&#39;s default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.&lt;br /&gt;
&lt;h4&gt;Installing PHP5&lt;/h4&gt;We can install PHP5 and the Apache PHP5 module as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install php5 libapache2-mod-php5&lt;/blockquote&gt;&lt;br /&gt;
We must restart Apache afterwards:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/etc/init.d/apache2 restart&lt;/blockquote&gt;&lt;h4&gt;Testing PHP5&lt;/h4&gt;To test your php5 we will create a php file in document root (by default /var/www/) and than call it in browser:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;nano /var/www/index.php&lt;/blockquote&gt;&lt;br /&gt;
Paste in the editor these lines:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;?php&lt;br /&gt;
phpinfo();&lt;br /&gt;
?&amp;gt;&lt;/blockquote&gt;&lt;h4&gt;Getting MySQL Support In PHP5&lt;/h4&gt;To get MySQL support in PHP, we can install the php5-mysql package. It&#39;s a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-cache search php5&lt;/blockquote&gt;&lt;br /&gt;
Pick the ones you need and install them like this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json&lt;/blockquote&gt;&lt;br /&gt;
Restart apache again and reload php test file in browser. You should now find lots of new modules there, including the MySQL module.&lt;br /&gt;
&lt;h4&gt;phpMyAdmin&lt;/h4&gt;phpMyAdmin is a web interface through which you can manage your MySQL databases. It&#39;s a good idea to install it:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;apt-get install phpmyadmin&lt;/blockquote&gt;&lt;br /&gt;
You will see the following questions:&lt;br /&gt;
&lt;br /&gt;
Web server to reconfigure automatically: &amp;lt;-- apache2 Configure database for phpmyadmin with dbconfig-common? &amp;lt;-- No  Afterwards, you can access phpMyAdmin under http://yourserver/phpmyadmin/. &lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-10.10-lamp&quot;&gt;Source article&lt;/a&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://psyipm.blogspot.com/feeds/6676425754338304639/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://psyipm.blogspot.com/2011/02/installing-apache2-with-php5-and-mysql.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6676425754338304639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2495801455710894373/posts/default/6676425754338304639'/><link rel='alternate' type='text/html' href='http://psyipm.blogspot.com/2011/02/installing-apache2-with-php5-and-mysql.html' title='Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.10 (LAMP)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>