Can anyone recommend a linux command line tool to monitor the number of bytes transferred between the local server and a specified IP address/port.
The equivalent tcpdump command would be:
tcpdump -s 0 -i any -w mycapture.trc port 80 host google.com
which outputs :
46 packets captured
131 packets received by filter
0 packets dropped by kernel
I'd like something similar that outputs:
54 bytes out, 176 bytes in
I'd like it to work on RHEL and be free/open-source. It would be good if there was an existing tool which I was just missing too!
My goal is to allow people to upload and download large files through their web browser with a simple user interface and user password/account management. Yousendit offers a service like what I am looking for, but it does not make sense to use their service if I already have a web server.
Is there an open source version of Yousendit that I can run on my own web server?
What is this type of software or service called? (calling it an FTP Server does not seem to fit)
I am using gmail as my email provider, and I only have gmail servers for my mx records. I don't like the 500 message per day cap. To address this issue I would like to run postfix on my Linux machine to only send email, port 25 blocked by my firewall. I can send email, however google marks all messages sent with postfix as SPAM. How do I make sure that people know email sent with postfix is valid?
I have a lot of subdomains in the main domain xxx.zzz
So, for this domain, I can have
aaa.xxx.zzz
bbb.xxx.zzz
ccc.xxx.zzz
ddd.xxx.zzz
eee.xxx.zzz
....ETC....
Istead of adding each subdomain in the host file, I would like to add only the main domain xxx.zzz and then to be able to access all the subdomains.
I have tryed with *.xxx.zzz but apparently, this will not work (Linux or Windows).
Any idea is welcome. Thank you very much.
Gitosis is able to authenticate users based on public/private key pair. It is able to find out which user is currently committing. However, the user name and email is taken from the client's Git configuration ('git config user.name' etc.), which can be set to arbitrary values. Is there any way to associate user names and emails with their public keys and then make Gitosis uses these names and emails as the name and email of the committer?
I do not care if I will use Gitosis or WebDAV or some other alternative to share the repository. It just seems to me that none of the available methods supports this enforcement of using some kind of "correct" user name and email. If there exists some alternative, please tell me about it.
How does one judge potential memory and processor needs for linux web servers? Specifically, given:
A Debian or Ubuntu OS
Running a web server (apache2), and
A database (MySQL), and
A DNS server (bind), and
Being used by up to 100 concurrent users, at some points each downloading high-resolution (0.5 to 1 MB) images via a web app.
How much should one budget in terms of RAM, type of processor(s), and number of cores?
Thanks!
I'm experimenting with large changes to Linux system runtime parameters exposed through the sysfs virtual file system.
What is the most efficient way to maintain these parameters so that they persist across reboots on a RHEL/CentOS-style system? Is it simply dumping commands into /etc/rc.local? Is there an init script that's well-suited for this? I'm also thinking about standardization from a configuration management perspective. Is there a clean sysfs equivalent to sysctl?
I am running linux with postfix, dovcot, postgrey and spamassasin/spamd.
This is my main.cf
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
check_policy_service inet:127.0.0.1:10030
I got spamassasin to add spam header to other emails that postfix didn't catch, but how to make it reject?
debian4 linux
i have the following cmd line which works fine
rsync -avr -e ssh /home/dir [email protected]:/home/
but i need to setup it up now to rsync to a remote server that only has ftp on it
how do i go about that ?
i looked at the rsync help but quickly got lost (i don't do this stuff very often)
thanks
alex
We are planning to capture a user's height and weight and am looking for ideas on representing them in sql. I have the following questions in mind
weight can be expressed in kilograms and grams and height in meters and centimeters, so should I capture them as a BigDecimal with an appropriate precision and scale or capture them as vanilla strings and do the manipulation in the user interface. Note: I am planning to capture the kilograms and grams separately in the user interface.
should the metric of measurement be part of the sql (i.e. the end user might want to view this information in pounds, inches according to his preference)
OR
Should I just support kilograms / meters in the database and do the conversion while showing this in the user interface
Using the stat function, I can get the read/write permissions for:
owner
user
other
...but this isn't what I want. I want to know the read/write permissions of a file for my process (i.e. the application I'm writing). The owner/user/other is only helpful if I know if my process is running as the owner/user/other of the file...so maybe that's the solution but I'm not sure of the steps to get there.
So I read a lot of good things about Asterisk. I am not however looking to run a call center or small business setup. I am still interested what potential uses it has for me as a "power user" and what features I could harness for my communication needs.
I'll throw out that I currently use other technologies like Google Voice, Skype, and a cellphone of course. So, what potential uses, if any, could Asterisk PBX have for a user like me?
I am trying to scp files from a windows server to a linux server with the original time and dates intact. When running the command:
pscp.exe -p C:\temp\somefile.txt user@server:/temp/
The file on the server always has the date/time of the transfer, not the original file. Putty SCP seems to be completely ignoring the preserve attributes flag. Anyone experienced this before and/or have a solution?
I'm in the process of migrating to a new server, but some traffic that should be going to old server is now coming to the new server before I am ready to migrate. My provider used an IP used as the secondary nameserver on the old server as the primary IP on the new server, so now my secondary nameserver is directing traffic to the new server.
Is there a way to forward the traffic hitting the new IP back to the old IP while I wait for DNS to propagate?
Server is Linux CENTOS 6.5 x86_64 w/ cPanel
Thanks
I have an existing raid5 device which I created using mdadm on Linux.
When I created the device I set the chunk size to 64 but I would like to test the performance of various sizes but I don't want to have to rebuild my entire system to do so.
If it is not possible to do it live then is it possible to do this by booting with a rescue disk?
Any advice on the steps how to do this, either live or with a rescue disk, will be greatly appreciated.
Hy,
a friend and me want to share a Linux-Machine. We both need to get root-rights via sudo for administering that machine. Is it somehow possible to deny the access to the home-folder for the other one, although he can become root?
Thanks!
Hi
In my Linux server i have three network cards. The eth0 card is connected to ISP1, the eth1 card is connected to LAN and the eth3 card is connected to ISP2.
What i want to do is to automatically use eth3 as Internet connection if the eth0 connection fails. How can this be done?
Another problem is that my firewall is referring to eth0 as the server is doing NAT for clients this would be broken if eth3 is taken in use, how can this be solved?
I've written a web user control which I want to be able to drop into the markup for either aspx pages or other web user controls.
I need my user control to be able to easily and efficiently work out if its inside another user control or an aspx page. My initial idea is to do it recursively with checks on the Parent property - continue looking up the nesting hierarchy until I find either a web form or a user control - but I'm not sure this the best way of going about this.
Can you suggest an easier way?
thanks
5arx
Hello I am new to ubuntu linux and am currently trying to configure my netbeans to work with PHP. I have found several tutorials to install all the applications I need and have installed a virtual directory for netbeans to run in. Unfortunately, whenever netbeans or I myself go to my local host I get an error 403. I tried modifying my settings to allow from localhost (instead of allow from all) but this did not work and am completely out of ideas.
Is it possible to setup a mail server on a Linux machine without root permissions? I want to be able to create two aliases for a given mail ID. But if I remember correctly, it is no possible to do this without root privileges because I need to edit the configuration file and then restart the mail server. Does anyone have a suggestion to get around this problem?
Is there some faster way than /dev/[u]random? Sometimes, I need to do things like
cat /dev/urandom /dev/sdb
The random devices are "too" secure und unfortunately too slow for that. I know that there are wipe and similar tools for secure deletion, but I suppose there are also some on-board means to that in Linux.
I have a slow machine, mainly a Celeron with 250gb HD.
I'm planning to install a Linux distro and create a bunch of VMs for development.
Which distro should I choose? I plan to use this machine mainly as a small "hypervisor" to other vms.
Is it possible? What do you suggest?
Thanks!
ok i have another question !
(god! i have so many questions)
i have an application and a user must log-in before he/she can access pages. now once the user logs in i keep the user details in a session variable (say Session["CurrentUser"]).
now if a user tries to jump to a page directly i will check if the Session["CurrentUser"] has a value or not...if not then the user will be directed to the login page...
my problem is that i have done this or rather say written this "Checking Code" on almost all the pages.
what i want is this code to stay on a particular location and i will just access that method all the time on all the pages...now where should i write this method ??
thank you.
I'm trying to setup a network architecture where one network is a low-latency low-bandwidth tcp control system (GBit), the other is a high-bandwidth udp (maybe tcp) network that could get saturated (GBit).
If I have two NICs inside a server running Linux. What happens to the low-bandwidth/low-latency network when the high-bandwidth gets saturated. Does each Ethernet card get the same amount of priority inside the kernel or would the low-latency network suffer from the high-bandwidth being saturated?