linux:stuff
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
linux:stuff [2015/05/26 13:10] – external edit 127.0.0.1 | linux:stuff [2015/12/11 13:28] – [Install NGinx + PHP + FuelPHP] redox | ||
---|---|---|---|
Line 21: | Line 21: | ||
Source: https:// | Source: https:// | ||
- | # Add AwesomeWM to LightDM session list | + | ## Add AwesomeWM to LightDM session list |
Looks like [[https:// | Looks like [[https:// | ||
+ | |||
+ | ## Show the whole HID descriptors on GNU/Linux | ||
+ | From: [libusb-nabble](http:// | ||
+ | # Unbind the HID driver | ||
+ | cd / | ||
+ | ls | ||
+ | # Find the filename for the interface you want to unbind. Form is: | ||
+ | B-P:C.I | ||
+ | # where B is the bus number, P is a string of port numbers separated by periods, C is the configuration value, and I is the interface number. | ||
+ | echo -n interface-filename >unbind | ||
+ | # When you're done, reattach it | ||
+ | echo -n interface-filename > | ||
+ | |||
+ | ## Install NGinx + PHP + FuelPHP | ||
+ | < | ||
+ | sudo aptitude update | ||
+ | sudo aptitude install nginx php5-fpm php5-cli | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | location ~* ^/ | ||
+ | fastcgi_split_path_info ^(.+\.php)(/ | ||
+ | fastcgi_index index.php; | ||
+ | fastcgi_pass unix:/ | ||
+ | include fastcgi_params; | ||
+ | fastcgi_param | ||
+ | fastcgi_param | ||
+ | } | ||
+ | |||
+ | # Security stuff | ||
+ | location ~ /\.ht { | ||
+ | deny all; | ||
+ | } | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | # wildcard subdomains | ||
+ | server { | ||
+ | listen 80; | ||
+ | |||
+ | server_name | ||
+ | if (!-d / | ||
+ | rewrite . http:// | ||
+ | } | ||
+ | root / | ||
+ | |||
+ | index index.php index.html index.htm; | ||
+ | include php-handler; | ||
+ | } | ||
+ | |||
+ | Link it as enabled | ||
+ | |||
+ | sudo ln -s / | ||
+ | |||
+ | Restart the services | ||
+ | |||
+ | sudo service php5-fpm restart | ||
+ | sudo service nginx restart | ||
+ | |||
+ | wget -O fuelphp-1.7.2.zip http:// | ||
+ | unzip fuelphp-1.7.2.zip | ||
+ | mv fuelphp-1.7.2 / | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | <?php | ||
+ | header(' | ||
+ | ?> | ||
+ | |||
+ | Chmod it correctly: | ||
+ | |||
+ | sudo chown www-data: | ||
+ | </ |
/home/share/www/redox.ws/wiki/data/pages/linux/stuff.txt · Last modified: 2023/11/24 22:19 by redox