LinuxQuestions.org latest posts

Syndicate content LinuxQuestions.org
LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.
Updated: 15 min 18 sec ago

Ubuntu 9.04: USB Keyboard/Mouse Support for CAT5 KVM Dongle Not Wokring

6 hours 30 min ago
Hi All,

I have a two node, source/destination laboratory that I've built for testing at my place of employment. I have 4 servers on each side for different protocol testing: two Windows and two Linux, all daisy-chained through a CAT5 KVM switch. I obviously have network routers/switches in place as well, but that's irrelevant for this issue:

I am connecting the servers to the CAT5 KVM with CAT5 to DB-9 & USB Dongles. The DB-9 is the VGA and the USB is for mouse/keyboard support through the KVM. What I've found is that all of the Windows servers recognize the USB connection for keyboard/mouse (this connection also must be in place for the KVM to discover the server), and 1 Linux Server recognizes the USB connection. The other 3 Linux servers do not recognize the USB keyboard/mouse support portion of the dongle, and subsequently the KVM cannot discover them.

The server hardware should be identical on all servers, and I've set the BIOS/CMOS in all servers to mirror each other. Additionally, if I plug the USB portion of the dongle into one of the Windows servers and the VGA into the problematic Linux server, the KVM recognizes it (I can see it, but I obviously can't type or use the mouse). So I am confident beyond a reasonable doubt that this is an issue with USB Keyboard/Mouse support somewhere in my install of Ubuntu 9.04 Jaunty Jackalope on 3/4 of these.

It must be possible, however, because 1 of them works. I've checked portions of the working Linux Server to compare them against each other, and I can't find anything that really stands out or explains why it works and the rest don't. Hell, the working one doesn't even have any drivers installed on it.

The easy fix is to purchase a PS/2 Dongle. I've alreasy verified it can support it via PS/2, but I don't want to just band-aid the issue unless there is no other solution.

Any help is most appreciated.


can't find /sbin/init, drops to busybox

6 hours 56 min ago
I'm running Ubuntu 10.04 i386 on a K9M6PGM-2 mainboard with an AMD Phenom Triple core @ 2.3 gig. I have 2 gig of RAM and Lucid is on a 320 gig HDD, /dev/sda1 shared w/Win XP. I have in the SDC position an 80 gig with Ubuntu Karmic. Long before the Widows was installed this problem annoyed me. My hope was that by wiping GRUB out and rebuilding it from the Live CD that this problem would be fixed but after several boot process' the problem ihas returned.

When I boot into Karmic and look at /sbin I find the file init but of course cannot open it. Is there any way to fix this?

The nachine might boot into Lucid 3 or 4 days in a row with no problem and then refuse to boot anything but WinXP or Karmic. It seems not to be the GRUB as Wendoze and Karmic boot as expected.

At the /dev/sdb I find;
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9327 74919096 83 Linux
/dev/sdb2 9328 9729 3229034+ 5 Extended
/dev/sdb5 9328 9729 3229033+ 82 Linux swap / Solaris
and do not know the origin of the partition.


Controlled Squid Proxy Rules

7 hours 6 min ago
Hi All,

I am deploying a squid for my company, in which there will be three main groups. Group 1 having restricted access for sites, upload & download, Group 2 having restricted access only for download & uploading not for sites, Group 3 having no restriction at all. Please guide me if anyone have already worked on this. Restriction will only be IP based.

I have already deployed few rules:


acl Group1 src "/path/to/group1_ip_list"
acl Group2 src "/path/to/group2_ip_list"
acl Group3 src "/path/to/group3_ip_list"


acl filedownload rep_mime_type -i ^application/msword$ ^application/pdf$ ^application/vnd.ms-powerpoint$ ^application/vnd.ms-excel$ ^application/x-asap$ ^text/asp$ ^text/html$ ^application/x-asp$ ^application/zip$

reply_body_max_size 3145728 allow filedownload Group1
reply_body_max_size 7340032 allow filedownload Group2

request_body_max_size 500 KB allow Group1 all
request_body_max_size 500 KB allow Group2 all

reply_body_max_size 512000 allow Group1 all
reply_body_max_size 512000 allow Group2 all



http_access allow Group1

acl allowed_list url_regex "/path/to/sites.allowed"
acl denied_list url_regex "/path/to/sites.deny"

http_access allow allowed_list
http_access deny denied_list

http_access allow Group2
http_access deny all

Now, the problem is, I am not able to allow Group 3 for all, it is getting restricted somewhere. Where and with what permission should I place Group3 ?


Java threads, why does this work/not work?

7 hours 11 min ago
Hi!

I'm writing a program to learn about threads in Java, consisting of one Main class and two different thread implementations (T1 and T2).

T2 is the one I have problems with. I have included a method in the class to allow me to pause the thread, and another method to stop the thread from running entirely. I've accomplished this by nesting a loop inside a loop in the run-method, and two booleans set by those methods I mentioned.

The problems is that if I pause the thread and then try to resume it it just won't do the things in the inner loop (as it should while not paused). But, and here comes the mystery, it works if I add a dummy line system.out.print(""); inside the outer loop. Further on, if I don't add the dummy line the thread won't terminate when told to and I can only exit the program by forcing it to.

Any ideas as to why it works, or doesn't work?

Platform: Mac OS X Snow Leopard, javac 1.6.0_20, java JRE 1.6.0_20-b02-279-10M3065

Here comes what I think is the relevant code...

Excerpt from Main.java - main-method
Code: T2 t2 = new T2(); //Create and start thread T2

Thread.currentThread().sleep(5000); //Wait...

t2.toggleRunning(false); //Pause the thread T2

Thread.currentThread().sleep(5000); //Wait...

t2.toggleRunning(true); //Resume running T2

Thread.currentThread().sleep(5000); //Wait...

t2.kill(); //Stop running T2 Excerpt from T2.java
Code: public class T2 implements Runnable {

 private Thread t = new Thread(this);
 private boolean alive;
 private boolean running;

 //Constructor: t.start(); alive = true; running = true;

 public void kill() {
  this.running = false;
  this.alive = false;
 }

 public void toggleRunning(boolean running) {
  this.running = running;
 }

 public void run() {
  while(this.alive) {
  System.out.print(""); // <<<<<****** DUMMY LINE
  if(this.running) {
    System.out.println("T2 running");
    try { Thread.currentThread().sleep(1000); } catch(Exception e) {}
  }
  }

} Any help appreciated! =)

//Nicholas

EDIT: I tried on Debian Linux now as well with javac 1.6.0_20 and java JRE 1.6.0_20-b02 - it works perfectly there - bug in the Mac version?


Mouse Issue in Slackware-13.1

7 hours 13 min ago
On my laptop, the mice/meece/mouses(?) available to me are
1. Touchpad thing, w/2 buttons and a strip along the side which on a good day scrolls up and down. This gets 75% use
2. A Low res cheapo external wheel mouse with a lead that rolls up on itself and gets out of the way. Gets about 25% use

CHANGES_AND_HINTS.txt on the dvd suggested
If you are using input hotplugging via HAL and a synaptics touchpad, then you might need to copy /usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi to /etc/hal/fdi/policy/ and edit it to suit your needs.

Now I got the cp, but not the edit. Problem is, if I start X without the external mouse, the strip along the side is no use on the touchpad. Apart from that, It's excellent - brilliant really. The low res mouse and the higher res touchpad have suitable acceleration which was always a battle before.

Any hints on this? xml isn't really my thing.


Start a daemon as general user

7 hours 17 min ago
I need to allow certain users (who do not have root access) to be able to stop and start specific daemons. Can anyone tell how I can do this in Linux?


LXer: Google Faces a Tough Fight Against iTunes

7 hours 28 min ago
Published at LXer:

With Android already on millions of devices, the upcoming Google Music service will have a waiting audience, but is Google prepared to run a commercial music service?

Read More...


Why I cannot access my website?

7 hours 38 min ago
Using Fedora 13,
The Website shows well in Local host, but no able to access it from any other host.
I get the error message " The server at xxx.xxx.xxx.xxx is taking too long to respond".
Any help will be appreciate,
Regards.


No Bootsplash in Ubuntu 10.04

7 hours 44 min ago
Hey I have installed Ubuntu 10.04. But I don't have a 'bootsplash'/start up screen like this:

http://www.youtube.com/watch?v=Rhmr3GAGO8w

All I have is a blank screen. How do I fix it? Shouldn't it just be there by default? Do I need to install anything extra, like usplash or something?

Also exactly what Google apps are available for Linux/Ubuntu now? I read somewhere Google Desktop Search was available. This would rock, as having tried Beagle in the past and not having been all that impressed with it (it lacked the feel of real OS level integration and always just seemed to run like a separate app.), I would be hopeful that Google Desktop search would work a bit better.

Has anyone tied it? What's your view? Now that Mac and Windows both have advanced Desktop search integration, it seems that search (or specifically pre-built-in integrated search) is one area where Gnome is still seriously lacking.


root password?

7 hours 45 min ago
Hi,

Just got Ubuntu (latest, greatest) installed. IIRC I selected 'auto loggin' from the install CD, but I'm unsure how this works. I have a user loggin 'ray' and a PW that's all OK. In the GUI, if I want to do something heavy it asks me for a PW which tells me that I'm 'root' at that time.

But at the CL prompt I can't log in as root with no PW nor with the PW I use as 'ray'.

BTW, is there somewhere I can bitch about the install CD? It was not an unpleasant experience, but I think it could be a bit better.


multiple monitors with latest Ubuntu

7 hours 54 min ago
Hi All,

Brand new to this. Got Ubuntu installed with not much trouble, tho I found the install CD not as helpful as it might be. Anyway, I have three monitors and want to get them running, same as in XP. Is there somewhere I can read up on this? At the moment my worst card is on the lowest PCI slot, and as I understand it, that makes it always the default, but XP has no trouble with that. Ubuntu's monitor setup page tells me 'unknown monitor' and seems unhappy with the graphics abilities of the card, but lspci reports all three cards correctly, so they are 'visible' at least.

Thoughts?


LXer: The Key to a Successful Linux Conversion

8 hours 8 min ago
Published at LXer:

People are resistant to change. This is a fact and it is not going to change any time soon. Because of this they will not want their entire computer to change on them all at once. An important fact that a lot Linux Advocates miss is that the conversion to Linux starts on Windows or OSX.

Read More...


BOOTLOADER question

8 hours 8 min ago
I have a dual boot 40GB laptop, Windows 2000 & an old Mandrake 2.4 kernel edition. The Mandrake takes up 10GB and I would like to delete it and use a disk manager to convert it to NTFS to use on the Windows side.
I configured it to boot with LILO and then to windows as the primary OS.
If I delete the Mandrake partition will the Windows bootloader automatically take over or will I lose the ability to boot to Windows


Transfer Music to and from iPhone 4?

8 hours 17 min ago
I just got my iPhone and I noticed that there are some blogs about iPhone being supported by Ubuntu and stuff. Digging a bit deeper it turns out that it might or may not include iPhone 4. Is this true or has someone had some success?

Mine is recognized - the Rhytmbox and F-Spot are launched. There is an iPhone desktop icon. However, if I launch Rhytmbox the icon dissappears and I do not know how to get it back - except plug and unplug the USB cable. Can not do much with Rhytmbox either - if I leave it running and do plug/unplug the phone appears but nothing underneath - I'll have to make yet another trial.

This is, however besides the point - as I am not really interested playing music from iPhone with my laptop. I am interested in getting music data copied up on my iPhone from my Ubuntu Laptop.

I can see Photos on my phone immediately if I do not start Rhytmbox or F-Spot and double-click the desktop icon straight ahead. I can also see a iTunes folder, but underneath under a music folder there are some about 40 folders, some empty some not - if there is mp3s they have some non-descriptive file names. So I assume iTunes just takes the files and somehow renames and places them under the iTunes - Music folder.

Is there any easy way of just copying and pasting the stuff on phone folder with nautilus so that the phone's iPod program can play it?


Shorewall - Logwatch

8 hours 22 min ago
Hello


Can anyone help me with a Howto or some pointers on how to get logwatch working with shorewall logs. I tried fwlogwatch but could not get that working.

Cheers


Fibre optic capacity 'auto-tuned' by novel device

8 hours 31 min ago
"Scientists have shown off a system they say could "substantially" improve the data capacity of fibre optic networks."

http://www.bbc.co.uk/news/technology-11229085


I made avi file using gimp. mplayer is OK, Macintosh and others are not.

9 hours 15 min ago
Hya,

I made an animation file (avi file) using gimp. (All default setting for master videoencoder, audio file is either wav or aiff format)

mplayer can play it as expected. (both video and audio)
vlc plays only audio with white noise, no video at all, (black screen)
cinelerra goes wrong (like Mac and windoes)

Macintosh and windoez (application chosen by OS) can play video, but audio plays incomplete (white noise goes every now and then)

As I need to distribute this file to work community (mostly non Linux) I need to trouble shoot.

So far I have not found any significant error message (gimp, mplayer, vlc, cinelerra).

file command gives me Code: RIFF (little-endian) data, AVI, 1032 x 1800, 1.00 fps, video: Motion JPEG, audio: uncompressed PCM (stereo, 22050 Hz) Original audio file plays flawlessly on any platform.
So far, I have changed video aspect ratio and audio sampling rate. For some reason audio 22.05k sampling rate (gimp audio option) does not work at all.

Where can I start?

My system: Debian squeeze.


minicom for serial communication in C under Linux

9 hours 22 min ago
Hi all,


I am new to minicom. I have followed links and help online. I am able to see my serial port ttyS1. I as configured it and all for my protocol. But after connecting my serial port device and running minicom -c on. I do nto know how to proceed from there. Can any one tell me or suggest me the link where I can find details on it.

I want to read data from weighting scales to my linux machine in C program using serial port communication. Do you think I can use minicom for the same . if yes how?

please do suggest me , i need it to be done.

Thanks

Cadd


need on rewrite rule help

9 hours 29 min ago
Hi Tech guru's
rewrite rules for http://subdomain.maindomain.com/path/ to http://path.maindomain.com

is there way to do this with rewrite?


Small size hardware for linux router?

10 hours 12 min ago
Hello!
I'd like to know if anybody knows if is there a any small hardware board (I think non i386 architecture, maybe mips or arm) board suitable for using for linux routing systems (routing features + iptables).
For example an small board with at least two ethernet interfaces capable to run an update version of Linux.

May be something similar to microtik routerboards, but to run Linux within.

Thanks! Regards,
Matías