Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Wednesday, July 8, 2009

Split & Join Files + ubuntu

Posted in command tagged at 12:19 pm by bearisusanto

We have a file which size is too big to save in USB Flash drive.
To split it to be a small size so its fit to store in USB is easy in linux platform, use “split” command which has been bundled in GNU Coreutils.

1. As example, we have an iso file (ubuntu-8.04-desktop-i386.iso) which size is 699 Mb
root@hardy:/home/bearisusanto/test# ls -alh
total 700M
-rwx—— 1 bearisusanto root 700M 2008-06-02 03:22 ubuntu-8.04-desktop-i386.iso2. Before doing split process, first make MD5 file from ubuntu-8.04-desktop-i386.iso for ensuring that there is not a change for the file when its join again
root@hardy:/home/bearisusanto/test# md5sum ubuntu-8.04-desktop-i386.iso > MD5SUM.txt
root@hardy:/home/bearisusanto/test# cat MD5SUM.txt
8895167a794c5d8dedcc312fc62f1f1f ubuntu-8.04-desktop-i386.iso

3. For splitting ubuntu-8.04-desktop-i386.iso to be a file which the size maximal 400Mb for each file, we type the command
root@hardy:/home/bearisusanto/test# split -d -b 400m ubuntu-8.04-desktop-i386.iso ubuntu-8.04-desktop-i386.iso.part

4. If we check in the directory, there is two 2 which is the result from splitting process
-rwx—— 1 bearisusanto root 700M 2008-06-02 03:22 ubuntu-8.04-desktop-i386.iso
-rw-r–r– 1 root root 400M 2008-10-31 23:13 ubuntu-8.04-desktop-i386.iso.part00
-rw-r–r– 1 root root 300M 2008-10-31 23:13 ubuntu-8.04-desktop-i386.iso.part01

5. To join the two file to be one file as the same with the original file, we use “cat” command but the original have to be deleted first.
root@hardy:/home/bearisusanto/test# rm ubuntu-8.04-desktop-i386.iso
root@hardy:/home/bearisusanto/test# cat ubuntu-8.04-desktop-i386.iso.part00 ubuntu-8.04-desktop-i386.iso.part01 > ubuntu-8.04-desktop-i386.iso

6. For ensuring that there is no difference with the original file, we have to validate with using MD5SUM.txt which have made for the first time.
root@hardy:/home/bearisusanto/test# md5sum -c MD5SUM.txt
ubuntu-8.04-desktop-i386.iso: OK

Sunday, August 3, 2008

Install VMware Server 1.0.5 on Ubuntu 8.04 “Hardy”

UPDATE: This tutorial has been updated for VMware Server 1.0.6. See the updated instructions here, at How To Install VMware Server 1.0.6 on Ubuntu 8.04.

Now that most of the modern world has upgraded to Ubuntu 8.04 I’ve begun to see comments regarding VMware Server no longer working. You may have used my previous article, Installing VMware Server on Ubuntu 7.10, which has worked great. Now that 8.04 “Hardy” is installed things have become a bit more complicated unfortunately.

The problem is that VMware has not updated their latest versions to make use of the latest kernel, GCC or gnome libraries. So, we’ve got two options.

  1. Wait for a new VMware release and hope they patch everything.
  2. Follow the rest of this tutorial and get your hands dirty on the terminal. We can make it work, but we have to hammer it into submission.

So, I’ll assume because you’re still reading that you’ve opted for the hammer into submission option. Let’s get started.

Downloading the Requirements

The first step, of course, is to download VMware Server 1.0.5. You’ll have to agree to the EULA (actually twice. Once before download and once during installation. Remember, VMware is free-as-in-beer but not free-as-in-speech.)

The second step is to install some development tools that we’ll need to get things running. Use the following command or click the package names to install the requirements:

sudo aptitude install build-essential linux-kernel-devel linux-headers-generic xinetd

The third step is to download one more tool to help in the manual build process for VMware Server 1.0.5. What we need is a script which will help in the custom config hosted at Google Code. Download the vmware-any-any-update-116.tgz.

You will also need to generate a serial number to run VMware Server. Visit this link to register and generate the number of codes you might want. Remember to print the codes or write them down because in my experience they are not emailed to you.

OK, at this point we should have all of the requirements, now we can get to work…

Installation and Configuration

Let’s unpack the VMware archive that we downloaded and run the VMware installer. NOTE: After some basic configuration it will ask you to run vmware-config.pl. DO NOT RUN vmware-config.pl, WE ARE NOT READY YET.

tar xf VMware-server-1.0.5
cd vmware-server-distrib
sudo ./vmware-install.pl

When it asks you to run vmware-config.pl you want to answer “no” and this is where the vmware-any-any-116.tgz patch comes in.

cd ..
tar xf vmware-any-any-update-116.tgz
cd vmware-any-any-update116
sudo ./runme.pl

After this runs it will ask you again if you want to run vmware-config.pl. At this point select “yes”.

The Last Step

If you attempt to run vmware at this point you might notice that it spits out some nasty errors and complains at you. There is one more thing we need to setup. (Hey, VMware, if you’re reading this will you please incorporate these fixes into your official download already!)

Basically VMware is missing and complaining about some cairo libraries and gcc. So, the simple fix for this is to point to them by using a symbolic link:

sudo ln -sf /usr/lib/gcc/i486-linux-gnu/4.2.3/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
sudo ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0

At this point you should be able to launch vmware and enjoy some virtualization goodness. Please stay tuned for virtualization updates regarding virtualbox and the new KVM!

sources: I want to throw a big thanks to my buddy Igor for helping figure out these tweaks. Check out his blog, with these and other instructions, here.

UPDATE: based on some of the comments below I’ve added the “-f” to the symbolik link options.

I post tutorials very regularly on this site. You may want to consider subscribing to the RSS feed. Or if you'd prefer these tips sent to your inbox you can use Email Subscriptions.

Copy from http://ubuntu-tutorials.com/2008/05/03/install-vmware-server-105-on-ubuntu-804-hardy/

Tuesday, July 8, 2008

install Nvidia driver with envyng

Upgrade From 7.10 to 8.04 - GUI Failed To Load, Nvidia Support?

# install envyng
sudo apt-get install envyng-core


# show the menu to choose the action
sudo envyng -t

Wednesday, April 9, 2008

ubuntu-customization-guide

http://silverhat.wordpress.com/2007/11/24/ubuntu-customization-guide/

Wednesday, January 30, 2008

Ubuntu + resolution + NVIDIA GeForce 6100

đây là 1 trường hợp mình cũng mới gặp trong UBUNTU 7.10
From ubuntuforums.org

blue777 blue777 is offline
First Cup of Ubuntu

Question: ( this is the same with my problem)

Hello,

I am using Kubuntu 6.06.
Onboard graphics: NVIDIA GeForce 6100
I have used a resolution of 1024x768@85 for a few months without problems using "nvidia" driver. GLX worked great too.
One day when I booted my PC suddenly it only allowed one low resolution and refresh rate.
I tried dozens of xorg.conf configurations, removed and re-installed nvidia drivers using synaptic, using the .run executable from nvidia server and using automatix2. None of them worked.

xrandr will only output one line with 800 x 600 @ 60 resolution.

Right now I am using "nv" driver and it works, although it is only 1024x768@79 when it should be 85Hz.

This is my current xorg.conf that works with "nv" driver, but only at low resolution with "nvidia" driver:


Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "NVIDIA 6100"
Driver "nv"
BusID "PCI:0:5:0"
EndSection

Section "Monitor"
Identifier "Monitor"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-120
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA 6100"
Monitor "Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection
Anyone an idea what else I could try?



Answers:( Source From
mand0's Avatar
mand0 mand0 is offline
A Carafe of Ubuntu
)

Re: NVIDIA GeForce 6100 / Resolution

Quote:
Originally Posted by mand0 View Post
Have you tried running this in terminal?

Code:
sudo dpkg-reconfigure xserver-xorg
I did, the current configuration I am using now was made this way.
I have a full list when I type xrandr and use "nv" driver, but as soon as I switch to "nvidia" driver, there is only one line.

Quote:
Originally Posted by mand0 View Post
Type in terminal:

Code:
glxinfo
It is enabled.
__________________