<?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-75652346438748699</id><updated>2024-08-31T10:39:24.171-07:00</updated><category term="linux"/><category term="4Gb"/><category term="Audio CD"/><category term="Live CD"/><category term="Opera"/><category term="RAID"/><category term="flash"/><category term="ifconfig"/><category term="mount"/><category term="udf"/><category term="запись"/><category term="команда не найдена"/><category term="образ"/><title type='text'>/dev/ex_mem</title><subtitle type='html'>Сей блог - удаленный бэкап некоторых знаний двух гентушников</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-75652346438748699.post-7559329269720144685</id><published>2009-01-12T14:49:00.000-08:00</published><updated>2009-01-15T17:23:29.934-08:00</updated><title type='text'>ROX и .PSD Thumbnails</title><content type='html'>Сильно раздражало неправильное создание\отображение тумбнэйлов .psd файлов в линукс вообще и в rox-filer в частности. Ковырял, думал, нашел решение. &lt;br /&gt;&lt;br /&gt;vim /usr/lib/rox/MagickThumbnail/magickthumb.py&lt;br /&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;Ищем код:&lt;/font&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;if &lt;br /&gt;cmd=&#39;convert -flatten -mattecolor &quot;%s&quot; -frame %sx%s+%s+%s -size %sx%s &quot;%s&quot; -resize %sx%s +profile &quot;*&quot; &quot;%s&quot;&#39;  % (bcolor, frame_width, frame_width, outer_bevel, inner_bevel, rsize, rsize, inname, rsize, rsize, frfname)&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;видоизменяем:&lt;/font&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;if &lt;br /&gt;cmd=&#39;convert -flatten -mattecolor &lt;font color=red&gt;&quot;%s[0]&quot;&lt;/font&gt; -frame %sx%s+%s+%s -size %sx%s &quot;%s0&quot; -resize %sx%s +profile &quot;*&quot; &quot;%s&quot;&#39;  % (bcolor, frame_width, frame_width, outer_bevel, inner_bevel, rsize, rsize, inname, rsize, rsize, frfname)&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;всего 3 символа, и MagickThumbnailer начнет конвертить только первый слой (для .psd это критично)&lt;br /&gt;еще следует проверить числовое значение Perfomance - Max Size&lt;br /&gt;&lt;br /&gt;ЗЫ: имена файлов должны быть на англицком и без спецсимволов, их magickthumbnailer не понимает&lt;br /&gt;&lt;br /&gt;PSS: достаточно поставить magickthumbnailer и назначить его только для PSD</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/7559329269720144685/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/7559329269720144685' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/7559329269720144685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/7559329269720144685'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2009/01/rox-psd-thumbnails.html' title='ROX и .PSD Thumbnails'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-1225915051672934657</id><published>2008-10-20T08:25:00.000-07:00</published><updated>2008-10-20T08:29:30.483-07:00</updated><title type='text'>Opera 9.6 и Flash Player 10</title><content type='html'>На самом деле поставить сей плагин очень просто. По старинке качаем tar.gz с офф сайта &lt;a href=&quot;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;P2_Platform=Linux&quot;&gt;&lt;/a&gt; и кидаем libflashplayer.so в папку с плагинами (у меня /usr/lib/nsbrowser/plugins). Не работает, а почему?&lt;br /&gt;&lt;br /&gt;Читаем new dependencies needed for Flash Player 10: &lt;br /&gt;cURL&lt;br /&gt;Mozilla&#39;s Network Security Services (NSS)&lt;br /&gt;Further, glibc &gt;= 2.4&lt;br /&gt;&lt;br /&gt;NSS без мозиллы мало у кого стоит Х) Ставим этот пакет (около 4.5 метров с зависимостями) и наслаждаемсо</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/1225915051672934657/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/1225915051672934657' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/1225915051672934657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/1225915051672934657'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/10/oera-96-flash-player-10.html' title='Opera 9.6 и Flash Player 10'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-1581171114415972891</id><published>2008-10-07T08:27:00.000-07:00</published><updated>2008-10-07T09:04:25.614-07:00</updated><title type='text'>grep Installed Packages</title><content type='html'>&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;emerge -s SOMETHING &gt;&gt; text.file&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;Поиск в репозитории по слову web выдаёт дохрена пакетов. Этот вывод перенаправляеццо в файл, затем grep&#39;аюццо только установленные пакеты:&lt;br /&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;Способ#1[этот пример смотрить в HTML - кусок кода зохаван]:&lt;/font&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;&lt;blockquote&gt;grep -A4 -B2 &quot;Latest version installed: \[ Not Installed \]&quot;  file.txt &gt;&gt; stuff_i_dont_want.txt &amp;&amp;&lt;br /&gt;diff file.txt stuff_i_dont_want.txt | sed &#39;s/^&lt;//&#39; | grep &quot;Latest version installed:&quot; -A4 -B2&lt;/blockquote&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;Способ#2:&lt;/font&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;&lt;blockquote&gt;sed -n &#39;/^\*/{N ; h; n ; /\[ Not Installed \]/b ; :a ; H; n ; /^$/!ba ; H; x; p}&#39; file.txt&lt;/blockquote&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;Способ#3:&lt;/font&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;&lt;blockquote&gt;grep -v -P &quot;^\*\s.*$\n^.*$\n^.*\[ Not Installed \]$\n^.*$\n^.*$\n^.*$\n&quot; test.txt&lt;/blockquote&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;font size=&quot;1&quot;&gt;Вывод всех НЕ установленных пакетов:&lt;/font&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;1&quot;&gt;&lt;blockquote&gt;cat txt-file | grep &#39;Not Installed&#39; -A4 -B2&lt;br /&gt;*  media-plugins/gst-plugins-theora&lt;br /&gt;      Latest version available: 0.10.14&lt;br /&gt;      Latest version installed: [ Not Installed ]&lt;br /&gt;      Size of files: 1,587 kB&lt;br /&gt;      Homepage:      http://gstreamer.freedesktop.org/&lt;br /&gt;      Description:   plugin for gstreamer&lt;br /&gt;      License:       GPL-2&lt;br /&gt;&lt;br /&gt;*  media-plugins/gst-plugins-ximagesrc [ Masked ]&lt;br /&gt;      Latest version available: 0.10.7&lt;br /&gt;      Latest version installed: [ Not Installed ]&lt;br /&gt;      Size of files: 1,705 kB&lt;br /&gt;      Homepage:      http://gstreamer.freedesktop.org/&lt;br /&gt;      Description:   plugin for gstreamer&lt;br /&gt;      License:       GPL-2 ]&lt;/blockquote&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/1581171114415972891/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/1581171114415972891' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/1581171114415972891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/1581171114415972891'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/10/grep-installed-packages.html' title='grep Installed Packages'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-4064174087288456272</id><published>2008-10-03T11:30:00.000-07:00</published><updated>2008-10-03T11:41:51.459-07:00</updated><title type='text'>Tree Size for Linux</title><content type='html'>&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;du -h --max-depth=1&lt;br /&gt;man du&lt;br /&gt;&lt;br /&gt;du -m --max-depth=1 | sort -gr&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/4064174087288456272/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/4064174087288456272' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/4064174087288456272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/4064174087288456272'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/10/tree-size-for-linux.html' title='Tree Size for Linux'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-920003597316824994</id><published>2008-09-04T11:16:00.000-07:00</published><updated>2008-09-04T11:19:49.647-07:00</updated><title type='text'>Транслитерация</title><content type='html'>Как-то появилась необходимость перевести достаточно большое количество имен файлов с русского в транслит, а также несколько текстовых файлов. В связи с этим был написан следующий скрипт:&lt;br /&gt;translit.sh&lt;br /&gt;&lt;div style=&quot;margin:0px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:300px; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;#Author: Desidis&lt;br /&gt;#Created at: Thu Sep  4 17:37:26 EEST 2008&lt;br /&gt;&lt;br /&gt;OPT=$1&lt;br /&gt;file_name=$2&lt;br /&gt;char=`enca -i &quot;$file_name&quot;`&lt;br /&gt;command=&quot;`basename \&quot;$0\&quot;`&quot;&lt;br /&gt;#Functions&lt;br /&gt;display_usage() {&lt;br /&gt;    cat &lt;&lt; EOF&lt;br /&gt;Usage:  $command [--all_in_dir] находясь в нужной папке&lt;br /&gt; $command [--text_in_file] имя файла&lt;br /&gt; $command [--single_file] имя файла&lt;br /&gt;Use &quot;$command --help&quot; для более полной помощи.&lt;br /&gt;&lt;br /&gt;EOF&lt;br /&gt;}&lt;br /&gt;text_in_file() {&lt;br /&gt;f_f=`echo &quot;$file_name&quot; | awk -F. &#39;{print NF-1}&#39;`&lt;br /&gt;l_f=`echo &quot;$file_name&quot; | awk -F. &#39;{print NF}&#39;`&lt;br /&gt;begin_file_name=`echo &quot;$file_name&quot; | cut -d. -f 1-$f_f`&lt;br /&gt;end_file_name=`echo &quot;$file_name&quot; | cut -d. -f $l_f`&lt;br /&gt;f_f_n=$begin_file_name.translit.$end_file_name&lt;br /&gt;DIRECTORY=/tmp/translit&lt;br /&gt;if [ -d $DIRECTORY ]&lt;br /&gt;then :&lt;br /&gt;else&lt;br /&gt;        mkdir $DIRECTORY &gt; /dev/null 2&gt;&amp;1&lt;br /&gt;        if [ $? != 0 ];&lt;br /&gt;        then&lt;br /&gt;  echo &quot;Немогу создать временную директорию&quot; &gt;&amp;2&lt;br /&gt;  exit 1&lt;br /&gt; else :&lt;br /&gt; fi&lt;br /&gt;fi&lt;br /&gt;        cat &quot;$file_name&quot; | iconv -f &quot;$char&quot;  -t koi8-r | catdoc -d us-ascii -s koi8-r &gt; $DIRECTORY/tmp&lt;br /&gt; mv $DIRECTORY/tmp &quot;$f_f_n&quot;&lt;br /&gt; rm -r $DIRECTORY&lt;br /&gt;echo &quot;Транслитерация &#39;&quot;$file_name&quot;&#39; завершена&quot;&lt;br /&gt;}&lt;br /&gt;all_in_dir () {&lt;br /&gt;for i in *&lt;br /&gt;do&lt;br /&gt; name=`echo &quot;$i&quot; | iconv -f utf8 -t koi8-r | catdoc -d us-ascii -s koi8-r`&lt;br /&gt; mv &quot;$i&quot; &quot;$name&quot;&lt;br /&gt; echo &quot;Переименовано &quot;$i&quot; в &quot;$name&quot;&quot;&lt;br /&gt;done&lt;br /&gt; exit 0&lt;br /&gt;}&lt;br /&gt;single_file () {&lt;br /&gt;name=`echo &quot;$file_name&quot; | iconv -f utf8 -t koi8-r | catdoc -d us-ascii -s koi8-r`&lt;br /&gt;        mv &quot;$file_name&quot; &quot;$name&quot;&lt;br /&gt; echo &quot;Переименовано &quot;$file_name&quot; в &quot;$name&quot;&quot;&lt;br /&gt;}&lt;br /&gt;display_help () {&lt;br /&gt;cat &lt;&lt; EOF&lt;br /&gt;&lt;br /&gt;Options:&lt;br /&gt;--all_in_dir   Транслитерирует имена всех файлов в текущем каталоге&lt;br /&gt;--single_file  Транслитерирует имя указанного файла&lt;br /&gt;--text_in_file Производит транслитерацию кирилицы в указанном файле &lt;br /&gt;EOF&lt;br /&gt;}&lt;br /&gt;case $OPT in&lt;br /&gt;--all_in_dir) all_in_dir&lt;br /&gt; ;;&lt;br /&gt;--text_in_file) text_in_file&lt;br /&gt; ;;&lt;br /&gt;--single_file) single_file&lt;br /&gt; ;;&lt;br /&gt;--help) display_help&lt;br /&gt; ;;&lt;br /&gt;*) display_usage&lt;br /&gt; ;;&lt;br /&gt;esac&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/920003597316824994/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/920003597316824994' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/920003597316824994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/920003597316824994'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/09/blog-post_04.html' title='Транслитерация'/><author><name>desidis</name><uri>http://www.blogger.com/profile/05227016748118011339</uri><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-75652346438748699.post-6591486702121394353</id><published>2008-08-12T02:26:00.000-07:00</published><updated>2008-08-12T02:29:34.238-07:00</updated><title type='text'>mount -t cifs</title><content type='html'>Монтирование виндоз-шары с утф8&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;sudo mount -t cifs //[IP]/[FOLDER] /media -o username=user,uid=1000,iocharset=utf8,dir_mode=0770,file_mode=0660&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/6591486702121394353/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/6591486702121394353' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/6591486702121394353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/6591486702121394353'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/08/mount-t-cifs.html' title='mount -t cifs'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-5815148622805330302</id><published>2008-08-07T09:28:00.000-07:00</published><updated>2008-08-07T09:55:28.317-07:00</updated><title type='text'>proftpd</title><content type='html'>&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;USE=&quot;&lt;span style=&quot;font-weight:bold;&quot;&gt;-alc&lt;/span&gt;&quot; emerge proftpd&lt;br /&gt;#нах*й alc!!!!&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;cp /bin/false /bin/ftp&lt;br /&gt;echo &quot;/bin/ftp&quot; &gt;&gt; /etc/shells&lt;br /&gt;#обойти pam&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;useradd -g ftp username # добавить анонимуса в группу фтп&lt;br /&gt;chown -R someuser:somegroup home/ftp #передать владение папкой c рекурсией&lt;br /&gt;vim /etc/ftpusers #убить анонимуса&lt;br /&gt;mount --bind olddir newdir #жесткая ссылка на локальные папки&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:300px; overflow:auto; background: #f1f1f1&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;#Редактируя посмотри нормальный конфиг&lt;br /&gt;# This is a basic ProFTPD configuration file (rename it to&lt;br /&gt;# &#39;proftpd.conf&#39; for actual use. It establishes a single server&lt;br /&gt;# and a single anonymous login. It assumes that you have a user/group&lt;br /&gt;# &quot;nobody&quot; and &quot;ftp&quot; for normal operation and anonymous access.&lt;br /&gt;DefaultAddress  192.168.10.9&lt;br /&gt;ServerName  &quot;ProFTPD Default Installation&quot;&lt;br /&gt;ServerType  standalone&lt;br /&gt;DefaultServer  on&lt;br /&gt;RequireValidShell off&lt;br /&gt;#AuthPAM  off&lt;br /&gt;#AuthPAMConfig  ftp&lt;br /&gt;UseReverseDNS  off&lt;br /&gt;IdentLookups  off&lt;br /&gt;AllowOverride  off&lt;br /&gt;WtmpLog   off&lt;br /&gt;# Port 21 is the standard FTP port.&lt;br /&gt;Port    21&lt;br /&gt;&lt;br /&gt;# Umask 022 is a good standard umask to prevent new dirs and files&lt;br /&gt;# from being group and world writable.&lt;br /&gt;Umask    022&lt;br /&gt;&lt;br /&gt;# To prevent DoS attacks, set the maximum number of child processes&lt;br /&gt;# to 30. If you need to allow more than 30 concurrent connections&lt;br /&gt;# at once, simply increase this value. Note that this ONLY works&lt;br /&gt;# in standalone mode, in inetd mode you should use an inetd server&lt;br /&gt;# that allows you to limit the maximum number of processes per service&lt;br /&gt;# (such as xinetd).&lt;br /&gt;MaxInstances  30&lt;br /&gt;&lt;br /&gt;# Set the user and group under which the server will run.&lt;br /&gt;User    nobody&lt;br /&gt;Group    nogroup&lt;br /&gt;&lt;br /&gt;# Normally, we want files to be overwriteable.&lt;br /&gt;&lt;directory&gt;&lt;br /&gt;AllowOverwrite  on&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;# A basic anonymous configuration, with no upload directories.&lt;br /&gt;&lt;anonymous ftp=&quot;&quot;&gt;&lt;br /&gt;User    anonymous&lt;br /&gt;Group    ftp&lt;br /&gt;&lt;br /&gt;# We want clients to be able to login with &quot;anonymous&quot; as well as &quot;ftp&quot;.&lt;br /&gt;# UserAlias   anonymous ftpd&lt;br /&gt;# UserAlias   nobody proftpd&lt;br /&gt;# UserAlias   anonymous nobody&lt;br /&gt;# Limit the maximum number of anonymous logins.&lt;br /&gt;MaxClients   10&lt;br /&gt;&lt;br /&gt;# We want &#39;welcome.msg&#39; displayed at login, and &#39;.message&#39; displayed&lt;br /&gt;# in each newly chdired directory.&lt;br /&gt;DisplayLogin   welcome.msg&lt;br /&gt;DisplayChdir  .message&lt;br /&gt;&lt;br /&gt;# Limit WRITE everywhere in the anonymous chroot.&lt;br /&gt;&lt;limit write=&quot;&quot;&gt;&lt;br /&gt; DenyAll&lt;br /&gt;&lt;/limit&gt;&lt;br /&gt;&lt;directory incoming=&quot;&quot;&gt;&lt;br /&gt; AllowOverwrite on&lt;br /&gt; &lt;limit read=&quot;&quot; write=&quot;&quot; dirs=&quot;&quot; stor=&quot;&quot; cwd=&quot;&quot; cdup=&quot;&quot;&gt;&lt;br /&gt; AllowAll&lt;br /&gt; &lt;/limit&gt;&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;/anonymous&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/5815148622805330302/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/5815148622805330302' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/5815148622805330302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/5815148622805330302'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/08/proftpd.html' title='proftpd'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-909429261708305107</id><published>2008-04-18T14:32:00.000-07:00</published><updated>2008-04-18T14:49:20.851-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Live CD"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="RAID"/><title type='text'>Монтирование RAID разделов с Live CD</title><content type='html'>Была у меня машина с RAID0 и WindowsXP64, решил я на нее поставить Линуха. Диски были разбиты на NTFS разделы и содержали 300Гб нужных мне данных.&lt;br /&gt;Я думал отфармотировать один из разделов в ReiserFS, загрузиться с Live CD, примонтировать NTFS и ReiserFS разделы что бы перебросить инфу с NTFS, с последующим его форматированием и ресайзингом. Но не тут то было Х)&lt;br /&gt;Ни один из оказавшихся у меня под рукой LiveCD не смог найти и адекватно примонтировать мой RAID. Меня спасла установка ASP, которая адекватно определила разбивку диска, а источник проблем и решение, по иронии судьбы, я нашел спустя 15 минут.&lt;br /&gt;&lt;br /&gt;Оказываеться далеко не все LiveCD содержат необходимый набор тузл для определение и монтирования RAID (из известных мне только Gentoo Live CD), более того, не все установочные диски его адекватно воспринимают (Ubuntu, к примеру, разделов не видит, зато ASP рулит).&lt;br /&gt;&lt;br /&gt;Подробнее о том, как восстановить\примонтировать разделы RAID &lt;a href=&quot;http://gentoo-wiki.com/Recovering_RAID_and_LVM&quot;&gt;здесь&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/909429261708305107/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/909429261708305107' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/909429261708305107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/909429261708305107'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/04/raid-live-cd.html' title='Монтирование RAID разделов с Live CD'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-1333972227513543139</id><published>2008-04-18T14:14:00.000-07:00</published><updated>2008-04-18T14:20:59.651-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ifconfig"/><category scheme="http://www.blogger.com/atom/ns#" term="команда не найдена"/><title type='text'>&quot;пропавшие&quot; команды</title><content type='html'>Ставил давеча ASP, после установки консоль заявила что команды ifconfig она не знает Х)&lt;br /&gt;&lt;br /&gt;Как оказалось, после установки /sbin и /usr/sbin не оказалось в PATH. У генту такого нет, но на федоре и аспе встречется (может и еще где)&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Лекарство:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:$HOME/bin&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/1333972227513543139/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/1333972227513543139' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/1333972227513543139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/1333972227513543139'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/04/blog-post.html' title='&quot;пропавшие&quot; команды'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-6457837110268250308</id><published>2008-03-29T12:35:00.001-07:00</published><updated>2008-04-18T14:12:30.293-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Audio CD"/><category scheme="http://www.blogger.com/atom/ns#" term="запись"/><category scheme="http://www.blogger.com/atom/ns#" term="образ"/><title type='text'>Запись AudioCD из образов дисков</title><content type='html'>&lt;span&gt;Запись AudioCD из образов дисков&lt;br /&gt;Необходимые пакеты:&lt;br /&gt;media-libs/flac — для распаковки образов сжатых FLAC;&lt;br /&gt;media-sound/wavpack — для распаковки wv;&lt;br /&gt;пакет mac — для распаковки ape (можно скачать &lt;a href=&quot;http://ifolder.ru/5980296&quot;&gt;здесь&lt;/a&gt;);&lt;br /&gt;app-cdr/cdrdao — необходим непосредственно для записи;&lt;/span&gt;&lt;br /&gt;1. Распаковываем образ в wav.&lt;br /&gt;a. Распаковка FLAC:&lt;br /&gt;&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#flac -d  CDImage.flac&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;b. Распаковка ape:&lt;br /&gt;&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#ape CdImage.ape CdImage.wav -d&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;c. Распаковка wv&lt;br /&gt;&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#wvunpack CDImage.wv&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;2. Теперь создаем toc файл из cue:&lt;br /&gt;&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#сdrdao read-cddb file.cue&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;3. Складываем wav и полученный cue в одну папку и прожигаем болванку:&lt;br /&gt;&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;#cdrdao write --device /dev/cdrw --speed 4 file.cue&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;4. Втыкаем диск в любой проигрыватель и наслаждаемся результатом.</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/6457837110268250308/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/6457837110268250308' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/6457837110268250308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/6457837110268250308'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/03/audiocd.html' title='Запись AudioCD из образов дисков'/><author><name>desidis</name><uri>http://www.blogger.com/profile/05227016748118011339</uri><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-75652346438748699.post-9195538371164170356</id><published>2008-03-29T07:40:00.000-07:00</published><updated>2008-04-18T14:13:32.616-07:00</updated><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="Opera"/><title type='text'>Флэш в опере</title><content type='html'>Решение и файлик где-то слямзил. Где - не помню :( &lt;br /&gt;&lt;br /&gt;Качаем &lt;a href=&quot;http://ifolder.ru/5933633&quot;&gt;этот файлик&lt;/a&gt; (Shockwave Flash 9.0 r48 от Адоба, почти 7М) и копируем его в &lt;span style=&quot;font-weight:bold;&quot;&gt;/opt/opera/lib/opera/plugins&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Открываем оперу: &lt;span style=&quot;font-style:italic;&quot;&gt;Tools--&gt; Preferences--&gt; Advanced--&gt; Content--&gt; Plug-in options&lt;/span&gt; и оставляем лишь папку, описанную выше.&lt;br /&gt;&lt;br /&gt;перезагружаем оперу Х)</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/9195538371164170356/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/9195538371164170356' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/9195538371164170356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/9195538371164170356'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/03/blog-post.html' title='Флэш в опере'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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-75652346438748699.post-8335797473096722632</id><published>2008-03-29T05:52:00.000-07:00</published><updated>2008-04-18T14:04:36.293-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="4Gb"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="udf"/><title type='text'>Запись больше 4Gb-1 на DVD</title><content type='html'>В свое время безуспешно искал сабж в интернете.&lt;br /&gt;&lt;br /&gt;Ставим udftools,dvd+rw-tools, затем:&lt;div style=&quot;margin:20px; margin-top:5px&quot;;&gt;&lt;div style=&quot;margin-bottom:2px&quot;;&gt;&lt;font size=&quot;1&quot;&gt;Код:&lt;/font&gt;&lt;/div&gt;&lt;pre style=&quot;margin:0px; padding:6px; border:1px inset; width:auto; height:auto; overflow:auto; background: #f1f1f1&quot;;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align:left;&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;growisofs -iso-level 3 -J -udf -r -allow-limited-size -speed=12 -V [disk _name=&quot;&quot;]&gt; -Z /dev/dvdrw [file]&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;-udf и -allow-limited-size в любом случае, остальное опционально</content><link rel='replies' type='application/atom+xml' href='http://devexmem.blogspot.com/feeds/8335797473096722632/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/75652346438748699/8335797473096722632' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/8335797473096722632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/75652346438748699/posts/default/8335797473096722632'/><link rel='alternate' type='text/html' href='http://devexmem.blogspot.com/2008/03/4gb-1-dvd.html' title='Запись больше 4Gb-1 на DVD'/><author><name>pigritor</name><uri>http://www.blogger.com/profile/01956224295416185953</uri><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>