Thanks to antville.org
Know more about your server

You can get information about the make, model and serial number of the equipment as shown below:

dmidecode -t system

What is the maximum RAM supported by the system?

dmidecode -t 16

Currently installed RAM

cat /proc/meminfo | grep -i memtotal

Memory slots occupied

/usr/sbin/dmidecode -t 17 | grep -i size

// know more about running processes

dstat

... Link (0 comments) ... Comment


Sending file attachments

Here is a quick way to send files from any server where mutt is installed.

echo "Attaching a file " | mutt -s "file attachment" -a /root/somefile.txt -- your.name@gmail.com

... Link (0 comments) ... Comment


correcting date

A few packages are dependent upon the server time. If the date is incorretly set, it will throw an exception as shown below.

s3cmd ls

ERROR: S3 error: 403 (RequestTimeTooSkewed): The difference between the request time and the current time is too large.

/sbin/ntpdate ntp.ubuntu.com

Afer updating the date using ntpdate command, the s3cmd command started working as expected.

date command can also be used

date +%Y%m%d -s "20130514"

... Link (0 comments) ... Comment


Install latest mysql

Set up git:

yum install git-core
cd ~/.ssh
ssh-keygen -t rsa -C "shantanu.oak@gmail.com"

Contents of the file "id_rsa.pub" should be copied to gitHub site.
On the GitHub site Click “Account Settings” > Click “SSH Public Keys” > Click “Add another public key”

This will allow passwordless access to github site:
ssh -T git@github.com


Global setup:

git config --global user.name "Shantanu Oak"
git config --global user.email shantanu.oak@gmail.com


Next steps:

mkdir syllabalize_unicode
cd syllabalize_unicode
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:shantanuo/syllabalize_unicode.git
git push -u origin master


Existing Git Repo?

cd existing_git_repo
git remote add origin git@github.com:shantanuo/syllabalize_unicode.git
git push -u origin master


clone (download) the source
git clone git@github.com:ahiguti/HandlerSocket-Plugin-for-MySQL.git


Install MySQL

mkdir download
cd download
wget files.directadmin.com
wget files.directadmin.com
wget files.directadmin.com
wget files.directadmin.com

The commands are as follows:

rpm -iUh *

After installing mysql shared compact library, this was working as expected

wget ftp://ftp.isu.edu.tw/pub/Unix/Database/MySQL/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
rpm -ihv MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
yum install php-mysql --skip-broken


Here is how it can be achieved using remi or epel

/usr/bin/wget rpms.famillecollet.com
/bin/rpm -Uvh .rpm
/usr/bin/yum install --enablerepo=remi mysql-server.x86_64

Using epel:

wget download.fedoraproject.org
rpm -Uvh epel-release-5-4.noarch.rpm
yum install python26

... Link (0 comments) ... Comment


SSH Tunneling

Tunneling an ssh connection through an ssh connection is completely lawful, but you need to pick unused ports for your forwarding listeners.

ssh user@100.100.100.100 -L 2201:192.168.25.100:22

then
ssh localhost -p 2201

You should end up on server B (unless something's already bound to local:2201, in which case, pick another port).


There are times when you need to connect to a remote server through some other server. You can skip logging to an intermediate server and connect directly to remote server using SSH like this...

ssh -t -t root@192.168.1.1 "ssh -i /root/remote_server.pem ec2-1-2-3-4.compute-1.amazonaws.com"

... Link (0 comments) ... Comment


setting cron from a file

To upload the cron job from a file to another user, combine it with -u option.

crontab -u root /home/oracle/mycronjobs.txt

... Link (0 comments) ... Comment


log output as well as show on screen

log a command to console and to 2 files separately stdout and stderr

command > >(tee stdout.log) 2> >(tee stderr.log >&2)


Real full backup copy of /etc folder

rsync -a /etc /destination

... Link (0 comments) ... Comment


yum install tips!

If your repository is available on a server for e.g. 10.10.10.6, you need to point it to that server in your config file.

cat /etc/yum.repos.d/rhel.repo

[base]
name=RHEL 5 $releasever - $basearch - Base
baseurl=10.10.10.6
enabled=1
gpgcheck=0

... Link (0 comments) ... Comment


Net connectivity from server

If the internet is not working from a server, you need to change one file.

cat /etc/resolove.conf

nameserver 8.8.8.8
nameserver 10.10.10.1
nameserver 10.10.10.6

/etc/init.d/network restart

The mail command will not work if the internet is down.

... Link (0 comments) ... Comment


Cache Service installation

Download and Install redis from www.redis.io or use the following commands on the target server.

$ wget redis.googlecode.com
$ tar xzf redis-2.2.8.tar.gz
$ cd redis-2.2.8
$ make

Start the redis server. To start the redis server please use the following command
$src/redis-server

configure the redis server ip in the Java properties file (cache.server) and ip (cache.port). The default port is 6379.

... Link (0 comments) ... Comment


Online for 6297 days
Last modified: 11/21/19 1:09 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
November 2019
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
October
Recent updates
Very useful I needed this
thank you! Between the house cleaning and the tow trucks...
by MarbD (11/21/19 1:09 AM)
Bucket list one of my
favorites sites www.drawinnovations.com
by Monica11 (11/20/19 9:04 PM)
Incredible post! This is
greatly amazing. | roofing contractors near me
by Danielperez123 (11/20/19 8:03 PM)
Nice Antville.org is a great
article to be discussed! Thanks. Medical Converting Company
by Danielperez123 (11/20/19 6:26 PM)
Hello, Thank
you soo much for this great code of java. I am trying...
by Martin Moolley (11/20/19 11:37 AM)
Crack software has ultra-current
Vulnerability Shield. Free download Eset brilliant security eight complete break Direct...
by theumar20 (11/19/19 10:33 PM)
This site provides free serial
keys and activation codes. https://serialkeysfree.org This site provides free serial/activation...
by ayatnoor (11/19/19 7:14 PM)
Nice ohh! This is a
great reference. Thanks for sharing. | phillips norelco beard trimmer
by Danielperez123 (11/19/19 7:12 PM)
Bucket list Nice to know
that there is a site like this who are providing...
by Mikmik (11/19/19 2:55 PM)
Microsoft Office 365 Product Key
List for Free Microsoft office 365 Product key Microsoft Office...
by emilyisa bellaamelia1 (11/19/19 1:31 AM)
Bucket list Thank for this
post . this really help me a lot. carpet cleaning...
by Monica11 (11/18/19 8:09 PM)
The backup worked effectively
and effeciently for me. Great post! click here
by brielleluna (11/18/19 7:36 PM)
WinX HD Video Converter Deluxe
Crack WinX HD Video Converter Deluxe 5.15.3 Crack Key...
by meci12 (11/17/19 4:03 PM)
Nice Same here. I used
the same product. Thanks! | junk yards near me
by Danielperez123 (11/15/19 4:12 PM)
tellthebell Nice share. But, am
getting an error whenever I setup . So, what should...
by zenvanik (11/12/19 9:22 AM)
great to learn Thanks I
was needing this. As someone who prefers tree service winnipeg...
by TheManofRight (11/11/19 11:26 PM)
Noted. Got to apply
this over our website. Tampa SEO
by brielleluna (11/11/19 5:22 PM)
Is this another kind of
AWS management console that was posted on the other...
by brielleluna (11/11/19 5:19 PM)
sitelinx great work פרסום
בטאבולה
by sitelinxblog (11/9/19 8:36 PM)
Amazing! Thanks for welcoming
us with your great information. Keep it up! https://thesoutherninstitute.com
by Danielperez123 (11/8/19 4:05 PM)
Great Good to know you
have also provided which file type should it be saved....
by brielleluna (11/7/19 5:35 PM)
I will try to
apply them. cheapest seo services
by louishill6427 (11/6/19 9:19 AM)
I use these amazon
products too. Credit Card Processing Companies
by louishill6427 (11/6/19 9:14 AM)
Thanks for sharing how
to convert private to public key. Outbound Lighting
by louishill6427 (11/6/19 9:07 AM)
Thanks for sharing the
link for bookmarklet. Cincinnati lot for sale
by louishill6427 (11/6/19 8:42 AM)

RSS feed

Made with Antville
Helma Object Publisher