Deploy and run .NET Core application without installed runtime. Self-contained applications.

3
Comments
Deploy and run .NET Core application without installed runtime. Self-contained applications.

.NET Core framework provides one very useful feature - Self-contained application. You don't need to install any .net runtime on your computer, you can just copy your application to the target host and run it. Furthermore, you can run it on any platform (Windows, Linux, OSX)! When you create a self-contained application, after publishing, you will see the whole .net runtime next to your application. There are some advantages: You do not need to have installed .NET Core on a target machine You ca...

Read further...

[Mono] Selenium with headless ChomeDriver on Ubuntu Server

0
Comments
[Mono] Selenium with headless ChomeDriver on Ubuntu Server

If you want to run C# application (mono) with Selenium ChomeDriver on Ubuntu Server 16.04 in headless mode, you definitely should read this article. We will use Xvfb as X server, this will let us emulate "headless" mode because Xvfb performs all graphical operations in memory without showing any screen output. Install mono sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian whe...

Read further...

[ASP.NET 5] Production Ready Web Server on Linux. Kestrel + Supervisord

2
Comments
[ASP.NET 5] Production Ready Web Server on Linux. Kestrel + Supervisord

In the previous article I've used nohup + su + init.d script to run kestrel in a background. But as Daniel Lo Nigro suggested in comments it's much easier to do the same with Supervisor And he was absolutelly right, config is much smaller, and you can easelly see status and output of a program. First, install supervisor: sudo apt-get install supervisor Now you can create config for your application: sudo nano /etc/supervisor/conf.d/kestrel_default.conf With following content: [program:kestrel_de...

Read further...

[ASP.NET 5] Production Ready Web Server on Linux. Run Kestrel In The Background

3
Comments
[ASP.NET 5] Production Ready Web Server on Linux. Run Kestrel In The Background

In the previous article we have installed nginx as a "gate" for our ASP.NET 5 application. Today we will see how to start kestrel server in the background. We will do even more, we will create init.d script to control our APS.NET 5 application and start it on  the system's startup. The simplest way to start kestrel in the background from console: nohup k kestrel & But if you want to start your application at the system's startup you need init.d script. Eventually, we will have following comm...

Read further...

[vNext] Use PostgreSQL + Fluent NHibernate from ASP.NET 5 (DNX) on Ubuntu

7
Comments
[vNext] Use PostgreSQL + Fluent NHibernate from ASP.NET 5 (DNX) on Ubuntu

In the previous part we have installed APS.NET 5 application on Ubuntu, now we are gonna install and configure PostgreSQL on Ubuntu and access database from our application through NHibernate. Install and configure PostgreSQL First, install PostgreSQL: sudo apt-get install postgresql postgresql-contrib Next, set root password: sudo -u postgres psql postgres \password postgres And then create test database: sudo -u postgres createdb mydb Add Fluent NHibernate to the application Open project.json...

Read further...

How-to Restore WordPress Site

0
Comments

In conclusion of "How-to Backup WordPress Site" article, here is small instruction to restore your backup: Upload files to VPS Upload you www.tar.gz and database.sql to the new VPS. You can use WinSCP (as described here) Extract www file structure Extract files: tar -xvf www.tar.gz And copy files: cp -a www/oldsite.com/www/* /var/yoursite.com/www Change permissions: cd /var/yoursite.com/www chown www-data:www-data -R * find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; Cre...

Read further...

[vNext] Install ASP.NET 5 (DNX) on Ubuntu

10
Comments
[vNext] Install ASP.NET 5 (DNX) on Ubuntu

ASP.NET MVC application on Linux? Easy! As you may know, Microsoft recently released a lot of their products under MIT license. .NET Core runtime, .NET CoreFX, ASP.NET 5, MVC 6, Entity Framework 7, MSBuild, everything is now available on GitHub. Our goal is: run Asp.Net MVC application with postgresql database on ubuntu server Today we are gonna start with setting up .NET environment. In the new asp.net stack you can choose between full .NET runtime and .NET Core. For now .NET Core has a lot of...

Read further...

How-to Backup Wordpress Site

1
Comments

Here are two commands to backup your wordpress site. First you need to backup database: mysqldump -uUSER -h127.0.0.1 -pPASSWORD DB_NAME > database.sql Now you can archive www root folder: tar -chvzf www.tar.gz /var/site.com/www After this manipulations you can copy this two files to the same place. How to Restore WordPress Site

Read further...

[Fixed] [ERROR] /usr/sbin/mysqld: unknown variable 'log_slow_verbosity=query_plan'

3
Comments

Error during installing MySQL server 5.5 on Ubuntu 14.04 I got following error when try to install mysql-server-5.5 on ubuntu 14.04: [ERROR] /usr/sbin/mysqld: unknown variable 'log_slow_verbosity=query_plan' After that I got start: Job failed to start To fix that: open /etc/mysql/my.cnf for edit and comment following string log_slow_verbosity=query_plan Then start installation from scratch: sudo apt-get install mysql-server

Read further...

Tool for enabling or disabling nginx sites (a2ensite analogue for nginx)

0
Comments

If you have previously used Apache you should now about a2ensite tool. If you start using nginx you probably find out that there are no such tool for nginx. You can use following command to do that: ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/mysite and then restart nginx sudo service nginx restart But... I have found one small script that can do that for you. Also, it can display list of all available or enabled sites, disable site and automatically restart nginx. Just put...

Read further...

Migrate from Apache to nginx + php-fpm and speed up your site twice

0
Comments
Migrate from Apache to nginx + php-fpm and speed up your site twice

This blog is hosted (together with mintchocolate.org) on a small VPS (1x2.8 Ghz, 256 Мб RAM, 10 Gb SSD). This VPS is shipped with apache2, php and mysql. As you can see I am using wordpress for this blog, also I have approximately 1000 unique visitors per day (half of them visit this and this articles). So it is good to have small response time. Apache First I need to measure how slow my blog is. I have used loadimpact.com to do that. This is result for apache2: [caption id="" align="aligncenter...

Read further...

[Fixed] Apache mod_status: /server-status forbidden from 127.0.0.1

1
Comments

If you have mod_status enabled but still got this error (403) when trying to connect from localhost (127.0.0.1) you can should do following: First, go to /etc/apache2/mods-enabled/status.conf and check that you have all hosts that you want to connect from is added to Allow from, something like this:   <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 </Location> Second, create VirtualHost configuration for 127.0.0.1 with f...

Read further...

[Solution] Cacti + RRDTool. Graph not working problem fixed

3
Comments

If you have problems with graph in your Cacti first what you should do is enable debug mode in Cacti. To enable debug mode: Go to "Graph Management" Open any graph (Localhost - Load Average) Press "Turn On Graph Debug Mode." Now you should see something like this: RRDTool Command: /usr/bin/rrdtool graph - \ --imgformat=PNG \ --start=-86400 \ --end=-300 \ --title='Localhost - Load Average' \ --rigid \ --base=1000 \ --height=120 \ --width=500 \ --alt-autoscale-max \ --lower-limit=0 \ --u...

Read further...

Обновление Unity Lens для torrents.net.ua

0
Comments
Обновление Unity Lens для torrents.net.ua

torrentsnetuasearch - Unity Lens для поиска релизов на сайте torrents.net.ua В новой версии (0.5-public3): Исправлен баг с парсингом результатов поиска Добавлена возможность отключения загрузки изображений (существенно ускоряет поиск) Для отключения загрузки изображений необходимо в /etc/torrentsnetuasearch.conf прописать: UseImagePreview=False Для установки нужно добавить репозиторий: sudo add-apt-repository ppa:druss/unity-lens-torrentsnetua sudo apt-get update И установить линзу: sudo apt-get...

Read further...

Быстрый поиск на torrents.net.ua в Ubuntu

0
Comments
Быстрый поиск на torrents.net.ua в Ubuntu

Я довольно часто пользуюсь поиском сериалов/фильмов на замечательном трекере torrents.net.ua. Так же, я давно использую Ubuntu в сочетании с Unity. Для запуска приложений я пользуюсь поиском через Dash (аналог меню "Пуск"). Поиск этот расширяем, и для этого предусмотрен API. В один из вечеров, родилась идея добавить поиск по torrents.net.ua в Unity Dash, так, just for fun :) Вот что получилось: Для установки нужно добавить репозиторий: sudo add-apt-repository ppa:druss/unity-lens-torrentsnetua s...

Read further...

urlHandler или как открыть ссылку в нужном браузере

0
Comments

  Всем привет.  Проблема:  В силу определенных привычек я пользуюсь браузером Opera, но к сожалению Opera не очень хорошо дружит с SharePoint порталами, и поэтому когда я получаю ссылки на наш корпоративный портал (через Skype, Outlook, etc...), то открываю их в Internet Explorer. Постоянный ctrl+c, ctrl+v меня удручал, вот и надумал я решить эту проблему. Задача: Написать приложение, которое будет отслеживать клик на ссылку в приложениях (Skype, Outlook, etc...) и для определенных адресов...

Read further...

Ubuntu mono dark Psi/Psi+ roster iconset

0
Comments
Ubuntu mono dark Psi/Psi+ roster iconset

Hello all, My friend SADM and me have made a Psi/Psi+ ubuntu mono dark(Ambiance)-styled roster icons. This icons based on "stellar" iconset.   Download (stellar-mono-dark.jisp.zip) Sources (stellar-mono-dark-src.zip) How to add icons to Psi/Psi+ in Ubuntu: 1. Download  iconset: cd ~ && wget /wp-content/uploads/2012/11/stellar-mono-dark.jisp_.zip 2. Copy to psi iconsets folder: sudo cp ~/stellar-mono-dark.jisp_.zip /usr/share/psi-plus/iconsets/roster/stellar-mono-dark.jisp 3. Restart...

Read further...

Конвертирование VirtualBox (vdi) в VMware Workstation (vmdk) linux машины с сохранением снепшота

1
Comments

Добрый день, уважаемый %all% Довелось мне перенести виртуальный (VirtualBox) ubuntu server 12.04 на котором крутился настроенный ftp на ESXi сервер. VMware vCenter Converter не умеет конвертить VirtualBox машины на  ESXi. VBoxManageтоже не очень функционален. VBoxManage clonehd source.vdi target.vmdk --format VMDK Конвертирует vdi в vmdk, но не сохраняет снепшоты, а так как настраивать все заново у меня времени не было в голову пришло решение! Клонирование диска с сохранением последнего снепшота...

Read further...

Восстановление GRUB2

0
Comments
Восстановление GRUB2

Возобновление GRUB2 или как заставить снова грузиться Linux Стоят у меня Linux Mint, но тут мне с Морготом захотелось побегать в Fifa 10 и решил я поставить на свой десктоп Масдай как вторую ОС. Начал установку, выбрал раздел, тыцнул Enter а оно мне говорит "Опа, нифига!". Ну, думаю, нифига так нифига. Ребут и тут на экране надпись Error loading operation system. Мда, приехали, даже до копирования файлов винды не дошло а оно мне уже загрузчик коцнуло. Пришлось восстанавливать... Взял Ubuntu Live...

Read further...

Установка Chromium (Google Chrome) в Ubuntu Linux

0
Comments
Установка Chromium (Google Chrome) в Ubuntu Linux

Установка Chromium (Google Chrome for Linux) в Ubuntu Linux Хоть я и не пользуюсь браузером от Google но посмотреть что оно да как не помешает, да и тестировать свои разработки не помешает и на Google`овском браузере. На Винде у меня уже давненько появится Google Chrome. Пришло время установить и на Linux сейй браузер. Называется он немного иначе, Chromium. Установка будет описана для Ubuntu 9.04 и 9.10 Можно просто скачать .deb пакет отсюдова используя команду [code lang="bash"] wget http://med...

Read further...

Перекодирование русских ID3v2 тегов в utf-8 под Linux

0
Comments

Перекодирование русских ID3v2 тегов в utf-8 под Ubuntu Linux После перехода с масдая на линь, у меня осталась небольшая коллекция музыки. Часть из нее была русского и украинского производства. К сожалению те кто грабил музыку с дисков поленился записать ID3v2 теги в кодировке utf-8 а загнал их в "проклятой" windows-1251. И что получается, добавляю я значит, в Rhythmbox папку с музыкой, а оно мне в списке воспроизведения выдает какозабли... Нехорошо подумал я. но править по одному теги мне ой как...

Read further...

Gentoo Linux vs Ubuntu Linux

0
Comments
Gentoo Linux vs Ubuntu Linux

Gentoo Linux vs Ubuntu Linux В материале представлены результаты исследования производительности Gentoo Linux, собранного из исходных текстов с различными режимами оптимизации, в сравнении с Ubuntu 9.04. В среднем различия не столько существенны и по общему зачету наиболее оптимальные показатели обеспечивает режим "-O2", при котором кроме того был получен наименьший размер исполняемых файлов после сборки. Производительность сборок, подготовленных с использованием опций "-O2" и "-O3" достаточно б...

Read further...

Установка tuxguitar в Ubuntu Linux

0
Comments
Установка tuxguitar в Ubuntu Linux

tuxguitar - довольно неплохой редактор табулатур под Linux. Конечно до функционала GuitarPro ему еще очень далеко, но с основными задачами он прекрасно справляется. начнем [code lang="bash"] sudo apt-get install tuxguitar [/code] у меня он вытянул с интернета порядка 60 МиБ. Запускаем и тестим. Если нет звука тогда [code lang="bash"] sudo apt-get install timidity timidity-interfaces-extra [/code] В tuxguitar "Инструменты - Настройки - Песня" выбираем вывод через timidity Перезапускаем tuxguitar...

Read further...

Ubuntu / Kubuntu install party

0
Comments
Ubuntu / Kubuntu install party

Ubuntu / Kubuntu install party 29.10.2009 состоялась ubuntu install party у Друсса на хате! Вот вам пару фоточек! Ставим) Убунта на моем компе почти доставилась На ноут САДМа уже стала Кубунта А вот и все три кросавца Кубунту, Убунту, Масдай Ну и конечно мы! САДМ и Я! В общем было весело. Поговорили, поустанавливали, разошлись в 3 ночи.

Read further...

KDE vs GNOME

1
Comments
KDE vs GNOME

Крик души GNOME vs KDE Решил я написать про извечную борьбу, или даже скорее не борьбу а про выбор. Знакомство с Linux у меня начиналось с Kubutu 6.06 и честно она мне на понравилась. Вроде все было нормально, но что то "муляло" мне глаза, и "муляло" мне их KDE3. Потом была Kubuntu 9.04 и снова что то не так, хоть все красиво (KDE4) я все равно не чувствовал себя комфортно как бы я не настраивал внешний вид системы, и мне приходилось возвращаться к Масдаю. Но в один прекрасный вечер я решил пост...

Read further...

Google Earth / Ubuntu

0
Comments

Google Earth / Ubuntu Захотелось мне поставить на любимую *убунту замечательнейшую прогу под названием Google Earth. В установке все оказалось простым. Заходим на http://earth.google.com/ выбираем пункт "Скачать". После скачивания бинарника делаем в консоли [code lang="bash"]chmod +x GoogleEarthLinux.bin ./GoogleEarthLinux.bin[/code] Все, прога установлена. После запуска я увидел границы стран, но текстур, к сожалению, не было. Все решилось следующим образом. Заходи в меню "Инструменты->Настр...

Read further...