Getting Apache configured on a *nix installation like openSUSE installation is always a bit of a challenge.
A few things I observed: Read the rest of this entry »
Posted by jpluimers on 2014/04/24
Getting Apache configured on a *nix installation like openSUSE installation is always a bit of a challenge.
A few things I observed: Read the rest of this entry »
Posted in *nix, Apache2, Linux, openSuSE, Power User, SuSE Linux | 2 Comments »
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.
Posted in *nix, *nix-tools, Linux, openSuSE, Power User, SuSE Linux | Tagged: snapshots | 1 Comment »
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 »
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: disaster recovery plan, Server Fault, VMware | Leave a Comment »
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 »
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 »
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
Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Tagged: terminal emulator, terminal session, TTY | Leave a Comment »
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 likereq.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 docstring: Python: 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:
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 »
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/mailfromSMTPD_LISTEN_REMOTE="no"to
SMTPD_LISTEN_REMOTE="yes"then run
SuSEconfigand
rcsendmail restart
–jeroen
Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »
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 »