Sunday, April 1, 2007
Automatix2
Saturday, March 31, 2007
Install Beryl 0.2.0 was lasted version
1. #vi /etc/apt/sources.list
deb http://ubuntu.beryl-project.org/ edgy main
deb-src http://ubuntu.beryl-project.org edgy mainFor the GPG key (to ensure that the packages are authentic): wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O - | sudo apt-key add -
2. Install Beryl
sudo apt-get update
sudo apt-get install beryl emerald-themes
sudo aptitude install beryl
3. Starting Beryl #สุดท้ายหากไม่สามารถ Run Beryl ได้ให้ทำแค่ 2 ข้อก็พอ ดังนี้
1. ln -s /usr/bin/beryl ~/.kde/Autostart/beryl
2. ln -s /usr/bin/beryl-manager ~/.kde/Autostart/beryl-manager
สามารถทำแค่่นี้ก็ได้ หากไม่สามารถรัน Beryl ได้ถึงทำต่อไปตามด้านล่าง
To start Beryl, you might just type beryl, but it is more useful to use the manager instead, so type
beryl-manager4. Configuring Beryl
#vi /usr/bin/startberyl.sh
GNOME
#!/bin/sh
beryl-manager
sleep 4
exec gnome-session
KDE
#!/bin/sh
export KDEWM="/usr/bin/beryl-manager"
exec startkde
XFCE
#!/bin/sh
beryl-manager
sleep 4
exec xfce4-session
Run this command:
exec dbus-launch --exit-with-session gnome-session
for Gnome, and for KDE substituting gnome-session with startkde
sudo chmod a+x /usr/bin/startberyl.sh
To create the session, create the file /usr/share/xsessions/Beryl.desktop, and give it the following contents in a text editor (again, as root or using gksudo/kdesu):
[Desktop Entry]
Encoding=UTF-8
Name=Beryl
Exec=/usr/bin/startberyl.sh
Icon=
Type=Application
ถ้าทำแล้วไม่โหลดให้ sudo rm /usr/share/xsessions/Beryl.desktop 5. Setup Beryl on load start up every time on logon
KDE
Simpler - but less graphical. In a terminal:
ln -s /usr/bin/beryl-manager ~/.kde/Autostart/beryl-managerIn case you have trouble starting up after adding beryl-manager to the Session startup (such as getting the White Cube/blank screen after the Beryl logo), and hence can't get to the GUI to remove them, you can do the following to remove it:
Press Ctrl-Alt-F2 to get to a console, log in, and type:
Gnome:
rm ~/.config/autostart/beryl-manager.desktop
KDE:
Reference: Beryl
Wednesday, March 28, 2007
kmess
Passwd: หฟทหีืเ (samsung)
อกทีหนึ่ง Download
Set NTFS on Kubuntu
วิธีการติดตั้ง
1.#sodo vi /etc/apt/sources.list
For Edgy
deb http://flomertens.free.fr/ubuntu/ edgy main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main main-all
deb http://flomertens.keo.in/ubuntu/ edgy main main-all
2.#wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -
3.#sudo apt-get update
4.#sudo apt-get install ntfs-config
5.#gksu ntfs-config
gksu ในกรณีที่เครื่องเรายังไม่ได้ติดตั้งมันจะเรียกไม่ได้ ต้องติดตั้งก่อนโดยไปที่ start->setting->manage packets แล้วค้นหาด้วย gksu ติดตั้งซ่ะ ทีนีก็เรียกใช้คำสั่งได้แล้ว จะได้ดังภาพด้านล่างให้คลิกเพื่อเปิดใช้งาน
ดังภาพประกอบ ก็สามารถ W/R บน Drive NTFS ได้แล้ว
Tuesday, March 27, 2007
Configure Samba
#vi /etc/samba/smb.conf
[global]
workgroup = workgroup
server string = Kubuntu Server
hosts allow = 192.168.0. 192.168.10. 127.
security = user
load printers = yes
;guest account = nobody
log file = /var/log/samba.%m
max log size = 50
encrypt passwords = true
null passwords = no
local master = yes
os level = 33
;domain master = yes
;preferred master = yes
;domain logons = yes
;logon script = %G.bat
#============================ Share Definitions ==============================
[programe]
comment = programe
path = /media/hda9/programe
create mask =0640
directory mask = 750
valid users = @xisgo, hades
public = yes
writable = yes
[Music]
comment = music on hda5
path = /media/hda5/Download/programe/Music
available = yes
browseable = yes
public = yes
writable =yes
[programe2]
comment = programe2
path = /media/hda5/Download/programe
create mask =0640
directory mask = 750
valid users = @xisgo, hades
public = yes
writable = yes
#################################################
อย่าลืม #smbpasswd -a user เพื่อสร้าง user เข้าไปใช้งานด้วยล่ะครับ
นี้คือตัวอย่างการเซท Samba เพื่อใช้แชร์โฟล์เดอร์
Reference:
1. sontayamyblog
samba command line
Display current connection
$ smbstatus
Display more/detailed information: จำนวนผู้ใช้งานอยู่ ณ ตอนนี้
$ smbstatus -b
$ smbstatus -v |grep "Mon Jun 10 20:" แสดงผู้ใช้งานอยู่ ณ วันจันทร์ที่ 10 มิ.ย. เวลา 20:*
$ smbstatus -v |grep "share-hr-gm" |grep "Jun 10 20:"
$ smbstatus --shares
$ smbstatus -s |grep "Mon Jun 10 20:"
Display verbose output:
$ smbstatus -v
$ smbstatus -v | grep user display specific user
Display only list of shares:
$ smbstatus -s
2. ยอมให้รันไฟล์ .exe เพื่อติดตั้งโปรแกรมได้จากเครื่อง Client โดยการเพิ่มบรรทัดด้านล่างเพิ่มเข้าไป
#--------------------------------update 20170214---------------------------------------------------#
[global]
workgroup = WORKGROUP
#server string = Samba Server %v
server string = %h server (Samba, Ubuntu)
netbios name = share-ubuntu
interfaces = 127.0.0.0/8 10.10.10.0/24 192.168.10.0/24
security = user
bind interfaces only = yes
map to guest = bad user
dns proxy = no
unix charset = UTF-8
log file = /var/log/samba/log.%m
max log size = 50000
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
vfs objects = full_audit recycle
full_audit:prefix = %u|%I|%m|%S
full_audit:success = mkdir rename unlink rmdir pwrite
full_audit:failure = none
full_audit:facility = local7
full_audit:priority = NOTICE
########## Enable execute file .exe ##########
acl allow execute always = True
# Enable the recycle bin
#vfs object = recycle
recycle: repository = /myfolder /recycle /%U
recycle: touch = Yes
recycle: keeptree = Yes
recycle: versions = Yes
recycle: noversions = * tmp, * temp, * o, * obj, * TMP, TEMP *......
recycle: exclude = * tmp, * temp, * o, * obj, * TMP, TEMP *......
recycle: excludedir = /recycle, /tmp, /tmp, /tmp, /TEMP
#======================= Share Definitions =========================#
[Downloads]
path = /home/user/downloads
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody
create mask = 0777
directory mask = 0777
Thursday, March 22, 2007
Apache Config ง่ายๆ สำหรับนักพัฒนาเว็บไซต์
##############################################################
1. การสร้าง Virtual Host ให้เข้าไปแก้ไขที่ /etc/apache2/sites-available/default จะใช้ editor ไรก็ได้ไม่ว่ากัน เพิ่มส่วนข้างล่างไปเลยครับ อันนี้เป็นตัวอย่าง สำหรับ user tee น่ะครับ ผมกำหนดไว้ใน บ้านตัวเองเลย
Listen 9001
NameVirtualHost *:9001
ServerAdmin webmaster@localhost
DocumentRoot /home/tee/VHosts/mydomain.com
Options Includes Indexes FollowSymLinks MultiViews
AllowOverride All
#Order allow,deny
#allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
#ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
#
# AllowOverride None
# Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Order allow,deny
# Allow from all
#
#ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
#CustomLog /var/log/apache2/access.log combined
ServerSignature On
#Alias /doc/ "/usr/share/doc/"
#
# Options Indexes MultiViews FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/255.0.0.0 ::1/128
#
อธิบายส่วนสำคัญๆ ไดัดังนี้
1.1 Listen 9001 - ให้เปิด port นี้เอาไว้ (จริงๆ สำหรับ Ubuntu ส่วนนี้ default เค้าจะเอาไว้ใน /etc/apache2/ports.conf แต่เอาไว้ตรงนี้ก็ได้ ไม่ผิดแต่อย่างใด)
1.2 DocumentRoot /home/tee/VHosts/mydomain.com - ก็กำหนด ที่อยู่ของ file เว็บไซต์เลย อย่าลืมสร้างด้วยล่ะ
1.3
ส่วนที่ผม comment จาก default ก็คือผมไม่ต้องการจะใช้มันเช่น /cgi-bin/ /doc/ แล้วก็พวก error log เพราะมันจะทำเอา harddisk เต็มแบบไม่รู้ตัวนะครับ เผลอๆ ทำ apache เดี้ยงไปเลย
จบครับ Virtual Host ง่ายโคด (เว็บนี้ censor ป่าว) เมื่อย เอ้ายังมีอีกเรื่อง
2. การสร้าง UserDir สำหรับผู้ที่มี User บนระบบ เข้าไปแก้ไข /etc/apache2/apache2.conf หาบรรทัดนี้ครับ
# UserDir is now a module
UserDir Htdocs
AllowOverride FileInfo AuthConfig Limit
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
อธิบายส่วนสำคัญๆ ไดัดังนี้
2.1 UserDir Htdocs - กำหนดชื่อ folder ในที่นี้ผมกำหนดเป็น Htdocs โดย default จะชื่อ public_html จะอะไรก็ได้
2.2
เสร็จแล้วสร้าง folder Htdocs ลงไปที่ home ตัวเอง เช่น $mkdir /home/tee/Htdocs
ทีนี้ไม่ว่าเราจะยัดอะไรลงไปใน folder นี้ก็จะปรากฏใน http://localhost/~tee/ ครับ เย่ จบแล้วเมื่อยข้อมือ
** ไม่ว่าจะแก้อะไรใน config ถ้าจะให้ take effect ต้อง reboot apache ทุกครั้งนะครับ
#################################################################
ติดตั้ง Beryl บน Feisty
- สั่ง
sudo gedit /etc/apt/sources.listเพื่อเรียก Text Editor มาแก้ไข Repository - เพิ่มบรรทัดนี้ลงไป
deb http://ubuntu.beryl-project.org feisty mainเพื่อเพิ่ม Repository สำหรับชี้ไปที่ไฟล์ Beryl - สั่ง
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -เพื่อติดตั้งคีย์สำหรับขออนุญาตดาวน์โหลดไฟล์จาก Repository ที่เพิ่งตั้งไป - สั่ง
sudo apt-get updateเพื่ออัพเดทรายชื่อแพคเกจ - สั่ง
sudo apt-get install beryl emerald-themesเพื่อติดตั้ง beryl และ emerald
1. ubuntuclub
2. anotherlink
Tuesday, March 20, 2007
ตั้งค่า Preset on Xmms
;
; WinAmp EQ presets for XMMS. converted by Urpo Lankinen <wwwwolf@iki.fi>
; Do whatever you want with these. I don't care. No warranty
; expressed or implied. (And if you blast your speakers with these.
; It's Nullsoft's fault anyway =)
;
[Presets]
Preset0=(WinAmp) Classical
Preset1=(WinAmp) Club
Preset2=(WinAmp) Dance
Preset3=(WinAmp) Full Bass
Preset4=(WinAmp) Full Bass & Treble
Preset5=(WinAmp) Full Treble
Preset6=(WinAmp) Laptop Speakers / Headphones
Preset7=(WinAmp) Large Hall
Preset8=(WinAmp) Live
Preset9=(WinAmp) Party
Preset10=(WinAmp) Pop
Preset11=(WinAmp) Reggae
Preset12=(WinAmp) Rock
Preset13=(WinAmp) Ska
Preset14=(WinAmp) Soft
Preset15=(WinAmp) Soft rock
Preset16=(WinAmp) Techno
[(WinAmp) Classical]
Preamp=-1.11022e-15
Band0=-1.11022e-15
Band1=-1.11022e-15
Band2=-1.11022e-15
Band3=-1.11022e-15
Band4=-1.11022e-15
Band5=-1.11022e-15
Band6=-7.2
Band7=-7.2
Band8=-7.2
Band9=-9.6
[(WinAmp) Club]
Preamp=-1.11022e-15
Band0=-1.11022e-15
Band1=-1.11022e-15
Band2=8
Band3=5.6
Band4=5.6
Band5=5.6
Band6=3.2
Band7=-1.11022e-15
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Dance]
Preamp=-1.11022e-15
Band0=9.6
Band1=7.2
Band2=2.4
Band3=-1.11022e-15
Band4=-1.11022e-15
Band5=-5.6
Band6=-7.2
Band7=-7.2
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Full Bass]
Preamp=-1.11022e-15
Band0=-8
Band1=9.6
Band2=9.6
Band3=5.6
Band4=1.6
Band5=-4
Band6=-8
Band7=-10.4
Band8=-11.2
Band9=-11.2
[(WinAmp) Full Bass & Treble]
Preamp=-1.11022e-15
Band0=7.2
Band1=5.6
Band2=-1.11022e-15
Band3=-7.2
Band4=-4.8
Band5=1.6
Band6=8
Band7=11.2
Band8=12
Band9=12
[(WinAmp) Full Treble]
Preamp=-1.11022e-15
Band0=-9.6
Band1=-9.6
Band2=-9.6
Band3=-4
Band4=2.4
Band5=11.2
Band6=16
Band7=16
Band8=16
Band9=16.8
[(WinAmp) Laptop Speakers / Headphones]
Preamp=-1.11022e-15
Band0=4.8
Band1=11.2
Band2=5.6
Band3=-3.2
Band4=-2.4
Band5=1.6
Band6=4.8
Band7=9.6
Band8=12.8
Band9=14.4
[(WinAmp) Large Hall]
Preamp=-1.11022e-15
Band0=10.4
Band1=10.4
Band2=5.6
Band3=5.6
Band4=-1.11022e-15
Band5=-4.8
Band6=-4.8
Band7=-4.8
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Live]
Preamp=-1.11022e-15
Band0=-4.8
Band1=-1.11022e-15
Band2=4
Band3=5.6
Band4=5.6
Band5=5.6
Band6=4
Band7=2.4
Band8=2.4
Band9=2.4
[(WinAmp) Party]
Preamp=-1.11022e-15
Band0=7.2
Band1=7.2
Band2=-1.11022e-15
Band3=-1.11022e-15
Band4=-1.11022e-15
Band5=-1.11022e-15
Band6=-1.11022e-15
Band7=-1.11022e-15
Band8=7.2
Band9=7.2
[(WinAmp) Pop]
Preamp=-1.11022e-15
Band0=-1.6
Band1=4.8
Band2=7.2
Band3=8
Band4=5.6
Band5=-1.11022e-15
Band6=-2.4
Band7=-2.4
Band8=-1.6
Band9=-1.6
[(WinAmp) Reggae]
Preamp=-1.11022e-15
Band0=-1.11022e-15
Band1=-1.11022e-15
Band2=-1.11022e-15
Band3=-5.6
Band4=-1.11022e-15
Band5=6.4
Band6=6.4
Band7=-1.11022e-15
Band8=-1.11022e-15
Band9=-1.11022e-15
[(WinAmp) Rock]
Preamp=-1.11022e-15
Band0=8
Band1=4.8
Band2=-5.6
Band3=-8
Band4=-3.2
Band5=4
Band6=8.8
Band7=11.2
Band8=11.2
Band9=11.2
[(WinAmp) Ska]
Preamp=-1.11022e-15
Band0=-2.4
Band1=-4.8
Band2=-4
Band3=-1.11022e-15
Band4=4
Band5=5.6
Band6=8.8
Band7=9.6
Band8=11.2
Band9=9.6
[(WinAmp) Soft]
Preamp=-1.11022e-15
Band0=4.8
Band1=1.6
Band2=-1.11022e-15
Band3=-2.4
Band4=-1.11022e-15
Band5=4
Band6=8
Band7=9.6
Band8=11.2
Band9=12
[(WinAmp) Soft rock]
Preamp=-1.11022e-15
Band0=4
Band1=4
Band2=2.4
Band3=-1.11022e-15
Band4=-4
Band5=-5.6
Band6=-3.2
Band7=-1.11022e-15
Band8=2.4
Band9=8.8
[(WinAmp) Techno]
Preamp=-1.11022e-15
Band0=8
Band1=5.6
Band2=-1.11022e-15
Band3=-5.6
Band4=-4.8
Band5=-1.11022e-15
Band6=8
Band7=9.6
Band8=9.6
Band9=8.8
Reference:
UbuntuClub
Way back into Love
I've been living with a shadow overhead
I've been sleeping with a cloud above my bed
I've been lonely for so long
Trapped in the past, I just can't seem to move on
I've been hiding all my hopes and dreams away
Just in case I ever need em again someday
I've been setting aside time
To clear a little space in the corners of my mind
All I want to do is find a way back into love
I can't make it through without a way back into love
Oh oh oh
I've been watching but the stars refuse to shine
I've been searching but I just don't see the signs
I know that it's out there
There's got to be something for my soul somewhere
I've been looking for someone to shed some light
Not somebody just to get me through the night
I could use some direction
And I'm open to your suggestions
All I want to do is find a way back into love
I can't make it through without a way back into love
And if I open my heart again
I guess I'm hoping you'll be there for me in the end
oh, oh, oh, oh, oh
There are moments when I don't know if it's real
Or if anybody feels the way I feel
I need inspiration
Not just another negotiation
All I want to do is find a way back into love
I can't make it through without a way back into love
And if I open my heart to you
I'm hoping you'll show me what to do
And if you help me to start again
You know that I'll be there for you in the end
oh, oh, oh, oh, oh
Reference:
download music