darkranger 3 Report post Posted December 3, 2004 Kepada pakar-pakar linux sekelian, diharapkan dapat perturunkan ilmu pengetahuan masing2 supaya dapat kita berkongsi bersama...Aku ni pun newbie je dlm linux ni.... Thread ni untuk jadi rujukan semua org termasuk diri aku sendiri...Semua notes yg aku letak kat sini berdasarkan sistem yg aku gunakan ... RedHat Linux Fedora (Core 1) Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 3, 2004 SAMBA (SMB=Session Message Block)Kaedah untuk membolehkan perkongsian sumber antara pc Linux dan Microsoft.Contohnya untuk membuka file shared folder (Network Neigbourhood) dlm pc windows lain.1. Pastikan Samba telah diinstall dlm pclinux anda rpm -q samba (versi Samba akan dipaparkan jika telah install)2. Start service samba jika belum started. /etc/init.d/smb start3. Create satu direktori baru dan mount shared folder tersebut mkdir pckongsi smbmount \\\\namapc\\namafolder /pckongsi password : (masukkan password jika ada)4. senaraikan file dgn ls atau buka folder pckongsi dari desktop(file explorer).Note :--------------Selain penggunaan smbmount boleh juga gunakan smbclient utk connect & senaraikan file smbclient \\\\namapc\\namafolder password : ls -All-lokasi file configuration samba /etc/samba/smb.conf-untuk unmount folder /pckongsi umount /pckongsi Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 4, 2004 (edited) Configure Linux Sebagai Web Server1. edit fail index.html dan save dlm folder /var/www/html <html> <body bgcolor="lightblue"> Welcome To My Linux Web Server </body> </html> 2. start Apache HTTP serviceStart-System Settings-Server Settings-Services ---> http (Start)3. buka website dengan internet browser (cth : Mozilla/Netscape) http://localhost/ atau http://nombor.ip.anda/ Edited December 4, 2004 by darkranger Quote Share this post Link to post Share on other sites
M3ntaryâ„¢ 62 Report post Posted December 7, 2004 ni sudah bagus ni... Suse tak der ker? Quote Share this post Link to post Share on other sites
psychoX 6 Report post Posted December 7, 2004 nak setting modem luar ..aku buat guna linux fedora.. http://dhost.info/hardyweb/linux/settingmodem.htmlp/s sori .. buat cikai cikai je.. Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted December 7, 2004 aku movekan topic ni ke sticky.. senang org2 nak refer Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 10, 2004 Configure Linux sebagai FTP ServerStart FTP Servicecd /etc/rc.d/init.d./vsftpd startatau dari Server Settings-Services. Choose vsftpd [start]FTP Folder-Letakkan fail untuk dikongsi dalam dalam folder /var/ftp atau /var/ftp/pub-buka dgn browser url berikut ftp://localhost/ atau ftp://192.168.0.1/ (contoh no ip)-jika login ftp dari command prompt pc windows lainc:\ftp <Enter>ftp > open 192.168.0.1user : anonymous atau login dgn user pc linux tersebutpassword : ftp > ls (untuk senaraikan file. help utk senarai arahan)ftp > get gambar.jpg c:\gambar.jpg (utk copy file dari server ke pc)ftp > put c:\bunga.jpg bunga.jpg (utk send file ke server) Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted December 12, 2004 Tips tambahan. Make sure al firewall port di"flush" dan tak block apa2 especially FTP.iptables -Fatauipchains -F Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 21, 2004 Install Xine (media player utk linux)1. masuk website dan download file berikut : http://cambuca.ldhs.cetuc.puc-rio.br/~jcm/...9.13/i686.RPMs/ a. libxine0-0.9.13-1.i686.rpm (4.5M) b. xine-ui-0.9.13-1.i686.rpm (1.5MB) -user interface) c. xvid-0.20020412-4.i686.rpm ( 91kb) d. w32codec-0.50-1.i386.rpm (4.2MB) - codec utk divx-optional)2. Install setiap satu program berikut : (login sebagai root) rpm -Uvh *.rpm (gantikan * dgn namapenuh file rpm tersebut) /sbin/ldconfig 3. run Xine dari startmenu atau dari terminal xine <Enter> Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 21, 2004 (edited) Install Wine (software untuk run program Windows)1. masuk website http://www.winehq.com/site/download-rh download : wine-20041201-1fc1winehq.i686.rpm -pilihan bergantung kepada jenis processor dan jenis linux. Contoh ini untuk pc processor Intel dan Redhat Fedora Core 1.2. install rpm tersebut sama ada cara mudah, right click dan pilih [Open with - Install Packages] atau rpm -ivh wine-20041201-1fc1winehq.i686.rpm <Enter>3. copy file notepad.exe dan sol.exe dari pc windows dan letakkan dlm mana-mana folder. right click notepad.exe dan pilih [Open with -Wine]Note: tidak semua program windows dapat run dgn baik dlm Linux dgn Wine. cari dlm internet utk senarai program yg sesuai. sesetengah program memerlukan beberapa fail (.dll). Program lain yg sesuai : Calculator, Notepad, Solitaire, Paint, Winzip, Winamp(cuba utk run Wordpad tapi belum berjaya sebab perlukan beberapa .dll) Edited December 21, 2004 by darkranger Quote Share this post Link to post Share on other sites
psychoX 6 Report post Posted December 21, 2004 dark.. aku try nak run dreamweaver guna wine .. tak dpt dpat... cam mana ek.. Quote Share this post Link to post Share on other sites
musafir 0 Report post Posted December 23, 2004 dreamweaver takleh nak run dlm linux. kalau dpt pun, banyak features yg akan crash bila cuba bukak.cuba pakai html editor yg lain... cthnya utk linux pakai NVU (sebutan N-view)http://www.nvu.com/download.html Quote Share this post Link to post Share on other sites
musafir 0 Report post Posted December 23, 2004 sapa tau camana nak install c compiler dari cd fedora ?aku dah try, tapi error la.... Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 23, 2004 NFS - Linux to Linux File SharingNote: Samba utk Linux dgn Windows file sharing. NFS utk linux dgn linuxpckatak = nama pc dimana file beradapcular = pc lain yg ingin membuka file dlm pckatakPada PCKATAK1. create directory utk dikongsi su (login sbg root) mkdir /usr/kongsi chmod a+rw /usr/kongsi copy apa-apa file dan letak dlm folder /usr/kongsi2. gedit /etc/exports /usr/kongsi pcular(rw) save - quit3. /usr/sbin/exportfs <Enter>4. /etc/init.d/nfs start <Enter> atau nfs restartPada PCULAR1. create directory mkdir /mnt/pckatak2. mount folder pckatak mount -t nfs pckatak:/usr/kongsi /mnt/pckatakatau automatik setiap kali boot dgn /etc/fstab pckatak:/usr/kongsi /mnt/pckatak nfs defaults 0 0 Quote Share this post Link to post Share on other sites
blank 1 Report post Posted December 25, 2004 jimat la hd camtu...aku penah terbaca pasal thinclient nie, katanya server kena install 2 linux betul ker?? Quote Share this post Link to post Share on other sites
blank 1 Report post Posted December 26, 2004 tutorial tu la yang kcakap..hehe:D ntah la dah lama aku baca ingat2 lupa plak..dulu xcited gila nak buat thinclient ni, tapi sampai skang tak buat2, sbb takde lan...Sory darkranger...bleh sambung topik balik... Quote Share this post Link to post Share on other sites
blank 1 Report post Posted December 26, 2004 sonang cakap aku ada sebijik pc jo.. Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 28, 2004 (edited) Edited December 30, 2004 by darkranger Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 28, 2004 MOUNT DRIVE C (Windows) DALAM LINUXbagi yg buat pc dual boot Linux dan Windows. Berikut langkah2 utk mount partition FAT32 Windows semasa di dalam Linux. Note: Redhat tak boleh mount partition NTFS1. buka start - system tools -hardware browser-dptkan nombor partition dimana drive windows berada cth (hda1)2. dari terminal mkdir /mnt/win chmod a+rw /mnt/win3. mount -t vfat /dev/hda1 /mnt/win4. jika telah berjaya, edit file /etc/fstab supaya drive tersebut mount secara automatik setiap kali boot gedit /etc/fstabtaip arahan ini : /dev/hda1 /mnt/c vfat users,owner,rw,umask=000 0 0 Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 28, 2004 (edited) Menggunakan Vi (Linux Text Editor )Note : Vi adalah text editor yang paling ringkas dan mudah serta terdapat dalam semua versi Linux dan Unix. Tetapi ramai yang mengelak menggunakannya kerana terasa seperti susah utk digunakan.Kat sini aku letak nota penggunaan asas yang sebenarnya sangat mudah untuk diingati dan dipelajari.1. dari terminal taip vi <Enter>$ vi2. Anda sedang berada dlm mod arahan.Tekan " i " (bermaksud insert) utk mula menaipTekan <Enter> utk turun ke baris baru3. Tekan <Esc> utk kembali ke mod arahan4. Taip :w namafile utk save. Atau :w sahaja jika nama telah diberikan sebelumnya. Tekan " i " semula untuk terus menaip.5. Utk save dan exit <Esc>:wq! (write and quit) atau :q! (utk quit tanpa save)6. Untuk paparkan kandungan file tersebut$ cat namafail Lain-lain kekunciPageUp, PageDown Edited December 28, 2004 by darkranger Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 28, 2004 (edited) MenggunakanThumb/Flash Drive-create foldermkdir /mnt/usbdrive# mount -t vfat /dev/sda1 /mnt/usbdrive-buka folder /mnt/usbdrive dgn file explorerNote: bila dah selesai, sebelum cabut, pastikan unmount terlebih dahulu.-login sbg root# umount /mnt/usbdrivejika keluar message sebagai 'device is busy'(pastikan telah tutup semua window yg menggunakan drive tersebut# /usr/sbin/lsof /mnt/usbdriveperhatikan nombor process yg masih menggunakan flash drive terebut. cth :COMMAND PID USER FD TYPE DEVICE SIZE NODE NAMEfam 3617 siti 52r DIR 8,1 1024 34462 /mnt/usbdrive/nota# kill 3617 <Enter># umount /mnt/usbdrive Edited December 30, 2004 by darkranger 1 Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted December 30, 2004 (edited) Real Player 10 (untuk memainkan lagu-lagu MP3 dan Video. Lebih mudah berbanding Xine dll)1. Download file RealPlayer untuk LinuxRPM dari website ini http://www.real.com/linux/?src=011404intl_apac_home(klik pada Download RPM Package)2. login sebagai root & install dari terminal window[root@pclinux ]# rpm -ihv RealPlayer10GOLD.rpmPreparing... ########################################### [100%] 1:RealPlayer ########################################### [100%][root@pclinux]# 3. Run RealPlayer untuk Setup ConfigurationStart - Sound & Video - More Sound & Video Applications - Real Player10 Edited December 30, 2004 by darkranger Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted January 3, 2005 C Compiler dalam Linux (GCC)-install file rpm berikut satu per satu dari RedHat Fedora Disk 2(sign in as root)rpm -Uvh binutils-2.14.90.0.6-3.i386.rpm rpm -Uvh glibc-kernheaders-2.4-8.36.i386.rpmrpm -Uvh glibc-headers-2.3.2-101.i386.rpmrpm -Uvh glibc-devel-2.3.2-101.i386.rpmrpm -Uvh gcc-3.3.2-1.i386.rpmJika telah selesai, cuba taip program c berikut dan compile...Taip dengan editor vi atau gedit (hello.c)#include <stdio.h>main(){ printf ("Hello world ! \n"); return 0;}Compilegcc -o hello.exe hello.cRun./hello.exe Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted January 3, 2005 Java Compiler in Linux (GCJ)Note: pastikan telah install C Compiler spt langkah di atas.Install RPM berikut satu-persatu dari Fedora Disk 2rpm -Uhv libgcj-devel-3.3.2-1.i386.rpmrpm -Uvh zlib-devel-1.2.0.7-2.i386.rpmrpm -Uvh gcc-java-3.3.2-1.i386.rpmJika telah berjaya, cuba taip program java berikut dan compile (HelloJava.java)import java.io.*; class HelloJava { public static void main(String args[]) throws IOException { System.out.println ("Selamat Datang Ke Java..."); }}Compile and Linkgcj -c -g -O HelloJava.javagcj --main=HelloJava -o HelloJava.class HelloJava.oRun Program./HelloJava.classSelamat Datang Ke Java... Quote Share this post Link to post Share on other sites
darkranger 3 Report post Posted January 6, 2005 (edited) Mount NTFS Partition ( Linux NTFS RPM )1. Download an RPM file from this website according to your linux version, processor and kernel version website : http://linux-ntfs.sourceforge.net/rpm/fedora1.htmlFor example, i'm using Fedora Core 1 with AMD Athlon pc and kernel version 2.1.22-1.2115.nptl, i'm therefore downloading this filehttp://prdownloads.sourceforge.net/linux-n...nptl.athlon.rpmTo get kernel version : rpm -q kernel( kernel-2.4.22-1.2115.nptl )2. Install the rpm rpm -ihv kernel-ntfs-2.4.22-1.2115.nptl.athlon.rpm3. Check for ntfs partition number /sbin/fdisk -l ( /dev/hda3 * 3782 5168 10485720 7 HPFS/NTFS )4. Create directory & mount as readonly (not safe to write on ntfs) mkdir /mnt/winxp mount /dev/hda3 /mnt/winxp -t ntfs -r -o umask=02225. Edit file /etc/fstab so that ntfs partition is mounted every bootup gedit /etc/fstab add this line /dev/hda3 /mnt/winxp ntfs users,owner,ro,umask=000 0 0Note : Credits to Kulat-Malat & oshiri from Putera.Com Forum Edited January 24, 2005 by darkranger Quote Share this post Link to post Share on other sites