Archive for the ‘linux’ tag
Notes on Ubuntu
I had to reinstall my Ubuntu Intrepid last week. This post is a note to myself to save me some time googling some not-so-intuitive configuration next time I happen to install Ubuntu. I’ll update the post occasionally when I figure out fixing a problem. But be aware that those are configurations to my needs and I won’t be explaining much what is what.
Brother MFC 215C
I’ve already documented this issue in a separate post last time I’ve installed Ubuntu.
VirtualBox and USB
sudo adduser $USER vboxusers # add current user to the vboxusers group
cat /etc/group | grep vboxusers # get the ID of the vboxusers group
sudo gedit /etc/fstab & # edit file system information
And append these lines:
#usbfs for virtualbox
none /proc/bus/usb usbfs devgid=ID_of_vboxusers_group,devmode=774 0 0
First Day of the Week
I don’t get this. The KDE calendar applet offers a configurable option to select the first day of the week. Gnome’s doesn’t. Why? Anyway the locale has to be changed.
sudo gedit /usr/share/i18n/locales/en_US # or whatever locale you're using
Change first_weekday 1 to first_weekday 2 to set Monday as the first day of the week.
sudo dpkg-reconfigure locales
Log out and than back in.
Backspace Behaviour in Firefox
about:config
browser.backspace_Action = 2
[via]
Or strangely enough, Kubuntu needs a zero!
about:config
browser.backspace_Action = 0
[via]
Google Gears and Mozilla Prism
- Download latest Gears for Linux from
http://dl.google.com/gears/current/gears-linux-opt.xpi; - Rename
*.xpito*.zip; - Extract the archive;
- Edit
install.rdfwith a text editor; - Change
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.5</em:minVersion>
<em:maxVersion>3.0.*</em:maxVersion>
</Description>
</em:targetApplication>to
<em:targetApplication>
<Description>
<em:id>prism@developer.mozilla.org</em:id>
<em:minVersion>0.1.*</em:minVersion>
<em:maxVersion>10.0.*</em:maxVersion>
</Description>
</em:targetApplication> - Compress files;
- Rename
*.zipto*.xpi; - Install.
[via], copying steps here in case the other site goes down.
От Windows през HackOS до Ubuntu
Бях подпален от Боян онзи ден на тема Linux, но преди да го сложа, реших да пробвам, да си сглобя Hackintosh. Уви не успях да се справя с драйверите на мрежата и на графиката. И сложих Ubuntu 8.10 Intrepid Ibex. Имал съм през годините няколко опита да мина на Linux, но те са се проваляли поради три причини: медия, принтер и звук.
Мултимедията винаги е била по-добра под Windows и филмите вървят много по-добре и smoothly. Също така звукът на mp3-ките е по-чист и по-истински. Този проблем съществуваше както в Ubuntu 7.04, така и в 7.10 и в 8.04. Но явно в последната 8.10 версия тези неща са изчистени и тази no-go причина мога да я задраскам.
Имам много странен принтер - Brother MFC 215C. Подкарването на принтера, на факса и на скенера под горе изброените версии на Ubuntu бе major PITA. Тук за съжаление няма голямо развитие, но поне вече има официални драйвери от Brother и този път съм решен, да изтърпя “болките”. Тук съм описал, как става всичко, за да е по-лесно на другарчетата.
Имам две звукови карти. На едната за закачени 4.1 колони, а на другата слушалки с микрофон. Същите, освен за Skype, ги ползвам, когато искам късно вечерта да гледам някой филм и не искам да стресирам съседите. Под Windows превключването между различните изходни устройства е повече от лесно и удобно. Уви, под Ubuntu това не е така. И все още не е. Но този път съм решен, да търпя и трая, докато не намеря решение на проблема. Спомням си, че имаше някакви скриптчета за Nautilus, трябва да проверя. А съседите могат до тогава да си гледат работата :).
Поне Skype позволява лесна настройка на входно-изходните устройства.
Иначе остава да реша един основен проблем: как да си свържа телефона с компютъра. VirtualBox има проблеми с препращането на USB вързания телефон към виртуалния Windows и съответно не бива разпознат. Поне вече ползвам CalSync, за да си синхронизирам календара, и Windows машина не ми е толкова наложителна. Но ще трябва да измисля нещо, когато излезе нов фърмуер за телефона.
Хайде, стига толкова. Мързи да ме пиша.
П.П. iPod Nano работи без проблеми с Rhythmbox.
Brother MFC 215C on Ubuntu
Here is a step-by-step guide of how to install the Brother MFC 215C on Ubuntu 8.10. I’ve used only official Brother documentation, which is quite extensive. Feel free to read it, this is just a summary and a note to myself.
Actually Ubuntu 8.10 recognizes the printer but it fails to even print a test page. First we need to remove the printer. In order to so, go to the CUPS web frontend and remove the printer.
Before the installation we need to set some things up. Run those commands in a terminal window. If your curious what they do, read the man pages.
sudo aa-complain cupsd # log cups to syslog
sudo mkdir /usr/share/cups/model # mkdir
sudo mkdir /var/spool/lpd #mkdir
sudo apt-get install csh # install the C-Shell
sudo apt-get install sane-utils # install scanning utilities
Now we can begin with the driver installation. You need those files, obtainable at Brother’s web site.
brmfcfaxcups-1.0.0-1.i386.deb # fax capabilities
brscan2-0.2.4-0.i386.deb # scanner driver
brscan-skey-0.2.1-1.i386.deb # enabled printers buttons
cupswrapperMFC210C-1.0.2-3.i386.deb # cupswrapper driver, deb package
mfc210clpr-1.0.2-1.i386.deb # lpr driver, deb package
Now fire up a terminal and run those commands.
sudo dpkg -i --force-all --force-architecture mfc210clpr-1.0.2-1.i386.deb # install the lpr driver
sudo dpkg -i --force-all --force-architecture cupswrapperMFC210C-1.0.2-3.i386.deb # install the cupswrapper
You can now check if both drivers were installed successfully using
dpkg -l | grep Brother
If you don’t see both drivers installed, review the log produced by the install procedure, check for errors and fix them.
Go once again to CUPS’ web interface and check if the URI of the printer is
usb://Brother/MFC-215C
If it isn’t you’ll need to to edit the printer and select proper driver and device. Now print a test page. You’re ready.
Let’s move now onto the scanner. First install the driver and review the install log for errors. Unfortunately the scanner will be available only for superuser. We have to fix this.
sudo dpkg -i --force-all brscan2-0.2.4-0.i386.deb # install driver
dpkg -l | grep Brother # check installation
sudo nano /etc/udev/rules.d/40-basic-permissions.rules # open permissions for editing
Find those lines and replace them - MODE is changed form 0664 to 0666, thus enabling usage by limited users. Afterwards you need to restart the system.
Before the edit---------------------------------
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"
After the edit----------------------------------
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
SUBSYSTEM=="usb_device", MODE="0666"
We now want to set up device the buttons and add the service as a startup programm.
sudo dpkg -i –force-all brscan-skey-0.2.1-1.i386.deb # install driver
dpkg -l | grep Brother # check installation
System -> Prefrences -> Sessions
Unfortunately I get errors when running the scan tool in the console, that I haven’t been able to fix yet. But scanning via the device button still works. The error is:
ERROR : Semaphore error (not owner)22
Last one left to install is the fax capability. Unfortunately my MFC isn’t connected to a telephone line, so it’s rather pointless to install the fax capabilities and not being able to test them. The official documentation is rather good, not perfect but still usable, so if you need the fax refer to it.
One thing that I wonder about is why installing the printer on Linux is such major PITA. This haven’t changed for the last two years. HP printers are so much easier to get up and running under Linux …

