Syndicate content

Page list for Linux

  • As we are working on a new website, we had a problem where a redirect would not work. I tried both: a simple Redirect and a RedirectMatch as follow:

    Redirect / http://finball.m2osw.com/
    RedirectMatch permanent ^(.*)$ http://finball.m2osw.com$1

    Both of these entries would not work at all.

    I verified, to make sure, that the alias module was turned on. It was.

    ls -l /var/apache2/mods-enabled

    This did list the alias.conf and alias.load entries as expected.

    So? What else?

    Well... This was installed on a new server and we left the default entry in there:

    ls -l ...
  • I got a new word press website a couple days ago and got it installed in the last few days. There were 3 images missing so I started working on getting them in. When I got the first image, I went to Wordpress and I got an error... with no detailed explaination (maybe there is a log, but I don't know Wordpress that well to tell.)

    The error message was just: IO Error

    I was pretty sure that the problem was just that the folder where Wordpress tries to upload the new content was write protected from the Apache user. Under Ubuntu and Debian, the default name for that user is www-data and

  • Today I noticed that I had quite a few 404 errors on one of my websites. That one uses Wordpress that I got from someone else. Because I wanted to include a blog, I had to change the login name and Wordpress does not allow you to do that by default.

    So to change the login and password, I directly edited the database makeing user 1 me, essentially.

    I replaced the user_login and user_nicename with my own name. This worked just fine. At least at first it looked like everything was working right. Then I noticed that the author link had my name in it. The one with the space. Something like ...

  • The other day, I setup a small script to send file on an FTP. That was a long time since I had done anything like that and was not really thrilled, but I'm working for a client.

    The FTP worked pretty well. The upload was going for a while. According to wput, if the connection is lost, it automatically retries and continues the transfer. It got stuck 3 times on me. For hours. No retry. Zilch.

    Now, I updated my files on my end and then started the transfer again. Had to wait forever, although that is not the direct fault of wput, when it gets stuck mid-way, it's bad.

  • Setup

    When writing a CRON job script that you want to install under /etc/cron.*/job-name you must remember to apply the following steps:

    1. Write the script and test it as root

    2. Make sure to give it execution permission, usually 755

    3. The ownership is expected to be root:root

    4. The filename cannot include a period or the file it completely ignored

    5. The script MUST start with #!/bin/sh or an equivalent (i.e. #!/bin/bash works too.)

    6. Use full paths for most everything1

    • 1. Remember that the cron environment is minimal, you generally will have PATH defined and not much

  • In cmake, you have a cool feature which allows you to create a file.

    First you use a WRITE, then you use the APPEND to add more lines to the file.

    That file may be a shell script, though. In that case, you run in a problem whenever you want to write a variable which uses the curly brackets (as in ${TEST}), because cmake sees those as its own variables.

    There is an example of script that we use in our Snap! development.

    file( WRITE  ${lint_script} "#!${BASH}\n"                                                            )
    file( APPEND ${lint_script} "if test \${3##*.} = ...
  • I got a bad one today with Debian which took me an extra hour (at least) to find out.

    It can happen to you and that's why I'm writing this page:

    X11 starts and quits right away without any error — I had some errors about the system not being able to load some modules, I removed them by fixing my XFree86 configuration file. Really, there was no errors.

    Ha! But there was ONE error. 

  • Today I finally resolved a problem I had for a while on one of my computers.

    When logging in using the normal lightdm X11 login screen, directly on the computer, I would get an error and absolutely no menu, no icons, no keyboard functionality, no unity, no nautilus... The only thing I had working was the background which gave me access to the settings, but nothing else. More or less, nothing useful.

    I just had an idea and then I found a comment form a user on a forum who said that he just deleted his .config and .compiz directories and rebooted. After that it worked for him. It worked for me ...

  • Note: This bug is fixed in Ubuntu 16.04

    Working on a website I have to convert invoices to PDF so end users have the ability to print and share the invoices from the website.

    In order to do that, I generate an HTML page with the invoice which also gets displayed in the website, and then convert that HTML to PDF with xhtml2pdf. I use that tool instead of whtmltopdf because it does not require X11 to work. The other tool is said to require Qt and X11 and we do not want those things on our backend servers.

    So... I upgraded to 14.04 and the tool stopped working with an ugly error:

     ...
  • I started the stock SeaMonkey browser by mistake as my Unity icons disappeared (i.e. seamonkey as is on my command line started /usr/bin/seamonkey which is not the correct version!) This had several bad side effects. For of all, it destroyed my bookmarks (argh!) and then it decided to install the 64bit Flash plugin. That did not work well since the version I like is a 32bit version.

    Once I had the correct version started again, each time it was trying to open a Flash animation, it would be "stuck" for a few minutes, until I tried to open a page with a movie in a Flash shell. That ...

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.

  • RAID

    Redundant Array of Independent Disks most often used to have your data duplicated between multiple disks for safety and fast access.

  • combobox
  • delete
  • ps

    Unix command line tool used to list processes currently running. On some older Unices, it would also show zombies (processes that have exited but with parents who have not yet acknoledged their death.)

  • warning