In this “cut to the chase” tutorial I’ll show you how to clone Github repo using ssh on Mac OS or Linux (so that you won’t need to use password).
Continue reading How to clone Github repo using SSHTag: Linux
When copying a large file on Linux transfer hangs at the end… And you want to f**king kill someone.
There’s an annoying bug in almost every Linux distribution I’ve worked with. When your copying a large file to usb device (pendrive etc.) it hangs at the end (I mean it haaaaaaaaaaaaangs).
I’ve found a solution that works on Elementary and Ubuntu (at least).
Simply paste this two commands in your terminal:
sudo sh -c 'echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes'
sudo sh -c 'echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes'
Add this to some kind of startup script and forget about transfer problems…
Screenshot from console on Raspberry Pi
I’m building a fleet of distributed Raspberry multimedia players and I’ve decided to start with a few terminal commands to manage them.
Let’s begin with a screenshot of current screen contents.
Continue reading Screenshot from console on Raspberry PiNew selfpacker.sh version
Click read more to review changes and source.
Continue reading New selfpacker.sh versionBulletproof method of how to convert Raspberry Pi into kiosk
I’ve tried lots of tutorials but nothing seems to work with newer versions of Raspbian. So I’ve decided to write my own simple tutorial on this matter.
Continue reading Bulletproof method of how to convert Raspberry Pi into kiosk
Easiest way to headless Debian
This article will provide instructions for anyone interested in using headless Debian (or any derivatives).
How to unfreeze KDE’s plasmashell?
I’m using Debian 9.4 and this freaking KDE5 is freezing very often! What you can do when your desktop stops responding? Restart computer? Use ALT+CTRL+F1…12? Nah! There’s a better solution!
Simply edit your ~/.bash_aliases:
nano ~/.bash_aliases
And append to it:
alias restart-plasma='kquitapp5 plasmashell && kstart plasmashell'
Now whenever your plasma desktop starts trolling you, go to your console and type restart-plasma voilà! Dezombified!
PS. Use tilda to open console in every shitty situation you’ll get into! Simply press F12 and you’ll get nice Quake like terminal.
How to remove non ASCII chars from filenames in current directory?
That’s easy:
find ./ -depth -exec rename -v 's/[^[:ascii:]]/_/g' {} \; | cat -v
How to get rid of :Zone.Identifier files
Everyone who uses Windows inside Virtualbox on Linux machine (and shares host folders) knows this problem.
How to find network device using it’s manufacturer name?
I’ve previously posted a note about finding Raspberry Pi without knowing it’s ip address. Well, basically it’s the same… Only you need to change MAC prefix to find other manufacturer. To wrap this is up, this is a command to find device by MAC prefix:
sudo nmap -sP 192.168.100.0/24 | awk '/^Nmap/{ip=$NF}/00:D0:23/{print ip}'
And here you can find actual MAC information (use CTRL+F).
Of course you need Nmap to do that! And sudo is necessary!
Beware that sometimes there might be many prefixes for one manufacturer. Also check company name precisely, for example HP is Hewlett Packard but it also can be ProCurve Networking by HP.