Search found 122 matches

by mahmood
2020/08/15 16:49:04
Forum: CentOS 7 - General Support
Topic: yumBackend.py high cpu usage
Replies: 0
Views: 621

yumBackend.py high cpu usage

Hi
I have noticed that "yumBackend.py" takes 100% cpu for some days. I had killed it before, but I see that again.
As I search the web I see some bug reports back to 2011 which is pretty old.
I don't know how to debug further to find the root of the problem.
Any idea?
by mahmood
2020/06/06 13:59:21
Forum: CentOS 7 - General Support
Topic: Configuring cgconfig for users
Replies: 1
Views: 759

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: 1724

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: 843

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: 1724

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: 1724

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: 1724

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: 1807

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: 2607

Re: Need libXss

Thank you very much. I found that.
I used rpmforge to install rar and unrar packages.