I'm fighting here with System.Printing namespace of .net framework.
And what i always saw as a wired thing in all the tools by MS to manage my printservers is they lack Port and Driver managing functionality.
So I'm stuck here with a piece of code that works:
PrintServer _ps = new PrintServer(PServer,
PrintSystemDesiredAccess.Adminis...
This question might edge on being an IT question, so please bear with me while the IT version of SO is not there yet.
C'mon people, 3 "close" votes a few minutes after the question is up? What's so wrong with it? This might be a little sysadmin-ish, but hey, I really could be a lot more off-topic - and even get upvoted, as long as it'...
I created a program that iterates over a bunch of files and invokes for some of them:
scp <file> user@host:<remotefile>
However, in my case, there may be thousands of small files that need to transferred, and scp is opening a new ssh connection for each of them, which has quite some overhead.
I was wondering if there is no solution w...
I'd like a daemonizer that can turn an arbitrary, generic script or command into a daemon.
There are two common cases I'd like to deal with:
I have a script that should run forever. If it ever dies (or on reboot), restart it. Don't let there ever be two copies running at once (detect if a copy is already running and don't launch it ...
I ordered a server for the home office and I would like to partition it with Xen. I think this will keep things clean and easier to maintain. I will be running things like MySQL, PostgreSQL, Tomcat, and my own code.
What freely available Linux distribution has the best Xen hosting facilities?
...
$ last -aid
foouser pts/12 Sun Feb 15 07:30 - 15:23 (2+07:52) XXX.YYY.ZZZ.QQQ
The Sun Feb 15 07:30 - 15:23 part is pretty obvious. The user logged in at 7:30 on Sunday. But (2+07:52) is unclear. 7:52 is the difference between the two times, but what's the 2+ part?
...
Background
I recently joined a small start-up after working at a large company.
I'm not a professional system administrator, however, because of my programming and systems knowledge I am now the internal person managing our servers and infrastructure.
In the past, I never needed to document our system information: passwords (for serve...
Jeff Atwood talked about doing an ISP-to-ISP file transfer:
http://friendfeed.com/e/63fb9e72-6cd5-a8ac-88dc-02ce720033f9/wow-just-did-an-isp-to-isp-file-transfer-650mb-in/
What is this? I tried Googling for it, but couldn't find anything. We have a need to transfer large amounts of data between two data centers, and this sounds inter...
We have oracle 10g running on windows server 2003. A machine which runs an application using that database has as of a few weeks ago suddenly started having connectivity problems. Today we ran the automatic updates for windows server and the problem has only gotten worse. I realize this isn't enough information for anyone to diagnose ...
I am trying to build a virtual machine that clones one of the servers used in production instances of our webapp so that we can do deployment testing on it.
I have gotten all the necessary files over, IIS installed, the database up and running. To my eye all that remains is to copy all the IIS settings from a production environment to ...
I have got postfix installed on my machine and I am updating virtual_alias on the fly programmatically(using python)(on some action). Once I update the entry in the /etc/postfix/virtual_alias, I am running the command:sudo /usr/sbin/postmap /etc/postfix/virtual_alias 2>>/work/postfix_valias_errorfileBut I am getting the error:sudo: sorry...
Modern OpenSolaris is configured to disallow root logins during normal boots. It is only possible in single-user mode. However, many instructions online simply say to add "-s" to the end of the default grub boot arguments, which leaves a graphical boot progress display in an endless loop and never enters the single-user mode console.
...
I am a Junior System Administrator for a government agency. I am still learning on a very regular basis and am looking to expand my knowledge but am at a loss on what path to take. I work in a "Windows Shop" supporting Windows users, Cisco hardware and Debian servers. I have some basic knowledge of Cisco routing. I often have to troubles...
I have a folder on my server on which I have changed the permissions to 777 (read, write and execute all) to allow users to upload their pictures. What are the security risks involved in this? I have implemented code to restrict what file formats can be uploaded, but what would happen if someone was to find the location of the directory,...
Hey!
I am web programmer and I deal with html, css, javascript, php and asp.net.
Is there some good books/sites that I can use to become also a bit of a sys admin? And by sys admin I mean to have knowledge of TCP/IP, Linux/Win Networks etc.
Please don't say "google is your friend" I know it is but I just want either good sites or book...
How does one configure a Solaris 9 machine to automatically start Synergy(synergy2.sourceforge.net) or any other X-dependent application at startup?
...
I'm running Ubuntu and have snmpd running. I can do an snmpwalk:
snmpwalk -c public -v 1 localhost .1
and I get back about 20 values (SNMPv2-MIB -- mostly system description/name/uptime stuff).
Where are the memory, disk and network values? I've tried querying specific OIDs that I found Googling and they're not found.
I assume I ...
I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something like
$remote_machine/local_access/C
Is anyone familiar with how this is done?
...
I have a Mailman managed list with years of history that I want to migrate into a web-based forum. Things it would be nice to do:
Keep the mailing list going for those who are used to and prefer it to a web interface, but have it integrate with the web-forum activity.
Take the web-based forum posts, and send them out to the mailing li...
I need to run backups from multiple servers to a single account on another server. If one of the public servers is compromised, I don't want the other server's files on the backup account compromised.
What I need to do is only allow SCP to a specific directory, based on the ssh key of the incoming connections.
I know that I can set the...