Re: 3.7 kernels and kswapd
by JD
On Tue, Nov 27, 2012 at 1:03 PM, Bruno Wolff III <bruno(a)wolff.to> wrote:
> Upstream is pretty sure they know the causes of the kswapd issues. Two of
> the three patches should be in the latest rawhide kernel. So you already
> might see better results with that kernel. I would expect the third patch
> to make it in soon.
>
Thank for the heads up Bruno.
I am still booted in the 3.7.0-git kernel because
it is keeping the disks from sleeping or it is properly waking
the disks up before committing reads and writes.
However, because of the current kswapd, building a kernel is taking an
inordinately long time, so it will be likely 2 or 3 days on my old unicore
Athlon64 3700+ before I can boot the new 3.7X
11 years, 4 months
freenx-server with xfce
by Joseph L. Casale
I haven't setup nx in some time but with rhel it was trivial. With the default key or
custom keys, I can't get it to accept a connection. Im using xrdp for now but it has
less than desirable side effects so getting nx working would be a plus. Anyone using
it with xfce in f18?
Thanks!
jlc
11 years, 5 months
Re: <Private> Re: dynamic ip ok for NFS/LDAP servers? Network Gurus?
by Reindl Harald
Am 30.11.2012 19:23, schrieb Joe Wulf:
> Reindl,
>
> I was instantly thrilled to see you had a process (script?) for
> auto-generating dhcpd.conf in concert with a DNS database.
> Is it possible for you to share the scripts and/or documentation for how
> you generate, implement and/or manage your
> dns and dhcp configurations?
>
> I've been working a project that would greatly benefit from not having
> to reinvent the wheel
the dhcp-wheel is simple, see below, you need a db-layer
or replace some commands to work directly with php-mysqli
write your config with base-values and a placeholder
for the generated stuff somewhere else, generate the
new config file based on the database and write it to
disk if it differs from the old one an restart the service
the dns-wheel i can not share because it is based on inernal
libraries and our own cms-system and hardly wired to work
with a lot of code for other services which a do not like
to implement more generic beause i need here admin-code
witout comprmoises by maintain all sort of network-services
cat /scripts/dhcp/dhcpd.conf.template
authoritative;
ddns-update-style none;
ddns-updates off;
default-lease-time 86400;
max-lease-time 172800;
log-facility local7;
subnet x.x.x.0 netmask 255.255.255.0 {
option domain-name "thelounge.net";
option domain-name-servers x.x.x.6, x.x.x.106, x.x.x.15;
option routers x.x.x.1;
option smtp-server x.x.x.15;
option pop-server x.x.x.15;
option ntp-servers x.x.x.103, x.x.x.110;
option time-servers x.x.x.103, x.x.x.110;
option subnet-mask 255.255.255.0;
option broadcast-address x.x.x.255;
option interface-mtu 1472;
range x.x.x.x x.x.x.x;
}
[static]
_______________________________________________________________________
cat /scripts/dhcp/dhcpd-entry.template
host [entry_name] {
hardware ethernet [entry_mac];
fixed-address [entry_value];
}
_______________________________________________________________________
cat /scripts/dhcp/generate.php
#!/usr/bin/php
<?php
require('global.inc.php');
$db = new mysql_class();
$db->host = '****';
$db->user = 'dns';
$db->pwd = '****************';
$db->db = ''****************';';
$db->connect();
$conf_file_live = '/etc/dhcp/dhcpd.conf';
$template_file = file_get_contents(dirname(__FILE__) . '/dhcpd.conf.template');
$template_entry = file_get_contents(dirname(__FILE__) . '/dhcpd-entry.template');
$static = '';
$result = $db->query_fetch_all("select entry_name, entry_value, entry_mac from dns_intern_entrys where
entry_type='A' and entry_zone_cleartext='thelounge.net' and entry_mac!='' order by entry_name;");
foreach($result as $row)
{
$static .= MY_LE . str_replace
(
array('[entry_name]', '[entry_value]', '[entry_mac]'),
array($row['entry_name'], $row['entry_value'], strtoupper($row['entry_mac'])),
$template_entry
);
}
$conf = trim(str_replace('[static]', $static, $template_file)) . MY_LE;
if(@file_get_contents($conf_file_live) != $conf)
{
file_put_contents($conf_file_live, $conf);
chmod($conf_file_live, 0644);
$out = '';
$temp = popen('/sbin/service dhcpd condrestart', 'r');
while($buffer = fread($temp, 1024))
{
$out .= $buffer;
}
pclose($temp);
echo $out . MY_LE . MY_LE . MY_LE;
echo $conf;
}
?>
11 years, 5 months
Multi-Threaded make
by JD
While building the kernel from source RPM, I run
the command ps -ef | grep make in another terminal,
and I do see that 4 make processes are running, with
each one building objects for a different kernel source
directory.
However, something else seems to be single threaded
which is causing the huge delay in finishing kernel build.
I found that when I run top to see the upper-most
cpu consumers, I see only one cc1 process at the top.
So I ran ps again to see how many cc1 processes there
are.
Always - just one cc1 process.
I would expect to see anywhere from 1 to 4 cc1 processes
at a time. But that is not the case.
What is forcing only a single instance of cc1 at a time?
I hope the devs can have a look at either the compiler
tools or the make util.
11 years, 5 months
[F18] How do I set "browse" as the default open type in nautilus?
by thomas cameron
Looks like Gnome is doing the same thing that Microsoft did after XP. I
can no longer set nautilus so that when I double click on a directory,
it opens up with the filesystem tree in the left pane, and the contents
of my directory in the right pane in *list* view. I used to be able to
set a checkbox for 'always open in browse mode" or something similar,
but I can't find that in F18 beta.
Is that option still around? Where is it hiding?
Thomas
11 years, 5 months
slightly OT - user-specific postscript config files?
by Cameron Mura
Hello,
apologies for this being slightly off-topic (I work in Fedora, so this
list occurred to me as one place to ask the question...)
In a nutshell: I'm wondering if anyone could point me to useful
resources that describe where user-specific Postscript
information/customizations/etc. are stored on a standard, vanilla Fedora
installation ? I really do mean /user-specific/ (not global)
preferences here, so I imagine the info/settings probably live somewhere
in $HOME/, but my Linux/Fedora print config knowledge has become
outdated and quite rusty... I tried some obvious things -- like blasting
away the $HOME/.gtklp that exists if one has GtkLP installed (this is a
GTK frontend to CUPS) -- but all this was to no avail, my page-scaling
problem persists. I've also searched extensively online for the info
(queries like "linux postscript user customization file"), but still
can't find anything.
A bit of backstory: Suddenly, any email I print from Thunderbird, by
sending to the default print queue, ends up being scaled-down by a
factor of ~0.8x, positioned flush-left and flush-bottom on the
standard-sized (8.5"x11" letter) paper. I learned the following from
various troubleshooting efforts and tests:
1. problem is not the printer itself -- e.g., a simplex queue on the
same printer works fine (problem is I use duplex)
2. problem is not Thunderbird-specific -- I initially thought I must
have mung'd a t-bird setting in prefs.js or something like that,
but turns out that's not the problem -- interestingly, this
scaling problem does /not/ occur if I print a PDF file to the
troublesome print queue, but it /does/ occur if I print a
postscript file from any postscript-aware app (e.g. okular), which
led me to conclude it's some generic postscript config problem...
3. problem is not global, but rather is user-specific -- the scaling
problem does not occur with another user account on the same machine
From the above I deduced it's some user-specific Postscript weirdness,
and was hoping this could be traced to something in $HOME, but for the
life of me I can't get any further.... maybe I'm missing something
obvious?!?
...any tips or pointers to online resources would be greatly appreciated!
thanks,
cam
11 years, 5 months
building from kernel source rpm
by JD
Hi Bruno, Alan,
The rpmbuild interface does not provide the user a way
to go through the entire config options before proceeding
to build the kernel. If it does, I would really like to know
how it's done.
The current rpmbuild of the kernel builds bazillions of
drivers, most of which are very likely not needed by
the user's platform. This leads to an extremely time
consuming default build, and in my case, I have only
one machine which is a unicore.
Other problems are features that a user might neither
want nor need.
Is there a way to propagate this issue to development leads?
Thanx.
11 years, 5 months
Need help with minimal install on ee701
by Robert Moskowitz
I did the minimal install on my ee701. At least the first attempt.
I set my swap at 768Mb, and left /boot at 500Mb (probably could shrink
this next time). This left 2.7Gb for /
That swap will be too small for hibernate....
So a minimal install with also selecting Gnome (and deselecting a few
things like snapwell or whatever it is called) resulting in only 737Mb
used in /! Now I have a local repo, so I was able to select my local
update repo to eliminate the update step.
So when the computer boots, I come up in multiuser, not graphical and it
did not prompt me to create a non-root user and all those other first
time boot options of a regular install. Sooo...
How do I start gnome so I can use its tools for things like creating my
userID?
Whatelse do I need to set from the 1st time boot?
How do I change the runtime to grahical with no /etc/inittab? I looked
at what inittab has in it now and tried the ln command:
ln -s /lib/systemd/system/graphical.target
/etc/systemd/system/default.target
But of course this fails as there already is the symbolic link to
multi-user.
It was quite a pain getting to this point as the ee701 has a narrow
screen and you cannont move the screens in install to see what is off
the bottom of the screen. You just have to guess....
11 years, 5 months