Sunday, 25 December 2011

install avertv hybrid volar MAX

install avertv hybrid volar MAX

I don't know how to get avermedia hybrid volar MAX working on opensuse 12.1. Opensuse sees the hardware but I cant get it running in any software, I installed the the linux software from avermedia's website for the product but the volar max does not recognize my kernel, my kernel is 3.3. volar is looking for a 2.6 kernel . it ends installation saying cant find kernel 2.6.

here is info from another driver i tried to install

Code:

linux-fjj3:/home/suse1/Desktop/H830_LinuxDrv_x64_V1.0.28-beta_OEM #  sudo ./H830_LinuxDrv_x64_V1.0.28-beta_Install_OEM.sh
/lib/modules/3.1.0-1.2-desktop/build found.
Verifying archive integrity...
Extracting archive...
Running installer...
Start to compile objects...
Failed to compile objects
cp -f prebuild.bak prebuild.o
make -C /lib/modules/3.1.0-1.2-desktop/build  O=/lib/modules/3.1.0-1.2-desktop/build SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/linux-3.1.0-1.2-obj/x86_64/desktop'
  CC [M]  /tmp/avm-install/installer/KernToDemod.o
In file included from /tmp/avm-install/installer/CLGDT3305.h:11:0,
                from /tmp/avm-install/installer/KernToDemod.h:4,
                from /tmp/avm-install/installer/KernToDemod.c:1:
/tmp/avm-install/installer/osdep_dvb_2.h:4:26: fatal error: dvb_frontend.h: No such file or directory
compilation terminated.
make[4]: *** [/tmp/avm-install/installer/KernToDemod.o] Error 1
make[3]: *** [_module_/tmp/avm-install/installer] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-3.1.0-1.2-obj/x86_64/desktop'
make: *** [default] Error 2

Install log generated on /root/driver_install_log.txt

detailed working of perror

detailed working of perror

can anyone please help me out to find out how perror actually works???
In my client.c program i am receiving one error
send: Bad file decriptor
this is printed by perror
as the errno variable is set to 9 which is EBADF
but i want to know from which file does perror seeks or maps this error??
Or more properly how does the kernel maintains the error logs from where the perror prints the latest error.
Please do reply as soon as possible.

Hello Again Linux World!

Hello Again Linux World!

Been pretty busy the past few months and haven't been that active in the forums.

Anyways, for all those who celebrate Christmas, have a truly meaningful one. For those who do not, enjoy the season.

And may we all have a better year ahead of us.

Regards to all,

nujinini

How can i find the GFLOPS

How can i find the GFLOPS

How i can find GFLOP/s for my CPU and CUDA GPU?

My CPU is i7 950 @3.06Ghz
My GPU is Nvidia geforce 9500 GT

I have looked at internet but i do not find this specifications.

Thanks

Saturday, 24 December 2011

I want to download CentOS 5 (without GUI)

I want to download CentOS 5 (without GUI)

Could someone help me to find link to download CENTOS 5 (No GUI) Iso file... I find it and not found

Active Directory Authentication for samba share.

Active Directory Authentication for samba share.

Hi Friends,

I'm supporting one of our customers who is using centrifydc samba with AD. Issue is that we are not able to access samba share from our windows machine. I tried using smbclient with AD username and it gives following error message:

check_ntlm_password: Authentication for user [xxx] -> [xxx] FAILED with error NT_STATUS_NO_SUCH_USER

However user do exist in AD and winbind gives the correct SID and info:

wbinfo -a DOMAIN\\xxx%password
plaintext password authentication succeeded
challenge/response password authentication succeeded

wbinfo -n DOMAIN\\xxx
S-1-5-21-141307505-1238419977-2639880222-26449 SID_USER (1)

getent doesn't list the AD accounts. Please help.

KDE4.x or Gome 3.x

KDE4.x or Gome 3.x

I have only tried gnome 2.x and KDE 4.7 and I like them both. I love how sexy KDE looks but gnome seemed like more of a familiar desktop, which made it easier. What do you guys think I should stick too, I herd that KDE is more like windows which makes it more dumbed down or something. But to be honest I don't agree. As a matter of fact I have had more of a windows like experience with gnome in Linux mint 11 than I have had in open-SUSE 12.1 KDE. I found mint easier and more user friendly while I found KDE(SUSE) More cool, way more cool!, but harder to navigate. I want to hear what you guys have to say in general about these desktops since I am still very new to Linux.

Just installed openSUSE: my thoughts!

Just installed openSUSE: my thoughts!

Let it be known that I am still new to Linux and trying out new things!

Im using KDE for the first time now guys. I really like what I see with open-SUSE 12.1. It looks the part and I never been more motivated to use Firefox as my default browser for some reason. In open-SUSE 12.1 Firefox seems perfect compared to the other distros I tried like Linux Mint 11 and Ubuntu 11.04. The only problem I have is getting use to how openSUSE deals with installing software. Its easy but not as easy as a Debian based distros. Also I dont understand why I can not create icons on my desktop. Well I could be they have to be inside that little plasma square that KDE provides on the desktop(Why I have no clue). Certain things like right clicking do not present options that you would expect in KED. I thing that KDE looks very modern but I find it harder to navigate then gome, gome 2.x that is since I have not tried gome 3.x yet. But I am torn because I really love the modern look of KDE, it almost reminds me of a mac but Im use to how gome functions in general and ! the applications associated with gnome. Should I stick with open-SUSE, or go back to Mint and just install gnome 3 since I am use to mint? Is there a good reason to stick with open-SUSE besides how damn sexy its KDE version looks?

squid proxy and local host

squid proxy and local host

I have a laptop with squid proxy and squid guard installed and setup so how do I configure the laptop to use the squid proxy and squid guard? computer will be moving around so the ip address will keep changing but alway want computer to be using squid proxy and squid guard.

Iptables config for wan:8888 to lan:80 on Amazon EC2

Iptables config for wan:8888 to lan:80 on Amazon EC2

Hello,

Right now i have configured 2 interfaces on my Amazon EC2 instance and i've opened 7999-8999 ports from web interface:

WAN Interface
Code:

eth0      Link encap:Ethernet  HWaddr 12:31:38:04:C0:75
          inet addr:10.220.195.131  Bcast:10.220.195.255  Mask:255.255.254.0

VPN Interface
Code:

ham1      Link encap:Ethernet  HWaddr 00:23:C3:E1:07:8E
          inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0

As far as i've read Amazon does NAT 1:1, converting my real ExternalIP into 10.220.195.131.

I can ping in internet and also in 192.168.1.1, and i'm interested how can i configure iptables in order to translate:

ExternalIP:8888 into 192.168.1.1:80

Please help me a bit cause i've tried different configurations and none of them worked until now.

For the start can you guys please tell me if i would need to use the ExternalIP in my iptables or 10.220.195.131 ?

Thanks a lot and happy holidays!

Strangest Problem Yet

Strangest Problem Yet

Ok, this is the strangest problem I have yet to encounter with Ubuntu.

My computer (running Ubuntu 11.10) is unable to use the Internet through either the Wireless LAN connection or the Ethernet connection. It will connect to the network in both instances, but thats about it. I am unable to access the internet. As soon as I connect this computer, the entire connection becomes unresponsive and I have to disconnect and re-start the router to restore the connection. All other devices connected to the router are unable to access the internet as soon as the Ubuntu computer is connected.

If I boot Ubuntu straight from the USB stick it is installed from, then all internet functions work just fine. Because of this, I have been able to rule out a hardware issue as the cause of the problem.

Sorry if this is a bit confusing. I'm trying my best to describe the situation. I may make a video this evening to help document the problem.

Thanks

it's happening.

it's happening.

SO, I've used linux exclusively since around 2005. my modem started dropping carrier last month, I finally got ahold of ATT. and we resolved the issue....for a few hours..I was using a Dlink modem, they said I should be using a ATT modem, so I dug mine out ( been sitting for 2 years) the modem works all lights come on, but I get re-directed to ATT, and it says " your internet account will not work with your current operating system" o.k isn't there some sort of law against a company forcing you to install windows ? This is the begining of the end of freedom of choice...any one else run into this ?

Unresponsive server. Hacked? Crashed? How do I tell what happened?

Unresponsive server. Hacked? Crashed? How do I tell what happened?

Hi, sorry if I'm a little "green,"

I've got an Amazon EC2 linux server. My website stopped responding. I tried to SSH in and also did not get a response. Amazon EC2 Management Console said it was still running fine. I could ping it, but web and ssh were not responding. I rebooted the instance and it came back up working fine.

I'm trying to look through the logs and I'm seeing nothing that helps. Amazon shows a single spike in disk read/write at 7am. My httpd access log showsa stop in file requests at 7am, but domain requests continued. I checked /var/log/secure and /var/log/messages and both don't have anything from 7am until I rebooted 3 hours later. It does show a ton of ssh failed attempts that stopped around 5am.

Is there somewhere else I should look? Is there a change I need to make in logging?

Happy Holidays

Happy Holidays

Regardless of if you celebrate Christmas, Kwanza, Hannukah or some other December holiday I wanted to wish you all happy holidays and of course a great new year. Thanks for the years of help in the forums.

Adding Old Kernel to Grub2

Adding Old Kernel to Grub2

Hi All,

I installed an old kernel (pre version 3 because 3 has a bug that is causing major headaches for me). So I did the reconfigure grub-pc and it showed the correct images (both the most recent and the one I just installed). When I reboot and go into the grub menu it only shows the most recent kernel and of course memtest.

How do I add the one I just installed to the menu? It's weird that it shows up when I do the dpkg reconfigure grub-pc but that it's not showing up in the menu. Appreciate the help, happy holidays

How do I install icewm on crux 2.7.1

How do I install icewm on crux 2.7.1

Nothing I'm finding online makes sense or is at least very, very out of date.

filtering strings from text files

filtering strings from text files

I'm tring to create a bash script that removes text entries from text file 1
that are in file 2

text 1
Code:

abc
def
ghi

text 2
Code:

abc
ghi

my bash script so far
Code:

#!/bin/bash
cd /home/pouar/test
index=0
# read text 1
while read line ; do
        a[$index]="$line"
        index=$(($index+1))
done < ./1

index=0
# read text 2
while read line ; do
        b[$index]="$line"
        index=$(($index+1))
done < ./2
n=$((0))
m=$((0))
x=${#a[*]}
while ((n<x))
do
if [ "${a[$n]}"="${b[$m]}" ]; then #if string in text 1 is equal to string in text 2
n=$(($n+1)); #go to next line in text 1
m=$(($m+1)) #go to next line in text 2
else # or else
echo "${a[(($n))]}" #print string
n=$(($n+1)) #go to next line in text 1
fi
done

Need help in setting up office network

Need help in setting up office network

hey guys,
I am setting up network for an office which has 2 branches. I want connect 2 offices on with each other, so that the web application which I have installed on the 2 branches could exchange data with each other. can anyone suggest a best way to do this. security is no the big issue but desirable and also the cost should be less as it is a charitable organisation. thanks in advance

Install Apache on Rhel5 (without YUM or UP2date)

Install Apache on Rhel5 (without YUM or UP2date)

Hello Everyone,
I am new to linux and trying to setup apache server. For that matter i have tried (whole day) to install httpd server on my rh3l5 box. But some of the other reasons i m not able to.

Can any one please tell me from where exactly i can get httpd*rpm for rhel5 system.

also step by step procedure.

Thanks
Kap

what guide do you recommend for Bash Scripting

what guide do you recommend for Bash Scripting

What do you highly recommend for bash scripting? for beginners?

I have came across few ebooks but it's been a hit and miss. what guide or book you have found was easy to follow and covered mostly what you needed?

Thanks in advance.

Extracting unknown text to create variable

Extracting unknown text to create variable

I am needing to extract unknown text out of a string and set it as a variable. Here is the pattern I am dealing with:

Code:

Category:</span> Soups and Chowders</p>
I need to set whatever the category is as a variable. In this case it would be:

myCategory="Soups and Chowders"

but it could be Cookies or Main Dishes, etc.

In any case, there's always one whitespace after Category:</span> and never a whitespace between the actual recipe category and </p>

How to track printer usage user wise

How to track printer usage user wise

Hi we want to track printer usage user wise.Please let me know is there any way to do it.

Friday, 23 December 2011

Mandriva 2011 first software update broke system

Mandriva 2011 first software update broke system

Hello to the forum--I have not run Mandrake since 1999. Tonight I installed the current release of Mandriva 2011 on a P4 platform with 2 GB of RAM and an NVidia AGP graphics solution. After the install completed I went to the online software updater and updated all of the packages called for including a new kernel. After this the system would not boot into multi user, safe mode or CLI. Considering a number of things I elected to re download the .iso from another mirror, burn to DVD at a slower speed and recheck both the checksum and the data on the disk using that feature on K3B (I have a number of Linux systems). After this I nuked the HD with GPartd and reinstalled. Same result after the first software update. System would not reboot and as far as I can get is the "Welcome to localhost.localadomain. When I try to log in with either my user account or as root I get bounced right back to the same window. So I could not even get to any of the system logs ! to try to figure out what is broken.

I had the current version of Mint on the machine before trying to install Mandriva 2011. Between the first and second attempts on Mandriva to try to make sure that there were no problems with the platform, I ran the Seagate bootable disk utility to check the HD and ran a version of ex-memex to exercise system RAM. Everything passed.

The desktop is beautiful. I would like to get this system running but am at a loss on what to do next. There do not seem to be many system tools available on the iso disk (or maybe I am looking in the wrong place). There was one package that had dependency problems using the installer (although it was auto selected for updating) and I elected not to continue.

Its a bit disappointing when updating from the GUI using the package manager breaks the system this badly. I did a forum search for this problem and was not able to find anything similar. As an aside I have been running the nuxes for many years,Unix, BSD and most recently Ubuntu and Suse. The last time I ran Madrake I had to write the /dev files for an unsupported monitor but thats been a long time ago.

Any help would be deeply appreciated.

Thanks for the kind interest and reading this
Expat

Linux install issue - computer won't boot from CD or USB

Linux install issue - computer won't boot from CD or USB

I'm trying to install 11.10 on a new Lenovo IdeaPad that came with Windows 7. I've tried putting the .iso on a CD and a USB and rebooted multiple times, but the computer isn't booting from the CD or the USB; it keeps reloading Windows.

When I try to run the CD through Windows, there's an option for the CD to install a boot helper. When I try to install that boot helper, I get this message:


"An error occurred:

'WindowsBackend' object has no attribute 'cd_path'

For more information, please see the log file: c:\users\notatp\appdata\local\temp\wubi-11.10-rev241.log"


Any ideas how I can get it to boot and install? I successfully installed to my old computer. The new IdeaPad is not so cooperative.

mysql.sock

mysql.sock

[root(at)jacks /]# /usr/local/mysql/bin/mysqld start
111223 23:08:58 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

111223 23:08:58 [ERROR] Aborting

111223 23:08:58 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete




helpp????????

F-Spot

F-Spot

I am pleased if anyone can help me organize my photos, for example I would like to have an album on TREES. How do I pick pictures in my F-SPOT to send them to the album??

I found, it seems, how to export pictures to CD. It did work as it shows a dialog box momentarily saying it senda pcture to burn to CD, and poof it goes off the screen!!

However, when I want to trace those pictures, I dont see it anywhere in any of my photo folders.

Appreciate help. Thanks.

[CentOS 6] ogp_agent dead but subsys locked

[CentOS 6] ogp_agent dead but subsys locked

I have installed Open Game Panel Agent in CentOS6 in my VMWare. I type: /etc/init.d/ogp_agent start. Then i type /etc/init.d/ogp_agent status, an error appear.
Code:

ogp_agent dead but subsys locked
- I delete ogp_agent in syslock folder but still got error. Could someone help me to solve this ?

Send mail problem

Send mail problem

Hi

Sendmail is installed.
I am able to send mails to others from server. But i am not able to receive mails.

Can you help to track the problem?

iptables has been configured to accept incoming and outgoing sendmail port.

Bash script to move all files into a directory named for them

Bash script to move all files into a directory named for them

#!/bin/bash

clear

echo "################################################# ###############"
echo "Hello," $USER
echo "Bash version is" $BASH_VERSION
echo "Current directory is" $PWD
echo "Changing directory..."
cd /home/admin/Test
echo "Working directory changed to:" $PWD
echo "################################################# ###############"

# save and change IFS
OLDIFS=$IFS
IFS=$'\n'

for FILE in *
do
DIR="$FILE"
echo "Processing" $FILE
mkdir ${DIR%.*}
echo "Creating Directory For" ${FILE%.*}
mv $FILE ${DIR%.*}
echo "Moving $FILE into Directory"
echo "Processing next file..."
done

Hope this *helps someone*

Enjoy

How do I find the link that lists all my subscribed threads?

How do I find the link that lists all my subscribed threads?

I'm sure this exists, but I just can't recall where or how its done.

BTW: This forum software's layout is the most easy to read that I've ever seen. The only request that I have is that you widen the display of text.

Thanks very much.

Long time lurker, finally joined and saying hello.

Long time lurker, finally joined and saying hello.

As per title, and the welcome PM asking me to introduce myself really. lol.

Been reading these forums for a while now, but hadn't realised I never registered, so here I am.

I've been using Linux since about 2005/6. I first started with Kubuntu, lasted a week before it irritated me and moved over to Ubuntu. I eventually moved over to Slackware, before giving Mint a try.

In the last couple of years I've distro hopped between Fedora, Debian and openSUSE. I'm now pretty much settled with openSUSE, using Gnome 3 as my DE. For a while I also used XFCE.

I also mess around with mainly CentOS and Debian servers, though I do keep up to date with 'buntu as work on them as well as SUSE servers.

I'm no saint though, as work with Windows computers, and also run a W7 machine to satisfy my urge for gaming.

Anyway, I've rattled on enough now, but I'll wish you all a happy Christmas and new year. :)

Cheers,

Leeky

Send email from shell to users in Mysql

Send email from shell to users in Mysql

Hi, I need help about sending mail in linux. I have a ubuntu server with working web site, users are uploading files in one main directory (to folder inbox). With samba I shared that directory and on other mashine is Windows server and application that is reading that files and writting content to database. Based of the result is creating new file with content: package name that is recieved, size, date and time and does the package contained erros or it was OK. That newly created files are again sent over samba to the same directory in ubuntu server (to folder outbox). That all is working!

Now, i need to listen are there new files in folder outbox. If there are new files, I need to send their content to specific email address. I have users in Mysql database. The name of files that are coming to outbox is with mask like this ddmmyyyy.x where x is user id in Mysql. So if "extension" of file is 1, I need to send mail to mail address of user in mysql with user id 1. If its 2 I am sending to user with user id... and after that move file from outbox to archive.

So, it's going like this: new file arrived in outbox, based on the extension of that file, select email address of user from database with user id = extension of file. On that email address send content of that file and move file to archive.

Does anyone can help me to solve this. Thank you!

P.S I have a mail working and I can send email from shell.

New Install reboots to grub only prompt, no errors, splash screen ok

New Install reboots to grub only prompt, no errors, splash screen ok

I have been trying to follow this tutorial on grub:

http://www.linuxforums.org/forum/lin...lems-grub.html

I have a dell gx270 with ide hard drive. I checked the kernel to see if ata_piix were enabled, and they were., for my ide controller. When, as tutorial suggests, to kernel /boot/kernel-3.0.6-gentoo, It finds my kernel. When I hit enter, I get kernel panic. I am not sure what to try next.

Can I assume, my hardware is not causing the problem?

I will continue, researching this, while I wait for a reply.
Also, I have a nice blue splash screen. I don't know if that means, my hardware is ok.

I should explain there are panic related errors which I will try to copy from the panic screen.:

VFS: Cannot open root device "null)" or unknown-block(3,3)
Please append a correct "root= boot option; here are the available
partitions:
0800 199382240 sda driver:sd
( it continues with 4 more)

Then Kernel panic - not syncing: VFS Unable to mount root fs on unknown block(3,3)
Pid 1, comm: swapper not tained 3.0.6-gentoo #1

That is only part of what is on the screen, I don't know of any other way of saving complete . I plan to web search some of the errors.

bash printf %q weirdness and UTF-8

bash printf %q weirdness and UTF-8

I'm trying to get nice escaped strings via bash. The script works fine so long as there aren't high ASCII (UTF-8) characters.

Code:

#!/bin/bash
KKK="…hkjh'"
echo ${KKK}
printf "%b\n" "${KKK}"
printf -v GGG "%q" "${KKK}"
printf "%b\n" "${GGG}"

and what I get is
Code:

…hkjh'
…hkjh'
$'…hkjh\''

which is not what I was expecting (the leading $ and single quote wrappers).

My shell is LANG=en_US.UTF-8 and it seems to handle the display of UTF-8 fine.

The … is UTF code pt +2026 or 0xE280A6.

How FermiLab changed the computing world

How FermiLab changed the computing world

This is a great article about computing at Fermi National Laboratory in Batavia, Illinois. It tells the story about how physicists have helped change the computing world, invented the Internet, and made Linux the common OS thread that it is today. The Tevatron's enduring computing legacy | iSGTW

Disclaimer: I am not an unbiased bystander. My wife is a PhD particle physicist and staff member of the computing division at Fermi Lab where she develops and maintains the actual physics software that lets these huge server farms extract meaningful information from the petabytes of raw data that the experiments generate. She started there in 1991-1992 when run one of the tevatron collider began its life.

Anyway, we all owe a great deal to these incredible boffins!

[CentOS 6] 14 pycurl error 6 couldn't resolve host

[CentOS 6] 14 pycurl error 6 couldn't resolve host

- I have installed CentOS 6 to VMWare 8 to learn something.. But that i don't have wget so i type: yum install wget. And an error appear.

Code:

14 pycurl error 6 couldn't resolve host.
*I don't have wget...

I hope everyone help me to solve this problem

How do you post your menuconfig in a forum?

How do you post your menuconfig in a forum?

I have seen posts where people post their menuconfig in a forum. What tool or how does one do that? Web searching does not seem to come up with anything. Frank

Choosing a Linux distro for a virtual machine

Choosing a Linux distro for a virtual machine

i use parallels software on windows 7 host machine . for security reasons (yes i browse porn sites) i would like to use a linux distro inside a parallels virtual machine to access the internet.

what Linux distro has :
1- firefox or chromium browser.

2- can establish ssh tunneling (porn are not allowed in our country so i have to use ssh tunnel to bypass that) . i use the following terminal command to do that
ssh -p22 -D3000 -C -N username at address

3- as lightweight as possible.

thank you

Apt in OpenSuSE

Apt in OpenSuSE

Is it possible to use the packetmaneger in ubuntu in opensuse.
Reason why we wan't it in suse is thath we have school laptops thath the wifi is only work with suse.

The laptop is a Hp ProBook 4530s with SB i5 4gig ram wifi card is a Ralink RT3592 802.11 a/b/g/n 2x2

Sorry for bad english.

Files in mount share folder have the -rwxrwSrwx 1 root root permission

Files in mount share folder have the -rwxrwSrwx 1 root root permission

Hi, I have mounted a windows shared folder on my linux box and this is fine however any file that appears in it, has the following permissions/user/group set,
-rwxrwSrwx 1 root root
Please can you advise if this is 'SET UID' and root permissions setting on any files is something on the windows shared folder itself or something on the linux end.
The mount command uses mount -t cifs ,
My intention is that anything file copied into the shared folder will keep the original permissions however this isn't happening.

Storing all the RPM packages installing via yum installer

Storing all the RPM packages installing via yum installer

For storing all the RPM packages installing via yum installer, add this following line to your /etc/yum.conf file.

keepcache=1


For Example:


$ more /etc/yum.conf
[main]
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
color=never
keepcache=1

Then all rpm packages installed via yum are stored in /var/cache/yum/*/packages.

you can change the cache directory by specifying
cachedir=<mydir> in yum.conf.

For Example:

$ more /etc/yum.conf
[main]
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
color=never
keepcache=1
cachedir=/home/user/Downloads

Install EMC Storage in Fedora Linux

Install EMC Storage in Fedora Linux

Here we are installing EMC storage in Fedora 13 (which is not recommended by EMC). EMC's software Powerpath will
not support with Fedora. So here we are using the package called Multipath. That is default with fedora.

1. Try to boot from the fedora optical Media.
2. Press Esc button when you will get the first boot loader menu for the boot prompt.
3. In that boot prompt. Type:
# Linux mpath
Then press Enter.
(If you are not getting the basic video driver then do the following step)

# Linux mpath xdriver=vesa nomodeset

4. Install fedora with all the available packages. (In the mean time you can configure the storage also. In storage you have to create virtual disk[s].)
5. Configure the IP addresses.
6. Connect the storage with server through switch.
7. start the iscsi daemons:
# /etc/init.d/iscsid start
# /etc/init.d/iscsi start
8. Configure your iscsi daemons with the following commands:
# iscsiadm -m discovery -t sendtargets -p IP-OF-STORAGE
192.168.0.6:3260,4 iqn.1992-04.com.emc:cx.fcnmm102000029.b1
192.168.0.3:3260,1 iqn.1992-04.com.emc:cx.fcnmm102000029.a0
192.168.0.4:3260,2 iqn.1992-04.com.emc:cx.fcnmm102000029.a1
192.168.0.5:3260,3 iqn.1992-04.com.emc:cx.fcnmm102000029.b0
9. Note down the record id (such as iqn.2001-05.com.doe:test) found by the discovery. You need the same for login. Login, must use a node record id found by the discovery:

# iscsiadm --mode node --targetname iqn.2001-05.com.doe:test --portal 192.168.1.60:3260 –login
10. Then you have to assign the virtual disk to your server. That should be done inside the storage configuration window. In the assign menu give the ip/name of the server. If it is successfully assigned then check the new devices are mounted or not in the server.
# fdisk –l
If it is mounted you will get another two devices like /dev/sdc and /dev/sde. (It may differ as per your drive configurations)
11. Start the service multipathd
# /etc/init.d/multipathd start

12. Then edit your grub.conf (add the word "mpath" to the kernel portion like below)
# vi /etc/grub.conf
kernel /vmlinuz-2.6.33.3-85.fc13.i686.PAE ro root=UUID=388a2022-a23d-4987-a51b-f157b4f32280 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us nomodeset mpath rhgb quiet
13. Here we can do the multipath section. Follow the steps.
Start the multipathd daemon.
# /etc/init.d/multipathd start
# chkconfig multipathd on
14. Execute the following commands to check the status of multipathing. And note down the wwid of the storage.
# multipath –ll
EMC (3600601606d082900d043704fc2f6df11) dm-0 DGC,VRAID
size=3.0T features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
|-+- policy='round-robin 0' prio=2 status=active
| |- 14:0:0:0 sde 8:64 active ready running
| `- 11:0:0:0 sdb 8:16 active ready running
`-+- policy='round-robin 0' prio=0 status=enabled
|- 12:0:0:0 sdc 8:32 active ready running
`- 13:0:0:0 sdd 8:48 active ready running

If getting a message like this. That means the multipath is working properly.

15. Edit the multipathd.conf file as per below.
# vi /etc/multipathd.conf
Edit the last portion of the file like this. (Add the wwid in to the file.)

multipath {
wwid 3600601606d082900d043704fc2f6df11 (add this line)
# wwid 36001517975a9e0001473e5c712478694 (disable this line)
alias EMC
}
16. Restart the multipathd daemon.
# /etc/init.d/multipathd restart
17. Ensure that the storage is mounted.
# fdisk –l
If the multipath is perfectly configured you will get two drives like dm-0 and dm-1 inside /dev.
# fdisk –l
For Eg:
Disk /dev/sda: 292.0 GB,

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
/dev/sda2 64 6438 51200000 83 Linux
/dev/sda3 6438 21860 123874304 83 Linux
/dev/sda4 21860 35501 109568000 5 Extended
/dev/sda5 21860 28234 51200000 83 Linux
/dev/sda6 28234 32314 32768000 82 Linux swap / Solaris
/dev/sda7 32314 35501 25596928 83 Linux

Disk /dev/sdb: 16298.5 GB

Disk /dev/sdb doesn't contain a valid partition table.

Disk /dev/sde: 16298.5 GB

Disk /dev/sde doesn't contain a valid partition table.

Disk /dev/dm-0: 16298.5 GB

Disk /dev/dm-0 doesn't contain a valid partition table.

Disk /dev/dm-1: 16298.5 GB

Disk /dev/dm-1 doesn't contain a valid partition table.

Here you can see /dev/sdb, /dev/sde, /dev/dm-0 and /dev/dm-1. These all are the same disk. If we created one partition in one disk that will automatically reflect on others.
Want to create a partition? That we can do with dev/dm-0. No need to do anything in /dev/dm-1.
Create one partition in /dev/dm-0.
# fdisk /dev/dm-0
You can use different tools for creating partition.
(for eg: parted).

18. Create one partition and format with ext3/ext4 filesystem. Then
# fdisk –l

For Eg:
Disk /dev/sda: 292.0 GB,

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
/dev/sda2 64 6438 51200000 83 Linux
/dev/sda3 6438 21860 123874304 83 Linux
/dev/sda4 21860 35501 109568000 5 Extended
/dev/sda5 21860 28234 51200000 83 Linux
/dev/sda6 28234 32314 32768000 82 Linux swap / Solaris
/dev/sda7 32314 35501 25596928 83 Linux

Disk /dev/sdb: 16298.5 GB

Device Boot Start End Blocks Id System
/dev/sdb1 1 267350 2147483647+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sde: 16298.5 GB

Device Boot Start End Blocks Id System
/dev/sde1 1 267350 2147483647+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/dm-0: 16298.5 GB

Device Boot Start End Blocks Id System
/dev/dm-0p1 1 267350 2147483647+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/dm-1: 16298.5 GB

Disk /dev/dm-1 doesn't contain a valid partition table.
Now you can see one partition is created in /dev/dm-0 as /dev/dm-0p1.
It is also mapped in /dev/mapper. See the below details.
# ll /dev/dm* /dev/mapper/
brw-rw----. 1 root disk 253, 0 Dec 2 11:47 /dev/dm-0
brw-rw----. 1 root disk 253, 1 Dec 2 11:47 /dev/dm-1

/dev/mapper/:
total 0
crw-rw----. 1 root root 10, 62 Dec 2 11:46 control
lrwxrwxrwx. 1 root root 7 Dec 2 11:47 EMC -> ../dm-0
lrwxrwxrwx. 1 root root 7 Dec 2 11:47 EMCp1 -> ../dm-1
The configuration part is almost over. Now we have to mount /dev/dm-0p1 as a directory.

For that we need to edit the /etc/fstab file.

# vi /etc/fstab

Add one more line at the end of the file. You must mount the partition as a _netdev. See the below details.

#
# /etc/fstab
# Created by anaconda on Wed Dec 1 13:04:07 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
#LABEL=/home /home ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-ddf1_4c534 swap swap defaults 0 0
/dev/hda /media/dvd auto defaults 0 0
/dev/dm-1 /home ext4 _netdev 0 0

(Here I am mounting as /home partition. You can mount as a different partition.)

19. After that we have to rebuild the kernel file.
# cd /boot/
Take a back-up of initramfs-2.6.33.3-85.fc13.i686.PAE.img file.
# cp initramfs-2.6.33.3-85.fc13.i686.PAE.img initramfs-2.6.33.3- 85.fc13.i686.PAE.img.old
delete initramfs-2.6.33.3-85.fc13.i686.PAE.img file.
#rm initramfs-2.6.33.3-85.fc13.i686.PAE.img
Rebuild initramfs-2.6.33.3-85.fc13.i686.PAE.img file.
#mkinitrd --with=dm-multipath -v -f initramfs-2.6.33.3-85.fc13.i686.PAE.img `uname -r`
20. Reboot the server.
21. After rebooting make sure that your storage is mounted as /home partition.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 117G 6.2G 105G 6% /
tmpfs 7.9G 608K 7.9G 1% /dev/shm
/dev/sda1 485M 28M 433M 6% /boot
/dev/sda7 25G 173M 23G 1% /tmp
/dev/sda5 49G 440M 46G 1% /var
/dev/mapper/EMCp1 16.1T 181M 16.0T 1% /home

22. If the partition is mounted change the kernel to the old settings.

Take a back-up of the new initramfs-2.6.33.3-85.fc13.i686.PAE.img file.
#mv initramfs-2.6.33.3-85.fc13.i686.PAE.img initramfs-2.6.33.3-85.fc13.i686.PAE.img.new


Rename the old backup file to the real name.
#mv initramfs-2.6.33.3-85.fc13.i686.PAE.img.old initramfs-2.6.33.3-85.fc13.i686.PAE.img
# init 6

23. After rebooting make sure that your storage is mounted as /home partition.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 117G 6.2G 105G 6% /
tmpfs 7.9G 608K 7.9G 1% /dev/shm
/dev/sda1 485M 28M 433M 6% /boot
/dev/sda7 25G 173M 23G 1% /tmp
/dev/sda5 49G 440M 46G 1% /var
/dev/mapper/EMCp1 16.1T 181M 16.0T 1% /home

Horde help

Horde help

Hi,

I have install horde.

However, i cant create user when login to the page.

This is the output from the control panel.

Your authentication backend does not support adding users. If you wish to use Horde to administer user accounts, you must use a different authentication backend.

Can anyone help me regarding this ?

Thursday, 22 December 2011

team fortress 2: map.bsp.bz2

team fortress 2: map.bsp.bz2

I am using windows. I play Team Fortress 2 and i have problem with one of lunix files called ".bz2" many of new maps use they files as ".bz2" to save on space bifore the files were ".bsp". But now its changed from "mapname.bsp" to "mapname.bsp.bz2" and I cant use this maps. other players can use them with out doing anything and when the download finished it says

"coulden't CRC maps/mapname.bsp.bz2 Disconecting"

So i went in to the map folder i couldent find this maps it seams like it dident even download

so here is all my system:
Manufacturer: TOSHIBA
Model: Personal Computer
Rating: 4.1 Windows experience Index
Processor: AMD Athlon(tm) II P340 Dual-Core Processor 2.22GHz
Ram: 3.00 (2.74 GB usable) (like that might be the problem -_-)
System type: 64 bit

Now you might be asking why i am asking you about this when i am using windows. Well its because its Bz2 file which aparently is a lunix file so that is why i am asking you guys for help. I bean serching for about 1-2Hs so i am qinda not in a good mood right now because i cant play on my favret server (and its the only server using this maps i dont mean bz2 file but this costum maps and now they changed some of them to bz2 and i cant play i was waiting for 2h to get them to change to bsp but they still used bz2

(sorry for my bad gramma and english, i am from poland but i bean in england for so long i fogot lots of polish bifore i lerned good english)

Thank you for any help you can give me

Kernel Need during iscsi target installation

Kernel Need during iscsi target installation

Hi All,

My issue is I am using Fedora 16 as my OS With the following info of my kernel :- 3.1.0-7.fc16.i686.PAE

Linux three 3.1.0-7.fc16.i686.PAE #1 SMP Tue Nov 1 20:53:45 UTC 2011 i686 i686 i386 GNU/Linux

further the iscsi kernel need the kernel version 2.6.16. Want to know is my kernel updated or old and if it is new is my kernel supported to the iscsi target and if I switch backed to the old kernel will it effect my hardware configuration

Regards
Vikas Kanojia
+919322308023

bash: service: command not found

bash: service: command not found

[root(at)arvinlo ~]# service xinetd start
bash: service: command not found
[root(at)arvinlo ~]# /sbin/service xinetd start
Starting xinetd:
[root(at)arvinlo ~]#


what is the problem?????service is in the sbin directory...
but cannot execute without giving exact path...
also commands like chkconfig...

Playing DVDS

Playing DVDS

Hello All
I am using Ubuntu 10.04 and have installed all updates.
I can not play dvds with Movie Player and would like to know what package I have to install to watch dvds. If I can't get it from the repository and have to install it from some place else I will need easy instructions on how to do it. I have tried every package in the repository that said it would play dvds with no luck. The only one that came close to me being able to play a dvd was SMplayer and it said that I needed to update it but could not see how to update it so I couldn't use it either.
I'm a newbie so like I said I will need easy instructions or I should say simple instructions.
Also when I tried to use Movie Player it accessed the internet and said there were no packages for it.
Thank you in advance for your help.:(

bringing up eth0:connection activation failed

bringing up eth0:connection activation failed

bringing up eth0:connection activation failed

when trying "#service network restart" it showing an error
[/B]"Bringing up etho: Connection activation failed : Device not managed by Networkmanager "[/B]


In "#setup" i have given DHCP.
help me to fix this...

Gnome 3 freezes Ubuntu 11.10

Gnome 3 freezes Ubuntu 11.10

So basically, I'm trying to get Ubuntu all set up, it installs no problem and works just fine. But I have a problem when it comes to using Gnome Shell. For some reason, every time I install Gnome Shell it messes everything up, I'll install it, and it'll run fine for about 5 minutes then everything freezes and I have to force shut down the computer.

And it's not a problem of using just Gnome Shell, if I install Gnome Shell, I can't even use Unity without the system crashing.

I have to re-install ubuntu all over again just so everything will work (I've re-installed 3 times now)

So, right now I don't have Gnome Shell installed, but I was just kind of wondering why it does this and if there is something that I can do to fix it? If not, that's okay, Unity is cool.. but I'd prefer to run Gnome.

I'm on a Mac, dualbooting with OSX.

formate my hard drive to NTFS or NTSF! im goin back to windows for now

formate my hard drive to NTFS or NTSF! im goin back to windows for now

how can i easily formate my harddrive to NTSF? i am going back to windows 7, and need another formate. can anyone please tell me step by step how to do it?

cant post the acronym F-T-P

cant post the acronym F-T-P

I understand that people come on here and spam but this is rediculous. I cant even post the acronym F-T-P without having a posting error. I came here to post an ubuntu error im getting but I can't do that. hello and goodbye linux forums. I'm going back to OC (dot) net.

Pork not displaying offline messages

Pork not displaying offline messages

I'm on openSUSE 11.4 and use pork 0.99.8.1 for AIM. The problem is that everytime someone sends an offline message to me, the message itself is not displayed, I just get a notification that I received an offline message
Code:

<buddy_who_sent_offline_message>[Offline IM sent 2m ago]
and from <AOL System Msg>
Code:

You just received 1 IM(s) while you were offline.
 If you do not wish to receive offline messages, please go to IM
 Settings (URL of AIM settings)

. Neither am I able to send messages to a buddy that is offline, I get an error message that tells me how my message wasn't sent because the user whom I sent the message to was not logged in.
I use pork because I don't have any other troubles with the application, but I would like to find a solution to the above issue. Thank you!

UNIX system

UNIX system

Do you know any site that i can download free a UNIX system (for example the 7 version)?

Conky + Lua + 'Max' Headache

Conky + Lua + 'Max' Headache

Hi All,

Whenever I try using conky + lua and need to use the 'max' function I am running into this error:

Conky: llua_do_call: function conky_main_bars execution failed: /home/joel/.conky/bargraph.lua:385: attempt to perform arithmetic on field 'max' (a string value)


Here is the code for the section of the lua script:

Code:

        local bars_settings={

                {
                        name="fs_used",
                        arg="/",
                        max=conky_parse("${to_bytes ${fs_size /}}"),
                        --alarm=1,--no alarm with 1 smooth block, don't do extra work here
                        bg_colour={0x00ff00,0.25},
                        fg_colour={0x00ff00,1},
                        alarm_colour={0xff0000,1},
                        x=5,y=112,
                        angle=90,
                        blocks=1,
                        height=210,width=18,
                        smooth=true,
                        mid_colour={{0.5,0xffff00,1}},
                },

BASH script to automate a process

BASH script to automate a process

I want to create a script that will:
  1. Create a Virtual Group and name it 00
  2. Create the following logical volumes:
  3. /usr
  4. /opt
  5. /bin
  6. /tmp
    Format the Logical Volumes (ext)
    and finally, mount the Logical Volumes

Code:

I was thinking something like:
white true; do
cd /
mkdir /usr
mount usr_lv /usr
done

But, I'm not really sure if that would be too effective.

Script to put files not in a folder into a folder with the name of the

Script to put files not in a folder into a folder with the name of the

Hi :)

Looking for some help with a script that will take all files in any given root folder (which are not already in a folder) and put them into separate folders with the name of each given file.

Any ideas? :)

Thank you!

Dan

QEMU/KVM All projects abort with internal compiler error

QEMU/KVM All projects abort with internal compiler error

Hello,

I have setup a system consisting of the host on AMD Athlon64. On it several VMs are running. Either SuSE 11.4 or 12.1.

When I try to compile any source project (with gcc 4.5.1 or 4.6.2), lately bacula, the 'make' is sooner or later aborted by "internal compiler error". Sometimes I am lucky with tinkering with compiling options like setting -O2 to -O0. Currently I am running the gcc testsuite. It looks like all test fail.
All projects I tried so far ran without error with the same options on the host.

So I think it is connected with the fact that the compilation is done within a VM. But I don't know how to get an angle on this. Maybe the compiler does not know with processorshould be compiled for?

I do not know what information to post to help you analyze the problem, so please ask.

Thank you,

Tobi

Monitoring iptables processes

Monitoring iptables processes

Hello there.

I'm looking for a way to monitoring iptables processes.
Since iptables acts directly into the kernel (correct me if I'm wrong), I tried to look into /proc to search for something interesting but found nothing.

Sometimes, some rules just don't work and I cannot know why, I need some monitoring tool, something like a grep, to see exactly what is iptables doing with some packet.

Using grep and sed

Using grep and sed

Hi everyone. I'm having trouble using these commands to their full extent. Here is my problem:

I'm dumping a log to the terminal and only want a specific set of lines that start with
Code:

V/ CONTENT ( [some number]):
But I want these lines without that junk in front of it. To display only the parts I want, I'm doing the log command piped with grep and sed

Code:

./adb logcat | grep CONTENT | sed -e 's/CONTENT ( [some number]):/ /g'
This leaves me with V/(stuff I want). I'm just not sure how to sed the V/ part out of it because in the sed command '/' symbols are used to separate fields. Anybody have an idea? :D

using fopen and fread with /dev/sda

using fopen and fread with /dev/sda

Last night I accidentally deleted quite a few files I had been working on for the past month or so. So, after freaking out for a little while and after trying unsuccessfully to use grep on the unmounted partition (it ran out of memory...haha) I decided I may as well learn something from this and so I am using another computer to write a program (in c) to read directly from my hard drive (/dev/sda) and search for a specific string while using only a reasonable amount of memory (grep was using all 8GB). I now have my computer I deleted the files on running off of a flash drive so that it doesn't harm the data on the hard drive, but I have a few questions about using fopen and fread to read data from /dev/sda (sorry if I have too many questions...I just want to be certain this will work):

Would fopen treat /dev/sda just like any other file?

When using fread on a /dev/sd* file will it return less than the requested bytes when it gets to the end of the hard drive?

Would fread read directly from /dev/sda or would it try to copy it into memory first? Do I have to worry about memory problems if I try to read another 100MB after already reading 8GB (the amount of memory I have on my computer) even though I have free'd the memory that I had it read into?

My program as I have it functions more or less as follows:
Code:

FILE* inputStream = fopen("/dev/sda", "rb");
//...stuff to check to make sure it actually opened it

//...

//...the following is inside of a loop...
char* memoryChunk = malloc(100000000); //allocate 100mb for the chunk to be read
unsigned long int actualReadBytes = fread(memoryChunk, 1, 100000000, inputStream);
//...memoryChunk is processed...
free(memoryChunk);
if (actualReadBytes < 100000000)
{
      //...exit the loop since that means the last chunk read was the end of /dev/sda
}

//...after the loop and everything
fclose(inputStream);

Booting Linux Mint 12

Booting Linux Mint 12

When booting LM 12 a dark rectangular box is displayed at the bottom of the screen with "HP Media Drive" displayed and a choice of "open with files" and "eject". If I select eject the system hangs. This display has just started happening and I have no idea why. I also want to stop the box itself from being displayed. Suggestions?

Desktop Fork for GNOME; Yet Another One Bites the Dust...!

Desktop Fork for GNOME; Yet Another One Bites the Dust...!

Been reading some interesting news and stumbled across several sites referencing to the founder of Linux Mint forking from the GNOME Desktop. I don't know if this is just rumour or if there is an actual backing behind the new forked desktop.

Just look up "Cinnamon Desktop"
or Links here:
Cinnamon: GNOME Shell Fork With A GNOME2-Like Layout ~ Web Upd8: Ubuntu / Linux blog

Gnome Shell Looks Like Gnome 2 – Cinnamon Desktop | Smashing Web

Sounds like the Cinnamon Desktop will be a further improvement on GNOME MGSE. A new hybrid desktop of GNOME 3 and 2. I was always curious and wondered what Mint's Gnome extensions would do, sorta had that gut feeling it might be the start of a fork.

Yet Another one, it appears as though GNOME's new route is quickly losing followers and supporters.

On my count it is up to 3 forks since GNOME 3's release. (The Magic number being 3)
You've got Unity Desktop, MATE, and Cinnamon (if this holds to be true)
That seriously suggests something concerning...! 3 forks from what used to be the Top Desktop Environment in just a few months. That should be ringing alarm bells for GNOME developers.

External USB Drive Will Not Mount

External USB Drive Will Not Mount

Recently my external Western Digital USB drive will not mount. The unmounted disk icon shows up on the desktop when I plug in the USB drive and then when I try to mount via the GUI (right click mouse and choose "mount") it says operation failed. I am also unable to mount via command line - I get a message that says the partition is busy or already mounted. This is a production web server (SLES10-SP3) that has been running for six years with the same Western Digital USB external drive ( used to back up my web root). I am not sure if this is a sign of the external drive on its last leg or not.

I was thinking of deleting the lines referencing the Western Digital external drive in /etc/fstab and then rebooting. Is that okay to do? Thanks.

Here is my /etc/fstab


Code:

/dev/disk/by-id/scsi-SATA_WDC_WD1600YS-18_WD-WCAP01651022-part2 /                    reiserfs  acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_WDC_WD1600YS-18_WD-WCAP01651022-part1 swap                swap      defaults              0 0
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0

Urgent Help: Need to Restrict Ftp on WAN Allow only on LAN

Urgent Help: Need to Restrict Ftp on WAN Allow only on LAN

Hi Friends,

We are using Centos 6, in our system two Ethernet Cards are used one for LAN Access and another one for WAN internet.
We are used for Appache server, for showing demo site to clients.

So I need to give Restrict permission for the following.
1. Restrict FTP access on internet WAN. Only LAN users can use FTP.
2. In internet users (client) can only view Http site. Ftp should restricted on internet.

Please anyone Help me. Its very Urgent.

Stuttering performence raid

Stuttering performence raid

Hi out there, Im kinda n00b on this. But in my machine running ClearOS, I have a sata-card, and set it up as raid, raid 1 I think. So 2 x 1TB hdd's seems like 1 x 1TB but redudant to hw-failure.

But now to the problem, in linux I wasnt found the hdds as raid. So I googled and found to use mdadm to make a raid. And then I can see the raid when 'cat /proc/mdstat', output:
Code:

[yabbah ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdh1[1] sdg1[0]
      976759936 blocks [2/2] [UU]
     
unused devices: <none>

On that device I have all my ripped dvd's to the kids. But when they watch them the movies (doenst matter what movie the choise) start buffering after 4 minutes, and then it stops playing completely. This start to drive me nuts.

I tried copy a iso-file from that device over my network to my computer, I saw that after about 1gb copied, it paus the copy for about 20seconds. Same after 2,3, and 4 gb. So something is completely wrong.

How can I solve this without loosing the data?

Kind regards and marry christmas
yabbah

A Little help for Shell Script

A Little help for Shell Script

CME 1003 Shell Script Assignment
Project Specification
A shell script is a script written for the shell, or command line interpreter, of an operating system. Typical operations performed by shell scripts include file manipulation, program execution, printing text etc.
Shell : In computing, a shell is a piece of software that provides an interface for users. In this project, you should prepare a Linux shell script which performs following operations:
Your script will ask user 4 options : Create, Move, Delete, Copy. The option will be applied to
Directories and/or Files which contain given name.
Examples:
Create : Reads a directory name and number from user and creates directories.
Example : directory name = student
number = 13
student1, student2, student3... student13 directories will be created by this option.
While creating each folder, script will ask user directory permissions. (permissions could
be given by number values like; 775 for rwxrwxr-x)
( NOTE: If directories exist, inform user!)
Move : Name and new location is taken from user.
Copy : Name and new location is taken from user.
Delete : Name is taken from user.
NOTE : Each operation will be logged in log.txt such as:
Example : Directory documentation_13.11.2007 is moved to upper directory
All of these options will be listed as a menu for user. At the end of each operation menu should
be shown unless user selects Exit option. The shell script should display appropriate messages
such as warning, information.
Example : If given filename does not exist, warn user.
NOTE : The wildcards should be accepted by your shell script as user input !

Please help me..

Howto Xserver dual screen setup with LCD TV?

Howto Xserver dual screen setup with LCD TV?

Hello, I'm trying to configure dual screen on my slitaz linux. I have connected s-video port on graphic card (old Nvidia Geforce MX440) with AV connector (yellow cinch) on LCD TV (32" LG32LD350). I want to have cloned screen on both, pc monitor and tv. How can I achieve this?

What I tried till now:
If I try to turn on twinview in nvidia-settings, the image on TV is cloned, but image on TV is grayscale and is flickering - I didn't find any option to increase TV frequency, colors are set to 32Milion. I tried it two days ago and somehow the image was color, I don't know how to set it up again :(. So I'm sure, the cable is OK.
I got same results, when I tried to set xorg.conf in either twinview or separate screen - screen is grayscale and flickering.

I tried to change almost avery option in config file without desired result, so I would be thankfull in any ideas.

This is my xorg. conf:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Philips"
ModelName "107B"
HorizSync 31.0 - 68.0
VertRefresh 60.0 - 85.0
Option "DPMS"
# Option "DPI" "96 x 96"
# DisplaySize 710 400
EndSection

Section "Monitor"
# TV
Identifier "Monitor1"
ModelName "32LD350"
VendorName "LG"
VertRefresh 85
# HorizSync 30-50
# Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce4 MX 440"
BusID "PCI:1:0:0"
Screen 0
# Option "TwinView" "1"
EndSection

Section "Device"
# device pre TV
BoardName "GeForce4 MX 440"
Driver "nvidia"
Identifier "Videocard1"
Screen 1
VendorName "Nvidia"
BusID "PCI:1:0:0"
# Option "TwinView"
Option "TVOutFormat" "COMPOSITE"
Option "TVStandard" "PAL-A"
# Option "Connected Monitor" "TV-0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
# Option "TwinView" "1"
Option "metamodes" "CRT: 1024x768_85 +0+0"
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Screen"
# definicia screenu pre TV
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
# Option "metamodes" "TV: nvidia-auto-select +0+0"
Option "metamodes" "TV: 1024x768_85 +0+0"
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768"
EndSubsection
EndSection

Nvidia Driver Settings: Extended Display Help

Nvidia Driver Settings: Extended Display Help

Hey,
I recently bought a new Graphics Card (Nvidia GTX 570) replacing my Radeon HD 6850. However i'm having problems getting the display settings to work how i would like.

Previously i had an extended display over 2 monitors, with the main desktop (i.e. Panels on 1 screen) and the other monitor blank except for the desktop background.

I've installed latest driver (from Nvidia) and it all works fine. I configure the nvidia driver to have monitor 0 as 1920X1080 and monitor 1 as 1650x1024, right of monitor 0.

If using separate X screens i get the two screens like intended, but both monitors have the panels like a main display, but no compiz. If i enable twinview i get dual screen with compiz but again both monitors are treated as the main display (i.e. panels appear on both). If Xinerama is enabled on either of the above, i 1 big screen like i want with the panels on the main display but no compiz or desktop switcher. All settings also only give one mouse for both monitors.

Some help would be great, Xorg.config can be given if necessary.

dhcpd6 do not reply the query

dhcpd6 do not reply the query

Hi All,

I'm trying to setup a dhcpv6 server in my office with CentOS 6.1 + dhcpd6, below was the dhcpd6.conf file.

Code:

default-lease-time 600;
max-lease-time 7200;
log-facility local7;

authoritative;

subnet6 2222:1111:107a:7::/64 {
        range6 2222:1111:107a:7::500 2222:1111:107a:7::1000;
}

allow leasequery;

after i'm start the dhcpd6 service with the command:

Code:

/usr/sbin/dhcpd -6 -f -cf /etc/dhcp/dhcpd6.conf eth2
The service are successfully start with the info that show as below:

Code:

Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.
Bound to *:547
Listening on Socket/5/eth2/2222:1111:107a:7::/64
Sending on  Socket/5/eth2/2222:1111:107a:7::/64

I'm trying to use a Win 7 machine and another CentOS 6.1 machine to get IPv6 address from the DHCPv6 server that I've setup but it fail to get any IPv6 address. By using wireshark to capture the packet, I only see the client try to send a DHCPv6 Solicitation to all DHCPv6 multicast group but DHCPv6 server never reply to the solicitation, anyone encounter similar issues? I've disabling the ip6tables to ensure is not firewall issues. Hope you guys can advise.

Cheers,

13zai

Wednesday, 21 December 2011

Tightvnc/RDC on Mint 12

Tightvnc/RDC on Mint 12

I installed Tightvnc, and in Synaptic it shows to be installed, but I can't figure out how to run it. I can't locate it anywhere under Menu > Applications area.

Secondly I installed Vinagre, and now show the Remote Desktop Viewer under Applications > Internet, but there is no options to configure as a host.

I was able to run Tightvnc on my Win7 machine, and control from the Mint's RDC viewer, however I am trying to get it the other way around where Mint is host, controlled from Win7.

Thanks for any help...

Posix message queue help

Posix message queue help

Hi,

I am developing an API which will communicate with a daemon.
I am using POSIX message queues.

The API functions will send a message requesting data to the daemons message queue. The response from the daemon will be sent to another message queue which will be read by the api calling function and the then the api sends a response back.

My problem is that how to read the messages coming from the daemon. Here is example

api function A
{

send message to message daemon
poll message queue

}

api function B
{

send message to message daemon
poll message queue

}


Can the polling of the message queue just waiting for a certain message? api function a is waiting for its response and api function b is waiting for its response but it one function reads all the data then its a problem. What do you think is the best way to handle this?

thanks for your time

Distribute Internet to Some specific Computers in LAN

Distribute Internet to Some specific Computers in LAN

Hello Dear all,

I have a UTP line coming from DHCP server in which internet is coming and it is distributing internet giving IP and DNS addresses automatically to any system connected , as it is from DHCP server.


I want to setup a system for distributing internet to some specific group of computers only.

I have have installed Virtual machine on Windows 7 where i am using Cent OS. and i have two LAN ports (one is from NIC card another from Virtual machine).
How i setup some severs on CentOS (like Squid) and distribute internet to group of machines only in LAN.

Thanks n Regards.

Krishna

Recommendation About Backtrack

Recommendation About Backtrack

Well, I just currenlty planning to download Backtrack 5 R1 but I stuck with something.

First, there's two favor as you guys know, Gnome and KDE. Currently I am using Fedora with Gnome, and it works perfectly for me. But when I go through some Backtrack Tutorials or something, most of them is using KDE. The interface looks perfect but recently when I was using Fedora with KDE, I got a lot of problems in web browsing:
1. The built in browser Konqueror, wasn't too happy with the flash plugin.
2. Then I installed the mozilla, the 'scim' chinese input not working.
So the conclusion is, if I need flash, I need to open the mozilla, then if I need to type chinese, i need Konqueror. It just wasting time to use 2 browser at once. lol

Then, I am thinking about using Backtrack as my main os, even the ONLY OS, but I worry it's difficult to have other application like Mozilla, Chinese Input, even VLC player. If I'm using Fedora, I can just install them with 'yum', but I don't think Backtrack have the same mehtod.

Please someone give some suggestion or solution about these.
Thanks =)

Squeeze Dual Root With Single Userspace

Squeeze Dual Root With Single Userspace

I would like to run Debian with multiple roots and share the same /usr directory but am unsure if this is asking for trouble. My ideal setup and reasons are below:

/dev/sda1 100MB /boot
/dev/sda3 4096MB swap
/dev/sda2 400GB LVM

LVM broken up as:
Root_Stable 75GB
Root_Testing 75GB
USR 50GB
Home 200GB

I have my stable 2.6.32-5-686 default kernel for backup with a grub entry to boot the system with either Root_Stable or Root_Testing. I also a working 3.1.5 kernel that can boot with either root.

The whole point of this is I do a lot of modifications and mucking about with the system in general. As I only have one computer so my Root_Stable is a standard netinst install with no modifications while the Root_Testing is a custom debootstrap with no SELinux support. As things become stable I shift the mods into the Root_Stable pretty much the same way Debian has its releases set up.

The main thing I am worried about is how to share the /usr directory. I want access to my applications regardless to the root I am using but I do not know of the many interrelations that are going on in the background and if I ran two roots would apps freak out and start mutilating my data? Wine is a good example, I built from source and installed in /usr/share/wine and it worked great. After a few boots around the different roots now wine does not even load when run from the command line. Is thing an expected side effect of how I want to do things? and if so should I just run two user directories after all?

Thanks!!

difference between linux and windows partitions

difference between linux and windows partitions

hi
i am new in linux and i have some questions about linux partions.like in windows we have logical partitions where we save our data if windows get corrupt we install new windows in c:/ but our data remains save. so in linux can we do like this if my linux get corrrupt can i preserve my old data during new linux installation. and how partitions and directory structure works in linux thanks

Help me pick a distro!

Help me pick a distro!

So I have been looking for another distro to try but there are so many. I am currently on Mint 11 but have only tried Ubuntu. So I definitely would like to try a none Debian OS, to see the other side of the fence. But I also dont want to try something as intense as Arch Linux(from what I herd). I have decided between OpenSUSE and Fedora. Could some explain the highlights and weakness of both and Ill make my decision.

Ubuntu BackTrack5 "Found following drivers in Kernel: No such file..."

Ubuntu BackTrack5 "Found following drivers in Kernel: No such file..."

Hello Community
I'm German and I hope you can understand my English :)
I have downloaded and installed BackTrack 5. It is based on Ubuntu.
After installing and configuring I have written in the Command Line:
airdriver-ng kernel
that should list all in-kernel driver for wlan cards. I know from another list that the drivers for my wlan card are in this list but it only displayed errors:
Code:

Found following stacks in the Kernel:
grep: /lib/modules/2.6.39.4/build/.config: No such file or directory
grep: /lib/modules/2.6.39.4/build/.config: No such file or directory
grep: /lib/modules/2.6.39.4/build/.config: No such file or directory

Found following drivers in the Kernel:
grep: /lib/modules/2.6.39.4/build/.config: No such file or directory
grep: /lib/modules/2.6.39.4/build/.config: No such file or directory
.
.
.

I'm now sitting under my desk because my lan cable is too short and hope to install driver from "airdriver-ng" but I cant.
I hope somebody of you can help me.

With friendly Greetings Raecher2503

P.S.: Happy Christmas :D