Questions tagged [unix]
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.
1,957
questions
5
votes
3
answers
2k
views
What is the difference between hardware and software load balancers?
How does each work?
I currently use PerlBal...is that ok?
It's just round-robin non-session-based load balancing.
0
votes
3
answers
630
views
dmesg log dump help
I keep having dumps in my dmesg logs, I suspect that it's the NIC making errors. Can someone give me their opinion?
After this happens, I can't access the machine through the network.
[28965.681498] ...
2
votes
2
answers
8k
views
Can someone see why my DNS won't work? I followed everything in the tutorial, but won't work
If anyone can help me troubleshoot this, I would very much appreciate it!!
The tests work. It's just that when I do the manual ping/nslookup test, nothing is working.
By the way, I followed ...
1
vote
8
answers
261
views
What script or program is needed to keep a unix system date correct?
What script or program is needed to keep a unix system date correct? I find that my linux servers are behind a few minutes from actual time.
2
votes
2
answers
732
views
How do I get the psuedo terminal device of the current xterm?
I'd like to get the value of the current xterm window's psuedo terminal, for use in the "write" function. For instance, when I type ps I can see that all the current processes are on pts/4. Is there ...
2
votes
3
answers
5k
views
UNIX password expiration time setting
Where and how exactly I can set the expiration time of password of users i.e.the time after which the UNIX OS prompts user after giving some warnings that your password will expire with in n days and ...
2
votes
1
answer
739
views
Unix Joe Editor Default Settings
Using JOE Text Editor I feel rather annoyed having to change the Word Wrap settings everytime I edit a document. I am sure there must be a way to define a set of defaults for the whole system once and ...
0
votes
3
answers
435
views
How to limit FTP connections to a certain ip range?
I only want to be able to connect to my unix box via ftp from a small range of ips. other services (i.e., www , mail , ssh) should be from any ip as usual
how can i set this up?
thanks
1
vote
1
answer
163
views
How to stop apache showing a page when its ip is requested? I only want to show a page if a domain is requested
i am running apache on (for example) 127.1.1.1, but have it set up so example1.com reads from /home/example1.com/, example2.com reads from /home/example2.com/
if i go to example1.com (or any other ...
0
votes
1
answer
198
views
If I set up a DNS server, will I need to buy a domain name from Godaddy?
Suppose I have a server in my network that would like to talk to the database server.
How would it talk to the DNS, and then point to the database server?
0
votes
4
answers
304
views
When to use DNS for my linux architecture?
I understand that this is a server-fault question, and I will most likely close this after it's answered. But I really need this answer now, and since it's Halloween, serverfault has very few people ...
2
votes
5
answers
8k
views
How to copy /etc/hosts to all my machines?
import os, sys, time
servers = ['dev','admin','db1']
for s in servers:
cmd = 'scp /etc/hosts regular_user@%s:/etc/hosts' % s
print cmd
os.system(cmd)
I have written this script to copy ...
52
votes
6
answers
49k
views
How to make a global ~/.vimrc?
Right now, I make everyone do ~/.vimrc and put their settings there.
How can I make a global, default .vimrc for new users?
4
votes
3
answers
7k
views
Why doesn't "ifconfig" work on some of my machines?
Some do...some don't work.
ifconfig
-bash: ifconfig: command not found
11
votes
3
answers
32k
views
PYTHONPATH environment variable...how do I make every subdirectory afterwards?
I currently do this:
PYTHONPATH=/home/$USER:/home/$USER/respository:/home/$USER/repository/python-stuff
How can I make it so that the PYTHONPATH can include everything subdirectory?
PYTHONPATH = /...
0
votes
2
answers
222
views
What are all the most essential things to install for YUM?
I am building a server that has all the libraries (of course, they shouldn't take up Gigs of data). So that I can clone it, and will have it all.
This server is mainly for web/crawling/databases ...
0
votes
1
answer
2k
views
What is the exact YUM to install Java-JDK?
Do I have to put "multiverse" or something...this is what I heard.
For CENTOS
2
votes
4
answers
11k
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 ...
5
votes
4
answers
1k
views
Log monitoring toolsets for Unix? [closed]
What are some good tools for monitoring logs on a system? I am currently using logsentry, which basically just runs grep on logs, ignores regexps I tell it to ignore, and mails me everything else, but ...
17
votes
4
answers
16k
views
Where should I place group shared files on a Linux system?
I'm migrating a lot of small custom scripts and data from a Linux system to another.
On the old system we had a shared user that owned most of the files and they where located in that users /home, ...
0
votes
2
answers
2k
views
How can I edit/update hosts(etc/hosts) file using any programming language [closed]
Dynamically I want to edit/update hosts(etc/hosts) file to add domain.
To edit hosts(etc/hosts) file require Admin privileged. Using Linux I can do this by this command
sudo gedit /etc/hosts
But ...
2
votes
4
answers
2k
views
software for batch process management in unix
I'm looking for a good open source solution to managing many batch jobs across a cluster
of machines. I've looked at the solutions indicated in this post but it doesn't really seem to be what I'm ...
3
votes
9
answers
21k
views
How can i find out the server specs in unix?
Tried to search but can't find anything. Is there an unix equivalent to right clicking / properties on My Computer to see things like memory, cpu speed etc ?
3
votes
1
answer
7k
views
How do you handle log rolling (or truncation) for unix services that don't handle it themselves?
In my particular case it's the mysql general log and slow query log; neither is critical to operations, just there for troubleshooting if need be, and mysql doesn't have a mechanism for rolling or ...
0
votes
1
answer
340
views
Installing fortune on Solaris
I'd like to build and install fortune into my home directory on Solaris 10. Can someone recommend a version that's easy to build on Solaris and comes with a good set of fortune files. In reading ...
0
votes
1
answer
3k
views
How to run a program inside chroot with stdin/stdout available to caller?
Is there a way to run a program in a chroot while still having access to stdin/stdout?
My first attempt was a shell script:
/usr/local/bin/real-app:
--------
#!/bin/bash
chroot /var/lib/app-root /...
2
votes
4
answers
1k
views
Filesystem permissions on Unix
If I have a folder specified as not-readable. Are all folders under it also non-readable? For example, my shared hosting home account directory is not accessible to other accounts, so, are all folders ...
4
votes
2
answers
787
views
Blocking rm -rf for application
I have application which during run-time generates interesting intermediate outputs to ./tmp directory.
At the end of execution this directory is deleted.
How can I preserve contents of it?
I do not ...
3
votes
8
answers
21k
views
How to completely backup a Linux Image and then load it in another server?
Complete exact copy!
2
votes
3
answers
15k
views
How can I virtualize a Unix machine using VMware?
I have a computer with a Unix OS installed on it. I want to convert this computer to a virtual machine so that I can run it on another computer with VMware workstation.
1
vote
3
answers
10k
views
After I change /etc/apt/sources.list...why doesn't it take effect?
Do I have to restart something?
Edit:
sudo apt-get update has no effect.
When I search this on another machine with the SAME sources.list, it works. But, it still doesn't work on this machine.
...
2
votes
5
answers
503
views
how to create a cronJob run every 0.25 hour
How do I want to create a cron job on Linux that runs every 0.25 hour?
0
votes
3
answers
2k
views
Why can't I install Java via "sudo aptitude" in Ubuntu?
$ sudo aptitude install sun-java6-jdk
[sudo] password for fal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing ...
3
votes
5
answers
68k
views
How to check if I successfully installed java?
I went to SUN's website and downloaded the .bin:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter
I ran it, ...
2
votes
5
answers
288
views
How to make desktop notifications from long-running shell commands? [closed]
I'm currently trying to configure sphinxsearch. The indexing takes around 7 minutes. Too long to wait so I usually start doing some other tasks before testing the results. But I would like to be ...
0
votes
1
answer
1k
views
Why doesn't memcache work?
from django.core.cache import cache
def testcache():
cache.set('test','I am putting this message in',3333)
print cache.get('test')
It just prints "None"
This is in "ps aux":
...
2
votes
3
answers
4k
views
Providing command line arguments for an executable through a shell script
Suppose I have an executable xyz that takes a variable number of command-line arguments, and a wrapper Korn shell script xyz.ksh. Is there an easy way to pass all of the shell script arguments as-is ...
6
votes
2
answers
10k
views
What does rm {} + do?
As in
find -L /etc/ssl/certs/ -type l -exec rm {} +
So it finds all broken symlinks and deletes them. But how exactly do I interpret the {} + part?
2
votes
3
answers
3k
views
Cannot install JAVA SDK on UBUNTU
Note: I followed all the instructions here: http://blog.taragana.com/index.php/archive/how-to-download-install-jdk-6/
I went to the java.sun website
I ran wget on : Java SE Development Kit 6u16, jdk-...
4
votes
3
answers
11k
views
How to use "wget" to save a file as a different name
wget "http://flakejfl2ke3jrlwkefj38j2ofiwejfoifjalsdkfje3fklwje.exe" is long.
How do I save it as my own name?
12
votes
2
answers
34k
views
execute su -c over ssh
I am trying to check the BIOS version of a server over SSH, a command that requires root privileges:
ssh remote-server su -c dmidecode
but this of course fails with the error:
standard in must be ...
-1
votes
1
answer
469
views
Cannot add to sudoers file in Ubuntu
1. vim /etc/group
2. Could not find "admin" group
3. adm:x:4:MYUSERNAME << added it here, because I assume this is "admin"
4. quit the vim editor...and tried it under my username...and it DOESNT ...
0
votes
2
answers
2k
views
Memcached will not start
I have this in my /usr/local/:
libevent-1.4.so.2 memcached
When I do this, it will not start:
./memcached -d -u root -m 3900 -p 11211
./memcached: error while loading shared libraries: libevent-1....
1
vote
3
answers
1k
views
Why doesn't "locate" work?
I tried "locate libevent", but it doesn't work. and nothing happens.
1
vote
3
answers
3k
views
Is it possible to get Samba automatically convert linebreaks in files from dos to unix?
I have a shared over samba directory which i access from my windows development box.
Problem is that when i create and edit files they are saved with dos linebreaks.
Is there any way to configure ...
0
votes
7
answers
3k
views
vi syntax to comment out non-commented lines (cron)
Anyone know if it's possible in vi to replace only uncommented/non-blank lines with comments?
If I want to replace a commented line with something I know I can use :%s/^#/##foo##/g -- but I am ...
3
votes
4
answers
9k
views
Use 'find' to determine files modified yesterday
I'm sure this is an age old question with a simple answer, but I've tried every combination I know to try and haven't come up with anything. And searching Google is less than pleasant since searching ...
0
votes
5
answers
3k
views
Removing files of a specific extension unix
Quick question, how do I recursively remove files of a specific extension? I wish to remove all .svn folders from a project.
rm -Rf www/ "*.svn"
The above seems to remove everything. Im using ...
44
votes
23
answers
71k
views
Finding the Public IP address in a shell script
I can find my IP address using ifconfig or hostname -i command.
But how do I find my Public IP?
(I have a static public IP but I want to find it out using unix command)
13
votes
6
answers
35k
views
How do i find out which Fedora version I'm running from the cli (not uname -a)?
I want to know if the box is Fedora Core 4 or Redhat 9, or CentOS, etc... not if it has Kernel 2.6.x