Archive for the Uncategorized Category

Mount LVM Partition in Rescue Mode

To mount LVM  partitions in rescue mode follow the below simple steps ::

Boot the machine with Centos installation  CD and then type linux rescue at the prompt to boot into  the rescue mode and once done that you will be asked to  configure/enable network interfaces and then to mount the filesystem,  you can skip both and after skipping you will get a shell prompt. 


Scan the physical volumes using pvscan 
Continue reading Mount LVM Partition in Rescue Mode

How to remove ^M characters from a file

Many time it happens that when you open a file  in vi editor  you see  a ^M character  at some places in  a file and a  ^M  character is nothing but a carriage return character in Linux.

You normally found those characters when you transfer a file from  a windows machine to a Linux box.

The   ^M character [Carriage Return] can easily be removed by following  one of the below method  ::
Continue reading How to remove ^M characters from a file

TeamViewer and VNC installation on openSUSE

As we all know that  TeamViewer connects to any PC or server around the world within a few seconds.

You can manage the remote machine as if you are logged into that machine.

You can install   TeamViewer on  your openSuse  box by following the below simple steps ::

1 >  Download the   TeamViewer package for  openSUSE

[email protected][#]  cd  /usr/src
[email protected][#] wget

2 >  Install the required binaries

[email protected][#]   zypper install libfreetype6-32bit
[email protected][#]  zypper install wine

3 > Install TeamViewer package by using zypper or rpm

[email protected][src]# rpm --install teamviewer_linux_suse64.rpm
[email protected][src]# zypper in teamviewer_linux_suse64.rpm

This will install TeamViewer on  your machine.

Now to access   TeamViewer you have to install   vnc viewer

Follow the below steps to install   vnc viewer

[email protected][#] zypper install tightvnc
[email protected][#] zypper install tightvnc-1.3.9-110.1.x86_64

This will  install vnc viewer, Now next step is to configure it

[email protected][#] vncserver
You will require a password to access your desktops.
 Warning: password truncated to the length of 8.
 Would you like to enter a view-only password (y/n)? n
New 'X' desktop is
Creating default startup script /root/.vnc/xstartup
 Starting applications specified in /root/.vnc/xstartup
 Log file is /root/.vnc/

Now it’s time to  replace the   xstartup file to  set kde  as desktop  for vnc viewer

[email protected][.vnc] # cat xstartup
 xrdb $HOME/.Xresources
 xsetroot -solid grey
 xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
 twm &

replace with

[email protected][.vnc] # cat xstartup
 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
 xsetroot -solid grey
 vncconfig -iconic &
 startkde &

This will set KDE as desktop for vnc viewer.

Now open your VNC client and you can  access your openSUSE box as

vnc server ::

Note ::  here 1 is  the port

Finally you can  access  TeamViewer via vnc viewer as ::


 That’s all