Postări

Se afișează postări cu eticheta Linux

Lirc - tutorial fix

Imagine
In order for the tutorial here to work with the raspberry pi minibian edition after step  4. Restart the LIRC function edit the /boot/config.txt and add this line: dtoverlay=lirc-rpi,gpio_in_pin=18 then reboot the raspberry pi and continue with the tutorial steps from  here . sudo apt-get update sudo apt-get upgrade  sudo apt-get install lirc -y follow tutorial here Lirc command list here:  https://www.ocinside.de/modding_en/linux_ir_irrecord_list/ sudo irrecord -f -d /dev/lirc0 ~/lirc-files/lircd.conf (do not forget here to put a nice name to the remote) Ex: irsend SEND_ONCE wpoolair KEY_POWER   Transform from row to hex ! irrecord -a /etc/lircd.conf Inspired by : https://gist.github.com/prasanthj/c15a5298eb682bde34961c322c95378b http://www.raspberrypiwiki.com/index.php/Raspberry_Pi_IR_Control_Expansion_Board#Introduction http://www.lirc.org/html/irrecord.html http://www.lirc.org/html/irsend.html

Raspberry PI - Game streamming

Disclaimer you must have Nvidia 6xx card and up for this to function Steps for achieving this: 1. Close steam games if any opened 2. Install Nvidia gforce experience and all drivers/programs 3. Install Raspberry PI jessie here 4. sudo nano /etc/apt/sources.list Add : deb  http://archive.itimmer.nl/raspbian/moonlight jessie main Ctrl X; Y - overrite; Enter 5. sudo apt-get update 6. sudo apt-get install moonlight-embedded 7. moonlight pair x.x.x.x - the PC ip address can be found with ipconfig from command window(cmd) 8. Add the code from Linux console to your pc 9. Finally moonlight stream (moonlight stream -1024 -Fps - and eventually program/game) PS: I have found out that if you launch all these commands from raspberry pi not from ssh you can stream the entire PC desktop and not only the designated program but you have to launch moonlight only with stream Eg: moonlight stream Good luck

Tutorial - Automount Usb Device

1.List all usb devices: sudo blkid 2. Create the directory where you want to mount the partition: mkdir /mnt/MyDir 3. Edit /etc/fstab add line: /dev/sda[X] /mnt/MyDir [ext4] defaults,noatime 0 0 instead of X and ext4 go with appropriate key words Ex: for me is: /dev/sda1 /mnt/MyDir ext4 defaults,noatime 0 0 Last step reboot or you can mount everything right now: sudo mount /dev/sda1 /mnt/MyDir

Root login - ssh

Simply adding a password for root is not enough for Ubuntu 14.04 Server. You also need to edit  /etc/ssh/sshd_config , and comment out the following line: PermitRootLogin without-password Just below it, add the following line: PermitRootLogin yes Then restart SSH: service ssh restart