Related cards:
Setup Pentaho ETL server Linux
Todo
- rotate logs
- startup script for carte server
Software
- Setup centos 6.5
- set hostname in /etc/hosts
- start sshd
- turn off iptables
- add EPEL repo
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release...
Grep lines not starting with ; or [ first ^ for start, second ^ for "not"
grep "^[^;[]" /etc/php.ini | less
Rsync tips
rsync --partial --progress --rsh=ssh user@host:remote_file local_file
https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vps
Hackfix mysql replication
If replication is broken by a simple invalid query, i.e. grants change, etc. you can force-skip that query:
stop slave;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
start slave;
show slave status\G
chef & knife - use knife ssh
Example
knife ssh -x sysadmin.a -a ipaddress "chef_environment:stage" uptime
- always define the user with
-x
- always give the ssh attribute
-a ipaddress
for knife to rely on the ip attributes of the search query result - the actual sea...
Using the Job Control of bash to send the process into the background
- Ctrl+Z to stop (pause) the program and get back to the shell
-
bg
to run it in the background. -
disown -h [job-spec]
where [job-spec] is the job number (like %1 for the first running job; find about your number with the jobs command) so ...
Posted by Andreas Wagner to Toolbox Cash on Go's deck (2015-07-13 12:43)