Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

Linux is the generic term for a UNIX-like open source operating system based on the Linux kernel.

15
votes
8answers
5k views

How many and which partitions should I create for a linux server?

Partitions are very important on Linux server because it give you a lot of flexibility, for example when upgrading to a bigger hard drive. But, how many partitions should I create when building a ...
17
votes
16answers
2k views

Linux distributions recommendations for servers [closed]

I have limited Linux server experience. I am looking for recommendations on distributions. What's your favorite for servers and why? EDIT: Clarification: I'm hoping for one, general purpose ...
6
votes
7answers
19k views

What can I do to optimize NFS copy speed on a 1GBit home network? [closed]

I have a home network with a 1 GBit/sec switch as the central point, and all computers with 1 GBit/sec NIC's. However, I get at most 200 MBit/sec copy speeds over NFS shares. It seems I should be ...
17
votes
26answers
11k views

What tools should you absolutely know as a Windows/Linux Sysadmin? [closed]

What are tools/utilities that you should absolutely know while working as a Linux or Windows Sysadmin. I'm thinking for example about GNU/screen that you'll need if you're working on Linux servers.
3
votes
1answer
219 views

Running a Xen Dapper dom0 with a Hardy domU

Is it possible to set up a Hardy domU on an existing Xen dom0 running Dapper? I have found many postings talking about the reverse (Dapper domU on a Hardy dom0), but I have the existing server set up ...
7
votes
4answers
2k views

What is the most effective way to setup a linux web server for manual failover

I currently administer a small web server running ubuntu linux with apache, mysql, and ssh. I'm backing it up using rsync to another server, but I'm backing it up to a /backup directory. I'd like to ...
27
votes
9answers
4k views

Ubuntu, how to setup a new machine like an existing one

I have one machine setup with the apps I need, and I'd like to install the same on a new Ubuntu box. Is there a script that will list all the installed apps, so that I can diff between the boxes and ...
27
votes
28answers
8k views

What is your list of programs to install to Windows after a fresh install?

I am looking for others' list of program that absolutely must be installed to a fresh install of Windows before going any further. I hope to compile a list here to use as reference for all new ...
9
votes
3answers
44k views

How do I turn my DD-WRT router in to an access point?

I have a n-based router from Linksys with DD-WRT installed. I would like to turn this in to an access point because I already have a router/firewall installed on my network.
11
votes
2answers
12k views

What is the best way to set an environment variable in .bashrc?

When setting up a variable in .bashrc, should I use this? export VAR=value Or would this be enough? VAR=value What is exactly the difference (if there is one)?
17
votes
7answers
17k views

What is the true value of a LPI certification? [closed]

I was wondering what is the value of an LPI certification in the real world. I've heard it's useful and all, but I'd like to hear some other opinions. Would a certification really help me get a job? ...
17
votes
19answers
8k views

Why does redhat seem to be so popular in the enterprise world? [closed]

Title says it all. For personal usage, I tend to prefer Debian/Ubuntu over Redhat. It's not necessarily that I dislike Redhat (or more specifically CentOS or Fedora) so much as it is that I like ...
2
votes
1answer
207 views

Munin with intermittent clients

I'm currently using munin to monitor a bunch of linux servers (as well as a few WinXP clients). However, munin does its data collection sequentially, and seems to be very susceptible to timing out ...
18
votes
9answers
13k views

How to setup simple firewall on Ubuntu?

Could somebody give some simple steps with configuration example how to setup simple firewall on Ubuntu (using console only)? Only ssh, http and https access should be allowed.
4
votes
3answers
434 views

Why is my computer sending emails

I am currently using Debian Squeeze 6.0. The administrator of my work place receives every week messages from several processes of my system: cron smartd ... The messages are send to root@workdomain....
4
votes
3answers
3k views

Open source thin-client software

I have been looking for a open source alternate to windows thin-client terminals we use for remote desktop into a terminal server which is where users do all their work. I am often in the situation ...
2
votes
2answers
135 views

Linux network services

I'm trying to motivate a class to learn about some of the common types of services that are run on Linux systems, things like httpd, ssh, ftp, etc. What services should I teach? What would be the most ...
10
votes
3answers
2k views

Optimizing Apache and MySQL on Linux Xen VPS

I have a Xen virtual private server (VPS) running Ubuntu 8.10, with 128M RAM. I've found several "how to optimize Apache and MySQL for low-memory VPS" pages via Google, but they provide contradictory ...
1
vote
2answers
1k views

RAID configuration on ICH9R with 3xHDD for Windows and Linux

I have a MSI P35 Neo2-FIR Motherboard with ICH9R raid chipset. It's not a true hardware RAID solution, it requires software addon to work properly. There are drivers for Windows and dmraid/fakeraid ...
3
votes
7answers
302 views

Preferred Email Client For Multi OS Environment

In a mixed OS environment (namely Windows, OSX and Linux), which is your preferred Email client when using imap, but also requiring Calander support? Preferrably, one client for all platforms.
9
votes
23answers
985 views

What's your favorite Linux distribution? [closed]

What's your favorite Linux distribution on the server and the desktop, and why is it?
2
votes
3answers
206 views

Change Default Config Settings for PHP?

When setting up php on a new Unix-based server, are there any default PHP settings that you will always change? Any that you will always consider changing based on the particular environment?
36
votes
10answers
15k views

Securing a fresh Ubuntu server [closed]

Say I've got a fresh install of Ubuntu, what steps should I take to secure it for use as a Rails application server?
2
votes
2answers
480 views

(Soft) RAID 6 on Ubuntu 7.10, should I migrate to 8.10?

My System is a Ubuntu 7.10. I have a (soft) RAID 6 with 5 disks (Samsung 500GB SATA disks), formatted with jfs. Should I upgrade to 8.10 or isn't it worth the hassle? What are the chances that ...
2
votes
4answers
3k views

Configure options MySQL server was compiled with?

I have MySQL server 5.0.67 running on a Linux machine. How can I know what configure options were used to compile it?? I'm interested in the option --with-mysqld-ldflags in order to know whether ...
2
votes
8answers
8k views

What are best practices regarding multiple JVMs on a server?

Many third party products require a specific version of the JRE or JDK and many of our servers have multiple duties. Application teams argue they should not care where Java is installed. Most of the ...
112
votes
85answers
19k views

Linux command line best practices and tips?

I would like to open a discussion that would accumulate your Linux command line (CLI) best practices and tips. I've searched for such a discussion to share the below comment but haven't found one, ...
863
votes
38answers
510k views

How can I sort du -h output by size

I need to get a list of human readable du output. However, du does not have a "sort by size" option, and piping to sort doesn't work with the human readable flag. For example, running: du | sort -...
20
votes
6answers
30k views

What's the maxium number of files a Unix folder can hold?

What's the maxium number of files a Unix folder can hold? I think it will be the same as the number of files.
1
vote
3answers
1k views

Configuring Postfix to not use a daemon

I realize this is wildly offtopic but this is my last hope. I would like to only send mail from my computer, both locally and to remote servers, so I don't think I need postfix to run a daemon, but I ...
113
votes
7answers
334k views

How can I port forward with iptables?

I want connections coming in on ppp0 on port 8001 to be routed to 192.168.1.200 on eth0 on port 8080. I've got these two rules -A PREROUTING -p tcp -m tcp --dport 8001 -j DNAT --to-destination 192....
287
votes
20answers
252k views

How to run a server on port 80 as a normal user on Linux?

I have googled about it for quite some time, but couldn't find it. I am on Ubuntu Linux and want to run a server on port 80, but due to security mechanism of Ubuntu, I get the following error: ...
4
votes
3answers
102 views

Restricting an account's window manager choices

On Red Hat Linux, how can a particular account be restricted to logging in with a particular window manager? For example, only fvwm2 is allowed but KDE and GNOME are not. Or can the disallowed ...
7
votes
12answers
10k views

Is there a distro of Linux without GUI? What do hosting companies install? [closed]

I believe OS GUI takes some machine resources and is not really needed for a web server. What OS do people install to make a Linux-based web server without GUI?
6
votes
4answers
2k views

primary partition limit on Linux

I'm going to buy a server to host an Oracle database. The server will be running Red Hat Enterprise Linux 5. The server will have 6 hard drives. I know there is a limit of 4 primary partitions in ...
5
votes
2answers
4k views

Usermin (Webmin)- Users can't login [closed]

I've installed Webmin in my server. The users of my Unix server must be able to change their passwords. So, for that, they use Usermin. But users just can't login in Usermin module. I get always this ...
10
votes
20answers
6k views

How do I determine if my Linux box has been infiltrated?

I recently read an article about analyzing malicious SSH login attempts. This got me thinking, are the SSH username, password combinations on my Debian box that uncommon? Had I been targeted by a ...
8
votes
9answers
5k views

Freeing up memory (RAM) on Ubuntu 8.04 Server [duplicate]

I run an Ubuntu 8.04 on a Slicehost virtual server with some lightweight server apps - apache22, svnserve, mysql, and proftpd. The only serious service limitation is RAM - 256MB is what I'm paying for....
16
votes
5answers
3k views

Managing iptables rules in Linux

I have a lot of rules for my iptables setup (routing, ssh bans etc) I also picked up a list of IP's to ban from here http://blacklist.linuxadmin.org and now its getting really complicated. My /etc/...
14
votes
5answers
184 views

ubuntu servers - what do i need to do to keep it uptodate

I am setting up an ubuntu server and want to know what I should be doing on it regularly. apt-get update/upgrade seems obvious. Is there a glsa check for example? Anything else I should be running? ...
112
votes
7answers
203k 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 ...
250
votes
8answers
437k views

How to bind MySQL server to more than one IP address?

Is there a secret way to bind MySQL to more than one IP address? As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.
6
votes
2answers
2k views

Managing consistent mounting of external USB hard drives in Linux (CentOS 5)

I have configured a server with CentOS 5.2 and am now working out a backup strategy. I plan on using Amanda as the backup application. Additionally, I am leaning towards using some USB hard drives for ...