Formatting code for MyConfigLinux
{{parent page="HomePage"}}
===Configure options, frequently used config...===
%%(text;sysctl.conf)
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.send_redirects = 0
kernel.panic_on_oops = 1
kernel.panic = 30
kernel.panic_on_unrecovered_nmi = 1
kernel.softlockup_panic = 1
vm.panic_on_oom = 1
net.core.rmem_max = 6553500
net.core.wmem_max = 4915200
net.ipv4.tcp_rmem = 6684 655360 6553500
net.ipv4.tcp_wmem = 3072 491520 4915200
net.ipv4.tcp_window_scaling = 1
net.core.somaxconn = 512
net.ipv4.tcp_fin_timeout = 20
net.ipv4.ip_local_port_range = 23000 63000
net.ipv4.tcp_abort_on_overflow = 1
net.ipv4.tcp_retries2 = 10
net.ipv4.tcp_keepalive_time = 1800
# Increase resilience towards syn attacks
net.ipv4.tcp_max_syn_backlog=4096
net.core.netdev_max_backlog=4096
net.ipv4.tcp_synack_retries=2
%%
===Swig===
As a dependency of subversion
%%
./configure --with-python=/usr/bin/python --with-perl=/usr/bin/perl --prefix=/opt/swig
%%
===Subversion===
%%
./configure --with-ssl --prefix=/opt/subversion \
--with-apr-util=/opt/apu/bin/apu-1-config \
--without-berkeley-db --with-apxs=/usr/bin/apxs2 \
--disable-mod-activation --with-swig=/opt/swig
%%
===Firefox===
+integer value content.notify.backoffcount = 5
+integer value nglayout.initialpaint.delay = 0
network.dns.disableIPv6=true
+browser.cache.memory.capacity=32768
===Dual monitor===
ATI's driver sucks. Don't get an ATI card and the following is just useful when one's stuck with it. This gives me 2 screens where window can be dragged to each other. Compiz is also working (after removing .gconf and .gconfd). The only outstanding issue is video flickering during horizontal panning.
====ATI====
%%
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection
Section "Files"
EndSection
Section "Module"
EndSection
Section "ServerFlags"
Option "Xinerama" "off"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "0-DFP1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1680x1050"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Monitor"
Identifier "0-DFP3"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x720"
Option "TargetRefresh" "60"
Option "Position" "1440 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
Option "OpenGLOverlay" "on"
Option "Capabilities" "0x00000800"
Option "Monitor-DFP1" "0-DFP1"
Option "Monitor-DFP3" "0-DFP3"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-1"
Device "aticonfig-Device[0]-1"
Monitor "aticonfig-Monitor[0]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
%%
==Mplayer==
ATI
%%
./configure --enable-dynamic-plugins --enable-runtime-cpudetection --enable-xv --enable-vdpau
%%
Nvidia
Get vdpau header from http://blog.avirtualhome.com/2009/05/29/how-to-compile-mplayer-with-vdpau-support-on-ubuntu/
%%
./configure --enable-dynamic-plugins --enable-runtime-cpudetection --enable-xv --enable-gl --enable-x11 --disable-inet6 --disable-libdv --with-vidix-drivers=nvidia --enable-gui
%%
For nvidia, might wanna include vpdau. To list compiled in ao and vo, do a
%%
mplayer -ao help
mplayer -vo help
%%
==Something to test with==
%%
Section “ServerLayout”
Identifier “Default Layout”
Screen 0 “Laptop Screen” 0 0
Screen 1 “Samsung Screen” RightOf “Laptop Screen”
# DualHead means two monitors
Option “DualHead” “true”
Inputdevice “Generic Keyboard”
Inputdevice “Configured Mouse”
Inputdevice “stylus” “SendCoreEvents”
Inputdevice “cursor” “SendCoreEvents”
Inputdevice “eraser” “SendCoreEvents”
Inputdevice “Synaptics Touchpad”
EndSection
%%
===Pidgin===
%%
./configure --with-x --disable-avahi --disable-screensaver --disable-vv --disable-dbus
%%
===Configure options, frequently used config...===
%%(text;sysctl.conf)
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.send_redirects = 0
kernel.panic_on_oops = 1
kernel.panic = 30
kernel.panic_on_unrecovered_nmi = 1
kernel.softlockup_panic = 1
vm.panic_on_oom = 1
net.core.rmem_max = 6553500
net.core.wmem_max = 4915200
net.ipv4.tcp_rmem = 6684 655360 6553500
net.ipv4.tcp_wmem = 3072 491520 4915200
net.ipv4.tcp_window_scaling = 1
net.core.somaxconn = 512
net.ipv4.tcp_fin_timeout = 20
net.ipv4.ip_local_port_range = 23000 63000
net.ipv4.tcp_abort_on_overflow = 1
net.ipv4.tcp_retries2 = 10
net.ipv4.tcp_keepalive_time = 1800
# Increase resilience towards syn attacks
net.ipv4.tcp_max_syn_backlog=4096
net.core.netdev_max_backlog=4096
net.ipv4.tcp_synack_retries=2
%%
===Swig===
As a dependency of subversion
%%
./configure --with-python=/usr/bin/python --with-perl=/usr/bin/perl --prefix=/opt/swig
%%
===Subversion===
%%
./configure --with-ssl --prefix=/opt/subversion \
--with-apr-util=/opt/apu/bin/apu-1-config \
--without-berkeley-db --with-apxs=/usr/bin/apxs2 \
--disable-mod-activation --with-swig=/opt/swig
%%
===Firefox===
+integer value content.notify.backoffcount = 5
+integer value nglayout.initialpaint.delay = 0
network.dns.disableIPv6=true
+browser.cache.memory.capacity=32768
===Dual monitor===
ATI's driver sucks. Don't get an ATI card and the following is just useful when one's stuck with it. This gives me 2 screens where window can be dragged to each other. Compiz is also working (after removing .gconf and .gconfd). The only outstanding issue is video flickering during horizontal panning.
====ATI====
%%
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection
Section "Files"
EndSection
Section "Module"
EndSection
Section "ServerFlags"
Option "Xinerama" "off"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "0-DFP1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1680x1050"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Monitor"
Identifier "0-DFP3"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1280x720"
Option "TargetRefresh" "60"
Option "Position" "1440 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
Option "OpenGLOverlay" "on"
Option "Capabilities" "0x00000800"
Option "Monitor-DFP1" "0-DFP1"
Option "Monitor-DFP3" "0-DFP3"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-1"
Device "aticonfig-Device[0]-1"
Monitor "aticonfig-Monitor[0]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
%%
==Mplayer==
ATI
%%
./configure --enable-dynamic-plugins --enable-runtime-cpudetection --enable-xv --enable-vdpau
%%
Nvidia
Get vdpau header from http://blog.avirtualhome.com/2009/05/29/how-to-compile-mplayer-with-vdpau-support-on-ubuntu/
%%
./configure --enable-dynamic-plugins --enable-runtime-cpudetection --enable-xv --enable-gl --enable-x11 --disable-inet6 --disable-libdv --with-vidix-drivers=nvidia --enable-gui
%%
For nvidia, might wanna include vpdau. To list compiled in ao and vo, do a
%%
mplayer -ao help
mplayer -vo help
%%
==Something to test with==
%%
Section “ServerLayout”
Identifier “Default Layout”
Screen 0 “Laptop Screen” 0 0
Screen 1 “Samsung Screen” RightOf “Laptop Screen”
# DualHead means two monitors
Option “DualHead” “true”
Inputdevice “Generic Keyboard”
Inputdevice “Configured Mouse”
Inputdevice “stylus” “SendCoreEvents”
Inputdevice “cursor” “SendCoreEvents”
Inputdevice “eraser” “SendCoreEvents”
Inputdevice “Synaptics Touchpad”
EndSection
%%
===Pidgin===
%%
./configure --with-x --disable-avahi --disable-screensaver --disable-vv --disable-dbus
%%