General :: Assign A Particular Wan To Selected IPs?

Dec 5, 2010

I have 2 wans . I want to assign a particular wan to selected IPs.Will I achieve it by iptables or ?

View 1 Replies


ADVERTISEMENT

General :: Script To Delete Selected BackupFiles And Restore Selected Backup File?

Jul 18, 2010

i am new to linux and i nid a bash script to Delete selected backup files and also restore selected backup file to a user define directory.

View 3 Replies View Related

Networking :: Granting Selected User Access To Selected Network Interface?

Oct 3, 2009

I have a multi-user machine with several network interfaces (Ethernet, if that matters). I wish to grant selected users, or groups, full access to selected network interfaces (including ability to adjust IP address and to bind to low ports, but *only* on those interfaces). It is important to me that an user/group does not such full control over other interfaces. Granting partial, or temporary, root permissions is OK; it's a friendly environment.How do I go about it?System: Linux 2.6.recent; usual Debian setup (can be adjusted if needed).

View 2 Replies View Related

General :: How To Delete Selected Files?

Feb 10, 2010

Assumed I have the following files:

test12.txt
test13.txt
test14.txt
test15.txt

I want to delete the first 3 files with one command. How to do that?

View 8 Replies View Related

General :: Grub - Which Menu Option Selected After All

Jan 9, 2010

if it's possible to see or retrieve from the system which menu option from the grub boot menu was selected afterall.

View 1 Replies View Related

General :: Install Selected Patch In RHEL 5?

Jul 6, 2011

If we install patach in RHEL5 then we use "yum update" command but it will install all the available patches in the list, but if i want to install any specific patch then how to install this? Is it via "yum update ??"

View 3 Replies View Related

General :: Delete Selected Files From Sftp?

Apr 6, 2010

i am trying to delete multiple files from sftp with non-interactive way as per the desire ext. But i am not able to get the proper extension of the files for removing files.

lftp -u ${user},${passwd} sftp://${ip}<<EOF
cd ${path}
rm *${ext}
bye
EOF

View 4 Replies View Related

General :: How To Assign Hostname To Given IP

Apr 14, 2011

I've installed a new copy of Ubuntu 10.10.Now the big question for me is how do we assign hostname to a given ip? I've given the hostname during the server installation and "cat hosts" says "ebox" hostname I'm trying to put on.Also,I modified the network/interfaces to static and assigned proper values.

#hostname returns ipaddr not the hostname. Also nslookup hostname/ipaddr says server can't find ....

So,is installing dns through bind and setting-up the only way to do that?

View 9 Replies View Related

General :: How To Assign More Than One IP In RHEL5

Jan 8, 2010

I am using RHEL 5 or 5.5 version as my os. I want to assign more than one ip for that machine. I am very new to linux.

View 7 Replies View Related

General :: How To Assign IP Address

May 14, 2010

I have a fresh installed redhat 9 with 1 network card attached may I know what command will I type to assign 10.0.0.1 on the network card?

and also when I type hostname it always reply localhost.localdomain

how can I assign a hostname

View 4 Replies View Related

General :: Backup - Zip Selected Directories Recursively In Linux

Jun 25, 2011

I would like to zip only selected directories(and its child directories as well)I have many directories in the current folder like app, content, db, library etc.But I would like the zip only app and content and its child folders. I am trying the following.

zip -r ../backups/code/20110625 -i app/* -i content/* . *

But I am getting the following error. zip error: Invalid command arguments (nothing to select from)

What is the correct syntax to achieve this?

View 1 Replies View Related

General :: Grub - Error 17: Cannot Mount Selected Partition

Dec 15, 2010

i ran into this issue only because i wanted to learn. I was reading the book, linux troubleshooting and decided to give it a try.

1) I went to /boot/ and moved vmlinuz (kernel file) to my home directory. (/root/)
2) I booted, it didnt boot (as expected) and now the troubleshooting part begins.
3) i entered to grub config mode using c
4) When i press root (hd0, (tab) it gave me 2 partitions. hd0 which is my boot partition hd1 which is my '/' partition. Please keep in mind its LVM and not a physical partition
5) If i do this, root (hd0,1), and press boot, it gives the following error Error 17: Cannot mount selected partition

During my research i found that, LVM is not supported by grub, so kindly confirm me this ? is this the reason i am not able to access my root partition ? i am doing this on vmware so no issues, but just for the sake of learning, can someone tell me some way of restoring it without using any rescure disk (livecd, liveusb etc) ?

View 26 Replies View Related

General :: Make Taskbar Display Only Selected Desktop's Windows

Jan 11, 2010

How do I set the taskbar to display only the windows from the current desktop? I did it once before, but am on a new installation of my distro.

View 3 Replies View Related

General :: Command Line - Move Or Copy Selected File

Jul 16, 2011

How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.

View 7 Replies View Related

General :: 'automate' That 'rows Selected' Preceded By Number Is Always Last Line

Jul 22, 2010

I'm not that familiar with sed and awk in order to be able to solve this problem on my own, so I'm calling on you for a bit of assistance. I'm writing a Nagios plugin to check our Oracle tablespaces and the output is given in one line like this: 1.04007771 TEMP 0 UNDOTBS1 .005340579 USERS 0 7 rows selected. I've been playing around with sed like below to delete the obsolete info and change every second space into a newline:

[code]...

how many tablespaces there are so I'd have to check all databases and 'hardcode' the tablespaces in my script. Is there any way to 'automate' this knowing that 'rows selected' preceded by a number is always the last line and using a sort of counter to auto-adjust the number to put in the -e 's/ / /2' part?

View 7 Replies View Related

General :: Error Opening/initializing The Selected Video_out (vo) Device

Nov 3, 2010

while opening any video with gmplayer it gives the fatal Error opening/initializing the selected video_out (vo) device. while playing with mplayer it doesnot goto full screen video output mode while pressing F.

View 13 Replies View Related

General :: Assign Custom Icons To Folders?

May 30, 2011

I am looking to assign custom icons to my folders. Like the game folder having a joystick , Ebooks folder etc. but sadly i am unable to find any thing on google. Can any ome suggest some good places to look

View 2 Replies View Related

General :: Assign A Different Command To Headphone's Button?

Jan 13, 2011

I bought a Media-Teach NEMESIS USB headphones. They work really great except there's this one button that lunches Windows Media Player on Windows but on Linux... it doesn't seem to do anything... So my question is, how do I assign a different task for this button on Linux? For example I want it to go to a website address.I guess I need to get what signal it sends thru usb to my system and then somehow manipulate it? Can this be done with a shell script or perhaps there's a tool/program available on Linux for this

View 2 Replies View Related

General :: Assign A Variable To The Output Value Of A Program?

Feb 6, 2011

so i wrote myself a very simple hellworld program in c++

...the usual stuff
int main()
{

[code]...

View 3 Replies View Related

General :: Assign IP Address To 2nd Ethernet Card?

Jun 22, 2010

In my red hat Linux machine there was a Lan card using eth0. IP is asign to that network card and it is functioning properly. I add another ethernet card in my linux machineit was detacted and when i use the commandQuote:[root@localhost root] # ifconfig -ait show me both eth0 and eth1 lan cards.I can see Ip address in my eth1 ethernet card but When I enter into

Code:
[root@localhost root] # cd /etc/sysconfig/network-scripts
and i use ls command it only show me the file ifcfg-eth1 and with

[code]...

View 8 Replies View Related

General :: Assign IP Address Using Command Line?

Mar 26, 2010

I am using internet in my home PC using Red Hat 9. To assign static IP to my linux machine I use "System Settings....> Network" and then double click on "eth0" to assign the static IP.Well these all settings by using GUI interface.Kindly guide me that if I use only command line interface "runlevel 1" then in that case which file should i edit and assign my static IP,Subnet Mask,Default Gateway DNS settings.2- 2nd thing is,is there any way that I may open web broswer in command line? or the administrator should only use internet on Run Level 5 ?

View 14 Replies View Related

General :: Assign Port Numbers Against Interface (LAN Card)

Apr 22, 2010

I am using RHEL 5. In my Linux Box I have two Lan cards (eth0 and eth1). "eth0" is connected with network 192.168.10.0 and "eth1" is connected with network 192.168.11.0. Both Network are inter connected via routing. Now I want a situation where, I want to dedicatedly assign some port numbers against a lan card. Like eth0 will be assigned for ssh (22) and eth1 is assigned for telnet (23). So that, when a user connect to 22 port then he/she is connected to the server through eth0 , and when a user connect 23 port then he/she is connected to the server through eth1. Is it possible to do using iptables or other?

View 2 Replies View Related

General :: Assign Back Hard Drive Partition?

Jun 30, 2010

I am using Asus eee PC model 1001P and I am running ubuntu netbook remix on it. I have a 160 GB hard drive. When I was installing ubuntu I assigned only 50 GB for it, thinking that I will use the remaining partition for windows. But right now after using UNR, I don't want to use windows at all. Is it possible that I can assign the remaining 100 GB unassigned partition back to Ubuntu without reinstalling the whole operating system again?

View 4 Replies View Related

General :: Assign Debian Running On Virtual Box A Static Ip?

Jan 11, 2010

I would like to assign a static IP to Debian running on my virtual box. How should I do it? What needs to be written in /etc/network/interfaces.

View 5 Replies View Related

General :: Assign Oneself To A Group To Get Access To A File

Sep 4, 2009

I'm on a regular Fedora 9 desktop computer with an ext3fs filesystem.

I'm trying to give myself access to /dev/ttyS0. This is because I'm developing code that uses a serial port. While I'm developing this code I don't want to be continually working as super user. I have the following information about /dev/ttyS0:

Code:

So as root I added myself (username freddy) to the group uucp. This is just temporary, for while I work on this code and try different stuff as user freddy. Once the code is established and I have a single program with a fixed name, I plan to give myself an entry in /etc/sudoers that will allow me to run the finished program.

Here's the info on user freddy:

Code:

The problem then is that now if I try to use /dev/ttyS0 I can't.

Code:

I thought that if I was a member of group uucp which is associated with /dev/ttyS0 that I would be given rw access to /dev/ttyS0. What am I missing here?

What the c stands for in the ls -l listing?

View 2 Replies View Related

General :: Assign DHCP IP For Client For 5 Interfaces At One Shot?

May 11, 2010

I have a RHEL Machine. All I have is 5 Ethernet cards.I want all of them to be assigned IP through DHCP while I boot my system.

View 4 Replies View Related

General :: Network Connection - Doesn't Assign Any IP Address To Machine

Feb 11, 2009

I have installed Ubuntu 8.10 Server Edition on Virtual Box. When I start the virtual machine I do not have connection to my home network. The router I have does not assign any IP address to this machine. Now I have some questions which I am finding hard to find answers for over the internet and other forums.

If I do have a network interface (I checked this using ifconfig -a) then is there a command to actually make the operating system connect to that network (something like repair on windows)?? Also what is the difference between a network interface with alias eth0 and eth5? I know that when it was eth0 the virtual machine used to connect to the network automatically. Now that it is eth5 it does not! I do not know however if this is related.

View 3 Replies View Related

General :: Assign IPV6 Address Using IOCTL System Call?

Jul 22, 2011

Please send me the code how to assign ipv6 address using ioctl system call using C.

View 1 Replies View Related

General :: Assign CPU Resource To A Certain Process(RHEL 5.5 Client With Workstation)?

May 27, 2010

How to assign CPU and memory resource to a certain process? How to assign CPU and memory resource to a certain user?Let's assume the software is no limit for resource usage.Below is a description of my situation.dual 6 core, 32G memory, RHEL5.5 client with workstation option.I run a big computation (say process1). However, I found from KDE system guard the CPU and memory are not loaded as expected. below are numbers. user% system%process1 100 0.00and CPU idle 90%, memory free 97%

View 3 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved