Linux Notes
Linux Notes
Linux Notes
dpkg-reconfigurehddtemp
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:
2. Download winetricks:
$ wget http://www.kegel.com/wine/winetricks
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.
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.
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
# Install SVC
sudo apt-get install subversion
# Install Curl
sudo apt-get install curl
# Add the following lines to your /etc/apt/sources.list file. Replace the "DIST" text with whatever
is appropriate for your system. (gutsy)
# Update repositories
sudo apt-get update
# Install wxWidgets
sudo apt-get install python-wxgtk2.8 python-wxtools python-wxaddons wx2.8-i18n
# Launch SPE
python SPE.py
sudo vi /etc/squid/squid.conf
sudo vi /etc/squid/squid.conf
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
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.
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
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();
?>
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 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
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.
Or, enable non-free, universe and multiverse repositories and install the Microsoft fonts:
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:
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