root ~ # hostnamectl set-hostname --static "YOUR-HOSTNAME-HERE"
nJoy π
root ~ # hostnamectl set-hostname --static "YOUR-HOSTNAME-HERE"
nJoy π
yum install gcc-c++ make openssl-devel
wget http://nodejs.org/dist/v0.8.15/node-v0.8.15.tar.gz tar zxvf node-v0.8.15.tar.gz cd node-v0.8.15 ./configure make make install
yum install git git clone git://github.com/joyent/node.git cd node ./configure make make install
nJoy π
This is quite a common issue with X11 upgraded on a Centos Minimal.
quick fix ( not perfect but gets the system through the hump :
dbus-uuidgen > /var/lib/dbus/machine-id
This should fix the issue.
nJoy π
This is the basic structure for a node.js package file
{
"name": "Express-Basic",
"description": "Demonstrating Express",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "3.x"
}
}
nJoy π
Assume you do not have curl/telnet/netcat (or nc does not support -z as in later versions ?? why did they remove it ?? ) the following will work on any recent Bash version.
(echo > /dev/tcp/skinner/22) >/dev/null 2>&1 && echo "Port is open" || echo "Port is closed"
nJoy π
So you have a script on the local machine and you want to run it remotely and pass arguments to it :
ssh user@remote 'cat | bash /dev/stdin param1 param2 .. paramN' < /usr/scripts/localscript.sh
π nJoy
aws iam update-user –user-name suse-dev –new-user-name sqs-dev
nJoy π
tcpdump -s 0 -l -w - dst port 3306 | strings
nJoy π
esxcli network ip neighbor list
njoy π
sudo yum --enablerepo epel-testing install s3cmd
njoy π