Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm facing issue in one of my linux servers... we connect to it via vnc 192.168.x.x:3 .. we have observed that vnc log file of this session took a lot of space in filesystem and we need to delete it after every 2 days and it shows free space after restarting of linux server. We need permanent solution of it .. is there any permanent remedy present?
Dear All,
I'm facing issue in one of my linux servers... we connect to it via vnc 192.168.x.x:3 .. we have observed that vnc log file of this session took a lot of space in filesystem and we need to delete it after every 2 days and it shows free space after restarting of linux server. We need permanent solution of it .. is there any permanent remedy present?
...and....
Quote:
Originally Posted by KhanT
please help me... i can't restart everytime my linux server..there r dbs running....
First, this is a VOLUNTEER forum; we don't just wait for you to post, so coming back after LESS THAN AN HOUR, and asking for help again is fairly rude. Second, all you managed to do is remove your thread from the zero-reply list, making it LESS VISIBLE, and LESS LIKELY TO BE ANSWERED. And spell out your words, please.
Your problem lacks a good amount of detail to give any in-depth answer. You don't say what version/distro of Linux, what kind of server (hosted? local? VM server?), or why you're connecting to it over VNC. VNC isn't a good way to connect to servers, since most of what an admin does can be done via SSH...replicating an entire X window GUI login is fairly pointless.
You don't have to restart the server to restart VNC...just restart that ONE service. If you want to remove old log files, then you can use logrotate (that's what its for), or just write a simple script to cat /dev/null into that log file, and put it in CRON to run automatically. For a more in-depth answer, post useful details.
First, this is a VOLUNTEER forum; we don't just wait for you to post, so coming back after LESS THAN AN HOUR, and asking for help again is fairly rude. Second, all you managed to do is remove your thread from the zero-reply list, making it LESS VISIBLE, and LESS LIKELY TO BE ANSWERED. And spell out your words, please.
Your problem lacks a good amount of detail to give any in-depth answer. You don't say what version/distro of Linux, what kind of server (hosted? local? VM server?), or why you're connecting to it over VNC. VNC isn't a good way to connect to servers, since most of what an admin does can be done via SSH...replicating an entire X window GUI login is fairly pointless.
You don't have to restart the server to restart VNC...just restart that ONE service. If you want to remove old log files, then you can use logrotate (that's what its for), or just write a simple script to cat /dev/null into that log file, and put it in CRON to run automatically. For a more in-depth answer, post useful details.
thanks - it's a Redhat linux server, locally hosted VM server but we experienced the same with a physical one..
thanks for the suggestion of script .. we will test it.. we didnt restart the server for VNC SERVICE.. we restart it after deleting huge log file size (in GBs) of vnc as free space didnt show up there untill we restart the server.
Well, "Red Hat Linux" server doesn't tell us much. There's Red Hat ENTERPRISE, which has been around for a LONG time, with numerous versions, and there's the old Red Hat distro. Which do you have?
Quote:
locally hosted VM server but we experienced the same with a physical one..
Ok, so now what kind of virtual server? VMware? Virtual Box? What's the host OS that the VM guest is hosted under?
Quote:
thanks for the suggestion of script .. we will test it..
Actually, I suggested logrotate first, which is what you SHOULD use. A script isn't the best solution.
Quote:
we didnt restart the server for VNC SERVICE.. we restart it after deleting huge log file size (in GBs) of vnc as free space didnt show up there untill we restart the server.
No, the logs didn't shrink until you restarted the VNC service, which gets restarted when the server does. If you stop the service first, then clear the logs, you can restart it...same effect.
And again, WHY are you using VNC?? What's the point? Why can't you use SSH?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.