I'm trying to understand the process for enabling an a core extension (dom) in php. When I run phpinfo, I see '--disable-dom' in the configure command. Am I supposed to re-install PHP?
On a windows server (2008), can you even telnet into the server? (not remote desktop, but via the command line)
If yes, is there much control really?
How do people automate if you can't telnet? (assuming you can't)
I'm trying to back up users Chrome Sessions with Rsync with the following command:
rsync -e "ssh -i new.key" -r --verbose -tz --stats --progress --delete \
'/cygdrive/c/Users/jay/AppData/Local/Google/Chrome/User Data/Default/Current Session' \
user@host:"/chrome sessions/"
Except this doesn't work exactly, as I get a file called chrome in a sessions directory that is already present on the server.
Why is this?
OS: Gentoo, CentOS
Version: 2.1.0
Follow the quick start guide, I got the below error when running bootstrap-localcloud:
cloudify@default> bootstrap-localcloud
STARTING CLOUDIFY MANAGEMENT
2012-05-30 14:55:50,396 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - ; \
Caused by: org.cloudifysource.shell.commands.CLIException: \
Error while starting agent. \
Please make sure that another agent is not already running.
Operation failed.
What port Cloudify is using to check that agent is running?
PS: it's working fine when running on Windows.
UPDATE: Wed May 30 22:37:30 ICT 2012
Reply to @tamirkorem and @Itai Frenkel:
I'm pretty sure because this is the first time I run that command on 2 servers. More clearly, here're the output:
cloudify@default> teardown-localcloud
Teardown will uninstall all of the deployed services. Do you want to continue [y/n]?
2012-05-30 22:43:33,145 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - Teardown failed. Failed to fetch the currently deployed applications list. For force teardown use the -force flag.
Operation failed.
cloudify@default> teardown-localcloud -force
Teardown will uninstall all of the deployed services. Do you want to continue [y/n]?
Failed to fetch the currently deployed applications list. Continuing teardown-localcloud.
.2012-05-30 22:46:39,040 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - Teardown aborted, an agent was not found on the local machine.
Operation failed.
and this one is the detailed result:
cloudify@default> bootstrap-localcloud --verbose
NIC Address=127.0.0.1
Lookup Locators=127.0.0.1:4172
Lookup Groups=localcloud
Starting agent and management processes:
gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.gsc 0 gsa.global.gsm 0 gsa.gsm_lus 1 gsa.global.esm 0 gsa.esm 1 >/dev/null 2>&1
STARTING CLOUDIFY MANAGEMENT
2012-05-30 22:36:12,870 WARNING [org.cloudifysource.shell.commands.AbstractGSCommand] - ; Caused by: org.cloudifysource.shell.commands.CLIException: Error while starting agent. Please make sure that another agent is not already running. Command executed: /usr/local/src/gigaspaces-cloudify-2.1.0-ga/bin/gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.gsc 0 gsa.global.gsm 0 gsa.gsm_lus 1 gsa.global.esm 0 gsa.esm 1 >/dev/null 2>&1
Reply to @Eliran Malka:
there is no such process listening on port 4172:
# netstat --protocol=inet -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 2363/tor
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2331/mysqld
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2293/cupsd
I need some help getting my rync command syntax working. I need to clone the /home/user/public_html folder on a remote server to the server I am logged into via SSH, copying the folder into the same exact path on this local machine.
I have root on the local machine I'm in session on and a user account shell on the remote machine. I'm not clear on where to put the SSH login info and how to define the folder paths.
I'm investigating an issue with DB connections being left open indefinitely, causing problems on the DB server. How do I see currently open connections to a PostgreSQL server, particularly those using a specific database? Ideally I'd like to see what command is executing there as well. Basically, I'm looking for something equivalent to the "Current Activity" view in MSSQL.
We're running CI towards our WAS with wsadmin.bat
The applications are updated with this command
$AdminApp update ${projectName}EAR app {-operation update -update.ignore.new -contents {${artifactsDir}/${projectName}-${buildVersion}.ear}}
This causes all the "Security role to user/group mapping"-settings to reset, even though all the other settings are preserved with the -update.ignore.new
Anyone know how to fix this?
I am a webdeveloper and my current working tools are:
Terminal (ssh, tailing logs, grep, git, etc)
Eclipse (PDT, Javascript, etc)
Firefox (Developer Toolbar + Firebug)
The problem is that I hate using the eclipse navigation tree. For me it is a lot easier to go to the Terminal and do something like this:
$ eclipse /var/www/myproject/long/path/lib/Driver/Sql.php
The annoying part is that the eclipse window is not focused after this command.
I have to manually click on the eclipse window (using mouse... :@ grrr)
Anyway to force eclipse to be focused?
Does anyone know what the magic URL is for rebooting a WebSTAR DPC2100R2 with curl? I used to have a SurfBoard, and the curl command:
curl http://192.168.100.1/reset.htm?reset_modem=Restart%20Cable%20Modem
Would reset the modem. Sure, I can go power cycle it manually, but it's in the basement and I'm lazy :-).
I did find out the URL to elevate the access permission, but nothing about rebooting/resetting yet.
I started my mongo with the following command:
[lucas@ecoinstance]~/node/nodetest2$ sudo mongod --dbpath /home/lucas/node/nodetest2/data
2014-06-07T08:46:30.507+0000 [initandlisten] MongoDB starting : pid=6409 port=27017 dbpat
h=/home/lucas/node/nodetest2/data 64-bit host=ecoinstance
2014-06-07T08:46:30.508+0000 [initandlisten] db version v2.6.1
2014-06-07T08:46:30.508+0000 [initandlisten] git version: 4b95b086d2374bdcfcdf2249272fb55
2c9c726e8
2014-06-07T08:46:30.508+0000 [initandlisten] build info: Linux build14.nj1.10gen.cc 2.6.3
2-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-06-07T08:46:30.509+0000 [initandlisten] allocator: tcmalloc
2014-06-07T08:46:30.509+0000 [initandlisten] options: { storage: { dbPath: "/home/lucas/n
ode/nodetest2/data" } }
2014-06-07T08:46:30.520+0000 [initandlisten] journal dir=/home/lucas/node/nodetest2/data/
journal
2014-06-07T08:46:30.520+0000 [initandlisten] recover : no journal files present, no recov
ery needed
2014-06-07T08:46:30.527+0000 [initandlisten] waiting for connections on port 27017
It appears to be working, as I can execute mongo and access the server. However, here are the process running mongo:
[lucas@ecoinstance]~/node/testSite$ ps aux | grep mongo
root 6540 0.0 0.2 33424 1664 pts/3 S+ 08:52 0:00 sudo mongod --dbpath /ho
me/lucas/node/nodetest2/data
root 6541 0.6 8.6 522140 52512 pts/3 Sl+ 08:52 0:00 mongod --dbpath /home/lu
cas/node/nodetest2/data
lucas 6554 0.0 0.1 7836 876 pts/4 S+ 08:52 0:00 grep mongo
As you can see, there are two PID's for mongo. Before I ran sudo mongod --dbpath /home/lucas/node/nodetest2/data, there were none (besides the grep of course). How did my command spawn two PID's, and should I be concerned? Any suggestions or tips would be great.
Additional Info
In addition, I may have other issues that might suggest a cause. I tried running mongo with --fork --logpath /home/lucas..., but it did not work. More information below:
[lucas@ecoinstance]~/node/nodetest2$ sudo mongod --dbpath /home/lucas/node/nodetest2/data
--fork --logpath /home/lucas/node/nodetest2/data/
about to fork child process, waiting until server is ready for connections.
forked process: 6578
ERROR: child process failed, exited with error number 1
[lucas@ecoinstance]~/node/nodetest2$ ls -l data/
total 163852
drwxr-xr-x 2 mongodb nogroup 4096 Jun 7 08:54 journal
-rw------- 1 mongodb nogroup 67108864 Jun 7 08:52 local.0
-rw------- 1 mongodb nogroup 16777216 Jun 7 08:52 local.ns
-rwxr-xr-x 1 mongodb nogroup 0 Jun 7 08:54 mongod.lock
-rw------- 1 mongodb nogroup 67108864 Jun 7 02:08 nodetest1.0
-rw------- 1 mongodb nogroup 16777216 Jun 7 02:08 nodetest1.ns
Also, my db path folder is not the original location. It was originally created under the default /var/lib/mongodb/ and moved to my local data folder. This was done after shutting down the server via /etc/init.d/mongod stop.
I have a Debian Wheezy server, if it matters.
Mac OS X Spaces change when I drag a window at the edge of the screen. Is there an application or 'defaults' command to disable this?
Warp looks like it might help, but hasn't changed the behavior for me, even though I tried turning it off, or setting a modifier key.
Some of us are familiar with patch failures like "Hunk #11 FAILED at 958." -- is there a command in VIM that allows me to go to, say, 11th hunk ... without having to manually count it? Even a shortcut to go to the next patch would useful.
Is there any?
Pre-Snow Leopard, I could use the following command:
defaults write com.apple.loginwindow Finder /Applications/My-replacement-app-such-as-Terminal.app
Which would a.) replace the Finder launching at login with an application of my choice, and b.) cause that application to launch instead of Finder when all other applications are quit.
Is it possible to do this in Snow Leopard, or has this behavior been deprecated? (I don't want to disable Finder altogether, I just don't want it to start at login.)
Hi,
I use snow leopard.
how I can send a html page to web browser from the terminal?
example: if I am in $HOME dir, where exist myPage.html, I can send this page for see in web browser with a command ?
Many thanks.
I've been unable to do a fresh install of XBMC Live 9.11 to my hard drive. Everytime it fails at the Install System step. But I am able to get XBMC Live 9.04.1 to install successfully.
How do I upgrade XBMC Live 9.04.1 to 9.11?
I understand that Ctrl+Shift+F2 brings up the command line, but what are the next set of commands to run?
When I run configtest on our Apache server, I get the following:
`Syntax error on line 1023 of /www/conf/httpd.conf:
Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration`
I know this part of the configuration works. Is there a trick to make configtest mod_ssl aware?
Hello, I need to unjoin a computer from the domain preferably form the command line. I know how to use netdom.exe to join a machine to a domain. Is there a corresponding way to un-join it?
thanks.
If I need to print a colored document on a black and white printer, then which one of these options do you think is better:
desaturating the document first and then sending it to printer
giving the print command on the colored document only (trusting the printer for the job)
I know most of us use the second option. I want to know if there is any possible advantage of using the first option?
I booted from a VHD on my laptop and hoped to sysprep this image, but it didn't let me do it. I got a fatal error during the process. I used the following command: sysprep /generalize /shutdown. My question is it possible at all to sysprep a VHD without any HyperV or virtual PC technology?
root@vi-notebook:/home/vi# laptop_mode start force
Laptop mode
enabled, not active
How to start laptop mode? It starts successfully when AC adapter is removed, but not by explicit command.
The system is GNU/Linux Debian i386 squeeze (not up to date), 2.6.30-zen2-31270-gc7099db-dirty, Acer Extensa 5220.
Hello,
First of all I must say that I'm ver inexperienced server and network user. But I rented a unmanaged dedicated server. Well I didn't know what unmanaged really means, then I learned it when I needed support. Well I must do everything by myself.
I have a problem. I had already 4 IPs on my server when I rented it. But then I needed more Ips and my server assigned me 32 Ips in which I can only use 27 of them.
85.25.230.0 - 85.25.230.31 this is my Ip range and they say the following Ips must not be configured on the server:
85.25.230.0 - network address
85.25.230.1 - gateway address
85.25.230.2 - router redundancy
85.25.230.3 - router redundancy
85.25.230.31 - broadcast address
But the problem is ok Ips are assigned to me but they are not setup on my server. How will I setup Ips to work on my server?
I did this after my reseach on google:
I used this command on command prompt:
route add 85.25.230.0 mask 255.255.255.224 85.25.230.1 metric 1 if
then it said OK!. and I thought they should be working.
(btw, mask is given to me by my ISP and I don't know metric 1 and if means I just saw it on the net and write it here)
I setup my domains via using Plesk Kontrol Panel. So i added one domain and setup one of my new Ips 85.25.230.5 to it. But no it is not working. When I visit the domain via browser, there is a Plesk page comes and says this domain is not configured on the server.
Then I changed the domains Ip to one of my old Ips which are given to me with the server and which I have been using for my other domains for a long time. Ok in a second, domain started working. I set it back to my new Ip and domain did not work.
As I said, I'm not an expert and do not now the logic. But I'm eager to learn. Can you tell me what might couse the problem and did I do wrong while setting up IP RANGE to my server, if so how can I set them up?
Thank you,
Efe
I am trying to write a group of bashscripts to launch a set of applications on different workspaces. Reason being so that I can for example set up a script that launches all my dev related applications on the workspaces I usually put them on.
I am looking for a command like
ws -2 foo
Which would launch the foo application on workspace 2
I tried looking through google but to no avail. Any suggestions?
I issued an command on a local machine
scp -r download/ [email protected]
Then I checked at the remote foo.xxx.xxx.xxx and found under my home directory, there is nothing. Did scp transfer something? If yes, where are they?
Thanks!