суббота, 31 октября 2015 г.

Xbox gamepad on linux

Installing
# dnf install xboxdrv kernel-modules-extra

kernel-modules-extra reuired for creating /dev/input/jsX devices

For autodetect gamepad
# systemctl enable xboxdrv
Disable xpad
# rmmod xpad
# echo 'blacklist xpad' > /etc/modprobe.d/xpad.conf

Manual run gamepad
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1345:6006 Sino Lite Technology Corp. Defender Wireless Controller

Avalible types can find in
$ man xboxdrv

# xboxdrv --type xbox360 --device-by-id 1345:6006 --force-feedback --silent --mimic-xpad-wireless

вторник, 20 октября 2015 г.

Capistrano conflict fix

You can solve gem conflict used bundler

Here example how uise it:

# gem install bundler
 
$ bundler init
 
Put this into Gemfile 
 
source 'https://rubygems.org'

gem 'capistrano', '~> 2.12.0'
gem 'railsless-deploy', '~> 1.0.2'
 
 
Now intall bundle gems with dependings 
$ bundle install

and run it
$ bundle exec cap deploy