Requirments
qt4 - Aspell - Espeak(pronounce)
Friday, January 15, 2010
Saturday, January 9, 2010
Webcam AND Slackware
# Lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 1c4f:3000 SiGma Micro Micro USB Web Camera
Bus 004 Device 003: ID 04f3:0210 Elan Microelectronics Corp. AM-400 Hama Optical Mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Now let us see if the webcam is compatible:
Access this link and look inside for SiGma Micro, and see if it is compatible with the driver.
Download and install the driver: linux-uvc-20080604_2.6.24.5_smp-i486-1alien.tgz # installpkg linux-uvc-20080604_2.6.24.5_smp-i486-1alien.tgz
# chmod 777 /dev/video0
# modprobe uvcvideo
# lsmod | grep uvcvideo
# echo "modprobe uvcvideo">> / etc / rc.d / rc.localMonday, November 30, 2009
PostgreSQL
# cd /usr/local/src
# tar -zxvf postgresql-x.x.x.tar.gz
# cd postgresql-x.x.x
# ./configure
# make
# make install
PostgreSQL installed, let the initial settings:
# useradd postgres
# passwd postgres
# mkdir /usr/local/pgsql/data
# chown postgres /usr/local/pgsql/data
# su postgres
User and server folder created, we initialize the first time the server
#initdb -D /usr/local/pgsql/data
Now we set some more details. Inside the file /etc/profile, add the following lines wid vi:
.
..
...
....
PATH=$PATH:/usr/local/pgsql/bin
MANPATH=$MANPATH:/usr/local/pgsql/man
export PATH MANPATH
Save the file and close the editor,
and :
# cd /usr/local/src/postgresql-x.x.x/contrib/start-scripts/
# cp linux /etc/rc.d/rc.postgresql
# chmod a+x /etc/rc.d/rc.postgresql
Your PostgreSQL is ready! To start it, run:
# /etc/rc.d/rc.postgresql start
# tar -zxvf postgresql-x.x.x.tar.gz
# cd postgresql-x.x.x
# ./configure
# make
# make install
PostgreSQL installed, let the initial settings:
# useradd postgres
# passwd postgres
# mkdir /usr/local/pgsql/data
# chown postgres /usr/local/pgsql/data
# su postgres
#initdb -D /usr/local/pgsql/data
Now we set some more details. Inside the file /etc/profile, add the following lines wid vi:
.
..
...
....
PATH=$PATH:/usr/local/pgsql/bin
MANPATH=$MANPATH:/usr/local/pgsql/man
export PATH MANPATH
Save the file and close the editor,
and :
# cd /usr/local/src/postgresql-x.x.x/contrib/start-scripts/
# cp linux /etc/rc.d/rc.postgresql
# chmod a+x /etc/rc.d/rc.postgresql
Your PostgreSQL is ready! To start it, run:
# /etc/rc.d/rc.postgresql start
Tuesday, October 27, 2009
phpMyAdmin in Slackware 13
Install
Download phpMyAdmin from phpMyAdmin.net and put it in /usr/src/sourcepkg. Extract and add a symbolic link for later use in our config.#cd /var/www #tar jxvf /usr/src/source/phpMyAdmin-XXX.tar.bz2 #ln -sf phpMyAdmin-XXX phpMyAdmin
Create the phpMyAdmin config file and edit it.
#touch /etc/httpd/phpMyAdmin.conf#jed /etc/httpd/phpMyAdmin.conf
Add an alias to httpd (since the phpMyAdmin directory isn't in var/www/htdocs) and change the Directory rules.
# # phpMyAdmin - MySQL Database Administration Tool
# Alias /phpMyAdmin /var/www/phpMyAdmin
# AllowOverride None # Options None Order allow,deny
Allow from all
Edit httpd.conf to use our new config and append at the end.
# Uncomment the following line to enable phpMyAdmin support: # Include /etc/httpd/phpMyAdmin.conf
Configuration
Restart apache#/etc/httpd/rc.httpd restart
Go to your browser and open http://localhost/phpMyAdmin
Finished.
Tuesday, April 14, 2009
Repair Lilo after install Windows
ابتدا با سی دی یا دی وی دی Slackware کامپیوترتان را بوت کنید پس از اینکه با کاربر ریشه وارد شدید با دستورات زیر LILOرا تعمیر کنید
mkdir /mnt/linux#
# mount -w /dev/sda11 -نام پارتیشنی که لینوکس بر روی آن نصب است - /mnt/linux
# cd /mnt/linux
#chroot /mnt/linux /bin/bash
# file /boot/vmlinuz
# lilo -v
# reboot
# cd /mnt/linux
#chroot /mnt/linux /bin/bash
# file /boot/vmlinuz
# lilo -v
# reboot
Tuesday, April 7, 2009
Keyboard layout us,ir
در حالت پیش فرض سویچنگ بین لایه های کیبورد در Slackware کار نمی کنه من با ویرایش فایل زیر این کار رو انجام دادم
/etc/X11/xorg.conf:option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "us,ir"
Option "XkbOptions" "grp:alt_shift_toggle".
در پایان از نحیط گرافیکی خارج و مجددا با دستور startx لاگین شوید. .
NTFS & Slackware
در ورژن 12 پارتیشن های دارای فایل سیستم NTFS فقط قابل خواندن هستند و نمی توان برروی آنها اطلاعات نوشت.البته این مشکل در ورژن های 12.1 و 12.2 حل شده است. نرم افزاری که می خوام معرفی کنم اسمش ntfs-3g هست که config اون خیلی آسونه . می تونید از لینک زیر دانلود کنید.
لینک دانلود
بعد از دانلود با دستور زیر اونو نصب کنید.
لینک دانلود
بعد از دانلود با دستور زیر اونو نصب کنید.
# installpkg ntfs-3g-1.2412-i486-1as.tgz
حالا باید فایلetc/fstab رو با ادیتور ویرایش کنید.
قسمتهایی که رنگش بنفشه تغییر داده شده
قسمتهایی که رنگش بنفشه تغییر داده شده
vi /ets/fstab #
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/sda9 swap swap defaults 0 0
/dev/sda10 / reiserfs defaults 1 1
dev/sda1 /C ntfs-3g umask=077 1 0/
/dev/sda5 /D ntfs-3g umask=077 1 0
/dev/sda6 /E ntfs-3g umask=077 1 0
/dev/sda7 /F ntfs-3g umask=077 1 0
/dev/sda8 /G ntfs-3g umask=077 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
Subscribe to:
Posts (Atom)