LanceBaynes
  • Member for 10 years, 11 months
  • Last seen more than 9 years ago
1 answers
1 votes
952 views
What is the purpose of passphrase when I generate public and private keys using ssh-keygen?
Accepted answer
2 votes

To encrypt your keys. So if an attacker get's your private/public key, it can't do anything with them.

View answer
1 answers
0 votes
142 views
How can I set a pattern that will output a filename equal to the original filename in SoundConverter?
1 votes

I selected this option for file pattern: "Same as input, but with an additional suffix." That gave me filenames like: something.mp3.ogg Then I just ran find . -type f -name "*.mp3.ogg" -exec rename ....

View answer
2 answers
0 votes
2k views
How to escape “@” in the username when logging in through FTPES with curl?
Accepted answer
1 votes

i sniffed it with wireshark: curl --ftp-ssl -T "FILE.TXT" -k -u "MYUSER@MYDOMAIN.COM:MYPASSWORD" "ftp://MYDOMAIN.COM" and this one uses ftps! :P it works perfectly! solved :) thank you!

View answer
5 answers
6 votes
32k views
Practical Tcpdump examples?
0 votes

If you want to monitor clients DNS requests on an OpenWRT router: tcpdump -n -i br-lan dst port 53 -n don't do reverse lookup on IPs, don't convert port numbers to text descriptions, don't convert ...

View answer
2 answers
0 votes
376 views
sed e.g.: "1" to "01" - how?
0 votes

$ sed 's/\(\<[0-9]\>\)/0\1/' ./infile 201103 01 /mnt/hdd/PUB/SOMETHING 201102 07 /mnt/hdd/PUB/SOMETH ING 201103 11 /mnt/hdd/PUB/SO METHING 201104 03 /mnt/hdd/PUB/SOMET HING 201106 01 /mnt/hdd/...

View answer
4 answers
0 votes
1k views
Run application with other user
0 votes

I found this solution myself: xhost local:transmission-user sudo -u transmission-user -- /usr/bin/transmission-gtk

View answer
2 answers
-2 votes
2k views
How to generate random numbers under OpenWRT?
Accepted answer
-1 votes

Here's an (unreliable) way to produce an integer between 0 and 9 (inclusive): sleep $(head -30 /dev/urandom | tr -dc "0123456789" | head -c1) This reads 30 lines from /dev/urandom, uses tr to ...

View answer