Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About jsn06

  • Rank
  1. well here is mine anyweb , but as i said mine was a fresh install & not upgraded johnny06
  2. Well , if you have tried like me to install the VMware Server or WorkStation on a new kernel [ kernel 2.6.20-1.2948.fc6] like me & had no luck !!! Here is the Solution. I have tried this tutorial which is at http://www.howtoforge.com/vmware_server_fedora_core_6 which did not work for me cause whoever wrote that article is outdated now & will not work for you either (with all my respect to whoever wrote it) . If you have a new kernel like me kernel 2.6.20-1.2948.fc6 (where they are talking about 2.6.19-1.2911.fc6), this is how i got it working. 1)Register to get your free serial number(s) to start using VMware Server & then download http://download3.vmware.com/software/vmser...-44356.i386.rpm. 2)Make sure you have the following or updated * gcc * gcc-c++ * kernel-devel * xinetd & if i was in your shoes i will also install compat-gcc-34 compat-gcc-34-c++ which will not harm your box (FC6 includes GCC 4.1 compiler. Some applications will NOT compile in GCC 4.1) install GCC 3.4 to allow compiling applications which do not yet support GCC 4.1 yum install 3)uname -r & it should spit 2.6.20-1.2948.fc6 4)rpm -q kernel-devel & should spit [kernel-devel-2.6.20-1.2948.fc6] 5) rpm -i /home/user_name/VMware-server-1.0.3-44356.i386.rpm 6)VMWare server is installed & for your box to use it you will have to configure it 7)$ su - # vmware-config.pl this is what you get: In which directory do you want to install the mime type icons ? [/usr/share/icons] What directory contains your desktop menu entry files? These files have a .desktop file extension. [/usr/share/applications] ... In theory , you can valid & confirm each section. 8)End of installation if you have no errors !!! your configuration should look like this The configuration of VMware Server for Linux for this running kernel completed successfully. You can now run VMware Workstation by invoking the following command: "/usr/bin/vmware". Enjoy, --the VMware team as root /etc/init.d/xinetd start 9)Now if everything went wrong & the vmware-config.pl aborted to configure with something like this Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config0/vmnet-only' make -C /lib/modules/2.6.19-1.2911.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686' CC [M] /tmp/vmware-config0/vmnet-only/driver.o CC [M] /tmp/vmware-config0/vmnet-only/hub.o CC [M] /tmp/vmware-config0/vmnet-only/userif.o /tmp/vmware-config0/vmnet-only/userif.c: In function 'VNetCopyDatagramToUser': /tmp/vmware-config0/vmnet-only/userif.c:629: error: 'CHECKSUM_HW' undeclared (first use in this function) /tmp/vmware-config0/vmnet-only/userif.c:629: error: (Each undeclared identifier is reported only once /tmp/vmware-config0/vmnet-only/userif.c:629: error: for each function it appears in.) make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1 make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.fc6-i686' make: *** [vmnet.ko] Error 2 make: Leaving directory `/tmp/vmware-config0/vmnet-only' Unable to build the vmnet module. For more information on how to troubleshoot module-related problems, please visit our Web site at "http://www.vmware.com/download/modules/modules.html" and "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html". Execution aborted. 10) Rendez vous at this page & download http://ftp.cvut.cz/vmware/vmware-any-any-update109.tar.gz which is a patch to fix this problem where it will save you a great big headache. 11)put this file in your /home/user_name & -> tar -xzf vmware-any-any-update109.tar.gz 12)After the file has been extracted, change to the /vmware-any-any-update??? directory and run: 13) ./runme.pl 14)During the configuration, which automatically follows right after the patch has been applied, I accepted all of the defaults to the questions that are asked, meaning the paths to directories that were listed,
  3. Or , if you want Multimedia Player (MPlayer) with Plug-in for Mozilla Firefox yum -y install mplayerplug-in johnny06
  4. Atheros AR5005GS Wireless Network Adapter (802.11b/g) in this machine is supported by the MadWiFi driver. # su - # vi /etc/yum.repos.d/livna.repo Then add this: [livna] name=Livna for Fedora Core $releasever - $basearch - Base baseurl= http://rpm.livna.org/fedora/$releasever/$basearch/ http://livna.cat.pdx.edu/fedora/$rele...$basearch/ http://wftp.tu-chemnitz.de/pub/linux/livna...$basearch/ http://ftp-stud.fht-esslingen.de/pub/Mirro...$basearch/ failovermethod=priority #mirrorlist=http://rpm.livna.org/mirrorlist-5 enabled=0 gpgcheck=1 (NB that i have the "enabled" bit set to "0" (off) in this file so that the livna-stable repository will not conflict with our RPMForge repositories for automatic updates.) Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gvim or save with :wq When all is done: yum update && yum install madwifi Wait until it gets installed with no errors. Now check and see if you have in your network connection the Atheros Communicator detected. To open network connections just type 'neat' as root, then Hardware section and you should see Atheros in there. Manually load the module with: /sbin/modprobe ath_pci Manually create the configuration files, network interface configuration scripts are located in /etc/sysconfig/network-scripts and are named ifcfg-xxxx, where xxxx is the name of the interface. MadWiFI driver creates an interface named ath0, so you should create a /etc/sysconfig/network-scripts/ifcfg-ath0 with: vi /etc/sysconfig/network-scripts/ifcfg-ath0 And its contents: DEVICE=ath0 NAME=ath0 BOOTPROTO=dhcp ONBOOT=yes MODE=Managed ESSID= Again save with :wq ESSID entry should be set to the SSID of the wireless access point you are trying to connect to. If you omit this line, the card will simply attempt to connect to the most powerful access point. If you want to know what access points are available you can use the iwlist command: /sbin/iwlist ath0 scan Start up the interface. /sbin/ifup ath0 Then "Hello Wireless World" on fedora with Madwifi driver! I just love this free world and many thanks to this forum and #linux-noob @ efnet! johnny06
  5. You want to set up a POP3 mail server
  6. jsn06

    PHP: on the day

    Getting the current full URL in PHP Sometimes, you might want to get the current full URL in PHP. Here is how you do that. Add the following code to a page: <?php function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80″) ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } ?> You can now get the full URL using the line: <?php print(selfURL()); ?> Removing empty elements in a PHP array, this works like the @Trim formula in Notes/Domino. <?php /** * Trims an array from empty elements. * * @param $a the array to trim. * @return a new array with the empty elements removed. */ function array_trim($a) { $j = 0; for ($i = 0; $i < count($a); $i++) { if ($a[$i] != "") { $b[$j++] = $a[$i]; } } return $b; } ?> Use it like this: <?php $a[0]=""; $a[1]="An entry"; $a[2]="Another one"; $a[3]=""; $b=array_trim($a); ?> The resulting $b array will have two entries, with the two empty ones removed. How to figure out your server’s real name. It is sometimes necessary to figure out the real server name. There are several ways to do this, but in PHP, a simple way is this: <?php $IP = gethostbyname ($SERVER_NAME); $server = gethostbyaddr($IP); echo "Server IP: $IP"; echo "Server Name: $server"; ?> If you do not want to see the IP address of your website, you can use this single line of code: <?php echo "Server Name: " . gethostbyaddr (gethostbyname ($SERVER_NAME)); ?> johnny06
  7. If not installed yet; go to "Desktop" > "System Settings" > "Add/Remove Applications", enter your root password (or run the "system-config-packages" command as root), then tick the check box for "FTP Server", click "close", click "update" and "continue". You may be asked to insert the Fedora Core 4 installation disk #3 to continue. Go to "Desktop" > "System Settings" > "Security Level". Provide your root password, click "ok" and on the "Firewall Options" tab make sure the checkbox next to "FTP" is checked. On the "SELinux" tab under (expanded) "FTP" make sure all the checkboxes are checked except "Disable SELinux protection for ftpd daemon". Check the checkbox next to "Relabel on next reboot". (You will have to re-configure your iptables setup after your next boot as described in the Azureus section above as the relabel process overwrites your iptables files.) Click "ok". Reboot your machine to enable the new SELinux settings. * If you are using a router you may have to forward ports 20 and 21 in order for your FTP server to work through your router's firewall. See http://www.portforward.com/routers.htm for instructions. * Register a new domain name for your Fedora box, have it mapped to your IP address, and configure your /etc/hosts and /etc/sysconfig/network files as described in the web server section above. * Open the terminal. Type: su - Hit enter. Type: gedit /etc/vsftpd/vsftpd.conf Hit enter. In gedit change "anonymous_enable=YES" to "anonymous_enable=NO". Also add a line that reads "chroot_local_user=YES" just under the line that reads "#chroot_list_file=/etc/vsftpd/chroot_list". Also uncomment (remove the "#" from) the ascii_ lines so that they read "ascii_upload_enable=YES" and "ascii_download_enable=YES". Click on the "save" icon in gedit to save your vsftpd.conf file and exit gedit. Close the terminal. * Go to "Desktop" > "System Settings" > "Server Settings" > "Services". Type in your root password in the dialog box that appears and click on "OK". Scroll down the list and check the check box for "vsftpd". Click on the "save" icon in the Service Configuration window and then close the window. Do this for runlevel 3 as well as for runlevel 5. Reboot your machine. You should now be able to access your home user's directory with an FTP client. The host name on your client will be your registered domain name or the IP address of your Fedora Core box. The user ID will be your Fedora Core non-root user name. The password will be your Fedora Core non-root user's password. (I recommend turning off passive mode on the client to speed up transfers. If you use gftp as a client you should edit /etc/sysconfig/iptables-config on the server and add "ip_nat_ftp" into the "IPTABLES_MODULES="" directive so that it reads "IPTABLES_MODULES="ip_nat_ftp". Then reboot your machine.) johnny06
  8. To keep the mbr intact, at the fedora installation, in the bootloader avanced option select to install the bootloader to the first sector of the / partiton (/boot). when installation complete you can install from fedora with linux rescue or from windows xp with Wingrub. Put the first cd of linux (fedora) in the boot prompt type: linux rescue follow the instructions untill you get the login prompt, to change to your linux system , type: chroot /mnt/sysimage open the /mnt directory to open your linux system, now copy the first sector of your /boot partition to the current directory with: dd if=/dev/hdax of=bootsect.lnx bs=512 count=1 need to copy the bootsect.lnx to C drive, to mount the C drive, make a directory in /mnt/windows: mkdir /mnt/windows mount the C drive on /mnt/windows: mount -t vfat /dev/hda1 /mnt/windows if the file system is ntfs change the vfat(fat 32) to ntfs, to copy run the command: cp -fv bootsect.lnx /mnt/windows other way is to copy the bootsect.lnx to any removable media like floppy and then to the C drive. Start windows xp, open the dos, change to the C drive, open the boot.ini in the notepade: C:\>notepade boot.ini add this line to the boot.ini: C:\bootsect.lnx="Linux" save and exit,this will add the linux to windows xp ntldr. johnny06
  9. How to install SlaKware with a 2.6 kernel on one hd which is not meant for a dual boot, or else you will have to install lilo as expert(you've been warned) I would like to share my SlacKware install experience with all you noobs out there & speacial thanks to Jy on #linux-noob who helped me quite a lot to accoimplish what i did, while the rest i had to figure out on my own cause people are not allways at your disposal. lot's of people out there will tell you that slacK is not for any noob,but there is no harm by trying out a great distro cause you will never know what you are missing & once you get it working right, you will be proud of what you have done but you still have a lot to do later on. Why compile a 2.6 kernel while SlacK 10.2 comes with a test 2.6 kernel,true you will learn a lot by compiling a new kernel,but if you are a noob it will be a pain in the but & you will end up like me by compiling for about 15 times & i ended up by frying my brain out,anyways,it was a great experience & i learned a lot. Once someone told me that the difference between m$ & nix is that (m$ thinks for you while you will have to think for linux) thanks bofh', which is true. nix demands a lot of reading & understanding,now let's cut down all the bull & start installing slacK. 1)go get yourself the 2 install is0 images of this great distro ftp://ftp.scarlet.be/pub/slackware/slackw...-install-d1.iso & ftp://ftp.scarlet.be/pub/slackware/slackw...-install-d2.iso (you only need these 2 for the install) you are not obliged to use these links,just google for the slaK10.2 & get em. 2)boot from the 1'st cd you will be prompted with boot: (don't just press enter,read what you've got in front of you & try to understand what you are doing,press f3 & see all the different option's you've got), i opted for the test26.s cause this tuto is about installing slaK with a 2.6 kernel, You know there is something new and better than what you have by default, so why bother to use a 2.4 kernel. 3) boot:test26.s & follow the menu, you will be prompted to choose your keyboard language,check to see if your keyboard is set to it's language & then press 1. 4)now you will be promted with #slackware: just type root & on we go. 5)before we go anywhere you will have to partition your hd & addswap the rest of your hd will be for your system( mine is 80GB where i gave 2048+M for swap & the rest for my linux system),hope you know how to use fdisk where i will not be covering fdisk here,if you do not know how to use it check this link out to get an idea http://www.linuxplanet.com/linuxplanet/tutorials/3174/6/ you do not have to do as many partitions,just one for swap & the rest you will attribute to your system,when you get much more familiar with the distro you can re-install & partiton your hd in a different way. 5)when you finish partitioning & w the changes you will be prompted with #root, just type setup & a beautifull green screen with the slackware linux will show up,remap your keyboard & then set your swap partition,again,read & understand what you are doing,continue on with target for your linux install partition & install from slacKware cd or dvD where you will be prompted to select your packages,don't change anything,just leave it the way it is ,then make a full install. 6) grab yourself a nice cold beer & toke on a cigarette. 7)install linux kernel will be prompted & it will put you directly on the line of test26.s bzimage,hit enter then you will be asked to make a boot disk,where i skipped this part cause i do not have a floppy disk on my box & 2ndly you have the install cd to boot with & repair in case... 8)modem configuration,i skipped this too cause i am on dhcp & i will configure my network later on. 9)configure your mouse,if it's a usb choose usb 10)install lilo & choose simple & when you are prompted to select lilo target location choose MBR (use the master boot record (possibly unsafe). 11)configure your network which i suppose you know how to do 12)select default window manager leave don't touch 13)root passwd 14)& soon we will be rebooting 15)reboot & when you are prompted type root & your passwd 16)adduser whatever you want & when you finish adding your normal user exit & return to root 17)mkdir /home/whatever_you_want 18)insert the cd n
  10. Let's say you comiled your kernel & on boot you get an old kernel panic or something else; Get your DVD OR CD install disk or even a netinstall disk should work Boot from the dvd or cd install disk & at the prompt put in # rescue root=/dev/hda5 example_where (dev /hda5 is your debian partition) your root partition don't hesitate to discover different options with F1 Your box should boot up normally with the kernel of the cd or dvd where you will find all your partitions and all your data untouched at the same place you left it before. Now, as everything is almost back ,fix the error or mistake you have done where you have last compiled your kernel & you should be done . johnny06
  11. You want to block all incoming network traffic, except from your system itself. Does not affect outgoing traffic. For iptables: # iptables -F INPUT # iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT # iptables -A INPUT -j REJECT For ipchains: # ipchains -F input # ipchains -A input -i lo -j ACCEPT # ipchains -A input -p tcp --syn -j REJECT # ipchains -A input -p udp --dport 0:1023 -j REJECT johnny06
  12. You can add your own fonts and sharing them by putting them into /usr/local/share/fonts/truetype. You need to run a couple of commands to make them available to X: # cd /usr/local/share/fonts # mkdir truetype # chmod go+rx truetype # cd truetype # wget http://www.children2children.net/promos/fonts/kidprint.zip # unzip kidprint.zip # rm kidprint.zip # mkfontscale (or ttmkfdir -o fonts.scale ?????) # mkfontdir You need to add the path to the catalogue entry in /etc/X11/fs/config: /usr/local/share/fonts/truetype/ A couple of other paths that should also be included there for the defoma package managed fonts to be available are: /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/ /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ enjoy, to bee continued johnny06
  13. go downlaod jre-1_5_0_04-linux-i586.bin from Sun ; just google jre-1_5_0_04-linux-i586.bin & you will get the result with the download center-downlod from javashoplm.sun.com. scroll down & Required: You must accept the license agreement to download the product. choose the .bin file choose the Linux Platform -& choose the Linux self-extracting file jre-1_5_0_04-linux-i586.bin save it to your /home/* for the moment. as root su - cd /home & mv * where your bin is /opt hit enter & cd /opt chmod +x *-linux-i586.bin ( if you just type chmod +x (space) jre- with tab you will get the rest) (try to use the tab instead of typing out every single letter). Hit enter. Type: ./*.bin (or ./jre(tab) & it will give you the rest Hit enter. Hold the enter key down until the yes/no line appears to allow you to agree to the license agreement. Type "yes" and hit enter. Wait for the installation to complete. Type: rm *.bin Hit enter. Type "y" and hit enter. As root su - ln -s /opt/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so Hit enter. Close the terminal. Reboot your machine and restart Firefox to enable the java plugin. You could go to http://www.dslreports.com/stest?loc=97 and click the start button to test your java plugin installation. hope it was clear enough,just use your imagination & try to show the path,take em by the hand & it should be installed. johnny06 to be continued
  14. Debian supports more hardware out-of-the-box than M$. You have to install a few packages (easy), run a command or 2 and you're in business You already have a movie/music player installed called Totem (Movie Player) lot
  • Create New...