developer.shyd.de. studying my hobby

29Apr/111

SSH: Login without Password

(3 votes, average: 3.67 out of 5)
Loading...

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:

Second you add the key to the remote user's keychain:

If you can't ssh-copy-id use cat to add the key:

Show »

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.

Tagged as: , | 4,752 views 1 Comment
15Apr/115

Dockstar: Serial Connection

(3 votes, average: 5.00 out of 5)
Loading...

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
Tagged as: , , | 10,481 views Continue reading
18Mar/117

Dockstar: Does not boot with self-compiled Kernel?

(4 votes, average: 5.00 out of 5)
Loading...

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:

  1. 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.
  2. 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.

Tagged as: , , | 6,081 views Continue reading
15Mar/1125

Dockstar: new Kernel 2.6.38 ready to use

(4 votes, average: 5.00 out of 5)
Loading...

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!

Tagged as: | 11,297 views Continue reading
13Mar/110

Secure Copy: file-transfer using SCP

(1 votes, average: 5.00 out of 5)
Loading...

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:

Tagged as: , | 4,920 views Continue reading
11Mar/1115

Dockstar: Crosscompile a newer Kernel, set up Toolchain

(3 votes, average: 5.00 out of 5)
Loading...

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.

Tagged as: , , , | 15,143 views Continue reading
5Mar/1122

Debian as Printserver and Scanserver with HPLIP, CUPS, SANE

(10 votes, average: 4.80 out of 5)
Loading...

It's nice to have a little home-server like the Seagate Dockstar or the Buffalo Linkstation running debian quite smoothly. What do you do if you would like to use your printer and scanner with more than one device?

Yes, you connect it to your server and share it over the network!
Because I had to set this up in two locations for now I decided to write down those steps I took from powering on the printer through printing the first testpage I can scan later on.

This HowTo requires debian squeeze installed on your Dockstar/Linkstation. If you haven't done this yet, please refer to other articles in this blog.

6Feb/1119

Dockstar: HowTo setup OpenVPN on Debian

(8 votes, average: 5.00 out of 5)
Loading...

Well, if you want to have a secure connection to your dockstar or even your home net, this post describes all steps you have to take to get this done. In my setup I have a dd-wrt router connected to the internet and forwarding all needed ports to the dockstar. You probably don't use a firewall on the debian machine, but you will have to, because we need package forwarding to reach the home net through the VPN tunnel. I assume you don't use your dockstar as the default gateway for your LAN, so you will need an additional route in the router:

Let me explain the path of the packages of a ping from a remote machine to a host in the LAN. For the different subnets refer to the exhibit (VPN: 10.8.0.0/24; LAN: 192.168.0.0/24).

31Jan/1162

Debian as Download-Station: pyLoad (v0.4.7+)

(9 votes, average: 4.78 out of 5)
Loading...

You want to turn your little home-server into a download agent you can control through a web-interface or a jabber account on your mobile phone? Then follow these few steps to get this done quickly.
What is pyLoad? Let's read the introduction from the developers' website:

pyLoad is a fast, lightweight and full featured download manager for many One-Click-Hoster, container formats like DLC, video sites or just plain http/ftp links. It aims for low hardware requirements and platform independence to be runnable on all kind of systems (desktop pc, netbook, NAS, router).
Despite its strict restriction it is packed full of features just like webinterface, captcha recognition, unrar and much more. [http://pyload.org]

Tagged as: , , , , | 41,538 views Continue reading
19Jan/1113

Dockstar-NAS: Automount, hd-idle, Samba, FTP

(4 votes, average: 5.00 out of 5)
Loading...

Having debian installed on the dockstar is quite nice but how about access to the data in there? In this article I will explain how you easily set up a data-storage with autofs, hd-idle, samba and proftpd.
I assume you have debian squeeze running on a usb stick and your data you want to share on your network is stored on an external hard-drive.