What I need to do is a program that given (as a command line argument) a directory with more directoreies inside, and 4 Pics inside of each dir, the program makes a thumbnail of the 4 files and glues them together (2 rows, 2 columns) and renames that image to the name of the directory.
I think it could be done with a combination of a program and shell scripting (I'm experienced in M$, but new to linux).
Some real examples would be great.
Thanx in advance
Is there a linux command, that works like "top" (like top does for monitoring processor utilization), but shows network activity of users and applications realtime?
If I create a new filesystem/directory off of / and I set the Linux permissions to 770 I expect the group to be able to read and write files in that directory. SELinux was preventing me from doing this until I changed the SELinux type on that directory to public_content_rw_t. If this is just a directory in which users in that group will share files is this an acceptable SELinux type or should I be using another one? Writing a custom policy seems like overkill for these purposes.
Thanks
I have two tomato routers. One is bridged wirelessly with the other.
I have a new server on the network. It's running Ubuntu Server 11.04.
They are all connected like this:
A - Linux PC
B - New Server
C - Mac Mini
D - Macbook
T1 - Tomato 1
T2 - Tomato 2
They are connected like so:
A -----+-T1 ==== wireless bridge ==== T2----- ADSL modem
| | C & D Connected wirelessly to T2
B -----+
A, C & D do not experience any issues.
I have an active SSH session to B from A and it's not experiencing any loss.
B, the new server occasionally cannot ping T2 and therefore cannot connect to the internet.
However, A can always contact B and B can ping A and B
When the network is lost, B can still ping T1, but not T2 yet at the same as B has lost connection to T2, A can still ping T2.
Any ideas on what this could be? there is nothing that gives any clues in any of the logs on either router or the linux server.
One thing that is interesting is that I set up a ping running between B and T2.
T2 has the IP address 192.68.1.1
Here is what I am seeing:
From 192.168.1.1 icmp_seq=26 Destination Host Unreachable
From 192.168.1.1 icmp_seq=27 Destination Host Unreachable
From 192.168.1.1 icmp_seq=28 Destination Host Unreachable
From 192.168.1.1 icmp_seq=29 Destination Host Unreachable
From 192.168.1.1 icmp_seq=30 Destination Host Unreachable
From 192.168.1.1 icmp_seq=31 Destination Host Unreachable
From 192.168.1.1 icmp_seq=33 Destination Host Unreachable
From 192.168.1.1 icmp_seq=34 Destination Host Unreachable
From 192.168.1.1 icmp_seq=35 Destination Host Unreachable
64 bytes from 192.168.1.1: icmp_req=36 ttl=63 time=3.40 ms
64 bytes from 192.168.1.1: icmp_req=37 ttl=63 time=5.70 ms
64 bytes from 192.168.1.1: icmp_req=38 ttl=63 time=2.25 ms
64 bytes from 192.168.1.1: icmp_req=39 ttl=63 time=2.18 ms
64 bytes from 192.168.1.1: icmp_req=40 ttl=63 time=3.12 ms
64 bytes from 192.168.1.1: icmp_req=41 ttl=63 time=2.15 ms
64 bytes from 192.168.1.1: icmp_req=42 ttl=63 time=1.97 ms
64 bytes from 192.168.1.1: icmp_req=43 ttl=63 time=
And it cycles to being reachable and not.
So I guess you could say the question is, why is the router responding that it cannot be reached?
I installed Ubuntu on a PowerBook G4 and it only works about 10% of the time. For this reason I decided to re-install OS X, but my machine won't boot from CD. It also won't boot Ubuntu the vast majority of the time, so I'm kind of screwed.
After a ton of tries, I finally got my machine to boot a Linux command line.
Is there anything I can do at this point to make my machine more runnable, just for the sake of installing OS X?
I installed Ubuntu on a PowerBook G4 and it only works about 10% of the time. For this reason I decided to re-install OS X, but my machine won't boot from CD. It also won't boot Ubuntu the vast majority of the time, so I'm kind of screwed.
After a ton of tries, I finally got my machine to boot a Linux command line.
Is there anything I can do at this point to make my machine more runnable, just for the sake of installing OS X?
Hello,
which is the best way to allow a new user that I just created on ubuntu linux 9.04 to execute a script that requires some sudo without allowing him to the sudoers?
The fact is that I want to give the user just the ability to execute that script, without letting him to do anything more.
Is there a simple way to do it?
I need to periodically give temporary and limited access to various directories on a CentOS linux server that has vsftp installed.
I've created a user using useradd [user_name] and given them a password using passwd [password].
I've created a directory in /var/ftp and then I bind this to the directory that I wish to limit access to.
What else do I need to specifically do to ensure that when this user logs into FTP, they only have access to this directory please?
I am trying to reset — or rather, install — a boot loader on my hard drive. I initially had a Linux distro installed, which I completely wiped out. Now, when I try to install Windows 7 from my USB, my machine says
Missing operating System
And when I don't boot with USB, it says
"bootmgr is missing"
So now I am wondering, how I can install a boot loader, so I can install Windows 7?
I'm using a Linux machine at work, and started using at home in a VM for some home development.
I have a vimrc and a bashrc with some configuration, that are useful for both machines.
What is the best way to sync them? Create a symlink for each file in my home folder pointing out to a the respectives files in my Dropbox sync folder? Is this possible (delete .bashrc and create a symlink instead)?
Is it possible to install 2 linux distros into 1 root, so they share same uuid and guid, configs and packages + same user /home folder ? For example: I have Ubuntu and Windows 7 already in dual boot on my laptop. Could I install Arch's base, base-devel and kernel, so it won't conflict with Ubuntu on the same root folder?
P.S I don't feel like repartitioning my drive again, 'cause there's very complicated hierarchy, which occupies the entire disk. =)
I have a mailing list application that sends emails through several dedicated SMTP servers (running Linux Debian 5 and Postfix) in the same network of a hosting company.
However, the application is using the servers' external IP addresses in order to connect to them over SMTP, and I was wondering what kind of improvement would be obtained if the application used the internal IP addresses of the servers instead?
Thank you in advance for your insight.
I can't seem to find any documentation on the subject. I'm working on putting together a linux install for a fairly "dirty" environment. Best practice there would be a statically compiled kernel with no module support. I can already do the customizations to strip out unnecessary drivers/etc to get the performance and disable module support. Does anyone have a link or any ideas on how to get the Oracle Virtualbox module (not the OSE one, I need USB passthrough) compiled in?
The problem
I want to install Arch Linux on my desktop, it is going to be a dual boot with Windows. I booted into the installation CD, but when I started cfdisk to partition my hard drive it gave me the following error: FATAL ERROR: Primairy parititon 1, partition ends in the final partial cylinder.
The Question
How can I troubleshoot and fix this?
Additional details
These will be added if asked for.
I have a website running off site. When we hire someone I would like to create a test site (a copy of live site) for the new employee to tinker with. I will need to take fresh copies of the Files and Database (basically a snapshot) and allow them to access these copied files and database so they could edit and upload them to see the changes they made as if it was the live site
Basically what is the best practice for creating a copy of a website for testing?
Server is running Linux, PHP, mySQL
How do I host a Windows Terminal (to run Windows applications and be accessed by users via a standard MS Remote Desktop client) on a Linux server? I've heard there are some alternatives to Microsoft server software for this purpose.
I am running linux with postfix, dovcot, postgrey and spamassasin/spamd.
This is my main.cf
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
check_policy_service inet:127.0.0.1:10030
I got spamassasin to add spam header to other emails that postfix didn't catch, but how to make it reject?
I want to change OpenJDK to SunJava in my ubuntu linux desktop , i have downloaded the "jdk-7.tar.gz" from sun's website, but there problem is how to make the system to use the newly downloaded java ? I tried adding the new jdk/bin/java to my PATH ( from .bashrc ) but that seem not to work (cause probably OpenJDK's path is inside my PATH variable as well , so the system checks that first)
Here's my JDK7 : /usr/lib/jdk7/bin/java
Here's what $(which java) outputs : /usr/bin/java
Thanks in advance
Can anyone recommend a linux command line tool to monitor the number of bytes transferred between the local server and a specified IP address/port.
The equivalent tcpdump command would be:
tcpdump -s 0 -i any -w mycapture.trc port 80 host google.com
which outputs :
46 packets captured
131 packets received by filter
0 packets dropped by kernel
I'd like something similar that outputs:
54 bytes out, 176 bytes in
I'd like it to work on RHEL and be free/open-source. It would be good if there was an existing tool which I was just missing too!
debian4 linux
i have the following cmd line which works fine
rsync -avr -e ssh /home/dir [email protected]:/home/
but i need to setup it up now to rsync to a remote server that only has ftp on it
how do i go about that ?
i looked at the rsync help but quickly got lost (i don't do this stuff very often)
thanks
alex
I have installed Linux Mint 8 (based on ubuntu). And I have setup a webserver on port 8098.
I can connect to my webserver with http://127.0.0.1:8098, but when I try to connect to http://192.168.1.107:8098 from the same machine or another machine it doesn't work.
How can I get this working? Is there any default firewall settings that I have to change?