27 November 2010

Ubuntu - Batch Resize Photos

First we need imagemagick tool.
$sudo apt-get install imagemagick
Then we will resize all jpeg pictures with height over 1024 and width over 1280 from current folder, overwriting them (with 75 jpg quality):
$mogrify -quality 75 -resize '1280x1024>' *.jpg 
That's all.

EDIT: I have just found a better way! Download xnconvert. Just create a profile and use it every time. It is working perfectly with Ubuntu (10.04 - 12.04). You can also use this embedded in XNViewMP, a great multi-platform image viewer.

13 May 2010

Ubuntu and Vodafone Mobile Broadband (Huawei K3765)


To get Vodafone Mobile Broadband with Huawei K3765 3G modem working on Ubuntu Lucid all you have to do is this:
1. Open up a terminal and enter this: (working internet connection required)
     $ sudo apt-get install usb-modeswitch usb-modeswitch-data
    Now you can close the terminal window.
    Note: You don't have to do this step with Ubuntu 11.10 and after.
2. Insert USB modem.
3. Open up from menu: System-Preferences-Network Connections. Select "Mobile Broadband" tab and click add. Select your device (if not already done). Next choose your country, provider and data plan. On next screen you have all the settings set up. All you have to do is to enter your pin and check "Connect automatically".

That it, now you have a working internet connection (max ~700KB/s).  :-)

Update: I have tested the stick in Raring 13.04 and it is working out of the box!
Update 2 : In 13.10 (saucy) i ran into troubles. I could saw the adapter with lsusb but network manager did not see it. I hat to install mdem-manager-gui and enable it from there.
  $ sudo apt-get install modem-manager-gui
Update 3 : In 14.04, again, i had some troubles. From lsusb command output i have got the vendor and product code (Bus 003 Device 003: ID 12d1:1520 Huawei Technologies Co., Ltd. K3765 HSPA)  for the following command:
  $ sudo usb_modeswitch -c /etc/usb_modeswitch.conf -v 12d1 -p 1520
Then i had to re-plug the modem and everything worked.

01 January 2010

Experience with Ubuntu Karmic on ASUS EeePC 1201N




Asus EeePC 1201N specs:
Display:  12.1 inch, 1366 x 768 pixels
CPU:        1.6GHz Intel Atom N330 dual core
Graphics & chipset: NVIDIA ION (GeForce 9400M)
OS: Windows 7 Home Premium
Memory: 2GB DDR2
Storage: 320GB HDD
Wireless : Realtek RTL8191SE
LAN: Atheros AR8132 Gigabit Ethernet
Bluetooth:
I/O: HDMI, VGA, 3 USB 2.0 ports, SD card slot, mic, headphones
Webcam: 0.3MP
Touchpad: Supports multitouch gestures
Battery: 6 cells 

After a saw how Windows 7 works on it i decided to install Ubuntu 9.10 Karmic Koala x86 edition.
Problems:

1. Installer could not detect any networking card (no wifi no lan). So, after it completes , i have booted with acpi=off kernel parameter and LAN began to work ! Very strange because i only need it once.

2. WiFi card is not known by current kernel so you have to download the drivers from here (Realtek site). Uncompress the file and install the driver withe these commands : sudo su; make; make install; reboot;
Also, the WIFI performance is very bad. 

3. The networking is unreliable (os crashes on large file transfer) i think  because of this bug: nForce2_smbus conflicts with ACPI region SM00. Let's hope that they will fix it soon. 

4. Under normal usage the battery lasted  only for 3,5 hours, not 8!

Good stuff: Everything else works as expected ! :-)



On this netbook, Ubuntu Karmic, with all this problems,, it's a much better experience than Win7!