General :: RPM + Rpm Installation (not Create Directory According To SPEC)?
Apr 17, 2011
I build simple spec file and build rpmI transfer the new rpm to other Linux machine in order to install the new rpmaccording to the spec file the new rpm -> test.sh-6.2-2.i386.rpm should create the /tmp/MY_RPM_TESTS directory , but this rpm not create the MY_RPM_TESTS and sub directoriesplease advice why , what I need to fix in the spec file? RPM installation:
[root@linux1 rpm -Uvh /root/rpmbuild/RPMS/i386/test.sh-6.2-2.i386.rpm
Preparing... ########################################### [100%]
This is preinstall script
[code]....
View 1 Replies
ADVERTISEMENT
Jun 10, 2010
I'm trying to debug a program that I crosscompiled on a arm9. The crosscompiler uses . spec files to create RPM packages for the target system. The program compiles and runs correctly except when i run the program with gdb and then type list I get this message: Code: 1 main.c: No such file or directory. in main.c I made sure I compiled the program with CFLAGS=-g by putting this in the .spec file. when the application crosscompiles (I believe) it shows it compiled succesfully with the -g flags: Code: checking whether gcc accepts -g... (cached) yes
[Code]...
View 2 Replies
View Related
Jun 16, 2010
I am a student studying computer science course.
Well, I am facing problem when doing lab questions.
I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).
I am required to use the /usr/local directory.
In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".
Look at my screenshot at [url].
View 9 Replies
View Related
May 26, 2011
I need to create a directory named just like his parent.
Example:
I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.
View 8 Replies
View Related
Jun 13, 2011
I have had for a test installed Feodora but was so silly checking the box for encryption the HD. Now I tested all for removing Feodora (no data anymore on the disc) but even the test unlocking this from my ubuntu system failed with the following error:Error unlocking device: cryptsetup exited with exit code 251: Command failed: Failed to setup dm-crypt key mapping.Check kernel for support for the aes-xts-plain64 cipher spec and verify that /dev/sdb2 contains at least 508 sectorsI installed some encryption packages in the meantime - but non was helpful.Would some kind person - who understands this better than I - please provide the detailed steps needed to mount and unlock the encrypted Feodora installed hard disc. Maybe one of you know which packege I have to install.
View 2 Replies
View Related
Jan 28, 2010
iam new to linux. wanted to know-->how to create a shared directory in lunix which should be accessible from windows
View 4 Replies
View Related
May 2, 2010
In Elastix, I get to amportal.conf via the /etc/ director. The file tells you:
[Code]...
It appears that AMPADMINLOGO=logo.png is calling out to something that is not there. I can't even find AMP directory. See below. Do I need to create a directory? This is the result of an ls -F at my /etc/ dir:
[Code]...
View 1 Replies
View Related
Feb 23, 2011
is it possible to write ksh script in the spec file? the target is after I perform rpm -i my_rpm.rpm according to the spec file , ksh script will do some installation & configuration for example run other script and edit some files
View 5 Replies
View Related
Jun 18, 2011
I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously.
I would like to create another user account, which would be able to access this server using SSH too, but only to a certain directory, for example /var/www/example.com/
For example, imagine this user has a HUGE error.log file (500 MB) located in /var/www/example.com/logs/error.log
When accessing this file using FTP, this user needs to download 500 MB to view the last lines of the log, but I'd like him to be able to execute something like this:
Therefore I need him to be able to access the server using SSH, but I don't want to grant him access to all server areas.
View 2 Replies
View Related
Sep 14, 2011
There are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 2 Replies
View Related
Nov 19, 2010
I am trying to clean my computer. Basically I try to order some movies to put all of them in directories. I started by hand but I am loosing time I guess. I want to do something like:
mv *.avi /nonexisting_directory/
nonexisting_directory being the name of the file without .avi, changing for each file. How can I write in command lineor in script?
View 10 Replies
View Related
Nov 12, 2010
How to create /.bashrc in my home directory? do i make a folder naming it /.bashrc or i make its as a file?
View 7 Replies
View Related
Dec 6, 2010
i need to create script to make directory with the current date example : the directory name is " 060122010,1100" or near to that format
View 3 Replies
View Related
Apr 21, 2011
I'm trying to write a script which will take mysqldump from a server and put it in a directory with today's date. Here's the script i've written so far:
Code:
#!/bin/sh
BACKUP=/data/backup/sql2/new_backup/daily
cd $BACKUP
mkdir `date '+%m%d%y'`
[Code]....
I want to put the mysql dump in the today's directory. How can i declare this?
View 3 Replies
View Related
Oct 21, 2010
Can anyone give me a example to create a acl using username from my active directory.
i have around 3000 users.
View 1 Replies
View Related
Mar 11, 2010
i am a oracle DBAI want to crete a link for a directory in production serverto remote host.
View 6 Replies
View Related
Jan 27, 2010
There are two directories A and B and a file F which is located in B. The working directory is B.How can you create a symbolic link in A pointing to F in B without changing the directory?
View 8 Replies
View Related
Apr 18, 2011
Trying to make sense of this Linux stuff, by trying to install Fedora 14. First impressions are it?s a parallel universe populated by those who hark back to the era of Windows 3.1 / DOS, and earlier, where command line instructions and messing around with .ini files was all the rage. Which might all be a great little hobby to go back to, being more 'at one, and intimate' with my machine and learning a new skill to take some pride in, but all it means so far is my patience is being really tested by needing to learn it all from scratch!
The installation guides seem to suggest that if your graphics card is not good enough then the installation will default to the text based one. Which is what happened in my case. I can get to the login prompt after the installation, but that's the point where it gets really frustrating in having my machine think it?s a mid 1980s Commodore 64 or something!! Never mind PEEK and POKE, I just want to THUMP or KICK it.
I read somewhere I should start X Start to start the GUI. Nope, x start or xstart doesn't do anything. I then read that only works if I had installed X Windows. Can't find where or how I install X Windows though! I then read, as I say, things default to purely text if your graphics card is not good enough, but then I can't find anything about what the minimum spec is. Seems odd that a card that can cope with Windows can't work with a system as basic as linux/fedora with its frustrating command line-intensive way of working.
- what the minimum graphics card spec is to enable GUI?
- how to install this X Windows thing?
View 14 Replies
View Related
Aug 9, 2009
I am running both Ubuntu and XP and have a local server for my computer on both systems. Both partitions have a www directory that is accessed when I type localhost into my browser.
I want to be able to work on the project in both systems and have the changes I make show in both. So my questions is how can I make "localhost" point to the windows www instead of the /var/www one when I start up the server?
View 2 Replies
View Related
Oct 29, 2010
Are there any other archiving tools than tar that preserve Linux file permissions and user/group flags? I want to create archives of a directory tree on my ubuntu box. The directory trees are large, a first run with tar cvpzf archive.tgz /home/foo/bar yielded a 5GB archive. I also want to keep all permissions and other flags and special files.I'm fine with a 5GB archive, however to look inside that archive -- since it is a compressed tar archive -- the whole 5GB have to be decompressed first! (Or so it appears when opening it with the archive viewer -- I'm happy to be corrected.)So I need a way to "backup" a directory (tree) while preserving full filesystem attributes and right and creating an archive with an "index" that hasn't to be decompressed for browsing its contents. An archive is either a single file, or a (small) set of files that carries full and complete information within this file/s. That is, it can live on any filesystem (size permitting), it can be burnt onto a DVD, you can split it (after which the point of this question is really lost - but still), ...
View 3 Replies
View Related
Nov 8, 2010
I am getting the databases from mysql and my database name is username_something.
I am getting the username and then puting the respective backups in corresponding folders like
tar bala bla /backups/sql/username/username_something.tar.sql.gz
The problem is system worrks if i have the folder username already there but for new databases if get the error like unknown file path.
How can i do that if username folder is not there it should be created
View 2 Replies
View Related
Jun 27, 2011
Create the following directories: parent/child
Navigate to child and create a file named child (this is an executable file in my case, not sure if that makes a difference). I need to create two "link to executable" links in the parent.
I had assumed that this would work:
ln -sf ./child ../child1
ln -sf ./child ../child2
But that creates a "link to folder" (./child) in the parent directory. If I change it to:
ln -sf -t.. ./child child1
ln -sf -t.. ./child child2
I get an error, "ln: '../child': cannot overwrite directory".
If I do it from the parent directory (which I cannot do, this is part of a Makefile recipe):
ln -sf ./child/child ./child1
ln -sf ./child/child ./child2
It works. Note that I cannot alter the names of any directories or files. How do I create the links when the current directory is the child?
View 1 Replies
View Related
Jan 18, 2010
I set security context for a folder as 702 to enable other users to create and delete folder contents.But whenever other users try to create a folder,its says "Permission denied".
View 11 Replies
View Related
Aug 5, 2011
i just uppgraded to Centos 6. Linux 2.6.32-71.29.1.el6.i686 on i686. now im getting some troubble whit this file: wget [URL]... i create a downloads directory and download the source file and--
mkdir $HOME/downloads
cd $HOME/downloads
But when i try to build courier-authlib whit this comand: #sudo rpmbuild -ta courier-authlib-0.63.0.tar.bz2. I get this:
[code]...
what can be the reason?
View 5 Replies
View Related
May 24, 2010
i just installed RHEL 5, when iam trying to create a directory or file it is not creating ...
View 7 Replies
View Related
Jan 2, 2010
here i want to ask u a simple do quations like
1.how to create repository of Server directory which contains rpm files
now i will tell how to create repo and problem is in it
at first i had created one directory in filesystem /data
#mkdir /data
now i mounted the ftp server to /mnt
#mount 192.168.1.254:/var/ftp/pub/ /mnt
and copied directory of Server
#cp -r /mnt/Server /data
# createrepo -v /root/Server
# vim /etc/yum.repos.d/rhel-debuginfo.repo
[Code]....
2.how to install total packages by using repository through yum command what are the steps to update and remove the packages
View 1 Replies
View Related
Aug 28, 2010
How to create the user without creating home directory?
View 7 Replies
View Related
Jun 21, 2011
I get the following error whenever I launch bash:
Code:
mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory
bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory
It seems like it's probably from this part of .bashrc:
[Code]...
What does this code do, why, and what's causing it to go wrong?
View 7 Replies
View Related
Aug 1, 2010
I am trying to create hard links within a file system to a directory, but unable to do that. is there any limitation to create hard links to directories within file system ?
View 4 Replies
View Related
Oct 19, 2010
does first line create file in tmp directory with dsuser.exists.* ?or we are assigning the path of existing file in this directory?
View 2 Replies
View Related