Posts Tagged ‘terminal’

luckyBackup Linux GUI back-up and synchronization tool

Wednesday, May 14th, 2014

luckybackup_best-linux-graphical-tool-for-backup_linux_gui-defacto-standard-tool
If you're a using GNU / Linux  for Desktop and you're already tired of creating backups by your own hacks using terminal and you want to make your life a little bit more easier and easily automate your important files back up through GUI program take a look at luckyBackup.

Luckibackup is a GUI frontend to the infamous rsync command line backup  tool. Luckibackup is available as a package in almost all modern Linux distributions its very easy to setup and can save you a lot of time especially if you have to manage a number of your Workplace Desktop Office Linux based computers.
Luckibackup is an absolute must have program for Linux Desktop start-up users. If you're migrating from Microsoft Windows realm and you're used to BackupPC, Luckibackup is probably the defacto Linux BackupPC substitute.

The sad news for Linux GNOME Desktop users is luckibackup is written in QT and it using it will load up a bit your notebook.
It is not installed by default so once a new Linux Desktop is installed you will have to install it manually on Debian and Ubuntu based Linux-es to install Luckibackup apt-get it.

debian:~# apt-get install --yes luckibackup
...

On Fedora and CentOS Linux install LuckiBackup via yum rpm package manager

[root@centos :~]# yum -y install luckibackup
.

Luckibackup is also ported for OpenSuSE Slackware, Gentoo, Mandriva and ArchLinux. In 2009 Luckibackup won the prize of Sourceforge Community Choice Awards for "best new project".

luckyBackup copies over only the changes you've made to the source directory and nothing more.
You will be surprised when your huge source is backed up in seconds (after the first backup).

Whatever changes you make to the source including adding, moving, deleting, modifying files / directories etc, will have the same effect to the destination.
Owner, group, time stamps, links and permissions of files are preserved (unless stated otherwise).

Luckibackup creates different multiple backup "snapshots".Each snapshot is an image of the source data that refers to a specific date-time.
Easy rollback to any of the snapshots is possible. Besides that luckibackup support Sync (just like rsync) od any directories keeping the files that were most recently modified on both of them.

Useful if you modify files on more than one PCs (using a flash-drive and don't want to bother remembering what did you use last. Luckibackup is capable of excluding certain files or directories from backupsExclude any file, folder or pattern from backup transfer.

After each operation a logfile is created in your home folder. You can have a look at it any time you want.

luckyBackup can run in command line if you wish not to use the gui, but you have to first create the profile that is going to be executed.
Type "luckybackup –help" at a terminal to see usage and supported options.
There is also TrayNotification – Visual feedback at the tray area informs you about what is going on.
 

 

 

Monitoring Disk use, CPU Load, Memory use and Network in one console ncurses interface – Glance

Thursday, August 14th, 2014

monitoring-disk-use-memory-cpu-load-and-network-in-one-common-interfaces-with-glances-Linux-BSD-UNIX
If you're Linux / UNIX / BSD system administrator you already have experience with basic admin's system monitoring:

  •     CPU load
  •     OS Name/Kernel version
  •     System load avarage and Uptime
  •     Disk and Network Input/Output I/O operations by interface
  •     Process statistics / Top loading processes etc.
  •     Memory / SWAP usage and free memory
  •     Mounted partitions


Such info is provided by command line tools such as:

top, df, free, sensors, ifconfig, iotop, hddtemp, mount, nfsstat, nfsiostat, dstat, uptime, nethogs iptraf

etc.

There are plenty of others advanced tools also Web based server monitoring visualization  tools, such as Monit, Icanga, PHPSysInfo, Cacti which provide you statistics on computer hardware and network utilization

So far so good, if you already are used to convenience of web *NIX based monitoring but you don't want to put load on the servers with such and you're lazy to write custom scripts that show most important monitoring information – necessery for daily system administration monitoring and prevention from downtimes and tracking bottlenecks you will be glad to hear about Glances
 

Glances is a free (LGPL) cross-platform curses-based monitoring tool which aims to present a maximum of information in a minimum of space, ideally to fit in a classical 80×24 terminal or higher to have additionnal information. Glances can adapt dynamically the displayed information depending on the terminal size. It can also work in a client/server mode for remote monitoring.


1. Installing Glances curses-based monitoring tool on Debian 7 / Ubuntu 13+ / Mint  Linux

We have to install python-pip (python package installer tool) to later install Glances

apt-get install –yes 'python-dev' 'python-jinja2' 'python-psutil'
                        'python-setuptools' 'hddtemp' 'python-pip' 'lm-sensors'


Before proceeding to install Glances to make Thermal sensors working (if supported by hardware) run:

 

 sensors-detect

Glances is written in Python and uses psutil library to obtain monitoring statistic values, thus it is necessery to install few more Python libraries:

pip install 'batinfo' 'pysensors'

If you're about to use pip – Python package installer tool, behind a proxy server use instead:
 

pip install –proxy=http://your-proxy-host.com:8080 'batinfo' 'pysensors'

Then install Glances script itself again using pip
 

pip install 'Glances'

Downloading/unpacking Glances
  Downloading Glances-2.0.1.tar.gz (3.3Mb): 3.3Mb downloaded
  Running setup.py egg_info for package Glances
    
Downloading/unpacking psutil>=2.0.0 (from Glances)
  Downloading psutil-2.1.1.tar.gz (216Kb): 216Kb downloaded
  Running setup.py egg_info for package psutil

Successfully installed Glances psutil

 

Then run glances from terminal
 

glances -t 3

-t 3 option tells glances to refresh collected statistics every 3 seconds

glances-console-monitoring-tool-every-systemad-ministrator-should-know-and-use-show-memory-disk-cpu-mount-point-statistics-in-common-shared-screen-linux-freebsd-unix

 

2. Installing Glances monitoring console tool on CentOS / RHEL / Fedora / Scientific Linux

Installing glances on CentOS 7 / Fedora and rest of RPM based distributions can be done by adding external RPM repositories, cause glances is not available in default yum repositories.

To enable Extra-packages repositories:
 

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm


Then update yum to include new repository's packages into package list and install python-pip and python-devel rpms
 

yum update
yum install python-pip python-devel


Glances-console-server-stateScreenhot-on-CentOS-Linux-monitoring-in-ncurses-Linux-BSD

There is also FreeBSD port to install Glances on FreeBSD:
 

cd /usr/sysutils/py-glances
make install


Enjoy 🙂 !

 

 

MobaXTerm: A good gnome-terminal like tabbed SSH client for Windows / Windows Putty Tabs Alternative

Wednesday, November 13th, 2013

Mobaxterm ssh client putty MS Windows alternative with tabs suitable for ex linux users

mobaxterm with tabbed ssh connections screenshot best putty windows ssh client alternative now

Last 10+ years I worked on GNU / Linux as Desktop. Last 7 years most of my SSH connections were managed from GNOME and I'm quite used to gnome-terminal ssh tabbing. In my new Employee Hewlett Packard. I'm forced to work on Microsoft Windows 7 and thus I used for a month or so Putty and Kitty fork from version 0.63 of PuTTY advertising itself as the best telnet / SSH client in the world. Both of the two lack tabbing and have interface which is pretty unfamiliar to me. As I'm so used to using native UNIX terminal. Fortunately a colleague of mine Ivelin was using an SSH client called MobaXTerm which very much did emulation similar to my favourite gnome-terminal. MobaXterm is not free software / open source app but this doesn't matter so much to me as anyways I'm running a non-free Win OS on my desktop. What makes MobaXterm so attractive is its rich functionality (cosmic years infront of Putty).

Here is website description of MobaXterm quoted from its website:

MobaXterm is an enhanced terminal for Windows with an X11 server, a tabbed SSH client and several other network tools for remote computing (VNC, RDP, telnet, rlogin). MobaXterm brings all the essential Unix commands to Windows desktop, in a single portable exe file which works out of the box.

Overall list of features MobaXterm offers are;

  •     multitab terminal with embedded Unix commands (ls, cd, cat, sed, grep, awk, rsync, wget, …)

  •     embedded X11 server for easily exporting your Unix/Linux display

  •     a session manager with several network utilities: SSH, RDP, VNC, Telnet, Rlogin, FTP, SFTP and XDMCP

  •     passwords management for SSH, RDP, VNC, SFTP (on demand password saving)

  •     easy graphical file transfer using drag and drop during SSH sessions

  •     advanced SSH tunnels creation tool (graphical port forwarding builder)

  •     tasks automation using scripts or macros

Mobaxterm is portable just like Putty so its useful to use on HOP stations to servers like used in big companies like HP. Featured embedded Unix commands (e.g., ls, cd, cat, sed, grep, awk, rsync, wget) gives a feeling like you're working on pure Linux console making people addicted to Linux / BSD quite confortable. Some other very useful terminal emulator functions are support for anti-aliasing session manager (save / remember passwords for ssh sessions in Crypted format so much missing in Putty) and it even supports basic macros.
Basic UNIX commands embedded in MobaXterm are taken and ported from Cygwin projectLinux-like environment for Windows making it possible to port software running on POSIX systems (such as Linux, BSD, and Unix systems) to Windows. A very cool think is also MobaXterm gives you a Linux like feel of console navigation in between basic files installed from Cygwin. Some downside I found is program menus which look at first glimpse a bit confusing especially for people used to simplicity of gnome-terminal. Once logged in to remote host via ssh command the program offers you to log you in also via SFTP protocol listing in parallel small window with possibility to navigate / copy / move etc. between server files in SFTP session which at times is pretty useful as it saves you time to use some external SFTP connector tools like  WinSCP.

From Tools configuration menu, there are few precious tools as well;
         – embedded text editor MobaTextEditor
         – MobaFoldersDiff (Able to show diffeernces between directories)
         – AsciiTable (Complete List of Ascii table with respective codes and characters)
         – Embedded simple Calculator
         – List open network ports – GUI Tool to list all open ports on Windows localhost
         – Network packets capture – A Gui tool showing basic info like from UNIX's tcpdump!
         – Ability to start quickly on local machine (TFTP, FTP, SFTP / SSH server, Telnet server, NFS server, VNC Server and even simple implementation of HTTP server)

Mobaxterm list of tools various stuff

         Mobaxterm run various services quickly on Windows servers management screenshot

Below are few screenshots to get you also idea about what kind of configuration MobaXterm supports
  mobaxterm terminal configuration settings screenshot

mobaxterm better putty alternative x11 configuration tab screenshot

mobaxterm windows ssh client for linux users configuration ssh tab screenshot

mobaxterm-putty-alternative-for-windows-configuration-display-screenshot
MobaXTerm Microsoft Windows ssh client configuration misc menu screenshot
To configure and use Telnet, RSH, RDP, VNC, FTP etc. Sessions use the Sessions tab on top menu.

One very handy thing is MobaXterm supports export of remote UNIX display with no requirement to install special Xserver like already a bit obsolete Xming – X server for Windows.
The X Display Manager Control Protocol (XCMCP) is a key feature of the X11 architecture. Together with XDMCP, the X network protocol allows distributed operation of the X server and X display manager. The requesting X server runs on the client (usually as an X terminal), thus providing a login service, that why the X server ported to MobaXterm from Cygwin also supports XDMCP. If, for example, you want to start a VNC session with a remote VNC server, all you have to do is enter the remote VNC server’s IP address in the VNC area; the default VNC port is already registered.

Accessing the remote Windows server via RDP (Remote Desktop Protocol) is also a piece of cake. Once you establish a session to RDP or other Proto it is possible to save this session so later you just choose between session to access. The infamous (X11 Port Forwarding) or creation of SSH encrypted tunnels between hosts to transfer data securily or hide your hostname is also there.

MobaXterm is undoubtedly a very useful and versatile tool. Functionally, the software is well mannered, and Windows users who want to sniff a little Linux/Unix air can get a good idea of how Linux works. A closer look reveals that anything you can do with MobaXterm can be achieved directly with freely available tools (Cygwin) and Unix tools ported from Cygwin. However, although Cygwin provides a non-Posix environment for Windows, it doesn’t offer a decent terminal, which is one thing Moba-Xterm has going for it.

Admittedly, in pure vanilla Cygwin, you can start an X server automatically and then use xterm, but xterm lacks good-quality fonts, whereas MobaXterm conveniently lets you integrate a font server.

Downloading your favourity flash video from Youtube with a simple command (youtube-dl)

Wednesday, April 13th, 2011

downloading-flash-videos-from-youtube-on-linux-and-bsd-youtube-downloader-logo
Watching videos in youtube today and already for about 2 years is the de-facto hype.
There is almost none a day passed without almost each one of us has watched a dozen videos in Youtube.

Watching videos in youtube has become even more addictive for many than the early days of Internet Relay Chats (IRC)

As youtube is very accessible for people and it’s a comparativily easy way people share more and more with the day.
There is no question that the business idea of youtube is great and youtube generates millions of dollars for Google day by day, however I have a serious objection here! All is good the only pitfall is that you don’t own the youtube videos you watch!

Youtube’s story is not that different from the story of the cloud computing threat to internet users Freedom

The good thing here is that we’re not still completely dependant on youtube and there is still way to retrieve your favourite youtube video and store it for later watching or distribution.

Probably the most famous browser plugin that allows files retrieval from youtube, as most people know is DownloadHelper .

However using download helper is browser dependant, you need to use the browser to save the plugin and I don’t find it to be the best way to download a youtube video.

Since the old days I have started using Linux, I’ve been quite addicted to as many things on my linux as possible from the command line (terminal / console) (CLI) .

In that manner of thoughts it was a real delight for me to find out that a group of free software developer guys has come up with a command line tool that allows downloads of youtube videos straight from terminal, the great software is called youtube-dl and at the moment of this post writting it’s to be found on the URL address:

http://rg3.github.com/youtube-dl/

Youtube-dl is written in python so, it requires the Python interpreter, version 2.5 in order to properly run on Unix, Mac OS X or even on Windows!

The fact that it’s written in python has made the little shiny tool quite a multi-platform one.
To start using immediately the tool on a Debian or Ubuntu Linux you will have to install python (even though in most cases you must have it already installed):

1. To make sure you have python interpreter installed issue the cmd:

debian:~# apt-get install python
Building dependency tree
Reading state information... Done
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

As you can see from above apt-get’s output I do have it installed so nothing gets installed.

2. As a next step I used links to download the youtube-dl python script, like so:

debian:~# links https://github.com/rg3/youtube-dl/raw/2011.03.29/youtube-dl >> youtube-dl
Use the links interface to save youtube-dl and use gzip to ungzip it
debian:~# gzip -d youtube-dl.gz
debian:~# chmod +x youtube-dl

Now to make it system wide accessible I have copied the youtube-dl to /usr/local/bin , whether I selected /usr/local/bin as a location as this location is predetermined to contain mostly files which does not belong to a regular deb package.

3. Move youtube-dl to /usr/local/bin

debian:~# mv youtube-dl /usr/local/bin

4. Test the newly installed youtube-dl command line youtube retrieval tool:

debian:~# ./youtube-dl https://www.youtube.com/watch?v=g7tvI6JCXD0
[youtube] Setting language
[youtube] g7tvI6JCXD0: Downloading video webpage
[youtube] g7tvI6JCXD0: Downloading video info webpage
[youtube] g7tvI6JCXD0: Extracting video information
[download] Destination: g7tvI6JCXD0.flv
[download] 53.3% of 22.62M at 33.23k/s ETA 05:25
[download] 100.0% of 22.62M at 31.91k/s ETA 00:00 [u

As you might have noticed from the above youtube-dl command output the newly retrieved youtube file will be saved under a name g7tvI6JCXD0.flv

The line I passed to youtube-dl is directly taken from my browser and pasted to console, the file downloading from youtube took me about 10 minutes but this is mostly because of some kind of youtube server speed restrictions …

In general at least I have this video for later, watching, so after a while I can watch it once again without loosing a lot of time trying to remember what was the video headline name

5. To use youtube-dl in a bit advanced way you can for instance invoke the command with options like:

debian:~# ./youtube-dl -l -w -c https://www.youtube.com/watch?v=g7tvI6JCXD0
[youtube] Setting language
[youtube] g7tvI6JCXD0: Downloading video webpage
[youtube] g7tvI6JCXD0: Downloading video info webpage
[youtube] g7tvI6JCXD0: Extracting video information
[download] Destination: BSD is Dying, Jason Dixon, NYCBSDCon 2007-g7tvI6JCXD0.flv
[download] 4.4% of 22.62M at 1.43M/s ETA 00:15

As you can see now youtube-dl was even able to detect the downloaded video file name and store it on the computer with a correct name 😉

I would recommend you also to check out the youtube-dl help page, to do use command: youtube-dl –help
 

Flight to Dubai via Istanbul, my Dubai first impressions and how it feels to be in Arab country

Tuesday, September 13th, 2011

Burj Al Arab and the 360 degree club

On Sunday I had a flight to Dubai – the the United Arab Emirates. The flight's goal is to do some business meetings with potential investors willing to invest in Cadia Holding 's Ofsshore Solutions
I'm employed as IT & Security Specialist and business consultant as well as doing the system administration for the company

The company has already scheduled a business meetings to look for new investors in order to finance the current company offered products and services as well as finance its entrance in the field of biometrics technology for the people to allow people to pay in stores with no need for plastic cards only using a finger partial imprint and a code.

The flight from Sofia to Istanbul was about 1 h and 15 minutes and it went quite smoothly thanks God. It seems Sofia's Airport has changed a lot since my last flight before more than a year and half to Dotmund Germany.
Now Sofia's airport looks way more modern than before, which means Bulgaria is slowly but surely developing it's infrastructure 😉
Sofia Airport long distance view

I used an electronic ticket for the flight which was pre-purchased by Cadia so what, all I had to do on the airport is show a copy of my e-ticket and immediately, they hand me in the fly ticket necessery to check in for the airplane

I should say the flight with Turksih airlines was really enjoyable and the plane we flight with felt much more secure compared to the WizzAir's airus.

It is true the last time I flight with with Wizzair's Airbus it was in January and the weather was quite bad as there was harsh winter with a lot of snow and this might be the reason, why my flight with them felt so shaky.

Anyways before entering the plane I had to go throught the regular security procedures, where I had to remove all kind of metals in bas, pockets etc. and go through a metal scanner, they sa an (anti terourisim) measure, besides that one of the airport security personnel checked me thoroughfully if I dont' bring any kind of objects hidden in m clothes. Generally during the check up with the metal scanner and the check up person I was treated like a criminal …
The Turkish airlines, stewardesses and the service was wonderful and we were given a not too bi but decent lunch (my first time I eat in airplane ;)).

Turkish Airlines Istanbul Airport

The flight as went smoothly and we were in Istanbul about 12:00 at midday, after coming down from the bus we were transferred with a bus from the plane like 1 or 1.5 km to Terminal 2 (the terminal of arrival scheduled).
I travelled with another colleague Krasimir, so we had to check our Tickets in the ticket office and let them issue us the flight ticket based on the e-ticket.
After a quick check of our International travelling passport, so called red passpower we were let to enter the duty free zone full of stores for food, beverages, clothes, parfumes suits cafeterias and everything, tech equipment stores, book stores, turkish ice-cream, duner kebaps and mostly any kind of shops and tings one can think of.

AtaTurk airport Istanbul picture
Ataturk Airport Istanbul

Something that catched my attention was that actually the model of how things are ordered and what they sell, the elevators the materials for building in the airport was very much like how things are in westerm country.
I thought it's a bit sad that everybody, everyone is following a modern design and a specific kind of order of things literally followed after the way things are in the western world. This somehow kills partially the uniqueiness of the country's culture and gives it a taste of the west, where the original culture and traditions the country possess somehow stay in the background.

What made me a bad impression on the airport is the too high prices of food and drinks. I just took one coffee (cappucino) and it costed me the solid sum 5 EUR!!
I was even fooled by the Turkish guy as if converted the coffee price from Turkish currency (Liras), when I calculated the price of the coffee was actually about 4 euro.

I've also spotted that in Turkey they're big nationalists. I've been told by Krasi the airport of Istanbul is called Ataturk and it appears this is the biggest airport in all Turkey. I've noticed in the bookstores we went through many many books even in English talking about the greatness of Turkey's first president Ataturk. There is no doubt that Ataturk has done a lot for internationalizing Turkey, it seems in Turkey they consider Ataturk as a national hero, but in my view it is a bit too much, somehow it looked like Ataturk's great respect in Turkey is comparable to the Chineese's love for Mao Dun ….

We had to spend some 4 hours with Krasi before the time for the second fly comes, so we had 4 hours to take a general look over everything offered in stores on the airport to kill some time

I was quite amazed to see so big variety products and goods on the same place, there was basicly everything one needs except furniture offered ont he airport.
The bookstores English books was reallya lot, where I should say it was quite good that about 40% of the books to be sold, were in English (quite odd especially if I take in consideration that most of the Turkish people I know couldn't speak too good English).

The flight to Dubai was scheduled for 16:45 in the afternoon, so 40 minutes earlier I and Krasi went again through the metal scanner again and thanksfully this time we were not searched for guns and bombs by airport police.
 

Emirates Company Logo

The airplane, we flied with was Boeing 777 – really a beatiful flying machine. We were lucky to travel with two other Bulgarians Nikolay and Gergana, who were flying to Chennai India for some kind of personnel training of some company personnel for the company http://Yazaki.com (an international company producing vehicles components) .

Emirates Boeing 777 nice airplane

Emirates airlines's organization service and convenience was really incredible! Emirates has done a great, job really. I had a lot of fun in the airplane in the flight, as they had every passenger sit with a touch screen display computer with a joystick similar to the ones with playstation.
< img src="https://www.pc-freak.net/images/emirates_passenger_personal_touchscreen_computer_Boening_777.jpg" alt="Emirates Boeng 777 Passenger personal computer touch screen device" />
A Boeng 777 Passenger seat view , the passenger touch screen device mounted on seats back

The little touch screen computer had a number of capabilities the passenger could watch a movie, get information about Dubai play his favourite old fashioned games like Pong, Asteroids, Galaga like, Checss, Arkanoid and like 10 outhers of classic games I know from my childhood.
Besides that the passenger's flight personal computer was equipped was even capable to make satellite phone calls chargable directly from VISA or Mastercard Debit or Credit card. The telephone was embedded with the joystick, so on the back of the control device joystick one has the satellite phone, the phone had the capability to call passengers who are inside the plane. To call another traveller inside the airplane you just need to have the passenger seat number.
As a computer security hobbyist, I've noticed one major problem with the phone calls in between airplane travelling passengers.
By default each sit's phone was sett upped to automatically answer phone calls from other passengers, Which means that if I'm a malicious abuser I can easily just call random people in the airplane and do social engineering pretending to be the plane Commander, stewardess or any other personal from the plane crew 😉
On the other hand calling random people, by getting advantage of how the system "hole", could easily give you the opportunity to make yourself random friends or share contacts with people from around the world 😉

Another handy thing about the onboard touch screen computer, I've noticed is the possibility to listen music from a list of a huge database with music. Also a huge database like (300+) movies ready to be seen was available, as well as some serials and some popular podcasts as well as the device even supported e-mail check and some basic internet functionalities (which unfortunately had to be used only after payment with a debit or credit card :|).

Emirates Passenger personal computer touch screen incredible device
Emirates / Skywards Passenger personal computer touch screen device

In the middle of the 4 hours and 15 minutes flight, we were handed in a good portions of dinner meals, which obviously was properly selected to be suitable to be easily digestable and vitaminous food. Also alcohol arabian Coca-Cola, Coffe and tea was offered.

Before the meals was handed in by the few stewards in the airplane, each passenger was handed with a (hot) towel, to carefully clear his hand or face!

Many of the Arabs used the towels to wipe their face sweat, where europeans tended to clean up their hands (probably shows something about the each about arabian and european habits and culture?).

Dubai side view from the airplane before the landing was really amazing, I've never seen so much light concentrated on one place never ever in my life, landing went pretty smoothly thanks God, though it felt a bit more risky than the landing done by the Turkish airlines, pilots.
Maybe there is difference in the landing because it was done during night time and probably landings in night time a way difficult task for the pilot.

Just like in Istanbul, after going down from the plane, via the plane step-ladder we were transported to the Airport with Buses (I was told by Krasimir that, the bus transportation is used becuase, it's a way cheaper than using the equipment for "hot tie" to connect the plane with the terminal via "tuble".
Also maybe its difficult in terms of parking the airplane as the airplane has to drive like 1.5, 2km and park this is an astonishing amount of petrol plane fuel 😉

Anyways just to sum-up my first flight with Emirates/Skywards it was more than enjoyable and nice, everything from the plane take off through the overall airplane experience to landing felt like a veery well crafted, organized and stricktly managed process. It felt like verything happening is perfectly tuned, again really nice feeling 😉
Interestingly inside th airplaine they had a stewardesses which were either Malaysian or Indonesian. The reason for tat was probably because Arabs are crazy about chineese and the variations of yellow races as I've heard from Baky (an Egyptian) as well as from some few Egyptian colleagues I had.

After we went down from the bus transporting us to Dubai's terminal arrival terminal 3, which I think is the only terminal dedicated for visitors in Dubai, we couldn't freely anter Dubai, but we were supposed to go through a biometric security measure the airport here implemented few years ago an Eye Scan .

Dubai Airport Arrival in United Arab Emirates - Airport Terminal 3

The organization on the airport and the information that we were supposed to have the eye scan in order to enter Anyways after some questioning near few of the airport desks and offices, we found or way to the device place where the eye scans took place.

The eye scan process is quick and not that scary as it sounds, they ask you sit on a chair cover left eye, then cover right eye and open the eye widely to make a picture of the iris, then based on some algorthim for interpreting the data and through a complex IT develoepd system a check is done against a database of well known criminals and if no match is found you're given a seal which lets you in Dubai.

The only concern, I have is once they took your eyescan they have this information stored so basicly they have your biometric data and if the information is stolen or send to third parties you can never know, but that's how it goes you know it's life, if you don't do the eye scan you can't go in.
You don't have the option to just choose if you want to have the eye scan or not … My company boss tried to cheat them and walk through inside Dubai without ahe eye scan as he said he went through the eye scan so man times, but still he was obliged to go through the eye scan in order to be let in the city.

After the eye scan on the airport, we had to line up on a long line with arriving people waiting for being let in Dubai, show the copy of the visa with the eye scan seal to airport police officer. He checks the seal the visa, the international passport and then one is asked to stay in front of another camera snd they take a picture of him, once again a security measure …
This is just crazy, I understand that security is important but the measures implemented today on airports are inhuman and even abusive, not to mention they break any privacy one can have in today's world … I'm even scared to think about how a security check on an airport will look like 20 years from now.
Anyways after all the aforementioend checks we were FINALLY allowed to enter Dubai, what first striked me was the size of the buildings, its the first time in my life I've seen a buildings of this amazing size, just incredible!
Also all the buildings are all in color lights and are flashing like spaceships, probably requirement to make sure no airplane tries to land over some of the buildings at night time 😉

Roland, a part time tech consultant for Cadia Holding and a colleague, took us up from the airport and drove us to the hire apartment in Jumeirah Beach, Rimal 6 – ap. number 53, where we're currently settled.

Jumeirah Beach Residence Rimal
Jumeira Beach Rimal buildings

I'm very thankful Roland was there otherwise if we were supposed o pick up a taxi, they would have charged us at least 80, 90 EUR! for bringing us to the apartment.
The prices of transportation here and in general prices are a killing onse. I guess this is pretty normal especially if you consider the countless amount of money invested in Dubai.
Honestly Dubai looks like a paradise on earth, everything is amazingly well organized, as well the technology involved everywhere is on a perfect and a better level than almost everything, I've seen in Holland, Germany and probably almost every other of the Western Europe countries.

Something strange that took my attention here was that in every big mall or big store, they have a special prayer room, which are suited for pracicing muslims to do they're 5 times daily prayers 😉
Here in Dubai I was shocked to see many of the native arabic ladies to be completely wrapped up inside mostly black dresses, where the man were often dressed in a complete dress without a zipper called thobes as well as a sort of a hat like long veil very similar to our orthodox christian priest monks viels.

Dubai man with Thobes in order smiling ;) Dubai man with Thobes lined in order smiling

The veil like dresshing the man wears has a ring on top of the head which has some kind of muslim symbolism probably I'm not aware of. An interesting thing, I've found out here is that this veil for the hat has colors, if it's red this means it's Saudi Arabia a white one means usually the man is from Dubai and the nearby regions o something like that.

When we went out of the airport here the temperature difference was killing it was like 35 Celsium degrees at 21:00 o'clock night time!!

I'm actually lucky to come here in Autumn, temperatures on Autumn are acceptable at night it's like 20-25C and in day usually 35-40C.

The private apartment, where we're accommodated is amazing, it's big like a place, it has everything a flat TV, wireless internet, 2 bathrooms, 4 bedrooms etc.
To enter the buillding one needs to use his special ID card which is secured by a bar code, which has to be tagged on a bar code reader on the building entrance door.
Dubai itself seems more international at times, even than Western europe, you can see everything in Both English and Araabic, so you can understand basicly everything. Everyone speaks from the lowest employee to the office workers an acceptable English and thus communication is not a constraint like in Holland, where many people speak English which is too much influenced by German and german lingual structure.

I'm very thankful to God for blessing me to come to this nice place, now I'm laing over a nice coach and blogging.
By so far, I've seen two of the biggest Dubai Malls and some general architecture, all is collosal in size and reall amazingly built. I've heard from people quality of buildings is not that good as everything is being built in too short time and with cheap materials and by Indian labours who earn like 5 dollars a day. I'm not sure though how truthful is this as I think the quality of the apartment, we're accommodated is great.

Each room is equipped with a Clima, so the temperature inside is steady 22- 24C degrees. The body shock when you go out hence is really severe as usually there is like 10 or 15C degrees difference in temmperature.
Climas are, good but they create too much noise at night it's a bit noisy, but maybe with time one can get used to it.
The cars I saw here in Dubai are amazing, all the cards are really really expensive maybe the cheapeast car in Dubai worths no less than 10 000 o 20 000 EUR.
Euro, Dollars and the official UAE currency dirham are accepted everywhere in shopping malls and food stores and this is really nice.
The taxi drivers charge normal prices here, I was out with Jure and we took taxi few times and each time for like 5-7 km distance, the taxi charged approximately 30 AED per drive.
Random Taxi in Dubai

The Taxis are all luxurious cars with a (airconditioners) climas, it seems they have a metro already operating here as well as comperativfe cheap transportation with buses, but I'm not sure if something could be really cheap here 😉
Everywhere I went here I can notice something really beautiful in terms of either mostly modern design with arabic elemnts or technology. The elevators here are really quick. To go to the last stage of the 36 stages building here in Dubai it tooks the elevator no more than 1 minute 😉
The food here in Dubai seems decent, though its not that good like naturally grownned products or a chicken or cow who was rised in a private farm.
Anyways the food here in United Arab Emirates seems to be way better than the food in Holland and Germany, where it is a bit like plastic.
I don't know if its because of the Sun excessive warmth, God's grace to me or what but I should mark, here in Dubai and maybe in rest of UAE one feels warmer than in Western Europe.

People don't smile too much here especially the people who work on the lower levels of job, clear indicator that they don't earn good money.
I like that they don't smile too much as this reminds me in Bulgaria, where you can see sour faces a way more often than a smiled one.
Here people look a bit less soury than in Bulgaria.

I will be in Dubai 6 more days, so I'll have a clearer picture in my head about the place after some few days. Nevertheless from what I've seen so far, I'm really very amazed and very thankful to God to leeting me see all this new interesting things and culture.
I should take the time to find and take a look in the more traditional places here. Pitily globalization is seriously destroing the local people culture here, and you can't feel the real culture besides the arabic kind of dress, the mosques , prayer rooms and some entwisted muslim architecture with the modernistic buildings.
It will be very nice to see some real camels, elephants or some typically arabic kind of things 😉

Summing it up, the overall atmosphere here, the organzation of thingsm the business climate and infrastructure is something we europeans should learn from.

Converting .odt (Open Office Document) to (MS Word) .doc in console / terminal on Linux and FreeBSD

Thursday, November 15th, 2012

Convert .odt open office document to Microsoft Office Word .doc format on GNU / Linux and FreeBSD unoconv - the universal console all open office supported file format to any other supported
If you need to convert from command line .ODT to .DOC on Linux or FreeBSD without installing the clumsy OpenOffice (particularly useful on older computers on which OpenOffice works too slow and takes too much of useless disk space), check  unoconv

Besides from supporting convert from .DOC to .PDF and a bunch of other formats convertion, I've just learned it supports also convert .ODT to .DOC. 

unoconv is also very simple to use, below is an example of converting .ODT previously created with LibreOffice to .DOC

hipo@noah:~$ unoconv -f doc Document_To_Convert.odt

hipo@noah:~$ ls -al Document_To_Convert.doc
-rw-r--r-- 1 hipo hipo 9885184 14 ное 21,22 Document_To_Convert.doc

hipo@noah:~$ file Document_To_Convert.doc 
Document_To_Convert.doc: CDF V2 Document, Little Endian, Os: Windows, Version 1.0, Code page: -535, Author: HBB, Last Saved By: HBB, Revision Number: 2, Total Editing Time: 04:00, Create Time/Date: Fri Feb 16 14:25:00 2007, Last Saved Time/Date: Fri Feb 16 14:25:00 2007

Here is also a full list of all formats to which unoconv supports convert

hipo@noah:~$ unoconv –show
The following list of document formats are currently available:

bib – BibTeX [.bib]
doc – Microsoft Word 97/2000/XP [.doc]
doc6 – Microsoft Word 6.0 [.doc]
doc95 – Microsoft Word 95 [.doc]
docbook – DocBook [.xml]
html – HTML Document (OpenOffice.org Writer) [.html]
odt – Open Document Text [.odt]
ott – Open Document Text [.ott]
ooxml – Microsoft Office Open XML [.xml]
pdb – AportisDoc (Palm) [.pdb]
pdf – Portable Document Format [.pdf]
psw – Pocket Word [.psw]
rtf – Rich Text Format [.rtf]
latex – LaTeX 2e [.ltx]
sdw – StarWriter 5.0 [.sdw]
sdw4 – StarWriter 4.0 [.sdw]
sdw3 – StarWriter 3.0 [.sdw]
stw – Open Office.org 1.0 Text Document Template [.stw]
sxw – Open Office.org 1.0 Text Document [.sxw]
text – Text Encoded [.txt]
txt – Plain Text [.txt]
vor – StarWriter 5.0 Template [.vor]
vor4 – StarWriter 4.0 Template [.vor]
vor3 – StarWriter 3.0 Template [.vor]
xhtml – XHTML Document [.html]

The following list of graphics formats are currently available:

bmp – Windows Bitmap [.bmp]
emf – Enhanced Metafile [.emf]
eps – Encapsulated PostScript [.eps]
gif – Graphics Interchange Format [.gif]
html – HTML Document (OpenOffice.org Draw) [.html]
jpg – Joint Photographic Experts Group [.jpg]
met – OS/2 Metafile [.met]
odd – OpenDocument Drawing [.odd]
otg – OpenDocument Drawing Template [.otg]
pbm – Portable Bitmap [.pbm]
pct – Mac Pict [.pct]
pdf – Portable Document Format [.pdf]
pgm – Portable Graymap [.pgm]
png – Portable Network Graphic [.png]
ppm – Portable Pixelmap [.ppm]
ras – Sun Raster Image [.ras]
std – OpenOffice.org 1.0 Drawing Template [.std]
svg – Scalable Vector Graphics [.svg]
svm – StarView Metafile [.svm]
swf – Macromedia Flash (SWF) [.swf]
sxd – OpenOffice.org 1.0 Drawing [.sxd]
sxd3 – StarDraw 3.0 [.sxd]
sxd5 – StarDraw 5.0 [.sxd]
tiff – Tagged Image File Format [.tiff]
vor – StarDraw 5.0 Template [.vor]
vor3 – StarDraw 3.0 Template [.vor]
wmf – Windows Metafile [.wmf]
xhtml – XHTML [.xhtml]
xpm – X PixMap [.xpm]

The following list of presentation formats are currently available:

bmp – Windows Bitmap [.bmp]
emf – Enhanced Metafile [.emf]
eps – Encapsulated PostScript [.eps]
gif – Graphics Interchange Format [.gif]
html – HTML Document (OpenOffice.org Impress) [.html]
jpg – Joint Photographic Experts Group [.jpg]
met – OS/2 Metafile [.met]
odd – OpenDocument Drawing (Impress) [.odd]
odg – OpenOffice.org 1.0 Drawing (OpenOffice.org Impress) [.odg]
odp – OpenDocument Presentation [.odp]
otp – OpenDocument Presentation Template [.otp]
pbm – Portable Bitmap [.pbm]
pct – Mac Pict [.pct]
pdf – Portable Document Format [.pdf]
pgm – Portable Graymap [.pgm]
png – Portable Network Graphic [.png]
pot – Microsoft PowerPoint 97/2000/XP Template [.pot]
ppm – Portable Pixelmap [.ppm]
ppt – Microsoft PowerPoint 97/2000/XP [.ppt]
pwp – PlaceWare [.pwp]
ras – Sun Raster Image [.ras]
sda – StarDraw 5.0 (OpenOffice.org Impress) [.sda]
sdd – StarImpress 5.0 [.sdd]
sdd3 – StarDraw 3.0 (OpenOffice.org Impress) [.sdd]
sdd4 – StarImpress 4.0 [.sdd]
sti – OpenOffice.org 1.0 Presentation Template [.sti]
stp – OpenDocument Presentation Template [.stp]
svg – Scalable Vector Graphics [.svg]
svm – StarView Metafile [.svm]
swf – Macromedia Flash (SWF) [.swf]
sxi – OpenOffice.org 1.0 Presentation [.sxi]
tiff – Tagged Image File Format [.tiff]
vor – StarImpress 5.0 Template [.vor]
vor3 – StarDraw 3.0 Template (OpenOffice.org Impress) [.vor]
vor4 – StarImpress 4.0 Template [.vor]
vor5 – StarDraw 5.0 Template (OpenOffice.org Impress) [.vor]
wmf – Windows Metafile [.wmf]
xhtml – XHTML [.xml]
xpm – X PixMap [.xpm]

The following list of spreadsheet formats are currently available:

csv – Text CSV [.csv]
dbf – dBase [.dbf]
dif – Data Interchange Format [.dif]
html – HTML Document (OpenOffice.org Calc) [.html]
ods – Open Document Spreadsheet [.ods]
ooxml – Microsoft Excel 2003 XML [.xml]
pdf – Portable Document Format [.pdf]
pts – OpenDocument Spreadsheet Template [.pts]
pxl – Pocket Excel [.pxl]
sdc – StarCalc 5.0 [.sdc]
sdc4 – StarCalc 4.0 [.sdc]
sdc3 – StarCalc 3.0 [.sdc]
slk – SYLK [.slk]
stc – OpenOffice.org 1.0 Spreadsheet Template [.stc]
sxc – OpenOffice.org 1.0 Spreadsheet [.sxc]
vor3 – StarCalc 3.0 Template [.vor]
vor4 – StarCalc 4.0 Template [.vor]
vor – StarCalc 5.0 Template [.vor]
xhtml – XHTML [.xhtml]
xls – Microsoft Excel 97/2000/XP [.xls]
xls5 – Microsoft Excel 5.0 [.xls]
xls95 – Microsoft Excel 95 [.xls]
xlt – Microsoft Excel 97/2000/XP Template [.xlt]
xlt5 – Microsoft Excel 5.0 Template [.xlt]
xlt95 – Microsoft Excel 95 Template [.xlt]

 

unoconv is said to support convertion between any to any document format that is already supported by OpenOffice / LibreOffice. The script is written by Dag Wieers (users of Fedora, RHEL and other RPM based distros should remember him well. DGW repositories always were of great help where some kind of not main stream software has to be installed on RPM based Linux. You might want to check unoconv's official website which gives good overview on it.

Though the tool is written for Linux, there is a BSD users port in freshports.

How to Share virtual terminal SSH between mutliple logged in users with screen / Create multi user sessions with GNU screen

Friday, November 2nd, 2012

How to share bash shell between multiple users with gnu screen - share virtual terminal via ssh through multiple users screen

GNU Screen is great utility with a number of helpful features. Maybe there is no UNIX / (GNU / Linux),  admin which doesn't use screen or some similar terminal emulator prog. daily basis.

Little might know however abut a kewl functionality allowing, a few logged in users via ssh to share one terminal.

Sharing a virtual terminal with another person, is very helpful if you want to teach someone a bit of Linux / UNIX basics, showing him how certain commands works on a system etc. etc.

Shared terminal session is very helpful in case of need for remote system administration or support, whether instead of explaining someone over the phone for 20 minutes or an hour a bunch of commands he has to run to achieve something,  you can login share terminal with screen and do whatever necessary  in front of his eyes.

Shared screen session, can actually in theory allow unlimited people to watch what a certain one is doing in a his virtual terminal. This is very helpful for example in Computer Laboratories for Teachers to teach students FreeBSD, Linux, bash, csh shell scripting, perl or whatever programming language taught.

Allowing two or more logged in users with same user credentialsto use screen can be done pretty easy, one primary user (creating the initial screen terminal session), should just launch GNU screen:

test@noah:~$ screen

The second, third, 4th, 5th and the rest of users should login via SSH session with same user, lets say test and launch screen -x

test@noah:~$ screen -list
There is a screen on:
    20147.pts-5.noah    ( 1.11.2012 18,27,50)    (Attached)
1 Socket in /var/run/screen/S-hipo.

 

test@noah:~$ screen -x

I'm not sure if screen has some kind of limitation on how many users maximum can connect to a screen session, but I guess it should be high enough for dozen of people –  at least 512 or 1024 people to connect and share one shell simultaneously.

In some Linux distributions (versions) RHEL, CentOS it is possible screen -x not to work out of the box, because screen binary is not set to be SUID.
On latest Debian versions and deb derivatives thanksfully, screen bin is by default installed as SUID so screen -x works fine.

hipo@noah:~$ ls -al /usr/bin/screen
-rwxr-sr-x 1 root utmp 364088 29 юли  2009 /usr/bin/screen

Enabling mutiuser screen login via a running screen session is possible by pressing:

CTRL + a + : and typing in prompt  multiuser on

In case you want to have a system user which by default allows a multiple logged in users to share shell you can use a little 'hack' just change in /etc/passwd the field recordfor user shell (/bin/bash) with (/usr/bin/screen)

Lets say you want to allow the user test support multiple logged in users share one shell the record for test in /etc/passwd should look smth. like:

test:x:1003:1004:,,,:/home/test:/bin/bash

Change it with your favourite text editor to:

test:x:1003:1004:,,,:/home/test:/usr/bin/screen

If you have some problems running screen, check permissions and eventually exec as superuser:

chmod u+s /usr/bin/screen


tmux – FreeBSD, BSD* and Linux alterinative to GNU screen terminal emulator

Thursday, November 1st, 2012

tmux gnu screen (newer) alternative terminal emulator for Linux, FreeBSD, OpenBSD
After my yesterday blog post explaining basis GNU screen use, I've decided to blog a bit more on the topic as I find terminal emulation to be quite interesting 🙂

Just like on on GNU / Linux, GNU Screen is available and installable via FreeBSD port – /usr/ports/sysutils/screen. Though screen is compatible with FreeBSD, it is not from scratch written to run on BSD architecture, but rather ported. Besides, that within the fild of terminal emulation, there are plenty of recent developments and feature richer programs available from install already. One of those I reference is tmux..  tmux's is superior to screen in that it is a re-writen terminal (from scratch) terminal emulator – multiplexer (as referenced in man tmux).

Another fundamental difference is it comes licensed under "less restrictive" BSD license (interesting fact is BSD has only 3 clauses), whether to GNU Screen applies GPLv 2 / 3 (4 freedoms clauses).
Tmux is presently existing for multiple architectures besides BSD including Linux and even as I check in its documentation has support for HP-HX and IRIX.

To install / use tmux on FreeBSD / NetBSD install port /usr/ports/sysutils/tmux with

: freebsd# cd /usr/ports/sysutils/tmux
freebsd# make install clean
....

Installing mux on Debian GNU Linux is available straight from default package repositories, i.e. :

debian:~# apt-get install --yes mux
....

It is inteersting fact to mention, since OpenBSD 4.6 – Mr. Theo De Raddt and friends decided tmux to part of the base system! This means a lot since OpenBSD has always existed with the main ideology to be the most secure UNIX / BSD based OS around. This fact probably means from purely secure stand point tmux might be better choice than gnu screen

Another reason why tmux might be better alternative to Screen for BSD users besides security, is its configuration is much more simplistic whilst compared with Screen. If you have used screen, already you should surely know how complicated things are when it comes to configuration and screen (set) variables.

tmux's pre-defined command bindings are similar to SCREEN's, the difference is instead of Screen's:

CTRL + a + (letter)

key bindings are invoked with:

CTRL + b + (kbd letter)
 

People who already are acustomed to screen (like myself 🙂 )  would not be easy to re-learn use CTRL + b, thus it is helpful to revert default tmux CTRL + b  to screen's CTRL + a.


http://niallohiggins.com/2009/06/04/tmux-a-bsd-alternative-to-gnu-screen/

$ echo 'set -g prefix C-a' >> ~/.tmux.conf
$ echo 'bind-key C-a last-window' >> ~/.tmux.conf

Moving over virtual windows in tmux just like in screen can be done using:

CTRL + a + 1 … 9

One has to be careful, as pressing CTRL + a should be done with a llittle delay before pressing the next letter, otherwise the command does not take affect.
 

Detaching emulated session, in tmux is done like in screen with pressing:

CTRL + a + (d [half a sec delay before pressing])

Attaching to latest detached tmux session is done with:

tmux attach

 

There are plenty of other stuff and applications but here I will not get in detail as it is all  in man page.


tmux
is great for BSD users,
but for Linux users  byobu is  more interactive and user friendly (out of the box – with no need for extra configs)

Here are 2 screenshots from tmux website:
advanced tmux use 4 squares split virtual terminals / tmux use screenshot

tmux screenshot with shared multiple wins

Make your Debian Linux and FreeBSD terminal / console display daily verse from KJV Bible

Saturday, September 26th, 2009

Since I am a Christian and I want to daily be in touch with the Holy Scriptures and I am most of the time spending on my Linux system. I have came to the conclusion that it’s beneficial to
have a daily bible displaying everytime after login in console or terminal in X.

Therefore I thought it might be helpful to somebody out there who would wish to have short sentece of bible on each Linux / FreeBSD machine login.

Here is how to set bible quote to appear everytime after login in Debian Linux:
First install the verse program through:


# apt-get install verse

Next if you want to make the verse display global for the system put :


if [ -f /usr/bin/verse ]; thenecho/usr/bin/verse fi

in /etc/bash.bashrc
On the other hand if you’d like to make it local for your account or a setnumber of accounts on your system append


if [ -f /usr/bin/verse ]; thenecho/usr/bin/verse fi

to your user ~/.bashrc as well as to the home directories of the users you’d like to display a bible verse (if for several users).

If you decide to do that be aware that your login via sftp won’t work anymore – forget about sftp transfers ….

Every time you attempt to login you’ll experience the error message:

“Received message too long”. However that ain’t a real problem for me since I use my system as a desktop and don’t sftp or ssh remotely to my desktop.
In order to prevent this issue where sftp interactivity gets broken it is better to add verse app to execute via /etc/profile i. e. in /etc/profile on top of file add:


if [ -f /usr/bin/verse ]; then echo /usr/bin/verse fi

On FreeBSD the same is achieved a bit differently. Here is how to install it in FreeBSD:

First install fortune program and then install the fortune bible module; In FreeBSD bible quotes are only available via the good old fortune program:

cd /usr/ports/misc/fortune-mod-bible;
make install clean

Next open:the /etc/profile file and insert in the end of it:

echo /usr/games/fortune /usr/local/share/games/fortune/bible

On your next login your FreeBSD should be showing a bible
sentence (quotation) after each and every login.
What is different with Debian’s verse program is that verse keeps displaying one exact quote of the bible during every login for the whole day,
where in FreeBSD the fortune-mod-bible does show a different (random) bible sentence on each and every user login.

How to convert OGG Vorbis .ogg to MP3 on GNU / Linux and FreeBSD

Friday, July 27th, 2012

I’ve used K3B just recently to RIP an Audio CD with music to MP3. K3b has done a great job ripping the tracks, the only problem was By default k3b RIPs songs in OGG Vorbis (.ogg) and not mp3. I personally prefer OGG Vorbis as it is a free freedom respecting audio format, however the problem was the .ogg-s cannot be read on many of the audio players and it could be a problem reading the RIPped oggs on Windows. I’ve done the RIP not for myself but for a Belarusian gfriend of mine and she is completely computer illiterate and if I pass her the songs in .OGG, there is no chance she succed in listening the oggs. I’ve seen later k3b has an option to choose to convert directly to MP3 Using linux mp3 lame library this however is time consuming and I have to wait another 10 minutes or so for the songs to be ripped to shorten the time I decided to directly convert the existing .ogg files to .mp3 on my (Debian Linux). There are probably many ways to convert .ogg to mp3 on linux and likely many GUI frontends (like SoundConverter) to use in graphic env.

SoundConverter Debian GNU Linux graphic GUI environment program for convertion of ogg to mp3 and mp3 to ogg, convert multiple sound formats on GNU / Linux.

I however am a console freak so I preferred doing it from terminal. I’ve done quick research on the net and figured out the good old ffmpeg is capable of converting .oggs to .mp3s. To convert all mp3s just ripped in the separate directory I had to run ffmpeg in a tiny bash loop.

A short bash shell script 1 liner combined with ffmpeg does it, e.g.;

for f in *.ogg; do ffmpeg -i "$f" "`basename "$f" .ogg`.mp3"; done.....

The loop example is in bash so in order to make the code work on FreeBSD it is necessery it is run in a bash shell and not in BSDs so common csh or tcsh.

Well, that’s all oggs are in mp3; Hip-hip Hooray 😉