I want to write a script and put it in /etc/rc.local so that
if lan is connected then
rfkill block all
else
nmcli con up id 'Network id' --nowait
How should I write the if part and how should I check for "lan is connected" ?
I have HP Scanjet 3770. UBUNTU 10.04 installed on my desktop. HPLIP also installed. This scanjet working well in Windows Xp but in ubuntu SimpleScan does not recognize it.
It shows:- No scanners detected Please check your scanner is connected and powered on.
I Also visited [url] & found as below-
ScanJet 3770 Unsupported. While an external binary-only backend exists, it works only on Linux i386. Therefore the scanner is unsupported on other platforms.
Well, i have some applications that i use everyday so i add them to the startup applications, but they require Internet, otherwise the configuration is lost. I'll like a command that first check if i'm connected to Internet and if i am, launch the app. If not, don't do nothing.
This is a problem because for some reason everytime i turn on my laptop the wireless adapter doesn't turn on automatically (it always did when i was running windows).
I am trying to write a script to turn my HTPC off automatically and turn it back on again at a specified interval.
I've got the turn on off bit sorted using /sys/class/rtc/rtc0/wakealarm but I want the script to not turn the machine off if say something is downloading, I am currently watching something etc and i dont think I will have any trouble with that.
But what I would really like to be able to do is tell if my TV is currently on. I dont think anything x11 related would work here and this may not even be possible. Does Ubuntu "know" if it's display device is powered on or not? if so can I interrogate this somehow?
So, what I am asking is, is there a way to ignore/over-ride compiz's texture size check, a different way to query xrandr, or is there a completely different method I can go about checking if an external monitor is connected?
Suppose that it is not convenient to go behind a machine to have a look.So I want to use a command to show whether the cable is plugged into network card. (Media connected or not)Can ifconfig do this? Or another one?
I'm using a linux server where nat server is running. Local user are connected from this server. So is there in tool that i can check that local user getting internet? or how can i check that a user connected from linux server using internet or where he visited?
I have a canon printer which was working so far. After my latest upgrade its giving errors saying "Printer not connected -- Check your connection" Fortunately I had a backup of my root before the upgrade and one difference I see is that on the new system theres no /dev/usb/lp0 which there is on the old one. So how do I make it? Or should I use the /dev/lp0? Note they are different:
[Code].....
So (naturally) when I tried to make a softlink from /dev/usb/lp0 to /dev/lp0 it did not work.
I am new to Debian but not Linux-based systems. I have been experimenting a lot with Debian Lenny/Squeeze. I am growing more comfortable each day with the Debian design. Yet there remain many unexplored areas. I am creating a migration check list. Things to check, prepare, or reconfigure when moving from one Linux-based system to Debian.
I have a good computer background and my current check list probably is fairly good. Yet I would appreciate input and opinions from experienced Debian users of things to watch in such a migration. Login defs, passwd/group files, different directory locations, keymaps, services and daemons, etc. I am not too concerned with the desktop as I plan to stick with KDE 3.5 for a while and I can basically move those settings across.
I am using Ubuntu 9.10, when I shut down Ubuntu is asking to be log out as other uses are connected, which is not the case and I have not loaded any server or desktop sharing programs.
yesterday i installed linux on my computer,but for some reason linux is not detecting my network driver.though it gets detected in the hardware section i cannot see the eth0 in the device coloum.i would be really really greatfull towards u if can u give the link to download the driver.(sorry if i have said anything wrong i am completely new to linux)
I am running Xubuntu 9.04, with LXDE on an old Acer 526iTX. After fiddling around trying to connect it to a Vista machine using a crossover cable, I must have broken the internet (well not the whole internet obviously, just my connection). nm-applet will show the connection as working, but no loading takes place (eg. firefox shows 'connecting to google.com.au..' but nothing happens). Same behaviour whether browsing, pinging or updating by CLI, and over any type of connection (mobile broadband, wifi or ethernet cable). This has persisted over many days, through restarts and deleting and re-creating the connection in nm-applet. I can also rule out a hardware problem as the connections work fine using a live CD.It's no big deal if I have to reinstall (I probably will anyway), but I was wandering if anyone would know the probable cause of this behaviour.
Main PC runs Win7 with Epson printer connected (not wireless)...I'm running Win7/Ubuntu 11.04 on my laptop getting internet wirelessly. When in Win7 on my laptop I can 'see' the printer that's connected to my main pc and print to it but when I switch to ubuntu I 'see' the main pc on my network but not the printer...
I am a new user to fedora 12.I am using reliance wireless broadband for internet.i have installed the drivers and did a wvdialconf and wvdial. The output of the wvdial was:
Code: [root@gnanam gnanam]# wvdial --> WvDial: Internet dialer version 1.60
I have ubuntu 10.10. I am connected through wireless (connection established) but I can not browse the internet on firefox. It works with out a problem when connected through the wire.
I have a Windows 7 Desktop and an Ubuntu Laptop connected with a KVM switch. I use the setup for software development, so I am constantly switching between the two, so I need a way to quickly transfer files between the two. I'm not sure if this is possible, but if I could connect them in a way where the OS of each mounts the hard drive of the other. Is there a way I could do this?
My system is SUSE 11.1 I want to see who is connected via SSH. For instance, I have users connected using FileZilla. I can see in th e/etc/var/messages that they authenticated/connected, but I can't see if they have since disconnected or not.
Also, about 3 years ago I used to use Fedora for my SSH and in the sshd_config I'd make custom logs for each account, specify which user accounts were possible, port number, etc, etc. Is this possible to do using the SUSE linux? Any links on how to do this on suse? I haven't used linux in 3 years and can't find my old sshd_config files to take a glance...I did look at the sshd_config on SUSE, but it looks very different.
i have a leased line ( speed 2 MB ) which we use to connect to our mail server , oracle ERP etc.. we have a dhcp scope defined as 192.168.100.1-192.168.101.254. with a default gateway as 192.168.100.90 ( which is a cisco router ) we have a pix firewall ( 192.168.100.10 ).. now the gateway passed all the request to firewall..we have an ADSL of 4 MB speed.. ip is 83.*.*.230 from ISP. i have a proxy server ( squid ) eth0 is connected to ISP (83.*.*.230).. eth1 to LAN ( 192.168.100.79 ) now the problem is when i put default gateway to eth1 ie 192.168.100.90 the squid connects to internet via leased line.. if i leave the default gateway field empty on eth1 , the squid connects to internet via ADSL ( which i want ) but the problem is no one on the lan cant ping the squid server ( no connectivity to internet for the whole LAN ) how can i solve this problem? PS : i want squid to connect to internet with ADSL, but if i put gateway on eth1 ie LAN squid goes through leased line which i dont want to happen
I am facing a problem to configure pine. My machine has no global IP, but it is in a LAN. The LAN is connecetd in Internet. The global IP, through which the Internet traffic of the LAN is passed, is known. How can I configure pine to send/receive mail?
We have near about 90 RHEL servers. I want to find out which servers are connected to SAN [HP-SAN] storage???? Because many of them are having local hard disks.
I have two H/D and i need to install XP and RHEL5.3 in different H/D connected to single machine.so that when i boot from first H/D linux will boot or if i choose second XP will boot.
I have an external Samba network storage drive that I mount using 'mount -t cifs -o username=aaa,password=aaa //myserver /mnt/mountlocation', but I'm finding it to be a pain to enter that whole command every time I turn on that drive and connect it to my computer via the network. I could put that command in a script and run a simple script like 'mntdrive' that would run that command for me, but is there a way to have the drive 'pre-mounted' so that if it's available on the network it's mounted?
If I put the mount command in one of the startup scripts or in fstab, would it be available at the mount location when the drive is connected if it wasn't connected when the computer was first turned on? Or is mounting the drive manually, even if by running a script that does it for me, something I'll have to do every time I turn on that drive? Any creative ways around this? Would make things easier if it is possible.
I have run the apache service on my machine. Many people are accessing that server. Now, I want to know who all connected to my system. How can I get that information?
Prior to upgrading some of my hardware I had 4 drives used just as storage. Now I'm trying to mount the drives as an LVM but I don't have enough slots to connect all the drives at once now b/c they use an outdated type of cable. I can connect three of the four. So, can I somehow move these to a new group, or remove the missing drive from the existing group?The error is:Couldn't read all logical volumes for volume group VolGroup.Couldn't find device with uuid 'yQtrVB-5jCk-vF10-05c2-AcDL-GNn1-ivdxxh'.
How can I detect when an external monitor is connected in linux? I need to run various scripts to set up my workspace. Is there some clever way to kick off a script when the monitor state has changed? I'm using the Nvidia display driver.