Most Popular

1500 questions
62
votes
5 answers

associate name with ip for ssh?

Let's say I just have an ip address for a server and I don't have a domain with it (it's just a database server, so it doesn't need a domain). I don't want to have to remember the ip address every time, so is there a way I could still use the syntax…
Matthew
  • 1,859
  • 4
  • 22
  • 32
62
votes
5 answers

A better unix find with parallel processing?

The unix find(1) utility is very useful allowing me to perform an action on many files that match certain specifications, e.g. find /dump -type f -name '*.xml' -exec java -jar ProcessFile.jar {} \; The above might run a script or tool over every…
PP.
  • 3,316
  • 6
  • 27
  • 31
62
votes
7 answers

Choosing the shell that SSH uses?

How do I set the shell that is used when a user SSHs to a server. For example I can't stand BASH and need to use ZSH, how do I make it so ZSH is loaded along with my profile (.zsh_profile) when I ssh to the machine. I dont want to have to pass a…
JP Silvashy
  • 1,447
  • 6
  • 24
  • 30
62
votes
19 answers

Best Practise and Solutions for Sharing Passwords

We have various passwords that need to be known to more than one person in our company. For example, the admin password to our internet routers, the password for our web-host, and also a few "non-IT" passwords like safe codes. Currently, we use an…
Stewart
  • 925
  • 1
  • 8
  • 10
61
votes
8 answers

Does bigger capacity SSD have longer life due to wear leveling?

I have been told that you can get a longer lifespan of an SSD if you buy a bigger capacity SSD. The reasoning goes that newer SSDs have wear leveling and thus should sustain the same amount of writing whether you spread this writing on the (logical)…
Ole Tange
  • 2,946
  • 6
  • 32
  • 47
61
votes
8 answers

Moving Servers Within The Same Building

Here's my scenario: I'm a developer that inherited (unbeknownst to me) three servers located within my office. I also inherited the job of being the admin of the servers with a distinct lack of server administration knowledge and google /…
Gareth
  • 735
  • 5
  • 10
61
votes
5 answers

Optimal value for Nginx worker_connections

Nginx worker_connections "sets the maximum number of simultaneous connections that can be opened by a worker process. This number includes all connections (e.g. connections with proxied servers, among others), not only connections with clients.…
Aarti
  • 689
  • 1
  • 7
  • 6
61
votes
11 answers

Install a newer version of Git on CentOS 7

I like to enable Git "Push to Deploy" on my CentOS 7 server. Currently I only can get Git 1.8.3.1 via yum. I need a newer version. Do I have to build it from source or is there any repo I can use? I alreay added EPEL and elrepo but yum still gives…
Oliver
  • 721
  • 1
  • 5
  • 5
61
votes
9 answers

Tool to test a user account and password (test login)

Yeah, I can fire up a VM or remote into something and try the password...I know...but is there a tool or script that will simulate a login just enough to confirm or deny that the password is correct? Scenario: A server service account's password is…
TheCleaner
  • 32,627
  • 26
  • 132
  • 191
61
votes
3 answers

How should I setup separate MX records for a subdomain?

Let's say I have a domain that I run a web application on, for example cranketywidgets.com, and I'm using Google Apps for handling email for people working on that domain, for example, support@ cranketywidgets.com, [email protected],…
Chris Adams
  • 709
  • 3
  • 11
  • 18
61
votes
3 answers

Is it possible to on-line shrink a EXT4 volume with LVM?

Today I tried this on my machine with OpenSUSE 12.3 (kernel 3.7): # resize2fs /dev/mapper/system-srv 2G resize2fs 1.42.6 (21-Sep-2012) Filesystem at /dev/mapper/system-srv is mounted on /srv; on-line resizing required resize2fs: On-line shrinking…
Alicia
  • 765
  • 1
  • 5
  • 8
61
votes
4 answers

How do I change the NGINX user?

I have a PHP script that creates a directory and outputs an image to the directory. This was working just fine under Apache but we recently decided to switch to NGINX to make more use of our limited RAM. I'm using the PHP mkdir() command to create…
David
  • 845
  • 3
  • 8
  • 10
61
votes
9 answers

How to split a PEM file

Note : This is not really a question because I already found the answer but since I didn't find it easily here I will post it so that it can benefit others. Question : How to read a concatenated PEM file as the one used by apache/mod_ssl directive…
Cerber
  • 1,221
  • 1
  • 13
  • 23
61
votes
7 answers

How to convert 'dmesg' time format to 'real' time format

I have (for example) this log entry in dmesg output: [600711.395348] do_trap: 6 callbacks suppressed Is there a possibility to convert this 'dmesg' time to 'real' time to know, when this event happend?
Jan Marek
  • 2,180
  • 1
  • 13
  • 14
61
votes
4 answers

Can the environment variables tool in Windows be launched directly?

Is there a more direct way to the environmental variables GUI than the following? Right click 'My Computer' and select 'Properties'. Click 'Advanced System Settings' link. Click 'Advanced' tab. Click 'Environment Variables...' button. Can I make a…
JasonV.com
  • 771
  • 1
  • 7
  • 6