Entries Tagged as ''

SCP: The Other Way to Transfer File

I admit that SCP (Secure Copy) is not a new tool coming in recently. However, I would like to share this tool for those who have never tried this before. I will introduce for two different platform.

For UNIX/Mac OS/Linux users, Most distributions have already had SCP package. You can transfer file or directory from one box to the other box. The nice thing, which is different with FTP, is that you can transfer files or directories between two boxes, neither of them is your local machine. The following is the example.

scp -r userA@domainA:./DirectoryA userB@domainB:./DirectoryB

For Windows users, you have to download the third party software. Here, I recommend WinSCP. You can download from here. Although it is not as flexible as SCP CLI, it still facilitate file transfer between your Windows local machine to other computer box.

Install Fedora 7 by NFS

If you don’t wanna burn ISO file to DVD, NFS installation is one choice. I assumed that you will start from scratch, so you need:

  • One USB key
  • One Linux server
  • Network connect between your server and your installation computer box

1. Mount ISO File

mount -t iso9660 -o loop /tmp/F-7-i386-DVD.iso /mnt/FC7

2. Setup NFS Service

2.1 Start NFS Service

service nfs start OR

/etc/init.d/nfsd start

2.2 Revise exports File

vi /etc/exports
/mnt/FC7 <Allowed Domain or IP>(ro,sync,all_squash)

2.3 Revise iptable

Normally, NFS client cannot access NFS server if firewall was enabled. All you need to do, is to add TCP port to iptable. The TCP ports for NFS and related daemon are as following. We need to add 2049:tcp 111:tcp 829:tcp and 816:tcp.

[root@localhost ~]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 933 status
100024 1 tcp 936 status
100021 1 tcp 53905 nlockmgr
100021 3 tcp 53905 nlockmgr
100021 4 tcp 53905 nlockmgr
100021 1 udp 32811 nlockmgr
100021 3 udp 32811 nlockmgr
100021 4 udp 32811 nlockmgr
100011 1 udp 813 rquotad
100011 2 udp 813 rquotad
100011 1 tcp 816 rquotad
100011 2 tcp 816 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 826 mountd
100005 1 tcp 829 mountd
100005 2 udp 826 mountd
100005 2 tcp 829 mountd
100005 3 udp 826 mountd
100005 3 tcp 829 mountd

2.4 Restart NFS Service

/etc/init.d/nsfd restart

3. Make a Boot USB

3.1 Find Bootable Image

/images/diskboot.img

3.2 Burn the Image

You need a tool “dd”, which was pre-installed on most linux distribution . So, put you USB-Flash on you linux PC, wait a while , when you see the LED blink, then use :

dd if=diskboot.img of=/dev/sda

4. Enjoy Installation

Now, you can enjoy installation. First, changing computer BIOS configuration to boot from USB disk. Then, plug in USB disk and reboot the computer. Following the instruction prompted in the screen and press several times “OK” button, you will see option of installation method. Select NFS installation and input NFS server domain name or IP address as well as mounted ISO file directory. After almost one hour, (it depends on your computer performance and network band witch), you can enjoy brand new Fedora 7.