Greatest Hits

10
votes
5answers
50k views

How to install mcrypt for PHP 5.3.3 on CentOS 5.7 64 bit?

I installed php 5.3 and some modules using yum install php53-{module-name} But mcrypt did not work. I searched like this: yum list php* | grep mcry The only package that came up was ...
27
votes
2answers
33k views

How to get the url of the current svn repo?

I have 2 svn checkouts that someone setup for me. Now I need to check these same files on another computer, but since I didn't check them out initially I don't know the urls to use when running the ...
22
votes
6answers
52k views

what are named and default instance?

what are named and default instance? what is the difference between them? why they are used?
14
votes
5answers
69k views

Need to add a “Wait” command to a Powershell script

Here is my current code: Write-output “ENTER THE FOLLOWING DETAILS - When Creating Multiple New Accounts Go to EMC hit F5(refresh) and make sure previous new account is listed before ...
6
votes
7answers
44k views

What is an edge server / router / device?

What is an edge server? We see some references to them, but we never see a definition.
24
votes
10answers
68k views

Which is better: RAID5 + 1 Hotspare / RAID6?

Just curious, I have 6 x 1TB 7200RPM Near Line SAS for my new server. I can either configure it as RAID5+1 Hot Spare or RAID6. What should I choose?
16
votes
9answers
65k views

How do I make Linux recognize a new SATA /dev/sda drive I hot swapped in without rebooting?

Hot swapping out a failed SATA /dev/sda drive worked fine, but when I went to swap in a new drive, it wasn't recognized: [root@fs-2 ~]# tail -18 /var/log/messages May 5 16:54:35 fs-2 kernel: ata1: ...
23
votes
6answers
85k views

add new user with root access in Linux

I want to add new user and have/grant that new user to have all the root access, how can I do that ? I did sudo adduser --system testuser but this is not working as I expected. Thanks for help.
15
votes
4answers
65k views

What's the maximum number of wifi connections for a single WiFi router?

We've got a Draytek 2829VN Wifi router and I'm wondering how many concurrent connections I should expect a router of this kind to cope with? We are looking to connect 60 iPads! I'd also be ...
26
votes
6answers
50k views

How do you increase a KVM guest's disk space?

I setup an Ubuntu guest on a CentOS KVM host with initially 6GB of disk space. How do I go about increasing the Ubuntu guest's disk space from the command line? EDIT #1: I'm using a disk image file ...
118
votes
5answers
36k views

LVM dangers and caveats

I have recently started using LVM on some servers for hard drives larger than 1 TB. They're useful, expandable and quite easy to install. However, I could not find any data about the dangers and ...
91
votes
2answers
32k views

How can I see which flags Nginx was compiled with?

How can I check what modules have been added to an nginx installation?
70
16
votes
4answers
61k views

connect() failed (111: Connection refused) while connecting to upstream

I'm experiencing 502 gateway errors when accessing a PHP file in a directory (http://domain.com/dev/index.php), the logs simply says this: 2011/09/30 23:47:54 [error] 31160#0: *35 connect() failed ...
24
votes
1answer
46k views

How do I change the privileges for MySQL user that is already created?

I understand how to create a new user with privileges, but what is the correct way to change privileges for users that are already created? We are running a DB audit and some of the users have way ...
65
23
votes
7answers
58k views

How to display certain lines from a text file in Linux?

I guess everyone knows the useful Linux cmd line utilities head and tail. Head allows you to print the first X lines of a file, tail does the same but prints the end of the file. What is a good ...
68
votes
1answer
43k views

What is a challenge password?

I'm setting up SSL on an Ubuntu server. One of fields it asks for as part of setting up the CSR is a "challenge password". What is that? The default is blank. Do I need to enter one?
58
14
votes
4answers
64k views

Is it possible to mount/unmount a physical hard drive in Windows XP?

Is it possible to mount/unmount a physical hard drive in Windows XP? Ideally, I'd like to be able to do this from the command line so that I could have batch files to do it, ie: mount.cmd unmount.cmd ...
47
votes
5answers
74k views

How to start/stop/restart launchd services from the command line?

How do I restart, say for example my httpd or afpd, running any Mac OS X >= 10.5 (Leopard-), without having to use the GUI and go to System Preferences -> Sharing and unchecking/checking "Web ...
13
votes
7answers
50k views

Powershell: How do I query pwdLastSet and have it make sense?

I need to get the last password change for a group of account in an Active Directory security group, and I feel like this is something PowerShell should be good at. Right now, I'm already stuck at ...
41
votes
6answers
59k views

Should I use tap or tun for openvpn?

What are the differences between using dev tap and dev tun for openvpn? I know the different modes cannot inter-operate. What is the technical differences, other then just layer 2 vs 3 operation. ...
9
votes
2answers
49k views

How to test a LDAP connection from a client

How to check the LDAP connection from a client to server. I'm working on the LDAP authentication and this client desktop needs to authenticate via a LDAP server. I can SSH to the LDAP server using ...
9
votes
5answers
81k views

Can you use a USB hard drive in ESXI?

I know that you can install ESXi 4.0 on a thumbdrive, but I was wondering if you could plug in an external harddrive to give extra storage to one of your VMs? We run a fileserver inside of ESXi that ...
11
votes
3answers
46k views

How to check my PHP and MySQL version on Ubuntu VPS?

HI I am going to install MyBB but I am not sure whether I have installed the correct version of PHP and MySQL. PHP version 5.1.0 or above with XML Extension installed MySQL version 4.0 or ...
182
votes
13answers
66k views

Any benefit or detriment from removing a pagefile on an 8GB RAM machine?

I'm running Windows 7 on a dual core, x64 AMD with 8GB RAM. Do I even need a pagefile? Will removing it help or hurt performance? Would it make a difference if this is a server or a desktop? Does ...
16
votes
7answers
62k views

Nginx + php-fpm “504 Gateway Time-out” error with almost zero load (on a test-server)

After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres ...
25
votes
8answers
18k views

My server is still vulnerable to heartbleed even after I update OpenSSL

I have an Ubuntu 12.04 server. I have updated the OpenSSL package in order to fix the heartbleed vulnerability. But I am still vulnerable even, even though I have restarted the web server, and even ...
16
votes
3answers
68k views

For Loop counting from 1 to n in a windows bat script

I need to run a windows command n times within a bat script file. I know how to do this in various programming languages but cannot manage to get it right on the windows command line :-( I would ...
43
votes
4answers
39k views

How to run a command multiple times?

Is there a way to run a command (e.g. ps aux|grep someprocess) for n times? Something like: run -n 10 'ps aux|grep someprocess' I want to use it interactively, please do not post scripts. ...
60
11
votes
4answers
63k views

What causes duplicate ACK records?

We're reviewing Wireshark captures from a few client machines that are showing multiple duplicate ACK records which then triggers retransmit and out-of-sequence packets. These are shown in the ...
35
votes
4answers
40k views

What does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh'ing with -X?

When I use ssh -X on my Mac (running OS X 10.6.7) to connect to my Ubuntu (11.04) box, I get the following warning: Warning: untrusted X11 forwarding setup failed: xauth key data not generated ...
29
votes
7answers
51k views

How do I check the postfix queue size?

What's the postfix equivalent to sendmail -bp?
63
40
votes
7answers
53k views

How can I monitor hard disk load on linux

Is there a good command line utility to monitor hard disk load on linux? Something like top but then monitoring disk activity i.s.o. cpu usage. More specifically, I suspect that for some (heavy load) ...
27
votes
3answers
61k views

How to install/change locale on Debian?

I've written a web application for which the user interface is in Dutch. I use the system's date and time routines to format date strings in the application. However, the date strings that the system ...
9
votes
2answers
35k views

How do i find out what my IP Address of my MySQL host is?

I have a free domain running at x10hosting (x10.bz), and I want to find out the IP Address of my MySQL host for it, so I can contact the MySQL database from another host. I've already added that host ...
8
votes
9answers
56k views

psexec: “Access is Denied”?

Inspired by my previous question here, I've been experimenting with PSExec. The goal is to trip off some fairly simple scripts / programs on one WindowsXP machine from another, and as PowerShell 2 ...
3
votes
2answers
18k views

Remove MBR from USB flash drive using Windows

I have a USB key that was previously set up as a bootable key (clonezilla) Because of this there is an MBR on the key that will try (and fail) to boot off the key if it is left in a system. ...
17
votes
3answers
35k views

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
34
votes
6answers
52k views

How to send emails and avoid them being classified as spam

This is a canonical question about how to handle email sent from your server being misclassified as spam. For additional information you may find these similar questions helpful: Best ...
23
votes
4answers
38k views

System process (PID 4) constantly accessing the hard disk

Recently I noticed some of our machines are getting sluggish, mainly after boot-up. Using the Resource Monitor I detected excessive disk access from the system process with PID 4. Following some tips, ...
28
votes
9answers
81k views

Increase number of allowed remote desktop connections

Windows Server 2003 allows 2 non-console and one console remote desktop connections. Is there a way to increase the number of non-console sessions allowed?
5
votes
2answers
65k views

Where can I download the latest 64-bit edition of Sonicwall SSL-VPN NetExtender for Windows 7?

Does anyone know where to download the latest edition of the 64-bit version of SonicWall SSL-VPN NetExtender for Windows 7?
30
votes
4answers
38k views

How do I grep through binary files that look like text?

I have binary files that should be text (they're exported logs), but I can't open it with less (it looks ugly - it looks like a binary file). I found that I could open it with vi and I can cat it ...
7
votes
4answers
67k views

How to check if hardware RAID is configured?

I have several servers running Windows 2008 and Red Hat 5 that are capable of hardware RAID. How do I check that hardware RAID is configured?
33
votes
5answers
36k views

When does /tmp get cleared?

I'm taking to putting various files in /tmp, and I wondered what the rules on deleting them are? I'm imagining it's different for different distributions, and I'm particularly interested in Ubuntu ...
12
votes
1answer
63k views

Where/how does Windows store the data in the event logs?

We run some financial systems that log error messages to the system logs. I need to find out if we can clean these error messages from a PCI DSS point of view. I am specificaly interested in the ...
25
votes
5answers
75k views

What is a system state backup for?

The windows backup utility comes with an option to backup the system-state. What is this for? Has it a real utility? Can I recover that windows on another machine?
28
votes
5answers
72k views

Why do we ping the IP 4.2.2.2 to test connectivity?

For as long as I can remember, I've always used the IP 4.2.2.2 when testing network connectivity using ping. What is significant about this IP, and when did this practice start?
7
votes
6answers
30k views

Unable to install .net 3.5 on Windows server 2012

I am trying to install .Net 3.5 on Windows server 2012 and it constantly keeps failing. I am using "Add or remove features" and my internet is already there. I've read that if alternate source ...
16
votes
4answers
41k views

Prevent Windows Server 2012 from forcing a reboot after updates

I have a domain controller with Windows Server 2012 on it. After updates, the server does not reboot immediately. However if I remote into the server I will be presented with a countdown for a reboot. ...
42
votes
7answers
50k views

mysqldump to a tar.gz

Usually after dumping a MySQL database with mysqldump command I immediately tar/gzip the resultant file. I'm looking for a way to do this in one command: So from this: mysqldump dbname -u root -p ...