Here is how to remove the message: tar: Removing leading `/’ from member names when tarring files.
This is your normal command which will produce a tar file but give you the message: tar: Removing leading `/’ from member names
# create a tar file of the directory /etc called foo.tar
tar -tvf etc.tar /etc # TAR FILE
# create a tar.gz file of the directory /etc called foo.tar.gz
tar -vczf etc.tar.gz /etc # TAR GZIP FILE
# create a tar.bz2 file of the directory /etc called foo.tar.bz2
tar -cjf etc.tar.bz2 /etc # TAR BZIP FILE
This is the option in tar you use to prevent the message
# remove the message like with the -C option
tar -tvf etc.tar -C / etc # TAR FILE WITHOUT MESSAGE
tar -vczf etc.tar.gz -C / etc # TAR GZIP FILE WITHOUT MESSAGE
tar -cjf etc.tar.bz2 -C / etc # TAR BZIP FILE WITHOUT MESSAGE
- C: When this option is specified, `tar’ will change its current directory to DIR before performing any operations. When this option used during archive creation, it is order sensitive.
If you would like to list the contents of the newly created tar.bz2 file run this command:
tar -tvf etc.tar # LIST THE CONTENTS OF A TAR FILE
tar -ztvf etc.tar.gz # LIST THE CONTENTS OF A GZIP FILE
tar -jtvf etc.tar.bz2 # LIST THE CONTENTS OF A BZIP FILE
- t: List the contents of an archive
- v: Verbosely list files processed (display detailed information)
- z: Filter the archive through gzip so that we can open compressed (decompress) .gz tar file
- j: Filter archive through bzip2, use to decompress .bz2 files.
- f filename: Use archive file called filename
For additional information on tar see the man pages.
How to transfer files using scp without a password (secure copy):
1) On the Source Host run the following command as the user which will be scping the files to the remote host:
*** leave the paraphrase blank
ssh-keygen -t rsa
2) Once the key has been generated copy the id_rsa.pub to the remote-host machine you are scping to:
scp id_rsa.pub <user-name>@<remote-host>:/<remote-directory>
scp id_rsa.pub [email protected]_host:/home/joe/
3) Now on the remote-host you need to add the ida_rsa.pub to the authorized_keys file (located /home/<user>/.ssh/). if the
directory does not exist create it (this assumes you are in the users home directory, an “ls -la” will show all files and directories in the current directory – including the hidden ones, which the .ssh is)
mkdir .ssh (IF NEEDED – must be in the /home/<user-name>)
cat ida_rsa.pub >> .ssh/authorized_keys
chmod –recursive 700 .ssh/
4) Try copying a file to the remote-host, you should not need to enter the password. MAKE SURE NO ONE GETS A HOLD OF THE KEY you made.
scp <some-file.txt> <user>@<remote-host>:/<some_directory>
So I just built my very first media center PC and man was it a pain! Most computer builds are simple but between heat and noise issues I found this build very frustrating.
First I had to find a case, not just any case but a case that would match or look good with my Harmon Kardon receiver, HD PVR, TV, etc. I also wanted to the case to lay flat rather then stand like a regular desktop, after all I wasn’t building a desktop! So shopping at my regular destination(s) Memory Express, Future Shop and Mushkin’s online website the fun began.
The parts I purchased are as follows:
- Case = Silverstone LC-13E
- Power Supply= Rocket Fish 700 watt (I work at Future Shop so the price was right!)
- Processor = Intel Quad Core 9300
- Memory/RAM = 8GB of Mushkin DDR3 10066
- Hard Drive(s) = Two Seagate 320GB (configured in RAID 0)
- Video Card = Passive Sapphire Radeon HD 4670 512 GB GDDR3
- LG Super Multi Combo Blue-ray/HD DVD-ROM
- ATI 550 Pro TV Tuner
- Zalman CNPS7500-CULED (CPU cooler)
- Microsoft Multimedia 7000 Bluetooth Keyboard and Mouse
- Windows Vista Home Premium 64-bit (upgraded to SP2)
- Windows 7 Ultimate 64 bit (latest updates applied)
Now originally I started with the stock Intel heatsink and a Sapphire Radeon HD 4850 1GB GDDR3… but I soon found out that the Intel stock heatsink wasn’t going to cut it (big surprise) and that the 4850 produced to much heat for this case. To be perfectly honest this Media Center has some overkill parts in it! Parts like the Quad Core, 8 GB of memory/RAM and a 4850… So based on the initial build and results I swapped out the 4850 for the 4670, after all I am not going to be playing video games on my big screen as I prefer my desktop. I may eventually want to upgrade but I doubt it, I have to keep reminding myself that the media center is for movies, music and maybe some surfing.
Performance wise I am very happy, between Intel’s raw processing power and ATI’s graphic processing power this puppy flys. Thanks to the built in HDMI/7.1 on the HD 4670 both video and audio is amazing! I configured my hard drives in RAID 0 for ultimate read performance, after all I am streaming media from my server which is on a gigabyte LAN (home network) which means I don’t have to worry about data redundancy. The 320 GB hard drives configured in RAID 0 might be overkill for a media center but the speed and capacity is very appealing. As for the memory/ram well I figure that as everything starts going 64-bit it makes sense to buy all the same memory at the same speed.
Overall I am happy with the end results. I have a media center that looks and sounds wonderful on my Samsung 40″ 5 Series LCD and Klipcsh/Harmon Kardon 7.1 Surround Sound! If I were to build a media center again I would probably recommend doing more research on cases as I find the Silverston LC-13E cramped and doesn’t cool as well as I would like. I might be expecting to much in the way of cooling but the cooler you can keep the case the longer your hardware will last!