Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

1
vote
1answer
406 views

uWSGI cannot load virtualenv

I'm setting up a Python app using nginx and uWSGI. My dependencies are in a virtualenv. If I activate the virtualenv manually, everything works by running this command: uwsgi --ini uwsgi.ini But if ...
0
votes
3answers
2k views

Monitoring CPU, Mem, disk, on a single server [duplicate]

I've been looking for a simple starter solution for monitoring my [currently] single server hosted solution. Other than Nagios and similar, are there other good (simple) solutions people are using?
0
votes
2answers
525 views

How to transfer large files between two remotes by using a third machine?

I need to automatically mirror a large amount (terabytes) of files in two unix machines over a slow link (1 Mbps). This needs to be done frequently, but the data doesn't change too much (delta ...
5
votes
1answer
4k views

How do I print contents of at jobs?

I have a Debian box with some jobs scheduled using at. I know I can list the jobs with their times using atq, but is there any way to print out their contents, apart from peeking into ...
0
votes
1answer
31 views

how to configuring vagrant to allow some specific IP to be available on a windows machine?

I have Vagrant installed on my windows machine. I am using putty to ssh to the ubuntu machine. Lets say that I need some specific service (let's say a graphite for stats) which should be reached with ...
12
votes
11answers
9k views

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every ...
1
vote
6answers
358 views

Cannot start BIND9

I followed everything EXACTLY in this tutorial for setting up DNS. I set up everything on a blank server. However, starting BIND9 failed: rndc: connect failed: 127.0.0.1#953: connection refused I ...
-2
votes
2answers
191 views

How do I pipe the output of the journalctl to cURL? [closed]

I am trying to send logs to a remote server using curl. I tried the following command and nothing happened journalctl -o json -f | curl -H "content-type:application/json" -d @- http://logs Any ...
9
votes
6answers
23k views

How to disable everything in crontab -l?

I just want to pause everything. Don't execute anything listed on crontab -l.
1
vote
2answers
876 views

is there any advantage mounting an LV by UUID instead of by path?

I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...). I see a clear ...
0
votes
0answers
65 views

no record of login thru phpseclib

I am having a strange problem. I am using phpseclib to communicate with one of our server server - 10.0.0.2 my pc client - 10.0.0.1 I am accessing it via 10.0.0.1 when i hit "last -n 10" i cannot ...
2
votes
2answers
787 views

How to add new path to $PATH variable in a post-installation script of RPM?

I want to automatically add a new path to the $PATH variable each time when my RPM package is installed. I tried to use a post-installation script in the my RPM. Here is the part of RPM spec file ...
29
votes
6answers
12k views

How to determine the “age” of a linux system since installation?

I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like 1991.
-1
votes
2answers
97 views

Compare files/folders across servers [closed]

We have two Unix servers, spread across two countries. These servers hold our software repository (scripts, binaries, documents etc). I am looking for a simple way to keep these servers in sync ...
0
votes
1answer
51 views

How to git add list of files from git diff

I accidentally added a bunch of cache files into the repo. I've now removed them and now want to commit the change to the repo. So I tried to do the following, but git doesn't seem to like it: git ...
1
vote
1answer
275 views

Puppet template if defined syntax

I am having trouble finding a solution in Puppet documents. I am trying to define a variable in Puppet template. For example: If class graylog2 and apache are defined in node class section then the ...
1
vote
1answer
928 views

Cannot mount an existing EBS on AWS

I tried mounting an existing EBS Storage (which has data) to an instance, but it keeps throwing this error. mount: wrong fs type, bad option, bad superblock on /dev/xvdf, missing codepage or ...
0
votes
0answers
27 views

w Reports A Process of A Deleted User

the w command reports the following: adm1@prdsvr:/home/adm1> w 10:18AM up 13 days, 15:04, 6 users, load average: 0.00, 0.00, 0.01 User tty login@ idle JCPU PCPU ...
14
votes
3answers
6k views

Override MAILTO for a single crontab entry

We have a role account at work that has a pretty big crontab. Its MAILTO is pointed at a shared address, so that a number of us get notified if something fails. I'd like to add an entry to this ...
1
vote
4answers
928 views

Filter fields with space character from csv file on command line

A csv file with multiple records is delimited by |. field1|field2|field3|field4|field5 I want to check if field3 is blank or contains "space" characters only. If it is blank or space, the whole ...
2
votes
4answers
6k views

Usage of HOSTNAME and CURRENT_USER in scripts on linux

Suppose I want to edit /etc/profile: PYTHONPATH = /home/CURRENT_USER/ How do I have a variable that will automatically fill in the current user? What about hostname? Aren't these environment ...
1
vote
0answers
123 views

Setting Samba passwords using Chef without storing plain text passwords in data bags

We have a server that is configured using Chef. Currently, the way that chef manages the passwords is by simply copying down the samba tdb databases and updating the shadow hashes of each user. ...
5
votes
8answers
707 views

Identifying changed files on *nix webserver

Looking for some (*nix) software which will build an index of "interesting" files on a server and notify when certain of those files contents are modified, or new files appear. Similar to rkhunter et ...
0
votes
2answers
805 views

Saving SSL password for SVN in Ubuntu

I have tried to set up my SVN that way, that it saves my passwords, but for some reason it won't work. I am using a SSL certificate, for which I need to provide a password every time. I have tried ...
1
vote
4answers
11k views

Getting full path of executables in ps auxwww output

Consider the following lines from a "ps auxwww" output: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 4262 0.0 0,1 76592 1104 s005 Ss 10:02am ...
-2
votes
1answer
24 views

DocumentRoot Path in browser?

I'm using Apache v2.2.26 on Mavericks and I am unable to understand why http://localhost/~username/Sites/ returns a 404 error, when, in fact the directory, Sites, exists, whereas ...
0
votes
0answers
51 views

Collectd types.db save unix epoch time

I am trying to save unix epoch time to collectd and get it out with command: collectctl getval servername/stime/execstime The output I get is showed like this: value=9.998742e-01 The type I am ...
0
votes
0answers
46 views

Tru64 UNIX Does Not Respond

We had our old Tru64 UNIX system on an AlphaServer 400 233 crash today with I/O errors. From what I've read and the error outputs it appears that the drive containing the /usr partition is toast, and ...
1
vote
4answers
2k views

Unable to mount XP share using fs-cifs from Linux

I have a head unit that runs Linux that is connected to my PC via an Ethernet cable. I have a Windows XP share on this PC that the head unit needs to be able to mount, however, when mounting using the ...
2
votes
1answer
480 views

chattr - How to change file +i attribute without using chattr

Here`s the problem. My server got probably hacked. I would like to change a config file, but it is immutable (has the +i attribute), so I can't edit it. trying to execute a "chattr -i" on the file ...
0
votes
1answer
44 views

TOP processes by system time

I have a system running 2 processes - MySQL and Java I'm seeing 20-30% of the time spent in %system. I've looked around to try and find a way to identify which what the balance of the system time is ...
5
votes
5answers
28k views

How can I manually run a nagios check from the command line?

When defining and testing new services in nagios I have been restarting nagios, then clicking the service, and rescheduling a check for as soon as possible, then waiting until the check happens. Is ...
4
votes
2answers
4k views

Unix separate multiple commands which has '&' (execute in background) in the end

To separate regular commands in Unix is to put semicolon in the end like this: cd /path/to/file;./someExecutable; But it seems not working for commands like this: ./myProgram1 > /dev/null & ...
0
votes
1answer
1k views

Get all files using FTP via Unix Terminal

Using the FTP command in the Unix terminal I want to download all files / folders from my FTP server. When I use this command: ftp> mget * I get lots of these errors: ftp: Unable to determine ...
5
votes
9answers
9k views

Bash snippet to move all files in a directory into that directory

I have a directory with lots of files and directories in it. In order to tidy it up, I'm going to put all those files into a directory, so I was going to do something like this: $ ls | wc -l 123 $ ...
3
votes
1answer
183 views

ISC DHCPD memory leak solutions and or workarounds

Background: I have recently been put in charge of finding the root of and/or fixing a memory leak with an ISC DHCPD (4.2.5-P1) installation on a Debian (Lenny) Unix server. I have been researching ...
0
votes
5answers
2k views

Is There A Simple PHP Web Server [closed]

Is there anything that is a dead-simple PHP web server for Linux that literally takes a single PHP file and serves it via port 80. Don't want to configure a full blown web server like apache, ...
10
votes
9answers
4k views

Multiple *NIX Accounts with Identical UID

I am curious whether there is a standard expected behavior and whether it is considered bad practice when creating more than one account on Linux/Unix that have the same UID. I've done some testing on ...
1
vote
6answers
2k views

How can I install OpenBSD to a SSD without a Optical Drive?

I'm searching for an OpenBSD bootable image that I can install on SSD to run pf on. I've found these images for m0n0wall and pfSense but not for OpenBSD alone. Can somebody link me to an image with ...
-1
votes
1answer
87 views

How to share my linux folder with mac mini over nfs [closed]

I tried to mount using following command after exporting the folder in linux source machine ( NFS server) . sudo mount -t nfs -o resvport,rw 192.168.12.10:/home/pavunkumar /private/nfs It is ...
64
votes
7answers
92k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...
4
votes
1answer
108 views

Troubleshooting DNS issue

I am trying to troubleshoot a DNS issue I am currently having with a new project host on an AWS EC2 instance. It is a brand new domain, and I have already updated the nameservers on the registrar ...
5
votes
5answers
49k views

How to FTP multiple folders to another server using mput in Unix?

I am logged in on a server (using Putty). from there I'm connecting using FTP to another server. I want to copy several folders from the first server to the second server using mput. Like: ftp> mput ...
7
votes
5answers
2k views

Replacement for NIS/YP

The company that I am working for is embarking on replacing the current locally developed NIS/YP structure with LDAP. We already have AD in house for the Windows stuff and would like to consider ...
80
votes
14answers
74k views

In my /etc/hosts/ file on Linux/OSX how do I do a wildcard subdomain?

I need to test sub-domains on my localhost. How can I effectively have this result of adding *.localhost.com to m /etc/hosts/ file? If it's not possible, how do I work around this problem? I need ...
-4
votes
2answers
79 views

Closed source alternative to Linux? [closed]

Is there any closed source alternative to Linux that's still actively used and developed? I'm looking for a good, expensive Unix-like OS please. The only other OS's that come to my mind are the ...
3
votes
1answer
69 views

screen in screen, detach only last one

I have strange issue on my hands. I have opened (GNU) screen for one serial console and in that same console I have opened another screen to another serial console. It was working but I am now ...
-1
votes
4answers
718 views

need to make password less login for same linux server with same user [duplicate]

I need to make passwordless login for same linux server with same user. [airwide@eir ~]$ hostname -i 10.3.7.73 [airwide@eir ~]$ ssh airwide@10.3.7.73 airwide@10.3.7.73's password: how can make to ...
1
vote
2answers
123 views

My reverse zone doesn't work

I'm trying to configure my reverse zones on Centos server. I've read many articles and it looks like I'm doing everything right and don't know what to check or fix next. The following is a part of my ...