Category: Linux

AWSLinux
2025-01-15 12:02 (13 months ago)

The blog post provides a method to forcefully specify and install AWS CLI version 1 when attempting to install using the command `sudo snap aws-cli`, which by default installs version 2.

Linux
2024-06-13 03:09 (20 months ago)

Here is a note on how to install Google Chrome For Testing 126 and chromedriver 126 on Ubuntu 22.

DockerLinux
2022-06-12 02:55 (3 years ago)

When trying to use the `docker run` command with SSH arguments and encountering the message "ssh docker run the input device is not a TTY," you can resolve the issue by adding the `-t` option to the SSH command.

Linux
2021-02-01 02:17 (5 years ago)

After building a PC and installing Ubuntu, I noticed that the logical partition in LVM was not utilizing the entire storage capacity, so I decided to extend it.

Linux
2018-01-10 06:40 (8 years ago)

Depending on the use case, this serves as a personal memo. Ubuntu.

DjangoLinux
2017-09-11 08:35 (8 years ago)

Ubuntu 14.04

Linux
2017-06-06 10:56 (8 years ago)

This is a guide on how to install ChromeDriver on Ubuntu.

Linux
2017-02-03 00:40 (9 years ago)

Trying to run Selenium on Ubuntu from Python

DjangoLinux
2016-09-16 03:24 (9 years ago)

Originally, the configuration was AWS ELB -> Apache2 -> mod_wsgi, but after changing the Django server to use uWSGI, the configuration became AWS ELB -> Apache2 -> uWSGI. After this change, I started experiencing issues with Django's CSRF authentication, such as when submitting a login form. When I checked with DEBUG = True, I saw the following message: Access Forbidden (403) The request was aborted due to failure in CSRF verification. Help Reason given for failure: Referer checking failed - https://example.com.com/some-path/ does not match any trusted origins. In general, this can occur when there is a genuine Cross-Site Request Forgery, or when Django's CSRF mechanism has not been used correctly. For POST forms, you need to ensure: Your browser is accepting cookies. The view function passes a request to the template's render method. In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL. If you are not using CsrfViewMiddleware, then you must use csrf_protect on any views that use the csrf_token template tag, as well as those that accept the POST data. You're seeing the help section of this page because you have DEBUG = True in your Django settings file. Change that to False, and only the initial error message will be displayed. You can customize this page using the CSRF_FAILURE_VIEW setting. The ELB receives HTTPS, sends requests to Apache on port 80, and uWSGI is listening for HTTP protocol (not uWSGI protocol). The Apache configuration is as follows: ProxyPass / http://127.0.0.1:8081/ ProxyPassReverse / http://127.0.0.1:8081/ Alias /static/ /var/django/xxxxx/staticfiles/ ProxyPass /static/ ! Something like this. Upon searching the Django code, I found in csrf.py: REASON_BAD_REFERER = "Referer checking failed - %s does not match any trusted origins." It appears that adding the domain to CSRF_TRUSTED_ORIGINS should work. CSRF_TRUSTED_ORIGINS = [".example.com"] This should do the trick.

Linux
2015-09-08 11:56 (10 years ago)

cd /tmp/ wget "http://dev.mysql.com/get/mysql-apt-config_0.3.5-1ubuntu14.10_all.deb" sudo dpkg -i mysql-apt-config_0.3.5-1ubuntu14.10_all.deb # Server -> MySQL 5.6 -> Apply sudo apt-get update sudo apt-cache policy mysql-server sudo apt-get install mysql-server (Reconfigure: sudo dpkg-reconfigure mysql-apt-config )

Linux
2015-06-11 06:28 (10 years ago)

As I wrote in this article http://b.ytyng.com/a-61/, when you make an HTTPS connection with OpenSSL 1.0.1f and attempt to connect using TLS1.2 by issuing a hello, certain sites may freeze in response.

Linux
2015-06-11 05:50 (10 years ago)

When attempting to communicate using TLS1.2 with a specific web server and OpenSSL versions 1.0.1a to 1.0.1f, OpenSSL may freeze.

Linux
2015-05-13 01:35 (10 years ago)

Removing the trailing / from $1

Linux
2014-04-07 09:49 (11 years ago)

I tried to install Redmine on Cent OS 5.9.

Linux
2013-08-03 01:29 (12 years ago)

I was thinking of creating an internal information sharing service using a Wiki. However, considering that non-developers would also be using it, I thought it would be best to have one with a WYSIWYG editor.

Linux
2011-07-18 14:56 (14 years ago)

Ubuntu 11.04

Categories

Archive