пʼятницю, 9 грудня 2016 р.

Как исправить кракозябры в аудио плеере Rhythmbox

Установив Ubuntu 16.04. Xenial Xerus я столкнулся с проблемой некорректного отображения названий песен в аудио плеере. Причиной этому оказалась кодировка CP1251.

Однако эта проблема очень легко исправляется.

Необходимо открыть файл .profile в домашней директории командой:

gedit ~/.profile

Далее в файле .profile нужно добавить следующую строку:

export GST_ID3_TAG_ENCODING="windows-1251"

Если после перезагрузки проблема не решена, следует сбросить настройки аудио плеера. Для Rhytmbox это выполняется путем удаления каталогов ~/.cache/rhythmbox и ~/.local/share/rhythmbox командами:

rm -rf ~/.cache/rhythmbox

rm -rf ~/.local/share/rhythmbox

После проведения описанных выше действий проблема с шрифтами исчезла.

How to make Canon LBP 2900 printing on Ubuntu 16.04 LTS (Xenial Xerus)

After clean installation of Ubuntu 16.04 my Canon 2900 refused to print. I found out a solution and will now share here with my experience.

Standard method to install driver doesn't work. To install driver manually I downloaded and unpacked them from the official web-site of Canon.

The next step was to choose between the 32- or 64-bit driver. First my decision was to use 64-bit driver, because my OS is also 64-bit. But it was a mistake, 64-bit driver refused to work. So I choose 32-bit driver, unpacked and installed two packages in the following order:

cndrvcups-common.deb

cndrvcups-capt.deb

Then I registered the printer in OS by taping in the terminal:

sudo /etc/init.d/cups restart

sudo lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59687 -E

sudo ccpdadmin -p LBP2900 -o /dev/usb/lp0

sudo update-rc.d ccpd defaults

Ppd file name "CNCUPSLBP2900CAPTK.ppd" is only for LBP2900 model. For others models you should use another code:

Printer NamePPD File Name
LBP9100CCNCUPSLBP9100CCAPTK.ppd
LBP7200C seriesCNCUPSLBP7200CCAPTK.ppd
LBP7200Cdn (network mode)CNCUPSLBP7200CCAPTK.ppd
LBP6300CNCUPSLBP6300CAPTK.ppd
LBP6200CNCUPSLBP6200CAPTK.ppd
LBP6000 LBP6018CNCUPSLBP6018CAPTK.ppd
LBP5300CNCUPSLBP5300CAPTK.ppd
LBP5100CNCUPSLBP5100CAPTK.ppd
LBP5050 seriesCNCUPSLBP5050CAPTK.ppd
LBP5000CNCUPSLBP5000CAPTK.ppd
LBP3500CNCUPSLBP3500CAPTK.ppd
LBP3310CNCUPSLBP3310CAPTK.ppd
LBP3300CNCUPSLBP3300CAPTK.ppd
LBP3250CNCUPSLBP3250CAPTK.ppd
LBP3210CNCUPSLBP3210CAPTK.ppd
LBP3200CNCUPSLBP3200CAPTK.ppd
LBP3150 / LBP3108 / LBP3100CNCUPSLBP3150CAPTK.ppd
LBP3100 / LBP3108 / LBP3150CNCUPSLBP3150CAPTK.ppd
LBP3010 / LBP3018 / LBP3050CNCUPSLBP3050CAPTK.ppd
LBP3000CNCUPSLBP3000CAPTK.ppd
LBP2900CNCUPSLBP2900CAPTK.ppd
LBP-1210CNCUPSLBP1210CAPTK.ppd
LBP-1120CNCUPSLBP1120CAPTK.ppd
LBP-810CNCUPSLBP1120CAPTK.ppd

After the printer appears in menu I marked him as default by right click. All these time the printer must be turned off.

Then I reboot and printer start work.

But after that appears a new problem. When I shuttdown my computer it hangs during 5 minutes. It was caused by ccpd service. So I run:

sudo systemctl edit ccpd

and added new two lines to empty file:

[Service]

TimeoutStopSec=4

Then:

sudo systemctl daemon-reload

systemctl show ccpd -p TimeoutStopUSec

and it shows that the delay was shorted. Next reboot took only several seconds.

That's all.

P.S.: I'm working on improving my English and Linux skills. And I'll be very happy if you pointed out mistakes.