Ubuntu :: Assigning Ip On Boot Up?
Apr 13, 2010I'm wanting my ubuntu setup to 'get' it's IP details during bootup, i.e. before login.
This is so that I can logon via NX from my laptop without having to logon via the ubuntu machine first.
I'm wanting my ubuntu setup to 'get' it's IP details during bootup, i.e. before login.
This is so that I can logon via NX from my laptop without having to logon via the ubuntu machine first.
I'm using Debian kernel 2.6.32-5-amd64 I have this little nit picky problem when I re-boot, my webcam and my Tv card switch around on video0, video1 and video2 if my usb webcam is plugged in at boot. I would like to keep it plugged in all the time and have it on video2 and my TV card on video0 and video1. I had read where maybe setting up a udev rule might accomplish what I want to do I just don't understand how.
Here is my camera info from lsusb:
Bus 004 Device 002: ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX
Using v4l2ucp gives me this info about my hauppauge hvr1800 TV card:
Driver cx23885
card Hauppauge WinTV-HVR1800
bus_info PCIe:0000:03:00.0
capabilities 0x05010011
The goal was to remote desktop to my linux box from my windows machine, I went down the path of TightVNC. Installed and ran it.. thought I was all clear.. however the keyboard keystrokes are all jumbled, and seem to be all over the shop. (i.e.: when I press 'p' it actually comes out as 'X' etc. Happens for all keystrokes. Had a quick look around but haven't found any information on it. Uninstalled tightvnc server and installed vnc4server and it resolved the issue, shrug.
View 1 Replies View Relatedwhen I'm in my campus I saw things like this from tcpdump:
client-64-15.department.univ.edu
client-x-y.department.univ.edu
gw.nettokurabu.univ.edu
and my laptop got a name like that too (x and y being last 2 segments of the IP)out of curiosity, how to assign names like that to each IP? well, the names are not in dns records (can't resolve them to IPs)... when I set up (illegally) my on subnet with a routing software the addresses I used also already have their name without me configuring it before...
I want to be able to tell processes/programs somehow to use a specific nic. I have a laptop (used as dekstop) and want to make pidgin use my wireless. I have a gigabit wired connection and a wireless connection. I want to force pidgin to use the wireless connection. But more specifically, I just want to block pidgin from using eth0... how to go about that? I can't find anything that will block applications... I could block outside servers from communicating with eth0, but I don't want to do that.
View 14 Replies View RelatedI have to do a project on network security.For that i have to capture the packets from the device. I installed libpcap tool in ubuntu. If I give ifconfig -a it lists out eth0, wlan0, lo. I am able to connect to the internet via eth0. But when I give
#include <stdio.h>
#include <pcap.h>
int main()
{
char *dev, errbuf[PCAP_ERRBUF_SIZE];
[Code]...
It says device is null. I'm not able to run sniffex.c program also. All I want to do is to capture the live network level packets and analyse them.
Just completed installing Xubuntu 9.04 to my old Dell Latitude CPi and it seems to be working quite well. However I need to assign interface eth0 to my pcmcia network card (as opposed to eth1 or eth2). I have two cards to try out. One of them comes up as eth1 and the other as eth2. There is no eth0 listed when I run ifconfig -a. There is no built-in network cards on the laptop, so I don't know why it won't assign eth0 to either of the cards.
how to assign eth0 to either of the two PCMCIA network cards.
I'm trying to mount a USB key in a RHEL5 box to upload some file. I found doc online and followed it and mounted it fine the first time. Then I unplugged it and found that I have another file to upload so I plugged it back in. However this time it's not assigned a partition (last time was sdb1) and I can't mount it anymore. I think the USB key is recognized and the driver is installed properly:
[code]....
Kernel 2.6.21.5, GNU/Linux (Slackware 12.0).In this script,
Code:
semoi@darkstar:~$ cat rename4.sh
#!/bin/bash
INPUT="k3b_audio_0_04"
[code]...
I am trying to run this and was into issues
function() {
node=echo "10.11.12.13" | awk '{split ($0, a, "."); print a[1]}'
}
[code]....
This is a long shot but I'm looking for a way to assign an IP to a specific location or process. I'm running a server for a small indie game that I liked, I intend on running as many gameservers as possible from this server, however I hit a problem: The game limits servers to 4 per IP address, after this the servers no longer are able to connect to the main server and therefore be used. My server has enough IPs to run many gameservers, but I'm unable to work this out.
I need to assign either an IP address to a process or folder, right now I have it set up like so: (assuming 1.1.1.1 = server IP)
/gameservers/server1/program < assigned to 1.1.1.1
/gameservers/server2/program < assigned to 1.1.1.1
/gameservers/server3/program < assigned to 1.1.1.1
/gameservers/server4/program < assigned to 1.1.1.1
[Code]....
I do not have access to modifying the core program, it runs in Java. How would I go about doing this, if indeed possible? I need to either apply the selected IP to a folder or process without changing the actual program.
I have a TV Card and a webcam connected to my computer. I've noticed that after a restart the TV Card capture device is /dev/video1 (while other times it's /dev/video0). When the device changes I have to update my tvtime.xml, which is a hassle.How can I force the capture device to be /dev/video0 and the webcam to /dev/video1?
View 2 Replies View RelatedI am pondering a reinstall of a freshly installed Ubuntu; I may or may not take that drastic step.However, I have partitioned my drive to include a 16-GB partition labelled "Ubuntu-tmp", in my case /dev/sda7, with the intent of mounting that file system as /tmp. Depending on how I decide to go about the reinstall I need an answer to these questions:If I reinstall: Is it possible to designate /dev/sda7 to mount as /tmp during the installation process?If I cannot designate the mounts at install time, or if I opt not to reinstall: I can't really empty the /tmp directory in the root in order to properly use it as a mount point for [the file system on] /dev/sda7; many files in there are still in use by running processes. So how can I clear the /-mounted /tmp directory and assign it to /dev/sda7?
I have attached a screen shot of gparted to illustrate my layout scheme.The gparted manual suggests I select the partition, click [Partition]->[Mount]. Of course, my gparted drops a menu with [Mount] is absent and an [Unmount] option is greyed out.This raises a question of how I am going to mount /users and /var in their intended file systems (/dev/sda8 and /dev/sda9, respectively), because the [partition] menu looks the same for these partitions as well.
i want to create/assign a swap partition so i can hibernate by comp. i've tried the ubuntu guide on creating a swap file but it didnt work, i created a linux-swap partition and used the mkswap command but that didnt work either (maybe it did but i cant hibernate anyway?!) right now my partitions look like this:
/dev/sda1 extended
/dev/sda5 linux-swap
/dev/sda3 ntfs (windows partition)
/dev/sda4 ext4 (ubuntu partition)
I am running Raspbian, on my Raspberry Pi I have plugged in a Ethernet cable : eth0 and a Wifi Usb Dongle : wlan0
I have my etc/network/interfaces file configured like so
Code: Select allauto lo
iface lo inet loopback
iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
[Code] .....
When trying to connect with SSH to address 192.168.1.100, I get a connection, when trying with address 192.168.2.200, SSH returns Network Error: Connection timed out.
Also receive no response when trying to ping 192.168.2.200 from a windows machine
If however Iadjust the wlan0 block in etc/network/interfaces to the following
Code: Select alliface wlan0 inet static
address 192.168.1.200
netmask 255.255.255.0
I am able to connect to wlan0 in SSH to address 192.168.1.200, and I also receive requests when ping 192.168.1.200 from a windows machine. How can I use a different subnet for my wlan0 iface...
I am using linux mint and have installed Netbeans on it but whenever I run netbeans from accounts other than root it throws an error for not having permission to start glassfish server of netbeans. I also tried running this application using run as administrator option but then the application does not start.
So is there a way to assign netbeans admin rights permanently so that whenever I start this application from other accounts I should not face this error?
Using things like awk/sed, but have managed to cobble together what I needed so far without a problem. The only thing I'm struggling with is to assign the content of a particular line as a variable, and then to use it again throughout the file.
For example, if what I want is the first line of the file to become the variable "from1", and then to replace the word "Subject" in the file with the string "Message from [from1]". What I thought would work
I tried a few diff combinations but nothing seems to work. All I get is the terminal hanging indefinitely.
I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?
View 2 Replies View RelatedI am using Ubuntu 11.04 (in the classic mode)Whenever I double-click my sqldeveloper.sh file, it gives weird errors. When I did :Code:sh /home/uer/Softwares/sqldeveloper/sqldeveloper.sh on the terminal, the program started up. So, I went to the "open with" on the shell file, "Select custom command" and typed the above, but nothing happened. What should I type as the custom command ?
View 2 Replies View RelatedWhy doesn't "var1=`echo $var2 | grep pattern`" work ?
View 8 Replies View RelatedI am assigning a file path to a variable like
$1 means it should accept some file name from cmd prompt but in my case its not working.
How do I decide what IP address to enter in my config file when assigning a static IP. All of the instructions I can find say something like "of course you should modify the file according to your own settings." Should I just use the gateway and IP that returns from "iwconfig" and "route -nee"?
View 5 Replies View RelatedHow I can tell tar to assign a new creation date to extracted files? Let's say I have an archive filled with old files of varying ages. Upon extraction I want all files to have the same time stamp (that of the time of the extraction).
View 1 Replies View RelatedIve been trying to give certain clients an IP adres by mac adress. For this I use the folowing code:
host apex {
hardware ethernet 00:00:00:00:00:00;
fixed-address 192.168.250.100;
}
This works perfectly, however when I try to add a second client this way it doesnt. I tried to add the above code multiple times as a whole (2 times the above code) but that doesnt work. I also tried to just add more lines under host apex but this also doesnt work.
So my question is: How do I add more of this mac related IP adress assignments in the dhcp.conf?
I am having all sorts of trouble trying to assign a variable within an awk script with the system command. I know there is a lot of ways around this problem, but for efficiency reasons, I would like to, within my awk script, do something like
system(x=3)
or
system(x=NR)
and, latter on the shell script which calls the awk script, use the variable $x. But nothing is passed to x. I have already tried things like
command = "x=3"
system(command)
and also used a pipeline within the system to pipe it to /bin/sh In fact tried a lot of stuff like that, using $(( )) etc etc etc I can create directories e write to files (yes, i could write to a file and read from there, but I dont think it is efficient, plus I am puzzled).
how are nics assigned - eth0 - ethx I am having problem with my distro randomly assigning nic to different ethx after each reboot. Sometimes nice 1 is eth0 and sometimes is eth3.
View 4 Replies View RelatedI am connecting to MySQL DataBase using shellscript and writing a select statement like select attachmentid from attachments where pageid=10175 I want to store the output of the select statement into a shellvariable or a file. How can i do it using shellscript.
View 4 Replies View RelatedI have followed th given site for HA configuration in my virtualbox but heartbeat is not assigning virtual IP for interface eth0 [URL]...
View 1 Replies View RelatedI am trying to execute a Unix Command in perl and assigning its output to an array:
Code:
@File_List=exec("ls -1 /tmp");
but it is not working. I have tried the perl function system() also but its return code is
[code]...
How can I pass by reference, a parameter, without assigning a new object? In my first example, var = "changed" creates a new local object. In the second, mylist.append will affect the reference target. How to i achieve the same effect with example 1?
Code:
#!/bin/python
var = "unchanged"
def print_string( var ):
[Code].....