linux:stuff
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | linux:stuff [2023/11/24 22:19] (current) – redox | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | # Stuff | ||
+ | ## Pair Firefox29 with Owncloud mozilla_sync | ||
+ | |||
+ | * Go to your Owncloud installation `https:// | ||
+ | * Open `about: | ||
+ | * Create: `services.sync.username < | ||
+ | * Restart Firefox | ||
+ | * Go to: Preferences -> Sync -> Setup Firefox sync (you should see the old UI now) | ||
+ | * 'I Have an Account' | ||
+ | * 'I don't have the device with me' | ||
+ | * ' | ||
+ | * ' | ||
+ | * ' | ||
+ | * ' | ||
+ | |||
+ | To generate the hash: | ||
+ | <code python> | ||
+ | print base64.b32encode(hashlib.sha1(" | ||
+ | |||
+ | Source: https:// | ||
+ | |||
+ | ## Add AwesomeWM to LightDM session list | ||
+ | |||
+ | 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: | ||
+ | </ |