Re: [gentoo-user] Mounts NFS in XFCE4
On 01/20/14 07:07, Chris Stankevitz wrote: > On Sun, Jan 19, 2014 at 11:13 AM, Neil Bothwick wrote: >> Put the mount in /etc/fstab with the noauto and users or user options. > > Neil, > > Thank you. I did this; however, as soon as I mount, the directory > becomes owned by root and I cannot write to it. Please consider: > > jane cstankevitz # grep nfs /etc/fstab > adam:/mnt/volume_a/sdn_collections > /home/cstankevitz/Desktop/sdn_collections nfs rw,noauto,user 0 0 > > Desktop $ ls -l /home/cstankevitz/Desktop/ > drwxr-xr-x 2 cstankevitz cstankevitz 4096 Jan 19 20:43 sdn_collections > > Desktop $ mount ./sdn_collections/ > Desktop $ ls -l /home/cstankevitz/Desktop/ > drwxr-xr-x 2 rootroot 2 Jan 19 20:37 sdn_collections > > Please note how the ownership changes from cstankevitz to root after I > mount. What am I doing wrong? That's how it is supposed to work. nfs is a Unix filesystem, it obeys Unix user and permissions (unlike say VFAT or smbfs where it has to fudge these things). NFS will mount the filesystem using whatever is set on the server. You cannot override the permissions the server has set from the client You probably want to tweak your squash settings. Check /etc/exports on adam or run "shopmount -e adam" on your local machine -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] System hangs when poweroff with NFS mounted
On Sun, Jan 19, 2014 at 9:40 AM, Amankwah wrote: > Hi all, > I swithed to Gnome3 last week, and the systemd is needed by > gnome3.8, so I used systemd to replace the openrc now. Howerver, my > system always hangs when I try to poweroff. > I have NFSv3 filesystem mounted via WiFi, it's managed by the > Networkmanager. so it seemed that the wireless connection was cut off > before the NFS was unmounted? I searched this problem and modified my > fstab line like this: > > NAS:/data/media/NAS nfs > _netdev,x-systemd.automount,x-systemd.device-timeout=10ms,rw,soft,vers=3 > 0 0 > > It's worked under the wired connnection, but the wireless connection > still hangs, Is there any thing should be changed? Or is it a bug?" I think it's a bug; systemd should stop NetworkManager.service only after all remote filesystems have been umounted. Could you boot up your machine after it hanged, and send the contents from "journalctl --boot=-1". That will give us the logs from the previous boot; perhaps we can see the problem. > I have to umount the NFS before poweroff everytime. Please tell me what can I > do to > resove this problem? I think it's a bug, but in the meantime (as a workaround) you can put the following script in /usr/lib/systemd/system-shutdown/nfs-force-umount: - #!/bin/sh /bin/umount -l /media/NAS - Make sure the script is executable. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México
Re: [gentoo-user] Mounts NFS in XFCE4
On Sun, Jan 19, 2014 at 11:13 AM, Neil Bothwick wrote: > Put the mount in /etc/fstab with the noauto and users or user options. Neil, Thank you. I did this; however, as soon as I mount, the directory becomes owned by root and I cannot write to it. Please consider: jane cstankevitz # grep nfs /etc/fstab adam:/mnt/volume_a/sdn_collections /home/cstankevitz/Desktop/sdn_collections nfs rw,noauto,user 0 0 Desktop $ ls -l /home/cstankevitz/Desktop/ drwxr-xr-x 2 cstankevitz cstankevitz 4096 Jan 19 20:43 sdn_collections Desktop $ mount ./sdn_collections/ Desktop $ ls -l /home/cstankevitz/Desktop/ drwxr-xr-x 2 rootroot 2 Jan 19 20:37 sdn_collections Please note how the ownership changes from cstankevitz to root after I mount. What am I doing wrong? Thank you, Chris
[gentoo-user] Re: Which package contains kdeinit4? Was: Purged gnome, lost X. :-(
On 01/19/2014 11:40 AM, Alan Mackenzie wrote: > I seem to have a hard > segfault in xfce4-session. That's after purging xfce and re-emerging, > too. There may be something amiss in your home directory. I think the easiest way to confirm/deny is to create a 'disposable' user account (mine is named 'tester') and see what happens when 'tester' starts xfce from a virgin home directory. I've solved many such problems that way. You can copy configuration stuff from your normal user's home directory to the test account one item at a time and see where xfce starts to segfault. Then back up one step :)
[gentoo-user] Re: webcam software
nyu.edu> writes: > My main system is a dell latitude E6430s. I am embarrassed to say > that, although I have had this system for a while, I just now realized > that it has a build in webcam. What software do you recommend and what If video conferencings is what you are after, look here. http://sourceforge.net/directory/communications/conferencing/videoconferencing/freshness:recently-updated/ Regardless of your goals with your web camera, the latest versions of applicable software *may* necessitate the use of ebuilds not in portage. hth, James
Re: [gentoo-user] Converting to Hardened/Selinux
On 01/16/2014 06:43 PM, James wrote: > Ok, so I have a fresh install on a stable AMD system. > I have decided to go the full hardened/selinux route. > I found this guide to convert this newly installed system: > > http://www.gentoo.org/proj/en/hardened/selinux/selinux-handbook.xml?part=2&chap=1 > > So the current version of python selected is 3.3. This guide > mandates Python 2.7. However after do this there is no > requirement to run 'python-updater' ? Should I recompile > everything after this step, before completing the rest of the > guide's steps. It should be fine -- the system came with both versions so all of the software should be built for both already. > After the guides steps are completed, should I run a > emerge --update --newuse --deep @system @world You will want the PaX markings, so yes. To save yourself some future pain I would start out with the xattr-based markings: https://wiki.gentoo.org/wiki/Hardened/PaX_flag_migration_from_PT_PAX_to_XATTR_PAX I think all you need to do for a fresh install is set the correct kernel options and USE flags, then set PAX_MARKINGS="XT" in make.conf. After an `emerge -e world` you should get all of the markings.
Re: [gentoo-user] Re: KDE slow / console-kit-daemon POLKIT_IS_AUTHORITY failed
On Sat, 18 Jan 2014 23:45:00 +, Mick wrote: > This thread confused me. I have this in my system and I have not > changed the permissions from when it was installed: > > ls -la /usr/libexec/dbus-daemon-launch-helper > -rws--x--- 1 root messagebus 322984 Jun 22 > 2013 /usr/libexec/dbus-daemon- launch-helper > > Is the suid bit dangerous and if so what is the alternative? Should > there be a bug filed on it? I think what Samuli was trying to say was that the suid bit is dangerous if you give global execute permissions to the file, because then anyone can run it as root. The default of rwx--x--- if safe because only root or a member of the messagebus group can execute it. My problem was that the messagebus user was not a member of the messagebus group thanks to a mismatch of IDs in /etc/{passwd,group} - I don't know whether this is also the cause of the error messages on Helmut's system. -- Neil Bothwick WinErr 042: Virus error - A virus has been activated in a dos-box. The virus, however, requires Windows. All tasks will automatically be closed and the virus will be activated again. signature.asc Description: PGP signature
Re: [gentoo-user] Which package contains kdeinit4? Was: Purged gnome, lost X. :-(
140119 Alan Mackenzie wrote: > That's two weekends I've been without X. > I don't know what I'm going to do, right now. > Might even try KDE, just to get some sort of working X. You could do worse, but you could also try Fluxbox, which is very simple & configurable & works with KDE & other apps. I start X with 'startx' & have in ~/.xinitrc xscreensaver & kdeinit & startfluxbox -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] re: setting up binhost [SOLVED]
On 01/19/2014 10:28 PM, Thanasis wrote: > on 19/01/2014 09:38 μμ Alexander Kapshuk wrote the following: >> Original Message >> Subject: re: setting up binhost >> Date:Fri, 17 Jan 2014 18:45:03 +0200 >> From:Alexander Kapshuk >> To: gentoo-user@lists.gentoo.org >> >> >> >> I would like to set up one of my Gentoo systems as a binary host to >> build and distribute packages that normally take longer to compile, like >> libreoffice, firefox and thuderbird, to another Gentoo system of mine >> with less RAM. >> >> I've been following the instructions found here, >> http://wiki.gentoo.org/wiki/Binary_package_guide. > In the above guide, did you pay attention to the following section? > > Other configuration variables > > For binary packages to be usable on other systems they must fulfill some > requirements. > > First, architecture and CHOST must match. > Second, the C(XX)FLAGS have to be chosen in a way that both the > binary package server and the client systems can run the binaries. > Third, USE flags for processor specific features like MMX, SSE,... > have to be chosen in a way that all systems have the enabled features, > or the packages using these features have to be rebuilt on the client > systems from source. > > > Thanks for your response. Both, the binhost and the client system have the variables you mentioned matching. I've test run thunderbird on the client system. So far, it seems to be functioning all right. Thanks.
Re: [gentoo-user] re: setting up binhost [SOLVED]
on 19/01/2014 09:38 μμ Alexander Kapshuk wrote the following: > Original Message > Subject: re: setting up binhost > Date: Fri, 17 Jan 2014 18:45:03 +0200 > From: Alexander Kapshuk > To: gentoo-user@lists.gentoo.org > > > > I would like to set up one of my Gentoo systems as a binary host to > build and distribute packages that normally take longer to compile, like > libreoffice, firefox and thuderbird, to another Gentoo system of mine > with less RAM. > > I've been following the instructions found here, > http://wiki.gentoo.org/wiki/Binary_package_guide. In the above guide, did you pay attention to the following section? Other configuration variables For binary packages to be usable on other systems they must fulfill some requirements. First, architecture and CHOST must match. Second, the C(XX)FLAGS have to be chosen in a way that both the binary package server and the client systems can run the binaries. Third, USE flags for processor specific features like MMX, SSE,... have to be chosen in a way that all systems have the enabled features, or the packages using these features have to be rebuilt on the client systems from source.
Re: [gentoo-user] Re: KDE slow / console-kit-daemon POLKIT_IS_AUTHORITY failed
On Friday 17 Jan 2014 13:27:36 Neil Bothwick wrote: > On Fri, 17 Jan 2014 11:11:06 +, Neil Bothwick wrote: > > Edit: Dropping KDE may not make much difference, I still get these > > messages when booting without X. > > This got me wondering. If I get the messages when booting to a console > login prompt, it can't be anything to do with X or my user. The file is > group owned by messagebus and checking /etc/passwd and /etc/group > revealed inconsistencies. So I removed the messagebus entries from both > file and ran "emerge -1 --noconfmem dbus dbus-glib" and rebooted. > > So far, no more of those messages. Thanks to Helmut for raising the topic > again and thanks to Samuli for giving me the kick up the jacksie I needed > to search for a proper solution to replace the ugly hack. > > I'm hours behind in my work now, but I am happy(er) :) This thread confused me. I have this in my system and I have not changed the permissions from when it was installed: ls -la /usr/libexec/dbus-daemon-launch-helper -rws--x--- 1 root messagebus 322984 Jun 22 2013 /usr/libexec/dbus-daemon- launch-helper Is the suid bit dangerous and if so what is the alternative? Should there be a bug filed on it? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Which package contains kdeinit4? Was: Purged gnome, lost X. :-(
Hi, Neil. On Wed, Jan 15, 2014 at 11:01:35PM +, Neil Bothwick wrote: > On Wed, 15 Jan 2014 22:35:34 +, Alan Mackenzie wrote: > > I've emerged qtdbus, and the "qdbus" error message has gone. But I > > can't for the life of me locate the package containing kdeinit4. I've > > looked through /usr/portage/kde-base/, but can't identify the KDE base > > package I need. equery only works on already emerged packages. > kdelibs Thanks! Having kdeinit4 hasn't helped me get running, unfortunately. > -- > Neil Bothwick -- Alan Mackenzie (Nuremberg, Germany).
Re: [gentoo-user] Which package contains kdeinit4? Was: Purged gnome, lost X. :-(
Hello, Alan. On Thu, Jan 16, 2014 at 06:54:27AM +0200, Alan McKinnon wrote: > On 16/01/2014 00:35, Alan Mackenzie wrote: > > I've emerged qtdbus, and the "qdbus" error message has gone. But I can't > > for the life of me locate the package containing kdeinit4. I've looked > > through /usr/portage/kde-base/, but can't identify the KDE base package I > > need. equery only works on already emerged packages. > > Which package contains kdeinit4? > kde-base/kdelibs Thanks! ~50 packages altogether, which took just over an hour to emerge. Sadly, it didn't help get xfce running. I seem to have a hard segfault in xfce4-session. That's after purging xfce and re-emerging, too. That's two weekends I've been without X. I don't know what I'm going to do, right now. Might even try KDE, just to get some sort of working X. :-( > -- > Alan McKinnon > alan.mckin...@gmail.com -- Alan Mackenzie (Nuremberg, Germany).
[gentoo-user] re: setting up binhost [SOLVED]
Original Message Subject:re: setting up binhost Date: Fri, 17 Jan 2014 18:45:03 +0200 From: Alexander Kapshuk To: gentoo-user@lists.gentoo.org I would like to set up one of my Gentoo systems as a binary host to build and distribute packages that normally take longer to compile, like libreoffice, firefox and thuderbird, to another Gentoo system of mine with less RAM. I've been following the instructions found here, http://wiki.gentoo.org/wiki/Binary_package_guide. What I've done so far on the binhost is: (1). I've installed lighttpd and set 'server.document-root' to PKGDIR in '/etc/lighttpd/lighttpd.conf'. grep portage/packages /etc/lighttpd/lighttpd.conf server.document-root = "/usr/portage/packages" (2). I've built a libreoffice package using: 'quickpkg app-office/libreoffice'. ls /usr/portage/packages/ Packages app-office (3). As I attempted to access http://127.0.0.1/Packages, I got a 403 HTTP error returned. I guess that's because of the access permissions for PKGDIR. ls -ld /usr/portage/packages/ drwx-- 3 root root 4096 Jan 16 18:38 /usr/portage/packages/ If I understand it correctly, I have to decide on which protocol to use, ftp, http, or ssh. Which one do folk here prefer, or would recommend? The wiki article suggests setting up a binpkguser and adding a client-root.id.rsa.pub to the binpkguser's authorized_keys, right? Does that mean that a dedicated user has to be set up, instead of using my current user account on the binhost? |root # ||useradd -m -r -G portage -s /bin/bash binpkguser root # ||echo clientA-root.id_rsa.pub >> /home/binpkguser/.ssh/authorized_keys| On the client system, all I have to do is set up PORTAGE_BINHOST in '/etc/portage.make.conf' and emerge the binary packages desired. Is that right? Any other advise, and/or suggestions would be much appreciated. -- Just thought I'd report back on the progress I've been able to make setting up a local binary package server. I thought I'd stick to the protocol recommended in the wiki article, i.e. ssh. So I put the 'client_sys-root.id_rsa.pub' into '/root/.ssh/authorized_keys' on the binhost. On the client host, I defined PORTAGE_BINHOST in '/etc/portage/make.conf' as 'ssh://r...@bin.host.ip/usr/portage/packages'. And ran 'emerge -aG pkg_name' on the client host. So far, I seem to have been able to successfully install libreoffice and thunderbird this way. As before, any further advice and/or suggestions would be much appreciated. Alexander Kapshuk.
Re: [gentoo-user] Mounts NFS in XFCE4
On Sun, 19 Jan 2014 08:46:37 -0800, Chris Stankevitz wrote: > If this is impossible, then I'd be ok with an approach that will allow a > regular user to mount any network share with the mount command. Put the mount in /etc/fstab with the noauto and users or user options. -- Neil Bothwick Love is grand. Divorce is a few grand more. signature.asc Description: PGP signature
[gentoo-user] Mounts NFS in XFCE4
Hi, Is it possible to mount an NFS share from XFCE4? I suspect the answer might have something to do with gvfs or fuse, neither of which I know anything about. Ideally after emerging or USEing I will have a "Connect to server" entry in my XFCE4 menu. If this is impossible, then I'd be ok with an approach that will allow a regular user to mount any network share with the mount command. Thank you, Chris
[gentoo-user] System hangs when poweroff with NFS mounted
Hi all, I swithed to Gnome3 last week, and the systemd is needed by gnome3.8, so I used systemd to replace the openrc now. Howerver, my system always hangs when I try to poweroff. I have NFSv3 filesystem mounted via WiFi, it's managed by the Networkmanager. so it seemed that the wireless connection was cut off before the NFS was unmounted? I searched this problem and modified my fstab line like this: NAS:/data/media/NAS nfs _netdev,x-systemd.automount,x-systemd.device-timeout=10ms,rw,soft,vers=3 0 0 It's worked under the wired connnection, but the wireless connection still hangs, Is there any thing should be changed? Or is it a bug? I have to umount the NFS before poweroff everytime. Please tell me what can I do to resove this problem? Thx
Re: [gentoo-user] Setting different MAILFROM for different cron jobs
On 2014-01-19 7:55 AM, Neil Bothwick wrote: On Sun, 19 Jan 2014 07:22:30 -0500, Tanstaafl wrote: I use plus addressing extensively (for mail filtering mostly), but for the life of me cannot figure out how to get cron emails to have a different MAILFROM other than just 'root'. I'd like for each job to have a different MAILFROM... ie: rkhunter cronjob should be from host+rkhun...@example.com, etc... Anyone know how to do this? I can't believe it isn't possible... cron mails are sent from the user running the cron job, but some programs have an option to set the address for any mails they send (not their stdout that goes through cron). rkhunter is one of these. Yes, and I have set it, but it doesn't change the MAILFROM. Here is what I have in /etc/cron.daily/rkhunter: # Set this to 'yes' if you wish the output to be mailed to you SEND_EMAIL=yes # NOTE: the following EMAIL_* variables are only relevant if you set the # SEND_EMAIL variable to 'yes' EMAIL_SUBJECT="${HOSTNAME}: rkhunter output" EMAIL_SENDER="myhost+rkhun...@example.com" EMAIL_RECIPIENT="myuser+rkhunter-rep...@example.com" EMAIL_CMD="|mail -s \"${EMAIL_SUBJECT}\" ${EMAIL_RECIPIENT}" I get the email, but it says it is from 'root'. I also tried commenting out entirely the EMAIL_CMD line, but then I don't get the email at all. So, am I missing something?
Re: [gentoo-user] Setting different MAILFROM for different cron jobs
On Sun, 19 Jan 2014 07:22:30 -0500, Tanstaafl wrote: > I use plus addressing extensively (for mail filtering mostly), but for > the life of me cannot figure out how to get cron emails to have a > different MAILFROM other than just 'root'. > > I'd like for each job to have a different MAILFROM... ie: > > rkhunter cronjob should be from host+rkhun...@example.com, etc... > > Anyone know how to do this? I can't believe it isn't possible... cron mails are sent from the user running the cron job, but some programs have an option to set the address for any mails they send (not their stdout that goes through cron). rkhunter is one of these. -- Neil Bothwick Q: How many accountants does it take to screw in a light bulb? A: What kind of answer did you have in mind? signature.asc Description: PGP signature
[gentoo-user] Setting different MAILFROM for different cron jobs
Hi all, This is something that has been bugging me for a while. I use plus addressing extensively (for mail filtering mostly), but for the life of me cannot figure out how to get cron emails to have a different MAILFROM other than just 'root'. I'd like for each job to have a different MAILFROM... ie: rkhunter cronjob should be from host+rkhun...@example.com, etc... Anyone know how to do this? I can't believe it isn't possible... Thx Charles
Re: [gentoo-user] Re: updating old box: segfaults with python
Am 17.01.2014 18:14, schrieb Daniel Frey: > On 01/16/2014 08:07 PM, lovely2 wrote: >> I doubt this is a memory problem. I've just had the same problem with >> glibc-2.17 and python. I manually went back to glibc-2.16 and everything is >> fine again. I then tried re-emerging all the python versions with glibc-2.16 >> installed and then re-emerged glibc-2.17 and had the same problem. >> >> After running strace on the python2.7. My best guess is that it is a kernel >> <> glibc-2.17 incompatiblity. The segfault happens near a mprotect >> operation, very early on. >> >> vault ~ # strace python >> -- snip -- >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = >> 0xb7462000 >> set_thread_area({entry_number:-1 -> 6, base_addr:0xb74626c0, limit:1048575, >> seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, >> seg_not_present:0, useable:1}) = 0 >> mprotect(0xb7658000, 8192, PROT_READ) = 0 >> --- SIGSEGV (Segmentation fault) @ 0 (0) --- >> +++ killed by SIGSEGV +++ >> Segmentation fault >> >> vault ~ # uname -a >> Linux vault 2.6.31-gentoo-r10 #1 SMP Sun Mar 7 14:35:15 EST 2010 i686 >> Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz GenuineIntel GNU/Linux >> >> I'm upgrading to the latest gentoo-sources. Only thing i'm worried about is >> rebooting but all in the life of a gentoo user. > > That could very well be (kernel issue with glibc-2.17.) I just upgraded > some 3 year old gentoo VMs and managed to get everything installed. The > kernel was the last thing I did have to upgrade, but I was on > gentoo-sources-2.6.32 and had no segfault problems. > > From memory, I had to upgrade things in this order: > -run emerge --sync > -gcc (then switch to new version) > -emerge libtool, binutils, linux-headers, glibc (glib as a dependency > had to be masked to build, may have to solve some other blocks like a > fallocate64 error, i think i had to use `ac_cv_func_fallocate=no emerge > bintuils` so libtool would build?) > -rebuild gcc (advise from the gcc package - rebuild after glibc update) > -upgrade baselayout and openrc (inc. udev, module-init-tool->kmod, etc) > -perl (then run perl-cleaner) > -python (then remove all stale versions of 3.x and 2.x, switch active to > 2.7) > -python-updater > -upgrade portage, portage-utils > -unmask things I'd individually masked and try to solve blocks emerging > world > -eventually world would run, make sure everything built > -run emerge-pvuDNe to make sure nothing was missed (something always is) > then upgrade those packages > -run emerge --depclean > -run emerge @preserved-rebuild > -run python-update & perl-cleaner > -run revdep-rebuild > -build & install new kernel (in my case 3.10.25) > -reboot > > Damn, it works and it's up to date. Now I wish I could say that only > took an hour, but on the first machine it took me almost 10 hours > because I was almost always trying to work around blocks. The very last > one I got down to 7 hours as I knew exactly what I had to do. Thanks for your feedback! I will check back here ... in the next week I will have another old box to update, this time from a kernel 2.6.27-gentoo-r8 ... with gcc 4.1.2, and udev 124-r2 !! It was kept in this state to keep good old vmware-player-1.x running. Now I deployed a new gentoo-based KVM-server there ... at last! Stefan