Tag Info

New answers tagged

6

1) Download and install Samba: apt-get install samba samba-common 2) Backup samba.conf: cp /etc/samba/smb.conf /etc/samba/smb.conf.bak 3) Edit samba.conf: nano /etc/samba/smb.conf Replace all with and edit it to your wishes: [global] workgroup = arbeitsgruppe server string = %h server (Samba %v) log file = ...


4

While there is not any utilities that come with git that lets you do what you want, it is rather easy to write a python script that parses a git object and then outputs the author and commit message. Here is a sample one that expects a git commit object on stdin and then prints the author followed by the commit message: from parse import parse import sys, ...


1

How about using git log: git log -1 Example: $ git log -1 commit 4a3dfcc66ca76a19052a7c0d44d5e6c315d79e07 Author: LE Manh Cuong <example@example.com> Date: Fri Apr 17 01:54:10 2015 +0700 Make yanking work in OSX.


0

I tried all the solutions and this was the best: ssh host "sleep 99 < <(cat; kill -INT 0)" <&1 http://stackoverflow.com/questions/3235180/starting-a-process-over-ssh-using-bash-and-then-killing-it-on-sigint/25882610#25882610


0

Adding to John's answer, the problem ended up being that I had configured my ddclient incorrectly. Changing use=if, if=eth0 to use=web in ddclient.conf fixed the problem for me.


3

Could you just run your commands in a screen or tmux session in the VM? That would allow multiple steps to connect/send commands to the same session


0

----- command.sh #! /bin/sh trap 'trap - EXIT; kill 0; exit' EXIT (sleep 1000;echo f) & read ans ----- on local terminal sleep 864000 | ssh -T server command.sh > foo


1

Your ddclient is getting an invalid address for your home machine(s). You have to configure your ddclient to get your external home address, and you will very likely have to configure port forwarding on your cable modem or other external-facing device to get this to work.


0

If you are manually setting DISPLAY, you probably need to issue xhost + on your local machine first. (I know, everyone will flame on about poor security etc, you could refine it a bit, but for testing, this is the most expeditious way to go). That said, ssh -X should "just work"


0

Alternative approach, but the one you tried is also right and should work: cat /Users/path/to/file/backup.sql | mysql -h hostname -u user -pPassword -D databasename > update.log Just in case, do you have mysql-client installed on your local machine?


-1

You have to run that command in the machine where the file exists. Not on the MySQL Server. Alternatively copy it to the MySQL server and run.


1

After some research, I ended up with this. I also applied it to my own server: sudo apt-get install ntp sudo dpkg-reconfigure ntp ntpq -p If the last command shows a valid list of servers, you are good to go. The command will run a quite complex set of algorithms which will iterate your clock drift, among other things, and compensate for them. You will ...



Top 50 recent answers are included