Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

Filter by
Sorted by
Tagged with
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?
ecer34's user avatar
  • 31
-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!
James Anderson's user avatar
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 ...
user666412's user avatar
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/ ...
Benoît's user avatar
  • 1,351
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 ...
adewinter's user avatar
  • 351
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 ...
Ben's user avatar
  • 11
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....
Rudolf Vavruch's user avatar
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 ...
peter.bishop's user avatar
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 ...
JosiP's user avatar
  • 31
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 ...
Jason Rhodes's user avatar
-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 ...
TBK's user avatar
  • 13
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 ...
Belmin Fernandez's user avatar
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 ...
dynamphorous's user avatar
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....
Sandra's user avatar
  • 10.6k
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 ...
user45949's user avatar
  • 191
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 ...
Kryptonite's user avatar
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 ...
peedee's user avatar
  • 101
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]....
shantanuo's user avatar
  • 3,619
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?
enjoylife's user avatar
  • 101
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 ...
dtech's user avatar
  • 643
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 ...
aland's user avatar
  • 141
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 ...
A.RG's user avatar
  • 81
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 ...
Jason George's user avatar
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 ...
Frank Brenner's user avatar
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/...
Jay's user avatar
  • 1
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 ...
markus's user avatar
  • 1,120
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!
Martin's user avatar
  • 57
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 ...
Tim's user avatar
  • 135
-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....
shantanuo's user avatar
  • 3,619
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:...
Frodik's user avatar
  • 283
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 ...
robbles's user avatar
  • 543
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....
shantanuo's user avatar
  • 3,619
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. ...
Ram Rachum's user avatar
  • 5,301
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 ...
Nohsib's user avatar
  • 601
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 ...
andyortlieb's user avatar
  • 1,102
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' ...
Lea Cohen's user avatar
  • 137
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.
BioLounge's user avatar
  • 115
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 ...
Mauli's user avatar
  • 401
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 ...
The Digital Ninja's user avatar
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 ...
Ketema's user avatar
  • 103
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 ...
billmalarky's user avatar
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.
incognito2's user avatar
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 ...
incognito2's user avatar
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 ...
Ravi's user avatar
  • 143
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
altdovydas's user avatar
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, ...
Bittrance's user avatar
  • 3,110
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 ...
Serge Wautier's user avatar
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]# ...
amir2 taghvaei's user avatar
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 ...
StrangeWill's user avatar
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 ...
stillStudent's user avatar

1
550 551
552
553 554
772