How can I delete Directories which are smaller than, say, 1000 KB?
I already have a file list from the command:
du -sk * | sort -n > sort.txt
but I don't know how to proceed.
I want to add an alias file to my project folder to quickly open and edit files in it with a simple shell command.
To make it more portable, I would like to use only relative paths.
I want something like this:
### .profile
source /my/project/folder/aliases.bash
and
### aliases.bash
editprojectfiles="edit [/my/project/folder/]afile.txt"
The…
I would like to create a couple of short cuts on my iMac which ssh on to my dev box and on to my prod box. I would like my dev connection to use the settings something similar to home-brew (green text black background) and my prod connection to use red text black background) - How can this be configured so that this is possible. Would I need…
I finally have the swapspace project installed and running (via init.d). The purpose is to have a dynamically re-sizing swap partition. I'm clueless however on how to use it. It has good documentation but just does not go into that last step. How to I configure a swap partition using swapspace? The process is probably the same for any…
I have a 4 disk RAID5 array, one of which is starting to fail according to smartd. However, since I'm using less than half the space on /dev/md0, I'd like to rebuild the array without the failing disk.
The closest scenario I've been able to find online has been this post, however it contains bits that don't apply to me (LVM volumes) and…
I have installed and setup Bugzilla3 for my domain.
Everything is working properly except for the email functionality.
The server uses Postfix, and that works for my PHP application, and command line.
In Bugzilla, I have tried setting the mail_delivery_method to 'test', and nothing shows up in data/mailer.testfile, it is completely…
I am trying to edit the file java.security but it opens as read only. I am running as root user but I think this is happening because the java process is currently using the file.
How can I temporarily close the process and edit the file and then start java up again? I am using Fedora.
The setup:
2 or more nginx machines
each machine has the same virtual hosts
traffic is load balanced via DNS to each machine
I need to figure out what are the best tools to use to get some traffic stats, mostly interested in amount of hits and total traffic in gigabytes. Obviously, the log information will come from nginx,…
I have SSD and HDD. Some directories like /var /srv /tmp should be on hdd while /boot /usr /lib on ssd. But do I have to create separate partition for every single directory? i want to have 2 or so partitions. one for each disk and distribute directories as needed. is it possible? and how?
i've heard about symlinks, mount…
I have a problem with my computer. I installed OpenSus on my external, and I still have Windows on my HDD. OpenSus took the Grub file and placed it on my external, so now I have to open OpenSus to open Windows. I never got a Windows CD when I bought my computer ( I live in South Africa :) ).... I want to install Ubuntu…
I want to connect to a server via ssh and log in (remotely) a user in X11 (gdm).
A little context:
I need to install a wine application in 30 computers, but wine require X11, there is nobody loged there, so wine does not work properly. I want to remotely login in display=:0.0 a user so this user receive the window…
Possible Duplicate:
How should I structure my users/groups/permissions for a web server?
I've seen a few answers to this on the internet, but I'm looking for a definitive answer. I have a new Ubuntu 12.04 LTS server with LAMP. Apache is set to run as "www-data" and /var/www is set as having "root" as the…
I need some software that looks after custom directories across the whole OS (i.e. /etc) and alerting me if someone edit something file inside. Additionally, this tool must automatically commit and push changes into backup server, so I can easily determine when specific change in specific file was made. I'm…
I have some ISOs that need to be available across a WAN, so we are using an http server to host them (allows for non-authenticated, read-only access (beyond being on the VPN) to the data store).
The server the ISOs reside on is running CentOS 4, and Apache 2.0.58.
Is there a way around the 2GB filesize…
If I check an NFS share on a machine and ls I get the folders.
If I got to the NFS host and add a new directory to /etc/exports for the client and do exportfs -a what do I run on the client to refresh the directories?
Example (pseudoish):
nfsNode01:
echo "/share clientNode01 >> /etc/exports";…
7
00:00:30,008 --> 00:00:30,066
by line
8
00:00:31,038 --> 00:00:34,050
or later in the nineteen seventies it was usually a
9
00:00:34,005 --> 00:00:38,634^M
video consul but the council was not capable of displaying arbitrate graphics
10
The above lines is in a file named 2.txt. I wanna the…
Hi there.
I've just taken over administration of a fairly complex firewall ruleset for a firewall box running Fedora Core 12, and there's one thing about it that is puzzling me.
When I run nmap on the gateway from outside the network, I see all the expected services, but also sunrpc on port 111. The…
I have an Ubuntu virtual machine running in VirtualBox 2.2.4, and I created it on an 8gb virtual disk which is too small.
So, I am trying to increase the size of the disk. So far, I have done this:
Created a new larger virtual disk
Added the 2nd disk to the machine
Used CloneZilla to clone the…
I got a Debian server with a public and a private IP in a DMZ.
I need to be able to connect to it through SSH on our private side, and then block all access to the public address. Both /etc/hosts.deny and sshd_config seems to only let one block incoming IP addresses. What I really want is to…