0
votes
4answers
30 views

How do you setup multiple instances of vsftpd to run on different listen ports?

I need to setup 2 different instances of vsftpd. Which will listen on 2 different ports such that one instance listens on the default port 21 and the other can listen on another port 1123. Please ...
0
votes
1answer
31 views

debian packages version convention

I'm using debian/Ubuntu, and get confused about versions of packages. When using dpkg -l command, I get: ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - ...
2
votes
1answer
29 views

How can I answer the “scan another CD” prompt during Debian install with preseed?

I've got a preseeded install from cdrom working smoothly, except for ONE prompt. It does the scan of the cdrom before installing software, and asks me if I want to insert an additional CD to scan. Is ...
1
vote
0answers
11 views

Which dependencies are removable after building ruby?

I've successfully built ruby 2.1.1 on Ubuntu/Debian by installing the following dependencies: apt-get install \ autoconf \ bison \ build-essential \ libssl-dev \ libyaml-dev \ ...
1
vote
1answer
29 views

How to automate cleanup of config files from past pkgs as reported by “dpkg -l | grep ^rc”

There are a number of pkgs that weren't removed with "apt-get purge" and I would like to automate cleaning them up. You can't apt-get purge apache2.2-common because the pkg is already removed. You ...
0
votes
1answer
102 views

How to check if an apt mirror has the version of package I required?

Let say I want to query if openssl, 1.0.1-4ubuntu5.12 is available in the mirror, e.g. deb http://security.ubuntu.com/ubuntu precise-security main restricted Any easy command I can check?
0
votes
0answers
43 views

Should I ever do “sudo apt-get dist-upgrade” on a mission critical server? [duplicate]

I'm pretty sure the answer is "no," but there's more to this question. If dist-upgrade often downloads kernel upgrades, will my Ubuntu server always be stuck at a certain kernel if I always just do ...
0
votes
0answers
111 views

403 AuthorizedOnly error when attempting apt-get upgrade on Ubuntu 12.04

For some reason, apt-get upgrade isn't working today. This is what I see when I try to upgrade : root@localhost:~# apt-get upgrade Reading package lists... Done Building dependency tree ...
1
vote
1answer
76 views

How do I create encrypted partitions with kickstart in Debian or Ubuntu

I am setting up an automated installation of Ubuntu using kickstart and network booting. With redhat this works quite well, however Ubuntu kickstart appears rather limited and I can not find ...
1
vote
0answers
83 views

nginx-extras ok for production server?

I need the upload progress extension on my production server running Nginx, the only problem is that to do that I must actually recompile the whole of Nginx. This means uninstalling the repo Nginx, ...
0
votes
0answers
27 views

MySQL Service allow local connections through hosts.allow

I have my hosts.deny set up as ALL: ALL but when I do this I can't seem to allow MySQL in hosts.allow. I need it just on the local network. I've tried: mysql: LOCAL mysqld: LOCAL and as a last ...
0
votes
1answer
44 views

How to get the Package-List of a debian/ubuntu package?

It's possible to view the Package-List of a debian/ubuntu package, using the package management tools like apt, aptitude or dpkg? I need to list the packages provided by a package, the list is ...
0
votes
0answers
61 views

How to do disk aligment in Debian from preseed

I was wondering is there a way to create an aligned partition using preseed in debian/ubuntu. i can do this easily in kickstart (centos) using the following: %pre parted /dev/sda mklabel msdos ...
0
votes
1answer
29 views

Where are create separeted VirtualHost in Apache compiled from source

Because I have a lot of VirtualHosts in the file /etc/apche247/conf/extra/httdp-vhost.conf, this file is extensive and unorganized. I know some ways to create the VirtualHost dynamic, but in the ...
5
votes
3answers
143 views

Audit files on a Debian box

Is it possible to list every file on the system that does not belong to a package? or if they have been modified? Might need to use something like: apt-get, apt-files, dpkg-query, etc For context, ...
4
votes
2answers
286 views

How can I install packages without starting their associated services?

As you're probably aware, by default when you install a package on a Debian or Ubuntu based system, if the package contains a service, that service will generally be enabled and started automatically ...
1
vote
0answers
95 views

sshd running at 100%

I'm running an Ubuntu/WordPress server on Amazon EC2 which is experiencing problems every 24-48 hours: I get a CPU alarm from EC2, log into the server, and discover sshd is running at 99.9% CPU. This ...
0
votes
1answer
64 views

Prevent update-manager from overwriting my Configs

After installing a package with apt-get and then overwriting some package specific config files, whenever the system upgrades itself it tries to overwrite my custom configs with the package default ...
0
votes
0answers
107 views

Final stage of configuring Informix PDO with Apache - stuck :(

I've been working on configuring a server to connect to a remote Informix server to perform queries from Debian/php/apache2. I've been able to successfully install and configure the Informix Client ...
1
vote
1answer
38 views

Update computers on private network

I have a small grid of computers that form an analysis cluster. One master node with internet on eth0, and a couple of private static IP workers connected to a switch. The master is also connected to ...
-2
votes
2answers
230 views

What is /etc/apache2/sites-available used for and is it necessary? [closed]

I have 3 sites, each with a specific IP, running on apache2 (up-to-date Ubuntu). To put a site online, I just created a file in: /etc/apache2/sites-enabled and in this file I told apache which ...
0
votes
0answers
154 views

Ubuntu 12.04 Preseed LDAP Config

I'm trying to deploy Ubuntu 12.04 via xCAT, everything works except the automatic configuration of LDAP, the preseed file is read but the file /etc/nsswitch is not written properly. My Preseed File: ...
0
votes
1answer
151 views

Setting the default network interface

My /etc/network/interfaces looks like this: auto lo iface lo inet loopback auto eth1 iface eth1 inet static address 10.0.0.99 netmask 255.255.255.0 gateway 10.0.0.1 auto eth0 ...
0
votes
1answer
731 views

nginx on Ubuntu: Permission denied

I am new to system administration. After installing nginx via puppet on Ubuntu I get the following output: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: ...
1
vote
0answers
182 views

Why won't my Ubuntu 12.04 Preseed file work with LVM

Here is my preseed file: d-i partman-auto/disk string /dev/sda d-i partman-auto/method string lvm d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/device_remove_lvm_span boolean true ...
0
votes
1answer
29 views

Migrating Ubuntu Server to new system

An issue came up with our current Ubuntu box that requires it to be moved to a new box. Currently, there is over 4TB of data stored in the system, so installing a fresh install, migrating data and ...
1
vote
2answers
45 views

How to prevent package from being updated from other repo?

I have created a repository, where I will put own created packages and packages I don't want from other sources. E.g. # apt-cache policy facter facter: Installed: 1.7.2-1puppetlabs1 Candidate: ...
6
votes
2answers
384 views

How to host a deb/apt repo on CentOS?

I would like to make a mirror of just the puppet client and its dependencies for Ubuntu Precise, but hosted on my CentOS 6 host. If I do cd /var/ftp wget -A deb -r -np -nH --cut-dirs=1 ...
5
votes
1answer
350 views

Debian/Ubuntu set preseed mirror variable via early/run command

I need to know how can I add this to preseeding via d-i early/command or d-i preseed/run to set my mirror inside preseed.cfg from /proc/cmdline argument. If I do: d-i preseed/run string ...
1
vote
4answers
809 views

LSI 3Ware tw_cli and tdm2 segfault with Debian Linux kernels after 3.8

I have notified LSI support, twice, but so far they are unable to reproduce the problem. I wanted to post here to get some unbiased expert thoughts about it and see if anyone else has seen a similar ...
0
votes
2answers
953 views

OpenVZ MySQL InnoDB won't start

I have a OpenVZ Server with 4GB RAM and have tried to install MySQL on several distros (Ubuntu 12.04 64Bit, Ubuntu 12.10 64Bit, Debian 7 64Bit) and I always get the same errors: 130718 6:57:27 ...
0
votes
1answer
93 views

How can I use a temporary file descriptor with ecryptfs?

I'd like to be able to run a script, have it prompt me for my password, and then mount an ecryptfs directory. I do not want the password to sit around on the file system, or show up in logs, ps, etc. ...
1
vote
1answer
97 views

OpenLDAP Chain not found

When trying to add a Chain overlay to OpenLDAP 2.4.31 on Ubuntu or Debian, I get a 'overlay "chain" not found' in the syslog. Furthermore, the schemas required to configure the Chain overlay don't ...
-1
votes
1answer
64 views

Failed Upgrade tool [closed]

I have an old server which runs on ubuntu 8.04 (Hardy). I need to upgrade it to the latest release. When I issue the do-release-upgrade command, I am getting the following error. I am clueless on what ...
1
vote
1answer
51 views

List of automatically installed updates on Ubuntu?

I need to check what has been installed on remote Ubuntu server by package security channels. How could I do that in bash? For manually installed I could check: /var/log/dpkg.log ...
1
vote
2answers
89 views

How can I tell what version of Java my programs are running on Debian/Ubuntu?

Want to have something that lists java VMs running on the system and which programs these are hosting. In particular which tomcat is using which java version. IS there any command line tool that I can ...
7
votes
2answers
1k views

Why does Debian clean php sessions with a cron job instead of using php's built-in garbage collector?

Debian and derivatives (Ubuntu) don't use the php session garbage collector session.gc_probability = 0 instead they use a cron /etc/cron.d/php5 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] ...
0
votes
1answer
178 views

Disable ptrace on Debian

Is there a way to disable ptrace on debian. I would like to see if there is something similar to what is done here for ubuntu: http://software.intel.com/en-us/forums/topic/375990
0
votes
1answer
77 views

Difference between unattended-upgrade & apt-get dist-upgrade

Assume I need to write a cron job to automate the installation of security update daily, which command I should use for better reliability?
0
votes
1answer
259 views

Using iptables to forward traffic to a single IP address

The setup: Debian; acting as the network's router using iptables, fail2ban Because of external requirements, both networks are 192.168.1.x. eth0: 192.168.1.1 eth1: 192.168.1.2 Ubuntu (192.168.1.3) ...
0
votes
1answer
326 views

tunneling layer 2 ssh

Ok, I'm trying to break my previous question down into parts: This is my reference: https://help.ubuntu.com/community/SSH_VPN tunneling ubuntu -> debian 1. ssh -i green.pem root@$HOST echo 1 | ...
10
votes
2answers
334 views

SSH session never closes when executing “apt-get install”

Problem When running apt-get install in an SSH session, the session never closes. Example: ssh user@target "sudo apt-get -y install my_package" The my_package does get installed properly, but the ...
1
vote
2answers
89 views

Search for installed unavailable packages (backports and 3rd party)

I would like to remove any packages that I installed from third party repositories. I recently installed some backports from PPA repositories, and I suspect one of them broke my Ubuntu 12.04 server ...
0
votes
1answer
576 views

Apache2 configtest segmentation fault

For whatever reason I managed to mess up Apache quite bad (Ubuntu 12.04). The output below complains about configtest failing and a segmentation fault. However, I can't find anything in ...
0
votes
2answers
191 views

How to enable sysstat from shell script in Ubuntu? [duplicate]

In Ubuntu, I can install sysstat using apt, e.g. apt-get install sysstat And then enable it via interactive prompt dpkg-reconfigure sysstat But I want automate the process using fully automated ...
0
votes
1answer
759 views

How to configure Jenkins deployment path on Ubuntu?

With default Ubuntu/Debian installation of Jenkins, is there an easy way to change the deployment path? I'd like Jenkins to be available somewhere like http://localhost:8090/foobar I'm looking for a ...
2
votes
1answer
444 views

Backporting tomcat7 for Debian squeeze

I am creating .deb installation packages for our software, which has a dependency on tomcat7. Unfortunately, this package is not present in Debian squeeze, which ships only with the package tomcat6. ...
1
vote
1answer
453 views

How to get /proc/[pid]/cmdline to contain command arguments?

I am running into an issue where some of my Ubuntu/Debian servers do not show the arguments passed to rake in either top or ps. I have tracked this problem down to a variation in output given by ...
2
votes
1answer
314 views

run nfs server version 3 only

I'm a RHEL guy, and new to debian/ubuntu, I have just setup an nfs server, and when I mount a share on a client, it uses version 4, how can I get the server to run with nfs version 3 only? PS: our ...
0
votes
1answer
344 views

Group permission inheritance and umask

Edit: in my case virtual_use_local_privs=TRUE did the trick. i'm trying to force newly created files and directories inside foo/ directory to be owned by nginx user and to set the right permissions ...