Greatest Hits

35
votes
6answers
50k views

how to check if a library is installed?

In linux, how do I check if a library is installed or not? (from the command line of course). In my specific case now, I want to check whether libjpeg is installed.
19
votes
8answers
62k 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
5
votes
8answers
86k 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 ...
7
votes
6answers
35k 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. ...
23
votes
6answers
44k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
19
votes
5answers
52k 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 ...
89
votes
4answers
114k 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 ...
22
votes
7answers
36k views

df in linux not showing correct free space after file removal

I have file servers which are used to store files. Files might reside there for a week, or for a year. Unfortunately, when I remove files from the server, df command doesnt reflect the freed up space, ...
10
votes
5answers
45k 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 ...
160
votes
11answers
49k 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 ...
4
votes
3answers
54k 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 ...
22
votes
2answers
57k 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 ...
6
votes
5answers
88k 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 ...
16
votes
7answers
51k 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 128M /boot ...
5
votes
6answers
56k views

How do I completely remove MySQL from a linux installation?

I was surprised to find that one of my privileged users installed MySQL on a linux box. The server (mysqld) is running and doing nothing. My skills are all in Oracle, so I am unfamiliar with how to ...
36
votes
13answers
31k views

Showing total progress in rsync: is it possible?

I have searched for this option already, but have only found solutions that involve custom patching. The fact that it does not show in --help and no more info can be found probably indicates the ...
18
votes
23answers
28k 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)
81
47
votes
8answers
90k 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 ...
42
votes
23answers
61k 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 ...
5
votes
5answers
34k views

How do I restart SharePoint Timer Service from command line?

How do I restart SharePoint Timer Service from command line?
8
votes
4answers
29k views

How can I edit the welcome message when ssh start?

I have a vps for my website hosting. It is running a ubuntu server. Every time I logged in my server by ssh, it displays a lengthy welcome message in my terminal. Linux node61.buyvm.net ...
16
votes
5answers
63k 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 ...
29
votes
4answers
101k views

Is it possible to change an “Unidentified Network” into a “Home” or “Work” network on Windows 7

I have a problem with Windows 7 RC (7100). I frequently use a crossover network cable on WinXP with static IP addresses to connect to various industrial devices (e.g. robots, pumps, valves or even ...
3
votes
8answers
34k views

How to remotely see what users are logged into Windows 7 or Vista

I need to login to a remote into either a Win7 or Vista computer but when I connect I get a Logon Message "Another user is currently logged on..." but it does not specify who. I have a domain ...
44
votes
9answers
87k 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 ...
25
votes
2answers
48k 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" ...
38
votes
8answers
44k 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 ...
60
15
votes
11answers
90k views

Best way to find the computer a user last logged on from?

I am hoping that somewhere in Active Directory the "last logged on from [computer]" is written/stored, or there is a log I can parse out? The purpose of wanting to know the last PC logged on from is ...
20
votes
3answers
46k 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 ...
19
votes
7answers
57k 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?
13
votes
7answers
53k 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 ...
21
votes
6answers
77k 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.
25
votes
6answers
64k 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> ...
7
votes
5answers
32k views

How do I remove login credentials for a network location in Win7?

I just tried to access a folder like so: \\somecomputeronmynetwork\somelocation$ When going to this location I'm prompted for a user name and password. I put one in, and it let me in fine. Now I ...
6
votes
7answers
50k views

How do I permanently change the hostname on Solaris 10?

I want to permanently change the hostname on a Solaris box. How do I do that?
61
9
votes
5answers
77k 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 ...
3
votes
5answers
23k 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 ?
16
votes
13answers
43k 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?
37
votes
12answers
43k 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 ...
37
votes
3answers
39k views

Running Cron every 2 hours

I have the cron job as shown below, and wanted it to run every 2 hours, but it keeps running every 2 minutes. Can someone tell me where I'm going wrong? * */2 * * * /path-to-script
66
24
votes
9answers
76k 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?
3
votes
7answers
34k 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 ...
14
votes
3answers
27k 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 ...
166
votes
14answers
62k 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 ...
14
votes
4answers
58k 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 ...
27
votes
8answers
48k 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 s and corresponding hostname s in the LAN that i am connected? (if this can be done in another way/tool you're welcomed to ...
50
0
votes
3answers
24k 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 ...
12
votes
4answers
45k views

What is the value of JAVA_HOME for CentOS?

I have install java through yum on CentOS, however another java programme needs to know what the JAVA_HOME environmental variable is. I know all about setting environmental variables, but what do I ...
6
votes
7answers
38k 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.
63
26
votes
4answers
40k views

What is the correct syntax to run cron every 4 hours?

I have the following syntax (which I think is correcT?) but it runs the command every minute! * */4 * * * /cmd.sh
63