linux:stuff
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:stuff [2015/09/21 19:09] – redox | linux:stuff [2015/12/08 16:26] – [Show the whole HID descriptors on GNU/Linux] redox | ||
---|---|---|---|
Line 26: | Line 26: | ||
## Show the whole HID descriptors on GNU/Linux | ## Show the whole HID descriptors on GNU/Linux | ||
+ | From: [libusb-nabble](http:// | ||
# Unbind the HID driver | # Unbind the HID driver | ||
cd / | cd / | ||
Line 37: | Line 37: | ||
echo -n interface-filename > | 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