Pole on Linux
Welcome to a place with no windows or door. Freedom...
Tuesday, February 23, 2010
Locate vs Find
I was wondering about the different between the two. I found my answer here http://osdir.com/ml/linux.newbie/2004-11/msg00075.html. It basically say that find is meant to perform action on file and find is just a side effect if you will. Where as locate is just to find file.
Labels:
Find,
Linux,
Linux Commands,
Locate
Monday, February 22, 2010
How to install ogre 1.7, cegui 0.7.1, ode 0.11.1 on Ubuntu Karmic
Table of content
http://www.ogre3d.org/tikiwiki/Prerequisites?tikiversion=Linux
- Installing Compiler And Configuration Tools
- Ogre Dependencies
- Ogre Optional Packages
- Install Ogre
- Cegui Dependencies
- Cegui Optional Packages
- Installing Silly
- Install Cegui
- Installing Celayereditor
- Installing Ceimageeditor
- Installing Ode
- Using ogre, cegui, ode with code::blocks
- Uninstalling Compiler And Configuration Tools
- Uninstalling Ogre Dependencies
- Uninstalling Ogre Optional Packages
- Uninstalling Ogre
- Uninstalling Cegui dependencies
- Uninstalling Cegui Optional Packages
- Uninstalling Silly
- Uninstalling Cegui
- Uninstalling Celayouteditor
- Uninstalling Ceimageseteditor
- Uninstalling Ode
- Credits
- 1. Installing Compiler And Configuration Tools
sudo apt-get install build-essential automake libtool cmake-gui
- 2. Ogre Dependencies
sudo apt-get install libois-dev libfreeimage-dev libfreetype6-dev libzzip-dev libxaw7-dev libglew1.5-dev libxrandr-dev
- 3. Ogre Optional Packages
sudo apt-get install doxygen graphviz nvidia-cg-toolkit libboost-thread-dev libcppunit-dev
- 4. Install Ogre
- You can get the latest source from here.Now create two folders. One will hold the source codes. The other one will hold the configured source code of Ogrea, ready to be compiled. I have it set up like this:
/home/username/dev
Extract the source to the "dev" folder. You should have:
/home/username/dev/ogre_build/home/username/dev/ogre
Now open a terminal and run cmake-gui.where is the source code: /home/username/dev/ogre
Once you have selected the folder click configure. In the new window that appears leave the setting at default. It should look like this:
where to build the binaries: /home/username/dev/ogre_buildunix makefiles
Once you are done with that window just click finish. Now check this options to make fallowing the tutorials easier.
use default native compilersogre_install_samples
Once you're done click configure again then on generate. Now you can close the window. Go back to the terminal and enter this:
ogre_install_samples_sourcecd /home/username/dev/ogre_build
Note: you can use make -j 4 on duo-core processor to speed up the process.
make
sudo make install
sudo ldconfig
Note: if you installed doxygen and graphviz you can make doc to generate html documentation. - 5. Cegui Dependencies
sudo apt-get install libpcre++-dev libwxgtk2.8-dev libjpeg62-dev
- 6. Cegui Optional Packages
sudo apt-get install doxygen graphviz
- 7. Installing Silly
- Dependence needed by the editors. Get the latest source from here. Extract it to "dev" folder so it look like this:
/home/username/dev/silly-0.1.0
Now open a terminal and do:cd /home/username/dev/silly-0.1.0
./configure
make
sudo make install - 8. Install Cegui
- Get the latest source here. Extract it to the "dev" folder so it look like this:
/home/username/dev/cgui-0.7.1
Now open a terminal and do:cd /home/username/dev/cgui-0.7.1
note: if you installed doxygen and graphviz you can make html to generate html documentation.
./bootstrap
./configure
make
sudo make install
sudo ldconfig - 9. Installing Celayereditor
- Get the latest source from here. Extract it to the "dev" folder so it look like this:
/home/username/dev/celayouteditor-0.7.1
Now open a terminal and do:cd /home/username/dev/celayouteditor-0.7.1
Now you have to select the datafiles folder from the source folder when the editor start for the first time.
./configure
make
sudo make install/home/username/dev/celayouteditor-0.7.1/datafiles
Now you will need to copy to file to datafiles/fonts folder from the datafiles/font folder of cegui source. you need to copy this two file:/home/username/dev/cegui-0.7.1/datafiles/dejavusans.ttf
to
/home/kamil/dev/cegui-0.7.1/datafiles/dejavusans-10.font/home/username/dev/celayouteditor-0.7.1/datafiles/fonts
- 10. Installing Ceimageeditor
- Get the latest source from here. Extract it to "dev" folder so it look like this:
/home/username/dev/ceimageseteditor-0.7.1
Now open a terminal and do:cd /home/username/dev/ceimageseteditor-0.7.1
./configure
make
sudo make install - 11. Installing Ode
- Get the latest source from here. Extract it to "dev" folder so it look like this:
/home/username/dev/ode-0.11.1
Now open a terminal and go to that source folder like so:cd /home/username/dev/ode-0.11.1
./configure
make
sudo make install - 12. Using ogre, cegui, ode with code::blocks
- To install code::blocks, open a terminal and run:
sudo apt-get install codeblocks
Start code::blocks and make a new ogre project. Now go to Project > Build options and make sure you select the you project name. In Compiler setting > Other options you should have something like this:`pkg-config --cflags OGRE`
In linker settings > link libraries you should have:
`pkg-config --cflags CEGUI`
`pkg-config --cflags OIS`
`pkg-config --cflags ode`
`pkg-config --cflags CEGUI-OGRE`
-fexceptionsGL
In linker settings > Other linker options you should have:`pkg-config --libs OGRE`
In Search directories > Compiler you should have:
`pkg-config --libs CEGUI`
`pkg-config --libs OIS`
`pkg-config --libs ode`
`pkg-config --libs CEGUI-OGRE`/usr/local/share/OGRE/samples/Common/include
Now you should be all set to start the tutorials.
/usr/local/include/CEGUI/RendererModules/Ogre - 13. Uninstalling Compiler And Configuration Tools
sudo apt-get remove build-essential automake libtool cmake-gui
- 14. Uninstalling Ogre Dependencies
sudo apt-get remove libois-dev libfreeimage-dev libfreetype6-dev libzzip-dev libxaw7-dev libglew1.5-dev libxrandr-dev
- 15. Uninstalling Ogre Optional Packages
sudo apt-get remove doxygen graphviz nvidia-cg-toolkit libboost-thread-dev libcppunit-dev
- 16. Uninstalling Ogre
- There isn't a way to uninstall ogre with make other then manually remove the file.At lest not that I found anyway.
- 17. Uninstalling Cegui dependencies
sudo apt-get remove libpcre++-dev libwxgtk2.8-dev libjpeg62-dev
- 18. Uninstalling Cegui Optional Packages
sudo apt-get remove doxygen graphviz
- 19. Uninstalling Silly
- Open a terminal and run:
cd /home/username/dev/SILLY-0.1.0
sudo make uninstall - 20. Uninstalling Cegui
- Open a terminal and run:
cd /home/username/dev/CEGUI-0.7.1
sudo make uninstall - 21. Uninstalling Celayouteditor
- Open a terminal and run:
cd /home/username/dev/CELayoutEditor-0.7.1
sudo make uninstall - 22. Uninstalling Ceimageseteditor
- Open a terminal and run:
cd /home/username/dev/CEImagesetEditor-0.7.1
sudo make uninstall - 23. Uninstalling Ode
- open a terminal and run:
cd /home/username/dev/ode-0.11.1
sudo make uninstall - 24. Credits
Thanks to caldercoalson for his tutorial
http://ubuntuforums.org/showthread.php?t=1144592
A blog with a Ogre tutorial
http://xiolog.blogspot.com/2010/01/compilation-and-installation-of-ogre.html
Another Ogre tutorial
http://www.cipherhive.org/?page_id=34
http://www.ogre3d.org/tikiwiki/Prerequisites?tikiversion=Linux
Labels:
CEGUI,
CEGUI 0.7.1,
Code::Blocks,
Karmic,
Linux,
ODE,
ODE 0.11.1,
OGRE 1.7,
OGRE3D,
Source,
Ubuntu
Tuesday, December 30, 2008
Dungeon runners
Latly I've been playing dungeon runner. It run well on wine with archlinux and E17.
It's fun.
Dungeon Runners is a Free Fantasy MMORPG
Explore an exciting realm of magic, adventure, and giant icky monsters! Dungeon Runners is a free MMORPG set in a 3D fantasy world.
As a brave hero, you'll explore richly detailed dungeons, battle ferocious monsters and discover incredible weapons, artifacts and loot. Play as Fighter, Mage or Ranger and unlock powerful new skills as you gain experience on your journey into the unknown.
Whether fighting evil hordes as a lone warrior or teaming up with online friends to carve a path of destruction through your foes, Dungeon Runners will quench your deepest dungeon-crawling thirst.
It's fun.
Labels:
Dungeon Runners,
Game,
Linux Game,
Wine
Tuesday, December 23, 2008
Nix package manager
I've came acros an intresting software NIX. It a package manager that eliminates the dependency hell. The package manager is an non destroctive which mean that it doesn't overwrite the old version of software but they co-exist. There is also an os based os NIX called NixOS. Now only if the human could be the same.
E17 on Archlinux
E17 is a good but it doesn't come with alot of application. So now that I found all there program for a complit desktop I'll post them.
Desktop envirement: E17
Package manager: yaourt
You have to add a repository to the pacman config file like this:
then add at the end:
then you can do:
File manager: pcmanfm
Although E17 does come with it's own but i don't like it much.
Terminal: xterm or lxterminal
Lxterminal has copy/paste so that why I like it xterm doesn't.
Browser: Firefox
File compresor: Xarchiver
CD/DVD burning: Graveman
Music player: cmus
Video player: VLC
Text editor/Programing: Geany
Image editor: Gimp
Java IDE:
Network manager: Wicd
Msn clone: Amsn
Office application Openoffice
PDF reader: Acrobat Reader
Runing windows programs: Wine and/or virtualbox
Task manager: lxtask
And thas my complit desktop.
Desktop envirement: E17
sudo pacman -S e17-svn e17-extra-svn
Package manager: yaourt
You have to add a repository to the pacman config file like this:
sudo nano /etc/pacman.conf
then add at the end:
[archlinuxfr]
Server = http://repo.archlinux.fr/i686
then you can do:
sudo pacman -S yaourt
File manager: pcmanfm
Although E17 does come with it's own but i don't like it much.
sudo pacman -S pcmanfm
Terminal: xterm or lxterminal
Lxterminal has copy/paste so that why I like it xterm doesn't.
sudo pacman -S lxterminal
sudo pacman -S xterm
Browser: Firefox
sudo pacman -S firefox
File compresor: Xarchiver
sudo pacman -S xarchiver
CD/DVD burning: Graveman
sudo pacman -S graveman
Music player: cmus
sudo pacman -S cmus
Video player: VLC
sudo pacman -S vlc
Text editor/Programing: Geany
sudo pacman -S geany
Image editor: Gimp
sudo pacman -S gimp
Java IDE:
sudo pacman -S netbeans
Network manager: Wicd
sudo pacman -S wicd
Msn clone: Amsn
sudo pacman -S amsn
Office application Openoffice
sudo pacman -S openoffice-base
PDF reader: Acrobat Reader
yaourt -S acroread
Runing windows programs: Wine and/or virtualbox
sudo pacman -S wine
sudo pacman -S virtualbox
Task manager: lxtask
sudo pacman -S lxtask
And thas my complit desktop.
Archlinux and LG P1
I first started to use linux with Ubuntu. Then I explored all the posible distros that derived from Ubuntu but did find and think that I like. Then i explored alot of diffrent desktop environment like Gnome, Kde, Lxde, Openbox and a few more. I was looking something lightweight, good looking and have good support for laptops. As Ubuntu is very user friendly but is a bit heavy. Then I turned to Archlinux. It's very custemizeble and lighter then Ubuntu. It has a good community. At first I installed Gnome but then once I was more finilier with Archlinux I started to look for a liker alternative to Gnome. That when I found Enlightement and started to use the newest version E17. It look very good but I don't know about how light is it but it is more custumuzeble and easy at the same time with out taking out all the options. Now that a snopshoot E17 is in the repo of the Archlinux it easer to install. Althought, I am working on a script that would download and install the bleeding edge of E17 for svn repo. It's almost complite but still has bugs.
Now on my LG P1, the speaker don't work out of the box. To make them work I did:
Then add this line:
Now my speaker work flowlessly with ALSA.
To have the wireless card work I need to edit the /etc/rc.conf file:
Then in the MODULES section add an ! to the ipw3945 module and add iwl3945 it should look like this:
The other modules are for sound. So far that the only this that I know about.
Now on my LG P1, the speaker don't work out of the box. To make them work I did:
sudo nano /etc/modprobe.conf
Then add this line:
options snd-hda-intel model=lg
Now my speaker work flowlessly with ALSA.
To have the wireless card work I need to edit the /etc/rc.conf file:
sudo nano /etc/rc.conf
Then in the MODULES section add an ! to the ipw3945 module and add iwl3945 it should look like this:
MODULES=(!ipw3945 iwl3945 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)
The other modules are for sound. So far that the only this that I know about.
New place
I've change emails for my blog and tranfered the old post to the now home. Now I'm working on a few new thing so I'll have a script to install e17 from the svn soon ready. After that I'll start developing probram for e17 or improve the existing one.
Subscribe to:
Posts (Atom)