General :: Where To Store Tars And Source Directories
Jun 8, 2011
organizing where I put source directories:
1) Is there any convention or best practice as to where to store source tars for packages that you have to build yourself, as well as for where to store the source directories that are extracted (the ones containing the generated Makefile)? I'm getting to a point where there are tars and source directories all over my home directory and elsewhere, and it's becoming disorganized very quickly.
2) Are the entire source directories needed to be kept around, or could simply the Makefile be enough to perform a 'make uninstall' if necessary?
3) Is there any problem with moving around the source folders after a package has been built and installed? Meaning if I install a package, move the source directory, then do a 'make uninstall' from that new location, would it successfully remove the package?
4) Now that I think about it is there any reason to keep around the tars after installing a package? As long as you have the source directory, what point would there be?
View 3 Replies
ADVERTISEMENT
Dec 6, 2010
If i wanted to tar a directory into individual directories (but only one level) how would i go about it? example would be
MainDirectory
|---dirA
|---dirB
|---dirc
|---dir....
would produce
dirA.tar
dirB.tar
dirC.tar etc
View 3 Replies
View Related
Mar 23, 2011
I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.
for example in a directory(anish). 5 different types files
1- directory
2- .txt files
2- .sh files
like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!
View 7 Replies
View Related
Jun 15, 2011
we have purchased the Dell PowerVault NF 500 NAS Storage Box with Window Storage server 2003 is Installed.we have LDAP server for authentication the user in network for accessing network resources.All ubuntu users on client side use ubuntu(LDAP server )for user authentication.when a user logon on client side machine his home directory is created on client machine .
but we want to use the NAS storage device to store the home directories of user.we want to implement that ,whenever a user logon his home directory is created on powerValut NF 500 storage device so that all user data is stored centrally for taking the backup .we want to mount NAS storage device so that user uses when they login and create user profile.
View 1 Replies
View Related
Dec 8, 2009
I have two students whose windows laptops are riddled with malware and not working properly. They want me to help them install Linux (which we use in school), but they are concerned about their iTunes.
Having avoided iPods as "defective by design", I know nothing about iTunes whatsoever. However I remember reading about DRM locking and such problems that have me concerned that I won't be able to do it.
Where does iTunes store its stuff?
Can I copy its data store to an external drive, and then into a linux home?
Then will it work on wine, or can another manager (rhythmbox etc) access the itunes data?
Alternatively, if I partition the drive and install linux, can rythmbox/wine/something access itunes data on the win partition?
Supposing they are buying music through iTunes, what will happen to that account?
Finally, one of them has an iphone. Does that work with linux?
Ironic that an apple application is blocking migration away from windows.
View 9 Replies
View Related
Apr 27, 2010
I am wondering if there is a way to use src2pkg on source directories I have checked out from git? I can't see any such option in the manpage. At the moment it works if I tar it up, but I can't find a way to just use the directory directly.
View 1 Replies
View Related
Feb 28, 2010
all my compressed files have gedit icons, and when I right-click them, instead of having the "unzip here" option, it just says "open with gedit". Why would this be the case??? How do I fix it? it's really inconvenient to have to open up my terminal and unzip everything that I want uncompressed, when I used to be able to just right click it and say "extract here".
View 2 Replies
View Related
Dec 19, 2009
i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.
View 14 Replies
View Related
May 15, 2011
I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.
I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.
I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?
View 2 Replies
View Related
Sep 6, 2011
I'm developing a server application for ubuntu server, clients will connect to in through socket connection. It's in beta stage and under heavy development. At the moment lots of people are using it and it is updated almost every day. So I seed to seriously consider security issues and in the same time don't restrict myself too much. Now I have two questions:
Where is the appropriate place to store its files? Application consists of executable, some config files and startup script. But I don't want to spread it accross the filesystem just store in single folder for convenience since app is under heavy development. My guess would be to create new dir under /var. Right now I store it in my home folder.
Do I need to create separate user for it? I start it up using init.d script via sudo -u me. I want to restrict its access to system for security purposes but in the same time I want to be able to update it through FTP and not run into access issues (user that uploads it is different from user that runs it, and it sometimes need write access to some files). How to do that?
View 1 Replies
View Related
Sep 20, 2010
I'm using a command in Linux which generates an eight character random password. the problem is when i execute the command, the generated password have shown and isn't store anywhere i can use.How can I store this password into a file or pipe the command to save the password into desired file directly?
[code]...
View 5 Replies
View Related
Apr 13, 2011
I can't store LD_LIBRARY_PATH in /etc/profile. After restart the variable is empty. All OK with any other variable, for example INFORMIXDIR, but not with LD_LIBRARY_PATH. If I use EXPORT command in the console all OK. I'm using Ubuntu 10.04. What's wrong?
View 13 Replies
View Related
Jun 24, 2010
I added a song to my basket and when I click Checkout....it just stays on this message "Connecting you to the Ubuntu One Music Store..." and does nothing.
How can I fix this so I can buy music?
View 2 Replies
View Related
Jul 19, 2011
I want to store my svn password in the gnome-keyring so it is encrypted and 'secure'. I made the necessary changes to ~/.subversion/config, but even after running a few svn commands, I do not see an entry for SVN in the keyring.
What else do I need to do to get SVN using gnome-keyring? I will also be using this with git-svn.
View 2 Replies
View Related
Apr 13, 2010
I know it is possible to have the Gnome nm-applet store keys under KDE (Fedora's KDE flavor does it by default) however I am at a loss as to how to make it do this on Ubuntu. It is a pain having to look up my wifi key(s) every time I boot my system up. I have the gnome keyring installed but this did not resolve the issue.
View 1 Replies
View Related
Mar 3, 2010
I tried using the tail command in my shell script and storing that value in a variable a but an error keeps coming. Is there any other way to store the output of a command into a variable. Cannot Read text from text file and store it in a variable using shell script. The thing is I need a number from the file new.txt and use that number in my script
#!/bin/bash
a = `tail -1 new.txt|head -n 1`
echo $a
View 2 Replies
View Related
Feb 16, 2011
I have following contents
I want to grep "#2" and want the output as
How to using shell script?
View 6 Replies
View Related
Apr 19, 2011
I want to store the result of wc -l as a variable so I can use it later in my script...so far unsuccessfully.
I have tried this:
set `echo awk '{ print $1, $6}' | wc -l` | echo $1
but it is far from working.
View 11 Replies
View Related
Mar 5, 2010
I need to store the output of bitset() in a variable ... is it possible in c++?
View 1 Replies
View Related
Dec 31, 2010
I have tried to 'makepkg -s' easy-e17 in a few different places, but to no avail. I get the error:
Code:
ERROR: You do not have write permission to store packages in /bin/easy-e17.
Aborting...
Though, I also get this error for any other directory I try in. When trying with 'sudo' I am told that it is a "bad idea." I have never used makepkg before, so whatever is wrong might be obvious; I have never "fine-tined" my makepkg.conf before, either. Probably not relevant, but just in case: easy-e17 is a group of files from the Arch User Repository for installing Enlightenment (DR17). Perhaps there is something I need to install in order to make packages from the AUR? Or does that sound ridiculous? I wouldn't know.
View 3 Replies
View Related
Feb 20, 2011
I'm trying to do a linux from scratch build (using the livecd) and am currently trying to compile and install gcc. However, this error keeps popping up: checking for correct version of gmp/mpfr/mpc libraries...no I've tried all the possible directories I can find for each one, but as the error doesn't specify which particular library it can't find it makes life pretty difficult =/ This is my current string:
[code]....
It took me long enough to find the .h files and I thought it was finally over with, but now this
View 2 Replies
View Related
Dec 7, 2010
I Acer aspire 3620 and would like to backup whole system. My laptop has a 40Gig hdd. Is there a way I can either create an image or copy(clone) to another computer just in case I need it. If it matters I have a spare 40 gig drive on the other computer. The reason for doing this is so that I can try a system restore and if anything goes wrong I want to be able to transfer back. Also if it is posible how could I put it back and be bootable.
View 14 Replies
View Related
Jan 5, 2010
Im trying to use a DBMS to store rpms for been reach by YUM, what I need to know is how to generate the repomd.xml and make it point to my dbms using href like [URL]...
View 1 Replies
View Related
Jun 10, 2010
I'm using CentOS 5.5 with smbclient 3.0.33-3.28-el5 (latest version in repo), and I can't overwrite files in my Samba store. I am not the admin for the Windows server that hosts the share, so there isn't anything I can do server side. But I do have write permission to the server. I know the server runs Windows XP or Server 2003; I don't know which. I can delete the file, and then copy the new version over, but I can't overwrite it. Using the cp command I'll get this error:
[jonescb@localhost ~]$ cp foo.txt /mnt/si_storage/foo.txt
cp: cannot create regular file `/mnt/si_storage/foo.txt': No such file or directory`
And if I edit a file on the server using vim, I can save it once, but if I save it again I get this: "/mnt/si_storage/foo.txt" E212: Can't open file for writing This is my /etc/fstab entry for the samba server: //192.168.1.2/SI_STORAGE /mnt/si_storage cifs username=myuser,password=mypass 0 0 I can overwrite files just fine on my XP machine. The CentOS box is the only one having problems.
View 1 Replies
View Related
Apr 6, 2011
I am using an internal toy svn server, and svn client seems to be configured to store passwords in gnome-keyring by default. How can I disable it or at least switch to kwallet?I am using Debian Testing.
View 2 Replies
View Related
Jun 15, 2011
I am trying to watch a command and try to log it into a file. I tried
watch -t -n 10 "(date '+TIME:%H:%M:%S'
; ps aux | grep "pattern" | wc -l)" >>
logfile
and am expecting a result like
TIME: 10:32:30 12
TIME: 10:32:40 18
TIME: 10:32:50 2
to be stored in logfile. However, when the logfile has unprintable characters in in. How do I get this kind of output from the command li
View 4 Replies
View Related
Apr 3, 2010
Is it possible to store Windows-based documents and data (e.g, Excel spreadsheets, Access databases) on a Linux server, and easy to do so & to retrieve from a Windows client?
View 3 Replies
View Related
Aug 20, 2010
In what files/dirs in the home dir does xfce store the user config data?
Or if you like.
What files do I need to restore from backup in order to restore my xfce desktop with all the different settings I made?
Edit: All user config files is usually stored somewhere in /home/$USER/. And since all the programs, kde, xfce and gnome stores their config there, this question is about what files belong to the xfce desktop.
This is my guess of what files belong to the xfce desktop:
.config/Thunar/
.config/xfce4/
.config/xfce4-session/
.config/user-dirs.dirs
[Code]....
View 1 Replies
View Related
Dec 4, 2010
I'm trying to create a backup script. For my second version, I want to make a GUI that will ask the user three things:
1. which folders should be excluded
2. where to store the backup
3. the user's email
I need to store this input, and later input the values into variables in my script. How do I go about doings this?
View 1 Replies
View Related
Jan 20, 2010
Is it possible to restrict users to their home directories and allow admins to have different home directories? Essentially I want users to have a folder in /var/www/html/$USER and admins to have either unrestricted access or have their root directory be ./ or /www or /etc. I have is set now so users have access to thier home direcotry but I need to upload web files as admin.
So far I have created:
chroot_list
user_list
[code]....
View 1 Replies
View Related