Tag Info

Hot answers tagged

6

The command after the pipe symbol gzip -c > /sql/mybackup.sql.gz is running on your local machine. You should use /usr/bin/ssh -p 82001 user@remotehost "mysqldump -u db_user -pSomePass mydb | gzip -c > /sql/mybackup.sql.gz" Example: % ssh user@host "echo remote" | echo local local user@host's password: % ssh user@host "echo remote | echo ...


5

Not that odd, you're piping the output of the ssh command within your shell; you should pipe it within the shell on the remote server: #!/bin/sh /usr/bin/ssh -p 82001 user@remotehost "mysqldump -u db_user -pSomePass mydb | gzip -c > /sql/mybackup.sql.gz" Also mind that you're not using bash, but sh. To use bash: #!/bin/bash /usr/bin/ssh -p 82001 ...


3

chmod will change the permissions, while chown will change the owner and group of a file. In this case you're erroneously using chmod where you should be using chown. This is an error in the tutorial you're following, you didn't really do anything wrong but the instructions were mistaken. I suggest you find a book on basic Unix commands so you can learn ...


2

Yes, in theory this is possible, as long as you make sure that neither service is running at the time of the copy/paste, and the new server is the same version as the old one. However, as you are well aware, it is not the recommended way.


2

It's already done (at least for things installed via Softwarecenter etc.). Please check /var/log/dpkg.log or as mention in the comments via /var/log/apt/history.log


2

The question of whether these scripts were excluded on purpose or not is very vague, and may not have a firm answer in fact. There's no mention of it anywhere and I believe the VBox packages are community maintained anyway. I haven't been able to find a true answer, but I know that there is a bug in Debian on this that's been untouched since May 2014 on ...


2

Your stanzas for IP aliases should have minimal data and an auto statement for each. I prefer to use the last octet as the alias number. This is the configuration I would use. auto p2p1:116 iface p2p1:116 inet static address xxx.xxx.xxx.116 netmask 255.255.255.0 auto p2p1:117 iface p2p1:117 inet static address xxx.xxx.xxx.117 netmask ...


1

Firstly, you can not work with mounted partitions. Since you are trying to modify the partition on which Ubuntu is installed, you can't do this from your installed OS as you cant unmount the partition. So what you have to do is: Create a live USB/CD and mood into Ubuntu Live In Gparted you start from the live environment, unmount the partition. If the ...


1

According to the official Ubuntu supported architectures MIPS architecture is not supported by Canonical, so you cannot install Ubuntu on the Sun Ray 2 clients. Sorry to be the harbinger of bad news :\


1

My recommendation: Don't use XAMPP for this! It's supposed to be a simple way to get the usual Apache, MySQL, PHP, +Python/Perl stack to work. Leave the walled garden and your pretty much on your own… Also: Even if you do get it to work there is no guarantee that it won't break the next time your system or XAMPP itself. This use-case is not supported by ...


1

Internet domains are given and maintained by so-called registrars, like neustar.us, the owner of the .us top level domain. They can lease domains using their TLD to end customers or outsource that to other companies. E.g. the swiss registrar, SWITCH, owner of .ch and .li, has stopped to give domains to private customers, which is now done by their hosters. ...


1

With putty, you can upload public key manually, assuming you now can access the server with username and password: Generate the key file, with the guide you followed it will be .pub file, the content of the file should shart with "ssh-rsa AAAA ...." Login to the server machine Copy the content of the .pub file into the ~/.ssh/authorized_keys file (for this ...


1

You could try to start your service daemon adding a script in the folder /etc/network/if-up.d/ It will run after the network interfaces are up. Until you solve the problem, if you want to avoid waiting for 60 seconds every time the network interfaces fail, you can edit the sleep lines in the file /etc/init/failsafe.conf


1

So I copied in all of the ssh_host_* files (with and without .pub) and that seemed to do the trick. I made sure the permissions and ownership were as indicated by the following answers: http://superuser.com/a/532079/185661 http://askubuntu.com/a/17103/333103


1

Below is a guide I found on Airvpn forums. It was very helpful in understanding the same problem I had. In the following quick tutorial I will try to give you some guidance to get a simple setup (hopefully) working. This is only for general guidance. Adjust addresses, port numbers and protocols as needed. E.g. If your router is on a different IP-address ...


1

You should not need to use static settings instead. Also, I see that you have already found this answer For a dynamic IP address solution, you should set up a real bridge and use it. Your interfaces file should become: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). ...


1

As I take from our conversation in the comments, you have no software sources configured. This can be due to the following reasons: No sources were configured on installation. (is this even possible?) The software sources were removed accidentally or maliciously deliberately. They were lost due to another reason, which would most likely indicate a system ...


1

You need to figure out what the designation of your USB stick is and then during install you execute this command:mount -t auto /dev/sdxy /cdrom where sdxy is the correct designation of your USB stick. Example: let's say your USB stick is sde1 then the command is mount -t auto /dev/sde1 /cdrom disclaimer: I've never tried this myself and to be honest I ...


1

You can call it from the file /etc/rc.local. You can either add the lines to that file or call the script there. Whatever you choose you have to add it above the line 'exit 0'. BTW: I suggest you add a wait command after the first network restart because it can take a few seconds for the network to start. If the ping comes to early you can get an incorrect ...


1

why should I install version 14? I do not need it but maybe I am overseeing something. If there is no feature or software in the newer version that you need, then the only reason in favour of upgrading will be that it will be supported for longer, so instead of losing support in April 2017, you'll lose support in April 2019. I am mostly using ...



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