[root@snet102 ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Nov 13 14:06:32 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rl6u3vanilla-lv_root / ext4 defaults 1 1
UUID=2309506a-eed6-413e-b234-0587949c3504 /boot ext4 defaults 1 2
/dev/mapper/vg_rl6u3vanilla-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
##
client10:/iscsi1/nfsdata /nfstest2 nfs _netdev 0 0
##
[root@snet102 ~]# df -hFnfs
Filesystem Size Used Avail Use% Mounted on
client10:/iscsi1/nfsdata
2.0G 37M 1.9G 2% /nfstest2
Showing posts with label RHEL 6. Show all posts
Showing posts with label RHEL 6. Show all posts
Saturday, March 30, 2013
How to mount NFS volume at Boot time in Linux?
It seems very basic thing - however, coming from Solaris background, it was always a puzzle why Linux was not able to mount my NFS volumes the way it was mounting in Solaris. Basically, the only difference is "_netdev" keyword - which tells Linux that this device should be mounted AFTER network services are UP. To work around this, I even used a custom run-control script at /etc/rc3.d to mount it later. Now that I found "_netdev" keyword - I know that I am never going to use any workarounds for my NFS volumes. :)
Labels:
How-to series,
Linux,
Linux fundamentals,
mount,
nfs,
RHEL 6
Thursday, April 26, 2012
How to configure VNC on Redhat Linux 6?
I was trying to configure VNC on my RHEL6U1 test machine using my old method of editing /etc/xinetd/vncservers file when I came across the difference between RHEL6 and previous versions of RHEL.
In RHEL6, the VNC Server configuration is rather easy than previous versions of Linux. Here is what I had to do:
# cat /etc/sysconfig/vncservers # The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the lines below to start a VNC server on display :2 # as my 'myusername' (adjust this to your own). You will also # need to set a VNC password; run 'man vncpasswd' to see how # to do that. # # DO NOT RUN THIS SERVICE if your local area network is # untrusted! For a secure way of using VNC, see this URL: # http://kbase.redhat.com/faq/docs/DOC-7028 # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP. # Use "-localhost" to prevent remote VNC clients connecting except when # doing so through a secure tunnel. See the "-via" option in the # `man vncviewer' manual page. # VNCSERVERS="2:myusername" # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost" VNCSERVERS="2:root" VNCSERVERARGS[2]="-geometry 1680x1050 -depth 24" # cat /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 5902 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT
Labels:
Linux fundamentals,
RHEL 6,
VNC,
VNC Server
Subscribe to:
Comments (Atom)