• ALGEMENE VOORWAARDEN
  • GENERAL TERMS & CONDITIONS

KUDOS - IT consultant and FOSS supporter

  • home
  • contact
  • services
  • baanboard
  • msx
Home › Feed aggregator › Sources

UNIX.com

Syndicate content The UNIX and Linux Forums
UNIX and Linux Forums - Learn UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts
URL: http://www.unix.com/
Updated: 9 min 5 sec ago

Equivalent of /etc/rc.local in Solaris 10

51 min 41 sec ago
What is the equivalent of /etc/rc.local in Solaris 10?

RAMDISK: EOF while reading compressed data ...Kernel panic - Unable to mount root

2 hours 12 min ago
I was following this tutorial on How install the rpmfusion nvidia drivers in Fedora 13:
F13, F12 & F11 Nvidia driver guides - FedoraForum.org

Here's the tutorial:
Quote: Originally Posted by leigh123linux (Post 1114769) F13 Howto for the rpmfusion nvidia drivers


This is a Three-Step Process. If you don't follow all three steps, your install will fail!




1. Install the nvidia driver. ( if you have 4Gb of RAM or more you will probably have a PAE kernel [32bit only] so follow the PAE part )

For GeForce 6, 7, 8, 9, 200 & 300 series cards

Code: su
rpm -Uvh  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm    http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install kmod-nvidia  xorg-x11-drv-nvidia-libs.i686 If you use a PAE kernel

Code: su
rpm -Uvh  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm    http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install  kmod-nvidia-PAE Or (akmod builds the required kmod on bootup )

Code: su
rpm -Uvh  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm    http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install akmod-nvidia  xorg-x11-drv-nvidia-libs.i686

2. Edit grub.conf ( if you omit this step the driver will fail to work )


this command adds rdblacklist=nouveau option to /boot/grub/grub.conf

Code: su -
sed -i '/root=/s|$| rdblacklist=nouveau|' /boot/grub/grub.conf
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname  -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r) 3. Reboot And this is what I did:

First I executed the following commands:

Code: su
rpm -Uvh  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm    http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install kmod-nvidia  xorg-x11-drv-nvidia-libs.i686 Then In step 2 I executed the following commands:

First:
Code: sed -i '/root=/s|$| rdblacklist=nouveau|' /boot/grub/grub.conf Then this one:
Code: mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname  -r)-nouveau.img And when I got to this one:
Code: dracut /boot/initramfs-$(uname -r).img $(uname -r) I got this message: Will not override existing initramfs (/boot/initramfs-2.6.33.3-85.fc13.x86_64.img) without --force
So I kinda ignored that command and restarted my computer and that's when I received this message:

Quote: RAMDISK: EOF while reading compressed data uncompression error Kernel panic - not syncing Unable to mount root fs on unknown block (0,0) [COLOR="Silver"]

============= I used a FedoraDVD/Rescue Option to access my system:

Here's my grub.conf file (boot/grub/grub.conf):

Quote:
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.33.6-147.fc13.x86_64 ro root=/dev/mapper/vg_wmxwrkst-lv_root rd_LVM_LV=vg_wmxwrkst/lv_root rd_LVM_LV=vg_wmxwrkst/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrgeb-sun16 KEYTABLE=us rhgb quiet nouveau.modest=0 rdblacklist=nouveau
initrd /initramfs-2.6.33.6-147.fc13.x86_64.img
title Fedora (2.6.33.3-85.fc13.x86_64 ro root=/dev/mapper/vg_wmxwrkst-lv_root rd_LVM_LV=vg_wmxwrkst/lv_root rd_LVM_LV=vg_wmxwrkst/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrgeb-sun16 KEYTABLE=us rhgb quiet rdblacklist=nouveau
initrd /initramfs-2.6.33.3-85.fc13.x86_64.img
When I execute the command: uname -a I get the following:
Linux localhost.localdomain 2.6.33.3-85.fc13.x86_64 ...

Python3 bytearray padding

3 hours 2 sec ago
Hi,
I'm trying to create a padded bytearray in Python3.
Currently I have something like this:

inputstuff = [
('A' , b'ABCD'),
('B' , b'EFGH'),
('C' , b'IJKL'),
('D' , b'MNOP')
]
BA = bytearray()

for thing in inputstuff:
BA.extend(thing[1])

print(BA.decode('latin1'))
print(BA)

for thing in BA:
print(thing)

This works and gives output like this:

ABCDEFGHIJKLMNOP
bytearray(b'ABCDEFGHIJKLMNOP')
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

Which is expected.

However, what i'd actually like to do is pad the bytes I add to the bytearray with blanks such that it would be more like this:

ABCD EFGH IJKL MNOP

Obviously I could just add spaces to the end of each string defined as A, B, C and D - but i'd rather not do that as it would get complicated when I use this code in a real scenario where these are objects being passed into the function etc.

If anybody knows how to do this i'd be very grateful of your help.

Regards,

Phil

iptables rule problem

4 hours 21 min ago
Hi,
i have 40 client's in my network, that connected to internet via
squid server (WebProxy). i want none of these client can't ping my squid server bat squid server can ping them.i wrote these rules but it is'nt work.

Code: iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -A INPUT -p icmp -s 192.168.23.1/24 -d 0/0 -j ACCEPT
iptables -A OUTPUT -p icmp -s 192.168.23.1/24 -d /0/0 -j ACCEPT squid server ip address is 192.168.23.1

please help.
thanks.

Perl: Extracting a char from a string.

4 hours 53 min ago
I want to extract a character from a string.
For a C/C++ programmer like me, this would seem to be the most logical and reasonable way--but it doesn't work:
Code: $s = "abcdefg";
$c = $s[2]; This way is documented and it works, but it seems clumsy.
Is there any simpler way to grab one character out of a string?
Code: $s = "abcdefg";
$c = substr($s, 2, 1);

enable ssh server on SCO 5.0.6

5 hours 34 min ago
hi

How to enable ssh server on SCO unix 5.0.6 and allow remote root login?

Delete printing everywhere in Solaris 8

5 hours 34 min ago
I am in a prison system with a standalone (no internet connection) Solaris 8 network using Sun-Rays for clients (so no software is on the client side). We are finding a problem where inmates are using the print-to-file function to be able to rename folders everywhere on the server, meaning they are slow (not instant :-) messaging by renaming folders to a message/letter and then reading these folders on others directories. The particular canned education application is allowing for printing and then the print to file function and sees no reason to change their program to correct this since it is very specific to our particular application. Where would printing specifically be shut off in the Solaris 8 side of the problem? No printers show up under Print Manager, lpcadmin, lpc, lp, lpr, etc. Where functionally is a printer initially started when booting? I see one message about "printing services starting" during bootup but that is it! Is there an init file, etc. which is where this message comes from?

ixeye

Moderator's Comments: Please don't double / cross post. Continue here.

Deleting printing everywhere

5 hours 39 min ago
I am in a prison system with a standalone (no internet connection) Solaris 8 network using Sun-Rays for clients (so no software is on the client side). We are finding a problem where inmates are using the print-to-file function to be able to rename folders everywhere on the server, meaning they are slow (not instant :-) messaging by renaming folders to a message/letter and then reading these folders on others directories. The particular canned education application is allowing for printing and then the print to file function and sees no reason to change their program to correct this since it is very specific to our particular application. Where would printing specifically be shut off in the Solaris 8 side of the problem? No printers show up under Print Manager, lpcadmin, lpc, lp, lpr, etc. Where functionally is a printer initially started when booting? I see one message about "printing services starting" during bootup but that is it! Is there an init file, etc. which is where this message comes from?

ixeye

How to get the process id in to variable?

6 hours 15 min ago
Dear Experts,

Pl help me to fix this

i am trying to unmount the all the file systems in VG, Once unmounted vary off the VG.

I have written the script to do that it works fine when none of user or process id holds it but if in use it says resource is busy and can't unmount.
even i used fuser -kxus fs in the if statement but i am not able to can anybody help to how to assign the process ids holded by filesystem to a variable i am able to fetch the process id using "fuser -c <filesystem> it shows ids like below

Code: <filesystem>:  1900636c 3207268c how can i get only process id in to variable(i.e 1900636 3207268)

so i can add line script to kill process ids

Here it is script which i wrote to do the things.


Code: lsvg -l `lsvg -o | grep -v "rootvg" ` | awk '{ print $7 }' | grep -vE "(^$|LV|N/A)" | sort -r > ${LOGFLDR}/tmp_vg.out
{
        for i in `cat ${LOGFLDR}/tmp_vg.out`
                do
                        umount -f $i
                    if [ $? -ne 0 ]
                      then
                        fuser -kxuc $i
                        umount -f $i
                    fi
                done
        for i in `lsvg -o | grep -v "rootvg"`
                do
                        varyoffvg $i
              done
} 1>${LOGFLDR}/FS-status_daily.log 2>&1
if [ $? -eq 0 ]
then
d=`date +"%d-%m-%Y %H:%M"`
echo "Succefully Completed Execution of flashunmount.bash at $d "
unset d
exit 0
else
echo "Error Occured during the execution of flashunmount.bash. Refer the log file created in "${LOGFLDR}""
fi
exit Waiting for u u suggestion

Regards,
Madhu

bash: correct quoting with find and exiv2?

7 hours 39 min ago
Hi,
I need to embed a metatag to image files which contain qrcodes, i usually do this with Code: exiv -M "set Exif.Image.DocumentName `zbarimg -q -Sdisable -Sqrcode.enable --raw image.tif`" image.tif which works fine. However I need to do this recursivly for whole directory and subdiretory structures.

I use to handle such jobs with the find -exec command, which in this case would looks like this.
Code: find . -name '*.tif' -exec sh -c 'exiv -M \"set Exif.Image.DocumentName `zbarimg -q -Sdisable -Sqrcode.enable --raw "{}"`\" {}' \; Unfortunately this doesn't work because exiv2 is complaining wrong arguments on option -M.
But trying a similar comand by inserting echo to debug the line
Code: find . -name '*.tif' -exec sh -c 'echo \"set Exif.Image.DocumentName `zbarimg -q -Sdisable -Sqrcode.enable --raw "{}"`\" {}' \; the whole thing looks quite right to me.

Someone please give me a hint what's going wrong?
THX in advance

Gnome 3 postponed

8 hours 16 min ago
In other news this week: the Gnome 3 release has been postponed to March 2011. The official press release: GNOME 3.0 Rescheduled for March 2011 Release

Google charts now has a wizard

8 hours 40 min ago
Here is a link to google charts, but wizard driven, which makes for much easier prototyping:
Chart Wizard - Google Chart Tools / Image Charts (aka Chart API) - Google Code

It is still in Beta, so near-future changes are likely. It gives the opportunity to experiment with your data and the way the information should be displayed, before turning to something server side like gnuplot or jpgraph, if so required.

Launching shell scripts from different dirs

10 hours 10 min ago
Hi,

General question, if I have a shell script whcih I launch from anywhere on the system vis the PATH env var, how can I get the script to echo where I launch this from?

i.e. /my/home/script/myscript

BUT

I launch this from /my/otherarea/somewherelse via the env variable. I would like to echo where I actually am and not where my script is stored. I have tried pwd but this only gives me where the sscript is stored??

Thanks

Problem in using ftp command under if statement

11 hours 34 min ago
If i use ftp command under if statement it shows the error "Syntax error at line 19 : `<<' is not matched." But if i use ftp command outside if statement, then it is running fine. Can anyone please help me in this.


Code:
Quote: #!/bin/sh

echo "\nPress 1 for automated file dumping."
echo "Press 2 for manual file dumping."
echo "\nEnter your choice:"
read choice
cd /application/IT_Applications/Dump1
rm -f dump_load_log.txt
rm -f dump_load_bad.txt
rm -f subscriberdump*
file=`date +%Y%m%d`
if [ $choice -eq 1 ]
then
ftp -v 10.10.10.113 <<EOF
quote USER it
quote PASS it
cd IN_Sub_dump
binary
get IN4_SubscriberDump_20100731.tar.gz
quit
EOF
echo "1"
elif [ $choice -eq 2 ]
then
echo "None"
fi

!# used on command line

11 hours 59 min ago
hi. i installed ack, and on the website, it says to run:

curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3

now, what does the !#:3 mean? i'm guessing that it's referring to the 3rd argument on the command line, which in this case would be ~/bin/ack? is that correct?

thanks

TROJ_QUICKTM.A

13 hours 44 min ago
Malware: TROJ_QUICKTM.A

More...

could not open source file "sys/elf_386.h"

14 hours 13 min ago
Hello All,

i am porting my application from SunSolaris to Linux (RHEL4).
When i compile my c/c++ code i am getting the following errors.

1. catastrophic error: could not open source file "sys/elf_386.h"
#include <sys/elf_386.h>

2. catastrophic error: could not open source file "sys/elf_386.h"
#include <sys/link.h>

3, catastrophic error: could not open source file "demangle.h"
#include <demangle.h>

Please help me to solve these errors?

Thanks in Advance.

~Saravana

Help with adding leading zeros to a filename

21 hours 31 min ago
Hi
i need help in adding leading zero to filenames
e.g file name in my folder are
1_234sd.txt
23_234sd.txt
the output i need is
001_234sd.txt
023_234sd.txt
can i do this shell scripting
please help

driver for external drive case on usb port

21 hours 48 min ago
Hi

I have to buy my selfe external case for hdd but I don't know whether my ubuntu linux, needs some driver to be able to work with this device or it has inside of itselfe this driver ?

rhx for help.

XARGS and FIND together

Fri, 30/07/2010 - 23:45
I am trying to delete files older than 60 days from a folder:

find /myfolder/*.dat -mtime +60 -exec rm {} \;

ERROR - argument list too long: find

I can't just give the folder name, as there are some files that I don't want to delete. So i need to give with the pattern (*.dat). I can write a script with AWK to take the time and do a delete. But i need to do for many folder and feel it will take time.

Normally for argument list too long: find, I have used XARGS. But I am not sure how XARGS and FIND can be used together. Please help me.

Thanks,
Risshanth
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »

Navigation

  • Glossary
  • Recent posts

Search

User login

  • Request new password

Recent comments

  • On the same port
    8 weeks 5 days ago
  • All, with 2 daemons running
    12 weeks 23 hours ago
  • /etc/init.d/sshd
    16 weeks 2 days ago
  • No easy way to do this
    16 weeks 2 days ago
  • external iface is dhcpd addressed
    16 weeks 3 days ago
  • Great
    18 weeks 4 days ago
  • Great!
    21 weeks 4 days ago
  • Thanks!
    23 weeks 2 days ago
  • keyboard-interactive?
    23 weeks 2 days ago
  • no authentication method
    23 weeks 3 days ago

Use Free Software!

Visit the Free Software Directory

Baanboard.com

  • NEW: added forum and moderator for Russian users!
  • Archiving Localized Data
  • Baan IV and ERP LN Tools Consultant
  • Provide application design and development expertise in Baan IVC4.
  • Purchase order - Exctracting prices
more

UNIX.com

  • Equivalent of /etc/rc.local in Solaris 10
  • RAMDISK: EOF while reading compressed data ...Kernel panic - Unable to mount root
  • Python3 bytearray padding
  • iptables rule problem
  • Perl: Extracting a char from a string.
more

  • home
  • contact
  • services
  • baanboard
  • msx