The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘*nix’ Category

Zypper or YaST locked: System management is locked by the application with pid ##### (/usr/lib/YaST2/bin/y2base).

Posted by jpluimers on 2015/08/24

A while ago, I got this error:

Accessing the Software Management Failed
System management is locked by the application with pid 17730 (/usr/lib/YaST2/bin/y2base).
Close this application before trying again.

Would you like to abort or try again?

[Retry] [Abort]

What happened is that a terminal session that had YaST open got disconnected (don’t you love WiFi) while checking for updates.

I tried to re-login and re-check for updates and got this error.

Looking for process 17730 indeed revealed it was YaST:

snap:~ # ps 17730
  PID TTY      STAT   TIME COMMAND
17730 pts/0    Sl+    0:11 /usr/lib/YaST2/bin/y2base online_update ncurses

A simple kill would get rid of that process:

sudo kill 17730

–jeroen

via: yast locked.

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

Hmm, need to check why MariaDB got installed

Posted by jpluimers on 2015/07/06

The zypper dup has installed MariaDB; now I need to figure out which dependency did this, as I’m not happy with the update message:

Message from package mariadb:

You just installed MySQL server for the first time.

You can start it using:
 rcmysql start

During first start empty database will be created for your automatically.

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h misibook password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

–jeroen

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | 2 Comments »

20 years ago today: Here’s a nickel kid. Go buy yourself a real computer.

Posted by jpluimers on 2015/06/24

An eternal Dilbert strip that is based on the tiny Here’s a nickel kid. Go buy yourself a real computer fragment from single.h:

#if _FP_W_TYPE_SIZE < 32
#error "Here's a nickel kid. Go buy yourself a real computer."
#endif

Read the rest of this entry »

Posted in *nix, ARM, Assembly Language, Delphi, Delphi 1, Development, Fun, Geeky, History, MS-DOS, Power User, Software Development, Windows, Windows 8.1, Windows 95, Windows NT, x86 | 2 Comments »

Research notes on Diffie Hellman over WebSockets over a MittM http proxy to setup an encapsulated secure channel

Posted by jpluimers on 2015/06/17

Inspired by CloudFlare Keyless SSL, I have this idea of using Diffie Hellman over WebSockets over a MittM based http proxy (which intercepts and decrypts HTTPS traffic) like mitmproxy (but them from a commercial vendor to inspect web traffic) to setup an encapsulated secure channel.

I know SSH uses Diffie Hellman to setup a secure channel over a binary TCP connection.

Binary communication over HTTP usually means WebSocket.

I don’t want WebSSH (which does use WebSockets, but is probably filtered by the MitM proxy anyway).

Maybe either of these open source tools will work:

If these don’t work, I need to do more research.

Since I use C# and .NET for much of my work, I started the WebSocket over HTTP C# query.

c# – How to use proxies with the WebSocket4Net library – Stack Overflow.

–jeroen

Posted in *nix, *nix-tools, Communications Development, Development, HTTP, Internet protocol suite, Linux, Power User, SSH, SuSE Linux, TCP, WebSockets, Windows, Windows-Http-Proxy | Leave a Comment »

reboot fixes “pam_systemd(sshd:session): Failed to create session: Connection timed out” need to find the cause.

Posted by jpluimers on 2015/06/11

In case I get something similar to this again:

Mar 11 12:54:06 filesrepo sshd[22021]: Accepted publickey for SOMEUSER from xxx.xxx.xxx.xxx port xxxxx ssh2: RSA xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Mar 11 12:54:06 filesrepo kernel: type=1006 audit(1394542446.943:117): pid=22021 uid=0 old auid=4294967295 new auid=1019 old ses=4294967295 new ses=116 res=1
Mar 11 12:54:06 filesrepo sshd[22021]: pam_unix(sshd:session): session opened for user SOMEUSER by (uid=0)
Mar 11 12:54:06 filesrepo dbus[421]: [system] Activating systemd to hand-off: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
Mar 11 12:54:31 filesrepo sshd[22021]: pam_systemd(sshd:session): Failed to create session: Connection timed out
Mar 11 12:54:31 filesrepo dbus[421]: [system] Failed to activate service 'org.freedesktop.login1': timed out
Mar 11 12:54:31 filesrepo dbus[421]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Mar 11 12:54:32 filesrepo svnserve[22061]: DIGEST-MD5 common mech free
Mar 11 12:54:32 filesrepo sshd[22021]: pam_unix(sshd:session): session closed for user SOMEUSER

I have been noticing this for last few days but I thought systemd update should solve this (bug report was raised against systemd)

I updated system today (I have not given it a reboot yet) and I still see those logs.

Rebooting fixed this issue.

But I’m not sure about the cause.

–jeroen

via: [closed] pam_unix(sshd:session) timeouts / Networking, Server, and Protection / Arch Linux Forums.

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

Moving my BitBucket mercurial repository to git was a lot harder than I hoped for (but moving to GitHub was easy)

Posted by jpluimers on 2015/06/10

After reading Converting Hg repositories to Git directed me into reading Bitbucket: Converting Hg repositories to Git I hoped moving my Mercurial repository on BitBucket to a Git repository would be something like following the steps.

It wasn’t.

First of all, hg-git on a Windows system requires Python or TortoiseHg. Neither of these I wanted to install for a one-off conversion.

So I took a throw-away Linux VM, and did the steps below. But let me first explain why.

Motivation

My motivation for moving away from BitBucket to GitHub, especially for projects containing markdown documentation.

When writing documentation in Markdown, being able to in-line reference pictures or have relative-references to other documents. This works perfectly in local Markdown tools (like MarkdownPad 2 or LightPaper).

Read the rest of this entry »

Posted in *nix, *nix-tools, BitBucket, Development, DVCS - Distributed Version Control, git, GitHub, Linux, Mercurial/Hg, openSuSE, Power User, Source Code Management, SuSE Linux | Leave a Comment »

revue: getting Tumbleweed on it.

Posted by jpluimers on 2015/06/09

Now that github stopped showing my README.rst as reStructuredText here is the htmlpreview link of the pandoc rendered reStructuredText:

revue: getting Tumbleweed on it.

It is about installing and configuring Tumbleweed which is a tad bit more frustrating than I hoped for.

In practice unixoids aren’t as heavenly as many geeks pretend them to be.

I got the htmlpreview solution via css – How to see an html page on github as a normal rendered html page to see preview in browser, without downloading? – Stack Overflow.

I might try the github pages in the future.

Sourcecode of htmlpreview is at htmlpreview/htmlpreview.github.com.

–jeroen

via:

Posted in *nix, Development, DVCS - Distributed Version Control, git, GitHub, Linux, openSuSE, Power User, Software Development, Source Code Management, SuSE Linux | Leave a Comment »

Enabling GIT_CURL_VERBOSE to research “unable to get local issuer certificate”

Posted by jpluimers on 2015/05/28

A while ago, I was fighting a corporate web proxy playing Man-in-the-Middle on all https sessions.

Though playing MitM on your employees is a debatable thing to do (especially without informing the employees, and illegal in certain countries, I had to get a GIT connection to the outside world working.

This helped tracking it down: GIT_CURL_VERBOSE “unable to get local issuer certificate”.

What I finally did was this:

  1. obtain the CA certificate that issues the MitM certificate in base-64 CRT form (which is the same as the PEM form):
  2. added it at the top of either of these files:
    • "%ProgramFiles%\Git\bin\curl-ca-bundle.crt"
    • "%ProgramFiles(x86)%\Git\bin\curl-ca-bundle.crt"
  3. added it to the top of either of these files:
    • "%ProgramFiles%\Mercurial\cacert.pem"
    • "%ProgramFiles(x86)%\Mercurial\cacert.pem"

–jeroen

PS: These were the failures I was getting:

Read the rest of this entry »

Posted in *nix, cURL, Development, DVCS - Distributed Version Control, git, PKI, Power User, Security, Source Code Management | Leave a Comment »

HCL:Raspberry Pi – openSUSE

Posted by jpluimers on 2015/05/25

Interesting: HCL:Raspberry Pi – openSUSE.

Posted in *nix, *nix-tools, Hardware Development, Linux, openSuSE, Power User, Raspberry Pi, SuSE Linux | Leave a Comment »

Dynamic DNS through NO-IP: keeping your hosts current, and your NO-IP account happy.

Posted by jpluimers on 2015/05/19

Now that DynamicDNS moved itself to a fully payed service, named it DynDns Pro, then renamed it Remote Access and limiting it to 30 hosts for USD 25 a year, I looked for alternatives, and noticed NO-IP.

I like it for a few reasons:

OK, last year, there was this Microsoft Legal Action and Controversy, but I think that is a once time thing (some people even argue that Microsoft wasn’t thinking), so I created the last script below in PowerShell.

A few open-source scripts to keep your NO-IP account happy (that also work on most other DDNS providers like Duck DNS):

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, CommandLine, Development, Perl, PHP, Power User, PowerShell, Scripting, Software Development | 1 Comment »