หน้าเว็บ

แสดงบทความที่มีป้ายกำกับ ubuntu แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ ubuntu แสดงบทความทั้งหมด

วันอังคารที่ 3 พฤศจิกายน พ.ศ. 2552

How to install rdesktop on Ubuntu

How to install rdesktop on Ubuntu



Code:
sudo apt-get install rdesktop
should take care of it. You way also want to install tsclient for a graphical frontend for rdesktop.
Code:
sudo apt-get install tsclient
You can also use Synaptic Package Manager to do this. Click on System --> Administration --> and choose Synaptic Package Manager.

Thanks : linuxquestions.org

วันจันทร์ที่ 2 พฤศจิกายน พ.ศ. 2552

How to automount all Harddisk on ubuntu

*First mount all the drives manually.*


then,open the "* Run Application Window *",for this press " *Alt+F2* " to open it.
then write there " *gksu nautilus* ", a window will be appeared and press
the "*up*" button once.

open the file "*mtab* " from " *etc* " folder
here you can see some text like this ,

/dev/sda8 /media/PHOTO vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0
/dev/sda5 /media/SONGS vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0

copy those texts and paste it *at the end *of a file named "*fstab*", you
can find the file into the " *etc* " folder.

Thanks : ubuntu.com

How to format a new hard disk on ubuntu

How to format a new hard disk on ubuntu

Let's get going!

Removing and creating a partition
Having decided your drive's name (let's call it sda) we must now remove the default partition that the manafacturer put there:
Code:
sudo fdisk /dev/sda
This will start fdisk. We want to remove the partion(s), there should only be one.
Press d (for delete).
It might ask you for the partition number, press 1 and enter. If there are more then delete them too.

Now to make a new partition.
Press n (for new), then p (for primary), then 1 and then simply press enter for the next two questions.
This will make a new partition that uses the entire disk. If you want more complex partitioning then read the fdisk manual (man fdisk) or use parted or some other app.
Here's what we did with n, the values will differ from yours:
Code:
Command (m for help): n                                                    
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (197-621, default 197):
Using default value 197
Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +128M
Now to write the new partion and exit, press w and enter.
You should be ready to make a filesystem now.

Making a filesystem : "Formatting"
You need to put a system in-place, on the disk, such that it can handle files. This is called (unsurprisingly) a filesystem.
The one we are going to use is called "ext3". On Gnu/Linux we are spoiled for choice and there are loads of filesystems you can use, go do some research if you want to.
So, let's make the filesystem:
Code:
sudo mkfs.ext3 /dev/sda1
* Note the 1 at the end, because we are making the filesystem in that partition (thanks Mike)

Now it will go off and do strange stuff, simply wait for it to finish.

Using the new file system
Well, at this point you should be able to right-click on the icon (on your Desktop) and choose "mount" (I assume that's the verb it will present to you). After that you should be able to open a window and use the drive*
* all this assumes it's an external USB drive.
If you cannot then you will need to mount it yourself, try:
Code:
sudo mkdir /media/sda1
sudo mount /dev/sda1 /media/sda1
Note: We are actually mounting the first partition on the drive, hence the 1 at the end: sda1
And the mounted directory can be anywhere you like, but its common location is /media.


Or Use GUI

Install
Code:
sudo apt-get install gparted
sudo gparted
Note: Open from System => Administration => Partition Editor

And Mount your Partition with
Code:
sudo mkdir /media/sda1
sudo mount /dev/sda1 /media/sda1
Note: /dev/sda1 is your new partition

Thanks : ubuntuforums.org || answers.yahoo.com

วันพุธที่ 28 ตุลาคม พ.ศ. 2552

Installing PHP5 and Apache on Ubuntu

Installing PHP5 and Apache on Ubuntu

Easy way to get PHP and Apache for running on Ubuntu.


From a command shell, you will run the following commands:

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart


Note that if apache is already installed you can omit the first line. Your web files will now be found in /var/www/

Thanks : howtogeek.com


วันอังคารที่ 27 ตุลาคม พ.ศ. 2552

How to Install RPM Package on Ubuntu

Install an RPM Package on Ubuntu Linux

Installing software on Ubuntu usually entails using Synaptic or by using an apt-get command from the terminal. Unfortunately, there are still a number of packages out there that are only distributed in RPM format.

There’s a utility called Alien that converts packages from one format to the other. This doesn’t always mean that an rpm will work on your system, though. You will need to install some prerequisite software packages in order to install alien, however. These packages include gcc and make.

"Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats. If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.

Despite the large version number, alien is still (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations.

Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions cannot be used interchangably. In general, if you can’t uninstall the package without breaking your system, don’t try to replace it with an alien version."



Run this command to install alien and other necessary packages:

sudo apt-get install alien dpkg-dev debhelper build-essential

To convert a package from rpm to debian format, use this command syntax. The sudo may not be necessary, but we’ll include it just in case.

sudo alien packagename.rpm

To install the package, you’ll use the dpkg utility, which is the internal package management tool behind debian and Ubuntu.

sudo dpkg -i packagename.deb

The package should now be installed, providing it’s compatible with your system.


Thanks : howtogeek.com || embraceubuntu.com