Posts Tagged ‘ debian

Kill user

kill หมดเหลือ root

who | awk ‘{ printf ("%s",$1 "\n"); }’| grep -v root | xargs -I {} -t pkill -u $1{}

pkill -u username

skill -KILL -u username

mix port error

[error] VirtualHost www.mtuser.com:0 — mixing * ports and non-* ports
with a NameVirtualHost address is not supported, proceeding with
undefined results

แก้ตามกระทู้นี้

Share file

ลอกมา

Guest – read/write Public folder

Guest – read only Videos folder

nano /etc/samba/smb.conf

security = user

map to guest = bad user

guest account = nobody

invalid users = root

[public]
comment = Public Share
path = /home/pang/Public
read only = no
create mask = 0640
directory mask = 0750
guest ok = yes

[Videos]
comment = Videos share
path = /home/pang/Videos
read only = yes
guest ok = yes

Debian lenny – Pulse Audio

ลอกมา..

aptitude install pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-module-hal pulseaudio-module-jack pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils libasound2-plugins

aptitude install paprefs paman padevchooser

add session ในเมนู System>Preferences>sessions

/usr/session/pulseaudio -D

restart pulase audio จะถูกนำมาใช้ ไม่ต้อง add sink (เพราะอะไรหว่า)เสียงจาก flash ไม่ผ่าน pulseaudio (ช่างมัน) – -

ที่ลอกมา 1, 2

ntfs-3g

sudo apt-get install ntfs-3g

mkdir /media/80

mount -t ntfs-3g /dev/hdb1 /media/80 -o umask=0,nls=utf8

nano /etc/fstab

/dev/hdb1 /media/80 ntfs-3g umask=0,nls=utf8 0 0

Flash player

wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz

~tar -zxf install_flash_player_10_linux.tar.gz

~mkdir ~/.mozilla/plugins

cp install_flash_player_10_linux/ libflashplayer.so  ~/.mozilla/plugins

restart firefox/iceweasel

ที่มา

บันทึก Debian 5.0

ลอกมา

เพิ่ม locales ไทย, font ไทย, tahoma font, multimedia,

font เกาหลี ญี่ปุ่น สำหรับเพลง อ่านไม่ออกแต่ไม่ลงตัวหนังสือเป็นเหลี่ยมๆ

apt-get install ttf-kochi-gothic ttf-sazanami-gothic

apt-get install ttf-unfonts-core

ครบหรือเปล่าไม่รู้ ก็อ่านไม่ออก -*-

ที่เดามา

Read more