Showing posts with label Debian Linux. Show all posts
Showing posts with label Debian Linux. Show all posts

Monday, May 2, 2016

Reviewing my Debian experience up to April 2016



What does "stable" mean? To me, this means that the system boots correctly all the time. The system shuts down correctly too. There is no "blue / black screen of death". The chart shows my experience.

Saturday, January 2, 2016

Ian Murdock, thank you.

Ian Murdock, thank you for starting Debian, the system enabling me to produce results every day.

Debian has helped me to access the technology field. It is sad that Ian passed away.

Friday, December 4, 2015

Apparently less time to boot on Linux

When comparing Windows with Debian Linux, it is noted that Debian Linux does not display a message such as this one:


"Preparing to configure Windows.
Do not turn off your computer."


This message says that some sorts of configuration is going on. I don't know exactly what's going on. Regardless of this lack of information, I know that it takes minutes of time for the computer user to wait.

Debian Linux does not cause such issues. Windows does.

With the introduction of systemd, Debian Linux may face similar boot issues as well. Some configuration issues going on when booting are not welcomed.


Reference:

systemd issues:
http://mindmapapp.blogspot.com/2015/09/a-start-job-is-running-for-boot.html



Friday, September 18, 2015

Large amount of data? Use database




You should use a database if you imagine you will frequently record data until you may have a huge amount of data.

If you expect that you need to enter some data every fifteen seconds, you should consider using a database.

Microsoft Excel and LibreOffice cannot handle a very large amount of data. I am talking about general purpose computing. I just have a common Intel CPU. I just have 4GB of RAM.

If you imagine you will need to save a large amount of data, no office productivity suites can handle this situation.

Only use a database. A database can handle a large amount of data.

Common databases are MySQL and PostgreSQL. If you decide to use either one, it will be tricky to migrate from one to another. Please decide with your wisdom.

In my experience, different versions of MySQL were or are incompatible, meaning that upgrading from one version to another might or may cause data loss. For PostgreSQL, upgrading did not cause any data loss in my case.





Thursday, September 17, 2015

Microsoft Office is not suitable in some situations

Microsoft Office is not suitable in some situations in my cases. If you are familiar with Microsoft Office problems, you could jump to "My solutions" below.

Firstly, using more than one version of Microsoft Office can cause very serious problems. The problems are so serious that they are not reversible. Data loss is not recoverable.


Excel files, Word files and PowerPoint files can be damaged by using Office 2013 and Office 2010 in turns. In my cases, they can be damaged simply by opening a file in either version of Microsoft Office. (I have no money to buy Office 365. I cannot try Office 365 for the long term. I cannot test. I cannot be certain.)

Microsoft Office versions are numerous. Microsoft Office 97, Microsoft Office 2003, Microsoft Office 2007, Microsoft Office 2010, Microsoft Office 2013 and Microsoft Office 365 are all from the same company. Some files produced in one version cannot be opened with the same format, or the same data in another version. The same company do not let you buy an old version. What can you do? In my case, I simply faced the data loss.

Secondly, I use Linux. Microsoft Office is not for me. In my case, I use Debian Linux. I like LibreOffice for my personal use.

Thirdly, I have large files. Microsoft Office cannot handle them in my situation. A file larger than 20MB appeared to be unusable because the opening process was so slow. The time was more than one minute. The random access memory of the computer was 4GB. I used Windows 7. Microsoft Office 2013 was installed on Windows 7.

Fourthly, I send and receive many emails. Microsoft Office Outlook is not for me. In my case, I had more than 10000 emails. Microsoft Office Outlook simply responded slowly until it stopped responding. Transferring Microsoft Office Outlook emails from one computer to another can be a nightmare. In contrast, Mozilla Thunderbird appeared to handle such data.

Fifthly, the "who to blame" question arises. People keep buying different new versions of Microsoft Office and they keep producing files with data loss. Authors of Excel files, Word files and PowerPoint files are forced to take the responsibility. Human resources officials do not accept that data loss is due to Microsoft Office failure. Human resources officials may insist that the cause is the authors' problems. Who will suffer by using Microsoft Office? Think.

My solutions: For all my own personal use, I use LibreOffice on Windows and Debian Linux.

I tell. I do not do for the other people. I tell the other people to keep a Microsoft Office file below 1MB. An Excel file, Word file or PowerPoint file should not exceed 1MB. 1MB is the safety limit in my cases. If the file is larger than 1MB, start another new file. For example, I had a file storing all the product names and other details. I named the first file "products001.xls" and the second file "products002.xls". I constantly checked that the file size is below 1MB. (1MB = 1000KB or 1MB = 1024KB, for this safety purpose)

I myself also keep a file below 1MB.

Never press any Microsoft Office buttons. If somebody asks me to help with Excel, Word or PowerPoint data loss. (if I see "corrupt / damaged file... Repair? Yes / No") I should never touch that computer. The "who to blame" problem will arise.  

Do not touch that computer. Data loss is not recoverable. If I touch the computer, I will be blamed by her or him. Only tell her or him that "I am sorry. The data loss happened. This is not recoverable. If possible, I will try to find the backup copy on another computer. If possible, if you have another backup copy, please use another backup copy. I am really sorry that this happened. I am really sorry although I am not the author and I am not the producer of Microsoft Office. This may be years of data in that file. Please look for a backup copy. This is the only quick solution. In fact, repairing files to produce the same data you want will be not possible as far as I know. Please look for a backup copy."

Back up. Always back up Microsoft Office files. Excel, Word and PowerPoint files must be backed up as frequently as possible, for example, every day, or even every hour. Microsoft Office Outlook files must be backed up as well. Copy PST files and export emails. Backing up four copies of files on four physical hard disks should help to reduce the impact of data loss due to using Microsoft Office on a daily basis. If possible, use external backup disks as well.










Tuesday, May 6, 2014

Customize command prompt

Here is a way to customize the command prompt:


user_name@debian:~$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
user_name@debian:~$ PS1="$ "



user_name@debian:~$ nano ~/.bashrc

Add this line:

export PS1="$ "



Press Ctrl + x

Press y

Log out and log in.


The command prompt will become "$ ".



Reference

http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html

Stop the desktop indexing service

The following commands help you to stop the desktop indexing service.

$ tracker-preferences

$ tracker-control -r



Remove default LibreOffice on Debian 7.5

This is the way to remove the default version of LibreOffice on Debian 7.5.

# aptitude purge libreoffice         \
libreoffice-base         \
libreoffice-base-core         \
libreoffice-calc         \
libreoffice-common         \
libreoffice-core         \
libreoffice-draw         \
libreoffice-emailmerge         \
libreoffice-evolution         \
libreoffice-filter-binfilter         \
libreoffice-filter-mobiledev         \
libreoffice-gnome         \
libreoffice-gtk         \
libreoffice-help-en-us         \
libreoffice-impress         \
libreoffice-java-common         \
libreoffice-math         \
libreoffice-report-builder-bin         \
libreoffice-style-galaxy         \
libreoffice-style-tango         \
libreoffice-writer        

Use a simple table to separate words

Here is what I think about using tables:

1. Use a table but don't draw a line to separate some words. 
2. As far as possible, use a simple table. Complex tables may not work all the time. Beautiful borders may not work.

I have used different versions of LibreOffice Writer. I could not be sure if a shape I drew would be displayed in exactly the same way.

To me, it is not the best practice to draw a line among words to separate them.

The best practice is to draw a table.

Shapes may move to different positions when you open the file in another version of LibreOffice.

To play safe, use a table.

In LibreOffice, press

Table -> Insert -> Table

This is also an issue in Microsoft Office Word. The same shape may not be in the same place. In Word, press

Insert -> Table

It is more likely that people using future versions of the word processing software can view the same table.

rpcbind can be removed when not sharing files

rpcbind does not help me to do common tasks. I don't share files. Removing it should speed up the process of shutting down or restarting.

# aptitude purge rpcbind

Count the number of words in LibreOffice Writer

How do I count the number of words in LibreOffice Writer?

There are two ways.

1.
Tools -> Word Count



2.
Look at the word count field in the Status bar.
Double-clicking on the word count field.

PDF in LibreOffice

How do I make a PDF file in LibreOffice?


There are two ways.

1.
File -> Export as PDF... -> Export

2.
Export Directly as PDF on the Standard toolbar

Monday, May 5, 2014

Hard disk partition

For my work, I partition my hard disk like this:


/boot      500 MB       primary partition      Ext4
/swap     32 GB          primary partition      Ext4
/        120 GB         primary partition        Ext4
/home      the rest of the hard disk    logical partition    Ext4

I mainly store files. /home gets the most of the space.

There should be enough space for the programs. There should also be enough space for the boot loader of GRUB in /boot.

Partitioning the hard disk is good for backing up, e.g. by Redo Backup and Recovery.


Ext4 is the most useful for my work

Ext4 is the file system I am using. It is stable. I like it because of its stability. Other file systems appear to be too new.

It is better to use Ext4 instead of the other file systems such as Btrfs.

Btrfs is too new and can cause serious problems as some people suggested that it would be hard or impossible to delete files when the disk was full.

Retain most video quality in WebM

Let's loot at:

$ avconv -qscale 1 -i  x.mpg x.webm


The command above keeps the best quality available.


I turned a MPG file of about 300 MB into a WebM file of about 20 MB. I kept most of the video quality. The sound was good.

Please note that -qscale 1 should be the best quality.



Check the WebM file for the quality.

To me, WebM files are good for not-so-important videos, e.g. the video quality is not that important.



If the same images or similar images appear for more than five seconds, a WebM file seems to show the clear images, e.g. people's faces are shown clearly if their images last for five seconds or more in the video, or if these faces form a large part of the screen.

Thursday, May 1, 2014

Missing Microsoft Windows menu entry in GRUB after upgrading Debian Linux to 7.5

Update:

Back up your files first.

You could consider:

$ update-grub
 


 This appears to solve my problem of missing Windows entry in the menu.

-------------------------------------------------------------------

I am talking about dual-booting Debian and Windows. Something has to be done before and after upgrading.

The following problem affects upgrading to Debian 7.5.


After upgrading, I check my version of Debian. I type:

# cat /etc/debian_version
7.5




Please back up all your important files before doing anything else.


Please back up this:

/boot/grub/grub.cfg


Then, type:

# aptitude update && aptitude -y safe-upgrade


This removes the menu entry of Microsoft Windows.


To get back the menu entry, type:

# nano /boot/grub/grub.cfg

Add the menu entry, e.g.

### BEGIN /etc/grub.d/30_os-prober ###


###################################

menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd1,msdos1)'
        search --no-floppy --fs-uuid --set=root A49C0A294A0ABD4B
        chainloader +1
}

### END /etc/grub.d/30_os-prober ###


To save the file, press Ctrl + x.

Look for this menu entry in your backup of grub.cfg.

Then the menu entry of Windows should be shown.




Monday, April 21, 2014

Emotional icons

The command below helps to install the fonts for displaying emotional icons or emoji. Emotional icons are also called emoticons.

# aptitude install ttf-ancient-fonts

Restart the web browswer such as Chrome or Firefox. Restart LibreOffice or OpenOffice.

Restart the computer.

The emoticons should be shown.

Examples of symbols and emoji:

https://drive.google.com/file/d/0B_ZD8gM2F8i_d0Qza29RdVpHdGM/edit?usp=sharing

Please view this file with LibreOffice.

Wednesday, April 16, 2014

LibreOffice Writer desktop shortcut


If you need a desktop shortcut to start LibreOffice, save this file as LibreOffice Writer.desktop in /home/name of user/Desktop.


#!/usr/bin/env xdg-open

[Desktop Entry]
Type=Application
Name=LibreOffice Writer
Exec='/opt/libreoffice4.2/program/swriter'
Terminal=false
Icon=/usr/share/app-install/icons/libreoffice-writer.png



Google Chrome desktop shortcut in Gnome 3

Here is my way of creating a Google Chrome desktop shortcut in Gnome 3:

Create a file called Google Chrome.desktop in /home/name of user/Desktop:



#!/usr/bin/env xdg-open

[Desktop Entry]
Type=Application
Name=Google Chrome
Exec='/opt/google/chrome/google-chrome'
Terminal=false
Icon=/opt/google/chrome/product_logo_256.png



Save the file. Double-click on the file.


http://www.youtube.com/watch?v=-7slN_kAoeY&feature=youtu.be


Monday, April 14, 2014

Save disk space with small WebM files

I converted a WMV file into a WebM file.

In the WebM file, I saw some minor flashes in the video from time to time. I did not need a very good resolution. The flashes were okay because the original WMV file showed blurred images in the video.

The sound was important to me. The sound was good in the WebM file. I could hear the same quality. I heard no noticeable difference.

The first file was in Windows Media video (video/x-ms-wmv) format. Its size was 127.9 MB (127937010 bytes).

The second file was in WebM video (video/webm) format. Its size was 18.8 MB (18802685 bytes).

127.9 - 18.8 = 109.1MB

I deleted the WMV file. I saved 109.1MB of hard disk space.

I tried another file conversion from File A to File B:

File A:
Windows Media video (video/x-ms-wmv)
104.5 MB (104465142 bytes)

File B:
WebM video (video/webm)
20.0 MB (20016930 bytes)

104.5 - 20.0 = 84.5MB

I deleted the WMV file again. I saved 84.5MB of disk space.


I attempted another file conversion from File C to File D:

File C:
Windows Media video (video/x-ms-wmv)
135.5 MB (135529100 bytes)

File D:
WebM video (video/webm)
19.8 MB (19809968 bytes)

135.5 - 19.8 = 115.7MB

I deleted the WMV file. I saved 115.7MB of disk space.

A WebM file could help me to save some hard disk space.

"libav-tools" was the necessary package to do the file conversion.

The command was:

$ avconv -i NameOfFile.wmv NameOfFile.webm