Skip to main content

Desktop linux again

Submitted by admin on

openSUSE 12.3 and openSUSE 13.1

ปุ่มปรับ backlight ไม่ work

เครื่อง asus zenbook ให้แก้โดยเพิ่ม kernel option

acpi_backlight=none acpi_osi=

ทำโดย

sudo vi /etc/default/grub

แล้วแก้โดยเปลี่ยน

GRUB_CMDLINE_LINUX_DEFAULT=\"resume=/dev/system/swap splash=silent quiet showopts\"

เป็น

GRUB_CMDLINE_LINUX_DEFAULT=\"resume=/dev/system/swap splash=silent quiet showopts acpi_backlight=none acpi_osi=\"

แล้วสั่ง sudo update-grub

Fix YaST2 and rvm

YaST is ported to ruby and out-of-the-box DOES NOT work with rvm. I have to

gem install fast_gettext

to fix this.

network not working

check this http://forums.opensuse.org/english/get-technical-help-here/network-internet/485115-12-3-internet-connection-confusion.html Stop the service first

systemctl is-active network.service && \\ systemctl stop network.service

Enable NetworkManager

systemctl --force enable NetworkManager.service

Enable the service again

systemctl start network.service

repositories

  • add packman repositories

package

  • via communities repositories (PackMan, etc.)

sudo zypper install git subversion mercurial gcc-c++ kate emacs gvim gnucash filezilla krusader texlive gimp inkscape wine smb4k artha vlc comix keepass dropbox wine wine-mp3 virtualbox sysstat lsb htop iotop

We also needs other lib for development libxslt-devel libxml2-devel libmysqlclient-devel python-devel

  • Other packages
    • codeblock
    • steam
    • synergy

VirtualBox

LibreOffice 4

my widget looks ugly, have to install package libreoffice-gnome

Codec

http://opensuse-guide.org/codecs.php

Font Config

ต้องใช้ไฟล์ ~/.fonts.conf (มีอยู่ใน hg linux-file แล้ว) อย่าลืม ln -s linux-file/.fonts.conf

อย่าลืมติดตั้ง font ต่าง ๆ อ่าน http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/

Mouse Problem

  • vi /etc/X11/xorg.conf.d/50-synaptics.conf
  • add

to the InputClass of synaptics, making the section become Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on"

This option is recommend on all Linux systems using evdev, but cannot be enabled by default. See the following link for details: who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html MatchDevicePath \"/dev/input/event*\" Option \"HorizScrollDelta\" \"0\" enable tap-to-click as default (bnc#722457) Option \"TapButton1\" \"1\" Option \"TapButton3\" \"2\" Option \"TapButton2\" \"3\" Option \"VertResolution\" \"100\" Option \"HorizResolution\" \"65\" # disable synaptics driver pointer acceleration Option \"MinSpeed\" \"3\" Option \"MaxSpeed\" \"20\" # tweak the X-server pointer acceleration #Option \"AccelerationProfile\" \"2\" Option \"AdaptiveDeceleration\" \"1\" Option \"ConstantDeceleration\" \"16\" Option \"VelocityScale\" \"32\"

EndSection

Samba

Set the Promp

use http://www.kirsle.net/wizards/ps1.html read this as well http://www.fvue.nl/wiki/Bash:_How_to_change_tab_and_window_title_of_console check this two for 256 colors as well

the current prompt is

mount ntfs

Pimp my Firefox

on HiDPI display, the ui element is very small. Fix by following option in about:config

[code] layout.css.devPixelsPerPx=2 [/code]

also we need to add font size to ~/.mozilla/firefox/XXXX.default/chrome/userContent.css [code lang='css'] @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */

  • {font-size: 14px !important; } [/code]

I love my KDE in black but firefox won't agree with this. Create this file ~/.mozilla/firefox/XXXX.default/chrome/userContent.css

[code lang="css"] input { border: 2px inset white ; background-color: white ;
color: black ;
}

textarea {
border: 2px inset white ;
background-color: white ;
color: black ;
}

select {
border: 2px inset white;
background-color: white; color: black; }

input[type="radio"], input[type="checkbox"] { border: 2px inset white ; background-color: white; color: ThreeDFace l }

|::-moz-radio { background-color: white; }

button, input[type="reset"], input[type="button"], input[type="submit"] { border: 2px outset white; background-color: #eeeeee; color: black; }

body { background-color: white; color: black; display: block; margin: 8px; } [/code]

Misc.

HG repo

.hgrc เริ่มต้น [code] [ui] username=Nattee Niparnan [email protected]

[hostfingerprints] isl2-dev.cp.eng.chula.ac.th=26:7f:97:cc:de:4c:fa:b8:60:3b:31:96:62:3a:5d:02:00:7f:ce:ed

[auth] isl2-dev.prefix=https://isl2-dev.cp.eng.chula.ac.th/hg isl2-dev.username=ไม่บอก isl2-dev.password=ไม่บอก [/code]