How to change ulimit for user

ARUN Posted in Operating System
0

vi /etc/security/limits.conf

scroll to the bottom

Now to change the memory limit use

=====================

arun hard rss unlimited

=====================

Running startx shows error : xinit: No such file or directory (errno 2): no server “/usr/bin/X” in PATH

ARUN Posted in Operating System
0
[email protected] [/]# startx
xauth:  creating new authority file /root/.serverauth.25798
xauth:  creating new authority file /root/.Xauthority
xauth:  creating new authority file /root/.Xauthority

xinit:  No such file or directory (errno 2):  no server "/usr/bin/X" in PATH

Use the -- option, or make sure that /usr/bin is in your path and
that "/usr/bin/X" is a program or a link to the right type of server
for your display.  Possible server names include:

    Xorg        Common X server for most displays
    Xvfb        Virtual frame buffer
    Xfake       kdrive-based virtual frame buffer
    Xnest       X server nested in a window on another X server
    Xephyr      kdrive-based nested X server

giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
[email protected] [/]#
SOLUTION : 
Try
yum install xorg-x11-server-Xorg
and if its installed already reinstall using below command :
yum reinstall xorg-x11-server-Xorg

Command to install KDE on centos server

ARUN Posted in Operating System
0
yum grouplist | grep -i kde
yum groupinstall KDE Desktop
yum reinstall xorg-x11-server-Xorg