Fedora :: Must Change Directory Before Running Scripts?
Jan 14, 2010
ive started writing scripts to launch some of my programs, but am having mixed results. i am saving them all in the /bin folder (is this typical?). for about half of the scripts they run fine from the terminal home directoy, however for the other half i must " cd /bin" before i can run "sh script". im not quite sure why this is happening.
I just upgraded to fedora core 11. I need to change the permission of the html folder. The owner is currently set to root. Since there is no longer a root user (I just found out) it will not let my user account change the permissions in that directory from. How do you change directory permissions in fedora 11?
I am trying to install VMware on my machine. I have downloaded VMware and I am now trying to configure it. After accepting the EULA, the program states;
Code:
None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] y Then;
Code:
Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] The path "/usr/src/linux/include" is not an existing directory. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/bin/gcc The path "/usr/bin/gcc" is not an existing directory. What is the location of the directory of C header files that match your running kernel?[/usr/src/linux/include] How do i find where the C header files are?
How do I permission a folder?I have a group called serveradmin..I want to add and give the group server admin write permissions to folder /logs.I know how to permission a file.. but changing the folder permissions isn't coming to me.I must add that I don't want to remove any of the current permission on the folder/directory.
So I have created a Bash script with the intent of the program to change the names of the files in a folder's subdirectory.The code recognises the individual subdirectories, then is able to enter into one and list the files individually, but when it tries to change their information it says;' cannot stat ' : ' No such file or directory 'As if it is looking in the directory that contains the Bash script, not its subdirectory.It is essentially saying, I see a file here called FILE but sorry, I can't change FILE because FILE doesn't exist. kweh?Is this something outside the capabilities of Bash? Am I asking too much of it? Can Bash only manipulate files that are in the same folder as the script?
I was installing yum from the server folder. first i copied the server folder in a folder which was at root then i change the current directory to server and then create a repo by using following command
Server]# rpm ivh createrepo then tab to get the correct name then ]# createrepo . ]#cd /etc/yum.repos.d/ ]# cp -apr rhel_debug_info.repo yum.repo ]# vi yum.repo
[Code]...
how can i completely install the yum so that i can install my necessary packages
When I booted up this morning the contents of my Home directory are all showing up on my desktop, and there is no single Home folder. How did this change, and how can I change it back so that the Home folder is on my Desktop with the contents inside of *it*?
When I try to login as a user, I get the dreaded "500 OOPS: cannot change directory:". Almost every posting I can find related to this problem was due to SELinux being enabled. My SELinux is operating in permissive mode. So why can't it open the home directory when I log in as the tarheelnk user?
I've known some GNU/Linux distros, like Fedora, Ubuntu, SUSE and etc for a long time, but never installed/used one.
I'm having a problem almost every time i try to install something that requires the use of the Terminal.
I'll give you the example of LibreOffice. I downloaded the LibreOffice Linux version from their official website and saved it in the "Download" directory. I extracted the files and I got a "en-US" folder, I didn't know what to do next, so I googled and found this and others sites (which had basically the same steps): [url] I'm stuck at the first step "Change into the ~/Downloads directory.". So how do I do this in the Terminal?
I have a Dell laptop which originally was strictly a Windows computer; with a LiveCD of PCLinuxOS, I partitioned the drive to make room for dual boot with Linux. Unfortunately, I gave the Root directory too much space, and Home not enough. Is it possible to move anything over to Root to give Home more room? I would get rid of Windows entirely, but for a couple of programs that have no Linux equivalent (at least that I've discovered so far).
My machine telling me that my home directory is running out space,It is said 95% in usage.Try to delete the big unwanted files in users (just two user in my machine),df ing, but the home usage status keep on 95%.
I'm trying to get Apache to run in a user's home directory. I changed the conf file so that Apache runs under the user and group "kiosk" and changed the DocumentRoot and Directory from the default to "/home/kiosk". Then I set Apache to start at boot (chkconfig --level 235 httpd on) and rebooted. When I checked, httpd is running as kiosk like it should (ps aux | grep httpd). However, when I try wget localhost, I get a 403 response back. If as root I call "httpd -k stop" and then "httpd -k start", then everything works exactly as it should (curiously, if I try using "-k restart", it still doesn't work). After this, httpd still shows as running as kiosk and if I check before calling start, it shows no httpd processes running as expected.
This only happens when I use httpd to stop and then start the web server. If I try to restart using apachectl I still get a 403 error. As an interesting aside, after I've used httpd, if I try using "apachectl restart" I get a "(13)Permission denied: Error retrieving pid file run/httpd.pid" error. This is all on a freshly installed CentOS 5.5 server. Why I'm seeing this very different behaviour from what I thought were just equivalent ways of starting Apache? And then what I could do to get it to start up and run properly on boot? One last item to mention is this isn't a permissions problem. I set the permissions to 777 to both the home and kiosk directories (and 666 to the web files) just to be sure that's not the problem.
Spotify released a native linux client about a year ago. It would be awesome if I could use it on my linux desktop at work. Unfortunately, these computers are managed by a central server and so I can't install anything without system admin rights. I was wondering if there was a binary available that I could run from my home directory? The operating system we use is openSUSE 11.3 64-bit.
I just installed the 11.4 version after using numerous previous versions. During this install the /usr directory was placed in a separate partition. How would I go about placing it in the partition with all the other running directories?
i used to use synaptic to install packages which seems to be installed somewhere like /usr/bin or /usr/local/bin, so my question is can i change the default or pre-determined installation directory, coz my partition / is kind of short of space.
In the old days of M$-DOS, there was the NCD (Norton Change Directory) utility. Anything of the sort in Linux?Explanatory note: you typed out the name of the directory you wanted to go to, that is, last element of the dir path.And you were, ipso facto, in that dir. If that was the only one by that name, good. When not, and if that wasn't the intended dir, you typed the same command again and you were in a second dir of that name. If this was the intended dir, good. And so on. It simply maintained a data base with the whole tree, and updated it when invoked from a newly created dir o by means of an option, NCD/R.
I have 3 images made by clonezilla now I want to restore 1 of them, but when I try to use clonezilla to restore, there's no option to restore image. I can see the images in home directory and file is owned by root in my home directory. I'm trying to transfer image to usb hdd.
Did I place image in wrong directory or is it permissions problem.
I can change to a nother directory in home folder using cd command.I have several partitions in my hard drive.But i want to know ho to cheng to a directory in nother partition or flash drive using command line.how can i do that
second day ever using command line so bare with me. I setup a cloud server through rackspace hosting..I installed vsFTPd and made a user and password and set the home directory to /var/www for this user When I try connecting via FileZilla, I get this error
1. I have two domains domain1.com and domain2.com on my centos server.
2. In a file in domain1.com I am writing the php function
chdir('/var/www/vhosts/domain2.com/httpdocs'); but it is not working at the same time if I am trying to change the directory to one of the subdirectory in domain1.com than it is working means chdir('/var/www/vhosts/domain1.com/httpdocs/css'); is working.
3. The problem is I cant able to change the directory from domain1.com to domain2.com. /var/www/vhosts/domain1.com/httpdocs => /var/www/vhosts/domain2.com/httpdocs is not working
Is it some permission issue or anything else ? Is it something related to chroot jail or what?
I setup a download directory on my server, and put a test video in it. I tried to run the video in my browser and it only runs part of the video then stops. If I download it and run it on my desktop with mplayer it run the full video. I am not sure why? Here is a link to the video. [URL]. Before I setup more videos I wanted to see if there is an answer to this problem.
I have a server with Fedora 13 with which I would like to get NFS working. I have looked up multiple howto's and tutorials, but I'm having a problem not addressed by any of them.Official how-to, another how-to, and another how-to.I have verified that nfs-utils, nfs-utils-lib, portmap, and system-config-nfs are installed and running. I have verified that I have, in fact, shared the directory that I want to share, and that the proper permissions are set.
I had to go through some gyrations to get the Belkin wireless N router to allow my server to have a static IP. However, I can ping the server from the nfs client (a toshiba satellite running mint 8), and vice versa. I have (for now) disabled firewalls on both computers. I think I have disabled SELinux on Fedora 13 (for now).When I attempt to connect to the server from the client, the output looks like this:Quote:
aragorn ~ # mount -v 192.168.2.101:/test /home/kelev/test/ mount: no type was given - I'll assume nfs because of the colon mount.nfs: timeout set for Sat Dec 18 12:21:09 2010