mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-07-15 06:05:47 +00:00
massive removal of aligning (since it has been added to css)
This commit is contained in:
@ -8,16 +8,16 @@ short: about-zshrc
|
||||
description: It is first paper in my blog (I think I need something here for tests =)). There are many similar articles, and I'll not be an exception. I just want to show my <code>.zshrc</code> and explain what it does and why it is needed. Also any comments or additions are welcome. It is a translated paper from Russian (<a href="http://archlinux.org.ru/forum/topic/12752/">original</a>).
|
||||
---
|
||||
<h2><a name="prepare" class="anchor" href="#prepare"><span class="octicon octicon-link"></span></a>Prepare</h2>
|
||||
<p align="justify">First install recommended minima:</p>
|
||||
<p>First install recommended minima:</p>
|
||||
{% highlight bash %}
|
||||
pacman -Sy pkgfile zsh zsh-completions zsh-syntax-highlighting
|
||||
{% endhighlight %}
|
||||
<p align="justify"><a href="https://www.archlinux.org/packages/pkgfile/">pkgfile</a> is a very useful utility. Also this command will install shell, additional completion and syntax highlighting.</p>
|
||||
<p><a href="https://www.archlinux.org/packages/pkgfile/">pkgfile</a> is a very useful utility. Also this command will install shell, additional completion and syntax highlighting.</p>
|
||||
|
||||
<h2><a name="configuration" class="anchor" href="#configuration"><span class="octicon octicon-link"></span></a>Shell configuration</h2>
|
||||
<p align="justify">All options are avaible <a href="http://zsh.sourceforge.net/Doc/Release/Options.html">here</a>.</p>
|
||||
<p>All options are avaible <a href="http://zsh.sourceforge.net/Doc/Release/Options.html">here</a>.</p>
|
||||
|
||||
<p align="justify">Set history file and number of commands in cache of the current session and in the history file:</p>
|
||||
<p>Set history file and number of commands in cache of the current session and in the history file:</p>
|
||||
{% highlight bash %}
|
||||
# history
|
||||
HISTFILE=~/.zsh_history
|
||||
@ -25,7 +25,7 @@ HISTSIZE=500000
|
||||
SAVEHIST=500000
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">I can not remember all <code>Ctrl+</code> combinations so I bind keys to its default usages:</p>
|
||||
<p>I can not remember all <code>Ctrl+</code> combinations so I bind keys to its default usages:</p>
|
||||
{% highlight bash %}
|
||||
# bindkeys
|
||||
bindkey '^[[A' up-line-or-search # up arrow for back-history-search
|
||||
@ -37,9 +37,9 @@ bindkey '\e[4~' end-of-line # end
|
||||
bindkey '\e[5~' up-line-or-history # page-up
|
||||
bindkey '\e[6~' down-line-or-history # page-down
|
||||
{% endhighlight %}
|
||||
<p align="justify">But in this case <code>Up</code>/<code>Down</code> arrows are used to navigate through the history based on <b>already entered part</b> of a command. And <code>PgUp</code>/<code>PgDown</code> <b>will ignore</b> already entered part of a command.</p>
|
||||
<p>But in this case <code>Up</code>/<code>Down</code> arrows are used to navigate through the history based on <b>already entered part</b> of a command. And <code>PgUp</code>/<code>PgDown</code> <b>will ignore</b> already entered part of a command.</p>
|
||||
|
||||
<p align="justify">Command autocomplete:</p>
|
||||
<p>Command autocomplete:</p>
|
||||
{% highlight bash %}
|
||||
# autocomplete
|
||||
autoload -U compinit
|
||||
@ -47,65 +47,65 @@ compinit
|
||||
zstyle ':completion:*' insert-tab false
|
||||
zstyle ':completion:*' max-errors 2
|
||||
{% endhighlight %}
|
||||
<p align="justify">Full command autocomplete will be enabled. <code>insert-tab false</code> will enable autocomplete for <b>non-entered</b> commands. <code>max-errors</code> sets maximum number of errors that could be corrected.</p>
|
||||
<p>Full command autocomplete will be enabled. <code>insert-tab false</code> will enable autocomplete for <b>non-entered</b> commands. <code>max-errors</code> sets maximum number of errors that could be corrected.</p>
|
||||
|
||||
<p align="justify">Prompt:</p>
|
||||
<p>Prompt:</p>
|
||||
{% highlight bash %}
|
||||
# promptinit
|
||||
autoload -U promptinit
|
||||
promptinit
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Enable colors:</p>
|
||||
<p>Enable colors:</p>
|
||||
{% highlight bash %}
|
||||
# colors
|
||||
autoload -U colors
|
||||
colors
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here are some other options.</p>
|
||||
<p align="justify">Change directory without <code>cd</code>:</p>
|
||||
<p>Here are some other options.</p>
|
||||
<p>Change directory without <code>cd</code>:</p>
|
||||
{% highlight bash %}
|
||||
# autocd
|
||||
setopt autocd
|
||||
{% endhighlight %}
|
||||
<p align="justify">Correcting of typos (and question template):</p>
|
||||
<p>Correcting of typos (and question template):</p>
|
||||
{% highlight bash %}
|
||||
# correct
|
||||
setopt CORRECT_ALL
|
||||
SPROMPT="Correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) "
|
||||
{% endhighlight %}
|
||||
<p align="justify">Disable f#$%ing beep:</p>
|
||||
<p>Disable f#$%ing beep:</p>
|
||||
{% highlight bash %}
|
||||
# disable beeps
|
||||
unsetopt beep
|
||||
{% endhighlight %}
|
||||
<p align="justify">Enable calculator:</p>
|
||||
<p>Enable calculator:</p>
|
||||
{% highlight bash %}
|
||||
# calc
|
||||
autoload zcalc
|
||||
{% endhighlight %}
|
||||
<p align="justify">Append history (<b>do not recreate</b> the history file):</p>
|
||||
<p>Append history (<b>do not recreate</b> the history file):</p>
|
||||
{% highlight bash %}
|
||||
# append history
|
||||
setopt APPEND_HISTORY
|
||||
{% endhighlight %}
|
||||
<p align="justify">Do not save dups to history file:</p>
|
||||
<p>Do not save dups to history file:</p>
|
||||
{% highlight bash %}
|
||||
# ignore spaces in history
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
{% endhighlight %}
|
||||
<p align="justify">...and additional spaces:</p>
|
||||
<p>...and additional spaces:</p>
|
||||
{% highlight bash %}
|
||||
# ignore dups in history
|
||||
setopt HIST_IGNORE_SPACE
|
||||
{% endhighlight %}
|
||||
<p align="justify">...and blank lines too:</p>
|
||||
<p>...and blank lines too:</p>
|
||||
{% highlight bash %}
|
||||
# reduce blanks in history
|
||||
setopt HIST_REDUCE_BLANKS
|
||||
{% endhighlight %}
|
||||
<p align="justify">Enable <code>pkgfile</code>:</p>
|
||||
<p>Enable <code>pkgfile</code>:</p>
|
||||
{% highlight bash %}
|
||||
# pkgfile
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
@ -158,10 +158,10 @@ ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=yellow'
|
||||
# root example
|
||||
#ZSH_HIGHLIGHT_STYLES[root]='bg=red'
|
||||
{% endhighlight %}
|
||||
<p align="justify">In first line highlighting is turned on. Next main, brackets and pattern highlighting are turned on. Patterns are set below (<code>rm -rf *</code> in the example). Also <code>root</code> and <code>cursor</code> highlighting may be turned on. Colors syntax is understandable, <code>fg</code> is font color, <code>bg</code> is background color.</p>
|
||||
<p>In first line highlighting is turned on. Next main, brackets and pattern highlighting are turned on. Patterns are set below (<code>rm -rf *</code> in the example). Also <code>root</code> and <code>cursor</code> highlighting may be turned on. Colors syntax is understandable, <code>fg</code> is font color, <code>bg</code> is background color.</p>
|
||||
|
||||
<h2><a name="prompt" class="anchor" href="#prompt"><span class="octicon octicon-link"></span></a>$PROMPT and $RPROMPT</h2>
|
||||
<p align="justify">The general idea is the use single <code>.zshrc</code> for root and normal user:</p>
|
||||
<p>The general idea is the use single <code>.zshrc</code> for root and normal user:</p>
|
||||
{% highlight bash %}
|
||||
# PROMPT && RPROMPT
|
||||
if [[ $EUID == 0 ]]; then
|
||||
@ -183,7 +183,7 @@ else
|
||||
fi
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify"><code>fg</code> is font color, <code>bg</code> is background color. <code>_bold</code> and <code>_no_bold</code> regulate the tint. Commands should be in <code>%{ ... %}</code> so they do not appear. Avaible colors are:</p>
|
||||
<p><code>fg</code> is font color, <code>bg</code> is background color. <code>_bold</code> and <code>_no_bold</code> regulate the tint. Commands should be in <code>%{ ... %}</code> so they do not appear. Avaible colors are:</p>
|
||||
{% highlight bash %}
|
||||
black
|
||||
red
|
||||
@ -195,7 +195,7 @@ cyan
|
||||
white
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Avaible variables are:</p>
|
||||
<p>Avaible variables are:</p>
|
||||
{% highlight bash %}
|
||||
%n - the username
|
||||
%m - the computer's hostname (truncated to the first period)
|
||||
@ -211,7 +211,7 @@ white
|
||||
%1/ - the same as %d but only last directory
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">RPROMPT (<code>acpi</code> package is necessary):</p>
|
||||
<p>RPROMPT (<code>acpi</code> package is necessary):</p>
|
||||
{% highlight bash %}
|
||||
precmd () {
|
||||
# battery charge
|
||||
@ -236,12 +236,12 @@ $(batcharge)\
|
||||
$returncode\
|
||||
"%{$fg_bold[white]%}]%{$reset_color%}"
|
||||
{% endhighlight %}
|
||||
<p align="justify">My RPROMPT shows current time, battery change and last returned code. <code>precmd()</code> is necessary for automatic updating. The construct <code>$(if.true.false)</code> is conditional statement in <code>zsh</code>.</p>
|
||||
<p>My RPROMPT shows current time, battery change and last returned code. <code>precmd()</code> is necessary for automatic updating. The construct <code>$(if.true.false)</code> is conditional statement in <code>zsh</code>.</p>
|
||||
|
||||
<h2><a name="aliases" class="anchor" href="#aliases"><span class="octicon octicon-link"></span></a>Aliases</h2>
|
||||
<p align="justify"><b>Copy only those aliases that you need.</b> If any alias uses application that is not installed it will leads to fail of loading of configuration file.</p>
|
||||
<p><b>Copy only those aliases that you need.</b> If any alias uses application that is not installed it will leads to fail of loading of configuration file.</p>
|
||||
|
||||
<p align="justify">Small useful (or maybe not) function:</p>
|
||||
<p>Small useful (or maybe not) function:</p>
|
||||
{% highlight bash %}
|
||||
show_which() {
|
||||
OUTPUT=$(which $1 | cut -d " " -f7-)
|
||||
@ -249,7 +249,7 @@ show_which() {
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here is the first group of aliases:</p>
|
||||
<p>Here is the first group of aliases:</p>
|
||||
{% highlight bash %}
|
||||
## alias
|
||||
# colored grep
|
||||
@ -268,7 +268,7 @@ alias less='vimpager'
|
||||
alias zless='vimpager'
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here are ls aliases (see <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?ls">man ls</a>):</p>
|
||||
<p>Here are ls aliases (see <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?ls">man ls</a>):</p>
|
||||
{% highlight bash %}
|
||||
alias ls='show_which ls && ls --color=auto --group-directories-first'
|
||||
alias ll='show_which ll && ls -l --human-readable'
|
||||
@ -280,7 +280,7 @@ alias lt='show_which lt && ll -t --reverse'
|
||||
alias lm='show_which lm && la | more'
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here are aliases to quick file view from console (just type a file name!):</p>
|
||||
<p>Here are aliases to quick file view from console (just type a file name!):</p>
|
||||
{% highlight bash %}
|
||||
# alias -s
|
||||
alias -s {avi,mpeg,mpg,mov,m2v,mkv}=mpv
|
||||
@ -291,7 +291,7 @@ autoload -U pick-web-browser
|
||||
alias -s {html,htm}=opera
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here are "sudo" aliases:</p>
|
||||
<p>Here are "sudo" aliases:</p>
|
||||
{% highlight bash %}
|
||||
# sudo alias
|
||||
if [[ $EUID == 0 ]]; then
|
||||
@ -314,7 +314,7 @@ else
|
||||
fi
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here are global aliases. If they are enable the command <code>cat foo g bar</code> will be equivalent the command <code>cat foo | grep bar</code>:</p>
|
||||
<p>Here are global aliases. If they are enable the command <code>cat foo g bar</code> will be equivalent the command <code>cat foo | grep bar</code>:</p>
|
||||
{% highlight bash %}
|
||||
# global alias
|
||||
alias -g g="| grep"
|
||||
@ -325,7 +325,7 @@ alias -g dn="&> /dev/null &"
|
||||
{% endhighlight %}
|
||||
|
||||
<h2><a name="functions" class="anchor" href="#functions"><span class="octicon octicon-link"></span></a>Functions</h2>
|
||||
<p align="justify">Here is a special function for <code>xrandr</code>:</p>
|
||||
<p>Here is a special function for <code>xrandr</code>:</p>
|
||||
|
||||
{% highlight bash %}
|
||||
# function to contorl xrandr
|
||||
@ -350,7 +350,7 @@ projctl () {
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Unfortunately I can not remember <code>tar</code> flags thus I use special functions:</p>
|
||||
<p>Unfortunately I can not remember <code>tar</code> flags thus I use special functions:</p>
|
||||
{% highlight bash %}
|
||||
# function to extract archives
|
||||
# EXAMPLE: unpack file
|
||||
@ -403,7 +403,7 @@ pack () {
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here is a special function for <code>su</code>:</p>
|
||||
<p>Here is a special function for <code>su</code>:</p>
|
||||
{% highlight bash %}
|
||||
su () {
|
||||
CHECKSU=0
|
||||
@ -421,7 +421,7 @@ su () {
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Function that replaces original <code>rm</code> command. If you type <code>rm</code> it will be equivalent moving to trash an you can easily restore a file:</p>
|
||||
<p>Function that replaces original <code>rm</code> command. If you type <code>rm</code> it will be equivalent moving to trash an you can easily restore a file:</p>
|
||||
{% highlight bash %}
|
||||
rm () {
|
||||
# error check
|
||||
@ -464,7 +464,7 @@ rm () {
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Functions with automatic rehash after installing/removing packages are:</p>
|
||||
<p>Functions with automatic rehash after installing/removing packages are:</p>
|
||||
{% highlight bash %}
|
||||
pacman () {
|
||||
/usr/bin/sudo /usr/bin/pacman $* && echo "$*" | grep -q "S\|R\|U" && rehash
|
||||
@ -477,12 +477,12 @@ yatest () {
|
||||
/usr/bin/yaourt --config /etc/pactest.conf $* && echo "$*" | grep -q "S\|R\|U" && rehash
|
||||
}
|
||||
{% endhighlight %}
|
||||
<p align="justify">But autocomplete for <code>yaourt -Ss</code> <a href="https://github.com/zsh-users/zsh-completions/pull/205">will require</a> root privileges.</p>
|
||||
<p>But autocomplete for <code>yaourt -Ss</code> <a href="https://github.com/zsh-users/zsh-completions/pull/205">will require</a> root privileges.</p>
|
||||
|
||||
<h2><a name="variables" class="anchor" href="#variables"><span class="octicon octicon-link"></span></a>Variables</h2>
|
||||
<p align="justify">It is recommended to set own variables in <code>~/.zshenv</code>. But I have everything stored in the single file.</p>
|
||||
<p>It is recommended to set own variables in <code>~/.zshenv</code>. But I have everything stored in the single file.</p>
|
||||
|
||||
<p align="justify">Here are path, mask of new files, editor and pager:</p>
|
||||
<p>Here are path, mask of new files, editor and pager:</p>
|
||||
{% highlight bash %}
|
||||
# path
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
@ -493,7 +493,7 @@ export EDITOR="vim"
|
||||
export PAGER="vimpager"
|
||||
{% endhighlight %}
|
||||
|
||||
<p align="justify">Here is hashes. If they are enable the command <code>~global</code> will be equivalent the command <code>/mnt/global</code>:</p>
|
||||
<p>Here is hashes. If they are enable the command <code>~global</code> will be equivalent the command <code>/mnt/global</code>:</p>
|
||||
{% highlight bash %}
|
||||
# hash
|
||||
hash -d global=/mnt/global
|
||||
@ -504,7 +504,7 @@ hash -d u2=/mnt/usbdev
|
||||
{% endhighlight %}
|
||||
|
||||
<h2><a name="screenshot" class="anchor" href="#screenshot"><span class="octicon octicon-link"></span></a>Screenshot</h2>
|
||||
<p align="justify"><a href="/resources/screenshots/zshrc_demo.png"><img src="/resources/preview/zshrc_demo_prev.jpg"></a></p>
|
||||
<p><a href="/resources/screenshots/zshrc_demo.png"><img src="/resources/preview/zshrc_demo_prev.jpg"></a></p>
|
||||
|
||||
<h2><a name="file" class="anchor" href="#file"><span class="octicon octicon-link"></span></a>File</h2>
|
||||
<p align="justify"><a href="https://raw.github.com/arcan1s/dotfiles/master/zshrc">Here is</a> my <code>.zshrc</code>.</p>
|
||||
<p><a href="https://raw.github.com/arcan1s/dotfiles/master/zshrc">Here is</a> my <code>.zshrc</code>.</p>
|
||||
|
@ -8,27 +8,27 @@ short: building-qutim-using-qt5
|
||||
description: <a href="http://qutim.org">Qutim</a> is a multiprotocol and cross platform messenger. It is written on <code>CPP</code> using Qt library. The project is actively developed. In this paper I will say about building this package in Archlinux using Qt5 library (instead of Qt4 which is used in current AUR packages).
|
||||
---
|
||||
<h2><a name="problems" class="anchor" href="#problems"><span class="octicon octicon-link"></span></a>What's wrong?</h2>
|
||||
<p align="justify">This package uses <a href="http://qt-project.org/wiki/qbs">qbs</a> for building, which is a bit strange IMHO. A package, which is necessary for building, is <a href="https://aur.archlinux.org/packages/qbs-git/">in AUR </a>. I recommend to use git version of the package. When I asked Andrea Scarpino (who maintains KDE and Qt packages into the official repos) about qbs, he told me "we will support it in time". And I agree with him, the project seems to be a little unstable.</p>
|
||||
<p>This package uses <a href="http://qt-project.org/wiki/qbs">qbs</a> for building, which is a bit strange IMHO. A package, which is necessary for building, is <a href="https://aur.archlinux.org/packages/qbs-git/">in AUR </a>. I recommend to use git version of the package. When I asked Andrea Scarpino (who maintains KDE and Qt packages into the official repos) about qbs, he told me "we will support it in time". And I agree with him, the project seems to be a little unstable.</p>
|
||||
|
||||
<h2><a name="prepare" class="anchor" href="#prepare"><span class="octicon octicon-link"></span></a>Prepare</h2>
|
||||
<p align="justify">Install dependences. I had used <code>namcap</code>, so maybe I missed something:</p>
|
||||
<p>Install dependences. I had used <code>namcap</code>, so maybe I missed something:</p>
|
||||
{% highlight bash %}
|
||||
pacman -Sy --asdeps clang git libc++abi qt5-quick1 qt5-x11extras
|
||||
yaourt -S --asdeps jreen-git qbs-git
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><a name="qbs" class="anchor" href="#qbs"><span class="octicon octicon-link"></span></a>qbs settings</h3>
|
||||
<p align="justify">You may read about qbs <a href="http://qt-project.org/wiki/qbs">on the link</a> or see examples which are provides by the package. qbs uses configuration file that firstly you must create and secondly it is stored in your home directory. In theory a configuration file creating ((<code>~/.config/QtProject/qbs.conf</code>)) looks like this:</p>
|
||||
<p>You may read about qbs <a href="http://qt-project.org/wiki/qbs">on the link</a> or see examples which are provides by the package. qbs uses configuration file that firstly you must create and secondly it is stored in your home directory. In theory a configuration file creating ((<code>~/.config/QtProject/qbs.conf</code>)) looks like this:</p>
|
||||
{% highlight bash %}
|
||||
qbs-setup-qt --detect
|
||||
qbs-detect-toolchains
|
||||
{% endhighlight %}
|
||||
<p align="justify">Firstly we find Qt libraries. Then we find toolchains (such as compilers). And next we must insert a toolchain into Qt profile (for example, we need <code>clang</code> toolchain):</p>
|
||||
<p>Firstly we find Qt libraries. Then we find toolchains (such as compilers). And next we must insert a toolchain into Qt profile (for example, we need <code>clang</code> toolchain):</p>
|
||||
{% highlight bash %}
|
||||
sed 's/clang\\/qt-5-2-0\\/g' -i ~/.config/QtProject/qbs.conf
|
||||
{% endhighlight %}
|
||||
<p align="justify">And there are other ways. You may edit the file manually or use <code>qbs-config-ui</code> or <code>qbs-config</code>.</p>
|
||||
<p align="justify">So, we have created the configuration file and put it into build directory:</p>
|
||||
<p>And there are other ways. You may edit the file manually or use <code>qbs-config-ui</code> or <code>qbs-config</code>.</p>
|
||||
<p>So, we have created the configuration file and put it into build directory:</p>
|
||||
{% highlight ini %}
|
||||
[General]
|
||||
|
||||
@ -64,10 +64,10 @@ qutim\qbs\architecture=x86_64
|
||||
qutim\qbs\endianness=little
|
||||
qutim\qbs\toolchain=clang, llvm, gcc
|
||||
{% endhighlight %}
|
||||
<p align="justify"><a href="/resources/docs/qutim-qt5-git/qbs-qutim.conf">qbs-qutim.conf</a></p>
|
||||
<p><a href="/resources/docs/qutim-qt5-git/qbs-qutim.conf">qbs-qutim.conf</a></p>
|
||||
|
||||
<h3><a name="patch" class="anchor" href="#patch"><span class="octicon octicon-link"></span></a>Patch for sources</h3>
|
||||
<p align="justify">The first problem is <code>clang</code> (at least in Archlinux):</p>
|
||||
<p>The first problem is <code>clang</code> (at least in Archlinux):</p>
|
||||
{% highlight diff %}
|
||||
diff -ruN qutim.orig/core/libqutim.qbs qutim/core/libqutim.qbs
|
||||
--- qutim.orig/core/libqutim.qbs 2014-01-06 15:39:56.000000000 +0400
|
||||
@ -82,7 +82,7 @@ diff -ruN qutim.orig/core/libqutim.qbs qutim/core/libqutim.qbs
|
||||
}
|
||||
|
||||
{% endhighlight %}
|
||||
<p align="justify">And the second one is Vk plugin:</p>
|
||||
<p>And the second one is Vk plugin:</p>
|
||||
{% highlight diff %}
|
||||
diff -ruN qutim.orig/protocols/vkontakte/vreen/vreen.qbs qutim/protocols/vkontakte/vreen/vreen.qbs
|
||||
--- qutim.orig/protocols/vkontakte/vreen/vreen.qbs 2014-01-06 15:41:42.000000000 +0400
|
||||
@ -96,7 +96,7 @@ diff -ruN qutim.orig/protocols/vkontakte/vreen/vreen.qbs qutim/protocols/vkontak
|
||||
property string vreen_version_major: 1
|
||||
property string vreen_version_minor: 9
|
||||
{% endhighlight %}
|
||||
<p align="justify"><a href="/resources/docs/qutim-qt5-git/qutim-qbs-1.1.patch">qutim-qbs-1.1.patch</a></p>
|
||||
<p><a href="/resources/docs/qutim-qt5-git/qutim-qbs-1.1.patch">qutim-qbs-1.1.patch</a></p>
|
||||
|
||||
<h3><a name="sources" class="anchor" href="#sources"><span class="octicon octicon-link"></span></a>Get sources</h3>
|
||||
{% highlight bash %}
|
||||
@ -120,13 +120,13 @@ patch -p0 -i qutim-qbs-1.1.patch
|
||||
cd qutim
|
||||
HOME=$(pwd) qbs -j $(nproc) -d ../build release profile:qutim
|
||||
{% endhighlight %}
|
||||
<p align="justify">I want to create a universal recipe for the building, thus we must set <code>$HOME</code> directory. Flag <code>-j</code> means number of jobs, <code>-d</code> means build directory, <code>release</code> means building type (debug, release), <code>profile</code> is used profile, which is described in the configuration file.</p>
|
||||
<p>I want to create a universal recipe for the building, thus we must set <code>$HOME</code> directory. Flag <code>-j</code> means number of jobs, <code>-d</code> means build directory, <code>release</code> means building type (debug, release), <code>profile</code> is used profile, which is described in the configuration file.</p>
|
||||
|
||||
<h2><a name="install" class="anchor" href="#install"><span class="octicon octicon-link"></span></a>Installation</h2>
|
||||
{% highlight bash %}
|
||||
HOME=$(pwd) sudo qbs install -d ../build --install-root "/usr" profile:qutim
|
||||
{% endhighlight %}
|
||||
<p align="justify">We must set root directory (<code>--install-root</code>), because without this option the package will be installed into <code>/</code> (<code>/bin</code> and <code>/lib</code>).</p>
|
||||
<p>We must set root directory (<code>--install-root</code>), because without this option the package will be installed into <code>/</code> (<code>/bin</code> and <code>/lib</code>).</p>
|
||||
|
||||
<h2><a name="pkgbuild" class="anchor" href="#pkgbuild"><span class="octicon octicon-link"></span></a>PKGBUILD</h2>
|
||||
{% highlight bash %}
|
||||
@ -181,4 +181,4 @@ package() {
|
||||
HOME="${srcdir}" qbs install -d ../build --install-root "${pkgdir}/usr" profile:qutim
|
||||
}
|
||||
{% endhighlight %}
|
||||
<p align="justify"><a href="/resources/docs/qutim-qt5-git/PKGBUILD">PKGBUILD</a></p>
|
||||
<p><a href="/resources/docs/qutim-qt5-git/PKGBUILD">PKGBUILD</a></p>
|
||||
|
@ -8,12 +8,12 @@ short: creating-custom-repo
|
||||
description: It is a short paper devoted to creation own ArchLinux repository.
|
||||
---
|
||||
<h2><a name="prepare" class="anchor" href="#prepare"><span class="octicon octicon-link"></span></a>Prepare</h2>
|
||||
<p align="justify">First find a server and desire to have sex with it. It is recommended to use Archlinux on it, but it is not necessarily - because you may create special root for Archlinux. Also you need two packages, <code>devtools</code> and <code>pacman</code>:</p>
|
||||
<p>First find a server and desire to have sex with it. It is recommended to use Archlinux on it, but it is not necessarily - because you may create special root for Archlinux. Also you need two packages, <code>devtools</code> and <code>pacman</code>:</p>
|
||||
{% highlight bash %}
|
||||
pacman -Sy devtools
|
||||
{% endhighlight %}
|
||||
<p align="justify"><a href="https://www.archlinux.org/packages/devtools/">devtools</a> is script set for building automation in the clean chroot. I think most of Arch maintainers use it.</p>
|
||||
<p align="justify">Let's create working directories and set colors:</p>
|
||||
<p><a href="https://www.archlinux.org/packages/devtools/">devtools</a> is script set for building automation in the clean chroot. I think most of Arch maintainers use it.</p>
|
||||
<p>Let's create working directories and set colors:</p>
|
||||
{% highlight bash %}
|
||||
# colors
|
||||
if [ ${USECOLOR} == "yes" ]; then
|
||||
@ -49,11 +49,11 @@ if [ ! -d "${STAGINGDIR}" ]; then
|
||||
mkdir -p "${STAGINGDIR}" || error_mes "unknown"
|
||||
fi
|
||||
{% endhighlight %}
|
||||
<p align="justify"><code>${REPODIR}/{i686,x86_64}</code> are directories for repository, <code>${PREPAREDIR}</code> is directory where compiled packages will be stored, <code>${STAGINGDIR}</code> is one where packages will be built.</p>
|
||||
<p><code>${REPODIR}/{i686,x86_64}</code> are directories for repository, <code>${PREPAREDIR}</code> is directory where compiled packages will be stored, <code>${STAGINGDIR}</code> is one where packages will be built.</p>
|
||||
|
||||
<h2><a name="theory" class="anchor" href="#theory"><span class="octicon octicon-link"></span></a>A bit of theory</h2>
|
||||
<p align="justify">Create directory, share it (using <a href="/2014/03/06/site-changes/">ftp</a>, for example). It has two subdirectories - <code>i686</code> and <code>x86_64</code> - for each architecture respectively. And fill them with a set of packages.</p>
|
||||
<p align="justify">Updating repository may be split into the following steps:</p>
|
||||
<p>Create directory, share it (using <a href="/2014/03/06/site-changes/">ftp</a>, for example). It has two subdirectories - <code>i686</code> and <code>x86_64</code> - for each architecture respectively. And fill them with a set of packages.</p>
|
||||
<p>Updating repository may be split into the following steps:</p>
|
||||
<ol>
|
||||
<li>Creating PKGBUILDs (or updating them from AUR).</li>
|
||||
<li>Packages building for each architecture in clean chroot.</li>
|
||||
@ -68,14 +68,14 @@ fi
|
||||
</ol>
|
||||
|
||||
<h3><a name="pkgbuild" class="anchor" href="#pkgbuild"><span class="octicon octicon-link"></span></a>Creating PKGBUILDs</h3>
|
||||
<p align="justify">Download source tarballs from AUR:</p>
|
||||
<p>Download source tarballs from AUR:</p>
|
||||
{% highlight bash %}
|
||||
cd "${STAGINGDIR}"
|
||||
yaourt -G package-name
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><a name="building" class="anchor" href="#building"><span class="octicon octicon-link"></span></a>Packages building</h3>
|
||||
<p align="justify">Build each package automatically:</p>
|
||||
<p>Build each package automatically:</p>
|
||||
{% highlight bash %}
|
||||
func_build() {
|
||||
if [ ${USECOLOR} == "yes" ]; then
|
||||
@ -113,7 +113,7 @@ echo -e "${bwhite}[II]${cclose} Building packages"
|
||||
cd "${STAGINGDIR}"
|
||||
/usr/bin/find -name 'PKGBUILD' -type f -execdir /usr/bin/bash -c "func_build "${PREPAREDIR}" "${ROOTDIR}"" \;
|
||||
{% endhighlight %}
|
||||
<p align="justify">It is recommended to add the following lines to <code>/etc/sudoers</code>:</p>
|
||||
<p>It is recommended to add the following lines to <code>/etc/sudoers</code>:</p>
|
||||
{% highlight bash %}
|
||||
username ALL=NOPASSWD: /usr/bin/staging-i686-build
|
||||
username ALL=NOPASSWD: /usr/bin/staging-x86_64-build
|
||||
@ -131,7 +131,7 @@ if [ ${USEGPG} == "yes" ]; then
|
||||
done
|
||||
fi
|
||||
{% endhighlight %}
|
||||
<p align="justify">It is recommended to configure <a href="https://wiki.archlinux.org/index.php/GPG#gpg-agent">gpg-agent</a>.</p>
|
||||
<p>It is recommended to configure <a href="https://wiki.archlinux.org/index.php/GPG#gpg-agent">gpg-agent</a>.</p>
|
||||
|
||||
<h3><a name="list" class="anchor" href="#list"><span class="octicon octicon-link"></span></a>Creating the list of packages</h3>
|
||||
{% highlight bash %}
|
||||
@ -144,14 +144,14 @@ echo -e "${bwhite}[II] ${bblue}=>${cclose} x86_64 packages: \n${bwhite}${x86_64_
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><a name="updating" class="anchor" href="#updating"><span class="octicon octicon-link"></span></a>Repository update</h3>
|
||||
<p align="justify">Here is a function for removal packages from database and repository:</p>
|
||||
<p>Here is a function for removal packages from database and repository:</p>
|
||||
{% highlight bash %}
|
||||
func_remove() {
|
||||
_PACKAGE="$1"
|
||||
/usr/bin/rm -f "${_PACKAGE}"{,.sig}
|
||||
}
|
||||
{% endhighlight %}
|
||||
<p align="justify"><code>i686</code> repository update:</p>
|
||||
<p><code>i686</code> repository update:</p>
|
||||
{% highlight bash %}
|
||||
# updating i686 repo
|
||||
echo -e "${bwhite}[II]${cclose} Updating ${bwhite}i686${cclose} repo"
|
||||
@ -168,7 +168,7 @@ for PACKAGE in ${i686_PACKAGES}; do
|
||||
/usr/bin/repo-add --files ${DBNAME}.files.tar.gz "${PACKAGE}"
|
||||
done
|
||||
{% endhighlight %}
|
||||
<p align="justify"><code>x86_64</code> repository update:</p>
|
||||
<p><code>x86_64</code> repository update:</p>
|
||||
{% highlight bash %}
|
||||
# updating x86_64 repo
|
||||
echo -e "${bwhite}[II]${cclose} Updating ${bwhite}x86_64${cclose} repo"
|
||||
@ -196,7 +196,7 @@ cd "${STAGINGDIR}"
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><a name="symlinks" class="anchor" href="#symlinks"><span class="octicon octicon-link"></span></a>Creating symlinks</h3>
|
||||
<p align="justify">You may want to create a directory, which will contain symlinks on actual packages with names, which does not contain version:</p>
|
||||
<p>You may want to create a directory, which will contain symlinks on actual packages with names, which does not contain version:</p>
|
||||
{% highlight bash %}
|
||||
# creating symlinks
|
||||
if [ ${SYMLINK} == "yes" ]; then
|
||||
@ -219,10 +219,10 @@ fi
|
||||
{% endhighlight %}
|
||||
|
||||
<h3><a name="file" class="anchor" href="#file"><span class="octicon octicon-link"></span></a>File</h3>
|
||||
<p align="justify">Here is <a href="https://github.com/arcan1s/repo-scripts">the scripts</a>. Download source tarballs and run script (editing variables if it is necessary).</p>
|
||||
<p>Here is <a href="https://github.com/arcan1s/repo-scripts">the scripts</a>. Download source tarballs and run script (editing variables if it is necessary).</p>
|
||||
|
||||
<h2><a name="using" class="anchor" href="#using"><span class="octicon octicon-link"></span></a>Repository usage</h2>
|
||||
<p align="justify">Just add following lines to <code>/etc/pacman.conf</code>:</p>
|
||||
<p>Just add following lines to <code>/etc/pacman.conf</code>:</p>
|
||||
{% highlight bash %}
|
||||
[$REPONAME]
|
||||
Server = ftp://$REPOADDRESS/repo/$arch
|
||||
|
@ -8,25 +8,25 @@ short: loveless
|
||||
description: Here is a small poem from Final Fantasy VII Crisis Core.
|
||||
---
|
||||
<h2><a name="prologue" class="anchor" href="#prologue"><span class="octicon octicon-link"></span></a>Prologue</h2>
|
||||
<p align="justify">
|
||||
<p>
|
||||
When the war of the beasts brings about the world's end<br>
|
||||
The goddess descends from the sky<br>
|
||||
Wings of light and dark spread afar<br>
|
||||
She guides us to bliss, her gift everlasting.</p>
|
||||
<h2><a name="acti" class="anchor" href="#acti"><span class="octicon octicon-link"></span></a>Act I</h2>
|
||||
<p align="justify">Infinite in mystery is the gift of the Goddess<br>
|
||||
<p>Infinite in mystery is the gift of the Goddess<br>
|
||||
We seek it thus, and take to the sky<br>
|
||||
Ripples form on the water's surface<br>
|
||||
The wandering soul knows no rest.</p>
|
||||
<h2><a name="actii" class="anchor" href="#actii"><span class="octicon octicon-link"></span></a>Act II</h2>
|
||||
<p align="justify">There is no hate, only joy<br>
|
||||
<p>There is no hate, only joy<br>
|
||||
For you are beloved by the goddess<br>
|
||||
Hero of the dawn, Healer of worlds<br>
|
||||
Dreams of the morrow hath the shattered soul<br>
|
||||
Pride is lost<br>
|
||||
Wings stripped away, the end is nigh.</p>
|
||||
<h2><a name="actiii" class="anchor" href="#actiii"><span class="octicon octicon-link"></span></a>Act III</h2>
|
||||
<p align="justify">My friend, do you fly away now?<br>
|
||||
<p>My friend, do you fly away now?<br>
|
||||
To a world that abhors you and I?<br>
|
||||
All that awaits you is a somber morrow<br>
|
||||
No matter where the winds may blow<br>
|
||||
@ -35,7 +35,7 @@ Is the bringer of life, the gift of the goddess<br>
|
||||
Even if the morrow is barren of promises<br>
|
||||
Nothing shall forestall my return.</p>
|
||||
<h2><a name="activ" class="anchor" href="#activ"><span class="octicon octicon-link"></span></a>Act IV</h2>
|
||||
<p align="justify">My friend, the fates are cruel<br>
|
||||
<p>My friend, the fates are cruel<br>
|
||||
There are no dreams, no honor remains<br>
|
||||
The arrow has left, the bow of the goddess<br>
|
||||
My soul, corrupted by vengeance<br>
|
||||
@ -46,7 +46,7 @@ Legend shall speak<br>
|
||||
Of sacrifice at world's end<br>
|
||||
The wind sails over the water's surface.</p>
|
||||
<h2><a name="actv" class="anchor" href="#actv"><span class="octicon octicon-link"></span></a>Act V</h2>
|
||||
<p align="justify">Even if the morrow is barren of promises<br>
|
||||
<p>Even if the morrow is barren of promises<br>
|
||||
Nothing shall forestall my return<br>
|
||||
To become the dew that quenches the land<br>
|
||||
To spare the sands, the seas, the skies<br>
|
||||
|
@ -9,70 +9,70 @@ description: Here is a short paper devoted to the set of applications and extens
|
||||
---
|
||||
<h2><a name="apps" class="anchor" href="#apps"><span class="octicon octicon-link"></span></a>Applications</h2>
|
||||
<ul>
|
||||
<li><p align="justify"><b>Shell</b> is zshrc and nothing else. You may find a small description of my settings <a href="/2014/01/14/about-zshrc/">here</a>. They are stored <a href="https://raw.githubusercontent.com/arcan1s/dotfiles/master/zshrc">here</a> (or <a href="https://raw.githubusercontent.com/arcan1s/dotfiles/master/zshrc_server">here</a>).</p></li>
|
||||
<li><p><b>Shell</b> is zshrc and nothing else. You may find a small description of my settings <a href="/2014/01/14/about-zshrc/">here</a>. They are stored <a href="https://raw.githubusercontent.com/arcan1s/dotfiles/master/zshrc">here</a> (or <a href="https://raw.githubusercontent.com/arcan1s/dotfiles/master/zshrc_server">here</a>).</p></li>
|
||||
|
||||
<li><p align="justify"><b>DE</b> - I use KDE as Desktop Environment. And that's why most of apps are qt-based. Some KDE settings are below.</p></li>
|
||||
<li><p><b>DE</b> - I use KDE as Desktop Environment. And that's why most of apps are qt-based. Some KDE settings are below.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Graphic editors</b> - <a href="http://kde.org/applications/graphics/gwenview/">gwenview</a> is used for viewing images, <a href="http://kde.org/applications/graphics/kolourpaint/">kolourpaint</a> is used for simple editing pixel images, <a href="http://www.gimp.org/">gimp</a> (without plugins, since they are not needed for me) - for editing and <a href="http://www.inkscape.org/">inkskape</a> is used as editor of vector graphics.</p></li>
|
||||
<li><p><b>Graphic editors</b> - <a href="http://kde.org/applications/graphics/gwenview/">gwenview</a> is used for viewing images, <a href="http://kde.org/applications/graphics/kolourpaint/">kolourpaint</a> is used for simple editing pixel images, <a href="http://www.gimp.org/">gimp</a> (without plugins, since they are not needed for me) - for editing and <a href="http://www.inkscape.org/">inkskape</a> is used as editor of vector graphics.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Browser</b> - I use Firefox. Some Firefox settings are below. Chromium is used as additional browser, elinks is used as console browser.</p></li>
|
||||
<li><p><b>Browser</b> - I use Firefox. Some Firefox settings are below. Chromium is used as additional browser, elinks is used as console browser.</p></li>
|
||||
|
||||
<li><p align="justify"><b>IM client</b> is <a href="http://qutim.org">qutIM</a>. It is a cross-platform, multiprotocol and full featured client. <a href="http://kde.org/applications/internet/kopete/">Kopete</a>, which I used before it, crashes, does not work correctly and does not work normally with codepage. Also I don't use a console client since I use a tablet IM. And I use Skype for skype obviously.</p></li>
|
||||
<li><p><b>IM client</b> is <a href="http://qutim.org">qutIM</a>. It is a cross-platform, multiprotocol and full featured client. <a href="http://kde.org/applications/internet/kopete/">Kopete</a>, which I used before it, crashes, does not work correctly and does not work normally with codepage. Also I don't use a console client since I use a tablet IM. And I use Skype for skype obviously.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Mail client</b> is <a href="http://kde.org/applications/internet/kmail/">kmail</a>. It is a full featured client (and I use most of them), looks pretty and it is easy to use. If it will be DE-undepended it will be better.</p></li>
|
||||
<li><p><b>Mail client</b> is <a href="http://kde.org/applications/internet/kmail/">kmail</a>. It is a full featured client (and I use most of them), looks pretty and it is easy to use. If it will be DE-undepended it will be better.</p></li>
|
||||
|
||||
<li><p align="justify"><b>IRC client</b> is <a href="http://konversation.kde.org/">konversation</a>. It is a simple IRC client. Though as far as I remember qutIM also supports IRC protocol, I prefre to use a special IRC client.</p></li>
|
||||
<li><p><b>IRC client</b> is <a href="http://konversation.kde.org/">konversation</a>. It is a simple IRC client. Though as far as I remember qutIM also supports IRC protocol, I prefre to use a special IRC client.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Torrent client</b> is <a href="http://www.transmissionbt.com/">transmission</a> with Qt5 interface (it has gtk interface too). It is also used for server but without GUI.</p></li>
|
||||
<li><p><b>Torrent client</b> is <a href="http://www.transmissionbt.com/">transmission</a> with Qt5 interface (it has gtk interface too). It is also used for server but without GUI.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Video player</b> is <a href="http://mpv.io/">mpv</a>, since mplayer died and mplayer2 was born deadborn. Graphical frontend are not needed.</p></li>
|
||||
<li><p><b>Video player</b> is <a href="http://mpv.io/">mpv</a>, since mplayer died and mplayer2 was born deadborn. Graphical frontend are not needed.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Audio player</b> is <a href="http://qmmp.ylsoftware.com/">qmmp</a>. It is a good winamp-like player. Flick of the wrist you may make a handy interface for it (simpleui).</p></li>
|
||||
<li><p><b>Audio player</b> is <a href="http://qmmp.ylsoftware.com/">qmmp</a>. It is a good winamp-like player. Flick of the wrist you may make a handy interface for it (simpleui).</p></li>
|
||||
|
||||
<li><p align="justify"><b>Audio/video editors</b>: <a href="http://kde-apps.org/content/show.php?content=29024">kdenlive</a> is used as video editor, <a href="http://kde-apps.org/content/show.php?content=29024">soundkonverter</a> is used as audio editor, <a href="https://wiki.gnome.org/Apps/EasyTAG">easytag</a> is used for editing audio tags (unfortunately, it is a gtk-based, but I didn't find a better tool for it). And command line and scripts written on bash are used too.</p></li>
|
||||
<li><p><b>Audio/video editors</b>: <a href="http://kde-apps.org/content/show.php?content=29024">kdenlive</a> is used as video editor, <a href="http://kde-apps.org/content/show.php?content=29024">soundkonverter</a> is used as audio editor, <a href="https://wiki.gnome.org/Apps/EasyTAG">easytag</a> is used for editing audio tags (unfortunately, it is a gtk-based, but I didn't find a better tool for it). And command line and scripts written on bash are used too.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Office</b>: <a href="http://wps-community.org/">Kingsoft Office</a> is used as alternative of Microsoft Office; it has no any feature, but it looks normally, it is qt-based and it is said that it has a good support for standart formats. (Linux version has an alfa stage.) <a href="http://kile.sourceforge.net/">Kile</a> is used as LaTeX frontend. <a href="http://kde.org/applications/graphics/okular/">Okular</a> is used as document viewer. And I use <a href="http://goldendict.org/">GoldenDict</a> as dictionary.</p></li>
|
||||
<li><p><b>Office</b>: <a href="http://wps-community.org/">Kingsoft Office</a> is used as alternative of Microsoft Office; it has no any feature, but it looks normally, it is qt-based and it is said that it has a good support for standart formats. (Linux version has an alfa stage.) <a href="http://kile.sourceforge.net/">Kile</a> is used as LaTeX frontend. <a href="http://kde.org/applications/graphics/okular/">Okular</a> is used as document viewer. And I use <a href="http://goldendict.org/">GoldenDict</a> as dictionary.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Editors</b>: <a href="http://www.kde.org/applications/utilities/kwrite/">kwrite</a> is used as a simple text editor, <a href="http://www.kde.org/applications/utilities/kate/">kate</a> (and <a href="http://zaufi.github.io/kate-cpp-helper-plugin.html">cpp-helper</a> plugin) is used as advanced text editor. And I begin to use <a href="https://atom.io/">atom</a> now. And of cource I use vim in console.</p></li>
|
||||
<li><p><b>Editors</b>: <a href="http://www.kde.org/applications/utilities/kwrite/">kwrite</a> is used as a simple text editor, <a href="http://www.kde.org/applications/utilities/kate/">kate</a> (and <a href="http://zaufi.github.io/kate-cpp-helper-plugin.html">cpp-helper</a> plugin) is used as advanced text editor. And I begin to use <a href="https://atom.io/">atom</a> now. And of cource I use vim in console.</p></li>
|
||||
|
||||
<li><p align="justify"><b>Scientific soft</b>. Chemical visualizers are <a href="http://www.ks.uiuc.edu/Research/vmd/">vmd</a>, <a href="http://www.cgl.ucsf.edu/chimera/">chimera</a> and <a href="http://pymol.org/">pymol</a>. Physics simulator is <a href="http://kde.org/applications/education/step/">step</a>. Calculator is <a href="http://kde.org/applications/education/kalgebra/">kalgebra</a> and console <a href="http://ipython.org/">ipython</a>. <a href="http://qtiplot.com/">Qtiplot</a> is used for drawing graphs and data analysis (scidavis, which is its fork, unfortunately, is half-dead), <a href="http://plasma-gate.weizmann.ac.il/Grace/">grace</a> is used for only drawing graphs. <a href="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/chemtool.html">Chemtool</a> is used as alternative of ChemDraw.</p></li>
|
||||
<li><p><b>Scientific soft</b>. Chemical visualizers are <a href="http://www.ks.uiuc.edu/Research/vmd/">vmd</a>, <a href="http://www.cgl.ucsf.edu/chimera/">chimera</a> and <a href="http://pymol.org/">pymol</a>. Physics simulator is <a href="http://kde.org/applications/education/step/">step</a>. Calculator is <a href="http://kde.org/applications/education/kalgebra/">kalgebra</a> and console <a href="http://ipython.org/">ipython</a>. <a href="http://qtiplot.com/">Qtiplot</a> is used for drawing graphs and data analysis (scidavis, which is its fork, unfortunately, is half-dead), <a href="http://plasma-gate.weizmann.ac.il/Grace/">grace</a> is used for only drawing graphs. <a href="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/chemtool.html">Chemtool</a> is used as alternative of ChemDraw.</p></li>
|
||||
|
||||
<li><p align="justify"><b>System applications</b>. File manager is <a href="http://kde.org/applications/system/dolphin/">dolphin</a>, <a href="http://doublecmd.sourceforge.net/">doublecmd</a> is used as twin-panel manager. Terminal emulators are <a href="http://yakuake.kde.org/">yakuake</a> and <a href="http://software.schmorp.de/pkg/rxvt-unicode.html">urxvt</a> (as windowed emulator). Archiver graphical interface is <a href="http://kde.org/applications/utilities/ark/">ark</a>.</p></li>
|
||||
<li><p><b>System applications</b>. File manager is <a href="http://kde.org/applications/system/dolphin/">dolphin</a>, <a href="http://doublecmd.sourceforge.net/">doublecmd</a> is used as twin-panel manager. Terminal emulators are <a href="http://yakuake.kde.org/">yakuake</a> and <a href="http://software.schmorp.de/pkg/rxvt-unicode.html">urxvt</a> (as windowed emulator). Archiver graphical interface is <a href="http://kde.org/applications/utilities/ark/">ark</a>.</p></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2><a name="kde" class="anchor" href="#kde"><span class="octicon octicon-link"></span></a>KDE settings</h2>
|
||||
<p align="justify">Here is a screenshot:<br>
|
||||
<p>Here is a screenshot:<br>
|
||||
<a href="/resources/screenshots/kde.png"><img src="/resources/preview/kde_prev.jpg"></a></p>
|
||||
|
||||
<p align="justify">QtCurve is used as Qt style, its settings may be found <a href="https://github.com/arcan1s/dotfiles/tree/master/qtcurve">here</a>, window decorations are presented by QtCurve too. Cursor theme is <a href="http://kde-look.org/content/show.php/Ecliz?content=110340">ecliz-small</a>. Plasma theme is <a href="http://kde-look.org/content/show.php/Volatile?content=128110">volatile</a>. Icon pack is <a href="http://nitrux.in/">compass</a>. I use fonts which are based on Liberation.</p>
|
||||
<p>QtCurve is used as Qt style, its settings may be found <a href="https://github.com/arcan1s/dotfiles/tree/master/qtcurve">here</a>, window decorations are presented by QtCurve too. Cursor theme is <a href="http://kde-look.org/content/show.php/Ecliz?content=110340">ecliz-small</a>. Plasma theme is <a href="http://kde-look.org/content/show.php/Volatile?content=128110">volatile</a>. Icon pack is <a href="http://nitrux.in/">compass</a>. I use fonts which are based on Liberation.</p>
|
||||
|
||||
<p align="justify"><b>Used widgets</b> (from left to right, top to bottom) are: <a href="https://launchpad.net/plasma-widget-menubar">menubar</a>, <a href="http://userbase.kde.org/Homerun">homerun</a> with transparent icon, <a href="http://kde-apps.org/content/show.php?content=144808">icontask</a>, <a href="/projects/netctl-gui/">netctl</a>, default KDE tray, <a href="http://agateau.com/projects/colibri/">colibri</a> for notifications, <a href="/projects/pytextmonitor">pytextmonitor</a>.</p>
|
||||
<p><b>Used widgets</b> (from left to right, top to bottom) are: <a href="https://launchpad.net/plasma-widget-menubar">menubar</a>, <a href="http://userbase.kde.org/Homerun">homerun</a> with transparent icon, <a href="http://kde-apps.org/content/show.php?content=144808">icontask</a>, <a href="/projects/netctl-gui/">netctl</a>, default KDE tray, <a href="http://agateau.com/projects/colibri/">colibri</a> for notifications, <a href="/projects/pytextmonitor">pytextmonitor</a>.</p>
|
||||
|
||||
<p align="justify">As a bonus material <a href="https://github.com/arcan1s/dotfiles/blob/master/themes/yakuake/My%20color.colorscheme">here</a> is a settings for konsole bright colors:<br>
|
||||
<p>As a bonus material <a href="https://github.com/arcan1s/dotfiles/blob/master/themes/yakuake/My%20color.colorscheme">here</a> is a settings for konsole bright colors:<br>
|
||||
<a href="/resources/screenshots/zshrc_demo.png"><img src="/resources/preview/zshrc_demo_prev.jpg"></a></p>
|
||||
|
||||
|
||||
<h2><a name="firefox" class="anchor" href="#firefox"><span class="octicon octicon-link"></span></a>Firefox settings</h2>
|
||||
<p align="justify">I do not use a special settings, thus I get you a list of used add-ons:</p>
|
||||
<p>I do not use a special settings, thus I get you a list of used add-ons:</p>
|
||||
<ul>
|
||||
<li><p align="justify"><b>Adblock plus</b>.</p></li>
|
||||
<li><p align="justify"><b>Add to search bar</b> is used for custom searchs.</p></li>
|
||||
<li><p align="justify"><b>Auto Refresh</b> is used for auto update pages.</p></li>
|
||||
<li><p align="justify"><b>Clone tab</b> adds "Clone tab" function.</p></li>
|
||||
<li><p align="justify"><b>Close tab by double click</b>.</p></li>
|
||||
<li><p align="justify"><b>New scrollbars</b> is used for customizing scrollbars, because original ones look horrible in Qt environment.</p></li>
|
||||
<li><p align="justify"><b>NoScript</b> is used for I2P and Tor, for example.</p></li>
|
||||
<li><p align="justify"><b>PrivateTab</b> adds private tab (not the window).</p></li>
|
||||
<li><p align="justify"><b>Proxy Selector</b> adds an ability to use multiple proxies.</p></li>
|
||||
<li><p align="justify"><b>QuickJava</b> is used with the same goal as NoScript.</p></li>
|
||||
<li><p align="justify"><b>RSS icon in url bar</b>.</p></li>
|
||||
<li><p align="justify"><b>Dictionaries for spellchecking</b> (eng/rus).</p></li>
|
||||
<li><p align="justify"><b>Space Next</b>. If I tap a space at the bottom of a page, it will be perceived as pushing the "Next" button.</p></li>
|
||||
<li><p align="justify"><b>Speed Dial</b> is a simple express panel.</p></li>
|
||||
<li><p align="justify"><b>Status-4-Evar</b> is a normal status bar.</p></li>
|
||||
<li><p align="justify"><b>tab delabelifier</b> minimizes inactive tabs.</p></li>
|
||||
<li><p align="justify"><b>Tab Scope + Tab Scope Tweaker</b> is tab tooltip.</p></li>
|
||||
<li><p align="justify"><b>accessKey</b> does not work now. But it is needed for easy navigation from keyboard (opera-like).</p></li>
|
||||
<li><p align="justify"><b>FXOpera</b> is a normal minimalistic appearance.</p></li>
|
||||
<li><p><b>Adblock plus</b>.</p></li>
|
||||
<li><p><b>Add to search bar</b> is used for custom searchs.</p></li>
|
||||
<li><p><b>Auto Refresh</b> is used for auto update pages.</p></li>
|
||||
<li><p><b>Clone tab</b> adds "Clone tab" function.</p></li>
|
||||
<li><p><b>Close tab by double click</b>.</p></li>
|
||||
<li><p><b>New scrollbars</b> is used for customizing scrollbars, because original ones look horrible in Qt environment.</p></li>
|
||||
<li><p><b>NoScript</b> is used for I2P and Tor, for example.</p></li>
|
||||
<li><p><b>PrivateTab</b> adds private tab (not the window).</p></li>
|
||||
<li><p><b>Proxy Selector</b> adds an ability to use multiple proxies.</p></li>
|
||||
<li><p><b>QuickJava</b> is used with the same goal as NoScript.</p></li>
|
||||
<li><p><b>RSS icon in url bar</b>.</p></li>
|
||||
<li><p><b>Dictionaries for spellchecking</b> (eng/rus).</p></li>
|
||||
<li><p><b>Space Next</b>. If I tap a space at the bottom of a page, it will be perceived as pushing the "Next" button.</p></li>
|
||||
<li><p><b>Speed Dial</b> is a simple express panel.</p></li>
|
||||
<li><p><b>Status-4-Evar</b> is a normal status bar.</p></li>
|
||||
<li><p><b>tab delabelifier</b> minimizes inactive tabs.</p></li>
|
||||
<li><p><b>Tab Scope + Tab Scope Tweaker</b> is tab tooltip.</p></li>
|
||||
<li><p><b>accessKey</b> does not work now. But it is needed for easy navigation from keyboard (opera-like).</p></li>
|
||||
<li><p><b>FXOpera</b> is a normal minimalistic appearance.</p></li>
|
||||
</ul>
|
||||
|
@ -8,20 +8,20 @@ short: disabling-baloo
|
||||
description: Paper, which describes how to remove the dependency on baloo in your system.
|
||||
---
|
||||
<h2><a name="disclaimer" class="anchor" href="#disclaimer"><span class="octicon octicon-link"></span></a>Disclaimer</h2>
|
||||
<p align="justify">I do not use this pacth, since I prefer less destructive methods. However, apparently all works fine, because there is no any claims. Since this patch was created in a few minutes, it removes all baloo's calls from source files (maybe I'll create a normal patch sometime).</p>
|
||||
<p>I do not use this pacth, since I prefer less destructive methods. However, apparently all works fine, because there is no any claims. Since this patch was created in a few minutes, it removes all baloo's calls from source files (maybe I'll create a normal patch sometime).</p>
|
||||
|
||||
<p align="justify">On other hand, I highly recommend to people, who do not use baloo for some reason, disable it from the settings menu (it was added it 4.13.1) or read this <a href="http://blog.andreascarpino.it/disabling-baloo-the-arch-way/">article</a>.</p>
|
||||
<p>On other hand, I highly recommend to people, who do not use baloo for some reason, disable it from the settings menu (it was added it 4.13.1) or read this <a href="http://blog.andreascarpino.it/disabling-baloo-the-arch-way/">article</a>.</p>
|
||||
|
||||
<h2><a name="intro" class="anchor" href="#intro"><span class="octicon octicon-link"></span></a>Introduction</h2>
|
||||
<p align="justify">In Archlinux <b>gwenview</b> and <b>kdepim</b> (and <b>baloo-widgets</b>) depend on baloo currently (2014-05-18). In the version 4.13.0 <b>kactivities</b> depends on baloo too (and I don't know why); but this dependency was not required explicitly, so it was enough just to rebuild the package by removing baloo from the list of dependencies.</p>
|
||||
<p>In Archlinux <b>gwenview</b> and <b>kdepim</b> (and <b>baloo-widgets</b>) depend on baloo currently (2014-05-18). In the version 4.13.0 <b>kactivities</b> depends on baloo too (and I don't know why); but this dependency was not required explicitly, so it was enough just to rebuild the package by removing baloo from the list of dependencies.</p>
|
||||
|
||||
<h2><a name="gwenview" class="anchor" href="#gwenview"><span class="octicon octicon-link"></span></a>gwenview</h2>
|
||||
<p align="justify">It's all quite simple. Developers have taken care of the wishes of ordinary users and added a special flag:</p>
|
||||
<p>It's all quite simple. Developers have taken care of the wishes of ordinary users and added a special flag:</p>
|
||||
{% highlight cmake %}
|
||||
//Semantic info backend for Gwenview (Baloo/Fake/None)
|
||||
GWENVIEW_SEMANTICINFO_BACKEND:STRING=Baloo
|
||||
{% endhighlight %}
|
||||
<p align="justify">Thus, we add requred cmake flag to the build script:</p>
|
||||
<p>Thus, we add requred cmake flag to the build script:</p>
|
||||
{% highlight bash %}
|
||||
cmake ../gwenview-${pkgver} \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
@ -31,7 +31,7 @@ cmake ../gwenview-${pkgver} \
|
||||
{% endhighlight %}
|
||||
|
||||
<h2><a name="kdepim" class="anchor" href="#kdepim"><span class="octicon octicon-link"></span></a>kdepim</h2>
|
||||
<p align="justify">Since everything was done in a hurry, I prefer to look at the source code using grep and to find all references to baloo. Needed strings (they are links to ballo in CMakeLists.txt, baloo's function calls and header declarations) were commented (I added some fake calls to the source code). You may find the patch <a href="https://gist.github.com/arcan1s/b698bb586faef627b3bb">here</a> (4.13.2). Download the patch, apply it to the source code and recompile kdepim.</p>
|
||||
<p>Since everything was done in a hurry, I prefer to look at the source code using grep and to find all references to baloo. Needed strings (they are links to ballo in CMakeLists.txt, baloo's function calls and header declarations) were commented (I added some fake calls to the source code). You may find the patch <a href="https://gist.github.com/arcan1s/b698bb586faef627b3bb">here</a> (4.13.2). Download the patch, apply it to the source code and recompile kdepim.</p>
|
||||
|
||||
<h2><a name="packages" class="anchor" href="#packages"><span class="octicon octicon-link"></span></a>Packages</h2>
|
||||
<p align="justify">All Archlinux packages for both architectures may be found in <a href="https://wiki.archlinux.org/index.php/Unofficial_user_repositories#arcanisrepo">my repository</a>.</p>
|
||||
<p>All Archlinux packages for both architectures may be found in <a href="https://wiki.archlinux.org/index.php/Unofficial_user_repositories#arcanisrepo">my repository</a>.</p>
|
||||
|
Reference in New Issue
Block a user