Thanks to antville.org
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=http://10.10.10.6/yum/rhel/5/base/
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 http://www.redis.io/download or use the following commands on the target server.

$ wget http://redis.googlecode.com/files/redis-2.2.8.tar.gz
$ 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


Set the correct date under linux

Important things to remember about Linux date:

* /etc/sysconfig/clock sets whether the hardware clock is stored as UTC or local time.
* Symlink /etc/localtime to /usr/share/zoneinfo/... to set your timezone.
* Run ``date MMDDhhmm'' to set the current system date/time.
* Type ``/sbin/hwclock --systohc [--utc]'' to set the hardware clock.

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


Using memory as device

// copy the file to RAM - 30 times faster
cp -af /root/100mb.bin /dev/shm/

// increase it to 4GB
mount -o remount,size=4G /dev/shm

// new memory device
mkdir -p /var/www/www.mysite.com/ramdrive
mount -t tmpfs -o size=500M,mode=0744 tmpfs /var/www/www.mysite.com/ramdrive

// add it to /etc/fstab to make it permanent:
tmpfs /var/www/www.mysite.com/ramdrive tmpfs size=500M,mode=0777 0 0

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


chmod permissions to remember

660 mysql data dir
700 home directory
777 world writeable files
chmod +x asper.sh OR (chmod 754 asper.sh)

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


Saving files in VI

You can save the current file as a new file after making changes,
:w new_file.txt

If you want only 50 lines starting from line number 100, use...
:100,150w! new_file.txt

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


show processlist

ps aux
When you run ps you will only get the first 40 or so characters displayed. In order to view the entire string, use ...
ps auxgww

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


Which Linux?

If you're a Linux expert, Fedora is for you. If you just want a good, general-purpose desktop for home or work, then openSUSE is your best pick. And if you're new to Linux, and your computer gets along well with Ubuntu, Ubuntu is still a good choice.
Knoppix if you want to use Linux off a live CD and puppy linux is for everyone!!

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


Online for 7915 days
Last modified: 4/24/24, 9:33 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
April 2024
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
282930
January
Recent updates
discretize continuous features You can
"discretize" or "bin" continuous features into categorical features. from sklearn.preprocessing...
by shantanuo (4/24/24, 9:33 AM)
User Defined Property You
can create User Defined Property in libreoffice writer. File – Properties...
by shantanuo (1/9/23, 8:52 AM)
Arranging Chapters in the Navigator
To use a custom paragraph style for a heading, choose...
by shantanuo (1/4/23, 8:26 AM)
Use focus mode using Android
phones Settings > Digital Wellbeing and parental controls. Tap your...
by shantanuo (1/1/23, 3:59 AM)
Embed Fonts in document If
you use a font that the recipient is unlike to...
by shantanuo (12/18/22, 10:07 AM)
Using Navigator in Writer To
open the Navigator, select View > Navigator, or press the...
by shantanuo (12/18/22, 10:06 AM)
More about hyphenation The settings
for Tools > Options > Language Settings > Writing Aids...
by shantanuo (12/18/22, 10:04 AM)
link or unlink template If
you are using Libre office then template changer extension is...
by shantanuo (12/16/22, 5:27 AM)
Finding Styles you can select
Edit > Find and Replace > Other Options > Paragraph...
by shantanuo (12/14/22, 7:17 AM)
regex in clac In LibreOffice
Calc, you can use function REGEX for e.g. Begins with...
by shantanuo (12/14/22, 4:40 AM)
Libre Calc tips Turn Off
Grid Lines If you want to turn off grid lines...
by shantanuo (12/13/22, 8:14 AM)
More about Styles You can
goto View - Styles and change "All Styles" to "Applied...
by shantanuo (12/13/22, 7:49 AM)
Page Break Before Every Chapter
If your chapter titles are using the "Heading 2" Style:...
by shantanuo (12/13/22, 6:36 AM)
View and print in different
color Displaying Color in LO but Printing as White Page...
by shantanuo (12/13/22, 6:26 AM)
Change Normal Template in Libreoffice
Writer 1) Open a new file and set your font;...
by shantanuo (12/12/22, 8:45 AM)
Short english words in Devanagari
The list of short english words written in Devanagari. #...
by shantanuo (10/5/22, 9:05 AM)
Card issuing banks CITI
Standard Chartered HSBC American Express HDFC ICICI AXIS INDUS IND Kotak...
by shantanuo (7/16/22, 4:46 AM)
Activate IAM Access To activate
the Activate IAM Access setting, you must log in to...
by shantanuo (7/12/22, 5:52 AM)
use cheat instead of man
wget https://github.com/cheat/cheat/releases/download/4.2.3/cheat-linux-arm64.gz gunzip cheat-linux-arm64.gz chmod 770 cheat-linux-arm64 ./cheat-linux-arm64 mv cheat-linux-arm64...
by shantanuo (7/4/22, 8:53 AM)
python module itertools list of
useful methods of itertools module. permutations combinations combinations_with_replacement zip_longest count...
by shantanuo (9/8/21, 7:50 AM)
wikipedia tools 1) Collection of
useful utilities https://wikipediatools.appspot.com/ 2) all history of a user https://xtools.wmflabs.org/ec/mr.wikisource.org/Shantanuo...
by shantanuo (8/20/21, 6:36 AM)
Duration/Term of Copyright In the
case of original literary, dramatic, musical and artistic works, the...
by shantanuo (8/20/21, 6:26 AM)
Preserve seeds 6 types of
seeds to be preserved for next season. 1) laal Mula...
by shantanuo (5/7/21, 5:46 AM)
Why do I care for
Linux? I don't care that much for other software. Linux...
by shantanuo (12/17/20, 9:27 AM)
important leafy vegetables 1. Amaranthus
caudatus: rajgira. 2. Amaranthus tricolor: Math.  (Chhoti Chulai- Hindi, Cheera-...
by shantanuo (4/12/20, 2:01 PM)

RSS feed

Made with Antville
Helma Object Publisher