Most Popular
1500 questions
67
votes
7 answers
bash: variable loses value at end of while read loop
I have a problem in one of my shell scripts. Asked a few colleagues, but they all just shake their heads (after some scratching), so I've come here for an answer.
According to my understanding the following shell script should print "Count is 5" as…
wolfgangsz
- 9,007
67
votes
5 answers
How can I launch a screen session with a command over ssh on a remote server from my desktop?
I want to be able to launch screen sessions on remote servers from a single ssh command on my desktop. However, screen seems to need a terminal, which is not available when running a command through ssh.
So the obvious
ssh root@my.machine screen…
Thomas Vander Stichele
- 1,085
67
votes
6 answers
How to rename a MySQL database?
How to rename a MySQL database?
The MySQL online manual has said about the RENAME DATABASE command (this documentation page has been removed by Oracle some time ago):
This statement was added in MySQL 5.1.7 but was found to be dangerous and
was…
nalply
- 1,147
67
votes
6 answers
How do I grant start/stop/restart permissions on a service to an arbitrary user or group on a non-domain-member server?
We have a suite of Windows Services running on our servers which perform a bunch of automated tasks independently of one another, with the exception of one service which looks after the other services.
In the event that one of the services should…
abitgone
- 1,363
67
votes
9 answers
How to zero fill a virtual disk's free space on windows for better compression?
How to zero fill a virtual disk's free space on windows for better compression?
I would like a simple open source tool (or at least free) for that. It should probably write an as big as possible file full of 0and erase it afterwards. Only one pass…
mit
- 2,014
- 7
- 31
- 42
67
votes
3 answers
Supervisor HTTP Server Port Issue
I have supervisor setup to manage a few processes. It works perfectly fine when I boot my server, however when I stop it and try to start it again it fails and give's me this error msg:
* Starting Supervisor daemon manager...
Error: Another…
Catalina
66
votes
9 answers
What's the best way to move c:\users to d:\users under vista/W7
I just installed Windows 7 RC1 and want to move c:\users to d:\users.
What's the best way to do this?
Due to the fact that Windows 7 creates a reserved partition that is mounted as C:
in the recovery console, I had to use the following…
Scott
- 1,072
66
votes
5 answers
Optimal value for Nginx worker_connections
Nginx worker_connections "sets the maximum number of simultaneous connections that can be opened by a worker process. This number includes all connections (e.g. connections with proxied servers, among others), not only connections with clients.…
Aarti
- 739
66
votes
1 answer
Server Aliases on NGINX
I'm moving a site to a new server running on NGINX. The old site's Apache2 VirtualHost has ServerAlias configured that I want to replicate in the NGINX configuration.
From what I've read on the NGINX Docs this seems to be simply achieved with…
Holly
- 1,067
66
votes
2 answers
Can rsync display current average speed?
When I'm transferring large quantities of data using rsync, it would be helpful if I could have the average speed up until now at a glance, rather than a bunch of different speeds for each file.
Fela Maslen
- 1,343
66
votes
3 answers
How should I setup separate MX records for a subdomain?
Let's say I have a domain that I run a web application on, for example cranketywidgets.com, and I'm using Google Apps for handling email for people working on that domain, for example, support@ cranketywidgets.com, jane@cranketywidgets.com,…
Chris Adams
- 719
66
votes
3 answers
Is it possible to on-line shrink a EXT4 volume with LVM?
Today I tried this on my machine with OpenSUSE 12.3 (kernel 3.7):
# resize2fs /dev/mapper/system-srv 2G
resize2fs 1.42.6 (21-Sep-2012)
Filesystem at /dev/mapper/system-srv is mounted on /srv; on-line resizing required
resize2fs: On-line shrinking…
Alicia
- 815
66
votes
5 answers
How to delete domain user profile from a computer?
I'm wondering how to safely remove a domain user profile from a computer that is a part of a domain. I don't want to delete the account from the domain itself, I just need to remove the profile from this computer, to do some cleanup.
I'm currently…
Zlatko
- 1,041
66
votes
4 answers
Suspicious symbols on nginx config
I have the following nginx config, e.g.
server {
listen 80;
server_name example.com
allow 127.0.0.0/8;
When I restart, it warn me:
Restarting nginx: nginx: [warn] server name "127.0.0.0/8" has suspicious
symbols in…
Ryan
- 6,271
66
votes
4 answers
linux/setfacl - Set all current/future files/directories in parent directory to 775 with specified owner/group
I have a directory called "members" and under it there are folders/files. How can I recursively set all the current folders/files and any future ones created there to by default have 775 permissions and belong to owner/group nobody/admin…
Maverick
- 1,771