Syndicate content

Page list for Linux

  • Working on a PHP application setup, I stumble upon a problem. Going to the installation page, I got the dreadful error:

    Forbidden

    You don't have permission to access <root-path>/admin/install on this server.

    Looking at the error logs, the only thing reported was:

    client denied by server configuration

    The fact is that Apache does not tell you which setting actually forbids the access. I guess that's because once it gets checked by Apache, it is a blend of all the settings and not a tree being followed.

    Looking a round, and since I already had that error not too long ...

  • How to force a download of any file in a CGI script

    I have been wondering for a while, now I have the answer, so I can share it with you guys.

    Your script has to do the following steps:

    1. Print a header which at least includes:

      1. Content-Type: application/force-download

        (you can also use octet-stream instead of force-download)

  • Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

  • As I upgraded from Ubuntu 10.04 to 11.04, I got a bit of a surprise... many system windows started using a new type of scrollbar that is pretty much unusable (at least it slows down my production time on my desktop.)

    Yes, these invisible scrollbars (which they call Overlay Scrollbar) are... invisible. Now you have to hover the mouse at the right place to get arrows that you can grab and move up and down. Oh! Did I say that you have to however in one place and these arrows, on purpose, appear AWAY from your mouse? This means you need to then move the mouse over those arrows before you can

  • In order to playback a DVD you need to make use of commercial encryptions (also called codecs.) Actually Ubuntu calls them "non-free". The reality is these are patented and protected so people cannot just ripoff a DVD. Which is not true at all since pretty much any computer can play DVDs and thus can copy all the data. Anyway, because Ubuntu is by default for free software, it doesn't include all the necessary DVD stuff. This being said, they provide 100% of all the necessary code, pre-compiled and all you have to do is install it all with apt-get as follow.

    (You must be root to ...

  • At some point in time, I upgraded Ubuntu and my Gnome Keyring stopped working. So each time I do ssh I have to enter the password at the prompt and that's a bit annoying after a while (depends how much I access the servers, obviously.)

    I read many threads ZERO of them gave me an answer I want to hear. All of them speak of things that do not make sense in that situation. So I tried to install a brand new clean 14.04 server + ubuntu-desktop and guess what... Gnome Keyring is installed and everything makes me think that is is correctly installed (I get the correct SSH_AUTH_SOCK value) and ...

  • [vtoc title=Boot Sector; minlevel=1; maxlevel=4;]

    Error 16

    Today I got an error 16 with GRUB on one of my machines. This had happened before so I did not worry too much. It is just quite annoying.

    Ubuntu CD

    A Ubuntu boot CD has a cool feature one can use to rescue such a system (i.e. re-install GRUB properly.) More or less, boot the CD, select the rescue mode, let it do its things for a moment (after you select options like keyboard, etc.)

  • What a surprise!

    Today, by mistake, I loaded a URL in gVIM instead of my browser. The mind going silly I guess since I had to type :e<space> to load, as usual...

    And to my surprised, it loaded something. Yes! It actually sent the necessary HTTP request and shown the reply in my gVIM window!

    What does this mean? Well! That means I can check out my websites directly in gVIM to see whether they worked as I expected.

    Fantastic! If you ask me... 8-)


    Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

    Mon Aug 11 21:31:57 2008 [pid 12033] CONNECT: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12032] [alexis] OK LOGIN: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12034] [alexis] FAIL DOWNLOAD: Client "192.168.2.11", \
                   "{fullpath to}/ubuntu-8.04.1-server-amd64.iso", 0.00Kbyte/sec
    

    I read that permissions could be wrong. Not the case.

    The firewall has some REJECT and DROP rules. None of which would increase when I was getting the FAIL DOWNLOAD message.

    The fact was that the FedoraCore system firewall was not accepting the connection. That's why it would fail. I thus opened the firewall a bit by adding a rule like this:

    -A INPUT -i eth0 -p tcp -m tcp -s 192.168.2.1 -d 192.168.2.2 --sport 20 -j ACCEPT

    Then it finally worked.

    Note that I am using FTP in non-passive mode. This is important because I do not want to open "random" ports on my server. There is nothing to control that in vsftpd as far as I know. Which sucks. My company's FTP server will automatically change the firewall and open ports as required. Once the FTP connection ends, the port is closed in the firewall. This means the port is open only very temporarily.

    Anyway, all that to say that the message FAIL DOWNLOAD blah means nothing when it could be telling you: could not connect to client. At least that way you'd know right away what's wrong.

    Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

    Mon Aug 11 21:31:57 2008 [pid 12033] CONNECT: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12032] [alexis] OK LOGIN: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12034] [alexis] FAIL DOWNLOAD: Client "192.168.2.11", \
                   "{fullpath to}/ubuntu-8.04.1-server-amd64.iso", 0.00Kbyte/sec
    

    I read that permissions could be wrong. Not the case.

    The firewall has some REJECT and DROP rules. None of which would increase when I was getting the FAIL DOWNLOAD message.

    The fact was that the FedoraCore system firewall was not accepting the connection. That's why it would fail. I thus opened the firewall a bit by adding a rule like this:

    -A INPUT -i eth0 -p tcp -m tcp -s 192.168.2.1 -d 192.168.2.2 --sport 20 -j ACCEPT

    Then it finally worked.

    Note that I am using FTP in non-passive mode. This is important because I do not want to open "random" ports on my server. There is nothing to control that in vsftpd as far as I know. Which sucks. My company's FTP server will automatically change the firewall and open ports as required. Once the FTP connection ends, the port is closed in the firewall. This means the port is open only very temporarily.

    Anyway, all that to say that the message FAIL DOWNLOAD blah means nothing when it could be telling you: could not connect to client. At least that way you'd know right away what's wrong.

    Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

    Mon Aug 11 21:31:57 2008 [pid 12033] CONNECT: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12032] [alexis] OK LOGIN: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12034] [alexis] FAIL DOWNLOAD: Client "192.168.2.11", \
                   "{fullpath to}/ubuntu-8.04.1-server-amd64.iso", 0.00Kbyte/sec
    

    I read that permissions could be wrong. Not the case.

    The firewall has some REJECT and DROP rules. None of which would increase when I was getting the FAIL DOWNLOAD message.

    The fact was that the FedoraCore system firewall was not accepting the connection. That's why it would fail. I thus opened the firewall a bit by adding a rule like this:

    -A INPUT -i eth0 -p tcp -m tcp -s 192.168.2.1 -d 192.168.2.2 --sport 20 -j ACCEPT

    Then it finally worked.

    Note that I am using FTP in non-passive mode. This is important because I do not want to open "random" ports on my server. There is nothing to control that in vsftpd as far as I know. Which sucks. My company's FTP server will automatically change the firewall and open ports as required. Once the FTP connection ends, the port is closed in the firewall. This means the port is open only very temporarily.

    Anyway, all that to say that the message FAIL DOWNLOAD blah means nothing when it could be telling you: could not connect to client. At least that way you'd know right away what's wrong.

  • I found the following in my logs, and thought it was very funny:

    198.20.87.98 - - [22/Dec/2015:21:43:42 -0800] "GET / HTTP/1.1" 444 5666 "-" "-"
    198.20.87.98 - - [22/Dec/2015:21:43:42 -0800] "GET /robots.txt HTTP/1.1" 444 5666 "-" "-"
    198.20.87.98 - - [22/Dec/2015:21:43:42 -0800] "GET /sitemap.xml HTTP/1.1" 444 5666 "-" "-"
    198.20.87.98 - - [22/Dec/2015:21:43:58 -0800] "quit" 405 5461 "-" "-"

    The person who wrote this robot is not sending me who he is (last ...

  • Earlz found a way to hack the NVG510 device and wrote a page about it: Rooting The NVG510 from the WebUI

    He also offers a page that one can use to allow telnet connections to the NVG510 (by default it is locked up.) From there you can allow ssh and tftp connections too.

    Note that this means if you are logged in your NVG510 and you click on a link on a bad server, you could actually allow remote connections from anyone! So that's a dangerous back door, although if you are not logged in the Web interface, then it is fine (assuming you do not then log in without thinking!?)

    Just in case ...

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.

  • Breezy
  • POST
  • RAID

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

  • cl

    cl is the C and C++ compiler of Microsoft. This is the default compiler used by Visual Studio when compiling C or C++ files.

  • favicon

    Favorite Icon was first created by Microsoft. Like many other website features, Internet Explorer expects their favicon.ico file in the root of your website. FireFox and other browsers properly support the link tag named shortcut icon.