Greatest Hits

51
votes
1answer
51k views

How do I add Access-Control-Allow-Origin in NGINX?

How do I set the Access-Control-Allow-Origin header so I can use web-fonts from my subdomain on my main domain? Notes: You'll find examples of this and other headers for most HTTP servers in the ...
62
9
votes
5answers
83k 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 ...
5
votes
1answer
61k views

TCP/IP ports necessary for CIFS/SMB operation

If I want to allow Windows networked drives between two firewalled computers, do I need to open ports 137-139, or is port 445 sufficient? I have to submit a form and get approval to open firewall ...
17
votes
5answers
49k views

where are the default ulimit values set? (linux, centos)

I have two CentOS 5 servers with nearly identical specs. When I login and do ulimit -u, on one machine I get unlimited, and on the other I get 77824. When I run a cron like: * * * * * ulimit -u ...
13
votes
7answers
53k 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 ...
28
votes
5answers
65k 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
5answers
105k views

Reverse DNS - how to correctly configure for SMTP delivery

I started a new service and we need to send emails to our customers (new account confirms, etc). My server is known as prod01.bidrodeo.com and resolves to 97.107.134.38 . For reverse DNS, ...
6
votes
6answers
11k views

What is a recommended way to patch the Shellshock Bash bug on an unsupported Ubuntu server?

I maintain an out-of-support Ubuntu 12.10 (Quantal Quetzal) server (don't ask me why, please), and we need to patch the Shellshock Bash security bug. As upgrades are not available anymore, what ...
183
votes
13answers
67k 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 ...
26
votes
5answers
81k 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?
15
votes
3answers
50k views

View Shutdown Event Tracker logs under Windows Server 2008 R2

I'm trying to view the Shutdown Event Tracker logs in the Event Viewer, on windows server 2008 r8, but I can't find the messages that I supplied when previously restart the server. Where in the Event ...
53
votes
1answer
58k views

InnoDB: Error: log file ./ib_logfile0 is of different size

I just added the following lines in /etc/mysql/my.cnf after I converted one database to use InnoDB engine. innodb_buffer_pool_size = 2560M innodb_log_file_size = 256M innodb_log_buffer_size = 8M ...
47
votes
4answers
63k views

How can I see Time-To-Live (TTL) for a DNS record?

I would like to see the Time-To-Live (TTL) value for a CNAME record. I have access to dig (on Apple Mac OS X), which gives me an answer like this: % dig host.example.gov <*SNIP*> ;; ANSWER ...
22
votes
4answers
90k views

How to filter http traffic in Wireshark?

I suspect my server has a huge load of http requests from its clients. I want to measure the volume of http traffic. How can I do it with Wireshark? Or probably there is an alternative solution using ...
11
votes
4answers
46k views

How to allow active directory users to remote desktop in?

This is my first time setting up or even using active directory. I set it up, and added the computers(Actually VMs in Hyper V) to the active directory, and if if I use hyper-V to connect to the VMs, ...
5
votes
2answers
70k 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?
11
votes
4answers
43k views

How to save and exit crontab -e?

How to save and exit crontab -e? i tried every method listed here and none works, i have a centos 5, vi comes by default with yum and i installed nano Solved just changed the default editor export ...
12
votes
5answers
19k views

Set gitlab external web port number

How do I change gitlab's default port 80 to a custom port number? There are two approaches I've tried: Set the port in /etc/gitlab/gitlab.rb external_port "8888" Then run reconfigure: ...
37
8
votes
9answers
58k 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 ...
2
votes
3answers
27k views

SCP copy windows local file to linux remote folder

How to get a file from my path d:/test.txt and copy it to /etc/var/test/test.txt I've tried this: scp d:/test.txt /etc/var/test/test.txt but that didn't worked, how to set the hard disk from where ...
29
votes
5answers
76k 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?
10
votes
11answers
59k views

Network Printers Offline (but not really)

I have two Ricoh printers/copiers setup for IP printing in the office. Before this week there were no problems printing to them. Now a handful of them (All running Vista, not sure if it is every Vista ...
9
votes
2answers
31k views

When an Excel file is locked on a network share, how does it know who locked the file?

We are using Excel 2010 and sometimes users are working from a network share. When a user on the network opens the file in Excel, the file is locked for editing - this is the expected behavior. When ...
4
votes
6answers
35k views

SQL - an error occurred during the pre-login handshake

Until yesterday evening, I was able to connect to my server from my local machine. Now, I get the following error: A connection was successfully established with the server, but then an error ...
34
votes
2answers
32k views

_default_ VirtualHost overlap on port 443, the first has precedence

I have two ruby on rails 3 applications running on same server, (ubuntu 10.04), both with SSL. Here is my apache config file: <VirtualHost *:80> ServerName example1.com DocumentRoot ...
26
votes
8answers
38k views

How do I update a CentOS server's time from an authoritative time server?

I have CentOS machine and each time I've noticed that the server loses correct time after a while. It is usually behind by several minutes after time passes from having manually set the correct time. ...
2
votes
7answers
81k views

Why am I getting 'File in use by Another User' and 'Application Sharing Violation' errors when trying to open & and save files?

We're getting this a lot lately. Windows 2008 Server Windows 7 & Vista Client PC's Microsoft Office 2007 When a user tries opening a file on our network drive (word doc, excel spreadsheet, ...
28
votes
9answers
82k 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?
11
votes
7answers
73k views

Problem adding Windows 7 64-bit print drivers to a 32-bit Windows 2003 print server

I have installed the final RTM version of Windows 7 Professional 64-bit on a test system before we begin the rollout in our company. I'm having problems connecting to several HP printers that we have ...
9
votes
4answers
11k views

Can not update Bash on Debian 6.0 (Squeeze)

I can not update Bash on a Debian 6.0 (Squeeze) server to get rid of the discovered vulnerability: bash --version GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu) apt-get update apt-get ...
6
votes
4answers
22k views

SSH issues: Read from socket failed: Connection reset by peer

I compiled OpenSSH_6.6p1 on one of our server. I am able login via SSH to the upgraded server. But I am not able to connect to other servers running OpenSSH_6.6p1 or OpenSSH_5.8 from this. While ...
54
votes
5answers
62k views

Clean way to write complex multi-line string to a variable

I need to write some complex xml to a variable inside a bash script. The xml needs to be readable inside the bash script as this is where the xml fragment will live, it's not being read from another ...
54
11
votes
5answers
76k views

Where are my Tomcat Logs?

I installed Tomcat6 on a Ubuntu 9.04 server using apt-get install tomcat6. I uploaded a WAR using the manager interface and tried to start the application but get a pretty generic error on the Web ...
3
votes
7answers
42k views

RDP exits immediately after connecting to Windows Server 2008 R2

Background: I recently got a Windows cloud VPS server. I don't have much experience with server admin (I'm a programmer), and what little I do have is with linux servers. Ever since getting the ...
48
votes
3answers
56k views

How to delete Instances in Amazon EC2 ? Change Pair Key?

How to remove Instances ? I test some Instances and now I terminate it. So, I want to remove it. I can't find delete or remove action. I just found terminate. How to change the pair key ? I don't ...
17
votes
5answers
51k views

High load average, low CPU usage - why?

We're seeing huge performance problems on a web application and we're trying to find the bottleneck. I am not a sysadmin so there is some stuff I don't quite get. Some basic investigation shows the ...
9
votes
9answers
49k views

How can I check whether port 5060 is open in centos?

How can I check whether port 5060 is open in centos? How can I test if my linux has real a real IP address and I set no iptables blocking rules or is there any tools which I can run in my linux so my ...
61
12
votes
2answers
25k views

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: http://example.com/some/path -> http://192.168.1.24 where the user still sees the original URL in their browser. Once the user is ...
18
votes
3answers
69k views

“Possible SYN flooding” in log despite low number of SYN_RECV connections

Recently we had an apache server which was responding very slowly due to SYN flooding. The workaround for this was to enable tcp_syncookies (net.ipv4.tcp_syncookies=1 in /etc/sysctl.conf). I posted a ...
11
votes
6answers
30k views

CentOS 6 + LDAP + NFS. File ownership is stuck on “nobody”

I've been trying to get LDAP authentication and NFS exported home directories on CentOS 6 working for a few days now. I've gotten to the point that I can now login to the client machine using the ...
1
vote
9answers
81k views

Can ping Exchange server, can't connect Outlook to it

I can ping the Exchange server here at work, but Outlook doesn't connect to it. I've verified the server is indeed the Exchange server and I've tried using the IP instead of the server name. I am also ...
23
votes
3answers
9k views

How can I check /dev/xvda1?

On login to EC2 (Ubuntu) instance, I see *** /dev/xvda1 should be checked for errors *** I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. lsof ...
15
votes
5answers
38k views

Dump a linux process's memory to file

Is it possible to dump the current memory allocated for a process (by PID) to a file? Or read it somehow?
4
votes
8answers
108k views

How do I remove Windows Update uninstall files on Windows Server 2008?

I'm running Windows Server 2008 Standard running in VMware. It has 2 disks: system disk: 16 GB data disk: 500 MB I installed Visual Studio 2008 SP1 + MSDN and some small tools and ...
26
votes
2answers
68k views

How to grant network access to LocalSystem account?

How do you grant access to network resources to the LocalSystem (NT AUTHORITY\SYSTEM) account? Background When accessing the network, the LocalSystem account acts as the computer on the network: ...
13
votes
5answers
73k views

How to route different traffic thru different network interfaces (in Windows)

I've searched for details on how to do this but I've been unsuccessful - I wondered if someone could offer up some advice. So, let's say I have 2 network cards (LAN and 3G in my instance), both ...
68
votes
11answers
11k views

How bad is it really to install Linux on one big partition?

We will be running CentOS 7 on our new server. We have 6 x 300GB drives in raid6 internal to the server. (Storage is largely external in the form of a 40TB raid box.) The internal volume comes to ...
24
votes
7answers
71k views

Are there any free NFS clients for Windows 7?

I have Windows 7 Professional, but the NFS Client for Windows is only included in the Enterprise and Ultimate editions. I would like to connect some Windows machines to our NFS server so I can drop ...
4
votes
3answers
31k views

Difference between 2Rx4 vs 2Rx8 RAM

My IT provider is convincing me there is no difference between a 2Rx4 and a 2Rx8 RAM. A little digging around informed me that x4 means 4 bits on a chip vs x8 means 8 bits. Which is good, but what ...
62
19
votes
8answers
14k views

RAID-5: Two disks failed simultaneously?

We have a Dell PowerEdge T410 server running CentOS, with a RAID-5 array containing 5 Seagate Barracuda 3 TB SATA disks. Yesterday the system crashed (I don't know how exactly and I don't have any ...