jeltsch's blog

Execution of dd command via ssh and output redirection to local file

I wanted to copy a whole encrypted partition over the network into a file. You can execute many commands via ssh, but occasionally there are problems to direct the output where you want it. E.g. the "more" command doesn't output to standard out when used via ssh. You need to use "less" to get the file content displayed locally (at least using a RedHat 8 remote machine). With dd you cannot use the "dd if=input of=output" syntax but you need the "dd < input > output" syntax.

smbclient (mount, Windows XP, SFS, file sharing)

Since I always use some GUIs, I don't really remember anymore how to connect to a Windows machine via the command line. smbclient -L windowshost shows you the shares that are available. Often, you you cannot browse them without a login/password for that windows machine, therefore you need to type smbclient -L windowshost -U username And occasionally the netbios name doesn't work either and you need to replace it by the IP address.

Configuring and starting Apache2 via Yast2

Yast is of of course as unfriendly when it comes to error messages as any other Linux program. I tried to start up Apache2 using Yast2 and there were only 3 fields in the configuration wizard to fill in: server name, administrator e-mail and listening port. I filled in as server name "Suse Linux". When Yast2 wanted to do the configuration, the error message was: Error: cannot adjust apache2 service Cool.

Pages