I'm running natty server on Rackspace cloud and rsyslogd has been using 197% off my cpu (quad core I believe) for the past few days. Does anyone have an pointers as to how to figure out what is going on?
When I use the cp or mv command to copy/move files is there a way for me to have the destination file assume the same name of the source file, however add an additional suffix.
For example
Code:
Now what if I wanted this...
Code:
Do I have to type the destination file out manually everytime? or is there a quick way for the cp or mv command to assume the source file name and add the .bak
Can I change the destination for hidden files that are in the Home Directory? I'd like to put all the hidden files in my Home directory into a seperate folder inside of Home. (10.04)
I'm running Mandriva 2010.0 as a web server, i had 2 HDD in the erver. i dedicate 1 HDD just for LOGS and system backup (160 GB). i would like to change the log destionation directory from /var/log/httpd (defaults) into /backup/log/httpd how can i do that.? coz i couldn,t find the configuration in the webmin. that log would be useful for webalizer/awffull statistic in several days ahead.
I am playing around with transparent proxies, The current way I am doing things is the program makes a request to a computer on port 80, I use
Code: iptables -t nat -A OUTPUT -p tcp --destination-port 80 -j REDIRECT --to-port 1234 to redirect to my proxy that I am playing with. the proxy will send out a request to port 81 (as all outbound port 80 are being fed back in to the proxy) so I want to do something like
Code: iptables -t nat -A OUTPUT -p tcp --destination-port 81 -j DNAT --to-destination xxxx:80 The problem lies with the xxxx part. How do I change the destination port without changing changing the destination ip? Or am I doing this setup completely wrong,
In Open Office Writer 3.2, is there any way that I can change the default "save as" "to" location from Documents folder to some other location (e.g., Desktop) in Lucid? I have looked thru everything I can find under tools>options, but I don't see anything that appears relevant.
Any command line deal I could do from terminal that might accomplish this?
This question is in connection with this thread: [URL]
I am trying to run the same command(s) on the many destination servers from my source server.source server user "report" ssh keys are added to all destination hosts.
why i am getting this error unknown option '--log-level' and two why is not writing anything to /var/log/iptables when i do 'cat /var/log/iptables' i get nothing
I cannot change directory to a more than three folder tree destination folder from ~ in terminal. I've checked everything. No Typos or misspell. The destination folder was recognized by "ls" command but when I went to it, the terminal said, "no such file or directory."
I'm running ubuntu 9.10, the box has 2 network interfaces. I've got rsyslogd running on this box also. On one of the interfaces I have a VoIP ATA which I've configured to send syslog messages to the ubuntu box, however they're not coming up in the log file (I've configured syslogd.conf to capture logs for local2.debug and local3.debug).
rsyslogd seems to be working ok for data coming through on the other interface, but not this one. I've verified the ATA is sending data by using tcpdump and have confirmed it's using local2.debug and local3.debug. It seems perhaps it might not be listening on all interfaces? rsyslog is running with the -c4 switch.
I'm making a program that uses Scapy to sniff for a packet being sent to a certain host, then sending another packet with the Ethernet, IP and TCP headers identical, but a different payload.Whenever I try to run this, however, I get these errors:Code:WARNING: No route found for IPv6 destination :: (no default route?)WARNING: Mac address to reach destination not found. Using broadcast.Does anyone know what I can do to fix these problems?
I changed my MAC address in /etc/network/interfaces. To make it work I had to change eth0 to eth1. The Internet connection works fine but network-admin is now gone. The icon is gone and the command line says: The program 'network-admin' is currently not installed. You can install it by typing: sudo apt-get install gnome-network-admin.
I've tried changing the DNS servers by hand in /etc/resolv.conf three different ways:
sudo gedit /etc/resolv.conf
gksudo "gnome-open %u"
gksudo nautilus
But every time I restart it resets back to my ISPs DNS servers. I'm afraid if I try to install network-admin again it's going to really mess everything up (just a feeling).
I'm trying to shape bandwidth using HTB method and filtering classes with destination mac address. for this I've found two codes but none of them seem to filter bandwidth as i want (test with iperf) can some one explain me the problem with theses codes
Code: tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit ceil 1000kbit tc filter add dev eth0 parent 1: protocol ip prio 3 u32 match u16 0x0800 0xFFFF at -2 match u16 0xM4M5 0xFFFF at -4 match u32 0xM0M1M2M3 0xFFFFFFFF at -8 code2:
I have a RAR archive, split into 40 sections, containing a folder with a total of 2GB of data. When I Open the Archive using "File Roller 2.30.1.1" and drag the archived folder to destination folder, it says that its uncompressing, but after its uncompressed, there is nothing there, in the destination folder. Where was the 2GB extracted stuff gone?
I need to check the output of a name resolution, but I configured the firewall of the destination to avoid answering to pings. Is there any other way to get a name's IP without using ping? (I mean something like $resolv name.com)
i took a back up using grsync and stupid me, the "delete on destination" was enabled.So, i lost some folders and files that i used to keep only on the receiver hd to keep my host clean
I have the lastest version of ubuntu server up and running along with a website shopping script working perfectly. Now I need to change the url in the address bar so that it stops displaying my ip address and shows instead my choice of domain name for whatever page has been opened. I have a number of domains available and each are redirecting traffic to my home server, but the address bar url alters to my ip address whichever I use. How then do I go about this change? Obviously this is to do with dns resolving stuff which I have no experience of. Can someone put down in as few steps as possible what I need to do?
Let us assume I have a zip file called patch.zip, when I run unzip -l patch.zip I get the following output.
bin/a bin/b lib/c
To this zip file I want to add a new file, "Readme.txt" located at /path/to/Readme.txt in such a way that, when I re-run unzip -l patch.zip again I get something like this
We used to send files in the form of .jpg, .tif, and/or .pdf. Normally the file name will be in the form of 08072011IE01CTYHUB.PDF (DDMMYYYY - is the date, IE - publication, 01 - page number, CTY - edition name and HUB - destination in three characters). These files will be stored in a common folder (say SOURCE). I need a script to move these files to destination by reading the destination from the file name through FTP. At destination these files should be moved to a folder meant for CTY. Please note before the file is sent through FTP it should be compressed (zipped) At SOURCE folder the files will be as:
etc. where first 8 characters are date in the form of DDMMYYYY, next 2 characters are publication, last 3 characters are destination, previous 3 characters are edition and left over in the middle are page number in the form of NN or name. Presently I am zipping these files and send it through FTP to the destination. At destination my counterpart takes the file, stores in appropriate location (like folder name CTY) for use. To automate the above process, I want a script.
I would like to edit the destination a launcher which opens a program using WINE. It is Applications >> Wine >> Programs >> World of Warcraft >> World of Warcraft. When I use Edit Menus to check the launcher properties I learn it is set as Type: Application, and Command: [URL]...How would I instead have it point directly at opening, with WINE, /home/dusf/.wine/dosdevices/c:/Program Files/World of Warcraft/Wow.exe?
The -opengl argument shouldn't matter as I have it preconfigured to run with opengl in the config. If relevant, when I navigate to c:/Program Files/World of Warcraft/, and open Wow.exe manually, it opens using WINE automatically.
I've got 8.10 of Ubuntu and currently running openLDAP and have SAMBA domain using this along with the PAM changes on all machines to authenticate the logins.Now I've got a situation where I need to change the organization it currently is dc=mycomp, dc=local and I need to change the "local" part.
I thought that I could slapcat it out then change all dc=local to dc=blech and then reload the LDAP database. Then go around and change all the ldap configuration points to match.I don't think its as simple as change the base dn and everything below that will update.
I'm running Ubuntu 9.10 with Kvm. I've used a howto to configure my network. Seems to work fine, I've installed the Virtual Machine manager, when I go to create my Virtual Machine, I see the the image is automatically created in /var/lib/libvirt/images. I have a totally separate path for my images. How to I configure a different image directory
no matter what I do I cannot get my fresh install of apache to change off the default
Quote:
Originally Posted by apache
It works! This is the default web page for this server. The web server software is running but no content has been added, yet.
this is really annoying, my config file at /etc/apache2/apache2.conf is as follows (it is mainly the original with a few commented changes)
Code: # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the