Greatest Hits

16
votes
7answers
66k views

How can I get a list of shared directories on local Windows server?

If I have a Windows server (typically 2000, 2003 or 2008), is there a simple way to list all local directories shared on that server? I can find the shares themselves easily enough, but I would love ...
29
votes
14answers
63k views

Why does “Loading your personal settings” take forever?

I have come across dozens of user installations of Windows (XP) where, after logging in, the system stays stuck on this screen for a very long time. What are the possible causes? How can I diagnose ...
79
21
votes
3answers
58k views

Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18

Apache is receiving requests at port :80 and proxying them to Jetty at port :8080 The proxy server received an invalid response from an upstream server The proxy server could not handle the request ...
4
votes
7answers
29k views

Get list of AD groups a user is a member of

Suppose I have the user id of a user in Active Directory. I'd like to get a list of all AD groups in which that user is currently a member of. How can I do this from the Windows command line? I've ...
4
votes
3answers
65k views

Windows Security (In windows 7) keeps asking for my credentials, and won't “Remember my credentials”

I'm not the network admin, but my network admin is having trouble solving this as well. My issue is exactly as the title says... Windows Security (In windows 7) keeps asking for my credentials, and ...
28
votes
2answers
63k views

How do I configure LDAP on Centos 6 for user authentication in the most secure and correct way?

During the last couple of days I have been using a lot of F-words, while browsing Internet for good documentation about how to setup an LDAP-server. So far I have found none, but plenty that are less ...
24
votes
3answers
111k views

How to enable MySQL logging?

I am running MySQL 5.0.45 on OS X 10.6.1 and I cannot get MySQL to log anything. I am debugging an application and need to see all queries and errors. I added to the etc/my.cnf: [mysqld] ...
15
votes
3answers
57k views

How to stream live video from a linux server?

Here is what I want to do. Looked around but didnt find any straight answer. I have a Linux box running websites using Ubuntu/MySQL/Apache. I have my own static IP as well, i.e. not using web hosting. ...
27
votes
3answers
80k views

Mount Remote CIFS/SMB Share as a Folder not a Drive Letter

Is there any way to mount a remote CIFS/SMB/SAMBA share as a folder/directory and not as a drive letter. For example, I want this map: \\Server\ShareName -> C:\Folder\ShareName Instead of the usual ...
6
votes
4answers
80k views

How to restore/import an Oracle database from dmp file?

I've recently recieved the dump file of the soon to be migrated Oracle Database. I've installed Oracle 10g and now i need to restore the original database. Can anyone give me a step to step ...
26
votes
2answers
63k views

What are windows 7 N/KN/VL editions?

We're subscribed to MSDN at work and I've noticed that among the various windows "editions" there are downloads such as "Windows 7 Ultimate N" and "Windows 7 Ultimate N and KN". What are these ...
7
votes
6answers
41k views

How to view status of software RAID 1 resynching?

I have two 500 GB disks and yesterday I mirrored first drive to the second one using software RAID 1. PC has now been on for 30 hours. Both disks say "Resynching", but there is no progress indicator. ...
16
votes
5answers
72k views

How to install Active Directory Users and Computers for Windows 2008

I want to install the administration tools on a Windows Server 2008 (R1) machine. On Windows 2003 you installed adminpak.msi, but I can't find such a file for 2008. Is this a "feature" in Server ...
44
votes
8answers
52k views

Linux: How to tell if system is big endian or little endian?

I know that certain processors are Big Endian and others are Little Endian. But is there a command, bash script, python script or series of commands that can be used at the command line to determine ...
72
25
votes
5answers
60k views

Top - what does Virtual memory size mean? …linux/ubuntu

I am running top to monitor my server performance and 2 of my java processes show virtual memory of up to 800MB-1GB. Is that a bad thing? What does virtual memory mean? And oh btw, I have swap of ...
20
votes
8answers
71k views

How do I determine the size of my SQL Server database?

Basic: what's the size on disk of my MS SQL Server DB? More: can I quickly see where the data is? i.e. which tables, logs, etc
56
votes
11answers
83k views

Subversion error: (405 Method Not Allowed) in response to MKCOL

I am getting the following error while trying to commit a new directory addition. svn: Commit failed (details follow): svn: Server sent unexpected return value (405 Method Not Allowed) in response to ...
61
19
votes
7answers
60k views

What is the recommended size for a Linux /boot partition?

What is the recommended size for a Linux /boot partition? And is it safe to not have a /boot partition? I see some servers don't have a /boot partition while some servers have a 128 MB /boot ...
20
votes
23answers
33k views

Finding the Public IP address in a shell script

I can find my IP address using ifconfig or hostname -i command. But how do I find my Public IP? (I have a static public IP but I want to find it out using unix command)
90
21
votes
9answers
106k views

Is there a way to clone an existing VM on an ESXi server without having to re-import it?

I have imported a VM into an ESXi server using the VMware "Converter stand alone utility". However, this process is a little tedious. Since I eventually want several copies of this VM (or, to be ...
6
votes
5answers
94k views

How do I increase the maximum number of concurrent remote connections in Windows Server 2003?

I am trying to allow more than the default of 2 concurrent remote connections to a server running Windows Server 2003. Background: I went to "Start" => "Administration Tools" => "Terminal Services ...
3
votes
7answers
45k views

How to fix Windows 2008 R2 BOOTMGR is missing

BOOTMGR IS MISSING PRESS CTRL+ALT+DEL TO RESTART Note: This is a VM on VMWare ESX server, but that should not matter I put in the 2008 R2 x64 install dvd and can get to recovery, but it lists no ...
5
votes
5answers
40k views

How do I restart SharePoint Timer Service from command line?

How do I restart SharePoint Timer Service from command line?
44
votes
23answers
67k views

How to copy a large number of files quickly between two servers

I need to transfer a huge amount of mp3s between two serves (Ubuntu). By huge I mean about a million files which are on average 300K. I tried with scp but it would have taken about a week. (about 500 ...
29
votes
2answers
58k views

robocopy transfer file and not folder

I'm trying to use robocopy to tranfer a single file from one location to another but robocopy seems to think I'm always specifying a folder. Here is an example: robocopy "c:\transfer_this.txt" ...
45
votes
9answers
94k views

Creating a virtual machine in VirtualBox from a physical one

Is there any way to create a virtual machine that you can use in VirtualBox from a physical installation that you have? For instance, if I have Windows XP installed on a physical computer and want to ...
5
votes
8answers
91k views

How do I remove a driver completely on a Windows XP client machine?

I have a client (XP SP3) machine where newer drivers have been installed. Unfortunately while these (audio) drivers fixed mic boost, they have introduced problems such as no input working and ...
4
votes
5answers
55k views

How to work out how many IP's you've got available on a /29 network mask

This might sound like a stupid question but I would really like to know how I would work out how many IP's I've got available on this network range: 196.44.198.32/29 Can someone explain it to me, ...
26
votes
6answers
74k views

How to configure basic authentication in Apache httpd virtual hosts?

I'm trying to configure mercurial access using Apache http. It requires authentication. My /etc/apache2/sites-enabled/mercurial looks like this: NameVirtualHost *:8080 <VirtualHost *:8080> ...
29
votes
4answers
77k views

Redirect URL within Apache VirtualHost?

I have a dedicated server with Apache, on which I've set up some VirtualHosts. I've set up one to handle the www domain as well as the non-www domain. My VH .conf file for the www: <VirtualHost ...
168
votes
11answers
53k views

Can I nohup/screen an already-started process?

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in ...
91
votes
4answers
124k views

FreeBSD performance tuning. Sysctls, loader.conf, kernel

I wanted to share knowledge of tuning FreeBSD via sysctl.conf / loader.conf / KENCONF / etc. It was initially based on Igor Sysoev's (author of nginx) presentation about FreeBSD tuning up to ...
17
votes
13answers
48k views

How to get a list of drive letters on a system through a windows shell (bat, cmd)?

How do I get a list of drive letters and their associated labels on a windows system through a bat file?
13
votes
3answers
21k views

Connecting to MySQL from PHP is extremely slow

I just did a fresh install of XAMPP. When first opening PHPMyAdmin I noticed it was extremely slow. It didn't make sense that on localhost it should take almost 5 seconds for every page to open. I ...
4
votes
5answers
28k views

What is the difference between BGP and OSPF?

I want to setup a dynamic routing network, I want to know, What is the difference between BGP and OSPF ? Does both two need to be used together commonly ?
20
votes
7answers
63k views

How do I restart a Windows service from a script?

I have a batch script that looks like: sc stop myservice sc start myservice it errors out because sc doesn't wait till the service is stopped. How do I restart a service with a script?
28
votes
9answers
58k views

nmap find all alive hostnames and IPs in LAN

How can I issue a nmap command that shows me all the alive machines' IP addresses and corresponding hostname s in the LAN that I am connected? (if this can be done in another way/tool you surely are ...
61
26
votes
5answers
45k views

Filename length limits on linux?

Are there any filename or path length limits on Linux?
15
votes
8answers
55k views

What printer driver should I use?

I am nstalling drivers for a printer, and I have a choice of either PCL (5 or 6), or PostScript drivers? Which one would you recommend and why? The printer is HP LaserJet 2605dn, the OS is Windows 7 ...
60
votes
7answers
76k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...
37
votes
12answers
49k views

What's the best way to check if a volume is mounted in a Bash script?

What's the best way to check if a volume is mounted in a Bash script? What I'd really like is a method that I can use like this: if <something is mounted at /mnt/foo> then <Do some ...
16
votes
6answers
86k views

What firewall ports do I need to open when using FTPS?

I need to access an ftps server (vsftpd) on a vendor's site. The vendor has a firewall in front of the ftps server and I have a firewall in front of my ftps client. I understand that ports 990, 991 ...
67
votes
9answers
62k views

Dump Microsoft SQL Server database to an SQL script

Is there any way to export a Microsoft SQL Server database to an sql script? I'm looking for something which behaves similarly to mysqldump, taking a database name, and producing a single script ...
51
votes
8answers
98k views

What limits the maximum number of connections on a Linux server?

What kernel parameter or other settings control the maximum number of TCP sockets that can be open on a Linux server? What are the tradeoffs of allowing more connections? I noticed while load testing ...
0
votes
3answers
29k views

.Net Framework 4 installation did not succeed: HRESULT 0xC80003F3

I just tried to install the .Net Framework 4 on my Windows 7 64 bit system. The installation did not succeed - HRESULT 0xC80003F3 From the log file: OS Version = 6.1.7600, Platform 2 OS Description ...
15
votes
12answers
37k views

How do I know if I'm working on a Virtual Machine or not?

Is there a way to know if the Windows machine I'm working on is virtual or physical? (I'm connecting with RDP to the machine. If it's a virtual machine it is working and handled by VMWare).
29
votes
3answers
32k views

What is the difference between unicast, anycast, broadcast and multicast traffic?

I have never had the privilege of working in an environment that required complicated routing or if it did require it, it was handled upstream of me. I've always used very simple static routing ...
2
votes
3answers
31k views

How do I get SonicWALL Global VPN to work with Windows 8.1?

I have been running SonicWALL Global VPN v4.7.3.0403 on Windows 8 without trouble for more than a year. Today I upgraded to Windows 8.1 RTM and noticed that it disabled my Global VPN connection. I ...
19
votes
3answers
34k views

How do you free up a port being held open by dead process?

A colleague of mine recently ran into a problem where a process that had supposedly died was still bound to a network port, preventing other processes from binding to that port. Specifically, netstat ...
10
votes
5answers
48k 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 ...