I am running Debian 6 and I am trying to increase the file descriptor limit but it does not want to work. This is what I have done:
I edited /etc/sysctl.conf by adding fs.file-max = 64000 at the end and applied the changes using sysctl -p.
I then edited /etc/security/limits.conf and added the following lines: * soft nofile 64000 and * hard nofile 64000.
Now when I execute ulimit -Hn and ulimit -Sn I still see 1024. I rebooted the server and I still get the same result. What have I failed to do?
I want to build network file system on top of my VMWare ESXi based virtual nodes which are running Ubuntu 12.04 LTS. I am evalaluating options and found that GlusterFS (http://www.gluster.org/) can turn out to be a good choice.
Purpose: I have about 2 dozen VM nodes with different configurations, on 2 physical nodes which has following configuration:
16 core Intel Xeon
1 TB
48 GB RAM
Now as I said earlier each Physical server has about 1TB hdd and I can increase if I want additional so for now I have 2TB disk space available, these space is distributed in VM nodes I have created on which about 2 dozen VM nodes live. Now some of them being application server and mgmt server, they have plenty of free disk space which I want to utilize for some heavy storage which I can not design if I do that individually on single VM node. This way if my storage is distributed between dozens of VM nodes and about 2 or more physical nodes I have some sort of backup as well. I do not mind if data gets stored redundently but per my knowledge it might hapeen that individual VM nodes will not be able to store all of the data because complete data size for example if we take 100GB will exceed VM disk size of 70GB and then VM will also have system and program files on it.
I need some suggestion that will GlusterFS be the solution for which I am looking forward to or I should go with something like hadoop? I am not too sure. But yes, I would like to utilize my free space on each VM node and while doing that if I get store data redundently I am okay because it will give me data security.
We are using RVM for managing Ruby installations and environments.
Usually we are using this .rvmrc script:
#!/bin/bash
if [ ! -e '.version' ]; then
VERSION=`pwd | sed 's/[a-z/-]//g'`
echo $VERSION > .version
rvm gemset create $VERSION
fi
VERSION=`cat .version`
rvm use 1.9.2@$VERSION
This script forces RVM to create new gem environment for each our project/version.
But each time we was deploying new version RVM asks us to confirm new .rvmrc file.
When we cd to this directory first time, we are getting something like:
===============================================================
= NOTICE: =
===============================================================
= RVM has encountered a not yet trusted .rvmrc file in the =
= current working directory which may contain nasty code. =
= =
= Examine the contents of this file to be sure the contents =
= are good before trusting it! =
= =
= Press 'q' to exit the reader when finished reading the file =
===============================================================
(press enter to continue when ready)
This is not as bad for development environments, but with auto deploy it require to manually confirm each new version on each server.
Is it possible to skip this confirmation?
I use Ubuntu 11.04. There's no space left on device. I have encrypted the disk that takes up space (maybe it's good to disable it, but I don't know how).
In shell, I get this message:
No space left on device
I run df -I:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 3055616 602499 2453117 20% /
none 210161 890 209271 1% /dev
none 214789 8 214781 1% /dev/shm
none 214789 53 214736 1% /var/run
none 214789 3 214786 1% /var/lock
/home/myuser/.Private
3055616 602499 2453117 20% /home/myuser df -I
Edit:
When I run only df:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 48060296 45618928 0 100% /
none 1538340 684 1537656 1% /dev
none 1547596 808 1546788 1% /dev/shm
none 1547596 104 1547492 1% /var/run
none 1547596 0 1547596 0% /var/lock
/home/myuser/.Private
48060296 45618928 0 100% /home/myuser
Edit:
I thinking about few solution but I don't know which better and how exactly to do them:
to enlarge partition size (I cant install gparted - no more disk space)
remove encryption of partition - I really not need that
Aspell version:
$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
Dump dict yields no results:
$ aspell dump dicts
First noticed the problem when I did this, was originally working on web server, but someone updated something and it hasn't worked since:
$ aspell check temp_test_file.txt
Error: No word lists can be found for the language "en_US".
What's the proper way of installing the required dictionaries? I believe we're running this on CentOS.
And also, /usr/lib/aspell-0.60 does not contain the required dictionaries (provided that they're supposed to be saved there).
data-dir: /usr/lib/aspell-0.60
Our cron script stopped working in different dates in August. What can be the possible reasons? We did not change anything. Our hosting showed us a log where we can see that cron is executing our scripts. But, nothing is happening in our scripts.
If we manually execute the scripts, we're getting correct results like before.
I showed the commands to hosting and they showed me that the commands are working. What should I tell my hosting? what should I do?
They are php scripts which are executed by CRON and they just post to facebook and twitter. They don't execute any hard or huge things. I even asked my hosting if we broke any rules.
Is it possible for Postfix (on FC7) to recieve an email at [email protected] and automatically forward a copy to [email protected] and [email protected] and [email protected]? I can't use .forward files because this is a virtual server with virtual domains, there are no /home/user directorys for email accounts.
It will sound stupid but i need to figure out how much disk space i have in my dedicated server, it runs CentOS6...the last command i issued was this
[root@ks34900 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 9.7G 6.4G 2.9G 69% /
/dev/root 9.7G 6.4G 2.9G 69% /
none 1000M 288K 1000M 1% /dev
/dev/sda2 914G 200M 868G 1% /home
But again, stupid as it may sound... i cant figure out how much space i have in "/" folder (root)
And is it possible that "/usr" have a different space (partition)?
I've been wondering what command-line aliases (such as in bash, or just even .bat files under Windows) you can't live without?
I'll start off with my favourite:
alias q=exit
hi
im using cpanel when i changes the foler permission i got this error please help
FileOp Failure on: /home/public_html/components/com_openinviter: Operation not permitted
Thanks
In need of shell scripts / bash commands to verify data integrity of local harddrives, usb-drives, etc, ...
Like the famous www.heise.de/download/h2testw; or something that is at least common within repositories.
(h2testw writes a specific datastring over and over onto the medium, then reads it again to verify if it was written correctly and displays write/read time/speed.)
please no
dd if=/dev/random of=/dev/sdx bs=1k && dd if=/dev/sdx of=/dev/null bs=1k
since it won't verify if everything was written correctly. It is only a test if read/write is successful to the device.
So far, I'm not too happy with
badblocks -w -v /dev/sdx1
either, since it seems rather slow and I don't know what it exactly writes, and if it considers wear-leveling on flash media.
There is also a program named F3 http://oss.digirati.com.br/f3/ that needs to be compiled. Designed after h2testw, the concept sounds interesting, i'd just rather have it as a ready to go bash script.
I'm trying to better understand symbolic links... and not having very much luck. This is my actual shell output with username/host changed:
username@host:~$ mkdir actual
username@host:~$ mkdir proper
username@host:~$ touch actual/file-1.txt
username@host:~$ echo "file 1" > actual/file-1.txt
username@host:~$ touch actual/file-2.txt
username@host:~$ echo "file 2" > actual/file-2.txt
username@host:~$ ln -s actual/file-1.txt actual/file-2.txt proper
username@host:~$ # Now, try to use the files through their links
username@host:~$ cat proper/file-1.txt
cat: proper/file-1.txt: No such file or directory
username@host:~$ cat proper/file-2.txt
cat: proper/file-2.txt: No such file or directory
username@host:~$ # Check that actual files do in fact exist
username@host:~$ cat actual/file-1.txt
file 1
username@host:~$ cat actual/file-2.txt
file 2
username@host:~$ # Remove the links and go home :(
username@host:~$ rm proper/file-1.txt
username@host:~$ rm proper/file-2.txt
I thought that a symbolic link was supposed to operate transparently, in the sense that you could operate on the file that it points to as if you were accessing the file directly (except of course in the case of rm where of course the link is simply removed).
I have a server racked and its redundant power supplies plugged in two APC Smart-UPS 3000 XLM. Each UPS is connected to two different mains power sources.
Two instances of apcupsd are running, each one connected to its own UPS. They can both detect when an UPS is on Battery, and each UPS can then trigger a shutdown on the server.
Question is : How NOT to shutdown if ONLY ONE UPS runs out of battery ?
Note : Smart-UPS 3000 XLM has a "Power Sync" Function that is able to connect to its peer and detect its status. But when I pulled the plug out of one of them, the Shutdown order was sent anyway. I'm thinking about modifying the shutdown scripts to check with "apcaccess" if the other ups is down. Any experience on this would be appreciated !
Hello everybody,
is there a possibility to "use" flash based objects with elinks ?
I mean, i have an online flash based multiplayer game ( http://haxball.appspot.com ) and i want to connect to game with elinks installed on my shell server to create an always-present game room.
To do it, i need a terminal-based webbrowser with flash support. There is an elinks installed so it would be great if there is such a possibility in it.
Any ideas?
Thanks,
Mike
Goal
Basically I would like SVN users to be able to browse through a directory containing a lot of subfolders without allowing them to read its subfolders.
[/]
* = r
[/Projects]
* = # Allow viewing contents, but not reading. At least to be able to see Project1.
[/Projects/Project1]
my_group = rw
Problem
The problem is that there are a lot of projects. I could add every other project and make them disappear for the user, but that would be a lot of work to maintain. It would look like this:
[/]
* = r
[/Projects]
* = r
[/Projects/Project1]
my_group = rw
[/Projects/Project2]
* =
[/Projects/Project3]
* =
[/Projects/Project4]
* =
[/Projects/Project5]
* =
It would be nice if I could use this:
[/Projects/*]
* =
Any ideas?
Thanks in advance,
Jaspa Jones
Quite often, the script I want to execute is not located in my current working directory and I don't really want to leave it.
Is it a good practice to run scripts (BASH, Perl etc.) from another directory? Will they usually find all the stuff they need to run properly?
If so, what is the best way to run a "distant" script? Is it
. /path/to/script
or
sh /path/to/script
and how to use sudo in such cases? This, for example, doesn't work:
sudo . /path/to/script
I've noticed that since updating my server to Debian Squeeze the amount of entropy as reported by /proc/sys/kernel/random/entropy_avail is much lower than it was before the upgrade. I would like to know if this lower pool size is big enough to function with or if I need to look into getting more entropy sources. I think having a way to log blocking reads of /dev/random would show whether I have enough entropy or not.
I have 3 identical machines (hardware wise) that all have RHEL 5.3 installed. 2 of those machines have the Xen kernel and one doesnt. I cannot install nvidia drivers on the ones that have the xen kernel and so I was wondering how I managed to do this and how to replace them with normal kernels. Could this of happened during install time when for example I was queried on certain components to install? (development,virtualization, webserver)
hello,
i found some strange informations in /var/log/secure file:
Feb 10 02:02:04 server2364 usermod[30750]: unlock user `username1' password
Feb 10 02:02:04 server2364 usermod[30811]: lock user `username2' password
Feb 10 02:05:16 server2364 usermod[30992]: unlock user `username2' password
Feb 10 02:05:18 server2364 usermod[31114]: unlock user `username1' password
username1 and username2 are two usernames on system, that have no ability to login.
for every night in 02:02h results like that are in /var/log/secure file.
one more thing: files /etc/shadow, and /etc/shadow have timestamps 02:05h.
what can be cause for it?
next thing, if i remove those two accounts (username1 and username2), i can not start web server.
can you help me with some ideas, am i hacked?
I don't know if this is a configuration issue or a hardware issue, but I have a Kinesis Advantage USB keyboard and for some reason the F3-F5 keys aren't responding as they used to. They don't respond to anything and, when I tried using F5 on Emacs, it said <XF86AudioNext> is undefined, so I guess it's a weird mapping problem.
Any idea how I could remap them to the original meaning?
Hey,
a short question: is it possible to list all symbolic links onto a directory other than running a find over the whole filesystem?
Background: I have a directory containing a lot of different versions of a library and I'd like to do some cleanup work and delete the versions which weren't used in any projects.
Thanks,
Mathias
I'm installing Debian using the Live CD with GNOME and the non-free packages. The internet works just fine when using the live CD, but when you try to open the installer and select a network, it gives me the error of "Failure of key exchange and association". I've put everything in right, and tried multiple times. However, it never works. Am I just going to have to use ethernet to install? Thanks, people.
socat - exec:'bash -li',pty,stderr,ctty - bash: no job control in this shell
What options should I use to get fully fledged shell as I get with ssh/sshd?
I want to be able to connect the shell to everything socat can handle (SOCKS 5, UDP, OpenSSL), but also to have a nice shell which correctly interprets all keys, various Ctrl+C/Ctrl+Z, tab completion, up/down keys (with remote history).
Update: Found "setsid" socat option. It fixes "no job control". Now trying to fix Ctrl+D.
Update 2: socat file:`tty`,raw,echo=0 exec:'bash -li',pty,stderr,setsid,sigint,sane. Not it handles Ctrl+D/Ctrl+Z/Ctrl+C well, I can start Vim inside it, remote history is OK.