A következő címkéjű bejegyzések mutatása: software. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: software. Összes bejegyzés megjelenítése

2015. január 8.

Gnome Flashback Services personalization on Ubuntu 14.04 LTS

 Here are the settings and adjustments I made on Gnome Flashback Services (with Metacity) to meet my needs:

Setting up HP Compaq TC4400's native features

Pen features
  • Pen, eraser and button are recognized out of the box.
  • Pressure sensitivity has to be set specifically for the software you use.
  • Gimp setup for pen usage (pressure sensitivity and differentiation between the pen and the eraser:
    Gimp > Edit > Input devices > Serial Wacom Tablet eraser/stylus > set Mode "screen"
Screen rotation
On-screen buttons
  • Ctrl-alt-del button is recognized out of the box.
  •  Jog dial for scrolling: the code in my previously published solution works fine.
  • Pen activated buttons: not working. Linked solution have not been tested.
  • Fingerprint Sensor: not working. No possible solution have been tested.
  • Ambient Light Sensor: not working. No possible solution have been tested.

Setting up everything else

Terminal:

Terminal usage
  • works as usual. 
  • keyboard shortcut (native) to open: Ctrl+Alt+T
Bash scripts


Desktop:
 
 Workspaces:
  • works as usual (although only in Metacity version of Gnome2 Flashback)
  • to configure: right click on the workspaces icon in the bottom right corner of the screen > Preferences
  • keyboard shortcut (native) to navigate between workspaces: Ctrl+Alt + arrow keys
Menu panel (top and bottom) customization:
  • works as usual (except for how to reach the right click menu)
  • Alt+ right click to reach the panel menu


Synaptic Package Manager
  • install from Software Center
  • works as usual


File manager 

Nautilus
Nautilus went through major changes since Lucid Lynx, so let's see what remains of it:
  • Nautilus was renamed to "Files"
  • Compact View --> removed
  • File or folder selection by simply typing --> still exists
  • New Document > Empty Document --> still exists
  • Menu bar --> removed.
  • Menu button --> added. It's a gear wheel icon in the top right corner
  • ‘Go’ menu --> removed
  • Enter Location... --> added
  • F3 split screen --> removed (this is most annoying!)
  • Tabs --> still exists.
  • ‘tree’ view --> not default for List view, but you can set it in Preferences
  • Bookmark menu --> still exists. Only shown if there are items in it. 
  • Locations' default bookmarks --> added. Cannot be removed and icon cannot be changed, but name and location can be edited.
  • Backspace shortcut to return to parent folder --> still exists.
Nautilus scripts
  • Scripts folder was moved from /home/user/.gnome2/nautilus-scripts to /home/user/.local/share/nautilus/scripts
  • Right clicking to reach Scripts menu only works when you click on a file or folder.
  • Otherwise works as usual.
  • A graphical user interface to manage nautilus scripts now exists.
 Nemo
 Nemo is an alternative to "Files" (Nautilus).

  • can be installed from Software Center ("Files (nemo)")
  • works just like the good old Nautilus, with F3 dual pane and every other feature.
Nemo scripts
  • works just like Nautilus scripts.
  • scripts folder is /home/user/.gnome2/nemo-scripts
I chose Nemo as my default Ubuntu 14.04 File manager.
To set Nemo to be the default file manager, you have to follow these steps:
  1. To make Nemo the default file manager run in terminal:
    xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
  2. To make Nemo handle the desktop run in terminal:
    gsettings set org.gnome.desktop.background show-desktop-icons false
    gsettings set org.nemo.desktop show-desktop-icons true
    
  3. (Optionally) To remove desktop shortcuts created by Nemo run in terminal:
    gsettings set org.nemo.desktop home-icon-visible false; gsettings set org.nemo.desktop trash-icon-visible false; gsettings set org.nemo.desktop computer-icon-visible false; gsettings set org.nemo.desktop volumes-visible false
    
More information on Nemo can be found here and here.

2014. január 15.

Burning DVDs and failing.

With my Samsung SE-208DB/TSBS Black.
It is connected to 2 USB slots, 1 directly and 1 with extension. 


GnomeBaker 
DVD+R, Speed: 8X, Mode: auto. 
1. Time: 71 min.
Output:

Writing an image:
I: -input-charset not specified, using utf-8 (detected in locale settings)
Using 321030_2052795755951_117000.JPG;1 for  Photos_2012_2/jul/321030_2052795755951_1177642115_n.jpg (321030_2052795755951_1177642115_n (1).jpg)
Total translation table size: 0
Total rockridge attributes bytes: 121887
Total directory bytes: 243712
Path table size(bytes): 1104
Max brk space used 108000
2174849 extents written (4247 MB)
Executing 'builtin_dd if=/home/user/Data25.iso of=/dev/sr0 obs=32k seek=0'
/dev/sr0: "Current Write Speed" is 6.1x1352KBps.
:-( unable to WRITE@LBA=16f290h: Input/output error
:-( write failed: Input/output error
/dev/sr0: flushing cache
:-( unable to FLUSH CACHE: Input/output error
:-( unable to SYNCHRONOUS FLUSH CACHE: Input/output error
Also failed.
this is simple non-sense. I have a brand new DVDRW, burned sucsessfully 3 DVD so far, and now it fails. This is unbelievable.




2. Time: 79 min.

Executing 'genisoimage -gui -V DiscLabel -A GnomeBaker -p à -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/GnomeBaker/gnomebaker-C0YY9W | builtin_dd of=/dev/sr0 obs=32k seek=0'
I: -input-charset not specified, using utf-8 (detected in locale settings)
/dev/sr0: "Current Write Speed" is 6.1x1352KBps.
Total translation table size: 0
Total rockridge attributes bytes: 224932
Total directory bytes: 428032
Path table size(bytes): 1850
Max brk space used 1e6000
2000215 extents written (3906 MB)
/dev/sr0: flushing cache
/dev/sr0: updating RMA

/dev/sr0: closing session





Here's a failure for 2 times:
Executing 'genisoimage -gui -V DataAngel_25 -A GnomeBaker -p A -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/GnomeBaker/gnomebaker-CC7X9W | builtin_dd of=/dev/sr0 obs=32k seek=0'
I: -input-charset not specified, using utf-8 (detected in locale settings)
Using 321030_2052795755951_117000.JPG;1 for  Photos_2012_2/képek facebookról Julinak/321030_2052795755951_1177642115_n.jpg (321030_2052795755951_1177642115_n (1).jpg)
/dev/sr0: "Current Write Speed" is 6.1x1352KBps.
:-( unable to WRITE@LBA=7c9d0h: Input/output error
:-( write failed: Input/output error
/dev/sr0: flushing cache
:-( unable to FLUSH CACHE: Input/output error
:-( unable to SYNCHRONOUS FLUSH CACHE: Input/output error

2012. április 15.

Learning to type

I'm trying out kTouch now, and creating a set of meaningful words for my own practice. Well, practicing letters is a must do, but it's much better to have regular words too...


2012. április 3.

Testing gscan2pdf output formats

Lineart 300dpi 260x200mm scans
123 pages

PDF
Downsample to: no downsampling

Compression: Automatic
FileSize: 29.1MB

Compression: LZV
FileSize: 29.1MB

Compression: ZIP
FileSize: 29.1MB

Compression: PackBits
FileSize: 47.4MB

G3 and G4 encoding didn't work for me.

Compression: PNG
FileSize: 30.4MB

Compression: JPEG 75% compressed
FileSize: 221.7MB

Compared to my method of converting pnm through ps to pdf:
FileSize: 22.4MB (This is the smallest pdf on 300dpi)

DJVU
FileSize: 13MB

Compared to my method of converting pnm to djvu:
FileSize: 13MB (Equal size)

gscan2pdf Session
FileSize: 591.1MB

PNM
Sum FileSize: 114.6MB

GIF
Sum Filesize: 33.5MB

PS
not working.

TIFF
Can change compression method (LZW, ZIP, JPEG, PackBits, G3, G4, none)
not tested

JPEG
Can change compression quality
not tested

2012. április 2.

Using the Canon LiDE 210 on Ubuntu

Now, that I got "Alice" (laptop) to recognize "Susy" (scanner), I will try out a variety of scanning software to pick the best for my needs.

Here's a list of "frontends" that work with SANE (Scanner Access Now Easy)
(Here's a daemon for mapping scanner buttons, for the case I find the ideal software.)

This is what I do:
a) I digitalize black-and-white documents in large amounts.
b) I digitalize color photographs
This is what I need a scanning program to be:
a) FAST
b) accurate in color

The winner of FAST scanning of monochrome documents is:


Reviews follow below.


a) FAST scanning of monochrome text documents

Command Line Frontends

scanimage
installation: comes with SANE.

pro:
- easy to use
- easy to define scan area (x and y in millimeters)
con:
- can't be automated to scan repeatedly to numbered documents. -> NOT ANYMORE!

testing:

scanimage --mode Lineart --resolution 1200 >img1200.pnm
approx 50 seconds. it is so detailed it is basically grayscale. 17.1MB 10096x14173px
scanimage --mode Lineart --resolution 600 >img600.pnm
approx 10 seconds. good quality. a bit noisy. 4.3MB 5048x7086px
scanimage --mode Lineart --resolution 300 >img300.pnm
approx 6 seconds. good quality. same amount of noise as on res600. maybe it's better to scan res600 and resize 50% than to scan res300. 1.1MB 2520x3543px
scanimage --mode Lineart --resolution 150 >img150.pnm
approx 6 seconds. Quality not acceptable. 271.6KB 1250x1771px

further testing: I'll have to play with threshold and other parameters to maybe get a better result.

scanadf
installation: scanadf needs the SANE source code to be patched to install it. this means I should patch, configure, make and make install, which, now, I will not do.

Graphical Frontends

Eikazo
installation: through synaptic

pro:
- can configure all what scanimage can
- can save files numbered
- can do postprocessing
con:
- no pnm, only tiff or jpeg

testing:

Lineart with various resolutions and output file type

for some reason Eikazo likes to die on me. I set some parameters, scan, and then I cannot change anything anymore, and cannot scan anything anymore...

openDIAS
This is an archiving software. yes, it can scan using SANE, but it's main purpuse is to crate tagged, searchable a database from all the files you scan.
I don't need such a thing. I don't install.

gscan2pdf
pro:
- configuration is the same as scanimage with the same defaults
- can post-process: rotate, clear, OCR
- can save to a variety of files (pdf, gif, jpg, png, pnm, ps, tif, text, gscan2pdf-session, djvu). pdf and tif are with a variety of options on compression or downsampling.
- it's quick to scan. I just have to press the button everytime I'm finished positioning the next page.
- you can click "scan" button to queue the next scanning to save some seconds.
con:
- I found none so far.
- takes 13 seconds to reposition the head. But this is probably a hardware thing.
Testing #1:


I easily made the scanner to go post it's scannig size limits. No catastrophe happened, thank god. SANE ReadMe warns, that this type of abuse can damage the scanner hardware.
Okay, I think it was the "Page Options" "All" which is probably for Automated Document Feeder. I don't dare to change # to more than 1. Anyway, it's written in scanadf's manual: "Use of this program with backends that do not support ADFs (e.g. flatbed scanners) will likely result in repeated scans of the same document. In this case, it is essential to use the start-count and end-count to control the number of images acquired."
scanning quality, size and time results are the same as in scanimage.

Testing #2

In the reality, it takes 19 seconds to scan a 200x280mm page. It takes 6 seconds to scan 300dpi, and it takes 13 seconds to reposition. This is awful. I will have to see if there is something to be done to fasten the repositioning.

2011. május 30.

Software checklist

For image editing:
  • Gimp
  • ImageMagick (convert, mogrify, identify)
  • mkbitmap in Potrace
  • DjvuLibre-bin (cjb2, djvm)
  • PdfJam (pdfjoin)
  • Ubuntu's ps2pdf12
  • Ubuntu's pdfimages
  • InkScape
  • FontForge for fonts
For windows programs:
  • VirtualBox
  • wine
For office stuff:
  • OpenOffice
  • Gedit
For E-Books:
  • Sigil
  • Calibre
  • Comic2lrf
Internet tools:
  • Firefox with Sun Java 6 JRE plugin for comfort
  • Chrome for stability
  • FileZilla for FTP
  • Transmission for Bittorent
  • DC++
  • Skype
  • Seamonkey for HTML editing
Viewing /editing media:
  • Ubuntu Movie Player
  • Mplayer & Mencoder
  • SoundConverter with MP3 plugin
  • Ubuntu Sound Recorder
Burning DVDs, CDs:
  • K3B
System configurations:
File manipulations:
  • Nautilus
  • MuCommander
  • RSync
Tablet tools:
  • Xournal
  • Cellwriter
  • OnBoard

2011. április 22.

Mplayer is too quiet

Actually my problem was only, that MPlayer's own volume wasn't turned up.
Key 9 and 0 are used for volume - and + on your keyboard.

However, here's the manual on MPlayer volume adjustment.

MPlayer error messages

I get this when I open anything in MPlayer:
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing Movie.mp4.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [avc1] 800x440 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.


To get rid of all of this, do the following:
1.)Turn bluetooth on.
2.) Disable LIRC support.: ~$ sudo gedit /etc/mplayer/mplayer.conf and add the line: nolirc=yes
3.) Define X11 as default video output: in ~$ sudo gedit /etc/mplayer/mplayer.conf search for the line: # vo=xv,x11 -> uncomment (remove # from the beginning of the line), change to vo=x11, or whatever is the best.

2011. április 21.

Editing, manipulating Subtitles

I used Subtitle Processor under Windows XP.

Under Ubuntu:
1.) Subtitle Editor (from Synaptic): something is wrong with the input methods and I cannot type in anything, and I don't like the environment either, so Subtitle Editor is DROPPED.

2.) AegiSub: nope, it didn't play the sounds, and I didn't like the environment.

3.) Gnome Subtitles: LIKE :-) Can do shifting easily.

2011. április 20.

DVD ripping with MEncoder

From where I learned:
MEncoder DVD to MPEG-4
Making a high quality MPEG-4 (divx) rip of a DVD movie (mplayerhq manual)
HOWTO: rip DVDs in MPEG-4 (ubuntuforums)

And this turned out to be the most useful:
SimpleRip: Ripping / Encoding DVD-s to Xvid with MEncoder

An automated way should be AcidRip, but it somehow got the code messed-up, when shell-script exported, and I had to correct it manually. What I learned from it is how to handle frameno.avi and divx2pass.log:
#!/bin/sh
echo "***********************************************************"
echo "Automated script created by AcidRip - http://acidrip.sf.net"
echo "***********************************************************"

unlink frameno.avi 2> /dev/null
mencoder dvd://1 -dvd-device /dev/dvd  -aid 129 -oac mp3lame -lameopts mode=2:cbr:br=128  -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=740:vhq:v4mv:vqmin=3:vpass=1 -vf crop=672:432:24:22    -o "/dev/null"
mencoder dvd://1 -dvd-device /dev/dvd  -aid 129 -oac mp3lame -lameopts mode=2:cbr:br=128  -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=740:vhq:v4mv:vqmin=3:vpass=2 -vf crop=672:432:24:22    -o "/home/user/movie.avi"
unlink divx2pass.log  2> /dev/null
As for the subtitle (.idx + .sub = VOBSUB format):
I want to convert them to SRT.
--> I used AVIDEMUX (downloaded from Synaptic) It worked fine.

2011. április 19.

DVD Burning

I plugged in my NEC AD-7201A (manufactured in April 2008) DVD writer drive via USB with the intent to burn a lot of DVD data disks.

1.) I tried Gnome's own burner software, but it's not really working anyway (It's stuck at "starting to record, after finishing a complete simulation), so I downloaded k3b.

2.) k3b seems to work fine. And it's very similar to Nero, which I used previously.

2011. március 17.

How to install Windows XP from a pendrive?

Use FlashBoot!

Total Commander alternative for Ubuntu

1.) DoubleCommander -> it has all the functions (incl. tabs), but it froze down on me repeatedly -> dropped.

2.) muCommander -> it's java based and has no tabs, but it worked fine for file manipulations. -> keep.

Flash Plugin is crashing constantly

The newest version of Adobe Flash Plugin crashes every other time.
I solved this by using an older version which I found in my Jaunty installation folder.
Here it is - a 2009-11-14 version of Flash Plugin.

Now testing version 10.3.181.14.

2011. március 10.

2011. január 6.

SED in text editing.

Sorry guys for the comments are in Hungarian language, but it was so complicated and I spent the whole day doing it.

The project was about: matching two lines within a file, within a single text file. Actually, it was matching the beginning of following two lines and comparing them. It was a dictionary having separate lines for all the meanings and the point was to put all the meanings in a single line.

# szótárunkban minden szócikk minden jelentése külön sorban volt.
# egy szócikk és egy jelentés kettő darab space karakterrel volt szeparálva, sehol máshol nem volt két space a fájlban.
# feladatunk, hogy egy szócikk összes jelentését egy sorba tegyük, pontosvesszővel elválasztva.
# ez végül így sikerült:
# sed -n 'x; s/\(.*\n\)\(.*$\)/\2/; G; s/\(.* \)\(.*\)\n\1\(.*\)/\1\2\; \3/; h; s/\(.*\n\)\(.*$\)\|\(^.*\)\(; .*$\)/\2\4/w output.txt' input.txt
# mindezek után még ki kellett törölni a felesleges sortöréseket geditben.
# a parancsok kifejtése alább.

sed -n ' # csendes üzemmód.
x; # a pattern-space-be behívott sort felcseréli a hold space-szel
s/\(.*\n\)\(.*$\)/\2/; # az előző cycle-ből megmaradt hold-space-es anyagból leszedi az első sort, ha van, ha nincs, nem csinál semmit.
G; # hozzáírja a most hold-sp-ben levő új sort a most pattern-sp-ben levő régihez egy sortörés után
s/\(.* \)\(.*\)\n\1\(.*\)/\1\2\; \3/; # ha a p-sp-ben levő 2 sor eleje karakterre megyegyezik, akkor a második sorból törli a szócikket és hozzávezeti a jelentéseket az első sorhoz egy pontosvessző és egy space kíséretében. ha nem egyezik meg, akkor marad a 2 sor, nincs törlés.
h; # felülírja a h-space-t az új 1 vagy 2 sorunkkal.
s/\(.*\n\)\(.*$\)\|\(^.*\)\(; .*$\)/\2\4/w output.txt # ha két sor van, a másodikat, ha egy sor van, az utolsó szót pontosvesszűstül és szpészestül belevezeti a megadott text fileban egy új sorba.
' input.txt # ezt a fájlt dolgozzuk fel.


The SED MANUAL was a huge help, thank you!

2010. november 18.

OGM to AVI with hardcoded subtitles

I was trying to hardcode a subtitle while "-ovc copy". How silly of me. It is only possible to hardcode a subtitle if mencoder has to process the video file frame by frame, as it modifies the pictures when hardcoding.

For whatever reason MEncoder didn't want to work for me recoding a Vorbis audio stream to mp3 with Lame, so two steps were added in between.

#1. Demuxing OGM to separate stream-files
ogmdemux input.ogm

#2. Converting audio track to mp3
soundconverter -b -m audio/mpeg -s .mp3 input.ogm-a1.ogg

#3. Muxing video, audio and subtitle into an avi
mencoder input.ogm-v1.avi -o output.avi -audiofile input.ogm-a1.mp3 -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -sub input.ogm-t1.str

#1-3. Of course at the end I managed to do steps 1-3 in a single step:
mencoder input.ogm -aid 1 -sub input.srt -o output.avi -oac mp3lame -lameopts cbr=128 -ovc lavc -lavcopts vcodec=mpeg4


I guess to achieve the all inclusive #1-3, I had to install some stuff and make mplayer for myself...
sudo apt-get install libasound2-dev libfreetype6-dev zlib1g-dev libmp3lame-dev libfontconfig1-dev libexpat1-dev ogmtools
./configure --enable-theora --enable-libdv --enable-mp3lame --enable-mp3lame-lavc --enable-mp3lib --enable-debug
But of course I don't know what exactly did the trick.

For a better quality it's possible to use extra options, like -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000:mbd=2:trell
To get needed value of vbitrate do a mencoder -ovc frameno -o frameno.avi -oac copy input.avi and read your value in the terminal window.

Sources:
Gentoo Forums
MemoryLeak

2010. november 14.

ImageMagick BMP compression

To make uncompressed BMP files, or to decompress BMP files in ImageMagick, use the -compress none option.

To make less then 24-bit BMP files in ImageMagick, use the -colors 256 option, which would make a 8-bit BMP file.

Use these settings to be able to import scores into Neuratron PhotoScore.

2010. november 13.

image to pdf

I really can't handle ImageMagick when it comes to pdf files. It creates such huge files they are completely useless.

I tried out another way: pbm -> ps -> pdf:

first I ImageMagick convert pbm-s:
mogrify -format ps -density 300x300 *.pbm
then put them into ps2pdf:
#!/bin/bash
lista=(`find -iname '*.ps' | sort`)
for i in "${lista[@]}"
do
ps2pdf -r300 -g1880x2688 $i $i.pdf
done

and bind them:
pdfjoin *.pdf --outfile output.pdf

It worked brilliantly. This way my pdf is 8 times smaller then my original pdf, and it's only 1.5 times bigger then the djvu I made from the same images.

Djvu was made directly from pbm files, converted with cjb2 and binded with djvm. No special option was used.

2010. november 7.

Image INFO through ImageMagick

identify -verbose image.jpg

To get only what you want to see you can use GREP like this:

identify -verbose image.ps | egrep "Resolution|Geometry"

This will return you the lines with Resolution and Geometry. Just what I need to make good compressed pdf files with ps2pdf.