Search found 121 matches

by mahmood
2020/06/06 13:59:21
Forum: CentOS 7 - General Support
Topic: Configuring cgconfig for users
Replies: 1
Views: 254

Configuring cgconfig for users

I have set the following limits for a user in the cgconfig rules # cat /etc/cgconfig.conf group group_mahmood { cpu { cpu.shares = 300; } memory { memory.limit_in_bytes = 1073741824; } } # cat /etc/cgrules.conf mahmood cpu,memory grou_mahmood/ # service cgred restart Redirecting to /bin/systemctl re...
by mahmood
2019/10/08 18:25:10
Forum: CentOS 7 - General Support
Topic: Unable to run a script at boot via /etc/rc.d/rc/local
Replies: 7
Views: 385

Re: Unable to run a script at boot via /etc/rc.d/rc/local

Yes I have. I want to know if I have to copy this file only to /etc/systemd/system/vncserver@.service and then add multiple users in the service section. Like this: [Service] Type=forking ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart=/usr/sbin/runuser -l u1 -c...
by mahmood
2019/10/08 17:55:18
Forum: CentOS 7 - General Support
Topic: Defining disk quota for users
Replies: 0
Views: 201

Defining disk quota for users

I followed a document [1] to setup disk quota for homes which are mounted under /export partition. So, I did UUID=ead2c6ad-3f32-4d00-8b65-0679428839c7 /export ext4 defaults,usrquota,grpquota 1 2 in /etc/fstab. After running mount -o remount /export , the quotacheck -cugv /export shows me the followi...
by mahmood
2019/10/08 17:51:19
Forum: CentOS 7 - General Support
Topic: Unable to run a script at boot via /etc/rc.d/rc/local
Replies: 7
Views: 385

Re: Unable to run a script at boot via /etc/rc.d/rc/local

Can you send a document on vncserver@something?
by mahmood
2019/10/08 14:00:04
Forum: CentOS 7 - General Support
Topic: Unable to run a script at boot via /etc/rc.d/rc/local
Replies: 7
Views: 385

Re: Unable to run a script at boot via /etc/rc.d/rc/local

Excuse me,
If I write

/root/boot_vnc.sh 2>&1 /root/boot_vnc.log

Then no log file is generated. However, there must be some outputs.
by mahmood
2019/10/08 13:32:27
Forum: CentOS 7 - General Support
Topic: Unable to run a script at boot via /etc/rc.d/rc/local
Replies: 7
Views: 385

Unable to run a script at boot via /etc/rc.d/rc/local

I want to run a bash script at the boot time using rc.local, however, it doesn't work. See: [root@hpc ~]# ls -l /root/boot_vnc.sh -rwxrwxr-x 1 mahmood mahmood 242 Oct 8 16:13 /root/boot_vnc.sh [root@hpc ~]# ls -l /etc/rc.d/rc.local -rwxr-xr-x 1 root root 473 Oct 8 16:49 /etc/rc.d/rc.local [root@hpc ...
by mahmood
2019/10/06 17:07:22
Forum: CentOS 7 - General Support
Topic: Black screen on VNC
Replies: 1
Views: 393

Black screen on VNC

I have pasted the following lines of ~/.vnc/xstartup file according to [1], however, as I login with vncviewer, I see black screen only. #!/bin/sh # Add the following line to ensure you always have an xterm available. ( while true ; do xterm ; done ) & # Uncomment the following two lines for normal ...
by mahmood
2019/06/28 16:22:06
Forum: CentOS 7 - General Support
Topic: Need libXss
Replies: 3
Views: 1015

Re: Need libXss

Thank you very much. I found that.
I used rpmforge to install rar and unrar packages.
by mahmood
2019/06/28 13:58:24
Forum: CentOS 7 - General Support
Topic: Need libXss
Replies: 3
Views: 1015

Need libXss

During the installation of Intel Parallel Studio, I receive this message regarding a prerequisite package Xorg X11 libXss runtime library is not found. I see a similar question at https://www.mail-archive.com/centos@centos.org/msg131166.html and it seems that I have to install libXScrnSaver . Howeve...

Go to advanced search