linux poison RSS
linux poison Email
1

Add Microsoft True Type Fonts into Linux

If you are a regular user of windows and have switched to linux recently, then sure you are going to miss some important things from your windows machine. One such things is those beautiful fonts which you have used in windows.

Method 1:
For installing these fonts there various methods available one among them is as below,

* Install a Cab Extract Utility for Linux. Get it from http://www.cabextract.org.uk/
* Download the Latest msttcorefonts spec from http://corefonts.sourceforge.net/
* If you have RPM Build environment in your home directory, then go ahead with the command. rpmbuild -bb msttcorefonts-2.0-1.spec
* Install the newly built rpm using the following command rpm -ivh <>
* Once done, log off & log in or restart the xfs service using the command /sbin/service xfs reload

Method 2:
use RPM method,

* rpm -ivh msttcorefonts-2.0-1.noarch.rpm

You should be logged in as a super user or use sudo


Read more
0

HowTo Add PATH

To add or remove a directory in your path, use a text editor to change the shell variable `PATH’ in the `.bashrc’ file in your home directory

For example, suppose the line that defines the `PATH’ variable in your `.bashrc’ file looks like this:

PATH="/usr/bin:/bin:/usr/bin/X11:/usr/games"

You can add the directory `/home/nikesh/bin’ to this path, by editing this line like so:

PATH="/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/nikesh/bin"
Read more
0

HowTo chang the file modification time

Use touch to change a file’s timestamp without modifying its contents. Give the name of the file to be changed as an argument. The default action is to change the timestamp to the current time.

* To change the timestamp of file `nikesh’ to the current date and time, type:

$ touch nikesh

To specify a timestamp other than the current system time, use the `-d’ option, followed by the date and time that should be used enclosed in quote characters. You can specify just the date, just the time, or both.

* To change the timestamp of file `nikesh’ to `17 May 2006 14:16′, type:

$ touch -d ‘17 May 2006 14:16′ nikesh

* To change the timestamp of file `nikesh’ to `14 May’, type:

$ touch -d ‘14 May’ nikesh

* To change the timestamp of file `nikesh’ to `14:16′, type:

$ touch -d ‘14:16′ nikesh
Read more
0

What are TCP control bits

There are six ‘control bits’ defined in TCP, one or more of which is defined in each packet. The control bits are ‘SYN’, ‘ACK’, ‘PSH’, ‘URG’, ‘RST’, and ‘FIN’. TCP uses these bits to define the purpose and contents of a packet.

SYN bit is used in establishing a TCP connection to synchronize the sequence numbers between both endpoints.

ACK bit is used to acknowledge the remote host’s sequence numbers, declaring that the information in the acknowledgment field is valid.

PSH flag is set on the sending side, and tells the TCP stack to flush all buffers and send any outstanding data up to and including the data that had the PSH flag set. When the receiving TCP sees the PSH flag, it too must flush its buffers and pass the information up to the application.

URG bit indicates that the urgent pointer field has a valid pointer to data that should be treated urgently and be transmitted before non-urgent data.

RST bit tells the receiving TCP stack to immediately abort the connection.

FIN bit is used to indicate that the client will send no more data (but will continue to listen for data).
Read more
14

Temporarily suspend a process

At times, you may find it necessary to temporarily suspend a process, and then resume its execution at a later time. The following two commands will suspend a process, and the resume it, respectively:

# kill -STOP 945
# kill -CONT 945
Read more
Related Posts with Thumbnails