Linux.com

Home Linux Community Community Blogs

Community Blogs



Sudo, SSH, changing to another user, and exporting the display elsewhere

I'm sure that the title is confusing to many.  This article is meant to help users in a very specific workflow:  administrators who have to frequently test applications as other users remotely.  If that's not you, you probably won't get much use out of this posting.

Read more... Comment (0)
 

Wenn mich früher nichts zum Wahnsinn brachte...

... jetzt ist es so weit.

Verschiedene Propaganda-Medien veröffentlichen hetzende Meldungen gegen die Piratenpartei und für Zensursula. Niemand von den sog. mündigen Bürgern scheint sich ernsthaft für Bürgerrechte im Internet zu interssieren. Aber das scheint unseren sog. "Volksvertretern" nicht genug zu sein. Die am meisten mitgezeichnete e-Petition des Bundestags, die sich für Löschung statt Sperren einsetzt, wird einfach uminterpretiert. Man unterstellt nicht nur, die Mitzeichner seien gegen alle Maßnahme gegen Kinderpornographie, man behauptet, dass jene Menschen, die sich im Internet sicher bewegen, weniger über Internetsperren mitreden dürfen als Senioren über 60. Ist das nicht merkwürdig? Wenn Menschen, die zum großen Teil nicht ein mal wissen, was ein Browser ist, dafür stimmen, dass Internetsperren eingeführt werden, dann sieht man darin den Willen des Volkes, obwohl dieser Teil des Volkes nicht davon betroffen ist. Wenn jedoch die Internet-Community mit etwa 140.000 Beteiligten sich gegen Zensur ausspricht, dann ignoriert man diese Stimmen, obwohl sie von eben jenen stammen, die direkt von der Zensur betroffen wären - den Internet-Nutzern.

 Wie kam es eigentlich soweit? Angefangen hat es mit dem überstürzten Aktionismus von Internetausdruckern wie Frau von der Leyen, die über anti-demokratische Maßnahmen verschiedene Provider gezwungen hat, einen Vertrag zur Sperrung von Internetseiten zu unterschreiben, da man andernfalls die Provider öffentlich anprangern würde. Provider wehrten sich, da dieser Vertrag nicht mit dem Grundgesetz abgestimmt wurde. Proteststimmen wurden laut. Also radierte Frau von der Leyen "Vertrag" aus und schrieb "Gesetz" hin. Das war zu viel! Eine Petition und diverse Bürgerrechtsbewegungen wehrten sich gegen die Sperren und forderten, dass die Seiten gelöscht statt gepserrt werden. Wie reagierte die große Koalition darauf? Man machte das Gesetz zum Spezialgesetz, entschied sich die Sperren zu ergänzen, indem man hier und da mal eine Abusemeldung schickt.

Was wegen fehlender Straftatbestände nicht vom Hoster gelöscht wird, wird eben durch die Zensurliste erfasst.

Die Copyright-Lobby hat schon Interesse  an den Sperren geäußert, Unionpolitiker fordern die Ausweitung auf eine Zensur von Videospielen im Internet und die große Koalition "entschärft" dies, indem sie das jetzige Gesetz eindeutig auf Kinderpornographie auslegt. Man ignoriert hierbei jedoch, dass man die technischen Maßnahmen für eine Zensur schafft. Eine Ausweitung auf andere Inhalte wäre nur eine Formsache, die sich über ein weiteres Gesetz schnell regeln lässt. Das wär, wie wenn man die Atombombe bauen würde und ein Gesetz erlässt, das den Abwurf über bewohten Gebiet untersagt. Ist die Atombombe erst gebaut, ist eine Gesetzesänderung nicht mehr weit.

Damit das Gesetz noch harmloser wirkt, richtet man ein unabhängiges Kontrollgremium  aus ganzen fünf Personen ein. Hierbei handelt es sich nicht um Internetexperten sondern zur Mehrheit um Richter bzw. Volljuristen. Wer sich jetzt aber endlich über unabhängige richterliche Überprüfungen freut, täuscht sich gewaltig. Es werden dem Gremium nur ein paar wenige Stichproben vorgesetzt. Die meisten Seiten auf der geheimen Zensurliste werden lediglich von denen geprüft, die die Liste aufstellen: vom BKA.

Zwei Jahre lang plant man eine Evaluierungsphase. Obwohl diese Phase nur ein Test ist, wird schon vollständige Zensur-Infrastruktur geschaffen. An die Möglichkeit erst eine Bestandaufnahme zu machen, die Seiten über Löschaufforderungen bei den Hostern aus dem Netz zu nehmen und zu schauen, ob etwas übrig bleibt, denkt man gar nicht nach! Man möchte lieber munter drauf los zensieren und schauen, ob man so nebenher auch mal ne Seite löschen lassen kann. Dabei hat man schön schwammig formuliert, dass die Beamten quasi selbst entscheiden, ob sie Lust auf echte Löschung haben oder ob sie eine Aufnahme in die Sperrlisten doch bevorzugen.

Gerne verweist man auch auf die großen Erfolge im euopäischen Ausland. Natürlich. Diese großen Erfolge. Ist es ein Erfolg, dass die Wikipedia im Vereinigten Königreich zensiert wurde? Ist es ein Erfolg, dass ThePirateBay demnächst blockiert werden soll? Ist es ein Erfolg, dass kaum eine der Seiten auf den Sperrlisten in den anderen Ländern tatsächlich kinderpornographisch ist? Ist es ein Erfolg, dass chinesische Funktionäre, deren Internetsperren wir als Zensur kritisieren, sich freuen, dass ihre Ideen endlich auch in Europa umgesetzt werden?

 

 Warum bleiben diese Politiker unblehrbar? Warum verstehen selbst eigentlich vernünftige Bürger nicht, was hier schief geht? Warum wurde dem Entwurf heute zugestimmt? Warum geben wir einfach unsere Grundrechte aus der Hand und keiner unternimmt etwas dagegen? Ich kann das einfach nicht verstehen. Früher regte ich mich nicht so heftig über Fehler der Politiker auf. Doch das hier geht zu weit. Entweder haben diese Internetausdrucker nicht kapiert, um was es eigentlich geht, oder man andere Beweggründe zu den Internetsperren.

Gute Nacht, Rechtsstaat!

 

Call for Contribution: OpenSUSE Weekly News

Since 77 Issues the Weekly News Team published the News. The News are translated to many Languages. But why i made an Call for Contribution?
If we check Planetsuse or Lizards, we can see, that mostly the Blogger are the same. Our Goal as Weekly News Team is it, to make our Publication interesting. So we need more Blogger. If you have an own Blog, we would like to motivate you, to blog. You can write about interesting Features or Tips and Tricks, or new things, you have learned. You can tell us, what you like at the Project, or what you doesn’t like. You can give Proposals or other Stuff. We need you as Author.

Then i’d like to go to the next Point: Feedback.
Sebastian one of our Teammates has created an Poll with the Question: “How are the Weekly News”? You can find it there: http://forums.opensuse.org/surveys-polls/416228-how-opensuse-news.html. Please let us know, how are the Weekly News in YOUR View. Please use also the Comment-Function for leave a Feedback. You can also use an Mail to: This e-mail address is being protected from spambots. You need JavaScript enabled to view it .

If you are can’t Blog, so you can send us interesting Blogs or Posts, that you’ve found. Only through your Contribution we can make the Weekly News better and more interesting.

We want you!!!

 

Preparing for a (short) month in China

I'll be flying out next week to China to visit my in-laws and have them meet our daughter. We'll be in the country, in QiDong Shi, Hunan.

And I'm taking a couple of USB sticks with me (1 and 8GB), loaded to boot Ubuntu Jaunty 64-bit and 32-bit.

I am planning to build a computer there for my wife parents. And of course I want it to run a Linux distribution (and my favourite one as well).

Now it will be very interesting to see how the new computer and OS will be accepted by first time Chinese user! I'm actually wondering if I should setup one one my stick to boot the new Netbook remix... that would probably have all the required user firendliness (and eye candy).

 Yeah, let's test this out on a VM this week end ^_^.

 

Zimory Simplifies, Enhances Cloud Computing Administration and Automation, Adds Hundreds to Public Cloud Gateway

 

 

 

Multiple account users, pre-booking and new automation features drive rapid adoption to world's first cloud marketplace

 

Berlin, Germany - June 18, 2009 - Deutsche Telekom spin off Zimory GmbH (http://www.zimory.com/),  a provider of enterprise-class cloud computing and supplier of the world's only "marketplace" for buying and selling cloud computing resources, has simplified pricing and enhanced automation and booking of its cloud service.

 

Launched in January, Zimory Public Cloud aggregates available server computing capacity and makes it available through an Internet platform - forming a "breathing cloud." More than 300 companies have already used Zimory Public Cloud for computing resources -- buying capacity quickly, as needed, without long-term contractual commitment. Zimory handles pricing, contracts, security, virtual machine migration and billing.

 

"Since launching our Public Cloud Gateway, we've been enabling companies to quickly and easily access the resources they need - without fear of lock in," said Behrend Freese, CEO, Zimory GmbH."Data center managers can now more efficiently use their current server capacity and are able to repurpose their excess capacity - both internally and externally through our Enterprise and Public Cloud Gateway."

 

BuildaSearch, which enables users to build search engines without being an expert developer, uses Zimory Public Cloud in the core development of its services. "Since BuildaSearch is always developing new concepts in search, our service needs a hosting provider which will meet our future growth," said Diego Montalvo, Founder of Earthoid. "The new "Search Clash" API was developed on the Zimory Public Cloud. Using the Zimory Public Cloud has helped BuildaSearch concentrate on search innovation and not on connectivity issues."

 

New to Zimory Public Cloud

  • Enhanced filtering

Zimory supplies a transparent representation of resources within the data center location, hardware and SLA. It offers comprehensive search functions as well as various technical and non-technical filtering mechanisms -- allowing resources that technically do not fit an application to be filtered out in advance.

  • Enhanced accounting & auditing

Zimory now enables account owners to add multiple users -- all users in the account can manage deployments while the account owner can monitor and lock users in the account. Moreover, a monthly report gives the main account detailed information on the individual usage of the sub-accounts.

  • Rule-based automation

Zimory simplifies creating and maintaining cloud instances by enabling the user to define rules that allow automated cloning, snap-shotting, or stopping, following definable triggers - including CPU% over a certain runtime (minimum and maximum), Memory % over a certain time (minimum and maximum) and general deployment runtime.

  • Enhanced booking of server capacities

Customers can also now pre-book capacity for a future time window - giving users guaranteed capacity on a specific cloud.

  • Planning mechanisms

Zimory Public Cloud includes a planning module which distributes virtual machines optimized to cloud resources. This planning module is required - to select, based on usage profiles and heuristics -- the best resources for each application.

  • API to manage virtual machines

All functions are controllable by a SOAP and REST-based API. Users can generate automated workflows with simple implementations (e.g. using Ruby).

  • Backup and recovery of virtual machines

Zimory provides the end user with complete VM backup management, enabling them to save their machines with little effort and restore them later - or create new clone instances from backup.

  • Multisite Hosting

A complete deployment can be copied manually to another data center within minutes, given a unforeseeable breakdown in the data center of choice. This way, Zimory Cloud users avoid serious downtimes of mission-critical applications.

 

About Zimory

A spin-off of Deutsche Telekom Laboratories, Zimory enables dynamic, on-demand movement of applications automatically between servers in one or many locations, as well as creating the world's first marketplace for computing capacity. Based in Berlin, the company develops a dynamic infrastructure solution for data centers to create a modern Adaptive Cloud Infrastructure -improving flexibility and reducing operating costs.

 

 

Firefox 3.5 / 3.6 in Ubuntu

Following on from BigC's blog post, Ubuntu users might be interested to know about a repository that contains the latest alphas and betas for Firefox.

 

 Add the following to your repository list:

deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu jaunty main

The GPG key can be found at: http://keyserver.ubuntu.com:11371/pks/lookup?search=0xB34505EA326FEAEA07E3618DEF4186FE247510BE&op=index

I've installed both 3.5 and 3.6 alongside my existing 3.0.11 and they run fine.  Neither has actually crashed on me either.

 

8 Ways to Fix Slow Email (Part 1)

Email Server Distance MapIn two earlier articles, we discussed ways to make your website load faster. Another issue many users face is the sometimes painfully slow speed of email. "What do you mean, you haven't gotten it yet? I sent that email over an hour ago?" Does this sound familiar? There are several steps that must take place between your hitting the "send" button and the recipient viewing your message. A delay in your email's journey can occur at one or more of these steps.

Part 1 of this article will address ways to optimize the speed of your network connection, in addition to the website-specific tips we focused upon in "9 Tips to Make Your Website Load Much Faster." These suggestions may increase the speed at which you can send and receive email, as well as improving the performance of your web pages and other file transfers.

1. Problem: Delays caused by the distance between you and your web server.

Solution: As with your website, you can remove one potential cause of slow email by selecting a web hosting provider that has a data center near you. This is the single most important thing you can do to increase your email speed.

While you can't control how long it will take your email to reach your recipient once it leaves your email server, or how long a message from another person will take to reach your email server, you can minimize the time it takes incoming emails to get from your server to your mailbox, and vice versa for outgoing emails.

For example, let's say Tony Traceroute, an employee in your Newark office, wants to send a large file - a CAD diagram of his new widget design - by intraoffice email to Patty Ping, who works just down the hall from Tony. If your company's server is located in Los Angeles, then when Tony hits the send button, his email will travel all the way to sunny California, through whatever routers and packet switches it encounters along the way, then all the way back to Delaware - an odyssey of some 5,000 miles - before it arrives in Patty's inbox! It might have been faster if Tony had just printed out the diagram and walked down the hall to drop it off!

The bottom line: if you rely heavily on email in your business, choosing a web hosting company with a nearby data center may save you a considerable amount of time and money.

2. Problem: Overuse of server capacity on shared servers. Every user on a shared server is allocated a certain amount of bandwidth and other server resources. When a user goes over this limit, it can slow down the other accounts on the server.

Solution: Make sure your web hosting company has policies in place to manage excessive usage by individual clients on its shared servers. Some hosting providers automatically suspend accounts that use excessive resources. While this works, the best way for a web hosting company to handle these accounts is to migrate them to a separate server where they can't negatively impact the performance of other shared accounts. If you're on a shared server, ask your web hosting company how they handle such accounts.

In addition, talk to your web hosting company to make sure that they aggressively combat spammers and other system abusers who are likely to consume system resources and slow down your website and email.

Rerouting Data3. Problem: Your email may encounter a bottleneck if there is an issue with the bandwidth provider that your web hosting company uses. Most large web hosting companies have partnerships with multiple major bandwidth providers to ensure this does not happen. Smaller hosts may not be able to afford these partnerships, leaving you susceptible to a slowdown.

Solution: Find out what types of ISP partnerships your web hosting company has. You can run a simple trace route test to see what partnerships your hosting company has with bandwidth providers. Look for major communications companies (Tier 1 or highly reputable Tier 2 providers) such as MCI-Verizon, AT&T, Mzima, Level(3), Global Crossing, etc.

Ideally, your web hosting company should have a variety of bandwidth partners. That way, your web host will be able to reroute email data quickly if one of the bandwidth providers goes down. If your web host does not have major partnerships, it may be in your best interest to look for a web hosting company that does.

Speedtest Results4. Problem: Connection problem on your end - If you're using "home-grade" equipment, and you think your connection may be slow, try running a speed test at a site such as speedtest.net. Sometimes modems and routers will go out of sync after being powered on for weeks or months at a time. This is especially true if you are using a modem and wireless router combination.

Solution: Try refreshing your connection. Simply power down both your modem and your router. Then turn the modem back on, wait a few minutes, and turn the router on (the order of these steps is very important).

If this doesn't increase your connection speed, notify your cable or DSL provider. They will test your connection speed, and they may be able to optimize your connection from their operations center.

Conclusion


• Be sure that you are located as close as possible to your web hosting company's data center.
• Ask your provider about their excess usage policies if you are hosted on a shared server.
• Make sure your web host has partnerships with the top bandwidth providers.
• Conduct basic tests with your internet provider and on your own home router/wireless setup.

 

Part 2 of this article will focus on optimization techniques that are specific to email. We'll look at issues that can slow email such as spam, misconfigured spam filters, bloated emails, and reverse DNS lookup - and what you can do to address these problems.

 

Improve jQuery Performance metrics and tuning

jQuery is a great JavaScript library, but what about its performance? Is the trade-off between ease of use and a performance hit on the Web page worth it? Is there even a performance hit at all? This article answers your jQuery performance questions and offers some tips to improve its performance in your own applications.

 

Slow Resize (And Minimize/Restore) with Compiz and Catalyst (fglrx)

Introduction

I recently came acrossed a fairly annoying issue while using the ATI Catalyst driver with Compiz-Fusion desktop effects enabled. Whenever I performed an action on a window that required the window to be redrawn, there was quite a noticeable delay while the action was being performed. Sometimes I even had to wait up to 8 seconds for the action (resize/minimize/restore) to be performed! So what exactly was going on?

Digging Deeper

After a night of mostly unsuccesful Googling for an answer, I soon realized that a lot of people were having the same issue, yet no solutions could be found. The people having the issue were using a variety of different ATI graphics cards (mine is a Mobility Radeon HD 3650).

But alas, a few beers later I came acrossed an interesting thread on the Phoronix Forums that eventually led to this post on the Ubuntu Bugzilla:

[ubuntu 9.04] slow unminimizing with ati card and desktop effects enabled

Hum, a single very small patch to xorg-server. Could this be the answer I was looking for?

Applying The Patch

This is the part that is going to vary by distribution. I use Gentoo Linux, so the process of patching xorg-server was simply a matter of copying the latest xorg-server ebuild to my local overlay . . .

$ mkdir -p /usr/local/portage/abby/x11-base/xorg-server
$ cp -R /usr/portage/x11-base/xorg-server/*
/usr/local/portage/abby/x11-base/xorg-server

 . . . then copying the patch over . . .

$ cp  ~/107_fedora_dont_backfill_bg_none.patch
/usr/local/portage/abby/x11-base/xorg-server/files

. . . and finally modifying the ebuild and creating a new Manifest:

$ vim xorg-server-1.6.1.901-r3.ebuild 
...
PATCHES=(
        "${GENTOO_PATCHES[@]}"
        "${UPSTREAMED_PATCHES[@]}"
"${FILESDIR}/107_fedora_dont_backfill_bg_none.patch"
)
...
$ ebuild xorg-server-1.6.1.901-r3.ebuild digest

So Does It Work?

A quick remerge of x11-base/xorg-server produced a quite pleasing result. The patch worked! Compiz-Fusion was smooth again, and could do everything a window manager is supposed to do without the annoyance of long delays.

Conclusion

I'm still not sure what the problem quite was, though I'm relieved that it's now fixed. It seems details are still scarce on this issue, though a look at the Phoronix thread mentioned above is probably your best bet at understanding the technical details of this issue.

Until next time!

 

Greetings

Greetings to and from my Linux.com blog! I just signed up to linux.com, congratulate me please. I registered a million years ago and never actually maintained my profile then. However since linux.com has revamped it's appearance and linux is becoming even more mainstream (I stress the EVEN MORE) I'm inclined to keep up to date with the buzz.

 

Google Chrome - I just installed Chrome and my first impressions about it are that it is fast and impressive. (I installed it on my Mac Mini Intel running WinXP SP3) I'm wondering if it's also available for Linux? I love the integration of Google products.

 

I'm currently downloading the latest HP MIE distro which is the new and innovative OS HP has designed and is shipped with the HP MINI 1000. I however own a HP2133 and I plan on an installation soon as the download is complete. I will post back my progress here.

 

ATI Catalyst (fglrx) and Kernels 2.6.30 / 2.6.29

Updates / Changes

  • 29 July 2009 - Gentoo now has Catalyst 9.7 drivers in the official tree. Should work with kernels 2.6.29 and 2.6.30 as well. A leaked beta ATI driver has given us hope that the next version of fglrx will finally support these kernels without patching.
  • 26 July 2009 - Well, I just realized that Catalyst 9.7 drivers have been released. I've seen conflicting reports as to whether Gentoo's patches for 9.6 can be used with 9.7. If they don't work, then try this.
  • 27 June 2009 - As of yesterday, the patches discussed below are in the official portage tree! Hooray Gentoo!!!

Introduction

Until the developers over at Mesa, Xorg, and the Linux Kernel commit the latest developments to finally bring open source 3D drivers to those of us with newer ATI graphics cards, our only option is the proprietary Catalyst driver.

Not that this is a problem for most people. But for those of us who wish to have the latest stable kernel running on our systems (2.6.30), it may seem we are out of luck.

Well not anymore!

Catalyst For Kernels 2.6.30 / 2.6.29

The folks over at Gentoo have recognized the demand for Catalyst on newer kernels. And though the discussed patches have not been applied to the Catalyst drivers in Portage, you can still apply them yourself with a little overlay magic. Non-Gentoo users will have to adapt this distribution specific process to their system, sorry.

First, download the patches here. Here's what you'll need:

For kernel 2.6.29 -

  • 2.6.29_support.patch

For kernel 2.6.30 -

  • fglrx-2.6.30-irqreturn_t.patch
  • fglrx-rt-compat.patch
  • fglrx-missing-pci_enable_msi.patch

You will also need ati-drivers-8.612.ebuild from the bugzilla. The latest version mentioned on the bug entry should be fine, as it works with both of the mentioned kernel versions. (Note: the aforementioned ebuild corresponds to Catalyst 9.5. If you want to use Catalyst 9.6, you'll need to update the ebuild accordingly)

These patches should apply to Catalyst 9.5 and 9.6. Other versions have not been tested.

Alright, now if you have a local overlay, great! If not, see this guide to learn how to create one. I won't go into the specific process of creating an overlay for the sake of brievity.

First, let's copy the ati-drivers ebuilds to our overlay . . .

$ mkdir -p  /usr/local/portage/abby/x11-drivers/ati-drivers
$ cp -R /usr/portage/x11-drivers/ati-drivers/*
   /usr/local/portage/abby/x11-drivers/ati-drivers

 . . . now overwrite the ebuild in there with the one from the bugzilla . . .

$ cp ~/ati-drivers-8.612.ebuild /usr/local/portage/abby/x11-drivers/ati-drivers

. . . and copy over the patches you downloaded.

$ cp ~/my-ati-patches/*  /usr/local/portage/abby/x11-drivers/ati-drivers/files

Great! Now let's create the new manifest.

$ ebuild ati-drivers-8.612.ebuild digest

Now we're all ready to roll! Remerge ati-drivers and you will now have 3D acceleration on a brand spanking new kernel. Congrats!

Caveats

 If you get a bunch of crap filling up your dmesg from the patched fglrx driver, don't worry too much about it as it seems to be harmless.

Conclusion

 I'm sure we all eagerly await the day we finally get open source 3D drivers for our ATI cards. AMD deserves a lot of credit releasing the documentation and funding the developers to make that happen. So sit tight folks, the day is soon coming that the open driver surpasses the proprietary one.

 
Page 113 of 155

Upcoming Linux Foundation Courses

  1. LFS201 Essentials of System Administration
    12 Jan » 30 Mar - Online Self-Paced
    Details
  2. LFS220 Linux System Administration
    13 Apr » 16 Apr - Virtual
    Details
  3. LFS230 Linux Network Management
    13 Apr » 16 Apr - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board