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

learn more… | top users | synonyms (1)

8
votes
6answers
3k views

What's the best practice of mass Linux system deployment?

If you are trying to install 500 Linux system through network installation at the same time, the bottleneck would be the NFS/HTTP/FTP or whatever server holds files you need for installation. IMO, ...
0
votes
3answers
1k views

Azure Linux VM: How to resize primary OS disk?

The default Ubuntu 14.04 came with 29GB on the OS volume, I want a smaller one, e.g. 8GB, how to resize this? Should I need to make my own VHD? We have 13 Linux Ubuntu VMs with disk usage similar to ...
4
votes
1answer
884 views

Gracefully Restarting Django Celery Instances

I'm wondering what the best way to restart Celery is without losing any tasks during the restart. I'm currently running it as a daemon using the init.d/ script provided with celery - everything is ...
24
votes
5answers
1k views

What are the actual benefits of assigning sudo privileges to a user instead of using root?

I am fairly new to server administration, and I have seen a lot of sites recommending to assign sudo privileges to a user created by the root user and giving the root user an insanely long password ...
0
votes
0answers
10 views

how to use isc-dhcp-server in place of router dhcp [migrated]

i have a virtual Debian installed on my VMware running on win 7 64 bit , i am using a bridged connection for my virtual machine , i installed isc-dhcp-server and changed the /etc/dhcp/dhcpd.config ...
0
votes
5answers
2k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
20
votes
11answers
33k views

VMware Linux Server — how can you tell if you are a vm or real hardware?

An interesting question. I have logged into a Linux (most likely SuSE) host. Is there some way that I can tell programmatically that I am a VM host or not? Also assume that the vmtools are not ...
0
votes
1answer
9 views

Copying blobs to Azure customized VM's on boot

As I'm looking to take advantage of the SSD disks offering (D type in Azure), I understood that the only way to use them, is to copy the data to attached SSD disks from external storage like blob. I ...
0
votes
1answer
55 views

How to configure a bridge between two interfaces in Ubuntu server 14.04?

I am trying to configure a bridge between two interfaces em1 and em2 in Ubuntu server 14.04. This is my configuration: auto lo iface lo inet loopback auto em1 iface em1 inet dhcp auto em2 iface ...
0
votes
0answers
13 views

Rebuilding FakeRAID RAID 5 with new disk, no partitions show up, invalid PMBR

I have a RAID 5 array with 4 2TB disks on a HP Z800. One disk failed and was swapped out for a new one. I went into BIOS Intel Storage Matrix Utility and set the Array to rebuild with the new disk. ...
-1
votes
2answers
31 views

How to specify hard disk for hadoop cluster?

I installed Hadoop on one Azure VM, and it works fine by using its OS disk. However, I attached one hard disk to my VM, and I want to know how to configure Hadoop to only use this new hard disk as its ...
0
votes
1answer
845 views

file locking problems with recent Samba versions (from DOS/Clipper under XP)

we have several DOS applications (Clipper) which share dbase files on a file server. The applications run under XP. This has worked for about two decades with Netware and for years with Samba (member ...
4
votes
1answer
3k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
-1
votes
0answers
29 views

Check mysql domain that is using resources [migrated]

I have a webserver hosting about 300 websites and sometimes my CPU usage gets close to 100% and when I use "top" in my CENTOS to check who is using all CPU, I discover it's mysql. I would like then to ...
3
votes
3answers
147 views

Advanced dynamic routing with external program

I need to build a system in which i am able to route packets based on a number of parameters, such as port/protocol etc, which are somehow "normal", but also on other aspects, such as queue length, ...
1
vote
1answer
37 views

How do I return a default file in Nginx for all 404s inside a specific path?

I have a localization folder that has a bunch of language (as JSON) files, and my webapp tries to read the browser's language to fetch the corresponding JSON file. In certain scenarios, the ...
0
votes
1answer
15 views

CLI command to update simple XML file

I would like to programmatically update a string in a very simple XML config file, such as this: <?xml version="1.0"?> <x> <z>should be changed</z> </x> <y> ...
0
votes
1answer
34 views

OpenVPN: Options error: Unrecognized option or missing parameter(s)

I am trying to assign different ip address ranges to two different types of users of OpenVPN. The two user types are administrators and employees. Towards this end, I created certificates and keys ...
0
votes
3answers
2k views

Smallest footprint OS [closed]

Many FreeBSD users tell me that FreeBSD has the smallest footprint in terms of CPU & RAM usage. I'm looking for a server OS with the smallest possible CPU & RAM usage, so I will try FreeBSD ...
3
votes
4answers
5k views

SSH access problem: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

We have a server XXX ON Amazon EC2. SSH is running on a standard (22) port. I placed my pubkey at the /.ssh/authorized_keys file The fun thing is that YESTERDAY it was working great! But today, I ...
1
vote
1answer
27 views

How to mount a smb drive with different credentials (user name and password) on Linux?

Ok, I have here a laptop on which runs Linux (CentOS 7). The laptop will be used from different user's (which have all different login's on the laptop). We have in our network a Samba server. All ...
11
votes
2answers
31k views

Linux e1000e (Intel networking driver) problems galore, where do I start? [closed]

I'm currently having a major problem with e1000e (not working at all) in Ubuntu Maverick (1.0.2-k4), after resume I'm getting a lot of stuff in dmesg: [ 9085.820197] e1000e 0000:02:00.0: PCI INT A ...
16
votes
5answers
3k views

Best Practices for virtualizing servers onto the SAN?

Alright, so I want to start leveraging my SAN a little more than I have been, and at the same time, take advantage of ESXi. Currently, I've got an array of Dell PowerEdge 1955 blades connected to a ...
2
votes
1answer
2k views

On Linux, how do I the check CPU affinity of a process and its threads?

On Linux, how do I the check CPU affinity of a process and its threads?
5
votes
1answer
2k views

Linux: proc/sys/kernel vs /sys/kernel

I know that in a typical Linux system, both /proc, and /sys are virtual file structures with pseudo files, used to communicate with the kernel, but what is the difference between /proc/sys/kernel, and ...
4
votes
1answer
2k views

nginx proxy + ssl +clr “400 bad request” error

Here's the situation - there's a trasnparent nginx proxy that handles SSL certificates and does it well until we decide to add a revocation list management, required for security reasons. This is when ...
4
votes
6answers
4k views

tcpdump: out.pcap: Permission denied

[root@localhost ~]# cat /etc/issue Fedora release 17 (Beefy Miracle) Kernel \r on an \m (\l) [root@localhost ~]# uname -a Linux localhost.localdomain 3.6.10-2.fc17.i686 #1 SMP Tue Dec 11 18:33:15 UTC ...
1
vote
2answers
29 views

Resizing Azure Primary SSD OS disk on Linux

The 29GB of primary disk coming up with Ubuntu 14.04 are not enough for our needs. Also (from what I understood), the attachable disks are not SSD. Is there an updated method of resizing the primary ...
1
vote
3answers
138 views

Xen PV, Xen HVM and KVM

Am I correct that you can boot up any operating system with either of these virtualization types as they act as a bare metal machine and compile your own kernel? I am looking to switch over from ...
2
votes
1answer
22 views

Is there a way to limit access to Windows or Linux file shares to certain dates and times? [duplicate]

Is it possible to limit the dates and times a share is available? For example, I may have a group that needs a share, one to be visible, at certain dates and times. I do not mean smb or nfs ...
0
votes
1answer
30 views

Manage oVirt environment

I'm starting to deploy oVirt in one of my works, and I have a lot of questions about how to manage everything when you start using it. First I'll describe my setup. I have three machines, two ...
0
votes
1answer
586 views

HP Server Automation - agent misreporting hostname

I've been using HP Server Automation for some time, but have noticed an interesting issue I'm hoping the SF community has seen / knows a workaround to. When the management agent on Solaris or RHEL ...
0
votes
1answer
17 views

How to install Linux daemon using Kickstart

%post --log=/root/ks-post.log --interpreter /bin/sh exec < /dev/tty3 > /dev/tty3 2>&1 chvt 3 cat > /mnt/sysimage/etc/init.d/daemon <<EOL #stuff goes here EOL chmod 755 ...
3
votes
1answer
2k views

Whole block device named xvda1, xvda2 instead of xvda, xvdb

I am working on a VM that was set up for me in a public cloud. It's running under the Xen hypervisor in paravirtualized mode and has two virtual disks. So I expect the virtual disk block devices to be ...
0
votes
1answer
25 views

How to correct the time on a Red Hat EL6 server? Clock is almost 3 hours behind

This did not work: [~]: sudo /usr/sbin/ntpdate pool.ntp.org 19 Feb 08:03:26 ntpdate[6939]: the NTP socket is in use, exiting So, I'm not sure how to proceed... also tried this to no avail: [~]: ...
1
vote
1answer
561 views

Simultaneously filter and merge pcap files

Has anyone written a utility that simultaneously filters and merges many pcap-format packet capture files? tshark and tcpdump filter but don't merge, mergecap merges but doesn't filter. I am trying ...
5
votes
3answers
1k views

Renice: How to change all threads?

When I renice a multithreaded process in Ubuntu 10.04, then view the results in top, it seems that only the main thread actually gets reniced. All the other threads retain their old nice value. ...
0
votes
0answers
13 views

Apache2: localhost and local_IP produces different renderings of same website

I have a standalone linux webserver that I'm using for an in-house intranet. It's only got one website, so I'm just working off the default virtualhost. The intranet website uses a bunch of fancy ...
3
votes
2answers
2k views

Restart idmapd without rebooting the host?

When I have changed Domain in /etc/idmapd.conf and then service idmapd restart, then the change doesn't take effect until I reboot. Is it possible to do this without having to rebooting the host? I ...
1
vote
2answers
167 views

linux sever interfaces automation

I am using a CentOS server which has about 6 active interfaces with different IPs, I'd want to automatically bring down all the interfaces when any one of the 6 interfaces is down. Is there a way this ...
4
votes
5answers
4k views

Connect to MySQL trough command line without need root password

I'm building a Bash script for some tasks. One of those tasks is create a MySQL DB from within the same bash script. What I'm doing right now is creating two vars: one for store user name and the ...
2
votes
0answers
22 views

Tuning Amazon Linux worker tier

I have a worker tier that is using PHP process control (pcntl) functions to send multiple requests to the SNS service in parallel. My question is how best to tune MPM_PREFORK directives to get the ...
1
vote
1answer
1k views

Windows Server 2008 x86 Services for Unix SDK (SUA) RSH

Running RSH commands on a Windows box against a Linux box works only for the administrator user. Is there a file somewhere that has a list of users that can run commands remotely? More Info The ...
6
votes
4answers
1k views

Difference between chroot and jail

I read this tutorial - https://help.ubuntu.com/community/BasicChroot - and what I understood is that, chroot is the process of changing the / while the new restricted environment created is the ...
10
votes
1answer
3k views

Unable to open WireShark in CentOS 6.5

I have installed WireShark in CentOS 6.5 with the following packages using Yum. Dependencies Resolved ================================================================================ Package ...
4
votes
2answers
4k views

repair partition table

I've just overwritten my partition table of my system's hard disk. i made a cfdisk on the wrong device (/dev/sda instead of /dev/sdd), deleted all partitions, made one new primary spanning over the ...
5
votes
1answer
103 views

Prepping a virtual appliance

Before converting a running virtual machine to an OVA (redistributable virtual appliance), what does one need to do to ensure it is in a ready state so the instances of the OVA don't bring along ...
0
votes
0answers
25 views

How to package shell script file with license key file

I am working on automated shell script for specific task . Before executing task steps I want to validate the license key provided to the customer with a webservice call. Please help me in making ...
0
votes
4answers
2k views

grep and tabs: no match

#cat sample 1 -1 2 2 2 2 2 1-1 3 I need to get all the lines that contains negative value, that is 1st line only. Values are tab-separated. First I tried # grep "\-1" sample 1 -1 2 2 ...
3
votes
2answers
281 views

How to prevent GNU screen from expanding tabs into spaces?

Using a normal bash prompt echo -e 'hello\tworld' produces a real tab. However the same command run within GNU screen puts spaces between the two words. I have tested this on Ubuntu 10.04 with Screen ...