Desktop linux again

Posted on: Sun, 03/24/2013 - 23:28 By: dae

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

  • I use the default package from openSUSE
  • for USB problem, check http://forums.opensuse.org/showthread.php/493771-Can-t-attach-USB-device-to-VirtualBox
Copy the file /usr/lib/udev/rules.d/60-vboxdrv.rules to /etc/udev/rules.d/, open it with a text editor, and remove the leading '#'s from the last 4 lines below the comment in line #2. This is needed to give you the needed permissions, but is disabled by default in the openSUSE package because of security concerns. It should work then after a reboot.
  • VirtualBox package from oracle https://www.virtualbox.org/wiki/Linux_Downloads

LibreOffice 4

zypper ar -f http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_12.3/LibreOffice:Stable.repo zypper in libreoffice -r "Stable Version of LibreOffice (openSUSE_12.3)"

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
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"

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

  • enable firewall for netbios server, smbclient http://opensuse-guide.org/windows.php

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

  • http://www.askapache.com/linux/bash-power-prompt.html#256_Color_Prompt_Command
  • http://www.logilab.org/blogentry/20255
  • http://misc.flogisoft.com/bash/tip_colors_and_formatting

the current prompt is

function EXT_COLOR () { echo -ne "\[\033[38;5;$1m\]"; }
function EXT_BGCLR () { echo -ne "\[\033[48;5;$1m\]"; }
export PS1="`EXT_COLOR 204`\u`EXT_COLOR 84`@`EXT_COLOR 141`\h`EXT_COLOR 84`:`EXT_COLOR 208`\w`EXT_COLOR 84`>\[\033[0m\]"

mount ntfs

/dev/disk/by-id/ata-SAMSUNG_MZ7PC256HAFU-000L7_S0Y5NSACC01704-part3 /dae ntfs-3g rw,user,users,nosuid,nodev,relatime,uid=1000,gid=users,fmask=003,dmask=002,default_permissions,allow_other,exec 0 0

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

  • https://isl2-dev.cp.eng.chula.ac.th/hg/vim_config สำหรับ .vimrc และ folder .vim (อย่าลืม ln เอง)
  • https://isl2-dev.cp.eng.chula.ca.th/hg/linux-file สำหรับ .hgrc และ .bashrc และ font ต่าง ๆ (อย่าลืม ln)

.hgrc เริ่มต้น [code] [ui] username=Nattee Niparnan nattee@gmail.com

[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]