Questions tagged [linux]
Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.
38,566
questions
3
votes
1
answer
201
views
Linking 2 EC2 Instances
If I have one EC2 instance that is simply for storing files and another EC2 instance that serves a webpage with apache, how do I get them to "link" together?
-1
votes
1
answer
752
views
My Linux server is thought to be under a DDOS attack and no access to SSH - what to do? [closed]
How can I fix the issues from a DDOS attack without any SSH access at all.
My main domain is http://www.reddexservers.co.uk - is there any way of checking if it is under attack externally?
Thanks!
34
votes
4
answers
77k
views
public key authentication fails ONLY when sshd is daemon
I have no clue on how this happens. The distro is Scientific Linux 6.1 and everything is set up to perform authentication via public key. Yet, when sshd is running as a daemon (service sshd start), it ...
0
votes
1
answer
189
views
create automount entries
on a Linux or Solaris server, using automount/autofs, how do i create/populate a directory with automount entries without mounting them ?
For example, i have /data yp:auto.data and /data/ ...
24
votes
4
answers
122k
views
How to disable all power management in Ubuntu (for a server netbook)?
I need to disable everything related to having the netbook-server go into sleep/hibernate/shutdown. Spinning down the disks during inactivity is fine, but it is crucial that the machine remain in a ...
1
vote
1
answer
545
views
MSA30 Linux CLI Configuration?
Can some one help me shed some light on this please?
I have a MSA30 hooked up to a HP Proliant DL380 G4 running SuSE SLES Linux. My question is how do I configure the hard drives connected to be in a ...
0
votes
1
answer
1k
views
MySQL cancelled import - orphaned data in ibdata file
I was importing a database dump - almost 1GB worth:
mysql -uroot -ppassword < mysqldump.sql
When I received warnings that the hard drive was almost full. I panicked and Ctrl-Ced the import. Twice....
0
votes
1
answer
376
views
Enabling per-virtualhost email relaying through external user/pass smtp relay [duplicate]
Possible Duplicate:
Postfix configuration: different outgoing hosts based on sender
I've got a problem that's driving me mad.
Basically, I run 10 virtualhosts in a CentOS distribution.
From now ...
3
votes
1
answer
3k
views
passing arguments to upstart job
I want to run multiple instances of my process by passing an args to startup job:
start myapp instance1
start myapp instance2
and so on
I want to have one upstart conf file instead of having conf ...
4
votes
3
answers
15k
views
How do I get PHP 5.3 working on Red Hat Enterprise Linux, with PDO enabled? PHP53 was installed with yum
This problem is complicated, and I'm not an expert at all, so bear with me. My server admin team set me up with a standard RHEL box. It had PHP preinstalled, as well as apache.
I am now trying to ...
-2
votes
2
answers
1k
views
Lightweight x86 & x64 server linux distro for custom install?
Hi I'm looking for a suitable linux server distro that:
- Doesn't use much RAM.
- Relatively easy RAM disk setup (plus if the OS out of box can run directly from ramdisk)
- GUI isn't needed, but if it ...
2
votes
2
answers
1k
views
What format are the files in /usr/share/doc/ in?
I found a nice wealth of information on some commands that I use in /usr/share/doc. Some are in a weird format though with tags such as:
\verbatim and \endverbatim
\section and \endsection
Any idea ...
4
votes
2
answers
1k
views
SSH server breakin attempt?
I am running a Gentoo Linux server, and use Fail2Ban to block the script kiddies and their relentless banging on my SSH port. (Yes I know I can move to a different port number, but that is work, and ...
2
votes
2
answers
560
views
Can BOOTP in DHCP failover to a second IP?
I have a Linux PXE server, and would like to have failover, so in case the primary PXE server is down the secondary PXE server can take over.
The DHCP server is a Windows 2003 R1.
Could failover e.g....
0
votes
1
answer
2k
views
IO utilization percent of 4920.45% - iostat -x , What's wrong?
I have seen wrong percent use of a disk IO some times on servers that have been a long time without reboot.
By any means this server has significant IO. Tonight it'll be rebooted and I'm sure ...
0
votes
1
answer
248
views
Alternative storage for SVN backup with rsync
I've been backing up my SVN repo and trac environment using a weekly cron job and 2 custom scripts. This has been going to Joyent Strongspace; but since they have discontinued the service, I need an ...
0
votes
4
answers
189
views
Running a java application in linux
I am running a java application with mysql as back-end and i am using fedora operating system, now is there any way to run that application alone when that system boots up and also i want to disable ...
0
votes
1
answer
197
views
redirecting to the originating server
The following is working as expected. The only problem is that it does not return the source server command prompt unless I hit Ctrl + c
[abc@server]$ 0</dev/null echo "ls" | ssh -t -t [email protected]....
0
votes
1
answer
193
views
cURL on Linux not compiled, although installed,why?
the phpinfo() shows
but when i install zencart on my vps hosting. it shows
why? how to correct it?
2
votes
2
answers
2k
views
Multiple access level modes for accounts on linux servers
When currently working on a linux server (I sysadmin 2) I have the 3 following use-cases:
End-user use (e.g. personal or normal project groups)
User problem solving and low-risk changes (e.g. Apache ...
2
votes
1
answer
332
views
Connect to server via VPN-tunnel to same server
Sorry, if title is unclear, here is the setup:
There is machine A, running Linux. A is part of university network and has single network interface with real IP. But connections from outside of campus ...
1
vote
2
answers
8k
views
HAProxy with 'backup' failure
I have a simple configuration of 2 MySQL being load balanced by HAProxy. For an unfortunate reason I need to use them in Passive\Active mode. So I thought I'd configure one DB as 'backup' and go to ...
6
votes
1
answer
3k
views
Forcing Dovecot to use SSL
I set up a mail server on an Ubuntu 11.04 distribution using the dovecot-postfix package.
sudo apt-get install dovecot-postfix
For some reason, I can't seem to disable non-SSL access through ...
4
votes
1
answer
12k
views
LDAP User Management Tool for Mac 10.7.1 [closed]
I have been using Luma on Linux to create and manage LDAP user accounts. I've now a macbook pro, and am looking for an equivalent program for Macosx - something that will automatically and correctly ...
0
votes
2
answers
838
views
Apache/Linux CentOS (32bit) Not Loading PHP Modules
This is probably an easy question, but I've been at it for days with no luck. I need soap enabled to run an application on linux CentOS/Apache. I have PHP installed and have loaded soap.so in /usr/lib/...
1
vote
1
answer
1k
views
Server went to sleep mode
I've setup a new Dell Poweredge R410 server with debian squeeze. If the server is idle for a longer time it seems to go to sleep mode. If I ping the server, it doesn't answer for 10-20 seconds and ...
2
votes
1
answer
2k
views
Parted equivalent of sfdisk -d
I have to dump all my GPT partitions from one drive to another.
The MBR equivalent would be sfdisk -d.
Thanks!
0
votes
2
answers
938
views
3 IPs on 3 NICs with 3 Gateways - #3 not responding to requests - routing to wrong port?
I have a CentOS 5.5 server that is using 1 of the 2 on-board network ports (eth0) and 2 PCI NICs (eth2 & eth3) - each has it's own IP on a different subnet with different gateway on a different ...
-1
votes
4
answers
11k
views
exporting variable globally
I can save the IP address of the current server to a variable and echo it out.
# myvar=$(/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')
# echo $myvar
10....
12
votes
2
answers
20k
views
How to exclude files from TAR archive using regular expressions?
I have a simple question, yet I can't find or solve the answer. I want to make a tar archive, but I want to exclude some files from it using regular expression.
Example of the file to exclude is this:...
44
votes
4
answers
28k
views
Find out which process is changing a file
I'm trying to find a reliable way of finding which process on my machine is changing a configuration file (/etc/hosts to be specific).
I know I can use lsof /etc/hosts to find out what processes ...
1
vote
1
answer
4k
views
Thread dump to a file
I read that I can find the process ID and then use kill command to save the thread dump to a file. But the following example does not return anything...
# ps aux | grep -i java
wcuser 9136 0.0 17....
3
votes
1
answer
75
views
Creating file from shell input in Linux
I want to create a file from shell input. That is, I want to run some command, then type the desired contents of my file, then press Ctrl-D and have it create my file with the contents I typed in.
...
50
votes
3
answers
89k
views
How to forward port 80 to another port on the samemachine?
How can I forward requests coming in on port 80 to another port on the same linux machine?
I used to do this by changing nat.conf, but this machine that I'm using doesn't have NAT. What's the ...
14
votes
2
answers
12k
views
Non-interactively create one partition with all available disk size
This is disgusting to me, but it works:
echo -e "n\np\n1\n\n\nt\nc\na\n1\nw" | fdisk /dev/sdb
I would like to know a more prudent or elegant way to accomplish this. The entire boot record and ...
1
vote
1
answer
194
views
Wordpress - can't install plugins after server reboot
I'm running a CentOS server which I had to reboot.
However, after the reboot I found myself unable to install wordpress plugins via its admin control panel, as I'm getting a 'failed to connect' ...
8
votes
4
answers
21k
views
Is it possible to run a command on windows server from Linux?
I want to restore a sqlserver db backup on remote windows server from linux. I tired "net rpc" but there is nothing for execute a command or script on remote server.
3
votes
1
answer
251
views
What happens if I pull the plug of an iSCSI device?
If I pull the network connector of an iSCSI device, what happens? Will the "client" automatically connect again if I plug it in again? Is there a timeout?
(in my case I'm talking about a QNAP NAS ...
0
votes
3
answers
307
views
simple iptables rule
I have two network interfaces eth0 and an alias eth0:1 that is my internal network. I want to block port 8140 but also have a rule allowing ANYTHING from the eth0:1 subnet (192.168.1.0/24)
Here is ...
0
votes
1
answer
2k
views
Routing multiple IPs from different subnets (ISPs) with Linux
I had/have an interesting problem today regarding routing with linux.
My expectation: to be able to assign multiple public ips to an interface and have one default gateway. packets sent to a ...
0
votes
1
answer
154
views
Can't get mod_rewrite to work with ubuntu, have tried all the usual suspects (turning it on in config etc)
Stack,
I'm trying to install a local version of my website onto my laptop so I can do development work without terrifying my users and exploding the live site.
I went ahead and installed ubuntu on ...
1
vote
1
answer
337
views
do you need to reboot after tweaking linux tcp settings?
I'm wondering if you need to reboot if you make changes to settings related to linux tcp such as tcp_window_scaling.
8
votes
2
answers
18k
views
Fixing window scaling problems with Linux TCP
I'm trying to improve the throughput of one of my servers overseas and after monitoring a transfer between the server and my home computer with wireshark I'm pretty sure I have a problem with the ...
3
votes
1
answer
6k
views
How to find DNS servers for each PPP session in linux?
How to get the DNS server address which are specific to each ppp session. For example, I have two ppp sessions each one connected different service provider, how do I find out the DNS server IP ...
0
votes
4
answers
611
views
LINUX Load average
My server Load jump high up top 22, CPU just 50%, RAM 1858/5120. How to know what process couse so high load average. Linux Debian
2
votes
1
answer
540
views
DNAT:ed packets disappearing
I have a machine that has a DNAT rule that redirects data to neighbouring server:
iptables -t nat -A PREROUTING -p udp -d 10.99.193.116 --dport 54321 -j DNAT --to 10.99.193.115:54321
As can be seen, ...
4
votes
1
answer
278
views
linux (CentOS) server remote assistance
I'm working on a CentOS-based server appliance (either physical or VM) sold to our customers.
We want to include some remote assistance tool in the appliance that would let us log into the appliance ...
0
votes
2
answers
572
views
the group user can not write to file
i used tomcat+cpanel in linux os . i set the tomcat group of a file but tomcat can not write to my file . the permission my file is 664 .
the os setting is :
root@panther [/home/domain/public_html]# ...
1
vote
2
answers
166
views
Two Redmines One Database Install (Shared Files Folder)
So I'm working on a Redmine deployment that has two web servers and one back end MySQL database.
The plan is to stick one inside our network and do LDAP integrated logins.
The other one goes out on ...
6
votes
3
answers
384
views
Modifying grub.conf file in linux
I edited the 'grub.conf' file of my linux system and changed the 'timeout' value in it and added some other line so as to solve the timeout issue of 'xm console guest' command. I was fool to assume ...