Postări

Replace default xWindow mouse theme

Imagine
1. Mouse theme here: https://github.com/keeferrourke/capitaine-cursors 2. How it looks here: https://store.kde.org/p/1148692/ 3. Tutorial here: https://www.xaprb.com/blog/2006/04/24/beautiful-x11-cursors/

Linux commands

Imagine
Useful commands: nohup grep adduser - /home/user useradd - low level userdel (userdel -r {userName}) groups ( cut -d: -f1 /etc/group - list all groups) groupadd useradd -G {groupName} {userName} LINK Links: https://goo.gl/K7c7Dy

Angular 2 - Read JSON file

Imagine
Angular 2 tutorial on how to read a JSON file that can be used as a app.config. Tutorial and steps here : https://github.com/alexandru360/Angular2ReadConfigFile

RaspberryPI useful links

Imagine
https://kr15h.github.io/RPi-Setup/ https://ibeblog.com/2014/04/23/minibian-first-steps/ https://minibianpi.wordpress.com/

Useful linux commands

Ubuntu: Check to see if a package is installed dpkg -l | grep {package_name} Kill some process ps aux | grep {process name} kill {number} Docker: #!/bin/bash # Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q)

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