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 ‘openSuSE’ Category

How can a partition be full if du does not show it is? (via: linux – Super User) #OpenSuSE #btrfs #snapshots

Posted by jpluimers on 2014/04/09

A long time ago I asked this OpenSuSE/Linux question: How can a partition be full if du does not show it is? – Linux on Super User.

With help of the OpenSuSE forums, I did figure out the source of the problem and solution, but I totally forgot to blog about it.

So below it is, just in case SuperUser ever shuts down, or the StackOverflow moderators are taking over SuperUser as well.

But first the comments in the questions about where I found the source and solution:

I found it through the openSUSE forums: it uses btrfs and snapshots. So the snapshots take up a lot of space. And I need to find out a way to delete old snapshots. forums.opensuse.org/english/get-technical-help-here/…

and

I think I found it: nrtm.org/index.php/2012/03/13/…

I wasn’t alone, so here are some more useful links and links from people asking for help:

–jeroen

PS: here is my SE question on it: linux – How can a partition be full if du does not show it is? – Super User.

Read the rest of this entry »

Posted in *nix, *nix-tools, Linux, openSuSE, Power User, SuSE Linux | Tagged: | 1 Comment »

Heartbleed: Serious OpenSSL zero day vulnerability revealed | ZDNet

Posted by jpluimers on 2014/04/08

The fixed OpenSSL 1.01g is already available in source and for many platforms.

When do they become available anyone using OpenSSL 1.01 or 1.02 must deploy the patched version as fast as possible.

You also need to have all your certificates re-issued.

During the vulnerability period, your private keys may have been exposed, and there is no way to tell that they were not exposed.

Note the official binaries for Win32 1.01g are not available for yet (expect them soon), but the Indy team made Win32 and Win64 versions available.

Note that OpenSuSE did a backport of the patch to 1.01e for 12.3 and 13.1. Older openSuSE versions do not have updates for this issue, but you want to upgrade anything lower than 0.98 as they contain serious other vulnerabilities.

–jeroen

via

Posted in *nix, Delphi, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Linux, OpenSSL, openSuSE, Power User, Security, Software Development, SuSE Linux | 7 Comments »

Some links on ESXi disaster recovery and configuration backup

Posted by jpluimers on 2014/03/27

Just in case the shit ever hits the fan:

Background information:

Notes:

bootbank, altbootbank, backup.sh, auto-backup.sh

Adding your own software to ESXi:

–jeroen

Posted in *nix, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, openSuSE, Power User, SuSE Linux, Virtualization, VMware, VMware ESXi | Tagged: , , | Leave a Comment »

OpenSUSE 12.2: Install package lesspipe and using it from bash

Posted by jpluimers on 2014/03/07

lesspipe is a great tool:

lesspipe.sh is an input filter for the pager less as described in less‘s man page. The script allows you to view files with binary content, compressed files, archives and files contained in archives.

… however getting it to run on OpenSUSE was a bit of a journey as it is not part of the standard OpenSUSE 12.x repository. You can only get ‘unstable’ lesspipe packages, of which the Show home:adra / lesspipe – openSUSE Build Service seems to be maintained most frequently.

This is how to install it from there: Read the rest of this entry »

Posted in *nix, bash, Development, Linux, openSuSE, Power User, Scripting, Software Development, SuSE Linux | 2 Comments »

openSUSE 12.x: today the same system would not plain “reboot” either (was: “A plain `halt` will not shutdown)

Posted by jpluimers on 2014/01/26

A long time ago I wrote about openSUSE 12.x: “A plain halt will not shutdown the system properly.” « The Wiert Corner – irregular stream of stuff.

Well, today, for the very first time, a plain “reboot” didn’t work on this system either showing the same symptom as the “halt”: it would shutdown all services, but not perform an ACPI power cycle.

Luckily the system is still on ESXi, so I could reboot using the ESXi vSphere client.

–jeroen

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

terminal emulator – What is making my cursor ‘randomly’ disappear? (via: Unix & Linux Stack Exchange)

Posted by jpluimers on 2014/01/26

Annoying issue when suddenly the cursor on your OpenSUSE terminal session is gone, but the fix is simple run <a href="http://linux.about.com/library/cmd/blcmdl1_reset.htm" target="_blank" rel="noopener">reset</a>:

it’s possible that your TTY has been mangled by some other program you’ve run. Try running reset and then clear (or ctrl-L) to initialize your terminal.

–jeroen

via: terminal emulator – What is making my cursor ‘randomly’ disappear when using gnome-teminal? – Unix & Linux Stack Exchange.

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

Generate HTML Tables Clean and Fast

Posted by jpluimers on 2014/01/23

I wish I had found about Generate HTML Tables Clean and Fast years ago.

Every once in a while I want to generate the source code for an HTML table with some content easily.

I’ve found no tool doing this in an easy manner and starts in a split second.

But the web page Generate HTML Tables Clean and Fast does.

Correction: did. It is now off-line, but the Blended Technologies » Blog Archive  blog posts about it are still online: Introducing TableGen – The HTML Table Generator and Tablegen Goes Open Source, as is the WayBack machine archive for it.

So I installed Python on my openSUSE server according to Embedding Python In Apache2 With mod_python (… OpenSUSE) | HowtoForge, (could as well have configured in httpd.conf in stead of python.conf: no difference between installing mod_python via httpd.conf and conf.d in apache) then installed the TableGen source there.

(Note: more python.conf examples)

That would still have Python generate a 404 error (uncool: a python generated 404 error does not leave a log of the cause anywhere), not because the index.py was absent, but because it was written in old style “print” statements, not using the new style def index(req); way (thanks Senthil Kumaran, and AJ. for your answer).

So I did some research (this was my first encounter with Python) at for instance Paul Osman : Introduction to mod_python, then rewrote the print parts of the script into string concatenations, then return the full HTML.

(Note: if there is a print "Content-Type: text/html" (for instance demonstrated in Hello World | Web Python), you can omit it, or set the req.content_type like req.content_type = 'text/html' which usually is determined automatically by Python).

That caused quite a few IndentationError: expected an indented block quote errors: python is indentation sensitive (I hadn’t used a language depending on that for ages), and gives a confusing error when you have a colon (:) followed by an unindented docstringPython: I’m getting an ‘indented block’ error on the last 3 quotes (“””).

Then it still didn’t completely work: the form parameters would not be obtained correctly, so I read further, found 3.1 A Quick Start with the Publisher Handler and started to fix that too. That took way too long, so I found out that “mod_python” is not very much maintained any more and “mod_wsgi” is the way to go.

So I disabled the “python” module in YaST2, removed “/etc/apache2/conf.d/python.conf”, then installed the “apache2-mod_wsgi” software package in YaST2, then added the “wsgi” module to HTTP Server Configuration list of Server Modules (it automatically gets enabled) and saved the configuration.

These steps modified the APACHE_MODULES in /etc/sysconfig/apache2, restarted apache with “rcapache2 restart”. You can verify with “httpd2 -M” which modules are loaded. The list should exclude “python_module (shared)” and includes “wsgi_module (shared)”.

Most of this is described in has anyone gotten mod_wsgi working.

Python is whitespace sensitive, but you can have multiple statements on one line. That’s why Python allows semicolons after each statement.

Read Setting up Python with WSGI on Apache for a directory – Stack Overflow.

Read PyCon Conference Slides – Sydney 2010 – Python WSGI adapter module for Apache.

Read Graham Dumpleton: Why are you using embedded mode of mod_wsgi?.

Read Serving Python scripts with Apache mod_wsgi, part I | Leave No Bit Unturned.

Read Parsing the Request – Get | Web Python.

Watch WSGI Tutorial. It explains a lot, including Accessing POST Data from WSGI.

Error “Attempt to invoke directory as WSGI application” -> you cannot do that, there is no way to map a directory to an “index.py” in that directory.

For importing .py files from the same directory as your main .py file:

    import os
    import sys

    directory = os.path.dirname(__file__)
    sys.path.insert(0, directory)

    from webutils import *

Start using The Web framework for perfectionists with deadlines | Django.

A few really cool things about this page:

  • It is a web page, so easy to reach
  • It starts fast
  • You can increase the column/row count without loosing the entered data
    (as it stores the contents as a URL)
  • It can generate a thead for you
    (but not a tfoot)

Generating something like this was a breeze: Read the rest of this entry »

Posted in *nix, Apache2, Development, HTML, Linux, openSuSE, Power User, Software Development, SuSE Linux, Tumbleweed, Web Development | Leave a Comment »

Oops: Sendmail ok on 127.0.0.1 but not ip address

Posted by jpluimers on 2014/01/06

When configuring a fresh SUSE machine, I forgot one tiny detail resulting in Sendmail ok on 127.0.0.1 but not ip address.

Solution:

Please change in /etc/sysconfig/mail from SMTPD_LISTEN_REMOTE="no" to

SMTPD_LISTEN_REMOTE="yes"

then run SuSEconfig

and rcsendmail restart

–jeroen

via: Re: [SLE] Sendmail ok on 127.0.0.1 but not ip address.

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

openSUSE 12.x: disabling smbd CUPS warnings when you have Samba but not printing installed

Posted by jpluimers on 2013/09/06

As Dave mentioned a couple of years ago in an article smbd_unable_to_connect_to_cups_server, even if you have printing disabled in Samba, you can get errors in /var/log/messages like these±

   May  5 09:45:02 www smbd[<pid>]: [2008/05/05 09:45:02, 0] printing/print_cups.c:cups_connect(69)
    May  5 09:45:02 www smbd[<pid>]: Unable to connect to CUPS server localhost:631 - Connection refused

This happens even if you disable the printers and print$ shares from within YaST2.

He proposed a 5-line change in the /etc/samba/smb.conf, but testing this on openSUSE 12.x, shows the actual diff is a lot smaller: just change the entry for printcap name, then add an entry for disable spoolss.

This is the diff of /etc/samba/smb.conf.printing versus /etc/samba/smb.conf: Read the rest of this entry »

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

Resolving base-conflicts installing samba on OpenSUSE 12.x

Posted by jpluimers on 2013/09/02

When installing samba on a “minimal” server openSUSE 12.x can give you a funny error that the install process conflicts with a “patterns-openSUSE-minimal_base-conflicts” package as for instance described in OpenSUSE 12.2 Samba Standalone Server With tdbsam Backend | HowtoForge – Linux Howtos and Tutorials.

The first time I got that message, I was confused, and it took me a while to find out about the meaning of the base-conflicts package, as it was hard to get a Google search query with really meaningful result.

At last I found a Gitorious entry describing the minimal_base-conflicts package:

create a separate minimal_base-conflicts pattern

this allows to keep the minimal_base pattern upon installing a conflicting package. A better solution would be weak-conflicts but we don’t have that atm

From there I found the security request openFATE – #312150: weak conflicts/softlocks/no-recommends for patterns:

Installation of a pattern also draws in packages that are not in the pattern but only recommended by those listed in the pattern. For the “minimal” pattern this behavior is not desirable though as one really wants a minimal installation without the optional stuff.

So basically, the minimal_base-conflicts package allows the minimal_base package to reference package without pulling in a truckload of package (that would basically violate the idea of a “minimal_base” install).

If you want to install one of the truckload (samba is one of them), then you need to uninstall the minimal_base-conflicts package.

–jeroen

via: OpenSUSE 12.2 Samba Standalone Server With tdbsam Backend | HowtoForge – Linux Howtos and Tutorials.

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