Archive for the ‘ linux ’ Category

How to use XFLR5 in Linux

The XLFR5 is a easier to use interface built on top of the X-foil engine. The X-foil also features wing and whole airplane analysis functions.

The downside of the program has been that is only available for Windows. However, it can be run nowadays in Linux without porting the program to e.g. Qt (which is a big task), so in the mean time before any cross-platform version appears, you can live with the wine in Linux environment:

– Make sure your wine version is a pretty recent one, version greater than 1.0.

I am using the Ubuntu Intrepid version. apt-cache policy wine reports the following:
wine:
Installed: 1.0.1-0ubuntu2
Candidate: 1.0.1-0ubuntu2
Version table:
*** 1.0.1-0ubuntu2 0
500 http://archive.ubuntu.com intrepid/universe Packages
100 /var/lib/dpkg/status
W: Duplicate sources.list entry http://archive.ubuntu.com intrepid/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com intrepid/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_intrepid_multiverse_binary-i386_Packages)

If you are running the latest stable Ubuntu (Intrepid – 8.10), you can use the Ubuntu supplied one and it will work fine with XFLR5. However, if you are running Ubuntu Hardy or some other distro that does not have the post-1.0 version available, you can install it from winehq repository. For debian based distros like Ubuntu, the instructions can be found from here:

http://www.winehq.org/download/deb

Our living room computer is not yet updated and it is still running the older Hardy. I updated the wine by adding the following line to /etc/apt/sources.list:

deb http://wine.budgetdedicated.com/apt hardy main #WineHQ – Ubuntu 8.04 “Hardy Heron”

Then I did apt-get update and apt-get install wine

The new version of wine got installed and the XFLR5 started working fine.

Download the XFLR5 from here:
http://xflr5.sourceforge.net/xflr5.htm

Go to download page and click download. At the time of writing this, the 4.15 was the latest version.

Download the zip file XFLR5_v415.zip to a new subfolder into your home directory, because the zip file does not contain directories and when you unzip it, if you was in your home directory, you get the package contents directly there which messes up your home with lots of unnecessary files.

Run the XFLR5_Setup.exe by typing on a terminal:

wine ./XFLR5_Setup.exe

The setup runs and finishes.

After this you can notice that a new entry appeared to your Applications menu (in Gnome):
Applications – Wine
Select submenu Programs, and there XFLR5 and on that submenu XFLR5.
XFLR5 should now start successfully.

It works on my computer without problems now.

>How to use XFLR5 in Linux

>The XLFR5 is a easier to use interface built on top of the X-foil engine. The X-foil also features wing and whole airplane analysis functions.

The downside of the program has been that is only available for Windows. However, it can be run nowadays in Linux without porting the program to e.g. Qt (which is a big task), so in the mean time before any cross-platform version appears, you can live with the wine in Linux environment:

– Make sure your wine version is a pretty recent one, version greater than 1.0.

I am using the Ubuntu Intrepid version. apt-cache policy wine reports the following:
wine:
Installed: 1.0.1-0ubuntu2
Candidate: 1.0.1-0ubuntu2
Version table:
*** 1.0.1-0ubuntu2 0
500 http://archive.ubuntu.com intrepid/universe Packages
100 /var/lib/dpkg/status
W: Duplicate sources.list entry http://archive.ubuntu.com intrepid/universe Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com intrepid/multiverse Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_intrepid_multiverse_binary-i386_Packages)

If you are running the latest stable Ubuntu (Intrepid – 8.10), you can use the Ubuntu supplied one and it will work fine with XFLR5. However, if you are running Ubuntu Hardy or some other distro that does not have the post-1.0 version available, you can install it from winehq repository. For debian based distros like Ubuntu, the instructions can be found from here:

http://www.winehq.org/download/deb

Our living room computer is not yet updated and it is still running the older Hardy. I updated the wine by adding the following line to /etc/apt/sources.list:

deb http://wine.budgetdedicated.com/apt hardy main #WineHQ – Ubuntu 8.04 “Hardy Heron”

Then I did apt-get update and apt-get install wine

The new version of wine got installed and the XFLR5 started working fine.

Download the XFLR5 from here:
http://xflr5.sourceforge.net/xflr5.htm

Go to download page and click download. At the time of writing this, the 4.15 was the latest version.

Download the zip file XFLR5_v415.zip to a new subfolder into your home directory, because the zip file does not contain directories and when you unzip it, if you was in your home directory, you get the package contents directly there which messes up your home with lots of unnecessary files.

Run the XFLR5_Setup.exe by typing on a terminal:

wine ./XFLR5_Setup.exe

The setup runs and finishes.

After this you can notice that a new entry appeared to your Applications menu (in Gnome):
Applications – Wine
Select submenu Programs, and there XFLR5 and on that submenu XFLR5.
XFLR5 should now start successfully.

It works on my computer without problems now.

Downloading all specific files from web server to your Linux desktop

Everyone knows that there is the wget command in the Ubuntu. But by default its behavior is not very nice if you want to get for example backup of your home directory on the web server only. If you don’t have wget, you can install it by going to shell and typing:


sudo apt-get install wget

Example case: You have lots of pictures on your home page, in images folder. You want to get them all to your Linux desktop, ie. you want to make a backup. But you want only the images, not the other files that are in that folder, what do you do? Or what if you want to download all my music without needing to click download for provided links for each file separately?

I was asking around from the Linux gurus around me, but I could not get a simple answer other than read the man pages. Ok, I went and read the man pages. There were some examples, and they did not do what they promised to do until I combined them to the following:

This does to my music folder on our server a mirror to your hard disk, but it has adverse side effect, it keeps the web server directory stucture:


wget -r -l1 –no-parent -L -A.mp3 http://www.katix.org/karoliina/music/

I just wanted to have the mp3-files from one folder. So I searched further the man page.

Here is the line what did for me what I wanted:


wget -r -l1 –no-parent -L -A.mp3 -p –convert-links -nH -nd -P./ http://www.katix.org/karoliina/music/

It still downloads the robots.txt. But you can go and delete the unnecessary file. And if you want all my music, here is what you can do. In shell (terminal), go to your desired folder and then copy-paste this command line to the shell. And you’ll be done as quickly as the network allows.

>Downloading all specific files from web server to your Linux desktop

>Everyone knows that there is the wget command in the Ubuntu. But by default its behavior is not very nice if you want to get for example backup of your home directory on the web server only. If you don’t have wget, you can install it by going to shell and typing:


sudo apt-get install wget

Example case: You have lots of pictures on your home page, in images folder. You want to get them all to your Linux desktop, ie. you want to make a backup. But you want only the images, not the other files that are in that folder, what do you do? Or what if you want to download all my music without needing to click download for provided links for each file separately?

I was asking around from the Linux gurus around me, but I could not get a simple answer other than read the man pages. Ok, I went and read the man pages. There were some examples, and they did not do what they promised to do until I combined them to the following:

This does to my music folder on our server a mirror to your hard disk, but it has adverse side effect, it keeps the web server directory stucture:


wget -r -l1 –no-parent -L -A.mp3 http://www.katix.org/karoliina/music/

I just wanted to have the mp3-files from one folder. So I searched further the man page.

Here is the line what did for me what I wanted:


wget -r -l1 –no-parent -L -A.mp3 -p –convert-links -nH -nd -P./ http://www.katix.org/karoliina/music/

It still downloads the robots.txt. But you can go and delete the unnecessary file. And if you want all my music, here is what you can do. In shell (terminal), go to your desired folder and then copy-paste this command line to the shell. And you’ll be done as quickly as the network allows.