From 22a83b287a2f1c42da17a67fee0df67b1396643c Mon Sep 17 00:00:00 2001
From: arcan1s
{% if page.category == "ru" %}
- Сообщить о баге
+ Сообщить о баге
{% if page.hasdocs == true %}
Разработчикам
{% endif %}
{% else %}
- Report a bug
+ Report a bug
{% if page.hasdocs == true %}
For developers
{% endif %}
@@ -52,13 +52,13 @@ layout: default
{% if page.category == "ru" %}
.zshrc
and explain what it does and why it is needed. Also any comments or additions are welcome. It is a translated paper from Russian (original).
+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 .zshrc
and explain what it does and why it is needed. Also any comments or additions are welcome. It is a translated paper from Russian (original).
---
First install recommended minima:
@@ -15,10 +15,10 @@ description: It is first paper in my blog (I think I need something here for tes pacman -Sy pkgfile zsh zsh-completions zsh-syntax-highlighting {% endhighlight %} -pkgfile is a very useful utility. Also this command will install shell, additional completion and syntax highlighting.
+pkgfile is a very useful utility. Also this command will install shell, additional completion and syntax highlighting.
All options are avaible here.
+All options are avaible here.
Set history file and number of commands in cache of the current session and in the history file:
@@ -304,7 +304,7 @@ alias less='vimpager' alias zless='vimpager' {% endhighlight %} -Here are ls aliases (see man ls):
+Here are ls aliases (see man ls):
{% highlight bash %} alias ls='show_which ls && ls --color=auto --group-directories-first' @@ -556,4 +556,4 @@ hash -d u2=/mnt/usbdevHere is my .zshrc
.
Here is my .zshrc
.
CPP
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).
+description: Qutim is a multiprotocol and cross platform messenger. It is written on CPP
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).
---
This package uses qbs for building, which is a bit strange IMHO. A package, which is necessary for building, is in AUR . 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.
+This package uses qbs for building, which is a bit strange IMHO. A package, which is necessary for building, is in AUR . 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.
Install dependences. I had used namcap
, so maybe I missed something:
You may read about qbs on the link 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 ((~/.config/QtProject/qbs.conf
)) looks like this:
You may read about qbs on the link 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 ((~/.config/QtProject/qbs.conf
)) looks like this:
arcanis.name
domain. Now I have a normal address, as well as all normal people have it. Small description of how to do it. Firstly, you should rent domain and activate DNS editing (it is called DNS-master for Ru-center). I pay about $30 in year. Then you should create CNAME file in your repository; this file has line with your domain name. And finally you should create two DNS records for your domain:
+ arcanis.name
domain. Now I have a normal address, as well as all normal people have it. Small description of how to do it. Firstly, you should rent domain and activate DNS editing (it is called DNS-master for Ru-center). I pay about $30 in year. Then you should create CNAME file in your repository; this file has line with your domain name. And finally you should create two DNS records for your domain:
{% highlight bash %}
@ A 192.30.252.153
diff --git a/_posts/2014-03-23-creating-custom-repo.html b/_posts/2014-03-23-creating-custom-repo.html
index cdd7b05..e8a98be 100644
--- a/_posts/2014-03-23-creating-custom-repo.html
+++ b/_posts/2014-03-23-creating-custom-repo.html
@@ -15,7 +15,7 @@ description: It is a short paper devoted to creation own ArchLinux repository.
pacman -Sy devtools
{% endhighlight %}
-devtools is script set for building automation in the clean chroot. I think most of Arch maintainers use it.
+devtools is script set for building automation in the clean chroot. I think most of Arch maintainers use it.
Let's create working directories and set colors:
@@ -144,7 +144,7 @@ if [ ${USEGPG} == "yes" ]; then fi {% endhighlight %} -It is recommended to configure gpg-agent.
+It is recommended to configure gpg-agent.
Here is the scripts. Download source tarballs and run script (editing variables if it is necessary).
+Here is the scripts. Download source tarballs and run script (editing variables if it is necessary).
Just add following lines to /etc/pacman.conf
:
Shell is zshrc and nothing else. You may find a small description of my settings here. It is stored here (or here).
Shell is zshrc and nothing else. You may find a small description of my settings here. It is stored here (or here).
DE - I use KDE as Desktop Environment. And that's why most of apps are qt-based. Some KDE settings are below.
Graphic editors - gwenview is used for viewing images, kolourpaint is used for simple editing pixel images, gimp (without plugins, since they are not needed for me) - for editing and inkskape is used as editor of vector graphics.
Graphic editors - gwenview is used for viewing images, kolourpaint is used for simple editing pixel images, gimp (without plugins, since they are not needed for me) - for editing and inkskape is used as editor of vector graphics.
Browser - I use Firefox. Some Firefox settings are below. Chromium is used as additional browser, elinks is used as console browser.
IM client is qutIM. It is a cross-platform, multiprotocol and full featured client. Kopete, 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.
IM client is qutIM. It is a cross-platform, multiprotocol and full featured client. Kopete, 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.
Mail client is kmail. 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.
Mail client is kmail. 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.
IRC client is konversation. 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.
IRC client is konversation. 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.
Torrent client is transmission with Qt5 interface (it has gtk interface too). It is also used for server but without GUI.
Torrent client is transmission with Qt5 interface (it has gtk interface too). It is also used for server but without GUI.
Video player is mpv, since mplayer died and mplayer2 was born deadborn. Graphical frontend are not needed.
Video player is mpv, since mplayer died and mplayer2 was born deadborn. Graphical frontend are not needed.
Audio player is qmmp. It is a good winamp-like player. Flick of the wrist you may make a handy interface for it (simpleui).
Audio player is qmmp. It is a good winamp-like player. Flick of the wrist you may make a handy interface for it (simpleui).
Audio/video editors: kdenlive is used as video editor, soundkonverter is used as audio editor, easytag 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.
Audio/video editors: kdenlive is used as video editor, soundkonverter is used as audio editor, easytag 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.
Office: Kingsoft Office 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.) Kile is used as LaTeX frontend. Okular is used as document viewer. And I use GoldenDict as dictionary.
Office: Kingsoft Office 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.) Kile is used as LaTeX frontend. Okular is used as document viewer. And I use GoldenDict as dictionary.
Editors: kwrite is used as a simple text editor, kate (and cpp-helper plugin) is used as advanced text editor. And of course I use vim in console.
Editors: kwrite is used as a simple text editor, kate (and cpp-helper plugin) is used as advanced text editor. And of course I use vim in console.
Scientific soft. Chemical visualizers are vmd, chimera and pymol. Physics simulator is step. Calculator is kalgebra and console ipython. Qtiplot is used for drawing graphs and data analysis (scidavis, which is its fork, unfortunately, is half-dead), grace is used for only drawing graphs. Chemtool is used as alternative of ChemDraw.
Scientific soft. Chemical visualizers are vmd, chimera and pymol. Physics simulator is step. Calculator is kalgebra and console ipython. Qtiplot is used for drawing graphs and data analysis (scidavis, which is its fork, unfortunately, is half-dead), grace is used for only drawing graphs. Chemtool is used as alternative of ChemDraw.
System applications. File manager is dolphin, doublecmd is used as twin-panel manager. Terminal emulators are yakuake and urxvt (as windowed emulator). Archiver graphical interface is ark.
System applications. File manager is dolphin, doublecmd is used as twin-panel manager. Terminal emulators are yakuake and urxvt (as windowed emulator). Archiver graphical interface is ark.
QtCurve is used as Qt style, its settings may be found here, window decorations are presented by QtCurve too. Cursor theme is ecliz-small. Plasma theme is volatile. Icon pack is compass. I use fonts which are based on Liberation.
+QtCurve is used as Qt style, its settings may be found here, window decorations are presented by QtCurve too. Cursor theme is ecliz-small. Plasma theme is volatile. Icon pack is compass. I use fonts which are based on Liberation.
-Used widgets (from left to right, top to bottom) are: menubar, homerun with transparent icon, icontask, netctl, default KDE tray, colibri for notifications, Awesome Widgets.
+Used widgets (from left to right, top to bottom) are: menubar, homerun with transparent icon, icontask, netctl, default KDE tray, colibri for notifications, Awesome Widgets.
-As a bonus material here is a settings for konsole bright colors.
+As a bonus material here is a settings for konsole bright colors.
I do not use this patch, 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).
-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 article.
+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 article.
In Archlinux gwenview and kdepim (and baloo-widgets) depend on baloo currently (2014-05-18). In the version 4.13.0 kactivities 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.
@@ -35,7 +35,7 @@ cmake ../gwenview-${pkgver} \ {% endhighlight %}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 here (4.13.3). Download the patch, apply it to the source code and recompile kdepim.
+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 here (4.13.3). Download the patch, apply it to the source code and recompile kdepim.
All Archlinux packages for both architectures may be found in my repository.
+All Archlinux packages for both architectures may be found in my repository.
diff --git a/_posts/2014-07-17-writting-own-completions-p1.html b/_posts/2014-07-17-writting-own-completions-p1.html index fe381bf..a31a29c 100644 --- a/_posts/2014-07-17-writting-own-completions-p1.html +++ b/_posts/2014-07-17-writting-own-completions-p1.html @@ -138,6 +138,6 @@ _netctl-gui() { {% endhighlight %}File should be places to /usr/share/zsh/site-functions/
with any name (it is recommended to set prefix to _
). You may found the example in my repository.
File should be places to /usr/share/zsh/site-functions/
with any name (it is recommended to set prefix to _
). You may found the example in my repository.
The additional information may be found in zsh-completions repository. For example there is this How-To. And also there are a lot of examples.
+The additional information may be found in zsh-completions repository. For example there is this How-To. And also there are a lot of examples.
diff --git a/_posts/2014-07-17-writting-own-completions-p2.html b/_posts/2014-07-17-writting-own-completions-p2.html index bec4577..76462fd 100644 --- a/_posts/2014-07-17-writting-own-completions-p2.html +++ b/_posts/2014-07-17-writting-own-completions-p2.html @@ -133,4 +133,4 @@ _netctl_gui() { {% endhighlight %}File should be places to /usr/share/bash-completion/completions/
with any name. You may found the example in my repository.
File should be places to /usr/share/bash-completion/completions/
with any name. You may found the example in my repository.
The weather uses data and API from OpenWeatherMap. Directory is weather
, configuration files have the following fields:
The weather uses data and API from OpenWeatherMap. Directory is weather
, configuration files have the following fields:
Для показа погоды используются данные и API OpenWeatherMap. Директория называется weather
, файлы настроек имеют следующие поля:
Для показа погоды используются данные и API OpenWeatherMap. Директория называется weather
, файлы настроек имеют следующие поля: