Everyone knows that crontab entries look like this:
* * * * * /usr/local/bin/my-script
Which will execute command “my-script” every minute.
Continue reading “Cron @reboot execute command on system start like rc.local”
tips’n’tricks
Everyone knows that crontab entries look like this:
* * * * * /usr/local/bin/my-script
Which will execute command “my-script” every minute.
Continue reading “Cron @reboot execute command on system start like rc.local”
Screen session runs automatically when the machine boots, but when I try to resume it with
screen -r
It states that:There is no screen to be resumed.When you do ps aux you can see that there is a running process: Continue reading “How to recover screen session that can not be resumed”
I have Debian Jessie installed on gk802 Android stick running Freescale i.MX6 quad core CPU. Often I faced issues with kernel panic when allocating pages, which leaves stick unusable.
To mitigate this issue add following to your /etc/sysctl.conf Continue reading “How to prevent kernel panic when allocating page on android sticks running linux”
To keep SSH connection alive you must edit your ~/.ssh/config file (if the file does not exist create it) and enter the following on top of the file:
Host * ServerAliveInterval 60
First line applies this config to all hosts (*), and the second one is interval when to send keepalive packets in seconds (60).
Put this into ~/.bashrc file of your account (if the file does not exist, you create it):
shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
In order for this to start working you need to log out and in again.