Tag Archives: terminal

Splitting in Linux and Combining in Windows

i don’t know if you do this on a daily, monthly, yearly, or never basis, but i do some times.  what is it that i do?!

whenever i want to email or upload gigs of information over the net usually takes for ever.  the file might be upload it incorrectly or the file won’t go through because is too big.  well, there are applications out there that you can use in order to be able to split files.  for example, if you are compressing an application using WinRar, it will automatically create *.rar-xxx which it will have your files separated depending on the size that you specified.  well, i believe there is a easier way to be able to perform this.

OK, now lets say that you are using Linux and you would like to split a 1GB file into 100MB files.  the way to do this is using the split command… and it will go like this:

split --bytes=100mb file1 file_

where you will replace file1 with the actual name of the file (e.g. MyFamilyDVD.iso) and file_ will be how the files will be renamed (e.g. MyFamilyDVD.iso_)

now, lets say that you upload these files to a server and your friend download them.  your friend will need the following command in order to be able to combine the files:

cat file_* > file1

where file_* are all the files that were created (e.g. MyFamilyDVD.iso_*) and file1 is the actual name of the file to be created (e.g. MyFamilyDVD.iso).

so, lets say that your buddy doesn’t have Linux and they have Windows instead.  here is the command that they will need in order to combine all of those files.

copy /B file_1+file_2+file_3 file1

where file_1+file_2+file_3 (e.g. MyFamilyDVD.iso_*)will be all the files created and file1 will be the actual name of the file to be created. the bad thing in windows is that you won’t be able to use the asterisk and you will need to type file per file.

any ways i hope this helps!!!

Upgrading Fedora 8 to Fedora 9

Last night I just got finish upgrading my Fedora box from Fedora 8 to Fedora 9. It took me about 1 hour the whole process of downloading the packages and installing them. I did it though the terminal because I don’t have a DVD ROM on that machine and I though that was the best way. I mean I could just format the whole drive but I would need to setup my configurations again and I didn’t wanted to do that. So this tutorial will illustrate how to upgrade your Fedora box from 8 to 9 using the terminal.

Steps:

  1. Go to the “Terminal
  2. Type “su” to become a super user
  3. Now do a “yum update” to install all the packages needed
  4. Now do a “yum clean all” to clean all packages no needed
  5. Now do steps 3 and 4 again. Just to make sure that we have the latest packages
  6. Run the following command on your box “rpm -Uhv http://mirror.liberty.edu/pub/fedora/linux/releases/9/Fedora/i386/os/Packages/fedora-release-9-2.noarch.rpm http://mirror.liberty.edu/pub/fedora/linux/releases/9/Fedora/i386/os/Packages/fedora-release-notes-9.0.0-1.noarch.rpm
  7. Next do a “yum clean all
  8. Now do “yum -y update“. This will actually install all the packages needed in order to have your box upgraded from Fedora 8 to Fedora 9.

I had some problems with with my XAMPP when it was going to load.

root@localhost]# /opt/lampp/lampp start
cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
Starting XAMPP for Linux ...
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
XAMPP for Linux started.

I resolved this error by doing this…

  1. Go to your XAMPP root folder
  2. Type “cp lampp bk-lampp
  3. Type “cat lampp.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > lampp
  4. Type “./lampp start
  5. Then if you get the following error
    ./lampp: line 94: syntax error near unexpected token `fi'
    ./lampp: line 94: `fi'
  6. Type “gedit lampp
  7. Before line 93 insert “echo "XAMPP is working"
  8. Now run “./lampp start

That should take care of that problem and everything should work perfectly.

Upgrading Ubuntu

I am not responsible for any damages, data loss or any other strange computer behaviors.

  1. Ubuntu 7.10 must be installed in your computer
  2. Open your “Terminal”
  3. Type sudo do-release-upgrade –devel-release
  4. Wait until the new system is downloaded and installed
  5. Be patient now… it is almost done
  6. Now is going to ask you if you want to remove the packages that were installed in your computer type y
  7. Now reboot your system
  8. Congratulations, you are finish. Now will have the final version prerelease of Ubuntu 8.04

If you want to install Ubuntu 8.04 through “Update Manager” click on this link for the tutorial.