wget -O/dev/null speedtest.pixelwolf.ch
nJoy 🙂
wget -O/dev/null speedtest.pixelwolf.ch
nJoy 🙂
list files jobid=23
When not in position to go to the DC to access the ESX text mode interface use the DCUI command:
First you need to enable and start Remote Tech Support (SSH). This is done for the ESXi Host in Configuration -> Software -> Security Profile
Use an SSH client (putty) to connect to the ESXi host.
Once logged in simply run dcui
~ # dcui
Look familiar? Want to change the color to look like the console – check out this post.
To exit DCUI and return to the prompt use CTRL-C
KB article : here
nJoy 🙂
Simple:
# echo “This will go into the body of the mail.” | mail -s “Hello world” you@youremailid.com
nJoy 😉
It’s a common thing to open a file on linux and discover it was flooded with ^M symbols after being editted in windows by some windows user.
The ^M symbol is pretty harmless usually (it is the representation of alternate CR carriage return or move to beginning of line). An old IBM /PCDOS artefact not shared with unix as a requirement for newline.
In vi or vim use the following keystrokes to remove the ^Ms. NOTE the ^V is an escape so will not show in your vim
:%s/^V^M//g
nJoy;
Pending more detail
yum install -y autofs
/etc/autofs.master contains used protocols
/- /etc/autofs.nfs
/etc/autofs.nfs
/mnt/mountpoint -fstype=nfs,rw,soft,intr,rsize=8192,wsize=8192 hostname_or_IP:/mnt/exported_folder
To find out what is exported on a given machine use
showmount -e
nJoy 😉
Hard to find but downloading java from a script (not openjdk in the repos) is not something I found easily.
So here is page with the links:
http://java.com/en/download/manual.jsp?locale=en
nJoy 😉
One of the benefits of using Ubuntu OS is it comes with build-in security/safety/privacy feature. One of this feature is a keyring manager application that stores and manage your password for your credentials. This feature is really useful to keep your credentials safe and no one can unlock them, except you of course, even if your Ubuntu-powered machine (laptop, netbook, etc) got stolen.
(more…)
A common problem when many people share large systems as the same user ( I know .. I know but anyways move on ) is that when you logon you might want to take over where someone else left off. Also sometimes you want to share a session with someone for supervision or just team experience.
Screen tool in linux is fantastic for this. I wrote this script to allow people to be reminded to have a screen session and if already there allow you to log on to the screen by either taking over the session or sharing it with the other user.
installation of screen is as easy as :
sudo yum install screen -y
or for you debbie penguins out there
sudo apt-get install screen -y
The script goes like this :
## Screen profile for user session sharing
## by David Saliba (copyleft) 2013
#!/bin/bash
function greet {
clear
cat /etc/motd
echo "Hostname:" `hostname `
echo
ifconfig | grep inet | egrep -v "inet6|localhost|127\.0\.0\.1"
echo
# df -h /
echo "Welcome ! # No screen session #"
}
function newscreen {
echo "Would you like to create a new session ? (Y/n)"
read -t 10 b
if [[ $b == "N" || $b == "n" ]]; then
{ # Dummy if no just continue
echo
}
else
{
echo " Remember to use <CTRL> + A and then d to leave the screen session active or just disconnect "
echo -n "Creating "
sleep 1; echo -n "." ;sleep 1; echo -n "."; sleep 1; echo -n "."
exec screen -S Workarea
}
fi
}
if [ -z "$STY" ]; then
firstscreen=$(screen -list | grep "(" | cut -f 2 | head -n 1)
# echo $firstscreen
if [ ! -z "$firstscreen" ]; then
{
echo "Found screen ($firstscreen).Do you want to jump on it (Y), or share the session (X)? (Default Y in 10s)"
read -t 10 a
if [[ $a == "N" || $a == "n" ]]; then
{
greet
}
elif [[ $a == "X" || $a == "x" ]]; then
{
echo -n "Joining "
sleep 1; echo -n "." ;sleep 1; echo -n ".";
exec screen -x $firstscreen
}
else
{
echo -n "Connecting and taking over"
sleep 1; echo -n "." ;sleep 1; echo -n ".";
exec screen -r -d $firstscreen
}
fi
}
else
{
greet str3amuK
newscreen
}
fi
fi
Save this script under /etc/profile.d/screen.sh or some other name you will recognize.
SHOW GRANTS; SHOW GRANTS FOR CURRENT_USER; SHOW GRANTS FOR CURRENT_USER(); e.g. SHOW GRANTS FOR root;
mysql> SHOW grants for root;
+———————————————————————————-+
| Grants for root@% |
+———————————————————————————-+
| GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY PASSWORD ‘*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B’ WITH GRANT OPTION |
+———————————————————————————-+
1 row in set (0.00 sec)
mysql>
nJoy 😉