Hi All, I Am New In Linux

HI, this is melvin, new in linux, and keep learning in here.

we just have a project need to disable the 5GHz channel in the AR9462 due to the Approval issue.
We use "iw" to do the checking and found out the current EEPROM setting is 0x6c which enabled the 5GHz channel in passive and beacon scanning mode and caused the problem in the test lab for project~.
By the way, Is there anyone could help to advise how we could disable the 5GHz channel in the ath9k? we only need 2.4GHz only but chosen this dual band card for the project, so can't be changing.
Please help.
Thanks
Melvin


Similar Content



Modify Ath9k

I'm having some problems changing the EEPROM regulatory domain for my wireless card (ar9580 locked to US 0x0). I can't operate on the frequencies that I'm allowed to use. I've tried changing db.txt with no luck. It adds a couple of extra channels, but not the full channel list that im allowed to use.

I want to try to modify my ath9k driver so that it overrides the EEPROM, but im not really sure how to. I've found some patches to help modify the driver (Openwrt) but I dont know how to add them.
So my question is:
- Do I have to recompile my kernel (3.18.0-kali1-amd64) to add the patches from openwrt), or do I have to download the openwrt image to be able to use the patches? Or have i got it totally wrong and there's another way to do this?


Any help is very much appreciated.
Regards Mak - Makservice@icloud.com

Modify Ath9k Driver

I'm having some problems changing the EEPROM regulatory domain for my wireless card (ar9580 locked to US 0x0). I can't operate on the frequencies that I'm allowed to use. I've tried changing db.txt with no luck. It adds a couple of extra channels, but not the full channel list that im allowed to use.

I want to try to modify my ath9k driver so that it overrides the EEPROM, but im not really sure how to. I've found some patches to help modify the driver (Openwrt) but I dont know how to add them.
So my question is:
- Do I have to recompile my kernel (3.18.0-kali1-amd64) to add the patches from openwrt), or do I have to download the openwrt image to be able to use the patches? Or have i got it totally wrong and there's another way to do this?


Any help is very much appreciated.
Regards Mak - Makservice@icloud.com

Using Gdb To Detect Segmentation Fault In Sh?

I am using scientific linux. In the directory user/project/Build, after I ran 'make' to compile and link all the cpp files,I had no problems. But then, when I went to directory user/run/run.sh, which runs the project binary in user/project/Build/bin/project, I get a segmentation fault error. In the directory user/run, I enter 'gdb' in the command prompt and get the message "*** No targets specified and no makefile found. Stop."

What am I supposed to do to detect the segmentation fault?

Cobbler Get-loaders

HI Guys,

I'm New In linux and I got a project Installing Spacewalk 2.2 on Centos6.5.

I have successfully Install Spacewalk and I have completed almost
everything regarding spacewalk like

I have done with this
@ created channels and base channel
@ distributions
@ profile
@ kickstart etc...

Now come to the error-:

Getting error while "cobbler get-loaders"

its shows me task complete but actually not downloading loaders.

So I have check with yum install cobbler get-loaders
but again it says cobbler is already installed.

I have fed up with this error I have tried my best to solve
this error but could not.

Your help will be appreciated.

Thanks in advance.
milan

Files Missing Using Git Add Command

hi,
I'm cross-compiling a linux kernel. And I want to use git to manage the project. When I first add the project to the git index and commit, then I clone it out, I failed to compile it with the file missing information printed. The file missing is like include/linux/autoconf.h amount many others.
PS:I have no gitignore in the current directory.
Please take a look and give some hints if anyone has some thoughts.
Thanks.

Taking Linux In College And Am Currently Stumped On A Project

Currently taking my first linux course in college and am stuck on a project...details he https://aacc.instructure.com/courses...item_id=614603

So far this is the code I have come up with but get an error on the 42nd line where it says done. I am not an expert by any means but would like to not struggle and finish this project. Below is my code...any input welcome.

#!/bin/bash
#blinker
#creates a bi-stable process that displays ON and OFF
touch .running
clear
while [ -f .running ]
do
count=0
while [ -f .running ]
do
count=$((count+1))
if [ $count -gt 4 ]
then
break
fi
echo "Green"
sleep 4
done
count=0
while [ -f .running ]
do
count=$((count+1))
if [ $count -gt 4 ]
then
break
fi
echo "red"
sleep 4
count=0
while [ -f .running ]
do
count=$((count+1))
if [ $count -gt 2 ]
then
break
fi
echo "green"
sleep 2
count=0
while [ -f .running ]
do
done
done

Bash Script For Xfce4 Powermanager Settings Switching Forth And Backward

i need a bash script to switch to zero second on ac the waiting time for turning off the monitor (highlighten in red). same as for on battery (highlighten in purple)

Code:
<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-power-manager" version="1.0">
  <property name="xfce4-power-manager" type="empty">
    <property name="power-button-action" type="empty"/>
    <property name="show-tray-icon" type="empty"/>
    <property name="logind-handle-lid-switch" type="bool" value="true"/> 
    <property name="dpms-on-ac-sleep" type="uint" value="1"/>
    <property name="dpms-on-ac-off" type="uint" value="2"/> 
    <property name="brightness-on-battery" type="uint" value="9"/> 
    <property name="dpms-on-battery-sleep" type="uint" value="1"/>
    <property name="dpms-on-battery-off" type="uint" value="2"/> 
    <property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
    <property name="dpms-enabled" type="bool" value="true"/>
  </property>
</channel>

Please Help Me To Start My DNS Server Logging.

I am facing problem in enabling the DNS Log making in named.conf file.
My /etc/named.conf file structure is as follows:
-------------------------------------------------------------
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; 10.40.124.2; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 10.40.124.2; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "/var/log/named.run";
severity dynamic;
print-time yes;
};

channel queries_channel {
file "/var/log/queries.log";
severity dynamic;
print-time yes;
print-severity yes;
};
channel security_channel {
file "/var/log/security.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};

channel update_security_channel {
file "/var/log/updates.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};

channel dnssec_channel {
file "/var/log/dnssec.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};

channel xfers_channel {
file "/var/log/zone_transfers.log" versions 3 size 5m;
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};

category queries { queries_channel; };
category security { security_channel; };
category update-security { update_security_channel; };
category dnssec { dnssec_channel; };
category xfer-out { xfers_channel; };
};
zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
----------------------------------------------------------------
My DNS Server works fine. Only it cannot make the log.
when I will run this command:
#dig -x 10.40.124.2
the result comes fine but the log is not make in /var/log/queries.log file.
The named is running without chroot enviroment.
Please help me in solving this.

"Invalid Magic Number" When Loading Initrd Into GRUB Prompt Bootloader

Hi, I'm pretty new to Linux.

I'm currently working on a project in my Linux Administration class, but have run into a bit of a bump.

I'm tasked with booting Linux (currently using CentOS 7) through the GRUB prompt. I've loaded the kernel, but I'm having an issue with the initrd.

I've tried both of these commands:
"linux /boot/initrd-plymouth.img"
"linux /boot/initramfs-3.10.0-123.el7.x86_64.img"

Neither of these commands have worked. It only returns the message "invalid magic number" for both of the commands. Any ideas on how I can fix this?

Thanks for any help in advance. It should help me understand Linux better!

Ns2 Project

hie

am using ns2.34
i have tried to run: make clean
:make

i got this results

for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mike/project/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'


running a tcl file with black hole attack i get the following error, but am not sure whats the problem excatly

num_nodes is set 33
INITIALIZE THE LIST xListHead
ns: _o171 blackhole:
(_o171 cmd line 1)
invoked from within
"_o171 cmd blackhole"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o171" line 2)
(SplitObject unknown line 2)
invoked from within
"_o171 blackhole"


give me some reference or some sites where to video tutorials, or pdf tutorials which can help me to solve this problems

i will be very grateful for response