My linux experience

Some linux tips just not to forget.

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active

Robot spider for disastersAfter upgrading my OpenSuse to 12.3 I could not start mysql.

# systemctl start mysql.service
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -n' for details.

journalctl -n gave me among others:

Mar 17 05:55:09 gruz systemd[1]: mysql.service: control process exited, code=exited status=1
Mar 17 05:55:09 gruz systemd[1]: Failed to start LSB: Start the MySQL database server.
Mar 17 05:55:09 gruz systemd[1]: Unit mysql.service entered failed state

Running # mysql_secure_installation asked passwrod but didn't accept any:

Enter current password for root (enter for none): 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

Solution:

I had two problems - mysql database folder and files owner and an empty file .run-mysql_upgrade.

So here is how I solved it:

chown -R mysql:mysql /var/lib/mysql; rm /var/lib/.run-mysql_upgrade

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
Since the time of writing of this article unison has added a native changes check without inotify. Thought I still use the method explained in the article, you may give a try. Check stackoverflow

spider.24990811 stdGiven

Linux remote server and Linux (OpenSuse) local machine. SSH access to the remote server with sudo (optional) permissions.

Task

I develop a web-site deployed at a remote server. I have a to-do list and as a rule I backup the web-site, place it at my local comp, work, and place it back to the production server when finished. But what if the client wants to work at the web-site at the same time? E.g. to work with the conent? Using FTP at my side is not an option as it takes not only time, but doesn't allow e.g. to search text in many files using e.g. Krusader. Besides, I cannot use my favourite Geany editor when using KDE built-in FTP or SFTP (fish) protocols. I mean I cannot edit a file from Krusader FTP/SFTP connection in Geany, only in KWrite.

So I want to work at the remote web-site as if I work at the local one. As if the remote web-site folder is mounted like a normal hard disk. But all the ftp/ssh mounts I managed to find were slow, incredible slow.

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
Spider squirrel

While trying to install phing I've been geting such a result:

# pear install phing/phing
Unknown remote channel: pear.phpunit.de
WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2"
Unknown remote channel: pear.pdepend.org
Unknown remote channel: pear.phpmd.org
Unknown remote channel: pear.phpunit.de
Unknown remote channel: pear.docblox-project.org
Did not download optional dependencies: channel://pear.phpunit.de/PHPUnit, pecl/Xdebug, pear/PEAR_PackageFileManager, channel://pear.pdepend.org/PHP_Depend, channel://pear.phpmd.org/PHP_PMD, channel://pear.phpunit.de/phpcpd, channel://pear.docblox-project.org/DocBlox, use --alldeps to download automatically
phing/phing requires package "phing/phingdocs" (version >= 2.4.8snapshot20111006230626), installed version is 2.4.6snapshot20110704081620
phing/phing can optionally use package "channel://pear.phpunit.de/PHPUnit" (version >= 3.4.0)
phing/phing can optionally use package "pecl/Xdebug" (version >= 2.0.5)
phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2)
phing/phing can optionally use package "channel://pear.pdepend.org/PHP_Depend" (version >= 0.10.0)
phing/phing can optionally use package "channel://pear.phpmd.org/PHP_PMD" (version >= 1.1.0)
phing/phing can optionally use package "channel://pear.phpunit.de/phpcpd" (version >= 1.3.2)
phing/phing can optionally use package "channel://pear.docblox-project.org/DocBlox" (version >= 0.14.0)
No valid packages found
install failed

FaLang translation system by Faboba
ОУН-УПА: легенда спротиву Українська Дивізія «Галичина» Зиновій Книш: спогади й матеріали до діяння УВО і ОУН Реаніматор електронних текстів Забуттю не підлягає 1917-1991

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 11:45
    The fields %TO_NAME% and %TO_USERNAME% are empty

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 11:43
    My fault, I made it

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 30.06.2019 10:46
    I did. Now I'm asking me how to put the surename into the email... :-|

    Read more...

     
  • NavigationAry - navigate between Joomla menu items like between articles using "prev - next"

    Berndi Berndi 29.06.2019 15:59
    I also miss content in %TO_NAME%

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    Berndi Berndi 29.06.2019 15:15
    Hi gruz, I have the problem, that when I use the %AUTHOR% tag, the plugin dosen't send the author ...

    Read more...