My Ubuntu server has two interfaces.
1) Public - eth0
2) Internal - eth1
How can I forward web traffic (port 80) to nginx running on eth1 from Public interface eth0 ? I don't know exact ufw rules to complete this.
Thanks
My Ubuntu server has two interfaces.
1) Public - eth0
2) Internal - eth1
How can I forward web traffic (port 80) to nginx running on eth1 from Public interface eth0 ? I don't know exact ufw rules to complete this.
Thanks
How can I purge all added ppa with a single command in terminal ?
I want to backup mysql databases to another new server. I don't want to use mysql replication and mysqldump for backup as they are using higher cpu and higher i/o on server. I tried mysqlhotcopy to send databases files to another server into /var/lib/mysql/database but after backup new server shows empty database. Help me friends to find solution. Is there any way to send database raw files using rsync or scp and get recovered database ?
When I execute following command to get cpu usage , I get nice + user cpu usage.
top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}'
Output:
14.5
Here I am getting problem is that the output depends on top command thus it doesn't change instantly as top command. So I am not getting correct cpu instantly. It gives same output and not changing.
I want to get real-time cpu usage in output. Please help me to improve my command.
I want to create bash script that it converts output of other scripts (Normally simple text) in a valid json form. How can I do this ?
Example:
awk '/^Mem/ {printf("%u%%", 100*$3/$2);}' <(free -m)
command give me used memory. I want to get output in valid jason form.
Desired output:
{“Memory”:”80”}
I want to take control of my VMware ESXi 5 Server through Ubuntu 12.04.1 desktop. Unfortunately there is no client available for Ubuntu. How can I do it?
I am new to bash script and want to create bash script that moves some days old files between source and destination as per days defined in script.
When I run this script I get error
find: paths must precede expression: mv Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
#!/bin/bash
echo "Enter Your Source Directory"
read soure
echo "Enter Your Destination Directory"
read destination
echo "Enter Days"
read days
find $soure -mtime +$days mv $soure $destination {} \;
echo "Files $days old moved from $soure to $destination"
What's missing or wrong ???? please help me to create this script.
I am going to deploy Ubuntu server having following servers on it:
I currently have a Raid 5 filesystem with 10TB storage.
How should I set up my partition scheme?
I am looking to ensure that I don't have problems in future and that storage size can be easily expanded. Can you suggest a partition scheme giving specific percentage of storage to partitions like /
, /boot
, /var
, /etc
?
I want to setup local Ubuntu server that download and provide security updates from internet as per requirement of Ubuntu desktop systems connected in local area network. How can I setup such server ?
I want to set UEFI on my Ubuntu 12.04. My specifications are
Intel Core i3 540M
Intel DH55TC Chipset motherboard
500 GB HDD
2 GB RAM
I had 12.04 with my dual boot system. Yesterday I downloaded Ubuntu 12.10 make bootable USB and choose Upgrade option in Installer. After installation Grub failed to boot my machine. I tried following to fix grub bootloder . Same problem I fixed with Ubuntu 12.04 using live USB but this solution not work for Ubuntu 12.10. Now coming at exactly where this solution goes fail.
I followed this steps after booting Live USB and opening terminal.
1) sudo fdisk -l
to see where Linux is installed
2) sudo mount /dev/sda9 /mnt
where sda9 is my linux partition
3) sudo mount /dev/sda9 /mnt/boot
4) sudo mount --bind /dev /mnt/dev
5) sudo chroot /mnt
(No problems with this steps done perfectly)
6) grub-install /dev/sda
when I type command I got error that
source_dir doesn't exist Please specify --target or --directory
How can I solve this?
I want to install packages with using make file. What are the necessary packages for build ,compile package and install make file ?
What is the procedure of cloning the root user in Ubuntu? How is root cloning useful?
My mouse is not working properly, So I enabled keyboard keys for Moving mouse arrow using
Universal Access > Pointing and Clicking > Mouse keys "On"
But Mouse Arrow moves very Slow using keyboard Keys. I want to move it in normal way as I move mouse, using keyboard keys(Numlock keys 2,4,6,8). How can I solve this ?
How can I log the activity of users for the last 24 hours by terminal in a system? Which command will give me this information?
Which commands will give me information about following using Terminal?
My Server has two NIC, One is connected to the Internet Service provider with dhcp ip (dynamically change) given by ISP and other NIC is connected with local Switch with 192.168.1.1 IP. Now I want to set up network with such that computers connected with LAN can connect Internet through server. Server will be work as a router. How should I make such configuration that All traffic passed by NIC 2 within a single IP and ported at IP address of NIC 1 which is Dynamically given by My ISP?
Thanks in advance.
What are the best software packages in Ubuntu that give me themes management (installing, removing , editing ) in a easy way By GUI ?