Re: [gentoo-user] Re: [OT] LENOVO Z510 + Dual Boot + Gentoo == True ?

2014-03-10 Thread Mick
On Saturday 08 Mar 2014 20:22:12 »Q« wrote:
 On Sat, 08 Mar 2014 08:23:21 +0100
 
 Dan Johansson d...@dmj.nu wrote:
  I am considering buying a new Notebook and found that a LENOVO
  IdeaPad Z510 would fit into my budget and seems quite OK.
  Does anyone here on the list have any experience with the Z510 running
  dual-boot (Win8.x and Gentoo) that would like to share their
  experience?
 
 I have an Ideapad y510p that's dual-booting Win8.x and Gentoo.  It
 shipped with 8.0 and after I got it dual-booting I upgraded to 8.1.
 It's not quite the same model, but I guess it can't hurt to type what I
 remember.  I didn't take notes, because if I ran into any trouble it
 was my plan just to wipe the drive and install only Gentoo.  I just
 flew by the seat of my pants, so I'm sure this isn't the smartest way
 to do things.
 
 My model came with a smallish SSD meant for caching.  The SSD is sda and
 the HDD is sdb.
 
 Here's the current state of sdb, from gdisk:
 
 Number  Start (sector)End (sector)  Size   Code  Name
12048 2050047   1000.0 MiB  2700  Basic data
 partition 2 2050048 2582527   260.0 MiB   EF00  EFI system
 partition 3 2582528 4630527   1000.0 MiB    Basic data
 partition 4 4630528 4892671   128.0 MiB   0C01  Microsoft
 reserved part 5  1563490304  1870690303   146.5 GiB   0700  Basic
 data partition 6  1870690304  1923119103   25.0 GiB0700  Basic
 data partition 7  1923119104  1953523711   14.5 GiB2700  Basic
 data partition 8  1562466304  1563490303   500.0 MiB   0700
9 4892672 5199871   150.0 MiB   0700
   10 519987221583871   7.8 GiB 0700
   1121583872  1562466303   734.8 GiB   0700
 
 sdb1-sdb7 existed on the drive when I got it.  sdb5 is where Windows is
 installed.  To make room for Gentoo, I shrunk sdb5 it and slid it to the
 end of its space using the GUI partition tool on System Rescue CD,
 which I think is gparted.  I also used System Rescue CD to install
 Gentoo.  It's important to boot System Rescue CD in EFI mode, at least
 for installing the bootloader.
 
 sdb8 is meant for an installation of System Rescue CD, but I haven't
 gotten around to installing it.
 
 sdb9 is /boot, sdb10 is swap, and sdb 11 is Gentoo /
 
 I emerged grub in the chrooted environment.  I mounted sdb2
 at /boot/efi, installed grub on sdb9 (/boot), and ran grub-mkconfig to
 make a config file for grub. The output indicated that it had found
 both Gentoo and Windows.  The bios (or whatever it's called now)
 setup recognized grub as a new EFI-booting option and let me move it to
 first priority, and I got to the grub menu.
 
 grub booted Gentoo just fine, but Windows booting failed, something
 about not finding partitions or files.  Instead of troubleshooting that,
 I disabled os probing for grub (GRUB_DISABLE_OS_PROBER=true
 in /etc/default/grub) and added Windows via /etc/grub.d/40_custom ,
 like so:
 
 menuentry Windows 8.x {
 set root='(hd1,gpt2)'
 chainloader /EFI/microsoft/BOOT/bootmgfw.efi
 }
 
 Running grub-mkconfig after that got me a grub.cfg which works to boot
 Gentoo and Windows, though I don't get any fancy options for Windows,
 such as safe mode.

If you moved the MSWindows OS or boot partitions then the UUIDs would have 
changed.  You'll need to edit the MSWindows boot menu (in the MSWindows boot 
partition) and change their entrie(s) accordingly.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: [OT] LENOVO Z510 + Dual Boot + Gentoo == True ?

2014-03-10 Thread Matti Nykyri
On Mar 10, 2014, at 15:33, Mick michaelkintz...@gmail.com wrote:

 On Saturday 08 Mar 2014 20:22:12 »Q« wrote:
 On Sat, 08 Mar 2014 08:23:21 +0100
 
 Dan Johansson d...@dmj.nu wrote:
 I am considering buying a new Notebook and found that a LENOVO
 IdeaPad Z510 would fit into my budget and seems quite OK.
 Does anyone here on the list have any experience with the Z510 running
 dual-boot (Win8.x and Gentoo) that would like to share their
 experience?
 
 I have an Ideapad y510p that's dual-booting Win8.x and Gentoo.  It
 shipped with 8.0 and after I got it dual-booting I upgraded to 8.1.
 It's not quite the same model, but I guess it can't hurt to type what I
 remember.  I didn't take notes, because if I ran into any trouble it
 was my plan just to wipe the drive and install only Gentoo.  I just
 flew by the seat of my pants, so I'm sure this isn't the smartest way
 to do things.
 
 My model came with a smallish SSD meant for caching.  The SSD is sda and
 the HDD is sdb.
 
 Here's the current state of sdb, from gdisk:
 
 Number  Start (sector)End (sector)  Size   Code  Name
   12048 2050047   1000.0 MiB  2700  Basic data
 partition 2 2050048 2582527   260.0 MiB   EF00  EFI system
 partition 3 2582528 4630527   1000.0 MiB    Basic data
 partition 4 4630528 4892671   128.0 MiB   0C01  Microsoft
 reserved part 5  1563490304  1870690303   146.5 GiB   0700  Basic
 data partition 6  1870690304  1923119103   25.0 GiB0700  Basic
 data partition 7  1923119104  1953523711   14.5 GiB2700  Basic
 data partition 8  1562466304  1563490303   500.0 MiB   0700
   9 4892672 5199871   150.0 MiB   0700
  10 519987221583871   7.8 GiB 0700
  1121583872  1562466303   734.8 GiB   0700
 
 sdb1-sdb7 existed on the drive when I got it.  sdb5 is where Windows is
 installed.  To make room for Gentoo, I shrunk sdb5 it and slid it to the
 end of its space using the GUI partition tool on System Rescue CD,
 which I think is gparted.  I also used System Rescue CD to install
 Gentoo.  It's important to boot System Rescue CD in EFI mode, at least
 for installing the bootloader.
 
 sdb8 is meant for an installation of System Rescue CD, but I haven't
 gotten around to installing it.
 
 sdb9 is /boot, sdb10 is swap, and sdb 11 is Gentoo /
 
 I emerged grub in the chrooted environment.  I mounted sdb2
 at /boot/efi, installed grub on sdb9 (/boot), and ran grub-mkconfig to
 make a config file for grub. The output indicated that it had found
 both Gentoo and Windows.  The bios (or whatever it's called now)
 setup recognized grub as a new EFI-booting option and let me move it to
 first priority, and I got to the grub menu.
 
 grub booted Gentoo just fine, but Windows booting failed, something
 about not finding partitions or files.  Instead of troubleshooting that,
 I disabled os probing for grub (GRUB_DISABLE_OS_PROBER=true
 in /etc/default/grub) and added Windows via /etc/grub.d/40_custom ,
 like so:
 
 menuentry Windows 8.x {
set root='(hd1,gpt2)'
chainloader /EFI/microsoft/BOOT/bootmgfw.efi
 }
 
 Running grub-mkconfig after that got me a grub.cfg which works to boot
 Gentoo and Windows, though I don't get any fancy options for Windows,
 such as safe mode.
 
 If you moved the MSWindows OS or boot partitions then the UUIDs would have 
 changed.  You'll need to edit the MSWindows boot menu (in the MSWindows boot 
 partition) and change their entrie(s) accordingly.
 

Not necessarily. You can make uuid identical. It is just data on disk. Even if 
you change the order of partitions windows can be tricked with grub by changing 
the bios order of drives through mapping. After that windows boots without 
modification. I've tested this up to win7. Grub and dd are only tools you need.

--
Matti


 -- 
 Regards,
 Mick



[gentoo-user] slim/X11 : waiting for X server to begin accepting connections.

2014-03-10 Thread meino . cramer
Hi,

it seems the powerfail this moring while I was updateing my Linux box 
has killed / screwed up something.

The effect:
Slim login manager starts and presents the login screen.
It is possible to login but openbox seems not to start -
I get the typical cross-cursor in the middle of the screen
(but the grey background is replaced by plain black)
The last entry in the slim.log is:

slim: waiting for X server to begin accepting connections.
slim: open_session: Unable to open session: Unable to get information
about the calling process
 
I resumed the interrupted update process, I did:
emerge xf86-input-evdev xf86-input-keyboard xf86-input-mouse
nvidia-drivers
I recompiled the X-server.
Nothing helps.

What can I try else to get X working again?

Thank you very much for any (quick;) help in advance!
Best regards,
mcc






Re: [gentoo-user] slim/X11 : waiting for X server to begin accepting connections.

2014-03-10 Thread Alexander Kapshuk
On 03/10/2014 08:05 PM, meino.cra...@gmx.de wrote:
 Hi,

 it seems the powerfail this moring while I was updateing my Linux box 
 has killed / screwed up something.

 The effect:
 Slim login manager starts and presents the login screen.
 It is possible to login but openbox seems not to start -
 I get the typical cross-cursor in the middle of the screen
 (but the grey background is replaced by plain black)
 The last entry in the slim.log is:

 slim: waiting for X server to begin accepting connections.
 slim: open_session: Unable to open session: Unable to get information
 about the calling process
  
 I resumed the interrupted update process, I did:
 emerge xf86-input-evdev xf86-input-keyboard xf86-input-mouse
 nvidia-drivers
 I recompiled the X-server.
 Nothing helps.

 What can I try else to get X working again?

 Thank you very much for any (quick;) help in advance!
 Best regards,
 mcc




Sounds like a problem other folk encountered before. See
https://forums.gentoo.org/viewtopic-t-983068.html?sid=322897f0f12db44e211be450629bfbc1
for details. Hope this helps.





Re: [gentoo-user] slim/X11 : waiting for X server to begin accepting connections.

2014-03-10 Thread the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 03/10/14 22:05, meino.cra...@gmx.de wrote:
 Hi,
 
 it seems the powerfail this moring while I was updateing my Linux
 box has killed / screwed up something.
 
 The effect: Slim login manager starts and presents the login
 screen. It is possible to login but openbox seems not to start - I
 get the typical cross-cursor in the middle of the screen (but the
 grey background is replaced by plain black) The last entry in the
 slim.log is:
 
 slim: waiting for X server to begin accepting connections. slim:
 open_session: Unable to open session: Unable to get information 
 about the calling process
 
 I resumed the interrupted update process, I did: emerge
 xf86-input-evdev xf86-input-keyboard xf86-input-mouse 
 nvidia-drivers I recompiled the X-server.
You might want to try emerge -pv @x11-module-rebuild instead.
Gives 18 packages in my case.

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJTHglLAAoJEK64IL1uI2ha4mwIAJWqD2ENlYBBeuQ9O68YrdGV
etNVV0PWlBwGpm1vkHfdWgWSzPraR50uG6QvBXu/GERZHOvEv7k4fHh+dSZhIUm/
NxqvdG5maf7Xp7f3gFPUu32CSkrwnTMEQksrAuAtCVx9/N2D6N0JYFUtsulKJ0y2
mu8LW6oZBtIryH4+ZMXGs6mjbPsXF+CkfIdGiNnYg0L2wNAZrBtlQsdqOW9s2xKL
R1ABH4f5IiOg7pnPEegsEBOb3bc7MHE6zhKr9dVQ3iHlxvfPWcMfnA3yg2mdYl7O
sXIggapZyW2vkRtWyBvNkuWScqKyd3Rr1eLmDYXM+YBcHEWES7YuuU2rG98dnN8=
=HXbC
-END PGP SIGNATURE-



Re: [gentoo-user] slim/X11 : waiting for X server to begin accepting connections.

2014-03-10 Thread meino . cramer

Alexander Kapshuk alexander.kaps...@gmail.com [14-03-10 19:44]:
 On 03/10/2014 08:05 PM, meino.cra...@gmx.de wrote:
  Hi,
 
  it seems the powerfail this moring while I was updateing my Linux box 
  has killed / screwed up something.
 
  The effect:
  Slim login manager starts and presents the login screen.
  It is possible to login but openbox seems not to start -
  I get the typical cross-cursor in the middle of the screen
  (but the grey background is replaced by plain black)
  The last entry in the slim.log is:
 
  slim: waiting for X server to begin accepting connections.
  slim: open_session: Unable to open session: Unable to get information
  about the calling process
   
  I resumed the interrupted update process, I did:
  emerge xf86-input-evdev xf86-input-keyboard xf86-input-mouse
  nvidia-drivers
  I recompiled the X-server.
  Nothing helps.
 
  What can I try else to get X working again?
 
  Thank you very much for any (quick;) help in advance!
  Best regards,
  mcc
 
 
 
 
 Sounds like a problem other folk encountered before. See
 https://forums.gentoo.org/viewtopic-t-983068.html?sid=322897f0f12db44e211be450629bfbc1
 for details. Hope this helps.

Hi Alexander,

thanks for doing a search for me...one feels a little crippled without 
X, firefox etc ;)

Ok, for now I am knowing that I am not alone and that amd64 system are
mostly affected.
Furthermore startx works fine, slim does not (which does not mean that
slim is to blame.

May be someone finds what the bug...

Thanks again!
Best regards,
mcc






Re: [gentoo-user] slim/X11 : waiting for X server to begin accepting connections.

2014-03-10 Thread meino . cramer
the the.gu...@mail.ru [14-03-10 19:52]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 On 03/10/14 22:05, meino.cra...@gmx.de wrote:
  Hi,
  
  it seems the powerfail this moring while I was updateing my Linux
  box has killed / screwed up something.
  
  The effect: Slim login manager starts and presents the login
  screen. It is possible to login but openbox seems not to start - I
  get the typical cross-cursor in the middle of the screen (but the
  grey background is replaced by plain black) The last entry in the
  slim.log is:
  
  slim: waiting for X server to begin accepting connections. slim:
  open_session: Unable to open session: Unable to get information 
  about the calling process
  
  I resumed the interrupted update process, I did: emerge
  xf86-input-evdev xf86-input-keyboard xf86-input-mouse 
  nvidia-drivers I recompiled the X-server.
 You might want to try emerge -pv @x11-module-rebuild instead.
 Gives 18 packages in my case.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.22 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iQEcBAEBCAAGBQJTHglLAAoJEK64IL1uI2ha4mwIAJWqD2ENlYBBeuQ9O68YrdGV
 etNVV0PWlBwGpm1vkHfdWgWSzPraR50uG6QvBXu/GERZHOvEv7k4fHh+dSZhIUm/
 NxqvdG5maf7Xp7f3gFPUu32CSkrwnTMEQksrAuAtCVx9/N2D6N0JYFUtsulKJ0y2
 mu8LW6oZBtIryH4+ZMXGs6mjbPsXF+CkfIdGiNnYg0L2wNAZrBtlQsdqOW9s2xKL
 R1ABH4f5IiOg7pnPEegsEBOb3bc7MHE6zhKr9dVQ3iHlxvfPWcMfnA3yg2mdYl7O
 sXIggapZyW2vkRtWyBvNkuWScqKyd3Rr1eLmDYXM+YBcHEWES7YuuU2rG98dnN8=
 =HXbC
 -END PGP SIGNATURE-
 

Hi, 

in my case the list is the same as given in my previous mail.
The problem has something to do with glib and amd64.
Investigations are in progress...

Best regards,
mcc






[gentoo-user] shutdown for non-root users?

2014-03-10 Thread Jarry

Hi,
how can I allow other (not-root) users to shut down system?

I tried to add them to /etc/shutdown.allow but it works only
for Ctrl-Alt-Del. When they try shutdown per command line
(/sbin/shutdown -a -h now) they still get:

shutdown: you must be root to do that!
Usage: ...

Is there any way to achieve this without installing sudo?

Jarry
--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



[gentoo-user] Re: [OT] LiveCDs for Uni students

2014-03-10 Thread James
Andrew Lowe agl at wht.com.au writes:


  I'm looking for a lightweight LiveCD that includes a graphical 
 environment and gcc/clang so that we can make it available on our 
 internal network for the students to download/burn and use at home. Does 
 anyone have any ideas/experience in something like this? I've looked at 
 Lubuntu but it lacks gcc.

adding packages to *ubuntu* after installation, is trivial and part
of normal system maintenance. As others have stated, you can use
catalyst to create your own gentoo-derivative OS, thus controlling
what software the students are using (hopefully).  On most every
install of linux, it's fairly simple and routine to downloand and
install new software; so assess your goals of keeping them each
rigidly on the same install base of whatevery distro you select to use.



There are 2 differnt gentoo derivatives I'd suggest:

Pentoo, is most excellent for the security minded. (weak on community
support).
http://www.pentoo.ch/isos/


Arch linux is fantastic for noobs. who want a Gentoo_ish distro!
https://www.archlinux.org/download/


ymmv,
hth,
James







Re: [gentoo-user] shutdown for non-root users?

2014-03-10 Thread Nikita Tropin
If it's your home system and especial security is unimportant you can try
next:
chmod +s /sbin/halt
and use /sbin/halt to achieve the same effect.

You can use ACPI power button event (see /etc/acpi/events/default and
uncomment appropriate line).
Also there was method with dbus (searching the web will give suggestions).


2014-03-10 22:15 GMT+02:00 Jarry mr.ja...@gmail.com:

 Hi,
 how can I allow other (not-root) users to shut down system?

 I tried to add them to /etc/shutdown.allow but it works only
 for Ctrl-Alt-Del. When they try shutdown per command line
 (/sbin/shutdown -a -h now) they still get:

 shutdown: you must be root to do that!
 Usage: ...

 Is there any way to achieve this without installing sudo?

 Jarry
 --
 ___
 This mailbox accepts e-mails only from selected mailing-lists!
 Everything else is considered to be spam and therefore deleted.




-- 
Regards,
Nikita


Re: [gentoo-user] shutdown for non-root users?

2014-03-10 Thread Neil Bothwick
On Mon, 10 Mar 2014 21:15:13 +0100, Jarry wrote:

 how can I allow other (not-root) users to shut down system?
 
 I tried to add them to /etc/shutdown.allow but it works only
 for Ctrl-Alt-Del. When they try shutdown per command line
 (/sbin/shutdown -a -h now) they still get:
 
 shutdown: you must be root to do that!
 Usage: ...
 
 Is there any way to achieve this without installing sudo?

Yes, but why do things the hard way when this is exactly the type of
situation tat sudo is designed to handle. Allow selected, or all, users
to run sudo shutdown without a password and set up an alias from shutdown
to sudo /sbin/shutdown.


-- 
Neil Bothwick

A real programmer never documents his code.
It was hard to make, it should be hard to read


signature.asc
Description: PGP signature


Re: [gentoo-user] shutdown for non-root users?

2014-03-10 Thread Walter Dnes
On Mon, Mar 10, 2014 at 09:15:13PM +0100, Jarry wrote
 Hi,
 how can I allow other (not-root) users to shut down system?
 
 I tried to add them to /etc/shutdown.allow but it works only
 for Ctrl-Alt-Del. When they try shutdown per command line
 (/sbin/shutdown -a -h now) they still get:
 
 shutdown: you must be root to do that!
 Usage: ...
 
 Is there any way to achieve this without installing sudo?

  You seem to be under the impression that sudo is all-or-nothing.
There is a safe compromise.  You can specify which commands, with which
parameters, are runnable as toot by which user.  E.g. my desktop is
d531 and my regular user ID is waltdnes.  I have file
/etc/sudoers.d/001 containing stuff like...

waltdnes  d531 = (root) NOPASSWD: /sbin/hwclock --systohc
waltdnes  d531 = (root) NOPASSWD: /usr/bin/openrdate -n -s ca.pool.ntp.org

...and I have a script ~/bin/settime

#!/bin/bash
/usr/bin/sudo /usr/bin/openrdate -n -s ca.pool.ntp.org
/usr/bin/sudo /sbin/hwclock --systohc

...which sets my clock.  You would want...

userid  machine_name = (root) NOPASSWD: /sbin/shutdown -a -h now

...in /etc/sudoers.d/001

  *NOTE*.  Use visudo to edit any sudoers file.  Do not edit directly
with vim/nano/emacs/etc.  man visudo for further details.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications