October 23, 2014, 02:59:39 AM

News : LinuxSolved.com Linux Help Community Forum..

Recent Posts

Pages: 1 ... 7 8 [9] 10
Ya, that was indeed misleading, I had plenty of gigs space available on the server and still that error.
Its resolved now.
Miscellaneous / Re: How to extract a single directory from tar archive using command line
« Last post by dalek on December 07, 2012, 07:05:25 AM »
I think it need to be like this:

Code: [Select]
tar -zxvf archive.tar mydirectorytoextract
You have the order correct but I think you may need the -z option.  Watch that -f tho.  When you use it, it has to be right before the file name, either as a separate option or on the end like you have them.  I ran into that a few times myself.  Also, I read somewhere that you have to put the path to the file you want to extract too.  If I backup /home and then want to extract /home/dale/Desktop then it would be -f /home/dale/Desktop for tar to find the file.  If -z doesn't help, try checking the path.  Maybe it needs that.

Hope that helps.

 :)    :)
Ah, that will do it to.  That error is sort of misleading isn't it?   ???

 :)    :)
Linux Servers Support / Re: iptables question.
« Last post by keen_prat on December 07, 2012, 06:53:30 AM »
As far as I know, you don't need to take all that trouble, in squid.conf  you can set it to listen to local IP only and thats it.
Linux Servers Support / Re: ftp between computers
« Last post by keen_prat on December 07, 2012, 06:52:23 AM »
I feel you can use rsync to synchronize both computer. It uses ssh , so on both computer ssh should be running, its really easy to use rsync and its very powerful.

Its used as :
rsync -r <source> <destination>

rsync -r filename username@

So it will copy your "filename" file to remote computer's /remote/directory and next if you do rsync, it will only update changes so it not copy all content and should be very fast. This technique is used in servers to make backup and its actually real synchronization.
Thanks dalek but I think I found the problem, it was limit imposed by hosting provider in some form of inodes..
Miscellaneous / How to extract a single directory from tar archive using command line
« Last post by keen_prat on December 07, 2012, 06:44:28 AM »

I am dealing with some large files and I need to extract only particular directly using command line and I am doing it like following:

First I finding all files are there in the tar file ..
tar -tf archive.tar

then when I confirmed its there, I gave command

tar -xvf archive.tar mydirectorytoextract

But it is giving error that its not there in archive, I have used similar technique to extract file but directory is not extracting.. help please..
There is a difference between disk quotas and having disk space.  I have never used quotas before but from what I have read, it limits space based on a specific user or perhaps software.  Somewhere, there is a config file that tells how much space a user can use and you need to increase that.  Have a look at these two links:



It appears there is more than one software package that does this.  They also seem to have different commands.  You may have to find out what software you have installed to manage this before you can find out what commands to use. 

Hope this helps tho. 

 :)    :)
I am using virtualmin over webmin and today I suddenly saw this error.
Code: [Select]
Failed to open /etc/webmin/webmin/oscache for writing : Disk quota exceeded
I just can't do anything, everywhere this error is coming but form ssh I can see that there is lots of space available on my server. Please help me what to do here ..
Linux Servers Support / iptables question.
« Last post by nondescriptcitizens on December 04, 2012, 02:48:42 AM »
I am setting up a new squid daemon to run on my server.  I want to make sure that everyone inside my network can access squid but I want to make sure everyone on the internet is blocked.

eth0 is connected to my internal LAN via:
eth1 is connected to the internet via:
Squid listens on port 3124

So far I have the following script for my iptables.

iptables -F
iptables -t nat -F
iptables -X
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -A INPUT -p tcp --dport 3124 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Is this correct? Will this allow all my LAN users access to squid while blocking outward attempts from the net to my server?
Thanks in advance!

Pages: 1 ... 7 8 [9] 10