Tag Info

Hot answers tagged

12

Run the init.d command without parameters, it will tell you which is the usage: ~# /etc/init.d/networking Usage: /etc/init.d/networking {start|stop} Seems that restart is deprecated It is deprecated also in Debian at least since: netbase (4.38) unstable; urgency=low * Create /etc/sysctl.d/bindv6only.conf on upgrades and new installs to set ...


12

There are a couple ways. If you just want to do this temporarily, you can remove the execute bit from the file: $ chmod -x /etc/init.d/varnish Then re-add it when appropriate: $ chmod +x /etc/init.d/varnish The "official" way in Ubuntu (as well as in Debian and other Debian derivatives), though, is to use the update-rc.d command: $ update-rc.d varnish ...


11

apt-get dist-upgrade will not carry out a release update, unless you modify /etc/apt/sources.list. This command updates all installed packages and their dependency changes. If you combine running this command with appropriate changes to the /etc/apt/sources.list file, you can upgrade your version of Ubuntu. do-release-upgrade will carry out a release ...


11

It is just saying that the restart option is going away /etc/init.d/networking stop /etc/init.d/networking start


6

The answer is "Yes, but..." -- You will probably need to tell the software RAID system (mdadm) that the drive has been replaced, following steps similar to these (I wasn't able to find a more ubuntu-specific way of doing this, but you may be able to do it through gnome-disk-utility as well).


6

You don't own your TTY for some reason. Did you use su to change to that user from another user? Normally the TTY is owned by the person who originally logs into that terminal. There's a neat trick to fix this (other than changing the permissions on the /dev/pts/0 file by the user who originally logged in), the bsdutils package has a program called script ...


6

You don't send information to the server that's encrypted with your private key. When you open a secure connection with the server, the software on the server generates a new symmetric encryption key, encrypts it with your public key, and sends it to you. You then decrypt it with your private key and use that symmetric encryption key for the data you send to ...


6

Depending on your Linux distro and release, ultimately sysvinit scripts (those scripts in /etc/init.d/) are generally run from the symlinks which exist in /etc/rc[0-6S].d, by /etc/init.d/rc. Under Ubuntu, you're either using old-style sysvinit, or more recently, upstart. Under the upstart management directory (/etc/events.d/) you'll find a legacy mode that ...


6

You want to install grub. Without it, how are you going to boot Ubuntu after the upgrade? You shouldn't treat a virtual server any differently than a physical one, both need a bootloader to bootstrap the OS at boot.


5

Here are some of the considerations that go into this decision for me (not specific to rails): Neither of these is an LTS release, so both reach their end of life for support 18 months after release. 11.10 was just released this month. 11.04 is already 6 months into its release, so reaches end of life in one year. 11.10 will have newer versions of the ...


5

My guess would be that you have the wrong version of the kernel headers. Unless you need some specific feature that is only available in the version of vmware tools you are trying to build (hint: You probably don't) you can save yourself a lot of pain by removing the hand-installed version and use the open-vm-tools package in ubuntu: sudo aptitude install ...


5

Just compile the source from the php site, you don need special ubuntu source code. I have literally just done it on a Ubuntu 11.04 VPS to check it was that easy. I had to install one extr package "flex" wget http://uk.php.net/distributions/php-4.4.9.tar.gz tar zxf php-4.4.9.tar.gz cd php-4.4.9/ ./configure make sudo make install I didnt make the apache ...


4

I use nohup sh -c "/etc/init.d/networking stop; sleep 2; /etc/init.d/networking start". I add sleep 2 because I think perhaps the issues with restart had something to do with hardware-dependent latencies, but this is unconfirmed and a semi-rule of thumb I'm somewhat ashamed to make public. So you can skip that if you're feeling rational!


4

The answer is "Yes, everything will work out as intended once you partition stuff." You can do it manually with fdisk or parted followed by mdadm, but the package gnome-disk-utility contains (is) the tool palimpsest which can do the whole job with GUI pointy-clicky: Select the RAID Edit Components Add Spare and magic happens. A rebuild will take some ...


4

I had the same problem. Some gitolite configuration step had added another restrictive set of key that was causing problem. The problematic server side .ssh/authorized_keys had ssh-rsa XXY-my-original-keyXXX some_name #gitolite start command="/usr/share/gitolite/gl-auth-command ubuntu",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ...


4

I found the solution to this problem. It turns out that there were messages that I missed in my logfile that were indicating that the startup process of the new child failed. The reason for this failure is that I did not declare unicorn in my Gemfile. For some reason, it seems that it is possible to start unicorn from the command line without unicorn ...


4

In MySQL command line, give command SHOW SLAVE STATUS\G and see the Seconds_behind_ master value. Or if you want to script that somehow, the one-liner below returns how many seconds behind master the slave currently is. mysql -u your_user -e 'SHOW SLAVE STATUS\G' | grep "Seconds_Behi" | awk '{ print $2; }'


4

This sounds like a hardware bug. Today's Linux does not have bugs of severity level "I reloaded Apache, my server crashed and I lost my data" left -- you have some kind of hardware problem. Overheating, bad RAM/CPU/motherboard/RAID controller/HDD/something else. The reason your post has received couple of downvotes is because your post lacks details. We ...


4

rsyslogd-2039: Could no open output pipe '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ] That would be a confirmed bug in your version of Ubuntu, so I'd hope that's what causing the issue, and try to resolve it first. You could upgrade to get around it, or try what's suggested here, which would be editing your /etc/rsyslog.d/50-default.conf file ...


3

I suggest you read some tutorial on how runlevels and init scripts work - http://www.debian-administration.org/article/212/An_introduction_to_run-levels seems quite understandable. In short, the scripts are not called directly, but through symlinks in the /etc/rc.d directories, where n = runlevel. The symlink's names are formatted like this: [K | S] + nn + ...


3

Using your ignore warnings methods made the compilation work but I would actually get failure to connect to the database with user/password errors in use. What worked for me was a combination of building mongo from scratch to supply nginx build with newer libs: http://pastebin.com/tMsL2eC9 But this wasnt actually enough. I also had to specifically check out ...


3

If you want to send and receive email you will need a fixed IP address and appropriate DNS entries. Automated systems such as you appear to be developing tend to be poorly configured resulting is much of their output being classified as SPAM. For outgoing mail you can install a simple relay like esmtp, mstmp, or ssmtp. These are all available as packages ...


3

In Ubuntu the root account is locked by default. To perform administrative tasks in Ubuntu you need to use sudo instead. If you need a root shell, use sudo -i. Of course you can just unlock the root account with sudo passwd root but after that you are not doing thing 'in Ubuntu way'. Is that a good thing or not, you decide.


3

I've just stumbled across the same issue, so I'll leave the reasons it happened to me. We had supervisor installed into the global path (not a virtualenv) using pip, which meant we were running the latest version. However, this is undesirable from a server maintenance point of view, so we switched the older version in Apt. pip uninstall doesn't clear up ...


3

I think this question should be on serverfault.com, but here is your answer: if only X varies you have to specify /24 (CIDR-Notation) or 255.255.255.0 which is the equivalent network mask. (a.b.c.0/24) Why is that: I think the wikipedia article is a good resource to start with, if you wanna know more about this. Wikipedia-CIDR


3

You need a wildcard record for this. Add the following to your intell-sd.com zone: * IN CNAME WWW.intell-sd.com. Also, you should change your WWW CNAME to point to the FQDN of artur: WWW IN CNAME artur.intell-sd.com.


3

There is no A record in the zone for intell-sd.com., which is your query in the dig output above. You could add it in the zone as follows to achieve your goal: @ IN A 192.168.1.3


3

You answer your own question by mentioning changing a cable, zeroing the hard drives and starting from scratch seem to have fixed the problem, but to me it sounds like you could be having a case of the 550559 curse. Therefore, I am wondering if you could comment the issue, whether it has returned or not, and if so how you fixed it the second time. I don't ...


3

The current environment variables have effect as well. Use the command locale to see what is seen by Postgres, and update using export statements, e.g.: export LANGUAGE="en_US.UTF-8"


3

To change the password of any linux user, including the Postgres root: sudo passwd postgres Then: su - postgres psql -U postgres template1 -c alter user postgres with password 'newpassword';



Only top voted, non community-wiki answers of a minimum length are eligible