John Moser | 17 May 15:55
Picon

[RFC] zswap for Precise, with script

Any thoughts on this?  I wrote it on a whim after installing an SSD and 
completely disabling all swap.  Haven't checked to see if Ubuntu 
supports hibernate to file yet (creating a hibernation file on demand 
would be optimal for me...)

This works with kernel 3.2.0 ... 3.0 used num_devices as the parameter 
for zram, while 2.6.32 used num (I think).  They keep changing the 
parameter name!

This init script (sorry, I have no clue how to write an upstart job) 
will load zram, set one of its devices to a given size, create swap on 
it, and turn that swap on.  It'll also deactivate the swap and free the 
associated RAM.

Accepted sizes are "half" and "quarter" of installed RAM as gotten by 
MemTotal in /proc/meminfo; any size in bytes; or suffixed K, M, G sizes.

/etc/default/zswap can contain the following variables:

# Set to 1 to disable
ZSWAP_DISABLED=0

# Number of /dev/zramX devices
ZRAM_NUM_DEVICES=4

# Swap device is /dev/$ZSWAP_DEVICE
ZSWAP_DEVICE="zram0"

# Size
ZSWAP_SIZE="quarter"
(Continue reading)

Ben Greear | 17 May 00:40
Favicon

Questions and patches related to casper.


I have been having issues trying to do a persistent-usb image for
Ubuntu 12.04.

*  /cow is not checked with fsck on startup.  (casper patch to fix this attached)

* /cow is not visible in / by default.  I think this is required if
   we are ever to be able to unmount /cow cleanly.
   (fixed by attached casper patch).

* /cow cannot be cleanly un-mounted on shutdown

   I've made some attempts, but have not gotten this working.
   The attached '/etc/init.d/umountroot' contains my attempts.

I'd love to get this working cleanly....so please let me know if you
have any suggestions.

I'm not sure if Ubuntu uses 'signed-off-by' for this type
of thing, but if so, consider it:

Signed-off-by:  Ben Greear <greearb <at> candelatech.com>

Thanks,
Ben

--

-- 
Ben Greear <greearb <at> candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

(Continue reading)

Edwin Günthner | 14 May 13:25
Picon

12.04 - question/feedback on "sound settings"

Hello there,
I hope this is a good place to send my thoughts to, but any hints for places that would fit better are appreciated.

Before raising my question/feedback some words on my typical user pattern:
I am using a laptop that I carry from home to the office. In the office, my laptop sits in my docking station;
and my headset stays plugged in that docking station too. When I am using my laptop outside of the 
docking station ... I dont care about audio. When I put my laptop in the docking station, I want to use
the headset ALWAYS. 
So, in the past, i would go to the "sound settings", select the laptop "internal audio" ... and change its
"profile" to "off". As a consequence ... 
laptop in docking station ... internal audio is "off" ... my headset is used
laptop outside docking station ... no sound, unless I enable on purpose
But now, with 12.04 ... the "profiles" are gone. "Internal audio" is enabled all the time. I can mute it,
but whenever I un-dock the laptop ... and dock back, it forgets about the fact that I very much
prefer "headset" over "internal audio".
Consequence: EVERY time I put the laptop in the docking station ... I have to open the sound
settings and to configure stuff. The stupid panel wont even remember that I selected 
my headset ... the last time the headset was there.
So my feedback is: taking away the "profiles" was a HUGE step backwards
My questions:
a) is there an easy way that would support my "usage pattern"?
b) is there a way to run the "gnome 3" sound settings panel from within unity?
(they still have "profiles" in there methinks)
c) sorry, to say that; but why wasnt it done it the right way anyway?
In that sense, the KDE way - KDE allows you to change the prefered order of audio devices as you want, 
the system will remember preferences for all devices, even when they are not present at some point
(to be honest: KDE got it wrong in the sense that they show you zillions of audio devices, but hey, you configure it once,
and then you are good forever ...)
regards,
eg
  

Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.   
https://produkte.web.de/freemail_mobile_startseite/

Power off not really working on system with EFI BIOS

I've an Gateway FX6850-51u desktop.  This is an EFI system, and until few Ubunutu releases ago, there was a kernel bug that caused kernel to crash on shutdown or reboot.  This bug was fixed some time ago, and my system reboots correctly (see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/721576).  However on shutdown kernel now only displays "Power down." message on console, but it does not power down the system.  It's kind of odd.  Are there some settings to fiddle with or diagnostic I could run?

Paul Smith | 10 May 01:27
Favicon

Problems with setuid app in Ubuntu 12.04

Hi all.  I've recently installed Ubuntu 12.04 64bit.

I'm using a proprietary VPN utility from Juniper Networks on my Linux
system.  In previous versions of Ubuntu, it worked just fine.  In the
current version of Ubuntu, I'm getting failures.  For some reason it's
not letting me invoke a setuid application.

The way it is deployed is it unpacks into a hidden directory under
$HOME, then the main VPN program needs to be made setuid root so that it
can be invoked by me but do root-y things.

Then, you can either run the tool directly from the command line or you
can run a little Java control window which manages the VPN.  If I run
the program directly from the command line, the setuid works and the VPN
comes up and works fine.  But, I can't control it or see how long it's
been up.

Whenever I try to use the Java control panel the GUI comes up and tries
to run the setuid program, but it fails and then the whole thing
crashes.  I get this error:

  Failed to setuid to root. Error 1: Operation not permitted

But I have clearly set the right bits and it works when invoked
directly.  I've tried many different variations of Java including
downloaded ones directly from Sun/Oracle.

One note, the application is 32bit and so I need to run 32bit Java as
well.  Not sure if that matters.

Has the 12.04 release installed some new security measures that might be
keeping my setuid program from working properly?  I've tried putting
Java under /opt/jvm and also run "service apparmor teardown" to try to
be sure apparmor is not involved, but I don't know enough to know if I
succeeded.

I'm really stuck and could use any pointers or tips anyone has.

Sivan Greenberg | 9 May 17:30

questions about current ways of work in Ubuntu release process

Hi All,

 Some of you might remember me, some of you won't. I used to be part
of the Ubuntu community and loved every minute of it. I've been drawn
to some other open source projects since then, but the apparent
quality boost I'm experiencing with 12.04 has left me eager and
curious about things, not to mention Mark's helped to engage this
curiosity[0].

So, I'm terribly curious about:

1) "we’ll ratchet up the continuous integration" - What sort of
continues integration system Ubuntu is using now? I guess its based on
Jenkins ? I'd love to read the gory details somewhere.
2) "smoke testing" - is it done by hand by Ubuntu members, or also
taken care of by the CI system?
3) "automated benchmarking of the release" - How's that done? Again,
happy to read the gory details somewhere ;)
4) "..both qualitative and quantitative, with user research and
testing continuing to shape our design decisions.." - How is user
research being conducted? for testing, I suppose there's the community
QA team the has the test cases executed by hand? How is it shaping the
design decision? Are there new Launchpad modules that assist in that?
5) Is 'Fauna' another software / cloud component? (I've never seen
such a blog post with so many cryptic words for the non native English
speaker ;)
6) Where can I read more about 'Quantum' , the virtualized network
madness in the cloud  ;) ?

Kudos to the great team of Ubuntu - reading all of this and asking all
those question makes me wanna rejoin the party again, doing some catching up.
I might also try to pitch up some of the practices to the other open
source projects I'm part of ;)
(I've always admired the way we do things in Ubuntu!)

-- 
-Sivan

--

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss <at> lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Paul Smith | 8 May 17:19
Favicon

Where is libgcr-3-common:i386?

I'm trying to run a program under Wine in my Ubuntu 12.04 64bit fresh
installation.  When I run it I get this error:

        p11-kit: couldn't load
        module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:
/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such
file or directory

I've discovered that the 64bit version of that file lives in
gnome-keyring and so I tried to "sudo apt-get install
gnome-keyring:i386".  I found some libraries it requires and those
require other libraries, all of which do exist, until I get down to a
requirement for:

        $ sudo apt-get install libgcr-3-common:i386
        Package libgcr-3-common:i386 is not available, but is referred
        to by another package.
        This may mean that the package is missing, has been obsoleted,
        or
        is only available from another source

        E: Package 'libgcr-3-common:i386' has no installation candidate

However it's odd because if I go to the Ubuntu site to look it up, that
library seems to be packaged properly; for example:

        https://launchpad.net/ubuntu/precise/i386/libgcr-3-common

Can anyone explain what the message means and how I can get a copy of
that library to install?  Am I missing some extra repo (I think I've
turned them all on at this point)?

Alfred Zhong | 4 May 03:07
Picon

Major Page Fault Handler in the Linux Kernel

Hi Dear Ubuntu developers and kernel hackers,

I am wondering where is the major page fault handler.

I wrote an algorithm to minimize page faults in the kernel. So I need to record something whenever a page fault happens. I currently record a page fault happen at do_page_fault(...) in arch/x86/mm/fault_32.c

However, it seems both minor and major page fault will go to do_page_fault(...) ...
And minor page faults happen all the time and messed up the algorithm.

I guess I only want to record stuff when a major page_fault happens. So, kernel hackers, would you please tell me where should I put my code? Which file and which function.


By the way, I am hacking kernel 2.6.24

Thank you very much!
Alfred

Jeroen Ooms | 3 May 00:14
Favicon

mysql-server ships with user *

After upgrading to Ubuntu 12.04 my install script broke, which turns
out to be related to the default * users in MysQL. When I installed
mysql-server on a brand new fresh Ubuntu 12.04 install, it had two
'wildcard' users, which wasn't the case on 11.10 / 5.0:

mysql> select host, user from mysql.user;
+---------------+------------------+
| host          | user             |
+---------------+------------------+
| 127.0.0.1     | root             |
| ::1           | root             |
| jeroen-ubuntu |                  |
| jeroen-ubuntu | root             |
| localhost     |                  |
| localhost     | debian-sys-maint |
| localhost     | root             |
+---------------+------------------+
7 rows in set (0.00 sec)

These wildcard users allow a client to login with an arbitrary
username. However, it will also match for any existing user. Hence a
problem occurs after additional users are inserted into the table:

INSERT INTO mysql.user
VALUES('%','myroot','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'','');
FLUSH PRIVILEGES;

When logging in with user 'myroot', it is first matched to the
wildcard user and hence logged in as user ""@"localhost" instead of
"myroot"@"localhost". The problem can be avoided by deleting this
wildcard users from mysql.user.

I suspect that more people are running into this problem. What is the
intention of including this wildcard user? Is there any way I can
force mysql client to login with "myroot"@"localhost" instead of
""@"localhost"? I want my install script to work on general machines
but I don't want to just start removing pre-existing users...

Alfred Zhong | 1 May 03:53
Picon

Linux (or Ubuntu specific) tools to measure number of page faults

Dear Ubuntu Developers, especially Kernel Hackers, 


This may be a stupid question, please excuse my ignorance. 

I am doing a project on Linux scheduler that trying to minimize number of page faults.

I finished the algorithm implementation and I need to measure the effect. I am wondering if Linux provides tools to record number of page fault happened during the whole execution process?

Basically, I want something like $ pfstat ./a.out page faults: 3 Execution Time: 1003 ms

Is there such a tool? I want to make sure before deciding to write one by myself, which will be a lot of work...

Thanks a lot! 

Alfred


Christian Brandes | 25 Apr 10:36
Picon
Favicon

RHCS does not work on preceise!!! --- ccs_config_validate exits with 191

Hi all,

RHCS does not work on preceise!!!

> I have got a problem with "ccs_config_validate".
> I says: "Unable to update relaxng schema: /usr/sbin/ccs_config_validate: line 191:
ccs_update_schema: command not found."
> This bug is described in
"https://bugs.launchpad.net/ubuntu/+source/redhat-cluster/+bug/956383" but no solution found yet.
ccs_config_validate still does not work.

I have this problem since one month! And no solution yet!!!

Who is responsible? Who has built the "cman-package"?

Please could anyone help me?!?!

Best regards
Christian


Gmane