List in long form files in the directory "/ etc" for the file "ETCDIR" and view them,
while the monitor sequential manner.
how i can do it? with commands tee and more
I am currently trying to create a set of images to deploy on my network, but I've run in to a snag. When I create my own Windows 7 image I can successfully use NAT for connecting to the network but whenever I try to access a webpage I get nothing.
To be more specific, All firewalls/iptables are disabled on my host machine, my virtual machine, and my network. I can do lookups and all addresses respond correctly (i'm even using Google's DNS). On the host OS i have full connectivity. On the virtual machine I can ping any device I want and all addresses resolve correctly. Within a browser I cannot reach any page via hostname or IP. I feel almost like port 80 is being blocked but i can't find any reason this would be the case.
If anyone has had this occur before, I would love some insight to the problem. I understand this question is a bit out of the norm for stackoverflow, but I've run out of ideas. Thank you for any help you can provide.
I have developed a web application using jsp/servelt technology, now i have hosted in my company windows server by using tomcat web server. when i want to go to the application i have to type my server name and the 8080 port no. I want to remove this and want to use my web application name instead of the server name. hope a quick answer.
example:
now (http://my server name:8080/)
what i want (http://my application name)
Hi there is a dialer software (by ISP) that connects to my ISP's wi-fi network. Though it connects to the wi-fi network however a control-less windows gets stuck in the middle of the my win7 desktop screen and does not goes off. I cannot close it or minimize it as there are no controls on it.
I want to know how to minimize or close the windows without killing the app via Task Manager.
Regards,
DK Jain.
Yahoo messenger is huge:
And that's as short as you can make it, it won't shrink vertically anymore.
How can i make it a more reasonable size, e.g.:
In fact, if we're making it look better, how about Yahoo stops pissing on their users and makes it:
Okay, yes, the last one was me complaining. But the first two are a valid question!
Note: The cut-off title bar is because Yahoo! developers don't pay their taxes, and assume that everyone runs at 96dpi.
I'm looking so migrate some websites to a new server.
I have SSH access to the current one but only FTP access to the new one.
How can I via Centos and SSH copy entire folders to the new server via FTP?
I can log into the new server via the built in FTP client on Centos but I'm not sure of the commands after this.
I need to move the httpdocs folder from the old to the public_html folder of the new server.
I'd love to do this server to server as it'll be a lot quicker than download - upload via my broadband connection.
Yours,
Chris
First of all, I'm using Mac OSX 1.6, MAMP 1.9, PHP 5.3.4, and MySQL 5.1.44.
I'm in the process of setting up a video encoding service for a site using Chris Boulton's PHP-Resque and Redis. Once the worker process is fired and the videos have been encoded, I need to save their locations to a mysql database. The php script is being run from the shell, so that is where the issue begins. I import the mysql settings and when it attempts to connect, I get the following errors:
Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Users/austingym/Documents/Dropbox/Website/htdocs/homefree/lib/MySQLi_Extended.class.php on line 24
Warning: mysqli::mysqli(): [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servn (trying to connect via tcp://MYSQL_SERVER:3306) in /Users/austingym/Documents/Dropbox/Website/htdocs/homefree/lib/MySQLi_Extended.class.php on line 24
Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Users/austingym/Documents/Dropbox/Website/htdocs/homefree/lib/MySQLi_Extended.class.php on line 24
Warning: mysqli::set_charset(): Couldn't fetch MySQLi_Extended in /Users/austingym/Documents/Dropbox/Website/htdocs/homefree/lib/MySQLi_Extended.class.php on line 32
I realize that the error is occurring because it's trying to connect to tcp://MYSQL_SERVER:3306, when MySQL is on port 8889. I've been reading about Mac OSX and MAMP errors regarding the mysql.sock and I've gone through multiple forums and tried various fixes, but none have worked. I've tried PATH=/Applications/MAMP/Library/bin/:/Applications/MAMP/bin/php5.3/bin/:/opt/local/bin:/opt/local/sbin:$PATH and sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock but neither have worked. I even ran a search on my machine for "3306" to find where it's being set, but because that's the normal default, I'm guessing it's not being set explicitly. Any clues on how to fix this rather challenging error?
I installed tftp as per this document:
http://icesquare.com/wordpress/solvedtftp-error-code-2-access-violation/
I followed this to the letter 3 times and every time I put a file I get:
root@CiscoCFG:~# tftp localhost
tftp put test
Error code 2: Access violation
tftp root@CiscoCFG:~# tftp localhost
tftp put test
Error code 2: Access violation
If I touch the file name chmod 777 the file then do a put it works perfectly fine.
My config is as follows:
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /svr/tftp
disable = no
}
the directory /svr/tftp permissions are 777:
drwxrwxrwx 3 nobody nobody 4096 Nov 14 10:32 svr
This thing should have full permissions as would anyone who wanted to write or read from that directory. I see nothing in the logs im really stumped on this. If the file is already in the directory I can read it all day long, I just cant make NEW files, can not put them, but I can do get's, I can only put to an existing file with permissions @777.
Thanks
I'm a newbie to AHK, learning the basics. I'm using Notepad as an example - I want to hit the Cancel key every time I close Notepad and it asks if I want to Save/Don't Save/Cancel.
I've come up with the script below and it works once but then I have to reload the script to do it again. I want it to hit Cancel every time the question box comes up. I thought Loop would work but am doing something wrong. Any ideas why, anyone?
Loop
IfWinExist Notepad,
{
WinWait Notepad
WinActivate
Click 312, 109
return
}
I have Rundeck executing a remote script, which is in python is using print statements to return output normally such as:
$ python mytest.py
PASS: Condition 1 passed
PASS: Condition 2 passed
PASS: and so on...
When I run this via Rundeck, however, it doesn't show me the same print generated outputs as above. In Rundeck's most detailed Debug output mode, I only receive the following:
06:31:12 Permanently added 'myremotenode.com' (RSA) to the list of known hosts.
06:31:12 SSH_MSG_NEWKEYS sent
06:31:12 SSH_MSG_NEWKEYS received
06:31:12 SSH_MSG_SERVICE_REQUEST sent
06:31:13 SSH_MSG_SERVICE_ACCEPT received
06:31:13 Authentications that can continue: publickey,password,keyboard-interactive
06:31:13 Next authentication method: publickey
06:31:13 Authentication succeeded (publickey).
06:31:13 /cygdrive/c/Program Files (x86)/Mozil...
06:32:06 Adding reference: ant.PropertyHelper
06:32:06 Setting project property: sshexec.output -> /cygdrive/c/Prog...
I know that the remote script is actually executing just as usual, as I'm receiving other emails generated by the ~30min long script.
Obviously, I don't want to have to wait 30mins to see the result of each print statement within the python script.
How can I get the same level of output in Rundeck as I do in the bash shell directly?
I bought Windows 7 Professional which I installed it on my laptop. Now i decide to move it to be on my desktop PC, so I uninstall the windows from my laptop which I returned to the original OS came with the laptop (Vista Business) and insall windows 7 on my desktop PC. The problem is I cannot activate my copy of windows 7 on the desktop PC. and every time I try to activate it I get the error message
" The product key you typed cannot be used to activate windows on this computer"
and the code of the error is:
Code: 0xc004c008
Description:
The activation server determined that the specified product key could not be used.
Hoe can I solve this problem.
I want to do
/usr/bin/bash myscript.sh -args
which, as it stands, runs the script but doesn't pass the args to it. I realize that the conventional syntax is simply
./myscript.sh -args
but I'm curious as to what I need to do in order to call the script from bash explicitly.
I have Windows 7 installed as my primary operating system, on a laptop that's on my home network (wireless).
I'm using Microsoft Virtual PC 2007 SP1 to run a virtual machine of Windows XP SP3, in which I want to access the Windows 7 instance, both to browse a shared folder and access the local Apache server.
So far I can ping my Windows 7 IP address (IPv4) and access the apache server through the web browser through HTTP.
However using my machine name never seems to work. Pinging it fails, and I can't access my apache server using it either.
The problem seems to be something to do with my machine's name being registered under IPv6 rather than IPv4.
I'm at a loss what to do. Should I try to set up IPv6 on the virtual machine? Not sure how to go about that. Or maybe I should somehow get my machine name on Windows 7 to work with IPv4?
Although I think it already does, because I can ping it from a separate box (running Ubuntu), which is only registered under IPv6.
I want the task bar to light up orange and never lose focus to anything. If I'm installing something and then go play a game at some point it will drop out to the finished instillation. Also, if installing multiple programs at once my 'next' button can all of sudden become "click here to install this crappy toolbar" of another program's install. Of course there are settings for some programs to not "lose focus" or "stay on top" but I really want windows to handle it. If its somehow an exe called say, Taskswtich.exe, I could possibly use Process Blocker however I'm assuming its part of a function call or some such.
For XP I found this: How to disable auto focus of opened Windows applications? but what about Windows7?
And this old post Preventing applications from stealing focus with a bunch of long answers that say "no". I'd appreciate this not being merged with a 4 year old question. I'd like to avoid 3rd party software. This is 2014, don't we know how to hack windows yet?
Hi guys i am getting nut reinstalling windows 7 on one of those Acer aspire all-in-one... The original OS(windows professional x64) was not starting, after the initial screen the bios was prompted. So
step 1: i tried to access the system partition and reinstall everything but could not get at the point
step 2: i set the bios to native ide and i tried to insert my original copy of windows professional and do a clean installation, but it does not allow me to format/create other partion form the installation mask
step 3: my BAD, i tried to install ubuntu and i clean the whole hard drive, i was getting an error at some point during installation so i decided to get back to windows
step 4: Windows 7 again, at the disk screen of the windows installation i entered into the prompt and played around with DISKPART...
-i listed the disk and the HD was disk 0.
-i selected disk 0.
-i CLEAN disk 0 successfully.
-i tried to create a CREATE PARTITION PRIMARY but gave an error cache corrupt and disk not up-to-date (after i try to create a partiton in disk 0 it disappear when i try LIST DISK and i have to restart before he can list DISK 0 again, RESCAN did not worked).
-tried CLEAN ALL(2 hours) and succeeded.
-try again to create primary partition and failed, same errors -try to install my old copy of windows xP pro and it seems to work, it create a partition, format(only quick worked, slow mode was at 0% after 1 hour so i stop), it start installing and around 90% installation said it could not copy a file and he stop -back on windows 7 again, it says that the hard drive has 490+gb unpartitioned but won't create a partition and format.
-i tried again DISKPART as i though i messed up with the MBR when i installed ubuntu, so i did all of the instruction below
http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html
http://support.microsoft.com/kb/927392
the errors were: on bootsect: the systne partiton was not found, Data error cyclic redundancy check
on bootrec /FixMbr: A device attached to the system is not functioning
but did not worked, and still can not partiton/format/install on a blank HD
i tried some bootable clean disk tool and start infinite loop on the same errors
the bios setting are: sata: native ide. if i put AHCL(or something like that does not load the HD and the DVD). quick start/quite start: disabled.
Are there any other option or tools i can try before i try change the HD(That is my last option)?
Thanks to everyone.
Hi there,
i have a really annoying behavior on my Windows XP System. Any PopUp Windows (e.g. asking me for my network signin) automatically steal the focus and i end up typing half of my last line of code into the username-field of the message box.
Since i have no chance to prevent the message boxes themselve, i really would like to prevent the focus change!
I searched the web and here too, but the only valid answers use TweakUI and some registry entries. None of them work. I guess, its because they prevent focus stealing from another application and not from within the active application itself.
Anyone out there who knows a solution to this?
Thanks anyway ;)
Flo
Normally i like running ie, but it's rendering speed at high-dpi is poor. More recently i've switched to Chrome, but it does not support high-dpi displays. i'm interested in trying other browsers, but they must support protected mode.
Are there any other browsers, besides IE and Chrome, that support Mandatory Integrity Levels (i.e. protected mode)?
Browsers that i do know about:
Browser Protected Mode High-dpi Aware
============== =============== ==============
Internet Explorer Yes Yes
Chrome Yes No
Firefox No No
Opera No No
Are there any other?
And just as an fyi, the clear, unambiguous, non-argumentative, non-subjective, question is:
Are there any browsers, aside from Internet Explorer, available for Windows, that run at the Windows Low Mandatory integrity level, and support high-dpi (i.e. non-96 dpi) displays?
are there any 3rd party software that you can install on your windows server that filters spam from your mail server? (before the user downloads via pop0
In my WinXP I write a bat file to start the putty which is connected to my linux for development.
D:\PuTTY-v0.60\putty.exe [email protected] -pw 123456
But I have to set the charset to utf-8 manually everytime when I do the login.I think it's quite a waste of time.So how can I do the setting more quickly?Thanks.
Hello
On Linux it is possible to create an a manual IPSec (no IKE etc) tunnel thus:
spdadd 192.168.0.10/32[5066] 192.168.0.11/32[5064] udp -P in ipsec esp/transport//require;
add 192.168.0.10 192.168.0.11 esp 2222 -m transport -E des-ede3-cbc "123456789012123456789012" -A hmac-md5 "1234567890123456";
I need to do the same on Windows. I am aware of netsh but I don't think its equivalent, I need to specific the SPI (thats the 2222 above) and this seems impossible.
Any ideas or alternatives?!
Thanks,
Stuart.
Is there a way to manipulate icons on an Mac OS X file from either Automator or the terminal?
In my case, I want to remove custom icons (that is, the same as doing 'Get Info' and Edit-Cut on the icon) from a large number of files.
I need to copy lots of files. Usually I use rsync because I pass it the -aP options and I can see (a) how many files are left to process and (b) how much of each individual file is copied.
However rsync also does lots of things with checksums to verify that a file was copied. However I don't really need that now. But normal cp doesn't include the above mentioned count of files left, which is very helpful.
Is there anything like cp that includes progress of how many files left, but isn't as heavy as rsync?
I am trying to get samba working on centOS... I installed it via Yum, changed the samba config file to:
[ShareName]
path = /var/www/html/
public = no
writable = yes
printable = no
create mask = 0765
valid users = username
Restarted samba and it did nothing.. the windows network is not seeing the share at all. I realize there is most likely something I am missing but I have always done it with the GUI, but unable to do that this time.. Any pointers?
Hello,
I wanted to ask if let's say that Microsoft has stopped supporting Windows Server 2003 now so there is no any security updates and I use that system for Domain Controller (Windows XP/7 Professional Clients) and File Server only + I'm using ESET NOD23 AntiVirus.
Will my system be secure? I'm asking because I don't surf internet on that system nor I will install/open any programs/documents and that server is connected to router without any open ports.
"On July 14, 2015, all Windows 2003 support, including security updates and security-related hotfixes, will be terminated."
I have the following line of code that I use to update my personal date variable in my projects to today's current date. This line works in Ubuntu's terminal, but the Mac terminal seems to be far behind. Unfortunately, I copied this snippet from some site, so I'm not sure how it exactly works. Suggestions?
grep -ilr --exclude=revar.sh --exclude=README.md "[DATE]" * |
grep -v .git | xargs -i@ sed -i "s/\[DATE\]/${today}/g" @