Most Popular
1500 questions
62
votes
7 answers
Given a debian source package - How do I install the build-deps?
I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies.
Normally I'd use apt-get build-dep, but this package isn't…
Amandasaurus
- 33,461
62
votes
3 answers
Mount Remote CIFS/SMB Share as a Folder not a Drive Letter
Is there any way to mount a remote CIFS/SMB/SAMBA share as a folder/directory and not as a drive letter. For example, I want this map:
\\Server\ShareName -> C:\Folder\ShareName
Instead of the usual map like this:
\\Server\ShareName -> Z:\
The…
Anagoge
- 723
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
62
votes
4 answers
Connecting to HTTPS with netcat (nc)
I'm working on a homework assignment for my college course.
The task is to fetch web pages on HTTPS using nc (netcat).
To fetch a page over HTTP, I can simply do the following:
cat request.txt | nc -w 5 80
In request.txt I have an HTTP…
Oto Brglez
- 822
61
votes
1 answer
What is the difference between a 'Login' and an 'Interactive' bash shell
What is the difference between a ‘Login’ and an ‘Interactive’ bash shell?
I have quoted Wikipedia below but can anybody give a better answer?
EDIT: This is a community wiki so maybe rather than voting to close you could provide examples of which…
Gareth
- 8,733
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
- 3,186
61
votes
6 answers
How to give username/password to git clone in a script, but not store credentials in .git/config
I am cloning a git repository in a script like this:
git clone https://user:password@host.com/name/.git
This works, but my username and my password! are now stored in the origin url in .git/config.
How can I prevent this, but still do this in a…
Nathan
- 743
61
votes
4 answers
Tcpdump on multiple interfaces
I need to capture traffic on a CentOS 5 server which acts as a web proxy with 2 wan interfaces and 1 LAN. In order to troubleshoot a weird proxy problem, I would like to have a capture of a full conversation. Since external connections are balanced…
Nahidul islam
- 611
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
61
votes
6 answers
"reboot" or "shutdown -r now": what restart command is safer?
We have in our organization around ~500 RedHat Linux machines.
On all the machines we installed applications and services under /etc/init.d, and oracle RAC servers. We intend to perform yum updates on all machines and after that take a reboot.
So I…
dandan
- 1,131
61
votes
3 answers
Rsync to AWS S3 bucket
For a server I am hosting a website on I want to backup the data and settings to an S3 bucket. I found out that you can't directly use rsync to backup to an S3 bucket. Is there another way to achieve the following rsync command to backup the data to…
Bart Bergmans
- 733
61
votes
5 answers
systemd service automatic restart after StartLimitInterval
I want my systemd service to be automatically restarted on failure. Additionally I want to rate limit the restarts. I want to allow maximum of 3 restarts within 90 seconds duration. Hence I have done the following configuration.
[Service] …
Dinesh P.R.
- 721
61
votes
4 answers
How to redirect root and only root via htaccess?
I want to redirect only my root to another url, but maintain all the /sub/directories where they belong (and redirect)
example:
mysite.com/1 redirects to somewhere
mysite.com/admin opens a page
i want mysite.com/ to redirect to mysecondsite.com and…
jardel
61
votes
7 answers
adding password to .ssh/config
I'm using ubuntu 12.04. I'm using ssh for connecting to many servers daily, so I put their parameters in .ssh/config file; like this :
Host server1
User tux
Port 2202
HostName xxx.x.xx.x
I know we should use key-pair ensure security, however…
Ajo Augustine
- 1,272
61
votes
5 answers
Can I make rsync output only the summary?
I use rsync to backup a directory which is very big, containing many sub-directories and files, so I don't want to see the "incremental file list". I just want to know the summary in the end. If I use the argument -q, nothing is output at all. Can I…
horsley
- 613