How can I change the value of, let's say, PasswordAuthentication in /etc/ssh/sshd_config in commands?
As well, remove a # in front of the "key" I wish to value. These don't all have to be in one command. I setup quite a few servers, and remembering where everything is gets exhausting, so I want to get a series of commands I can copy paste and it does the work for me for future reference.
Sample values:
PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
UseDNS no
I'm trying to do Remote Administration of IIS in C#.NET using System.Web.Administration tools. Everything works fine on a test server (windows 2008), however when I try using our live server (windows 2003) it fails giving the message:
System.Runtime.InteropServices.COMException : Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)
The server itself has plenty of memory free, so I believe this is some kind of memory limit with the RPC itself.
http://support.microsoft.com/kb/890425
Is there any way around this?
My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find ~ *.pdf or find ~ "*.pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
From man watch:
Non-printing characters are stripped
from program output. Use "cat -v" as
part of the command pipeline if you
want to see them.
So how do I use cat -v if I want to see the colored output from:
watch ls -al --color
What is the shortcut for removing the Windows boot screen logo during startup so that you can actually see all the commandline commands that are running in the startup sequence?
From time to time, I've encountered issues with OS X clients' network connections (Wired and Wireless, Leopard/Snow Leopard) where nothing will fix the issue, until you reboot.
Is there a particular 'network service/process' I should be watching out for?
I was thinking it would be useful to know of a command that will reset a 'network connection' type service/process (same as running a sudo /etc/init.d/networking restart).
Thanks!
shadyabhi@shadyabhi-desktop:~$ eject -v
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/media/cdrom'
eject: `/media/cdrom' is a link to `/media/cdrom0'
eject: `/media/cdrom0' is not mounted
eject: `/media/cdrom0' is not a mount point
eject: tried to use `/media/cdrom0' as device name but it is no block device
eject: unable to find or open device for: `cdrom'
shadyabhi@shadyabhi-desktop:~$
The tray doesnt open.. How do I open tray using command line?
Hi, I have the following command:
find Acc*\bin\Debug\*.pdb > temp.txt
Looking in temp.txt, I have:
Accounting/bin/Debug/Accounting.pdb
Accounting/bin/Debug/BackendProcess.pdb
NOTE the forward slashes. Why does it output file names like this? And how do I get it to output backslashes, so I can use del on those files?
Thanks
I'm facing a problem which to ftp files using ftp client (Filezilla), since it always prompt me Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing, but when I tried ftp using commandline, it works fine form me.... does anyone have idea ?
I have a web application that runs a program which needs X. I'm using xvfb to launch it; I want to run it as another user.
I could probably do sudo -u username -p password my command. However, I'm not feeling too good about storing the users password in plain text.
Is there a "smarter" way of doing this?
I need to start screen with some bash command to execute.
Trying screen -S test -d -m bash -c './test.php'
but have no result, screen didn't apear.
Even more, let's that i need to start something like that
vlc -I ncurses --http-reconnect http://ip/ --sout '#duplicate{dst=std{access=http{user=,pwd=},mux=ts,dst=:51001}}' --ttl=255 --loop --repeat
Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?
I have the default package of Ruby installed that shipped with the OS, which is an older version.
I have recently installed MacPorts with the latest Ruby version which is installed in a seperate location:-
/opt/local/bin/
But when I run
which ruby
I get
/usr/bin/ruby
Is there any way to edit the path of the command ruby so it would reference the new installation in the /opt/ directory?
Thanks in advance.
Hi
I run as admin on my machine and want to run an executable as non admin user from the command prompt (without logging off).
I'm running on windows 7 64 bit OS.
Is possible?
Thanks.
I have an existing XP installation on a 160GB disk, with about 90 GB free.
I'm trying to install Win7 on the same HDD, following directions from here.
The question is: How long should it take to run the "shrink" command, given the above parameters? How much space will that free up for Win7?
Don't ask why, but I would like to know a linux command, besides "la -laR", since that could not take that long according to where you are in the folder structure, that takes much time to complete.
Thanks for your help.
I am using Curl, and am having a problem trying to get it to recognize the $http_proxy environment variable when using sudo curl. I tried putting export http_proxy=.... in my /etc/profile and restarting the shell, to no avail. I would rather not use su -l and run the command while logged in as root.
i have to open command prompt, but my laptop is not starting, when i on it, it show a error.. BOOTMGR is compressed restart press ctrl+alt+dlt. i have to open dos and launch ie and then delete some file from c drive
I'm in a ssh connection and I would like to play a sound after a command completes (not on the server where I connected).
Something:
ssh [email protected]
make && play-sound-local
I have built-in pc-speaker disabled so echo -e "\a" doesn't work.
Any suggestions?
Does the VSFTPD server support Clear Command Channel (CCC) per RFC 2228?
If it does support CCC, does it need to be enabled? Or, is it enabled with the whole FTPS suite of configuration parameters?
My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find ~ *.pdf or find ~ "*.pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
I have a CSV file where data are in the following format
|001|,|abc,def|,123456,789,|aaa|,|bbb|,444,555,666
I want to replace only those "," that appears between numbers with some other character like say SOH or $ or *
other "," appearing in the line should not get replaced i.e. to say I wish to have following output
|001|,|abc,def|,123456*789,|aaa|,|bbb|,444*555*666
Can someone please help me with sed command pattern to get the above desired output
I have a web application that runs a program which needs X. I'm using xvfb to launch it; I want to run it as another user.
I could probably do sudo -u username -p password my command. However, I'm not feeling too good about storing the users password in plain text.
Is there a "smarter" way of doing this?
I am running the top command to see details about specific processes. The output is piped to grep like so:
top -n 1 | grep jre
The output is usually around 4 lines, and I would like to prefix the current time to each line so it would be something like:
Before:
2772 deleteme 20 0 2832 1156 872 R 2.0 0.1 0:00.01 top
After:
13:46 25-08-2012 2772 deleteme 20 0 2832 1156 872 R 2.0 0.1 0:00.01 top