Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,216
» Latest member: distributorsemen
» Forum threads: 4,031
» Forum posts: 16,406

Full Statistics

Online Users
There are currently 382 online users.
» 0 Member(s) | 379 Guest(s)
Applebot, Bing, Google

Latest Threads
Cara Memahami Game Cuan P...
Forum: LAMP
Last Post: topupaman
10 hours ago
» Replies: 0
» Views: 20
Panduan Memilih Semen Ber...
Forum: LAMP
Last Post: distributorsemen
Yesterday, 02:15 PM
» Replies: 0
» Views: 28
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 426
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 86,751
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 40,845
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,873
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,346
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,351
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 116,683
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 54,594

 
  Wireless NIC and Ndiswrapper
Posted by: MilligaN - 2006-02-17, 05:56 PM - Forum: Wireless - Replies (8)


Before I start this guide, I need to point out that I'm a linux newbie myself, and I have very little experience with it. I have a passion for computers though, and learning new stuff is something I enjoy very much.

I made my Wireless Network Interface Card (Hereon NIC) work on a HP ZE2247EA laptop. I'm running Fedora Core 4, from a standard, out of the box, installation.

 

The following guide needs to be performed as root.

 

The first step, is to identify your NIC, and what chipset it is. When this is done, figure out what drivers WINDOWS would use to make it work. An easy way to do this, if you are running a dualboot, is to check the driver details in windows. When I did that on my computer, I found that my driver is called bcmwl5.inf.

 

My first attempt at using this driver turned out bad. I had downloaded a 64bit windows driver, but Fedora was kind enough to tell me that I needed a 32 bit, so my search for the correct driver continued. Finally stricking luck, at [/url]http://ndiswrapper.sourceforge.net/mediawiki/index.php/List , I downloaded the correct file and proceeded installing ndiswrapper.

 

In Fedora, this was a simple task. Something as easy as typing yum install ndiswrapper would be sufficient *if you have a wired internet connection*. Allthough, the kernel needs to support ndiswrapper aswell, so to implement this in the same command, simply type:

 



Code:
yum install ndiswrapper kernel-module-ndiswrapper




 

Voila, ndiswrapper is installed, and ready to go.

 

Next step, unzip the driver you downloaded to a directory you can find it.

 

I used /lib/windrivers/ . After unzipping the files, I typed out: "ndiswrapper -i bcmwl5.inf". The -i means to install the driver. Of course, bcmwl5.inf needs to be replaced with the name of your own file. To check if the installation and driverusage was successfull, type: "ndiswrapper -l". If this reports "bcmwl5 driver present, hardware present" you are ready for the next step. If it doesnt, make sure you have the correct driver, and that your NIC is active/plugged in.

 

Since you're still reading, I'm assuming you saw "xxxxxx driver present, hardware present" on the previous step. That means you're ready to write the configuration to modprobe. Type "ndiswrapper -m". This will add the hardware. If that works, type "modprobe ndiswrapper" and/or "ndiswrapper wlan0".

You should now be ready to go. If that doesn't work, you could try something as dramatical as rebooting your system, and that should most likely fix it.

 

After the reboot or modprobe is done, type "iwconfig". Hopefully, this will now display "wlan0", and not contain any network information.

 

Set your network SSID by typing "iwconfig wlan0 essid 'Your-Id-Here' [key 'Your key here']". (full details right [url=<___base_url___>/index.php?s=&showtopic=2098&view=findpost&p=7814]here,

 

Please note that the example here should look like this if your ACCESS POINT ssid=WIRELESS and wep key = aaaaa)

 



Code:
iwconfig wlan0 mode managed essid WIRELESS key 6161616161




 

 

You might also want to set Mode to "managed" (iwconfig wlan0 mode "managed").

 

Natually, if you're connecting to a static network, you will need to set up ip adress and the likes aswell. I myself connect to a wireless router, and get my IP dynamically adressed by a DHCP server. So, a simple "dhclient wlan0", and I was up and running!

 

Hope this helps you out. Good luck :-)

Print this item

  CGI Problem !
Posted by: Roach - 2006-02-17, 03:35 PM - Forum: LAMP - Replies (7)


Hi guys,

 

Ive already asked around on mirc but no1 could answer my question.

 

Now for my problem :)

 

Im running on a fedora core 3. with apache/php etc installed.

 

Now i installed CGIIRC a week ago and could launch it without any problems.

 

But 2/3 days ago i rebooted my pc and now it stopped working.. all i get is some txt from the cgi, the permissions are all on 755.

 

[/url][url=http://keffie.mine.nu/cgi-bin/cgiirc/irc.cgi]http://keffie.mine.nu/cgi-bin/cgiirc/irc.cgi

 

Any idea's ? i hope so cause im all out of mine.

 

Thanks in advance :)

Print this item

  mepis kde problem [dcop]
Posted by: rick - 2006-02-16, 10:04 PM - Forum: KDE - Replies (1)


Hi ,

after trying Mandriva I think Mepis might be more suitable after using the Live CD for 2 days or so.

I have just done a full install off the CD ,which i thought went without a hitch

dual boots with XP with GRUB

after rebooting now when KDE starts loading, after the login window I get this message & cant get past it

 

"there was an error setting up inter-process communications for KDE the message returned for the system was could not read connection list /root/dcopserver_ricks p4_0 please check that the dcopsever process is running "

 

as said above I cannot get passed this window ,when OK is clicked the screen goes black for 1 second then back to the same message ,

 

have i missed something when setting up the install?

thanks for reading

 

edit google brings up this www.mepis.org/?q=node/897

being a newb , I dont know what to do I have reinstalled 3 times & still get it

if it was a bad burn [burnt at 2x on a DVD] surely the live CD would baulk also

 

Rick

Print this item

  this is my xorg.conf with nvidia driver
Posted by: mem - 2006-02-16, 06:46 PM - Forum: nVidia Problems - Replies (3)

oke here it is:

Print this item

  PHP/MySQL Permissions problem
Posted by: hybrid - 2006-02-16, 08:39 AM - Forum: LAMP - Replies (6)


I am at the moment building a PHP/MySQL-powered CMS, and recently I have had some trouble when moving the latest versions of the source code to other servers. What seemed to be happening was an error 'No database selected' despite the fact that I always used mysql_select_db() before any database queries. So I did some diagnostics into the problem and I've discovered that MySQL is actually denying access to the database. So on my home system, I tried to recreate the problem (running MySQL as root):

 



Code:
mysql> revoke all privileges on pkbeta.* from pkbetauser@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> grant usage on pkbeta.* to pkbetauser@localhost identified by "xxxxxxx";
Query OK, 0 rows affected (0.00 sec)




 

On my home system, MySQL is now denying privileges to select the database. :( But if I revoke usage this happens:

 



Code:
mysql> revoke all privileges on pkbeta.* from pkbetauser@localhost;
ERROR 1141 (42000): There is no such grant defined for user 'pkbetauser' on host 'localhost'




 

Which means the usage privileges were never granted. :(

 

Adding privilieges by name (e.g. select, insert, update...) works. So why is it not granting usage privilieges on my home system, but most importantly why can't I connect to a database on a different server? Eventually this will not be hosted on a machine I have direct control over (no SSH access or anything), so this is a big issue. :(

 

Any help would be great, thanks. :)

Print this item

  install vsftpd on fedora core 4
Posted by: jsn06 - 2006-02-16, 08:30 AM - Forum: FTP Server - Replies (1)


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 [/url][url=http://www.portforward.com/routers.htm]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

Print this item

  kernel bug allows ICMP dos vulnerablilty
Posted by: anyweb - 2006-02-15, 09:55 PM - Forum: Kernel Related - Replies (4)


check here

 

[/url][url=http://www.securityfocus.com/bid/16532/]http://www.securityfocus.com/bid/16532/

 

Quote:inux Kernel ICMP_Send Remote Denial Of Service Vulnerability 

Linux kernel is prone to a remote denial-of-service vulnerability.

 

Remote attackers can exploit this vulnerability to crash affected kernels, effectively denying service to legitimate users.

 

Linux kernel versions 2.6.15.2 and prior in the 2.6 series are vulnerable to this issue.
 

The easy fix is to block ICMP until you upgrade your kernels...

 

thanks to P38 for the heads up

 

cheers

anyweb

Print this item

  boot linux with XP
Posted by: jsn06 - 2006-02-15, 09:27 AM - Forum: Fedora Core Release 4 - Replies (1)


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.

 

:P johnny06

Print this item

  Conky!
Posted by: znx - 2006-02-14, 09:57 PM - Forum: Gentoo - Replies (13)


OK .. first.. lets show you WHY you might want to do this :)

 

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-798-1139953495.png" data-fileid="477">[img]<fileStore.core_Attachment>/post-798-1139953495.png[/img]</a>

This is my conky :) You can see that this is weighted towards gentoo users

 

Ok, first the preparation. I will assume that you have conky installed (yum install conky, emerge conky, most systems have it now).

 

Ok so we need to create a couple of scripts to help create the output. If you aren't a gentoo user, skip these.

 

If you don't have a local user bin folder then you should make it:



Code:
mkdir ~/bin




 

~/bin/emerge-current.sh



Code:
#!/bin/bash
# emerge-current.sh by Hellf[i]re
#
# This script is designed to read the name of the last package compiled.
#
# As this script does read the entirety of emerge.log, it will be rather
# heavy on the CPU.  It shouldn't be enough to be noticable on newer (2.0Ghz+)
# processors, but it still should not be run more often than every 30 seconds.
#
# Usage:
# .conkyrc:     ${execi [time] /path/to/script/emerge-current.sh}
#
# Usage Example
#               ${execi 30 /home/youruser/scripts/emerge-current.sh}

tail -n 50 /var/log/emerge.log |\
tac |\
grep 'Compiling' |\
head |\
sed -e 's/.*(//' |\
sed -e 's/::.*)//' |\
head -n 1 |\
cut -d \) -f 1




 

~/bin/emerge-progress.sh



Code:
#!/bin/bash
# source: Jeremy_Z @ forums.gentoo.org http://forums.gentoo.org/viewtopic-t-351806-postdays-0-pos
torder-asc-start-550.html
#
# This script will report the progress of the last emerge command run.  It
# reports the TOTAL percentage complete - not the percentage of the current
# package.  For example, if there are 110 packages currently being emerged, and
# it is on the 55th package, it will report 50.
#
# Usage:
# .conkyrc:     ${execibar [time] /path/to/script/emerge-progress.sh}
#
# Usage Example
#               ${execibar 30 /home/youruser/scripts/emerge-progress.sh}

tail -n 50 /var/log/emerge.log |\
tac |\
grep -v "Starting retry" |\
grep -iE '([0-9]* of [0-9]*)' -o -m 1 |\
sed -e 's/\(.*\) of \(.*\)/\1 \2/' |\
awk '{print 100.0*$1/$2}'




 

~/bin/emerge-status.sh



Code:
#!/bin/bash
#
# emerge-status.sh by Hellf[i]re
#
# This script will report the current status of portage.
#
# Usage:
# .conkyrc:     ${execi [time] /path/to/script/emerge-current.sh}
#
# Usage Example
#               ${execi 30 /home/youruser/scripts/emerge-current.sh}
#
# Known Bugs:
#  1) If there are two emerges running at once, when the first one finishes
#     running, the script will report the current status as "Completed".
#  2) If there is a emerge running and you run a search, the script will
#     report the current status as "Completed", until the running emerge
#     moves to the next package, or itself completes.
#  The reasons for this are twofold - one, it's a feature;) and two, there
#  would be far too much parsing required to find out the current status of
#  every command which is run in parallel.

STATUS=`tail -n 15 /var/log/emerge.log |\
grep -iE "Compiling|Cleaning|AUTOCLEAN|completed|search|terminating|rsync" |\
cut -d ' ' -f "2-" |\
grep -Ev 'Finished\.|Cleaning up\.\.\.' |\
tail -n 1`

#echo "$STATUS"

if [ "`echo "$STATUS" | grep -i compiling`" != "" ]; then echo Compiling
elif [ "`echo "$STATUS" | grep -i cleaning`" != "" ]; then echo Cleaning
elif [ "`echo "$STATUS" | grep -i autoclean`" != "" ]; then echo Autoclean
elif [ "`echo "$STATUS" | grep -i sync`" != "" ]; then echo Syncing
elif [ "`echo "$STATUS" | grep -i search`" != "" ]; then echo Searching
elif [ "`echo "$STATUS" | grep -i completed`" != "" ]; then echo Completed
elif [ "`echo "$STATUS" | grep -i terminating`" != "" ]; then echo Completed
fi




 

~/bin/lastsync.pl



Code:
#!/usr/bin/perl
use Date::Manip;

$date = `grep "Sync completed" /var/log/emerge.log | tail -n1 | cut -c-10`;
$date = &DateCalc("Jan 1, 1970  00:00:00 GMT",$date);
$date = UnixDate("$date","%A %H:%M");
print "$date";




 

Right thats those out of the way. Major thanks to the respective authors!

 

Now onto the ~/.conkyrc:



Code:
# ~/.conkyrc

background yes
use_xft no
on_bottom yes
font 6x10
update_interval 5.0
total_run_times 0
own_window no
own_window_transparent yes
double_buffer yes
minimum_size 180 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no


TEXT
${color #98c2c7}$nodename   linux-$kernel${alignr}${time %T}$color

${color #98c2c7}SYSTEM$color
${color #ffcb48}UPTIME$color $uptime${alignr}${color #ffcb48}LOAD$color $loadavg
${color #ffcb48}CPU$color    $cpu%${alignr}${color #ffcb48}FREQ$color $freq_dyn_g / $freq_g
${color #000000}${cpugraph cpu0 32,255 104e8b 0077ff}
${color #ffcb48}RAM$color    $mem / $memmax ${color #7f8ed3}${membar}$color
${color #ffcb48}SWAP$color  $swap / $swapmax ${color #7f8ed3}${swapbar}$color

${color #98c2c7}NETWORK$color
${color #ffcb48}PING$color  mute${execi 50 sh -c "ping -q -c5 mute | tail -n 2 | head -n 1 | cut -d',' -f3" }
${color #ffcb48}DOWN$color  ${downspeed eth0} k/s ${offset 80}${color #ffcb48}UP$color ${upspeed eth0} k/s
${color #000000}${downspeedgraph eth0 32,125 104e8b 0077ff} ${color #000000}${upspeedgraph eth0 32,125 104e8b 0077ff}

${color #98c2c7}STORAGE$color
root ${fs_used /} / ${fs_size /} ${color #7f8ed3}${fs_bar /}$color

${color #98c2c7}PROCESSES$color
${color #ffcb48}NAME             PID     CPU%   MEM%$color
${color #007700}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}$color
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
                       ${color #ffcb48}PROC$color  $processes${alignr}${color #ffcb48}RUN$color $running_processes
${color #ffcb48}MEM USAGE$color
${color #007700}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}$color
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color #98c2c7}PORTAGE$color
${color #ffcb48}LAST SYNC$color ${execi 300 /home/znx/bin/lastsync.pl}
${color #ffcb48}LAST 3$color
${execi 50 genlop -lnu | sed -e 's/.*\([><]\+\)/    \1/' | tail -n 3 | tac}
${color #ffcb48}CURRENT$color
> ${color #98c2c7}${execibar 30 /home/znx/bin/emerge-progress.sh}$color
> ${execi 30 /home/znx/bin/emerge-current.sh}
> ${execi 30 /home/znx/bin/emerge-status.sh}




 

NOTE if you are not using gentoo remove the lines at the end of the ~/.conkyrc from PORTAGE down to the end. And if you ARE then switch the "/home/znx/bin" for your user. :)

 

Thats it.. start up conky and it will run. If you are using KDE/Gnome you will need to tamper with them to make it work because conky doesn't work well with them yet.

 

Conky's Home where I sourced the script and 99% of the idea to the production of this layout.

 

Weeeeee.. just a quick jaunt.. ask questions if you have any

 

OH ..



Code:
${color #ffcb48}PING$color  mute${execi 50 sh -c "ping -q -c5 mute | tail -n 2 | head -n 1 | cut -d',' -f3" }




 

This line is used to ping another system in my local network, you can either edit the name "mute" to be another machine, or remove the line as it will loose 100% of its packets.

 

See below for information about securing the genlop command.

 

Updated to fix mistakes found by dragon_788, many thanks!



Attached Files
.png   conky.png (Size: 142.44 KB / Downloads: 0)
Print this item

  Gentoo + conky + fluxmod-styles
Posted by: enigma - 2006-02-14, 09:35 PM - Forum: Linux - Replies (7)


Here's a nice screen of my new gentoo desktop

<a class="ipsAttachLink ipsAttachLink_image" href="<fileStore.core_Attachment>/post-204-1139966459.png" data-fileid="478">[img]<fileStore.core_Attachment>/post-204-1139966459.png[/img]</a>



Attached Files
.png   screenshot.png (Size: 1.17 MB / Downloads: 0)
Print this item