LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2009, 01:07 AM   #1
trnz$mr
Member
 
Registered: Oct 2008
Posts: 121

Rep: Reputation: 15
running an installation with slack 12.2


maybe this is an assumption but, if I downloaded a tar.gz file, extracted it, I have to run the installation after that right?

Well I have a new install folder on my desktop after extracting wicd-1.5.9


so then I ran the command line:

Quote:
root@blahblah:~/Desktop/install# ./run-doint.sh
-bash: ./run-doint.sh: No such file or directory
root@blahblah:~/Desktop/install#


because there is a "doinst.sh" execution file inside my install folder.

Do I need to do this? Did I do it correctly? Or, am I not understanding this program right?

Your expertise will be greatly appreciated

Last edited by trnz$mr; 02-19-2009 at 01:07 AM. Reason: clarification
 
Old 02-19-2009, 01:14 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
What is the name of the file script that you are running? Make sure you spell it correctly and matches what is there in the directory. Also you need to cd to the directory that contains the file that you want to run.
 
Old 02-19-2009, 01:28 AM   #3
trnz$mr
Member
 
Registered: Oct 2008
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
What is the name of the file script that you are running?
I'm running this script from wcid
Quote:
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}

# Keep same perms on rc.wicd.new:
if [ -e etc/rc.d/rc.wicd ]; then
cp -a etc/rc.d/rc.wicd etc/rc.d/rc.wicd.new.incoming
cat etc/rc.d/rc.wicd.new > etc/rc.d/rc.wicd.new.incoming
mv etc/rc.d/rc.wicd.new.incoming etc/rc.d/rc.wicd.new
else
chmod 0755 etc/rc.d/rc.wicd.new
fi

# Reload messagebus service
if [ -x etc/rc.d/rc.messagebus ]; then
chroot . /etc/rc.d/rc.messagebus reload
fi

# Update desktop menu
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

# Update icon cache if one exists
if [ -r usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -t -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

config etc/rc.d/rc.wicd.new
config etc/wicd/manager-settings.conf.new

# There's no reason for a user to edit rc.wicd, so overwrite it with the latest version:
if [ -r etc/rc.d/rc.wicd.new ]; then
mv etc/rc.d/rc.wicd.new etc/rc.d/rc.wicd
fi

rm -f usr/lib/python2.5/site-packages/wicd/*.pyc 2>/dev/null
the script is called "doinst.sh" inside my install folder on my desktop. I can run it using "kdesu kwrite" but I think it's only allowing me to view it. I don't know if it's actually running it. ???
Quote:
Make sure you spell it correctly and matches what is there in the directory. Also you need to cd to the directory that contains the file that you want to run.
Ya, I made sure I spelled it correctly. But why does it only work using "kdesu kwrite"? and not just ./run-doinst.sh
Quote:
root@blahblah:~/Desktop/install# kdesu kwrite ./run doinst.sh
 
Old 02-19-2009, 01:32 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Kwrite is a text editor. It will open the file. If your file is called doint.sh then first make sure it has execute permissions. If not "chmod +x doint.sh" will make it executable.
Then just run it like ./doint.sh.
 
Old 02-19-2009, 01:38 AM   #5
trnz$mr
Member
 
Registered: Oct 2008
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
If not "chmod +x doint.sh" will make it executable.
Then just run it like ./doint.sh.
thanks for the codes. I think it finally worked.
 
Old 02-19-2009, 02:43 AM   #6
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
Quote:
Originally Posted by trnz$mr View Post
thanks for the codes. I think it finally worked.
If you want to avoid this sort problem in the future, look up Linux/Unix file permissions. There's plenty of easy guides, and you'll learn a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack up and running, but......... BobNutfield Slackware 7 03-10-2006 09:10 PM
Frozen-Bubble(from slack 8.2) Not Running in slack 9 bongski55 Slackware 8 01-02-2006 05:10 PM
Got Slack up and running -- now for configuring I need help vharishankar Slackware 51 02-18-2005 11:31 AM
Getting slack up and running - a few troubles. theMonkeY Slackware 6 09-04-2004 02:09 PM
cd rom error on installation media (With both slack 9,1 and slack 10) busbarn Slackware - Installation 6 07-15-2004 04:03 PM


All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration