Are you tired of typing the password all the time when connecting to a ssh-session in unix? I am.
The solution is very simple, the only thing you have to do is to add your public RSA-key to the remote user's keychain.
First you have to generate the public RSA-key of your local user:
ssh-keygen -t rsa
Second you add the key to the remote user's keychain:
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
If you can't ssh-copy-id use cat to add the key:
cat ~/.ssh/*.pub | ssh user@server 'umask 077; cat >>.ssh/authorized_keys'
Now you will be able to engage the connection without typing the password first. If you want this comfort for several users, you have to repeat this procedure for each userpair.
Normally you should be able to manage the dockstar over the ethernet, but what if you can't establish no connection because you did something wrong? There is a serial connector inside the device we can use for debugging and other things.
1. Required: USB to TTL bridge
Some weeks ago I ordered an USB to TTL UART bridge on eBay, just to have it if I will need it. You also can buy it on amazon: USB2.0 an TTL UART 6pin Konverter seriell CP2102 ID9372 PAUB022
Here are some technical specifications of the one I bought:
All handshaking and modem interface signals Data formats supported: 8-bit; 1 Stop bit Parity: Odd, Even, No Parity Baud rates: 300 bps to 921.6 kbps 512 byte receive buffer; 512 byte transmit buffer Hardware X-On/X-Off handshaking Event character support 6 Pins: 3.3V, RST, TxD, RxD, GND, 5V
When I was trying to find proper kernel configs for the dockstar, I had to try several builds. Everytime my kernel didn't boot I had to revert the arcNumber and install a working kernel again.
There are two ways to test a kernel:
- Grab another USB stick, make a backup and try the kernel on this backup. If you always do a new backup before testing another build, it will take a long time.
- Test the kernel on the running system (or a backup-stick) and reinstall another kernel in case yours wont boot. In difference to 1. you do this in a chrooted jail.
I want to explain how you do the chroot thing with some lines.
During the last days I was playing around with several kernel-configs and different release versions. Today a new version came out and I built it with the last config I used. In my build I additionally enabled XFS filesystem support and USB sound. If you install my kernel, you don't have to change anything except the device ID concerning the LED if you come from gorgone's heavykernel.
If anybody knows how to build a kernel with gspca drivers for webcam support I would appreciate a short mail!
Recently I wanted to copy some files between two servers. Yes I haven't done this before in a terminal session. Usually I utilize GUI powered tools to do the job via SFTP.
I decided to do this with SCP because it's way faster than SFTP, http://www.kontrolit.net/glossary/ sais:
SFTP, Secure File Transfer Program similar to ftp, but performs all operations over an encrypted SSH transport, thus gaining the features of public key encryption and compression.
SCP, Secure Copy is a program to copy files between hosts on a network. It too uses SSH for authentication and data transfer, thus gaining the features of strong authentication and secure encrypted communications.
Some googleing brought me to this site: http://www.examplenow.com/scp/ Instead of bookmarking it I share the information with you.
These are some methods how you can copy files or whole directories:
Some days ago I wanted to test the performance of a partition with XFS as its filesystem. But I wasn't able to mount it. After a look into the kernelconfig of gorgone's heavykernel I noticed that he obviously didn't build it with XFS-support.
I do want to make the test and take a look at kernelbuilding things anyway. Well, I don't want to keep it back, so I decided to verbalize the steps I took.
In this guide you will learn how to set up the crosscompile toolchain to let a more powerful CPU do the job. If you prefer doing the whole thing on the dockstar it will take you several hours.
Further more we will go through the build process until we have a deb-file with the built kernel.