Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Linux Notes

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

sudo aptitude update && sudo aptitude install xubuntu-desktop

dpkg-reconfigurehddtemp

gconf-editor ➠ Policy editor on ubuntu

Tasksel ➠ app to install grouped apps

/etc/apt/sources.list ➠ Reporitory list on ubuntu

How to Install Microsoft Office on Ubuntu Linux:

I've shown you the steps in installing Adobe Photoshop on Ubuntu Linux. This time, allow me
teach you how to install Microsoft Word on Ubuntu. As some of you may know, I still use MS Word
in favor of OpenOffice.org Writer. So if you are like me or if you have other reasons not to ditch
Microsoft Office completely, perhaps you should follow this guide of installing MS Office on Ubuntu
or on just about any other Linux distributions.

Note: I was using MS Office 2003 inside Ubuntu 10.04 "Lucid Lynx" but this guide may also work
if you are using other MS Office versions or other Ubuntu versions.

1. Install Wine via Software Center, Synaptic Package Manager or via the command line:

$ sudo apt-get install wine

2. Download winetricks:

$ wget http://www.kegel.com/wine/winetricks

3. Now install winetricks and other packages:

sh winetricks dotnet11
sh winetricks gdiplus
sh winetricks vb3run
sh winetricks vb4run
sh winetricks vb5run
sh winetricks vb6run
sh winetricks msxml3
sh winetricks msxml4
sh winetricks msxml6
sh winetricks riched20
sh winetricks riched30
sh winetricks vcrun6
gecko
vcrun2005
ie6

4. Configure Wine by navigating to Applications --> Wine --> Configure Wine, and then set
"Windows Version" to Windows Vista inside the Applications tab.

5. Once installed, one override is necessary. Without it, Powerpoint and Infopath with not start,
and some dialog boxes in other Office apps will not display correctly. Follow the steps below:
Open winecfg by going to Applications > Wine > Configure Wine. Or open a terminal and
type:
winecfg
In the Libraries tab in the area labeled "New override for library" type in riched20.dll and click
on Add.
You will see it appear in the list below. Now select the riched20 in the list that we just added and
click on the Edit button.
Set it to Native (Windows) and click OK.
This will allow Powerpoint and the other applications to run correctly.
Note :Do not install riched20 with winetricks. Office 2007 installs its own version of riched20.

6. Download rpcrt4.dll (.zip) from HERE, and then extract it.

7. From the Wine menu, browse C:\ drive and navigate to windows/system32 directory. Copy the
downloaded rpcrt4.dll inside system32 to overwrite or replace the existing rpcrt4.dll.

8. Put Microsoft Office installer, click on setup, and just follow the normal installation process.

9. After installing MS Office, configure Wine again and set Windows version back to Windows XP.

10. You can now use MS Office inside Ubuntu Linux by navigating to Applications --> Programs
--> Microsoft Office.

Running MS Office Word 2003 inside Ubuntu 10.04 “Lucid Lynx”

Installation of SPE Python IDE for Dummies

Finally an installation of the latest version of SPE Python IDE FOR THE REST OF US!!!
Bring your terminal and type or copy paste the line that follows the #Comment
Type your root password when prompted and enjoy

This is my firt 2 cents, and I hope someone benefits from it.

# Install SVC
sudo apt-get install subversion

# Install SubVersion of SPE


svn checkout svn://svn.berlios.de/python/spe/trunk/_spe

# Install Curl
sudo apt-get install curl

# Install wxWidgets key


curl http://apt.wxwidgets.org/key.asc | sudo apt-key add -

# Add the following lines to your /etc/apt/sources.list file. Replace the "DIST" text with whatever
is appropriate for your system. (gutsy)

# wxWidgets/wxPython repository at apt.wxwidgets.org


deb http://apt.wxwidgets.org/ DIST-wx main
deb-src http://apt.wxwidgets.org/ DIST-wx main

# Update repositories
sudo apt-get update

# Install wxWidgets
sudo apt-get install python-wxgtk2.8 python-wxtools python-wxaddons wx2.8-i18n

# Go to the directory _SPE


cd _spe

# Make SPE.py executable


chmod +x SPE.py

# Launch SPE
python SPE.py

How to Setup Transparent Squid Proxy Server in Ubuntu


Squid is a fully-featured HTTP/1.0 proxy which is almost (but not quite - we’re getting there!) HTTP/1.1
compliant. Squid offers a rich access control, authorization and logging environment to develop web proxy and
content serving applications.
This is a short guide on how to set up a transparent squid proxyserver. Squid is a caching proxy for the
Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching
and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server
accelerator.
Install Squid
Install squid and squid-common

sudo aptitude install squid squid-common

Edit the squid config file.

sudo vi /etc/squid/squid.conf

Set the allowed hosts.

acl internal_network src 192.168.0.0/24 (Where 192.168.0.0/24 is your IP range.)


http_access allow internal_network
Set the correct permissions.
sudo chown -R proxy:proxy /var/log/squid/
sudo chown proxy:proxy /etc/squid/squid.conf
You will need to restart squid for the changes to take affect.
sudo /etc/init.d/squid restart
Now open up your browser and set your proxy to point to your new squid server on port 3128
Authentication
If you wish to use authentication with your proxy you will need to install apache2 utilities
sudo aptitude install squid squid-common apache2-utils
To add your first user you will need to specify -c

sudo htpasswd -c /etc/squid.passwd first_user


Thereafter you add new users with
sudo htpasswd /etc/squid.passwd another_user
Edit the squid config file

sudo vi /etc/squid/squid.conf

Set the the authentication parameters and the acl


auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid.passwd
auth_param basic children 5
auth_param basic realm NFYE Squid proxy-caching web server
auth_param basic credentialsttl 3 hours
auth_param basic casesensitive off
acl users proxy_auth REQUIRED
acl sectionx proxy_auth REQUIRED
http_access allow users
So this is what your squid.conf should look like.

acl all src 0.0.0.0/0.0.0.0


acl internal_network src 192.168.0.0/24
acl users proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl sectionx proxy_auth REQUIRED
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access allow users
http_access allow internal_network
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
Redirect the all HTTP traffic.
If you would like to redirect the all HTTP traffic through the proxy without needing to set up a proxy
manually in all your applications you will need to add some rules

iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-


destination192.168.0.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT
--to-ports 3128

Where eth1,eth0 are the LAN, WAN devices and 192.168.0.1 is the IP address of your LAN device.
If you wish to monitor the performance of your proxy you can look as some log parser’s (sarg, calamaris,
ect.)
Source from here

Webmin Installation and Configuration in Ubuntu Linux


Webmin is a web-based interface for system administration for Unix. Using any browser that supports tables and
forms (and Java for the File Manager module), you can setup user accounts, Apache, DNS, file sharing and so
on.
Webmin consists of a simple web server, and a number of CGI programs which directly update system files
like /etc/inetd.conf and /etc/passwd. The web server and all CGI programs are written in Perl version 5, and use
no non-standard Perl modules.
Installing Webmin in Ubuntu
You can use the above procedure but if you want to install latest version you can download from webmin
site download section
Prerequisites
Perl 5 interpreter and libnet-ssleay-perl
sudo apt-get install perl5 libnet-ssleay-perl
Now you need to download the latest webmin from the above downloadlink
Download ‘webmin-1.310.tar.gz’ (at the time of writing) to some location in your machine ex:- /usr/local/src
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.310.tar.gz
cd /usr/local/src
sudo tar xzvf webmin-1.310.tar.gz
cd webmin-1.310
sudo sh setup.sh
This will start the installation and now it will prompt for several questions answer them as follows
Config file directory [/etc/webmin]:
Leave as default, or change as you wish
Log file directory [/var/webmin]:
Leave as default, or change as you wish
Full path to perl (default /usr/bin/perl):
Leave as default, or change as you wish
Operating system:
Enter ’6′
Version:
Enter ’6′
Web server port (default 10000):
This is where you can start to make webmin more secure then the standard install you get with apt-get,
Synaptic, or RPM. Leave as default or change it to what ever port you want.
Login name (default admin):
It is ‘admin’, so you can leave it as that, or put in any name that you like.
Login password:
By creating the user above and giving it a password, you have now made it so you will not need to log into
webmin with root.
Password again:
enter your password again
If you did not install ‘libnet-ssleay-perl’ you will get the following message:
‘The Perl SSLeay library is not installed. SSL not available.’ You can continue with the install, but it would be
more secure if you install sslrelay.
Use SSL (y/n):y
Choose yes here
Start Webmin at boot time (y/n):y
select here y
At this point it is going to configure things, install things, and create things…
It will then tell you that you can log in to https://hostipaddress:10000 and to accept the certificate.
Webmin User Password Change
If you want to change root password in webmin use this included Perl script:
sudo /usr/share/webmin/changepass.pl /etc/webmin root
If you want to install any standard modules you can download from here
If you want to install third party modules you can download from here

Install Mplayer and Multimedia


Codecs(libdvdcss2,w32codecs,w64codecs) in Ubuntu 8.04
(Hardy Heron)
MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG
1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many
MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s
binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD
subtitles, but supports many text- based subtitle formats too. For video output, nearly every existing interface is
supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video
grabbing from V4L devices.
Install Mplayer in Ubuntu Hardy Heron
You need to add the following lines to /etc/apt/sources.list file or you need to make sure you have enabled
Universe and multiverse repositories in /etc/apt/sources.list file
sudo gedit /etc/apt/sources.list
Make sure you have the following two lines save and exit your file
deb http://archive.ubuntu.com/ubuntu hardy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy universe multiverse
Now you need to run the following command to update the source list :
sudo apt-get update
Install mplayer using the following command
sudo apt-get install mplayer
if you want to open mplayer just type :
gmplayer
or
You can Open from Applications—>Sound&Video—> Mplayer Movie Player
Install libdvdcss2 and w32 video codecs in Ubuntu 8.04 (Hardy Heron)
Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. This
package is not available from the Ubuntu repositories due to licensing and legal restrictions.
For Ubuntu 8.04 (Hardy Heron) Users run the following command
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
Then, add the GPG Key using the following commands
sudo apt-get update
sudo apt-get install medibuntu-keyring
sudo apt-get update
For i386 Users install Codecs using the following command
sudo apt-get install w32codecs libdvdcss2
For amd64 Users install Codecs using the following command
sudo apt-get install w64codecs libdvdcss2
Using above download locations you can install most of the mutimedia codecs for ubuntu.
Mplayer Plugin for Firefox
If you want to install Mplayer with plug-in for Mozilla Firefox run the following command
sudo apt-get install mozilla-mplayer

How to Install and setup Eclipse with Sun’s Java

Eclipse is an open source community whose projects are focused on building an open development platform
comprised of extensible frameworks, tools and runtimes for building, deploying and managing software across
the lifecycle. A large and vibrant ecosystem of major technology vendors, innovative start-ups, universities,
research institutions and individuals extend, complement and support the Eclipse platform.
Installing Eclipse,Sun Java in Ubuntu
sudo apt-get install eclipse sun-java6-jdk
This will install the required packages, however, Eclipse will run very slowly since it will be using GNU’s
java, not Sun’s. We now need to make Sun’s java the default.
sudo update-java-alternatives -s java-6-sun
Next, edit the JVM configuration file
sudo -b gedit /etc/jvm
and add the following to the top of the file
/usr/lib/jvm/java-6-sun
There is a bug right now were Eclipse ignores Ubuntu’s java-common settings and uses its own (bug
45347). To work around the bug, you need to edit Eclipse’s java_home file
sudo -b gedit /etc/eclipse/java_home
and add
/usr/lib/jvm/java-6-sun
to the top of the file.
Lastly, if you have lots of memory you may want to increase the heap size (warning: If you make the heap
size too large then parts of eclipse will continuously swap in and out.).The settings can be altered by editing the
eclipse.ini file.
For feisty users:
sudo -b gedit /usr/lib/eclipse/eclipse.ini
The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size.

Ubuntu Networking Configuration Using Command Line

The basics for any network based on *nix hosts is the Transport Control Protocol/ Internet Protocol
(TCP/IP) combination of three protocols. This combination consists of the Internet Protocol (IP),Transport
Control Protocol (TCP), and Universal Datagram Protocol (UDP).
By Default most of the users configure their network card during the installation of Ubuntu. You can
however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such
as network-admin, to edit your system’s network device information or to add or remove network devices on
your system
Configure Network Interface Using Command-Line
You can configure a network interface from the command line using the networking utilities. You configure
your network client hosts with the command line by using commands to change your current settings or by
editing a number of system files.
Configuring DHCP address for your network card
If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter
the following lines replace eth0 with your network interface card
sudo vi /etc/network/interfaces
# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp
Configuring Static IP address for your network card
If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to
enter the following lines replace eth0 with your network interface card
sudo vi /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
After entering all the details you need to restart networking services using the following command
sudo /etc/init.d/networking restart
Setting up Second IP address or Virtual IP address in Ubuntu
If you are a server system administrator or normal user some time you need to assign a second ipaddress
to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the
following syntax.Below one is the only example you need to chnage according to your ip address settings
sudo vi /etc/network/interfaces
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x
You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all
the values save this file and you need to restart networking services in debian using the following command to
take effect of our new ipaddress.
After entering all the details you need to restart networking services using the following command
sudo /etc/init.d/networking restart
Setting your ubuntu stytem hostname
Setting up your hostname upon a ubuntu installation is very straightforward. You can directly query, or set,
the hostname with the hostname command.
As an user you can see your current hostname with
sudo /bin/hostname
Example
To set the hostname directly you can become root and run
sudo /bin/hostname newname
When your system boots it will automatically read the hostname from the file /etc/hostname
If you want to know more about how to setup host name check here
Setting up DNS
When it comes to DNS setup Ubuntu doesn’t differ from other distributions. You can add hostname and IP
addresses to the file /etc/hosts for static lookups.
To cause your machine to consult with a particular server for name lookups you simply add their addresses
to /etc/resolv.conf.
For example a machine which should perform lookups from the DNS server at IP address 192.168.3.2 would
have a resolv.conf file looking like this :
sudo vi /etc/resolv.conf
enter the following details
search test.com
nameserver 192.168.3.2

Installing Apache2 With PHP5 And MySQL Support On


Ubuntu 10.04 (LAMP)
LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2
webserver on an Ubuntu 10.04 server with PHP5 support (mod_php) and MySQL support.
I do not issue any guarantee that this will work for you!

1. Preliminary Note
In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100.
These settings might differ for you, so you have to replace them where appropriate.
I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as
root:
sudo su

2. Installing MySQL 5
First we install MySQL 5 like this:
aptitude install mysql-server mysql-client
You will be asked to provide a password for the MySQL root user - this password is valid for the
user root@localhost as well as root@server1.example.com, so we don't have to specify a
MySQL root password manually later on:
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword

3. Installing Apache2
Apache2 is available as an Ubuntu package, therefore we can install it like this:
aptitude install apache2
Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder
page (It works!):
Apache's default document root is /var/www on Ubuntu, and the configuration file is
/etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the
/etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules),
/etc/apache2/sites-enabled (for virtual hosts), and/etc/apache2/conf.d.
4. Installing PHP5
We can install PHP5 and the Apache PHP5 module as follows:
aptitude install php5 libapache2-mod-php5
We must restart Apache afterwards:
/etc/init.d/apache2 restart
<?php
phpinfo();
?>

Now we call that file in a browser (e.g. http://192.168.0.100/info.php):


As you see, PHP5 is working, and it's working through the Apache 2.0 Handler, as shown in the
Server API line. If you scroll further down, you will see all modules that are already enabled in
PHP5. MySQL is not listed there which means we don't have MySQL support in PHP5 yet.

6. Getting MySQL Support In PHP5

To get MySQL support in PHP, we can install the php5-mysql package. It's a good idea to install
some other PHP5 modules as well as you might need them for your applications. You can search
for available PHP5 modules like this:
aptitude search php5

Pick the ones you need and install them like this:
aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick
php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell
php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json

Now restart Apache2:


/etc/init.d/apache2 restart

Now reload http://192.168.0.100/info.php in your browser and scroll down to the modules
section again. You should now find lots of new modules there, including the MySQL module:

7. phpMyAdmin

phpMyAdmin is a web interface through which you can manage your MySQL databases. It's a good
idea to install it:
aptitude install phpmyadmin

You will see the following questions:

Web server to reconfigure automatically: <-- apache2


Configure database for phpmyadmin with dbconfig-common? <-- No

Afterwards, you can access phpMyAdmin under http://192.168.0.100/phpmyadmin/:

8. Next step : sudo ln -s /usr/share/phpmyadmin/ /var/www


OR
$ sudo gedit /etc/apache2/apache2.conf
Then insert the line below into apache2.conf:
Include /etc/phpmyadmin/apache.conf

How do I use emerald theme?


I'm guess you figured out how to change it? Pressing Alt+F2 and running

Code:
emerald --replace
sometimes works, but the best way (I've found) is to enable the window decorator plugin in compiz,
and set that to use emerald. Then do

Code:
compiz --replace
You might need to run gconf-editor and modify /desktop/gnome/applications/window_manager/default
to "/usr/bin/compiz", and /desktop/gnome/session/required_components/windowmanager to "gnome-
wm".

If you found another way, please post it here so others can benefit from it.

ATAU,,,here we go!

install Emerald theme manager from the Software center. Then Install Compiz Fusion Icon from the
Software center. Run Compiz Fusion Icon, after that you'll see the Compiz Fusion icon in your
notification area. Right click the icon in the notification area and select "Emerald Theme Manager".
The theme manager will appear and then you just import the .emerald theme there.

But before that, make sure you do this first before importing any .emerald theme.
Right click on the Compiz Fusion icon on the notification area again and go to "Select Window
Manager" and select Compiz.
Right click on the Compiz Fusion icon on the notification area again and go to "Select Window
Decorator" and select Emerald. Done.

Restore Gnome Setting


If you don’t have access to your graphical (GUI) desktop to delete these folders in Nautilus or you’re
stuck at the login screen, drop to a terminal by hitting CTRL + ALT + F1, login to your account, and run
this command:

rm -rf .gnome .gnome2 .gconf .gconfd .metacity

Get back to your GUI desktop by hitting CTRL + ALT + F7

Trying to install my modem again, finally i did it


To conclude, to make Prolink PHS100 USB GSM modem works in a GNU/Linux Ubuntu 10.04 LTS (Lucid), do
the following steps except step 1 in Terminal :
1. "Activate" the modem in a Microsoft Windows machine by plugging the modem, waiting till the modem
manager software appears and the modem LED turns magenta, and immediately unplugging the modem while
the LED is still magenta.
2. Fire `sudo aptitude install wvdial' if you don't have it installed yet.
3. Save the following text as /etc/wvdial.conf and adjust `three', the phone number, the username and the
password accordingly:
[Dialer Defaults]
New PPPD = yes
Modem = /dev/ttyUSB2
Baud = 115200
Modem Type = USB Modem
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","three"
Dial Command = ATDT
Phone = *99#
Username = 3data
Password = 3data
Stupid Mode = yes
4. Install usb-modeswitch, available on ubuntu repository.
5. Fire `sudo gedit /etc/usb_modeswitch.conf' and change `EnableLogging' to 1. Before it, fire 'sudo cp
/etc/usb_modeswitch.conf.dpkg-bak /etc/usb_modeswitch.conf' to get the conf file.
6. [Opt] Fire `sudo rm /var/log/usb_modeswitch_*' to remove any existing log.
7. Plug the modem in.
8. [Opt] Fire `tail /var/log/usb_modeswitch_*' to see usb_modeswitch activity log on the plugged modem.
9. [Opt] If the last non-blank line says `All done, exiting', proceed to step 10. But, you have to unplug the modem
and go back to step 6 if the last two non-blank lines says:
Trying to load the option driver
loader is: /sbin/modprobe
10. Wait for about 1 minute. While waiting, repeatedly fire `ls /dev/ttyUSB*'. Once `ls' returns some files instead
of saying "No such file or directory", you can go to step 11. If `ls' returns no file after 1 minute, unplug the
modem, fire `sudo rmmod option' and go back to step 6.
11. Turn off NetworkManager by firing `sudo /etc/init.d/network-manager stop'.
12. Fire `sudo wvdial', and if everything is okay, you should see an output like this. For subsequent use of the
modem after the modem is unplugged or the machine is restarted or powered off, you only need to start from
step 6.

Install the Microsoft fonts. You have 2 ways of doing so


Either download the fonts into your home directory and install them on your system:

sudo tar xvjpf msfonts.tbz -C /usr/share/fonts/truetype/

Or, enable non-free, universe and multiverse repositories and install the Microsoft fonts:

sudo apt-get install msttcorefonts

You now have the Microsoft fonts installed. Let's configure your system now. Download the xml files
and extract the file into /etc/fonts/ as root:

sudo tar xvjpf fontconfig.tbz -C /etc/fonts/

Log out from Ubuntu and relog in. Here's how your desktop will look, like the screenshot.
Installing yahoo messenger on ubuntu 10.04 Lucid Linux

Adding the PPA to Ubuntu 9.10 (Karmic) and later


If you're using the most recent version of Ubuntu (or any version from Ubuntu 9.10 onwards), you can add a PPA
to your system with a single line in your terminal.
Step 1: On the PPA's overview page, look for the heading that reads Adding this PPA to your system.
Make a note of the PPA's location, which looks like:
ppa:gwibber-daily/ppa
Step 2: Open a terminal and enter:
sudo add-apt-repository ppa:user/ppa-name
Replace ppa:user/ppa-name with the PPA's location that you noted above.
Your system will now fetch the PPA's key. This enables your Ubuntu system to verify that the packages
in the PPA have not been interfered with since they were built.
Step 3: Now, as a one-off, you should tell your system to pull down the latest list of software from each
archive it knows about, including the PPA you just added:
sudo apt-get update
Now you're ready to start installing software from the PPA!
Step 4. now your are ready to install gyachi. Type the following in the terminal and press
enter
sudo apt-get install gyachi
On older (pre 9.10) Ubuntu systems
Step 1: Visit the PPA's overview page in Launchpad. Look for the heading that reads Adding this PPA to your
system and click the Technical details about this PPA link.
Step 2: Use the Display sources.list entries drop-down box to select the version of Ubuntu you're using.
Step 3: You'll see that the text-box directly below reads something like this:
deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main
Copy those lines.
Step 4: Open a terminal and type:
sudo gedit /etc/apt/sources.list
This will open a text editor containing the list of archives that your system is currently using. Scroll to the bottom of
the file and paste the lines you copied in the step above.
Save the file and exit the text editor.
Step 5: Back on the PPA's overview page, look for the Signing key heading. You'll see something like:
1024R/72D340A3 (What is this?)
Copy the portion after the slash but not including the help link; e.g. just 72D340A3.
Step 6: Now you need to add that key to your system so Ubuntu can verify the packages from the PPA. In your
terminal, enter:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72D340A3
Replace 72D340A3 with whatever you copied in the step 5.
This will now pull down the PPA's key and add it to your system.
Step 7: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it
knows about, including the PPA you just added:
sudo apt-get update
Now you're ready to start installing software from the PPA!

You might also like