Hello,
I'm starting in Java Web development, then i want to ask, what is the best server, like Apache Tomcat, Resin and others. Remember that i use Linux Ubuntu. Thanks!
On a Ubuntu 9 64bit Linux machine, sudo takes longer time to start. "sudo echo hi" takes 2-3 minutes.
strace on sudo tells poll("/etc/pam.d/system-auth", POLLIN) timesout after 5 seconds and there are multiple calls(may be a loop) to same system call (which causes 2-3min delay).
Any idea why sudo has to wait for /etc/pam.d/system-auth?
Any tunable to make sudo to timeout faster?
Thanks
Samuel
I want using any free Linux document viewer that does
both pdf and djvu (Okular, Evince, etc.) to do the following:
magic_command('document-viewer','./11.pdf','instance1')
magic_command('document-viewer','./21.djvu','instance2')
two instances (windows) of document-viewer are opened
one with 11.pdf and the other with 21.djvu
then:
magic_command('document-viewer','./12.djvu','instance1')
magic_command('document-viewer','./22.pdf','instance2')
the first instance (window) of document-viewer loads 12.djvu
the second instance (window) of document-viewer loads 22.pdf
I recently made the move fromLinux development to Windows development. And as much of a Linux enthusiast that I am, I have to say - C# is a beautiful language, Visual Studio is terrific, and now that I've bought myself a trackball my wrist has stopped hurting from using the mouse so much.
But there's one thing I can't get past: the cost. Windows 7, Visual Studio, SQL Server, Expression Blend, ViEmu, Telerik, MSDN - we're talking thousands for each developer on the project! You're definitely getting something for your money - my question is, is it worth it? [Not every developer needs all the aforementioned tools - but have you ever heard of anyone writing C# code without Visual Studio? I've worked on pretty large software projects in Linux without having to pay for any development tool whatsoever.]
Now obviously, if you're already a Windows shop, it doesn't pay to retrain all your developers. And if you're looking to develop a Windows desktop app, you just can't do that in Linux. But if you were starting a new web application project and could hire developers who are experts in whatever languages you want, would you still choose Windows as your development platform despite the high cost? And if yes, why?
Is there a Linux shell that will let you type less than full commands as you can with Cisco IOS, at least for the first command (and not its arguments)?
I haven't really thought enough if this is actually a good thing, but might be fun to play with :-)
I just bought my first home server, and I want to install Debian Linux!
Can anyone recommend me which one to use? I have read that there are 3 types, one for testing, one stable and then another one. But I don't know much more about it.
Can you please advise me?
Thanks, Boda Cydo.
I have a problem with drive cloning.
Im using dd on damaged disk with bad sectors trying to make an image from it. Im booting computer with Live Linux CD .
Damaged disk: sda 146GB (NTFS)
External drive: sdb 300GB (NTFS)
After running the command below im running out of space on disk sdb.
dd if=/dev/sda of=/dev/sdb/hdd.img bs=4096 conv=noerror,sync
The question is why im running out of space on disk sdb ?
I am using gmail as my email provider, and I only have gmail servers for my mx records. I don't like the 500 message per day cap. To address this issue I would like to run postfix on my Linux machine to only send email, incoming port 25 blocked by my firewall. I can send email, however google marks all messages sent with postfix as SPAM. How do I make sure that people know email sent with postfix is valid?
Hi,
I've copied a folder of data from one linux server to another via a tarball.
The group ids (GIDs) don't match up on the two servers, so I now have files that look like
-rw-rw-r-- 1 tim 1013 88 2008-11-14 10:18 config
There is a mixture of group ownerships in the folder, and I want to keep them owned by different groups on the same server, so I can't just use chgrp -R.
How do I change all files/folders with GID 1013 to another group, without affecting other files/folders?
Thanks
I want to install these libraries in cygwin, how do I do it? are all of them available on cygwin environment or only on linux?
g++ - the version 4.4
graphviz
gnuplot
plotdrop
libboost version 1.38
libgsl0-dbg
libgsl0-dev
libgsl0ldbl
I need to convert a very large latex project (made up of many .tex and style files) into .html (or something similarly non-.pdf).
Can someone recommend a quality converter program?
Preferably, one that is:
available on linux (specifically Ubuntu)
actively maintained
Thanks!
I'm looking for a good open-source alternative to active directory that can handle:
Authorization/Authentication
Group Policy
Replication and Trust Monitoring
In addition, are there any consolidated systems out there that handle these responsibilities?
Edit: Since a lot have asked for more details, I am trying to offer a service setting up an infrastructure for organizations, hardware/software setups, right now I am looking at a Linux stack, both desktops and servers, however a hybrid stack is possible, and I am investigating alternatives.
I've installed the drivers from nVidia. When I go into the NVIDIA X Server Settings application, in the X Server Display Configuration setcion, and click the "Configure" button, "TwinView" is disabled. Also, clicking "Detect Displays" doesn't pick up my monitor (which is connected through a port replicator - keyboard and mouse in that port replicator work fine).
Has anyone else seen this? Is this just a limitation of the current nvidia linux drivers?
I am behind a proxy which requires users to login during the first connection with a username and password with a HTML form. Thus, it is not handled with usual http://username:[email protected] and any attempt to access the internet from this setting falls into the login form.
How could I automatically login to the proxy? In linux, what manages proxy stuffs when a command tries to access the internet?
Thank you.
I was getting some wild ideas the last days, like putting some operative systems into SD cards rather than on my hard drive. I'll go further into details now and explain what lead me to consider this probably abominable decision.
I am on a laptop (that means I have a native SD-card reader) which is currently running a cross-distro setup, with a bunch of Linux systems (placed in dedicated ext4 logical partitions into a huge extended one) regulated by an unique GRUB. Since today, my laptop haven't even seen any Windows system with binoculars. I was thinking about placing all the os part of my setup into a Secure Digital to save all my 500 Gb Hard Drive for documents, music, videos and so on, and being able to just remove the SD and boot my system into another computer too, as well as having the possibility of booting other systems into mine by just plugging in another SD, without having to keep it constantly placed in my PC. Also, in the remote case in the near future I just wanted to boot Windows 8 in it, I read it causes major boot incompatibility issues with other systems by needing a digital signature in order for them to start. By having it in a removable drive, I could just get rid of it when I'm needing him and switch its card with Linux one, and so not having any obstacles to their boot.
Now, my questions are: I know unlikely traditional rotating disk drives, integrated circuits ones have a limited lifespan in terms of cluster rewriting. Is it an obstacle to that kind of usage? I mean, some Ultrabooks are using SSD now, is it the same issue, or there are some differences between Solid State Drives and Secure Digitals in that sense? Maybe having them to store system files which are in fixed positions (making the even-usage of cluster technology useless) constantly being re-read and updated and similar things just gets them soon unserviceable, do it?
Second question: are all motherboards and BIOSes able to boot from SDs just like they are from USB pen drives (I mean, provided card reader is USB-connected, isn't it)? Or can't bootloaders like GRUB be installed on SDs working? If they can't, is it a solution installing GRUB to MBR and making boot option pointing to SD? Will it work? Are there any other problems to installing OSs on a Secure Digital?
Welcome!
On many computers I experienced poor performance of 32 bit guests running on 64 bit Linux host (I used only the Debian family). At last I managed to collect benchmark data.
I made the benchmark by running custom VBA macro, (which we use in our company) that generates 284 pages long Word document full of Excel Pie charts, tables and comments. The macro is run as a single task (excluding the standard services) on a set of identically configured Windows XP 32-bit systems. I measured the time (in sec.) needed to perform the test.
The computer (i.e. my notebook Asus P53E) supports both VT-d extensions and native Windows XP. It has 2-core processor, each core is hyperthreaded, so in total we have 4 mostly independent execution units.
I use the latest VirtualBox 4.2 and VMWare Workstation 9.0 for Linux, installed together on the same host (running Mint 13 Maya) but never run simultaneously.
The results (in column Time) are no less accurate than ± 10%
Here are the results (sorry for the format, but I couldn't find out a better solution for tables in SO):
+---------------+-------------+------------------------------------------------------+---------+------------+----------------+------+
| Host software | # processor | Windows kernel | IO APIC | VT-x/AMD-V | 2D Video Accel | Time |
+---------------+-------------+------------------------------------------------------+---------+------------+----------------+------+
| VirtualBox | 1 | Advanced Configuration and Power Interface (ACPI) PC | 0 | 1 | 0 | 1139 |
| VirtualBox | 1 | Advanced Configuration and Power Interface (ACPI) PC | 0 | 1 | 1 | 1050 |
| VirtualBox | 1 | Advanced Configuration and Power Interface (ACPI) PC | 0 | 0 | 1 | 1644 |
| VirtualBox | 4 | ACPI Multiprocessor PC | 1 | 1 | 1 | 6809 |
| VMWare | 1 | ACPI Uniprocessor PC | | 1 | 1 | 1175 |
| VMWare | 4 | ACPI Multiprocessor PC | | 1 | 1 | 3412 |
| Native | 4 | ACPI Multiprocessor PC | | | | 1693 |
| Native | 1 | Advanced Configuration and Power Interface (ACPI) PC | | | | 1170 |
+---------------+-------------+------------------------------------------------------+---------+------------+----------------+------+
Here are the striking conclusions:
Although I've read in the VirtualBox fora about abysmal performance with 32-bit guest on 64-bit host, VMWare also has problems compared to native run, still being twice faster(!) than VBox.
Although VBA is inherently single-threaded, the Excel calculations, which take much more than a half of total computation time, supposedly aren't. So one would expect some speed gain when running on 2+ cores ("+" for hyperthreading). What we see is a speed loss. And quite big one too.
For the VirtualBox the VT-d extension isn't a big deal.
Can anyone shed some light on why the singlethreaded Windows kernel is so much faster than the SMP one?
Hi,
Because I am using one of the new WD disks I am trying to aling my root partition with the real sectors, as described here:
http://community.wdc.com/t5/Desktop/Problem-with-WD-Advanced-Format-drive-in-LINUX-WD15EARS/m-p/10920#M631
So I copied all files to a temp location, deleted my partition (/dev/sda3), recreated it a few cylinders later (same name) and copied the files to the newly created partition. But now when I try to boot, I get my old grub menu but after selecting my kernel version it hangs... Any idea how I can fix it?
Trying to get compile psybnc on NAS. ipkg is default package manager in here. I've installed ncurses already, it's in /opt/lib (libncurses.so)
[\w] # ls /opt/lib | grep ncurses
libncurses.so
libncurses.so.5
libncurses.so.5.7
libncursesw.so
libncursesw.so.5
libncursesw.so.5.7
[\w] # file libncurses.so.5.7
libncurses.so.5.7: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, stripped
I added this path to /etc/profile
[\w] # echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/opt/lib
So trying to make menuconfig gives me this error
[\w] # make menuconfig
Initializing Menu-Configuration
[*] Running Conversion Tool for older psyBNC Data.
Using existent configuration File.
[*] Running Autoconfig.
System: Linux
Socket Libs: Internal.
Environment: Internal.
Time-Headers: in time.h and sys/time.h
Byte order: Big Endian.
IPv6-Support: Yes, general support. But no interface configured.
async-DNS-Support: Yes.
SSL-Support: No openssl found. Get openssl at www.openssl.org
Creating Makefile
[*] Creating Menu, please wait.
This needs the ncurses library. If it is not available, menuconf wont work. If you are using curses, use make menuconfig-curses instead.
make: *** [menuconfig] Error 1
Same goes for make menuconfig-curses
[\w] # make menuconfig-curses
Initializing Menu-Configuration using Curses
[*] Running Conversion Tool for older psyBNC Data.
Using existent configuration File.
[*] Running Autoconfig.
System: Linux
Socket Libs: Internal.
Environment: Internal.
Time-Headers: in time.h and sys/time.h
Byte order: Big Endian.
IPv6-Support: Yes, general support. But no interface configured.
async-DNS-Support: Yes.
SSL-Support: No openssl found. Get openssl at www.openssl.org
Creating Makefile
[*] Creating Menu, please wait.
This needs the curses library. If it is not available, menuconf wont work.
make: *** [menuconfig-curses] Error 1
Psybnc compiled ok, just wanna work with menuconfig instead of configuration file.
I haven't put much thought into this until now, but it seems odd that there is a /var/tmp and /tmp directories for most of the linux distro's I routinely use ( Ubuntu, Centos, Redhat ).
Is there any semantic difference between the two, like when whoever designed the first file system layout, he or she thought "Not all tmp file's are created equal!"
The only difference I've found for centos, is that /tmp routinely scrubs out files older then 240 hours while /var/tmp holds onto stale files for 720 hours.
I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options Show/Hide Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it persistently?
i wonder how one can monitor a lamp server (ubuntu) on production.
are there any standard tools for this to watch the server performance/load in realtime via the browser? how mysql, linux, apache etc are doing...
what is best practice regarding this?
any tutorials would be great. thanks!
What resources (books, Web pages etc) exist out there that:
explain the causes of latency in TCP/IP-over-Ethernet networks;
mention tools for looking out for things that cause latency (e.g. certain entries in netstat -s);
suggest ways to tweak the Linux TCP stack to reduce TCP latency (Nagle, socket buffers etc).
The closest I am aware of is this document, but it's rather brief.
Alternatively, you're welcome to answer the above questions directly.
O.K I am trying to do the following very simple command and it is failing as follows...
mv '/home/admin/Downloads/folder1' '/home/admin/MyLibrary/MyVideos/TV/folder1/'
mv: cannot move `/home/admin/Downloads/folder1' to a subdirectory of itself, `/home/admin/MyLibrary/MyVideos/TV/folder1/'
The destination is NOT a subfolder of the source - why is it giving me this error??
Linux version is a custom version of Red Hat on a NAS box. Thanks
On one linux server (Gentoo hardened), we are experiencing bursts of the following messages in dmesg from time to time:
TCP: Treason uncloaked! Peer xx.xx.xxx.xxx:65039/80 shrinks window 4094157295:4094160199. Repaired.
Is there anything we should take care of or is this normal?
Update: Maybe related, we are using net.ipv4.tcp_congestion_control = cubic. Kernel version is 2.6.28 with Gentoo hardening patches.
Hello all,
we are 100% Linux user across the network and we do work round clock, what happens shift change next admin come to his shift on that time what all issues comes he get resolve the issues but they just clear history from terminal. If we want record every at terminal what they have done to resolve the same issues or we can monitor as well, for trouble ticket we have internal OTRS which they update for reporting.
Thanks ton