Posts filed under ‘Uncategorized’

RHEL5 – remote graphical Linux

To allow remote graphical linux desktop access the following changes are required in /etc/gdm/custom.conf .

Add two enties to the existing categories:

[security]
DisallowTCP=false

[xdmcp]
Enable=true

Advertisements

March 30, 2009 at 11:08 am Leave a comment

Red hat Enterprise Linux security patches

Since RHEL5.2 Red Hat introduced a feature which allows to apply all outstanding security patches with single command executed from the command line.

yum update -–security

December 5, 2008 at 2:51 pm Leave a comment

VI Cheat Sheet

Handy link to vi cheat sheet: http://www.lagmonster.org/docs/vi2.html

And Search and replace str1 with str2 in the whole file:

:%s/str1/str2/g

December 5, 2008 at 2:41 pm Leave a comment

How to force users to change their passwords upon first login?

# usermod -L <username>
# chage -d 0 <username>
# usermod -U <username>

September 24, 2008 at 8:27 am Leave a comment

How to turn off checksum offload?

Under linux, check the status of offload parameters for the interface (eth0):

ethtool -k eth0

Then turn off tx-checksumming by:

ethtool -K eth0 tx off

Refer to man page of ethtool for more.

June 30, 2008 at 12:08 pm Leave a comment

How do I make the vi editor display or hide line numbers?

To make vi display line numbers, you need to set the number flag. To do so:

  1. Press the Esc key if you are currently in insert or append mode.
  2. Press : (the colon). The cursor should reappear at the lower left corner of the screen next to a : prompt.
  3. Enter the following command:
    set number
  4. A column of sequential line numbers will then appear at the left side of the screen. Each line number references the text located directly to the right.

To turn off line numbering, again follow the preceding instructions, except this time enter the following line at the : prompt:
set nonumber

May 20, 2008 at 10:57 am Leave a comment

Fixing novell-zmd service

Symptom:
novell-zmd process fails to start

Solution:
remove zmd database and force zmd process to recreate it:

killall zen-updater
/etc/init.d/novell-zmd stop
rm -f /var/lib/zmd/zmd.db
/etc/init.d/novell-zmd start
zen-updater &

May 1, 2008 at 2:49 pm Leave a comment


Recent Posts

Categories