Re: [gentoo-user] How to compress lots of tarballs
[2021-09-26 11:57] Peter Humphrey > part text/plain 382 > Hello list, Hi, > I have an external USB-3 drive with various system backups. There are 350 .tar > files (not .tar.gz etc.), amounting to 2.5TB. I was sure I wouldn't need to > compress them, so I didn't, but now I think I'm going to have to. Is there a > reasonably efficient way to do this? I have 500GB spare space on /dev/sda, and > the machine runs constantly. Pick your favorite of gzip, bzip2, xz or lzip (I recommend lzip) and then: mount USB-3 /mnt; cd /mnt; lzip * The archiver you chose will compress the file and add the appropriate extension all on its own and tar will use that (and the file magic) to find the appropriate decompresser when you want to extract files later (you can use `tar tf' to test if you want). -- Simon Thelen
Re: [gentoo-user] Python 2.7 removal : problem with Firefox + Spidermonkey
[2020-07-29 13:11] Philip Webb Hi, > I've removed every other pkg which might require Python-2.7, > but am stuck with this : > > root:605 ~> emerge -cpv python:2.7 > > Calculating dependencies... done! > dev-lang/python-2.7.18-r1 pulled in by: > dev-lang/spidermonkey-60.5.2_p0-r4 requires > >=dev-lang/python-2.7.5-r2:2.7[ncurses,sqlite,ssl,threads] > www-client/firefox-68.10.0 requires > dev-lang/python:2.7[ncurses,sqlite,ssl,threads(+)] > > Yes, I've looked in package.use & in the ebuilds > & can't find any source of these requirements : can anyone help ? The dependencies on python2.7 are being added by the mozcoreconf eclasses. The firefox requirement is in eclass/mozcoreconf-v6.eclass, spidermonkey has essentially the same thing but in -v5.eclass -- Simon Thelen
Re: [gentoo-user] Youtube-dl and file time stamps.
[2020-07-15 17:30] Dale >Howdy, Hi, >I'm not sure what causes this because it doesn't always do this. When I >use youtube-dl to download videos, it sometimes uses the current date and >time for the time stamp. I like that because I can sort by date and see >new videos. On some sites tho it seems to use the time stamp of the file >on the server I am downloading from not when it was put on my system. >Sometimes I download a video and it may have a time stamp of years ago, >decades sometimes. I looked through the help page but can't find a option >to tell it to use local time instead of the time from the remote server >file. Needless to say, when it does this, I can't tell which videos I >recently downloaded since sorting by time stamps is no longer accurate. >It's annoying. > >Has anyone else noticed this behavior? Is there a way to tell it to stop >setting it to really old time stamps? Some option that isn't documented >maybe. You're probably looking for the --no-mtime option. Depending on what you're using to sort your local videos you can always just tell it to sort by ctime instead of the (probably) default mtime. Several other file download programs set the mtime to the last-modified header or similar, but they tend not to touch the ctime. -- Simon Thelen
Re: [gentoo-user] Udev and eudev clash. Something wants to remove eudev and install udev.
[2019-10-27 18:47] Dale > > part text/plain 30K > Howdy, Hi, > I'm trying to do my weekly update. I use eudev but something seems to > want plain udev and to remove eudev while at it. I have udev masked so > emerge knows not to install it. This is what emerge spits out with the > -t option in use. Keep in mind, some options are in make.conf but the > output should show the needed results. [..] > The following mask changes are necessary to proceed: > (see "package.unmask" in the portage(5) man page for more details) > # required by virtual/libudev-232-r1::gentoo[-systemd] > # required by dev-libs/libgudev-233-r1::gentoo > # required by xfce-base/thunar-1.8.9::gentoo[udisks] > # required by xfce-base/xfce4-meta-4.14-r1::gentoo > # required by @selected > # required by @world (argument) > # /etc/portage/package.mask/package.mask: > =sys-fs/udev-242 eudev was forgotten in the deps for virtual/libudev-232-r1, there should be a fixed virtual/libudev-232-r2 in the tree already. Resync and it should (hopefully) just work™. [..] -- Simon Thelen
Re: [gentoo-user] openvpn rc script dependencies
On 18-04-10 at 10:55, Christoph Böhmwalder wrote: > I was wondering how the OpenRC dependencies between start scripts work. > > Basically, I have two network interfaces on my laptop (wlp3s0 and > enp0s20u2u3 for wireless and ethernet respectively). When I start the > wireless interface service (rc-service net.wlp3s0 start) the OpenVPN > service starts and vice versa. That's great, but I didn't configure > that anywhere. What does your /etc/runlevels/ look like? Is the openvpn service in one of the runlevels? Are either of your network interfaces in one of the runlevels? > What's even worse is that when I'm not connected via WiFi (i.e. > ethernet), the VPN service won't start because net.wlp3s0 isn't started: [..] > Why would it do that, can I configure this anywhere? Also check /etc/rc.conf and try setting rc_depend_strict="NO". I do wish there were a way to modify require/provides without having to edit the init scripts themselves. -- Simon Thelen
Re: [gentoo-user] dhcpcd: disable zerconf
Holle, On 18-01-22 at 12:49, Lucas Ramage wrote: > Hello, > > How does one disable zerconf for dhcpcd or at all in Gentoo for that matter? Do you mean ipv4ll? Add noipv4ll to /etc/dhcpcd.conf . -- Simon Thelen
Re: [gentoo-user] mpv: no sound anymore...?
Hello, On 18-01-20 at 08:11, tu...@posteo.de wrote: > Hi, > > either by one of the last updates or by me while un-pulseaudio-fy > firefox (and removing pulseaudio afterwards) mpv is no longer willing > to play any sound. I don't have any particularly concrete ideas because the error log isn't very descriptive, but I have several things you can try that will give us more info/may help pinpoint the issue. You might want to post the contents of your /etc/asound.conf and your ~/.asoundrc as well as maybe checking the contents of /usr/share/alsa if there's anything still referencing pulseaudio in there. Maybe also a qcheck media-libs/alsa-lib to check if any of the default config files have any changes in them (you can also diff the output of qlist alsa-lib and find /usr/share/alsa). You might also want to check your mpv.conf if you have change any of the audio settings there. [..] > Output on the console while playing a video: > mpv the_best_GPU_for_Blender-720p.mp4 > Playing: the_best_GPU_for_Blender-720p.mp4 > (+) Video --vid=1 (*) (h264 1280x720 29.970fps) > (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) > ALSA lib > /var/tmp/portage/media-libs/alsa-lib-1.1.5/work/alsa-lib-1.1.5/src/pcm/pcm_dmix.c:1099:(snd_pcm_dmix_open) > unable to open slave > [ao/alsa] Playback open error: Device or resource busy > [ao] Failed to initialize audio driver 'alsa' > Could not open/initialize audio device -> no sound. > Audio: no audio > VO: [opengl] 1280x720 yuv420p > V: 00:00:01 / 00:12:38 (0%) You can try running mpv in verbose mode (-v) to see if that prints any more relevant information and also try using any of the other (alsa) audio-devices listed by --audio-device=help. You could also try setting --audio-samplerate=48k and try enabling/disabling alsa resampling with --alsa-resample=yes/no. [..] > mpv --audio-device=jack the_best_GPU_for_Blender-720p.mp4 > Playing: the_best_GPU_for_Blender-720p.mp4 > (+) Video --vid=1 (*) (h264 1280x720 29.970fps) > (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz) > ALSA lib > /var/tmp/portage/media-libs/alsa-lib-1.1.5/work/alsa-lib-1.1.5/src/pcm/pcm_dmix.c:1099:(snd_pcm_dmix_open) > unable to open slave > [ao/alsa] Playback open error: Device or resource busy > [ao] Failed to initialize audio driver 'alsa' > Could not open/initialize audio device -> no sound. > Audio: no audio > VO: [opengl] 1280x720 yuv420p > V: 00:00:01 / 00:12:38 (0%) > > (why it is accessing alsa here???) mpv's verbose mode will probably give more info as to why it's trying to open alsa, but I don't know enough about jack to give any useful ideas here. > Using for example zynaddsubfx (softsynth) via qjackctrl/jack I can > play sound. > Mpv does not show up in qjackctrl What samplerate does that generate sound at? 48k or 44.1k? -- Simon Thelen
Re: [gentoo-user] [OT] application to configure mouse
On 17-12-14 at 00:45, Simon Thelen wrote: > On 17-12-13 at 15:47, R0b0t1 wrote: > > On Wed, Dec 13, 2017 at 11:10 AM, wabe <waben...@gmail.com> wrote: > > > p...@xvalheru.org wrote: > > >> Hi, > > >> > > >> Sorry for this offtopic, but is there a UI standalone application to > > >> configure mouse? I'm using fluxbox and don't want to install gnome or > > >> kde. > > > You didn't say what parameters you want to configure. For speed, > > > acceleration and threshold you can use xset. But be warned, it has no > > > GUI. > > The problem with xset is that removing the device and restarting will > > remove the commands. It is good to have a settings daemon, but I don't > > know of one. > You can take every option settable through xset and set it in > /etc/X11/xorg.conf.d . That will then make sure the options are set > every time X starts. You can also take the xset command and write it > into ~/.xinitrc if you don't have root. Just a note here, if you put the command in your .xinitrc removing and re-adding the device will probably reset the settings, but the xorg.conf.d approach should be permanent (works for me without issues). -- Simon Thelen
Re: [gentoo-user] [OT] application to configure mouse
On 17-12-13 at 15:47, R0b0t1 wrote: > On Wed, Dec 13, 2017 at 11:10 AM, wabe <waben...@gmail.com> wrote: > > p...@xvalheru.org wrote: > >> Hi, > >> > >> Sorry for this offtopic, but is there a UI standalone application to > >> configure mouse? I'm using fluxbox and don't want to install gnome or > >> kde. > > You didn't say what parameters you want to configure. For speed, > > acceleration and threshold you can use xset. But be warned, it has no > > GUI. > The problem with xset is that removing the device and restarting will > remove the commands. It is good to have a settings daemon, but I don't > know of one. You can take every option settable through xset and set it in /etc/X11/xorg.conf.d . That will then make sure the options are set every time X starts. You can also take the xset command and write it into ~/.xinitrc if you don't have root. I have a 05-mouse.conf containing: Section "InputClass" Identifier "Kingsis Peripherals ZOWIE Gaming mouse" MatchIsPointer "on" Option "AccelerationProfile" "-1" EndSection You can look for the xorg.conf variable names you need in xorg.conf(5), or just google it. -- Simon Thelen
Re: [gentoo-user] Re: Emerge does want to tell me...what?
On 17-12-03 at 12:06, Ian Zimmerman wrote: > On 2017-12-03 18:58, Simon Thelen wrote: > > > Palemoon builds fine with gcc 6.4.0 (just not with gcc 7.2.0), if the > > ebuild you're using requires an older gcc it's either wrong or doing > > something weird. > It builds, but the result binary crashes every 10 minutes. Have you > tried it? I have had similar issues, but gcc 6.4.0 isn't the (sole) reproducer. I have 2 systems, a haswell laptop and a Ryzen desktop. Palemoon works fine built using gcc 6.4.0 on the laptop. On the desktop, however, I had regularly occurring segfaults that occurred whenever I ran palemoon and had the ulimit for core dumps set to 0 (ulimit -c to any other value and the segfaults would not occur). I managed to "fix" the segfaulting by compiling palemoon with CFLAGS="-O1" instead of "-O2". I never tried reproducing with an older gcc or clang as the issue only popped up when I rebuilt my desktop for the Ryzen CPU (switched from Nehalem where everything worked fine). Another person I know who uses palemoon on Gentoo has also had no issues with palemoon built against gcc 6.4.0 on an Xeon with Haswell architecture. I assumed this was an issue just with my machine since I could not reproduce it anywhere else. It might be that palemoon has issues with certain optimizations/instruction sets that are aggravated by using newer gcc versions (which could turn on optimizations by default etc). I tried checking when/why the GCC_SUPPORTED_VERSIONS was added to the palemoon overlay ebuilds, but can't find an issue or commit introducing it (didn't spend that long checking), but if I'm not the only one affected by this it might be worth it to open an issue with upstream. > The ebuild from the palemoon overlay explicitly checks for the gcc > version and refuses to proceed if it's newer then 4.9.4. I have > wondered why, but now I know. If you are on Ryzen (or potentially any architecture that isn't Nehalem-Haswell) you could try seeing if it's the same issue I experienced (testing with `ulimit -c unlimited', recompiling with -O1), otherwise you could try out the ebuild I maintain at [1] which may have some differences from the one in the palemoon overlay. [1]: https://git.c-14.de/landsraad.git/tree/www-client/palemoon/palemoon-27.6.2.ebuild -- Simon Thelen
Re: [gentoo-user] Re: Emerge does want to tell me...what?
On 17-12-03 at 09:52, Ian Zimmerman wrote: > On 2017-12-03 06:46, Heiko Baums wrote: > > > 1. It can't find >=sys-devel/gcc-6.4.0 but only older gcc versions. > > > > 2. You have installed a package that depend on sys-devel/gcc-5.4.0-r3 > > or sys-devel/gcc-4.9.4. > > > > I already explained what you can do in the first case. In the second > > case I would try to fix (uninstall, rebuild, upgrade or whatever) > > those packages which depend on an outdated gcc. I guess equery is your > > friend. > Those include palemoon. GL with fixing that. Palemoon builds fine with gcc 6.4.0 (just not with gcc 7.2.0), if the ebuild you're using requires an older gcc it's either wrong or doing something weird. -- Simon Thelen
Re: [gentoo-user] iputils - caps and filecaps USE flags?
On 17-10-03 at 19:08, Stroller wrote: > Hello, > > On my Linode VM in /etc/portage/package.use I have: > > net-misc/iputils -caps -filecaps > > I have no recollection of setting these flags, but `genlop -iputils ` > gives an installation date 2 days after I signed up with Linode, which > tends to suggest I installed the package. Or perhaps it was part of > the original Linode Gentoo disk image, and I only updated iputils? > > The USE flag descriptions are meaningless to me and so I have no idea > why I might have set these flags, were it me who did so: > > caps - Use Linux capabilities library to control privilege > filecaps - Use Linux file capabilities to control privilege rather than > set*id (this is orthogonal to USE=caps which uses capabilities at runtime > e.g. lib cap) Capabilities are a method of providing programs with more or less specific "privileges" as an alternative to running the program as root/suid. The "caps" useflag controls these at runtime by allowing programs to drop capabilities that the program doesn't need so that if something happens it has the ability to break less things. The "filecaps" flag is the "equivalent" of the suid bit but for specific capabilities (so instead of providing ping with suid-root you can give it CAP_NET_RAW only). It is almost always better to enable both of these where possible since it helps decrease the attack surface for the programs in question. Read capabilities(7) for more information. -- Simon Thelen
Re: [gentoo-user] Re: Strange Xmonad problem
On 17-09-29 at 22:09, Melleus wrote: > Simon Thelen <gentoo-u...@c-14.de> writes: > > On 17-09-29 at 12:13, Melleus wrote: > >> Simon Thelen <gentoo-u...@c-14.de> writes: > >> > On 17-09-28 at 20:30, Melleus wrote: > >> > [..] > >> >> Might I ask another Xmonad question in this thread? I would like to have > >> >> the Firefox goes fullscreen on F11, but the stanza: > >> >> > >> >> isFullscreen --> doFullFloat > >> >> > >> >> in my config does not work, Xmobar remains visible. But some > >> >> applications (like > >> >> Zathura) can go fullscreen and hide Xmobar even without that stanza. Did > >> >> I misconfigured something? > >> > You probably want fullscreenEventHook from [1] as shown in the Usage. > >> > > >> > [1] > >> > https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Hooks-EwmhDesktops.html > >> I have tried. But it doesn't work for me. I might be missing something > >> though. > >> My config is attached: > > I'm not sure why your config doesn't work, but this one seems to work > > for me [1] (not my config, just found it with a quick google). > > If that one works for you, I'd start with that and then edit it until > > you have your settings back. > > > > [1]: https://pastebin.com/raw/Ly4Fb90B > This config doesn't work either. It looks like something is seriously > broken in this version of Xmonad (0.13). It's a pity that it has a stable > keyword. Will wait for updates. Sorry for the noise. And thank you for > attention. I'm running 0.13 (and have been since February) so I doubt it's that. Though it could be related to the earlier issue with the state file. I didn't delete that in my tests. -- Simon Thelen
Re: [gentoo-user] Re: Strange Xmonad problem
On 17-09-29 at 12:13, Melleus wrote: > Simon Thelen <gentoo-u...@c-14.de> writes: > > On 17-09-28 at 20:30, Melleus wrote: > > [..] > >> Might I ask another Xmonad question in this thread? I would like to have > >> the Firefox goes fullscreen on F11, but the stanza: > >> > >> isFullscreen --> doFullFloat > >> > >> in my config does not work, Xmobar remains visible. But some applications > >> (like > >> Zathura) can go fullscreen and hide Xmobar even without that stanza. Did > >> I misconfigured something? > > You probably want fullscreenEventHook from [1] as shown in the Usage. > > > > [1] > > https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Hooks-EwmhDesktops.html > I have tried. But it doesn't work for me. I might be missing something though. > My config is attached: I'm not sure why your config doesn't work, but this one seems to work for me [1] (not my config, just found it with a quick google). If that one works for you, I'd start with that and then edit it until you have your settings back. [1]: https://pastebin.com/raw/Ly4Fb90B -- Simon Thelen
Re: [gentoo-user] Re: Strange Xmonad problem
On 17-09-28 at 20:30, Melleus wrote: [..] > Might I ask another Xmonad question in this thread? I would like to have > the Firefox goes fullscreen on F11, but the stanza: > > isFullscreen --> doFullFloat > > in my config does not work, Xmobar remains visible. But some applications > (like > Zathura) can go fullscreen and hide Xmobar even without that stanza. Did > I misconfigured something? You probably want fullscreenEventHook from [1] as shown in the Usage. [1] https://hackage.haskell.org/package/xmonad-contrib-0.13/docs/XMonad-Hooks-EwmhDesktops.html -- Simon Thelen
Re: [gentoo-user] Strange Xmonad problem
On 17-09-27 at 19:22, Melleus wrote: > After last update my Xmonad starts from 8-th workspace instead of > 1-st. I did not change anything but updated Xmonad and GHC, config > remained the same (file attached). What have I done wrong other than I'd > better not updated my system? > > Thank you ahead of time. > https://github.com/xmonad/xmonad/blob/master/CHANGES.md#014-not-yet-released Probably the Bug Fix listed under 0.14 (Not Yet Released) try deleting ~/.xmonad/xmonad.state before starting xmonad -- Simon Thelen
Re: [gentoo-user] Change Readline mode for all users?
On 17-09-19 at 14:48, Stroller wrote: > > On 19 Sep 2017, at 01:30, Simon Thelen <gentoo-u...@c-14.de> wrote: > >> Is it possible to set this for all users, please, so that this edit > >> mode is used for root? > > Readline is customized by putting commands in an initialization file > > (the inputrc file). The name of this file is taken from the value of the > > INPUTRC environment variable. If that variable is unset, the default is > > ~/.inputrc. If that file does not exist or cannot be read, the ultimate > > default is /etc/inputrc. > > > >> I find that my pager and editor are set in /etc/env.d/99pager and > >> /etc/env.d/99editor respectively, but creating a > >> /etc/env.d/99bashlineediting file containing "set -o vi" doesn't seem > >> to work. > > Either "set-editing-mode vi" in /etc/inputrc for all readline programs > > or in /etc/bash/bashrc (for bash-only) > I looked at /etc/inputrc, and its existing contents are of a different format. > > Where all the other lines are of the form: > "\eOH": beginning-of-line > "\eOF": end-of-line > it felt a bit wrong to be adding "set-editing-mode vi". Hence me asking here. > Is it foolish of me to think this? That's just part of the inputrc, mine at least also has several settings set at the top of the file. According to readline(3) the inputrc can contain both key bindings and variable settings, the lines you pointed out are the keybindings and what you wanted to add is a variable setting (set editing-mode vi). -- Simon Thelen
Re: [gentoo-user] Change Readline mode for all users?
On 17-09-19 at 01:11, Stroller wrote: > I prefer vi-style editing for my bash prompt - that is to say I press > the escape key, and "b" two or three times and the cursor moves back 2 > or 3 words. I can press "escape" followed by shift-I to take the > cursor back to the very start of the line, and "v" allows me to edit > the command line in vi itself. > > I enable this in my .bashrc with "set -o vi". > > I find I can set it for all Readline-based programs by putting "set > editing-mode vi" in ~/.inputrc. > > Is it possible to set this for all users, please, so that this edit > mode is used for root? Readline is customized by putting commands in an initialization file (the inputrc file). The name of this file is taken from the value of the INPUTRC environment variable. If that variable is unset, the default is ~/.inputrc. If that file does not exist or cannot be read, the ultimate default is /etc/inputrc. > I find that my pager and editor are set in /etc/env.d/99pager and > /etc/env.d/99editor respectively, but creating a > /etc/env.d/99bashlineediting file containing "set -o vi" doesn't seem > to work. Either "set-editing-mode vi" in /etc/inputrc for all readline programs or in /etc/bash/bashrc (for bash-only) -- Simon Thelen
Re: [gentoo-user] [offtopic] Copy-On-Write ?
On 17-09-07 at 17:46, Helmut Jarausch wrote: > Hi, Hello, > sorry, this question is not Gentoo specific - but I know there are many > very knowledgeable people on this list. > > I'd like to "hard-link" a file X to Y - i.e. there is no additional > space on disk for Y. > > But, contrary to the "standard" hard-link (ln), file Y should be stored > in a different place (inode) IF it gets modified. > With the standard hard-link, file X is the same as Y, so any changes to > Y are seen in X by definition. > Is this possible > - with an ext4 FS > - or only with a different (which) FS You can use GNU coreutil's `cp --reflink=always'. This will, however, only work on filesystems which support the operation (afaik so far only btrfs). Though other CoW filesystems (such as ZFS) have similar capabilities with snapshotting. The only other possibility I know of would be creating an lvm partition for that file and using lvm snapshots. You should also be able to implement the functionality via fuse on top of an ext4 base if the other solutions aren't to your taste. -- Simon Thelen
Re: [gentoo-user] Read-only access to a git repo
On 17-09-04 at 17:05, Alan McKinnon wrote: > Hi, > > I fear I have a severe case of too many trees in the way to see the forest. > > I have a git server, it only runs git. > All the sysadmins have full access using ssh://, their keys are in git's > authorized_keys, the repos are owned git:git, MODE 770, etc etc, and it > works like it should. > > I want an app to have read-only access to some repos, i.e. clone and > pull only. But they are not publicly accessible i.e. the app user must > be pre-authorized by me and have a public key. And for the life of me I > can't think how to do it! You want to use the command= option in the .ssh/authorized_keys file for the key to ensure that only `git-upload-pack ' is run > Google is only giving me results about what fancy buttons to click in > GitHub and Gitlab... I know, my Google-fu sucks today. You can look at [1] if you want a really minimal example of a git permissions management system. [1]: https://github.com/cbdevnet/fugit -- Simon Thelen
Re: [gentoo-user] conf.d/net routes
On 17-09-02 at 11:54, Ian Zimmerman wrote: > What is the exact syntax of the *_routes lines in the /etc/conf.d/net > file, or where is it documented? [..] > "via" is not something I can use on the command line of the route > command, at least according to its manpage. So it can't be just > straight repetition of the command line. But then, what is it? As far as I'm aware it's based on ip-route(8) syntax separated by newlines. There's a complete documentation file for netifrc in /usr/share/doc/netifrc-/net.example[.bz2] You'll probably be most interested in the "INTERFACE HANDLERS" section and potentially the "Advanced Routing" section. > Motivation: I want to add a route for a point-to-point interface. You probably only need to list the peer address on a single line and then that peer should become routable. -- Simon Thelen
Re: [gentoo-user] network interface names in gentoo
On 17-06-11 at 16:33, Ian Zimmerman wrote: > Without tweaking anything in particular (as far as I remember), I get > the "predictable" names. For example, on the desktop box where I'm > writing this, the main interface is enp3s0. > > But, of course, there's no systemd on this box, and never has been. So, > reading [1], I am somewhat puzzled: that page sure makes it sound as if > systemd was responsible for the new style names. What is the mechanism > by which they appear on gentoo, if not systemd? Quoting from the sys-fs/eudev-3.2.2-r1 ebuild: pkg_pretend() { ewarn ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality," ewarn "as described in the URL below:" ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames; ewarn ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing" ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable" ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules" ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules" ewarn } and from sys-fs/udev-233: elog elog "Starting from version >= 197 the new predictable network interface names are" elog "used by default, see:" elog "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames; elog "https://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c; elog elog "Example command to get the information for the new interface name before booting" elog "(replace with, for example, eth0):" elog "# udevadm test-builtin net_id /sys/class/net/ 2> /dev/null" elog elog "You can use either kernel parameter \"net.ifnames=0\", create empty" elog "file /etc/systemd/network/99-default.link, or symlink it to /dev/null" elog "to disable the feature." Depending on which of those you have installed. -- Simon Thelen
Re: [gentoo-user] Re: Sudden auto-unmount of an encfs-partition ... why?
On 17-05-21 at 08:41, Ian Zimmerman wrote: > On 2017-05-21 09:51, Neil Bothwick wrote: > > Why are you using encfs with the associated FUSE baggage when ecryptfs > > is in the kernel and performs the same function? > Is ecryptfs behind the scenes when I run /sbin/cryptsetup ? No, ecryptfs is a stacked filesystem (filesystem layered on a filesystem) that handles encryption on a file-by-file basis > Cryptsetup is utility used to conveniently setup disk encryption based on > DMCrypt kernel module. > These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt > (including VeraCrypt extension) format. > Project also includes veritysetup utility used to conveniently setup DMVerity > block integrity checking kernel module. > [1] cryptsetup does encryption on the device layer on a block-by-block basis You put ecryptfs on a filesystem, you put a filesystem on a dmcrypt device. [1]: https://gitlab.com/cryptsetup/cryptsetup/blob/master/README.md -- Simon Thelen
Re: [gentoo-user] Re: Clang has gone walkabout
On 17-04-10 at 18:59, Nikos Chantziaras wrote: > On 04/10/2017 03:58 PM, Simon Thelen wrote: > > Try running `env-update && source /etc/profile'. Your path should be > > extended by /etc/profile.env which is generated from /etc/env.d/10llvm-9995. > > Just logout/login. "source" will help in the current shell. logout/login won't work if you run some (or most) of your shells in tmux/screen. Either restart those shells after the logout/login or you'll need to source /etc/profile anyway. -- Simon Thelen
Re: [gentoo-user] Clang has gone walkabout
On 17-04-10 at 20:48, Andrew Lowe wrote: > On 10/04/17 18:57, J. Roeleveld wrote: > > On April 10, 2017 12:41:54 PM GMT+02:00, Andrew Lowe <a...@wht.com.au> > > wrote: > >> On 10/04/17 18:08, Neil Bothwick wrote: > >>> On Mon, 10 Apr 2017 17:13:28 +0800, Andrew Lowe wrote: > >>> > >>>> Do we have any clang users out there? I've had clang installed > >>>> on my machine for ages and a simple "clang test.c" will result in an > >>>> executable. I can even nearly build my whole machine using clang, so > >>>> its up and running. I've now just updated clang, from a working > >> 3.9.1 > >>>> to a 4.0.0-r1 and clang has now disappeared. If I type in "clang > >>>> --version", I get "command not found". "whereis clang" only gives me > >>>> the library dir. Doing "ls -la /usr/bin/cla*" gives me "No such file > >> or > >>>> directory" > >>> > >>> Try "qlist clang" so see what is installed, "qlist clang | grep bin/" > >>> should find the executables. > >>> > >>> qlist is part of portage-utils, which you probably already have. > >>> > >>> > >> > >>Done as requested. There are 41 files found with clang in their name > >> and they are all on the dir: > >> > >>/usr/lib/llvm/4/bin/ > >> > >>I'm no whiz bang sys-admin but that doesn't seem right to me. There is > >> > >> clang and clang++ and a whole lot of stuff sym linked to provide all > >> the > >> various permutations and combinations of names in there. But there is > >> nothing in my path that points to that dir. I'll have to have a look at > >> > >> the ebuild to see if a symlink or something is not being applied. > >> > >>Any other thoughts appreciated, > >> > >>Andrew > > > > Try those and see if they respond correctly. > > If yes, add that dir to your PATH. > > > > -- > > Joost > > > > They work as expected and I can add the dir to the path with no > problems, I'm more concerned about why I have add the path - is the > ebuild screwed up in some way? > > What is the portage/ebuild doco like? Is it well documented or are > there gaping holes that lead to frustration - my level of understanding > of coding is 25 years of C/C++ coding on CAD systems & engineering > applications and even though I run a Gentoo box as my default machine, > I've never had the need to get into bash scripting - but might. > > Andrew > Try running `env-update && source /etc/profile'. Your path should be extended by /etc/profile.env which is generated from /etc/env.d/10llvm-9995. -- Simon Thelen
Re: [gentoo-user] Has someone managed to compile nvidia-drivers against a 4.10.*-Linux-kernel?
On 17-03-18 at 13:13, tu...@posteo.de wrote: > Hi, > > if someone has managed to compile the nividia-drivers > against one of the linux-4.10.* kernels I would > be glad fpr the information what version are compatible > with each other... :) Running gentoo-sources-4.10.2 with nvidia-drivers-378.13 and having no problems. -- Simon Thelen
Re: [gentoo-user] help securing system / remote unlock
Thank you Neil. I had not seen that link. I've had quite an uphill battle getting Dracut to work properly with a rather strange networking situation I have on a variety of servers. I believe the "out of the box experience" I had was not leveraging dracut, though I could be wrong. Does gentoolkit not support dracut? My search skills must be failing me...is this really that uncommon of a use case? Can't seem to find much information around this topic. From: Neil Bothwick <n...@digimed.co.uk> Sent: Monday, February 6, 2017 5:51 PM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] help securing system / remote unlock On Mon, 6 Feb 2017 22:16:38 +, Simon Perfer wrote: > Can't seem to find a tool that will generate an initramfs with support > for ZFS, LUKS and Dropbear so that I can remotely unlock the system. > > Ubuntu makes it very easy to enable Dropbear in their initramfs. I > could have sworn I've done before via some popular / existing initramfs > tool on Gentoo but can't seem to remember which one (or if it's even > possible). > > Short of building my own custom initramfs or hacking dracut, > bliss-initramfs, etc., are there any pre-baked solutions I can rely on? Adding features to dracut seems quite simple according to Rich's blog post. https://rich0gentoo.wordpress.com/2012/01/21/a-quick-dracut-module/ -- Neil Bothwick Q: What's the second worst sound you can hear a sysadmin make? A: Uh-oh Q: And the worst sound? A: Oops
[gentoo-user] help securing system / remote unlock
Hi – I've successfully set up whole disk encryption by using LUKS and ZFS on top of it. I can boot by unlocking the drive via some remote console. Can't seem to find a tool that will generate an initramfs with support for ZFS, LUKS and Dropbear so that I can remotely unlock the system. Ubuntu makes it very easy to enable Dropbear in their initramfs. I could have sworn I've done before via some popular / existing initramfs tool on Gentoo but can't seem to remember which one (or if it's even possible). Short of building my own custom initramfs or hacking dracut, bliss-initramfs, etc., are there any pre-baked solutions I can rely on? Thanks!
Re: [gentoo-user] Metalog & runscript
On 16-12-04 at 14:18, Andrew Lowe wrote: > Hi all, > I'm still getting the warning during boot about metalog using runscript > during the boot process. I decided to track things down and see what was > going on. My first stop was bugs.gentoo.org where there is this one: > > https://bugs.gentoo.org/show_bug.cgi?id=581926 > > Upon reading this, I would have thought that the ebuild had been > updated with the supplied patch by the developers. I looked at the > ebuild on my machine and it still is the "older" one. > Packages.gentoo.org has the same ebuild as me. > > Has something just fallen through the cracks and things should have > been "officially" updated or do I need to apply this patch myself? The patch was applied to the initscript, but the ebuild was not revbumped. You'll have to reinstall the package to get the new initscript. You can rebuild all packages that use /sbin/runscript with: `emerge --oneshot -av $(grep -l '/sbin/runscript' /etc/init.d/*)' This was mentioned in a newsitem draft on gentoo-dev, but as far as I can tell that newsitem was never published. -- Simon Thelen
Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?
On 16-11-29 at 08:35, meino.cra...@gmx.de wrote: > Alarig Le Lay <ala...@swordarmor.fr> [16-11-29 08:16]: > > On Tue Nov 29 07:42:16 2016, meino.cra...@gmx.de wrote: > > > Is there any way to feed the stream from youtube direktly into > > > a not blown player like mpv/mplayer or such (I would prefer > > > not to load a complete gui (vlc) with any click again and again.)? > > Yes, you can play video from youtube with mpv if you have emerged > > net-misc/youtube-dl. > yes...I know...but this implies (as far as I know): > Copying the url from FF as argument to youtube-dl, > downloading the file, and than watching it. > This was my (painful) workaround the last days. It doesn't. As long as you have mpv built with +lua it ships with the youtube-dl hook which will run youtube-dl (if installed) on any url passed to mpv, parse the json output and then play the "real" video url. > I woyld like something like: > Click on youtube-url, a window (console) pops up > and starts to watch the video > directly. > > Is it possible somehow? There's probably around a bazillion addons for that. A quick search found [1] [2] [3] [4]. Though binding an alias to `mpv $(xsel -b)' and then executing that after copying a url shouldn't be that hard. [1] https://addons.mozilla.org/en-US/firefox/addon/watch-with-mpv [2] https://addons.mozilla.org/en-US/firefox/addon/external-video [3] https://addons.mozilla.org/en-US/firefox/addon/video-assistant [4] https://github.com/agiz/youtube-mpv -- Simon Thelen
Re: [gentoo-user] Wastebin or trash?
On 16-09-07 at 18:41, Mick wrote: > On Thursday 08 Sep 2016 00:47:13 Andrew Lowe wrote: > > On 07/09/16 23:45, Peter Humphrey wrote: > > > Hello list, > > > > > > As I said in the "emerge @system" thread, I've built a fresh ~amd64 system > > > on this i7 box. I also created a new user directory for myself, copying in > > > only .bash*, .gkrellm2 and .mozilla. > > > > > > After spending a good long time setting up KDE and friends just the way I > > > like them, the one remaining task was to set up KMail and import my > > > 1000-or- so messages. That worked all right, with just the one same > > > exception as before: KMail's recycle bin is call "trash" in the folder > > > list, but the right-click menu on it offers to "empty wastebin". > > > > > > I'm sure I have all my linguas, l10ns i18ns and everything set up right, > > > so > > > I think I'm just seeing an intermediate stage in KMail development. > > > > > > Is anyone else seeing this? > > > > I'm reading this whilst sitting in Perth, Australia so both should read > > "Rubbish Bin" or possibly "Wheelie Bin" ;) > One IMAP4 account of mine shows 'Bin' and another shows 'Trash'. As I > understand it you need to configure the locale on the mail server. IMAP itself does not have a concept of "Trash", the creation of such a mailbox is the prerogative of the client (unless the server itself feels that the imap client doesn't know what it's doing and moves deleted emails into a different mailbox; not that I've ever seen a mail server do that), therefore changing the locale on the mail server won't help and it is indeed something on the client that needs to be changed. -- Simon Thelen
Re: [gentoo-user] And thus the emerge spake...
On 16-04-17 at 05:45, meino.cra...@gmx.de wrote: [..] > WARNING: One or more updates/rebuilds have been skipped due to a dependency > conflict: > > dev-util/boost-build:0 > > (dev-util/boost-build-1.60.0:0/0::gentoo, ebuild scheduled for merge) > conflicts with > =dev-util/boost-build-1.58* required by > (dev-libs/boost-1.58.0-r1:0/1.58.0::gentoo, installed) > ^ ^ > > > !!! The following update has been skipped due to unsatisfied dependencies: > > dev-libs/boost:0 > > !!! All ebuilds that could satisfy "=dev-util/boost-build-1.60*" have been > masked. > !!! One of the following masked packages is required to complete your request: > - dev-util/boost-build-1.60.0::gentoo (masked by: ) The problem is that emerge thinks boost is masked for whatever reason > For me it looks like boost not beeing updated/reinstalled because of > another version of boost, which depends on boost. I had a similar issue on one of my computers. Running `emerge -1 =dev-util/boost-build-1.60.0 =dev-libs/boost-1.60.0' fixed it. Only happened on one of my computers and increasing backtracking didn't help so I'm not sure exactly why it didn't want to update, but explicitly telling emerge to install it seemed to help for me. -- Simon Thelen
Re: [gentoo-user] Make QEMU guest visible to other machines on LAN
On 15-12-19 at 14:21, waltd...@waltdnes.org wrote: > Apologies if this is a duplicate/triplicate. I don't think the first > attempts got through. Going through my backup provider (dialup) this > time. [..] > For various reasons, I need another physical machine on my small home > LAN to be able to talk directly to the 32-bit guest. I've read the > "Network setup" at http://www.linux-kvm.org/page/KvmOnGentooIs the > /etc/conf.d/net being reffered to, the one on the host or on the guest? > The webpage doesn't say explicitly. host > > I also don't understand how other machines will be able to > differentiate between the host and the guest. The idea is to create a bridge device, and then bridge the guests tun/tap device with the bridge and your ethernet device. This way they all appear transparently on the network. The net config on that website should be fine for the host, and then pass these command options to qemu -device virtio-net-pci,netdev=hn0,mac="52:54:00:12:34:56" -netdev bridge,id=hn0,br=brkvm You can change the mac address to your liking. -- Simon Thelen
Re: [gentoo-user] blocking facebook
On 15-12-12 at 05:05, Simon Thelen wrote: > On 15-12-11 at 20:03, the...@sys-concept.com wrote: > > Does anybody have an idea how to block facebook? > The only way to blacklist facebook would be to create a whitelist and > drop everything not on said whitelist. Oh, and even that's not easy. Finding and creating a whitelist that ensures necessary stuff gets done without allowing people to bypass blocks is almost impossible. Getting around these sorts of blocks isn't a matter of theoretical possibility, it's a matter of someone putting in enough time and effort into bypassing it. If you don't have complete control over all devices all the time, you might as well just give up. -- Simon Thelen
Re: [gentoo-user] blocking facebook
On 15-12-11 at 20:03, the...@sys-concept.com wrote: > Does anybody have an idea how to block facebook? The only way to blacklist facebook would be to create a whitelist and drop everything not on said whitelist. If you block DNS, they can use a different DNS server. If you block IP addresses they'll use a proxy/vpn. If you use deep packet inspection they'll use TLS or a VPN or an SSH tunnel. If you can control the systems so that they don't do any of the above, it's possible but you've admitted that you can't (unless you can control all the Virtualbox instances). -- Simon Thelen
Re: [gentoo-user] Re: All sorts of digest verification failures
On 15-11-15 at 15:29, cov...@ccs.covici.com wrote: > Dale <rdalek1...@gmail.com> wrote: > > Martin Vaeth wrote: > > > Neil Bothwick <n...@digimed.co.uk> wrote: [..] > > > As a temporary hack, calling "ebuild manifest" on that file is > > > probably the only reasonable way to proceed, but this problem > > > must be fixed, of course... > > Wasn't there a emerge option to ignore the manifest? I seem to recall > > there used to be one but it was a LONG time ago. Of course, if someone > > has tinkered with something that would be a bad thing to do. > I thought I remembered something where the manifest no longer checks the > ebuild, just the file in distfiles -- I thought I remembered seeing this > somewhere. It was at a time when we got all the manifests all at once. I sync from git and none of my Manifests track the ebuilds, so this could be a thing. Note how the Manifest for busybox in the gentoo.git tree doesn't have manifests for any of the ebuilds. [1] [1]: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/busybox/Manifest -- Simon Thelen
Re: [gentoo-user] How to avoid perl harbor (pun intended)
On 15-07-13 at 05:19, walt wrote: Today's update started as a disaster: perl wants to upgrade from 5.20.2 to 5.22.0, but all of my existing perl modules insist on having 5.20.2 so the perl update blocks and then emerge stopped with an error and left the whole mess for me to solve. (To me this appears to be a bug in the perl family of ebuilds.) Here is my painless workaround for this mess: #ebuild /usr/portage/dev-lang/perl/perl-5.22.0.ebuild merge That trick cleared the blocker and allowed the rest of today's update to proceed. (Lots of individual perl modules have updates also, which may be part of this problem, but I don't know.) It worked for me after I added --backtrack=30 -- Simon Thelen
Re: [gentoo-user] Google Chrome and audio capture
On 15-06-23 at 03:06, Dale wrote: Howdy, Is this for real? I question the source and figure with all the Linux geeks we have here, someone here would know about this story and if it is real or not. http://beforeitsnews.com/alternative/2015/06/got-chrome-google-just-silently-downloaded-this-onto-your-computer-3173880.html https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786909 https://security-tracker.debian.org/tracker/TEMP-0786909-A21526 https://code.google.com/p/chromium/issues/detail?id=491435 Take from that what you will. Note, the issues are for chromium and not for Google Chrome, shouldn't make a difference for what you want to know though. -- Simon Thelen
Re: [gentoo-user] Reconstruct package.use
On 15-03-15 at 00:12, Alan McKinnon wrote: It took 10 years but I've finally done something monumentally stupid in Gentoo: I delete package.use and have no backup Is there any easy way to recover what was in it? I'm busy doing it the long way round - repeatedly running emerge world, get past the blocking USE, then see all the flags that portage thinks changed. I wonder if there might be an easier way that I don't know of. Have you tried: emerge -pDU --with-bdeps=y @world That should list all packages where the installed use-flags differ from the current use-flags. -- Simon Thelen signature.asc Description: PGP signature
Re: [gentoo-user] How to automate an sshfs (fusermount) mounted share
On 15-01-03 at 18:42, Andrew Savchenko wrote: Hi, On Sat, 03 Jan 2015 09:23:29 -0500 Harry Putnam wrote: I'm sshfs mounting an solaris zfs file system in the interactive fashion. sshfs $USR@HOST:/file/system MOUNTPOINT passwd? enter passwd RETURN Once mounted I run an rsnapshot backup onto the mounted FS. Any ideas on how to go about doing this mount automatically (scripted) will be greatly appreciated. 1) Set up your ssh to use keys. Key itself should not be protected by password (or manual intervention will be needed on each mount). 2) Add sshfs command to your .bash_profile (or whatever login shell you're using) with check that filesystem is not mounted already, something like: grep -q $MOUNTPOINT || sshfs $USR@HOST:/file/system MOUNTPOINT Alternatively you may add this to your DE/WM autostart scripts, if you are using GUI logins only. Or just add it to /etc/fstab: user@host:/mountpoint /where/to/mount fuse.sshfs rw,exec,async,_netdev,auto,user,idmap=user,transform_symlinks,identityfile=/path/to/ssh/key,allow_other,default_permissions,uid=1000,gid=100 0 0 Check the manpages for which of those options you want. ie, you might want to get rid of allow_other etc. -- Simon Thelen
Re: [gentoo-user] Zsh completion
On 04/07/14 at 22:24, Matti Nykyri wrote: On Jul 4, 2014, at 13:55, Nikita Tropin posixivis...@gmail.com wrote: Question is old enough but... Try to click Ctrl-/ to undo. Ok. Thanks. I'll try that. But still if I could disable that particular feature that would be the best option! man zshcompsys Look at the path-completion and accept-exact-dirs styles. You can try setting accep-exact-dirs to true or path-completion to false. -- Simon Thelen Ya'll hear about the geometer who went to the beach to catch some rays and became a tangent ?
Re: [gentoo-user] systemd as a Profile - practical or not?
How to unsubscribe? 2014.02.18. 17:26 ezt írta (Tanstaafl tansta...@libertytrek.org): Hi all, Ok, before I go and open up a bug requesting this... I know there have to be a lot of people on this list who can answer this question... Is making the use of systemd or not based on a selected Profile, as opposed to manually trying to do it via USE flags etc, a practical request, or not? Meaning: 1. is it doable, 2. how hard (on a scale of 1/easy to 10/hard to impossible) would it be to do this, and 3. regardless of the difficulty in achieving it, how hard would it be (on a scale of 1 (easy) to 10 (hard to impossible)) to maintain in the long run? I'm hoping that even if the answer to #2 above is 7+, if the answer to #3 is 'relatively easy' or better, then maybe it still stands a chance of getting done. And incidentally, Canek, if I was a programmer, I'd be happy to volunteer to take it on, but alas I'm just a lowly user... Thanks...
Re: [gentoo-user] Re: How can I rewrite all empty sectors with zeros?
On Mon, Jul 23, 2012 at 10:29 AM, Nikos Chantziaras rea...@gmail.comwrote: On 22/07/12 20:18, Jarry wrote: Hi, I want to backup my whole hard-drive (8 partitions) with: # dd if=/dev/sda | gzip /path/image.gz In order to achieve good compression level I'd like to wipe out all empty space with zeros. How can I do that? That's the wrong way to do it. You should use a tool that only copies the data, and then also backup the partition table. Or use partimage/clonezilla like Neil mentioned which does all that automatically. For my part, I found compressing all files using squashfs to be most useful, specially for backups as restoring single files vs all files is just as simple. Also, using the squashfs archive as read-only base of a unioned mount (aufs, unionfs) is also a very useful trick. As my systems are all setup the same, I never backup the partition table and recreate it each time (easy, and I often change the partition layout anyway). Simon
Re: [gentoo-user] VFAT problem
This is just a vague idea but maybe it is formated as FATX or exFAT which may be seen like FAT16 or FAT32 on linux, but windows recognises the real fs type? It's a wild guess... You could try to reformat it in Linux and try using it after in the GPS to see if it will work. See here if you're curious: http://en.wikipedia.org/wiki/File_Allocation_Table#FATX Simon On Thu, Jul 19, 2012 at 5:20 PM, Mark Knecht markkne...@gmail.com wrote: On Thu, Jul 19, 2012 at 9:45 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, I have a Garmin GPS with a 32GB SD card. If I attach my device to the USB port, a directory listing looks totally scrambled. A listing of the smaller (2GB) 'internal' storage device is just fine. And I am sure the listing of the bigger SD card has been fine earlier when less storage was used. The funny thing, looking at the same SD card from Windows7 (running in VirtualBox) gives a perfect listing (about 28 GB are used). What am I missing? Many thanks for a hint, Helmut. Hi Helmut, Sorry for the problems. No real good ideas here, but assuming the Win 7 VM is on the same Gentoo machine then it appears to be something missing from Gentoo. I'd start by using the Win 7 disk tools: Control Panel - System Security - Create format hard disk partitions and look to see what Win 7 believes it's talking to. Also, make sure if you have the VM running that it isn't automatically mounting the Garmin which would make the SD unavailable to Linux. Handle that in the Virtualbox-Device menu. Best of luck. Sounds like an interesting problem, if that's possible. Cheers, Mark
Re: [gentoo-user] I want to play movies without hangs
Also, there was a thread a good while back with this issue and their fix was to do a emerge -e world with everything optimized for their CPU and such. May be worth thinking about at least. Video playback and CPU optimisations go hand in hand. One video I have had for a long time, I could never play it at all on any of my computers and I could not beleive what I saw next... I got a new PC and thought to give it a try. It worked painfully, skipping and using 100% of one of my CPU cores. I was sad and thought this video might have been corrupt. After a wave of cleanup, I had removed all CPU optimisation flags from my make.conf (I was originally negating many, like -sse, etc, so I left it to my profile to choose what was needed) and recompiled everything. After that, the same movie played in the best quality I had ever seen and CPU usage was below 5% I was even able to open 12 movies (4x3) all playing at the same time (this was unthinkable before I optimized my system). Anyway, keep in mind that my particular starting scenario was that I had un-optimized it long ago! Good luck!
Re: [gentoo-user] Any experience with swapfiles?
I haven't used a swap partition on any of my systems (intel celeron, p3, amd64, intel xeon) for over... what... 10 years? Swapfiles only, and sometimes I don't even mount the swap. Although I have never removed support for any kind of swap from my kernel. dd if=/dev/zero of=/path/to/swapfile bs=1M count=1024 mkswap /path/to/swapfile swapon /path/to/swapfile (btw, I like to put the swap file in /root or /boot, but that's my pref, on space constrained PC, i would put a swapfile on every drive to distribute it). I don't have access to my box to confirm but I think /etc/fstab would be setup the same as normal swap except with the file path instead of the device partition. Except for issue pointed out by Paul about hibernation, dd line above takes care of non-sparsity. As for security, having a swap is less secure than having none: a malicious persion could extract information from programs memory which was swapped (ie, like the decripted information for your eyes only). Having no swap at all was a problem on small systems with little RAM when emerging big stuff (boost failed all the time on a pc with 256mb). Resizing swap on-the-fly with swapfiles: And on HDD-space constrained system, i used to have several swapfiles that I created and deleted in the manner above, that I named swapfile-256, swapfile-512, etc... A smooth upgrade of swap on-the-fly was done this way: say I had 256 swapped on, I could swap on a new 512 (768 total at moment, all data still on 256mb file), then swapoff the 256 (takes a bit of time for swap data to move over), delete the 256. Downgrade can be done in the same manner. swapon -s (status) will be a good friend of yours now. Good luck! Simon On Wed, May 2, 2012 at 2:53 PM, walt w41...@gmail.com wrote: I have two machines with 4GB of ram and I've never seen either one use swapspace (yet) so I'm thinking I could delete my swap partitions and substitute a much smaller swapfile -- if it's safe. Any downside to using a swap file instead of a swap partition, maybe depending on which filesystem you use, or something? Security holes? Any horror stories out there?
Re: [gentoo-user] 3.2.12 Kenel wont boot
The error just means it cannot find any device called /dev/sda4, but can only find your CD (sr0). I get this when booting from a usbkey and I need to tell the kernel to wait 5-10 seconds before detecting hdds. I also had this error when I used a config from my normal computers onto an older computer that used IDE and PATA (these were disabled in kernel). Good luck! On Wed, Apr 25, 2012 at 4:17 PM, James wirel...@tampabay.rr.com wrote: Hello, OK, I manage quite a few gentoo systems. ONE of them is being a BIT _ _ ! and I cannot figure out what is obviously simple I have already migrated most system that I manage to the 3.2.12 kernel (not testing kernels for me at this time). Background: The system is an old HP AMD dual core laptop: AMD Turion(tm) 64 X2 Mobile Technology TL-56 The error message is this: Root-NFS: no NFS server address VFS: Unable to mount root fs via NFS, try floppy VFS: Cannot open root device sda4 or unknown block (2,0) Please append a correct root= boot option; here are the available partitions: oboo 1048575 sr0 driver:sr Kernel panic - not syncing : VFS : Unable to mount root fs on unknown block(2,0) PID:1,comm : swapper /0 Not tainted 3.2.12-gentoo#2 The other (3) series kernels boot and run just fine: from grub.conf: #0 title= Linux 3.2.1-gentoo root(hd0,1) kernel /boot/kernel-3.2.1-gentoo root=/dev/sda4 #1 title= Linux 3.2.12-gentoo root(hd0,1) kernel /boot/kernel-3.2.12-gentoo root=/dev/sda4 #2 title= Linux 3.0.6-gentoo root(hd0,1) kernel /boot/kernel-3.0.6-gentoo root=/dev/sda4 I can even scp over a kernel from a single processor AMD64 laptop and it boots and runs just fine. When I make a new kernel, I do what I have done for years with Gentoo: cd /usr/src rm linux ln -sf latest.kernel linux cd linux make menuconfig save any changes make make models_install cp System.map /boot/System.map-3.2.12-gentoo cp arch/x86_64/boot/bzImage /boot/kernel-3.2.12-gentoo cp .config /boot/config-3.2.12-gentoo So all I can think of is NFS is the difference? I cannot seem to flesh out way the new kernel will not boot on this system and many others are just fine maybe I'm missing support for the sr driver ? ideas? James
Re: [gentoo-user] Tips for saving power needed...
There's powertop that I use, which shows a listing of things that are keeping the computer busy. And it gives recommendations on how to lower power usage (including setting kernel options, enabling/disabling stuff in /sys, etc...). It also estimates power consumption in Watts and gives you approx time left. Many recomendations already posted in this emails will be suggested by powertop. Simon On Mon, Apr 2, 2012 at 8:10 AM, Michael Mol mike...@gmail.com wrote: On Mon, Apr 2, 2012 at 7:57 AM, Pandu Poluan pa...@poluan.info wrote: On Apr 2, 2012 5:00 PM, Robert David robert.david.pub...@gmail.com wrote: Hi, maybe write your hw configuration first. Eg: CPUs, graphic cards, HDDs (size, speed, type) and others. Also provide lspci output and /proc/cpuinfo. Then this is a server, maybe with more than one GB nic. If you dont use spare nics disable them in bios. Do the same with other unneeded stuff. If you can access your server and replace cards, remove everything you dont need. Do not lower fans or dont play with cpu voltage. If you want to run this server 24/7 it can cause serious problems. It will not save you much power. Paradoxly this could lead to higher power usage in some cases, because of hotter devices. Remove spare memory cards, if you dont need much memory, etc. Robert. V Sun, 01 Apr 2012 17:04:58 +0200 Jarry mr.ja...@gmail.com napsáno: Hi, admin of a colo-center keeps complaining my server is going a little over power-limit (which they have set as ~120W per 24h/avg, while my server needs ~130-135W). So I need to find a way to save at least those 15W, or I will be moved to higher tarif (which means higher costs for server-housing). Before going hard(ware) way, I would like to try first all possible software solutions. What I tried up to now is cpufreqd, CONFIG_NO_HZ=y, and spindown. In addition to that I adjusted fan-speeds to a little lower values and turned off some unneeded peripherials (in bios). Is there anything else I could do? Any tips would be greatly welcomed... Jarry I'd rather have *more* RAM than causing unnecessary swaps. Try using a smaller swapfile to reduce swap tendencies. You can always push a larger swapfile into service when needed. There's also a kernel knob to set 'swappiness', but I forget what exactly. Try 'sysctl -a | grep swap' Swappiness is the knob you want to set if you want to reduce swappiness. I set mine to 0; swap only when absolutely necessary. In /etc/sysctl.conf: vm.swappiness = 0 On the command line: sysctl -w vm.swappiness=0 -- :wq
Re: [gentoo-user] InitRAMFS - boot expert sought
Then copy /usr over: mount -o bind / /mnt mount -o remount,ro /usr cp -a /usr/* /mnt/ The bind moun t makes the root FS appear in a 2nd place, without /usr being populated by the content of your /usr partition. Don't forget to remove /usr from /etc/fstab. I can recommend using rsync instead of cp. Main advantage is rsync can be stopped (ie. killed) mid-way and resumed later. No big deal, but if your /usr is as large as mine, you might like this! If transfering very large files, instead of restarting the large file from scratch, using the --append option will write the partial data in the destination file. If killed and resumed, rsync will find the dst file is smaller than it should and will continue from where it left. If the data is absolutely crictical important, you can also use the -c option to force rsync to do a checksum of the files to compare, it will recopy anything that's not right. I normally use a -c check if I used --append and had to kill it (because I'm paranoid AND patient). Although I have seen zero cases where the -c found errors. Note the slashes at end of directories mean something with rsync, in my example below, it means make usr and mnt identical, having rsync /usr /mnt/ means copy usr into /mnt/ (giving /mnt/usr/). So cp -a /usr/* /mnt/ becomes: rsync -ah --progress /usr/ /mnt/ Enjoy!
Re: [gentoo-user] {OT} USB 3.0 hard drive speed test
It is my opinion that benchmarks should be done with a real benchmark tool. Try with bonnie++ This will really show you the strengths and weaknesses of your setup. Good luck, Simon On Thu, Aug 11, 2011 at 1:49 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Donnerstag 11 August 2011, 10:30:04 schrieb Mark Knecht: On Thu, Aug 11, 2011 at 10:12 AM, Grant emailgr...@gmail.com wrote: I'm testing this USB 3.0 bus-powered hard drive: http://www.amazon.com/gp/product/B0041OSQ9S and I get: # hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 8006 MB in 2.00 seconds = 4004.33 MB/sec Timing buffered disk reads: 252 MB in 3.01 seconds = 83.63 MB/sec # hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 8230 MB in 2.00 seconds = 4116.54 MB/sec Timing buffered disk reads: 252 MB in 3.02 seconds = 83.55 MB/sec # hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 8446 MB in 2.00 seconds = 4224.36 MB/sec Timing buffered disk reads: 230 MB in 3.02 seconds = 76.28 MB/sec Wikipedia says USB 3.0 has transmission speeds of up to 5 Gbit/s. Doesn't MB/sec denote mega*bytes* per second? - Grant 4000MB/s = 4Gb/s please read man hdparm -T Perform timings of cache reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indication of the throughput of the processor, cache, and mem- ory of the system under test. as you can see, those numbers have nothing to do with the transport. And 80mb/sec for a harddisk is really, really good. -- #163933
Re: [gentoo-user] Managing multiple Gentoo systems
On Sat, Jul 2, 2011 at 6:14 PM, Grant emailgr...@gmail.com wrote: After a frustrating experience with a Linksys WRT54GL, I've decided to stick with Gentoo routers. This increases the number of Gentoo systems I'm responsible for and they're nearing double-digits. What can be done to make the management of multiple Gentoo systems easier? I think identical hardware in each system would help a lot but I'm not sure that's practical. I need to put together a bunch of new workstations and I'm thinking some sort of server/client arrangement with the only Gentoo install being on the server could be appropriate. - Grant I've been managing 3 very very different gentoo systems for more than 12 months now. I used to have 2 more machines but I decomissioned them for they were old and noisy and it's summer and it's hot enough like that! haha I do not have a lazy-proof way of administrating this whole stuff, but I've come up with some kind of methodology that helps... I found it really helps to have the same profile on all machines, same /etc/portage everything. The /etc/make.conf can vary, but I would make it vary in the most minimal way. For example, all my kernels and /etc/make.conf are compiled for an i686, global use flags are exactly the same... in fact the only difference is my host has extra make option -j5 and their distfiles mirrors will point to my own computers. Basically, downgrade all computers to the lowest common denominator of all your computers. I don't use binpkgs but I'm working on that... and also for the world file, I have 2 world file styles, one has everything in it and the other is just the minimal stuff. I used to maintain the world files directly but I've opted for creating 2 ebuilds in my own portage overlay which are basically called sys-apps/everything and another called sys-apps/minimalist. Maintenance of world files moved to the maintenance of these ebuilds. Also, it helps to have your faster computer install all packages that would be installed on the others. If there's any trouble doing the emerge on that one, you'll have the same problems on the others. If the solution was to add some keywords in /etc/portage or something like that, then you can copy the change over to your other PCs and their emerge should be fine. To reduce network load, I sync my master server (my server online) against official sync server, then I sync my main computer at home against my server, then I sync any other computers at home against the main computer at home. But the activity of making your systems up-to-date will vary in intensity depending on how well it goes. When things are fine, it used to take 30 minutes to get all my systems updated, with the slowest ones taking 2-3 times that but requiring no intervention until the end. I'm currently in the process of writing a script that fully automates the update process. It basically tries things like emerge -uDN --keep-going world and checks for errors, if there are, it then fires a few safe responses which have helped in the past. For example, if the above emerge fails, it then tries a revdep-rebuild, an lafilefixer, python-updater and a few more, and then it restart from scratch trying the emerge again, over and over. Rarely, this will not work and will require that I mask something, add some keyword or update my ebuild to get rid of some package. The script is clearly not intelligent and is wasting a lot of time, but it eventually gets it done. Upgrades now take at least 1 hour, but are fully unattended. Also, I think Wonko's suggestion is pretty good in combination with my suggestions, I haven't tried but it does seem very attractive. Simon
[gentoo-user] Re: python-2.7 python-updater
I did python-updater as said by the ebuild. After it I did emerge -a --depclean which removed python 2.6 Boy I was I happy that I have daily backups. portage did not work anymore. Changing the active python version before running python-updater gives a lot more packages. I did portage by hand. Just don't want to restore a backup two times a day. Dale wrote: Mark Knecht wrote: One of my machines just saw a python-2.7 update and the ebuild was good enough to remind me to run python-updater, but it didn't suggest that I run eselect python and set the active version to 2.7. Should this new version python be selected first as the active python 2 version and then run python-updater? Thanks, Mark And if we should set python to 2.7, should we remove python-2.6? I don't think we want to break something, portage in particular. ;-) Dale :-) :-)
Re: [gentoo-user] VPS has issues emerging everything
Hi all, thanks for all your help. I'll try to reply to everything, but first let me annouce the issue is now resolved and gentoo was not at fault. The virtual HD is physically on a raid (unknown config). Mark, the sector size issue you mention, does it have to do with aligning real HD sectors with filesystem sectors (so that stuff like read-ahead will get no-more-no-less than what the kernel wants)? I've read about this kind of setup when I was interested in RAID long ago... Now that I know my hd is actually on a raid, maybe i could benefit some I/O performance improvements by tuning this a bit! Anyway, I was told by the support team that another user on the same physical machine (remember it's a xen VPS) was doing I/O intensive stuff which could have I/O starved my system. I don't understand how starving or even doing some kind of DoS attack could lead to a complete freeze on the console, but eh... They offered to migrate my system to another physical machine, and after that... I was able to perform a complete 'emerge -e system' in one shot without a scratch, I even did it with --jobs=2 and MAKEOPTS=-j4. After that, I started a complete emerge --keep-going --jobs=2 world with MAKEOPTS=-j8... (i got 4 cores: dual xeon 2Ghz) This last emerge is still going on as I write this and is emerging pkg 522 of 620 !! And there were no build errors so far... It's emerging glibc at the moment, so once the big emerge is finished, I'll probably recompile all pkgs that depend on glibc. I believe glibc was actually updated during my very initial update on monday and I haven't come to do that... but I guess everything will go smoothly from here. Thanks again for all your help guys! Simon On Fri, Jan 7, 2011 at 5:02 PM, Jacob Todd jaketodd...@gmail.com wrote: What do you have MAKEOPTS set to?
Re: [gentoo-user] VPS has issues emerging everything
Just a final word on this... The problem is effectively resolved... i was able to rebuild the system, then world with zero issues. I then ran revdep-rebuild, no issues and no broken links found, I then recompiled pkgs with deps against glibc and ran revdep-rebuild again. The whole thing ran at full capacity and with zero errors. I don't know if I felt as good as this when I found the root cause... I just know that having root again feels great! ;) Okay... and now let's upgrade the kernel... ;P Thanks again, Simon On Sat, Jan 8, 2011 at 3:16 PM, Mark Knecht markkne...@gmail.com wrote: Glad you have a root cause/solution. On Sat, Jan 8, 2011 at 10:49 AM, Simon turne...@gmail.com wrote: SNIP The virtual HD is physically on a raid (unknown config). Mark, the sector size issue you mention, does it have to do with aligning real HD sectors with filesystem sectors (so that stuff like read-ahead will get no-more-no-less than what the kernel wants)? I've read about this kind of setup when I was interested in RAID long ago... Now that I know my hd is actually on a raid, maybe i could benefit some I/O performance improvements by tuning this a bit! As it's RAID underneath it's likely set up correctly. The issue I had in mind was the disk being a 4K/sector disk but the person who built the partition not knowing to align the partition to a 4K boundary. That can cause a _huge_ slowdown. I doubt that's the case here. As this is a hosting service they likely know what they are doing in that area, and if it wasn't done correctly you would have noticed it before I think. Anyway, I was told by the support team that another user on the same physical machine (remember it's a xen VPS) was doing I/O intensive stuff which could have I/O starved my system. I don't understand how starving or even doing some kind of DoS attack could lead to a complete freeze on the console, but eh... Makes sense actually. The other guy took all the disk I/O leaving you with none. If you can't get to the disk then you cannot read ebuilds or write compiled code, or at least not fast. They offered to migrate my system to another physical machine, and after that... I was able to perform a complete 'emerge -e system' in one shot without a scratch, I even did it with --jobs=2 and MAKEOPTS=-j4. After that, I started a complete emerge --keep-going --jobs=2 world with MAKEOPTS=-j8... (i got 4 cores: dual xeon 2Ghz) So now you're in good shape...until some user on the new system starts hogging all the disk I/O and holds you up again. This last emerge is still going on as I write this and is emerging pkg 522 of 620 !! And there were no build errors so far... It's emerging glibc at the moment, so once the big emerge is finished, I'll probably recompile all pkgs that depend on glibc. I believe glibc was actually updated during my very initial update on monday and I haven't come to do that... but I guess everything will go smoothly from here. Thanks again for all your help guys! Simon Good that you got to the root of the problem. Good luck, Mark
[gentoo-user] VPS has issues emerging everything
Hi there, something went wrong during a previous update and now revdep-rebuild will kind-of freeze around 30%. When it freezes like that, the hosting company shows one of it's CPU core is used at 100% non-stop and the rest is idle. I have tried `emerge -e world` and with system, they all fail similarly. I managed to reconfigure it to have a working console and started the `emerge -e system` from the console. After a while it froze, but typed a ctrl-z to suspend the process, then %% to resume it and it unlocked it. It often hung like in between two phases of the emerge process (like after unpacking source, or just before doing the install, etc). I was able to resume the emerge like that a good dozen times until now, and now it's really locked, not responding at all... seems like all 4 cores are used at 100%. It hung while emerging perl and I've included the output on the console below so you can see exactly where it hung. I will now force a reboot on it and retry emerging just perl, I will reply to the list with my results of that. [...] make[1]: Entering directory `/mnt/tmp/portage/dev-lang/perl-5.12.2-r4/work/perl-5.12.2' sh writemain DynaLoader.o perlmain.c rm -f opmini.c cp op.c opmini.c rm -f perlmini.c cp perl.c perlmini.c echo av.c scope.c op.c doop.c doio.c dump.c gv.c hv.c mg.c reentr.c mro.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c sv.c taint.c toke.c util.c deb.c run.c universal.c pad.c globals.c perlio.c perlapi.c numeric.c mathoms.c locale.c pp_pack.c pp_sort.c miniperlmain.c perlmain.c opmini.c perlmini.c | tr ' ' '\n' .clist make[1]: Leaving directory `/mnt/tmp/portage/dev-lang/perl-5.12.2-r4/work/perl-5.12.2' Finding dependencies for av.o. Finding dependencies for scope.o. Finding dependencies for op.o. Finding dependencies for doop.o. Finding dependencies for doio.o. Finding dependencies for dump.o. Finding dependencies for gv.o. Finding dependencies for hv.o. Finding dependencies for mg.o. Finding dependencies for reentr.o. Finding dependencies for mro.o. Finding dependencies for perl.o. Finding dependencies for perly.o. Finding dependencies for pp.o. Finding dependencies for pp_hot.o. Finding dependencies for pp_ctl.o. Finding dependencies for pp_sys.o. Finding dependencies for regcomp.o. Finding dependencies for regexec.o. Finding dependencies for utf8.o. Finding dependencies for sv.o. Finding dependencies for taint.o. Finding dependencies for toke.o. Finding dependencies for util.o. Finding dependencies for deb.o. Finding dependencies for run.o. Finding dependencies for universal.o. Finding dependencies for pad.o. Finding dependencies for globals.o. Finding dependencies for perlio.o. Finding dependencies for perlapi.o. Finding dependencies for numeric.o. Finding dependencies for mathoms.o. Finding dependencies for locale.o. Finding dependencies for pp_pack.o. Finding dependencies for pp_sort.o. Finding dependencies for miniperlmain.o. Finding dependencies for perlmain.o. Finding dependencies for opmini.o. Finding dependencies for perlmini.o.
[gentoo-user] Re: VPS has issues emerging everything
I re-emerged perl and it hung a few lines above my previous issue I copied in prev email. But I was able to ctrl-z+%% to unfreeze it. I'm not sure what to do now since the problem is still there... I'm not sure what critical package deal most with the ability to check for dependencies (revdep-rebuild was freezing, this one froze while finding dependencies)... if anyone has a guess, I'll try rebuilding that pkg and the winner gets a genuine 100$ of monopoly money. Simon On Fri, Jan 7, 2011 at 10:56 AM, Simon turne...@gmail.com wrote: Hi there, something went wrong during a previous update and now revdep-rebuild will kind-of freeze around 30%. When it freezes like that, the hosting company shows one of it's CPU core is used at 100% non-stop and the rest is idle. I have tried `emerge -e world` and with system, they all fail similarly. I managed to reconfigure it to have a working console and started the `emerge -e system` from the console. After a while it froze, but typed a ctrl-z to suspend the process, then %% to resume it and it unlocked it. It often hung like in between two phases of the emerge process (like after unpacking source, or just before doing the install, etc). I was able to resume the emerge like that a good dozen times until now, and now it's really locked, not responding at all... seems like all 4 cores are used at 100%. It hung while emerging perl and I've included the output on the console below so you can see exactly where it hung. I will now force a reboot on it and retry emerging just perl, I will reply to the list with my results of that. [...] make[1]: Entering directory `/mnt/tmp/portage/dev-lang/perl-5.12.2-r4/work/perl-5.12.2' sh writemain DynaLoader.o perlmain.c rm -f opmini.c cp op.c opmini.c rm -f perlmini.c cp perl.c perlmini.c echo av.c scope.c op.c doop.c doio.c dump.c gv.c hv.c mg.c reentr.c mro.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c sv.c taint.c toke.c util.c deb.c run.c universal.c pad.c globals.c perlio.c perlapi.c numeric.c mathoms.c locale.c pp_pack.c pp_sort.c miniperlmain.c perlmain.c opmini.c perlmini.c | tr ' ' '\n' .clist make[1]: Leaving directory `/mnt/tmp/portage/dev-lang/perl-5.12.2-r4/work/perl-5.12.2' Finding dependencies for av.o. Finding dependencies for scope.o. Finding dependencies for op.o. Finding dependencies for doop.o. Finding dependencies for doio.o. Finding dependencies for dump.o. Finding dependencies for gv.o. Finding dependencies for hv.o. Finding dependencies for mg.o. Finding dependencies for reentr.o. Finding dependencies for mro.o. Finding dependencies for perl.o. Finding dependencies for perly.o. Finding dependencies for pp.o. Finding dependencies for pp_hot.o. Finding dependencies for pp_ctl.o. Finding dependencies for pp_sys.o. Finding dependencies for regcomp.o. Finding dependencies for regexec.o. Finding dependencies for utf8.o. Finding dependencies for sv.o. Finding dependencies for taint.o. Finding dependencies for toke.o. Finding dependencies for util.o. Finding dependencies for deb.o. Finding dependencies for run.o. Finding dependencies for universal.o. Finding dependencies for pad.o. Finding dependencies for globals.o. Finding dependencies for perlio.o. Finding dependencies for perlapi.o. Finding dependencies for numeric.o. Finding dependencies for mathoms.o. Finding dependencies for locale.o. Finding dependencies for pp_pack.o. Finding dependencies for pp_sort.o. Finding dependencies for miniperlmain.o. Finding dependencies for perlmain.o. Finding dependencies for opmini.o. Finding dependencies for perlmini.o.
Re: [gentoo-user] Re: VPS has issues emerging everything
This issue happend after a 'emerge -uDN world' after I had not done any updates for a bit over 60 days. (I was just too busy) I already have: sys-apps/portage-2.1.9.25 and I don't have smartctl, what pkg is it in? I'm not sure it will give valid info though as this is a VPS and everything is XENified. My root device is /dev/xvda to give you an idea... But I did run an fsck, a pretty thorough one like fsck.ext3 -c -c -f or something like that... I also added another option that made it super verbose, so I don't know if anything was found, just that *filesystem was modified* by it... I just did the following emerge, these packages had not been recompiled by the emerge -e system that crashed. They all compiled top shape, but the problem doesn't happen on every package, so it's hard to tell... emerge app-shells/bash sys-apps/util-linux sys-fs/e2fsprogs dev-lang/python sys-apps/portage sys-apps/baselayout sys-fs/udev sys-apps/busybox I will redo a simple fsck.ext3 -c -c -f /dev/xvda and see what it says exactly (if it says anything). And then i will --sync and -e @system again... I'll reply to the list with my results... Thanks, Simon On Fri, Jan 7, 2011 at 12:36 PM, Mark Knecht markkne...@gmail.com wrote: On Fri, Jan 7, 2011 at 8:42 AM, Simon turne...@gmail.com wrote: I re-emerged perl and it hung a few lines above my previous issue I copied in prev email. But I was able to ctrl-z+%% to unfreeze it. I'm not sure what to do now since the problem is still there... I'm not sure what critical package deal most with the ability to check for dependencies (revdep-rebuild was freezing, this one froze while finding dependencies)... if anyone has a guess, I'll try rebuilding that pkg and the winner gets a genuine 100$ of monopoly money. Simon emerge -e @system needs to be able to determine dependencies. I think it doesn't get much more basic than that. What version of portage are you using? Portage itself gets emerged pretty late in the emerge -e @system process on my machine. You might try: 1) emerge portage 2) rm /usrportage/distfiles/* 3) eix-sync (or emerge --sync I guess) 4) emerge -fe @system 5) emerge -e @system Also, smartctl -a /dev/sda your drive and see if there are errors getting reported. - Mark c2stable ~ # emerge -pe @system These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-libs/zlib-1.2.3-r1 [ebuild R ] virtual/libintl-0 [ebuild R ] dev-libs/expat-2.0.1-r3 [ebuild R ] sys-devel/gnuconfig-20100924 [ebuild R ] virtual/libiconv-0 [ebuild R ] app-arch/bzip2-1.0.6 [ebuild R ] app-misc/pax-utils-0.2.1 [ebuild R ] dev-libs/gmp-4.3.2 [ebuild R ] sys-devel/gcc-config-1.4.1 [ebuild R ] app-misc/mime-types-8 [ebuild R ] app-arch/cpio-2.11 [ebuild R ] sys-devel/autoconf-wrapper-10-r1 [ebuild R ] sys-libs/timezone-data-2010l [ebuild R ] sys-apps/tcp-wrappers-7.6-r8 [ebuild R ] sys-fs/sysfsutils-2.1.0 [ebuild R ] sys-devel/automake-wrapper-4 [ebuild R ] dev-libs/libffi-3.0.9 [ebuild R ] sys-devel/patch-2.5.9 [ebuild R ] sys-apps/which-2.20 [ebuild R ] app-arch/xz-utils-4.999.9_beta [ebuild R ] dev-util/gperf-3.0.4 [ebuild R ] app-portage/portage-utils-0.3.1 [ebuild R ] sys-kernel/linux-headers-2.6.30-r1 [ebuild R ] sys-devel/m4-1.4.15 [ebuild R ] sys-apps/sandbox-2.4 [ebuild R ] virtual/libffi-0 [ebuild R ] dev-libs/mpfr-2.4.2_p3 [ebuild R ] sys-apps/pciutils-3.1.4 [ebuild R ] app-arch/unzip-6.0-r1 [ebuild R ] sys-apps/sysvinit-2.88-r1 [ebuild R ] virtual/init-0 [ebuild R ] sys-apps/debianutils-3.2.3 [ebuild R ] sys-devel/libperl-5.10.1 [ebuild R ] sys-auth/pambase-20101024 [ebuild R ] virtual/acl-0 [ebuild R ] app-admin/python-updater-0.8 [ebuild R ] virtual/libusb-0 [ebuild R ] virtual/perl-digest-base-1.16 [ebuild R ] sys-devel/binutils-config-1.9-r4 [ebuild R ] sys-apps/man-pages-posix-2003a [ebuild R ] virtual/perl-Scalar-List-Utils-1.23 [ebuild R ] virtual/perl-libnet-1.22 [ebuild R ] virtual/perl-Digest-MD5-2.39 [ebuild R ] app-text/docbook-xsl-stylesheets-1.75.2 [ebuild R ] app-text/build-docbook-catalog-1.4 [ebuild R ] virtual/perl-ExtUtils-CBuilder-0.27.03 [ebuild R ] virtual/perl-Module-Build-0.36.07 [ebuild R ] virtual/perl-Test-Harness-3.17 [ebuild R ] virtual/perl-Archive-Tar-1.54 [ebuild R ] virtual/perl-ExtUtils-ParseXS-2.22.05 [ebuild R ] sys-devel/autoconf-2.65-r1 [ebuild R ] sys-devel/automake-1.11.1 [ebuild R ] sys-devel/libtool-2.2.10 [ebuild R ] dev-libs/libusb-0.1.12-r5 [ebuild R ] app-text/sgml-common-0.6.3-r5 [ebuild R ] sys-devel/gettext-0.18.1.1-r1 [ebuild R ] sys-apps/sed-4.2.1 [ebuild R ] sys-apps/findutils-4.4.2 [ebuild R ] sys-devel/flex-2.5.35 [ebuild R ] dev-libs/popt-1.16
Re: [gentoo-user] VPS has issues emerging everything
Ok, the fsck reported nothing wrong... I still got the same bug again... while doing `emerge -e @system`... It got stuck right after the Installing line below... Dale, I just checked my python version and it was already 2.6, i set it to 2.6 again, just in case, and continued my emerge (the ctrl-z + %% worked at this point). I'll reply here again with the next issue... Thanks, Simon Emerging (35 of 151) sys-devel/binutils-config-1.9-r4 * Package:sys-devel/binutils-config-1.9-r4 * Repository: gentoo * Maintainer: toolch...@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 Unpacking source... Source unpacked in /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/work Compiling source in /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/work ... Source compiled. Test phase [not enabled]: sys-devel/binutils-config-1.9-r4 Install binutils-config-1.9-r4 into /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/image/ category sys-devel Completed installing binutils-config-1.9-r4 into /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/image/ ecompressdir: bzip2 -9 /usr/share/man Installing (35 of 151) sys-devel/binutils-config-1.9-r4 \ On Fri, Jan 7, 2011 at 1:22 PM, Dale rdalek1...@gmail.com wrote: Simon wrote: Hi there, something went wrong during a previous update and now revdep-rebuild will kind-of freeze around 30%. When it freezes like that, the hosting company shows one of it's CPU core is used at 100% non-stop and the rest is idle. I have tried `emerge -e world` and with system, they all fail similarly. I managed to reconfigure it to have a working console and started the `emerge -e system` from the console. After a while it froze, but typed a ctrl-z to suspend the process, then %% to resume it and it unlocked it. It often hung like in between two phases of the emerge process (like after unpacking source, or just before doing the install, etc). I was able to resume the emerge like that a good dozen times until now, and now it's really locked, not responding at all... seems like all 4 cores are used at 100%. It hung while emerging perl and I've included the output on the console below so you can see exactly where it hung. I will now force a reboot on it and retry emerging just perl, I will reply to the list with my results of that. SNIP Have you enabled python3 by any chance? eselect python list should show 2.6 as the active python. Just a thought. Someone else did this the other day and had troubles. Dale :-) :-)
Re: [gentoo-user] VPS has issues emerging everything
Ok, it actually just froze again after the output below... / Emerging (42 of 151) sys-devel/autoconf-2.65-r1 * autoconf-2.65.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * Package:sys-devel/autoconf-2.65-r1 * Repository: gentoo * Maintainer: base-sys...@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 Unpacking source... Unpacking autoconf-2.65.tar.bz2 to /mnt/tmp/portage/sys-devel/autoconf-2.65-r1/work * Applying autoconf-2.65-AC_TYPE_INT_T.patch ...[ ok ] Source unpacked in /mnt/tmp/portage/sys-devel/autoconf-2.65-r1/work Compiling source in /mnt/tmp/portage/sys-devel/autoconf-2.65-r1/work/autoconf-2.65 ... * econf: updating autoconf-2.65/build-aux/config.guess with /usr/share/gnuconfig/config.guess * econf: updating autoconf-2.65/build-aux/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --program-suffix=-2.65 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether /bin/sh -n is known to work... yes checking for characters that cannot appear in file names... none checking whether directories can have trailing spaces... yes checking for expr... /usr/bin/expr checking for GNU M4 that supports accurate traces... /usr/bin/m4 checking whether /usr/bin/m4 accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for perl... /usr/bin/perl checking whether /usr/bin/perl Fcntl::flock is implemented... yes checking for emacs... no checking for emacs... no checking where .elc files should go... ${datadir}/emacs/site-lisp checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking whether make is case sensitive... yes configure: creating ./config.status config.status: creating tests/Makefile config.status: creating tests/atlocal config.status: creating man/Makefile config.status: creating lib/emacs/Makefile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating lib/Makefile config.status: creating lib/Autom4te/Makefile config.status: creating lib/autoscan/Makefile config.status: creating lib/m4sugar/Makefile config.status: creating lib/autoconf/Makefile config.status: creating lib/autotest/Makefile // On Fri, Jan 7, 2011 at 2:40 PM, Simon turne...@gmail.com wrote: Ok, the fsck reported nothing wrong... I still got the same bug again... while doing `emerge -e @system`... It got stuck right after the Installing line below... Dale, I just checked my python version and it was already 2.6, i set it to 2.6 again, just in case, and continued my emerge (the ctrl-z + %% worked at this point). I'll reply here again with the next issue... Thanks, Simon Emerging (35 of 151) sys-devel/binutils-config-1.9-r4 * Package: sys-devel/binutils-config-1.9-r4 * Repository: gentoo * Maintainer: toolch...@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 Unpacking source... Source unpacked in /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/work Compiling source in /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/work ... Source compiled. Test phase [not enabled]: sys-devel/binutils-config-1.9-r4 Install binutils-config-1.9-r4 into /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/image/ category sys-devel Completed installing binutils-config-1.9-r4 into /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/image/ ecompressdir: bzip2 -9 /usr/share/man Installing (35 of 151) sys-devel/binutils-config-1.9-r4 \ On Fri, Jan 7, 2011 at 1:22 PM, Dale rdalek1...@gmail.com wrote: Simon wrote: Hi there, something went wrong during a previous update and now revdep-rebuild will kind-of freeze around 30%. When it freezes like that, the hosting company shows one of it's CPU core is used at 100% non-stop and the rest is idle. I have tried `emerge -e world` and with system, they all fail similarly. I managed to reconfigure it to have a working console and started the `emerge -e system` from the console. After a while it froze, but typed a ctrl-z to suspend the process, then %% to resume it and it unlocked it. It often hung like in between two phases of the emerge process (like after unpacking source, or just before doing the install, etc). I was able to resume the emerge like that a good dozen times until now, and now it's really locked, not responding at all... seems
Re: [gentoo-user] VPS has issues emerging everything
Ok, was just doing a fsck.ext3 -c -c -C 1 /dev/xvda from within a rescue OS provided by my VPS provider... and it froze at the middle of it!!! So I guess Gentoo is not responsible after all... I've opened a support ticket with them... I'll let you know how it turns out. Simon On Fri, Jan 7, 2011 at 2:42 PM, Simon turne...@gmail.com wrote: Ok, it actually just froze again after the output below... / Emerging (42 of 151) sys-devel/autoconf-2.65-r1 * autoconf-2.65.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * Package: sys-devel/autoconf-2.65-r1 * Repository: gentoo * Maintainer: base-sys...@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 Unpacking source... Unpacking autoconf-2.65.tar.bz2 to /mnt/tmp/portage/sys-devel/autoconf-2.65-r1/work * Applying autoconf-2.65-AC_TYPE_INT_T.patch ... [ ok ] Source unpacked in /mnt/tmp/portage/sys-devel/autoconf-2.65-r1/work Compiling source in /mnt/tmp/portage/sys-devel/autoconf-2.65-r1/work/autoconf-2.65 ... * econf: updating autoconf-2.65/build-aux/config.guess with /usr/share/gnuconfig/config.guess * econf: updating autoconf-2.65/build-aux/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --program-suffix=-2.65 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether /bin/sh -n is known to work... yes checking for characters that cannot appear in file names... none checking whether directories can have trailing spaces... yes checking for expr... /usr/bin/expr checking for GNU M4 that supports accurate traces... /usr/bin/m4 checking whether /usr/bin/m4 accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for perl... /usr/bin/perl checking whether /usr/bin/perl Fcntl::flock is implemented... yes checking for emacs... no checking for emacs... no checking where .elc files should go... ${datadir}/emacs/site-lisp checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking whether make is case sensitive... yes configure: creating ./config.status config.status: creating tests/Makefile config.status: creating tests/atlocal config.status: creating man/Makefile config.status: creating lib/emacs/Makefile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating lib/Makefile config.status: creating lib/Autom4te/Makefile config.status: creating lib/autoscan/Makefile config.status: creating lib/m4sugar/Makefile config.status: creating lib/autoconf/Makefile config.status: creating lib/autotest/Makefile // On Fri, Jan 7, 2011 at 2:40 PM, Simon turne...@gmail.com wrote: Ok, the fsck reported nothing wrong... I still got the same bug again... while doing `emerge -e @system`... It got stuck right after the Installing line below... Dale, I just checked my python version and it was already 2.6, i set it to 2.6 again, just in case, and continued my emerge (the ctrl-z + %% worked at this point). I'll reply here again with the next issue... Thanks, Simon Emerging (35 of 151) sys-devel/binutils-config-1.9-r4 * Package: sys-devel/binutils-config-1.9-r4 * Repository: gentoo * Maintainer: toolch...@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 Unpacking source... Source unpacked in /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/work Compiling source in /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/work ... Source compiled. Test phase [not enabled]: sys-devel/binutils-config-1.9-r4 Install binutils-config-1.9-r4 into /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/image/ category sys-devel Completed installing binutils-config-1.9-r4 into /mnt/tmp/portage/sys-devel/binutils-config-1.9-r4/image/ ecompressdir: bzip2 -9 /usr/share/man Installing (35 of 151) sys-devel/binutils-config-1.9-r4 \ On Fri, Jan 7, 2011 at 1:22 PM, Dale rdalek1...@gmail.com wrote: Simon wrote: Hi there, something went wrong during a previous update and now revdep-rebuild will kind-of freeze around 30%. When it freezes like that, the hosting company shows one of it's CPU core is used at 100% non-stop and the rest is idle. I have tried `emerge -e world` and with system, they all fail similarly. I managed to reconfigure it to have a working console and started the `emerge -e
[gentoo-user] emerge portage error
Hi, Please help me to get rid of this error while emerging portage: # emerge portage Calculating dependencies... done! Verifying ebuild Manifests... starting parallel fetching pid 6030 Emerging (1 of 2) dev-lang/python-2.5.4-r4 to / * Python-2.5.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * python-gentoo-patches-2.5.4-r3.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking Python-2.5.4.tar.bz2 ;-) ... [ ok ] * checking python-gentoo-patches-2.5.4-r3.tar.bz2 ;-) ... [ ok ] * bsddb module is out-of-date and no longer maintained inside dev-lang/python. It has * been additionally removed in Python 3. You should use external, still maintained bsddb3 * module provided by dev-python/bsddb3 which supports both Python 2 and Python 3. * * ERROR: dev-lang/python-2.5.4-r4 failed. * Call stack: *ebuild.sh, line 49: Called pkg_setup * python-2.5.4-r4.ebuild, line 64: Called built_with_use 'pkg_setup' 'pkg_setup' *eutils.eclass, line 1862: Called die * The specific snippet of code: * die) die $PKG does not actually support the $1 USE flag!;; * The die message: * sys-devel/gcc-4.1.2 does not actually support the libffi USE flag! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/python-2.5.4-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-2.5.4-r4/temp/die.env'. * * Messages for package dev-lang/python-2.5.4-r4: * * ERROR: dev-lang/python-2.5.4-r4 failed. * Call stack: *ebuild.sh, line 49: Called pkg_setup * python-2.5.4-r4.ebuild, line 64: Called built_with_use 'pkg_setup' 'pkg_setup' *eutils.eclass, line 1862: Called die * The specific snippet of code: * die) die $PKG does not actually support the $1 USE flag!;; * The die message: * sys-devel/gcc-4.1.2 does not actually support the libffi USE flag! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/python-2.5.4-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-2.5.4-r4/temp/die.env'. * * bsddb module is out-of-date and no longer maintained inside dev-lang/python. It has * been additionally removed in Python 3. You should use external, still maintained bsddb3 * module provided by dev-python/bsddb3 which supports both Python 2 and Python 3.
[gentoo-user] libXfont 1.4.0 fails to emerge
I need libXfont-1.4.0 because xf86-video-intel-2.7.99.902-r1 depends on xorg-server-1.6.3 which depends on libXfont-1.4.0. But libXfont fails to emerge. Here is the end of the libXfont build.log: libtool: link: i686-pc-linux-gnu-gcc -shared .libs/dummy.o -Wl,--whole-archive fontfile/.libs/libfontfile.a FreeType/.libs/libft.a bitmap/.libs/libbitmap.a builtins/.libs/libbuiltins.a fc/.libs/libfc.a util/.libs/libutil.a stubs/.libs/libstubs.a -Wl,--no-whole-archive /usr/lib/libfreetype.so -lbz2 -lm /usr/lib/libfontenc.so -lz -march=i686 -Wl,-O1 -Wl,-soname -Wl,libXfont.so.1 -o .libs/libXfont.so.1.4.1 bitmap/.libs/libbitmap.a: member bitmap/.libs/libbitmap.a(bitscale.o) in archive is not an object collect2: ld returned 1 exit status make[3]: *** [libXfont.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/x11-libs/libXfont-1.4.0/work/libXfont-1.4.0/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-libs/libXfont-1.4.0/work/libXfont-1.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/libXfont-1.4.0/work/libXfont-1.4.0' make: *** [all] Error 2 [31;01m*[0m [31;01m*[0m ERROR: x11-libs/libXfont-1.4.0 failed. [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 49: Called src_compile [31;01m*[0m environment, line 3109: Called x-modular_src_compile [31;01m*[0m environment, line 3894: Called x-modular_src_make [31;01m*[0m environment, line 3934: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m emake || die emake failed [31;01m*[0m The die message: [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m*[0m A complete build log is located at '/var/tmp/portage/x11-libs/libXfont-1.4.0/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-libs/libXfont-1.4.0/temp/environment'. [31;01m*[0m
[gentoo-user] Intel dilemma
I posted this on the forums but I want some more information. I have a bit of a dilemma. With these settings, xf86-video-intel: 2.6.3-r1 xorg-server: 1.6.2-r1 and 1.6.3 kernel module: i830 kernel: gentoo 2.6.29-r5 and 2.6.30-r4 sometimes when stopping or starting X my computer would freeze and there would be no video output. However, other than that, inside Gnome Firefox ran pretty smoothly, not incredibly fast, but not sluggishly at all. With these settings, xf86-video-intel: 2.8.0 xorg-server: 1.6.3 kernel module: i915 kernel: vanilla 2.6.31_rc7 X starts and stops very smoothly without ever freezing, I think because of the KMS. But Firefox runs sluggishly and my whole machine freezes in Firefox frequently. According to this, http://www.x.org/wiki/IntelGraphicsDriver, the 2.8.0 driver drops support for XAA and EXA, but has no UXA support for my graphics card (865G), so I think I'm getting no 2D acceleration. Could that be the reason Firefox is so slow? As for the freezes, I think that's just because the newer driver is unstable. What are the optimum driver and kernel versions for my graphics card, the 865G? Also, the reason I'm using the 2.6.31 kernel is because that X.Org wiki page says it works best with the 2.8.0 intel driver. Oh, and what exactly is the kernel module for and what are the differences between the i830 and i915? Pappy told me I should use kernel .27, and that KMS support right now for my card is very unstable. Anyway, I just want to know the best options right now for my card which is the 865G.
Re: [gentoo-user] Intel dilemma
On Sat, Aug 29, 2009 at 03:48:59PM -0500, Andr??s Becerra Sandoval wrote: Hello, I have a 865G too, the only combination that works for me with the i915 intel driver is: kernel: gentoo-sources-2.6.28 driver: xf86-video-intel: 2.7.1 Anything above that (=gentoo-sources-2.6.29, =xf86-video-intel: 2.7.1) fails for my setup with freezes like the ones you describe. As my box is ~x86, I have installed many versions of xorg-server without varying the kernel and driver, and they worked all right. I am thinking in giving up to using the intel driver in order to user the latest kernel, with an /etc/X11/xorg.conf using a VESA card configuration and I have not tested the i830 option. Hope this helps. -- Andr??s Thank you very much! That is very helpful to know and I will get back to you on how it works for me. Also, let me know how the VESA card configuration works. What does that mean exactly, it's just a generic solution?
Re: [gentoo-user] Intel dilemma
On Sat, Aug 29, 2009 at 03:40:14PM -0700, Keith Dart wrote: Works for me, YMMV. -- Keith Dart And you don't get freezes or anything?
Re: [gentoo-user] Intel dilemma
Hey, nevermind about my USB wireless-LAN card not working, it just requires a different firmware for that kernel, I looked it up (although the problems with it hanging still remain). By the way, I know I should be replying to the messages I already sent right? But those messages don't appear in my inbox, with mutt using GMail and IMAP, any suggestions?
Re: [gentoo-user] Intel dilemma
Well I tried the .28 kernel with the package versions you suggested, and when the X server starts, it's just a black screen BUT the machine doesn't freeze and there is video output, it is just black. These lines seem relevant in the Xorg log: (II) GLX: Initialized DRI GL provider for screen 0 (II) intel(0): Setting screen physical size to 304 x 228 [config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection :1.3 is not allowed to own the service org.x.config.display0 due to security policies in the configuration file) (II) config/hal: Adding input device ImPS/2 Generic Wheel Mouse One other problem I have with that kernel is that my USB wireless LAN card isn't seen, even though I have the correct prism54 module set in the kernel, like in my new kernels where it works fine. By the way, if you choose prism54 built-in, for some reason the kernel stops early in the boot process for several minutes before continuing. Should I file a bug? Do you have an xorg.conf? I've been doing this without one, which works with the other kernels.
Re: [gentoo-user] Intel dilemma
And I just sent the last two messages in the wrong order because I forgot I still only had a draft of my first message, I never actually sent it until I realized that.
Re: [gentoo-user] Intel dilemma
On Sat, Aug 29, 2009 at 04:44:31PM -0700, Keith Dart wrote: === On Sat, 08/29, Simon Hunt wrote: === And you don't get freezes or anything? === No, everything seems to be working fine now. -- Keith Dart Okay, I did everything you said and THANK YOU! I don't get freezes anymore BUT I don't have direct rendering, which means everything is very slow because my CPU is doing all the work (I think that's what it means...). Anyway, here is the Xorg log: This is a pre-release version of the X server from The X.Org Foundation. It is not supported in any way. Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/. Select the xorg product for bugs you find in this release. Before reporting bugs in pre-release versions please check the latest version in the X.Org Foundation git repository. See http://wiki.x.org/wiki/GitPage for git access instructions. X.Org X Server 1.6.3.901 (1.6.4 RC 1) Release Date: 2009-8-25 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.31-rc7 i686 Current Operating System: Linux gentoo-desktop 2.6.30-gentoo-r4 #11 Sat Aug 29 19:10:41 EDT 2009 i686 Build Date: 29 August 2009 07:22:41PM Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Sat Aug 29 19:45:53 2009 (II) Loader magic: 0x1da0 (II) Module ABI versions: X.Org ANSI C Emulation: 0.4 X.Org Video Driver: 5.0 X.Org XInput driver : 4.0 X.Org Server Extension : 2.0 (II) Loader running on linux (++) using VT number 8 (--) PCI:*(0:0:2:0) 8086:2572:1028:019d Intel Corporation 82865G Integrated Graphics Controller rev 2, Mem @ 0xe800/134217728, 0xfeb8/524288, I/O @ 0xefa8/8 (==) Using default built-in configuration (39 lines) (==) --- Start of built-in configuration --- Section Device Identifier Builtin Default intel Device 0 Driver intel EndSection Section Screen Identifier Builtin Default intel Screen 0 Device Builtin Default intel Device 0 EndSection Section Device Identifier Builtin Default i810 Device 0 Driver i810 EndSection Section Screen Identifier Builtin Default i810 Screen 0 Device Builtin Default i810 Device 0 EndSection Section Device Identifier Builtin Default vesa Device 0 Driver vesa EndSection Section Screen Identifier Builtin Default vesa Screen 0 Device Builtin Default vesa Device 0 EndSection Section Device Identifier Builtin Default fbdev Device 0 Driver fbdev EndSection Section Screen Identifier Builtin Default fbdev Screen 0 Device Builtin Default fbdev Device 0 EndSection Section ServerLayout Identifier Builtin Default Layout Screen Builtin Default intel Screen 0 Screen Builtin Default i810 Screen 0 Screen Builtin Default vesa Screen 0 Screen Builtin Default fbdev Screen 0 EndSection (==) --- End of built-in configuration --- (==) ServerLayout Builtin Default Layout (**) |--Screen Builtin Default intel Screen 0 (0) (**) | |--Monitor default monitor (**) | |--Device Builtin Default intel Device 0 (==) No monitor specified for screen Builtin Default intel Screen 0. Using a default monitor configuration. (**) |--Screen Builtin Default i810 Screen 0 (1) (**) | |--Monitor default monitor (**) | |--Device Builtin Default i810 Device 0 (==) No monitor specified for screen Builtin Default i810 Screen 0. Using a default monitor configuration. (**) |--Screen Builtin Default vesa Screen 0 (2) (**) | |--Monitor default monitor (**) | |--Device Builtin Default vesa Device 0 (==) No monitor specified for screen Builtin Default vesa Screen 0. Using a default monitor configuration. (**) |--Screen Builtin Default fbdev Screen 0 (3) (**) | |--Monitor default monitor (**) | |--Device Builtin Default fbdev Device 0 (==) No monitor specified for screen Builtin Default fbdev Screen 0. Using a default monitor configuration. (==) Automatically adding devices (==) Automatically enabling devices (WW) The directory /usr/share/fonts/TTF/ does not exist. Entry deleted from font path. (WW) The directory /usr/share/fonts/OTF does not exist. Entry deleted from font path. (WW) The directory /usr/share/fonts/Type1/ does not exist. Entry deleted from font
Re: [gentoo-user] Intel dilemma
On Sat, Aug 29, 2009 at 07:55:16PM -0400, Simon Hunt wrote: On Sat, Aug 29, 2009 at 04:44:31PM -0700, Keith Dart wrote: === On Sat, 08/29, Simon Hunt wrote: === And you don't get freezes or anything? === No, everything seems to be working fine now. -- Keith Dart Okay, I did everything you said and THANK YOU! I don't get freezes anymore BUT I don't have direct rendering, which means everything is very slow because my CPU is doing all the work (I think that's what it means...). Anyway, here is the Xorg log: ... Okay I got direct rendering to work, I think by removing the intel framebuffer from my kernel modules. Now my graphics are definitely faster, but not as fast as they once were before I upgraded to the 2.8 intel driver series. For instance, Facebook.com on Firefox is much slower and laggy. And I've noticed it even in apps like mutt and less in gnome-terminal. I haven't experienced any freezes though, and the way it was before, it *definitely* would have frozen by now. So any thoughts on why it is slower? Do you think it will be faster in subsequent releases? I thought uxa was supposed to be better than whatever I had before.
Re: [gentoo-user] Intel dilemma
Yes, it's me again. I think upgrading to the newest unstable vanilla-source (31-rc8) makes it definitely go faster, but Firefox is still a little laggy. Although Epiphany really isn't, so I think it's just Firefox's fault. Anyway, my computer actually did freeze once. Just wanting to provide an update I guess.
Re: [gentoo-user] Intel dilemma
On Sat, Aug 29, 2009 at 07:06:35PM -0400, Simon Hunt wrote: Well I tried the .28 kernel with the package versions you suggested, and when the X server starts, it's just a black screen BUT the machine doesn't freeze and there is video output, it is just black. These lines seem relevant in the Xorg log: (II) GLX: Initialized DRI GL provider for screen 0 (II) intel(0): Setting screen physical size to 304 x 228 [config/dbus] couldn't take over org.x.config: org.freedesktop.DBus.Error.AccessDenied (Connection :1.3 is not allowed to own the service org.x.config.display0 due to security policies in the configuration file) (II) config/hal: Adding input device ImPS/2 Generic Wheel Mouse This is probably because I was accidentally using an xorg.conf. I'll get back to you on this later.
[gentoo-user] Re: Intel dilemma
On Sat, Aug 29, 2009 at 02:00:35PM -0400, Simon Hunt wrote: I posted this on the forums but I want some more information. I have a bit of a dilemma. With these settings, xf86-video-intel: 2.6.3-r1 xorg-server: 1.6.2-r1 and 1.6.3 kernel module: i830 kernel: gentoo 2.6.29-r5 and 2.6.30-r4 sometimes when stopping or starting X my computer would freeze and there would be no video output. However, other than that, inside Gnome Firefox ran pretty smoothly, not incredibly fast, but not sluggishly at all. With these settings, xf86-video-intel: 2.8.0 xorg-server: 1.6.3 kernel module: i915 kernel: vanilla 2.6.31_rc7 X starts and stops very smoothly without ever freezing, I think because of the KMS. But Firefox runs sluggishly and my whole machine freezes in Firefox frequently. According to this, http://www.x.org/wiki/IntelGraphicsDriver, the 2.8.0 driver drops support for XAA and EXA, but has no UXA support for my graphics card (865G), so I think I'm getting no 2D acceleration. Could that be the reason Firefox is so slow? As for the freezes, I think that's just because the newer driver is unstable. What are the optimum driver and kernel versions for my graphics card, the 865G? Also, the reason I'm using the 2.6.31 kernel is because that X.Org wiki page says it works best with the 2.8.0 intel driver. Oh, and what exactly is the kernel module for and what are the differences between the i830 and i915? Pappy told me I should use kernel .27, and that KMS support right now for my card is very unstable. Anyway, I just want to know the best options right now for my card which is the 865G. Okay, my current setup is xf86-video-intel: 2.7.1 xorg-server: 1.6.3.901 kernel: 2.6.30-r4 with i915 and it never freezes while starting or stopping, and it never lags in Firefox. The only way this differs from my old setup is the xorg-server, so I think they may have fixed the freezing issue in the version. I tried both suggestions, and I don't know why but they just didn't work for me. Thanks for all the help though! Oh by the way, the only reason I even tried this was because I had to use a different kernel to get into X and it just happened to work perfectly!
[gentoo-user] Re: Intel dilemma
On Sat, Aug 29, 2009 at 10:30:02PM -0400, Simon Hunt wrote: On Sat, Aug 29, 2009 at 02:00:35PM -0400, Simon Hunt wrote: I posted this on the forums but I want some more information. I have a bit of a dilemma. With these settings, xf86-video-intel: 2.6.3-r1 xorg-server: 1.6.2-r1 and 1.6.3 kernel module: i830 kernel: gentoo 2.6.29-r5 and 2.6.30-r4 sometimes when stopping or starting X my computer would freeze and there would be no video output. However, other than that, inside Gnome Firefox ran pretty smoothly, not incredibly fast, but not sluggishly at all. With these settings, xf86-video-intel: 2.8.0 xorg-server: 1.6.3 kernel module: i915 kernel: vanilla 2.6.31_rc7 X starts and stops very smoothly without ever freezing, I think because of the KMS. But Firefox runs sluggishly and my whole machine freezes in Firefox frequently. According to this, http://www.x.org/wiki/IntelGraphicsDriver, the 2.8.0 driver drops support for XAA and EXA, but has no UXA support for my graphics card (865G), so I think I'm getting no 2D acceleration. Could that be the reason Firefox is so slow? As for the freezes, I think that's just because the newer driver is unstable. What are the optimum driver and kernel versions for my graphics card, the 865G? Also, the reason I'm using the 2.6.31 kernel is because that X.Org wiki page says it works best with the 2.8.0 intel driver. Oh, and what exactly is the kernel module for and what are the differences between the i830 and i915? Pappy told me I should use kernel .27, and that KMS support right now for my card is very unstable. Anyway, I just want to know the best options right now for my card which is the 865G. Okay, my current setup is xf86-video-intel: 2.7.1 xorg-server: 1.6.3.901 kernel: 2.6.30-r4 with i915 and it never freezes while starting or stopping, and it never lags in Firefox. The only way this differs from my old setup is the xorg-server, so I think they may have fixed the freezing issue in the version. I tried both suggestions, and I don't know why but they just didn't work for me. Thanks for all the help though! Oh by the way, the only reason I even tried this was because I had to use a different kernel to get into X and it just happened to work perfectly! No, I was wrong. I also changed my xf86-video-intel, and THAT is what fixed the freezing problem, but now I have another freezing problem which I think is cause by the new intel driver because it happened in several versions of xorg-server.
Re: [gentoo-user] Blank screen when starting or stopping X server
Well I think I fixed the problem by upgrading the kernel to vanilla-sources-2.6.31-rc7 and xf86-video-intel-2.8.0 (and recompiling against the new kernel), and switching to the i915 module in the kernel. I did this because of the suggestions at http://www.x.org/wiki/IntelGraphicsDriver (I already had xorg-server 1.6.3). However, now firefox is significantly slower and I'm wondering if that is a problem with the newer driver or the framebuffer or something. Is that possible? Or should I rebuild firefox? Another thing is that in menuconfig, there was no longer an option for the framebuffer driver for my chipset, but after openrc starts the boot process, the frame is suddenly buffered. How does that happen?
Re: [gentoo-user] Blank screen when starting or stopping X server
On Tue, Aug 25, 2009 at 01:03:21PM -0400, Willie Wong wrote: On Mon, Aug 24, 2009 at 09:28:50PM -0400, Penguin Lover Simon Hunt squawked: Sometimes when I start or stop the X server, for instance at boot when GDM loads, or when I logout of Gnome and GDM is restarted, the screen goes blank, and the monitor shows an orange light as if it were disconnected from the computer. The computer is still on, but I think it is frozen, because I can't use ssh to access it. I've diffed the Xorg logs from a normal server and a frozen server and they are the same besides dates and other trivial lines, unless perhaps the frozen server doesn't even write to a log. If you think I should try that again, tell me. I could have done something wrong. How about the system/kernel logs? Have you built a video driver against a wrong kernel? Here are the relevant lines from /var/log/messages: Aug 25 23:38:04 gentoo-desktop sudo: skrapasor : TTY=pts/0 ; PWD=/home/skrapasor ; USER=root ; COMMAND=/sbin/reboot Aug 25 23:38:04 gentoo-desktop sudo: pam_unix(sudo:session): session opened for user root by skrapasor(uid=0) Aug 25 23:38:04 gentoo-desktop sudo: pam_unix(sudo:session): session closed for user root Aug 25 23:38:04 gentoo-desktop shutdown[25368]: shutting down for system reboot Aug 25 23:38:04 gentoo-desktop init: Switching to runlevel: 6 Aug 25 23:38:09 gentoo-desktop gdm[2404]: pam_unix(gdm:session): session closed for user skrapasor Aug 25 23:40:11 gentoo-desktop syslog-ng[3058]: syslog-ng starting up; version='2.1.4' Aug 25 23:40:11 gentoo-desktop Linux version 2.6.30-gentoo-r4 (r...@gentoo-desktop) (gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) ) #8 Wed Aug 19 23:09:14 EDT 2009 Init switches to runlevel 6, then GDM closes the session for skrapasor, and then nothing else is written until I manually reboot by holding the power button. I also attached the Xorg.0.log.old log, which looks to be written to at around the same time the machine froze. Any other logs I should check? And what kernel should I build my driver against? Actually, I doubt that's the problem because it's done this with every kernel I've had. My video card is in the Xorg log. I'm new to mailing lists so please tell me if I am doing something wrong. I wasn't sure how to post the messages log because screen, or more likely vim, was automatically adding newlines where I didn't want them, so sorry if it's too wide. I love this line by the way: On Mon, Aug 24, 2009 at 09:28:50PM -0400, Penguin Lover Simon Hunt squawked: Xorg.0.log.old Description: application/trash
[gentoo-user] Blank screen when starting or stopping X server
Sometimes when I start or stop the X server, for instance at boot when GDM loads, or when I logout of Gnome and GDM is restarted, the screen goes blank, and the monitor shows an orange light as if it were disconnected from the computer. The computer is still on, but I think it is frozen, because I can't use ssh to access it. I've diffed the Xorg logs from a normal server and a frozen server and they are the same besides dates and other trivial lines, unless perhaps the frozen server doesn't even write to a log. If you think I should try that again, tell me. I could have done something wrong.
[gentoo-user] Aluminum iMac framebuffer?
I can't get a 1680x1050 framebuffer (my native resolution) or any widescreen framebuffer on this intel iMac and the console looks pretty bad because of it. The best I can use is 1024x768. I have a Radeon HD 2400 XT video card. The Radeon framebuffer radeonfb in the kernel doesn't support this card. What can I do?
Re: [gentoo-user] File synchronisation utility (searching for/about to program it)
I'm the last you would want to give advice about this question, but even though I am not a programmer, I have been using git to sync on three different systems. I am using a flash drive as a cache, so to speak. I followed some tips from the Emacs org-mode mailing list to get this going. It wasn't simple for me to recover when some files got out of sync on one of the machines, but it was simple enough that even I could figure it out. I used a bare repo on the flash drive and push from each machine to this, a very simple procedure that can be automated through cron, and pull to each machine also from the bare repository. I am not syncing a programming project, but my various work. Your reply is more than welcome! I have tried using git in the past and found that it doesnt work in my 'space constrained' scenario. The need for a repository is a problem. The use of the usbkey however is nice since it allows git to work without having each computer maintain its own repository... but still... i dont currently have a usbkey that's large enough to hold all my data, even if i could compress it i doubt it would fit. Another thing is, i wonder if it retains the attributes of the file (creation date, mod date, owner/group, permissions)? As this can be important on some aspects of my synchronisation needs. Still, git is a very good solution that works incrementally in a differential manner (makes patches from previous versions). But when i tried it, i found to suit my needs it would require the programming of a big wrapper that would interface git to make some daily quick actions simpler than a few git commands. Again, I am the least clueful you will find on this list, but if you wish for me to tell you the steps I followed, that is possible. One of the mailing list threads that got me up to speed relatively quickly was at this link. (Hope it's ok to link another mailing list from this one.) http://www.mail-archive.com/emacs-orgm...@gnu.org/msg11647.html I'll check it out... since i have my own solution all thought of and designed, i'll be able to compare it and re-evaluate git from a new angle. As far as i can tell, there is no rule against links, but i think there might be against publicity (ie if the link was to your business product that fullfills my need). I apologize if the existence of a bare repo as an intermediary is a problem. This can be done on a server as well. It is... it makes all my computer dependant on that repo... sync'ing computers at home can be done alright, but will still require walking around pluging/unpluging. Makes this practically impossible to do over the network (or to sync my host on the internet, not all my pc are connected to the internet so the repo cant be just on the server, i would have to maintain several repositories to work this out...). It may be possible to adapt it to my scenario, but i think it will require a lot of design in advance... but i'll check it out... at worst it will convince me i should program my own, better it will give me some good ideas or fortify some of my own good ideas and at best it will be the thing i've been looking for! Thanks again! Simon
Re: [gentoo-user] Re: File synchronisation utility (searching for/about to program it)
...I am using a flash drive as a cache, so to speak... I recently learned that flash drives wear out after about 10,000 write operations, which came as an unpleasant surprise. Just be aware that you are drastically shortening the life of a flash drive by writing to it frequently. (or so I've read) I think the problem is the number of erases actually (but you erase in order to write, so)... This is number really is more or less, some companies achieve higher number of writes, i think this figure shows a worst-case scenario. Also, it's actually 10k writes per sector... git, as far as i understand, will append new versions to the repository, so it's writing on other sectors and only once. Only if you remove, prune, cleanup the repository, then it would erase... and if you were to format it every day and write to it once a day, (say one new write per sector, on every sector, once per day)... i've quickly calculated the key will last around 27 years. I'll be glad to buy a petabyte usbkey for 10$US in 27 years man! lol Simon
[gentoo-user] File synchronisation utility (searching for/about to program it)
of a given conflict to always resolve it this way. This could effectively help in having some files mirrored from A-B, some others mirrored from B-A, some others to be backed up before being overwritten and some would always require user interactivity (like my current project's file)... This is a matter of preference and any utility that dont understand this works against me. No tool i've encountered supports this, unison could do some of these but i would have to break the sync'ing process into multiple smaller syncs, and most tool will just shoot a list of all conflicts and as wheter to keep local, keep remote, ignore, cancel, and this for each and every conflict (the list is long, the cancel option is tempting!). -Friendly config/maintain: I have the friendly user in mind (me), meaning the tool should be user-friendly! User-friendly doesnt mean graphical interface with lots of eyecandy (this makes people fat, it's hostile to me, not friendly at all!). However, I like to have only one config file to edit for all my needs, or a directory containing one level of files, a few files, each logically separated (think about /etc/portage) and most of all documented, intuitive. These are the features i need most. I am tired of 'working around' limitations or missing features. I am tired of having to do multiple syncs to get my whole house up2date. And finally, thanks to those that were interested in my post enough to read as far as here (unless you jumped straight here, but thank you still for taking the time!). I'm desperate at creating a project that will be useful to me and hopefully to others too. I'm a very good C/C++/PHP/JS programmer but i could only rarely find work in that field since i have no diploma (highschool diploma from 10 years ago that's all). Due to some illness i've lived a terribly unstable life and i've had an exploratory tendency in development, meaning i've started about 10K projects, but finished none. I have published nothing so far... in other words, i am nobody, and for companies, i am a risk, even if i ask half the usual salary it's still a division by zero: salary divided by zero credibility (ie no diploma and no work xp). If i can build this project (on my own for the start) and publish it, i think it would help me a lot professionally. Also, once the first version is out, i'll clearly welcome patches from the community and having a team work will help even more. Also, very important to note, i am currently unemployed, collecting unemployment insurrance as income, i still have about 2 months left of free time to get my professional situation back on track, this 2 months of my expertise is more than enough to get a good stable beta version of this project. But i need to get it started, i must be convinced this is the right choice. Thanks for reading, hopeful to be reading your answers! Simon
Re: [gentoo-user] SSL giving corrupted MAC on input
What did you recompile? There may still be a library using the sse2 flag. Have you tried using the --newuse or --reinstall changed-use emerge flags? Well, since all my problem were related to the use of ssh, i did a full: emerge -e openssh (took a 2 days on that super old pc, while shutdown for the night) I tried doing an full update after: emerge -uDN world emerge --depclean revdep-rebuild Then i tryied copying files through ssh and got same issue again. I also tried with a usb adapter, got the same issue. Again, i remind i tried transfering without ssh (ie using http or netcat) and it works top shape. I'm running memtest86 on that pc at the moment, i will look more into the flags (i havent checked in the /etc/portage/packages.use, there might be some sse in there too that i missed). Since this pc is not connected to the net, i used to sync it through ssh, so it has not been sync'ed in a while now... i'll try to manage to sync it (maybe tar /usr/portage and netcat that over, dunno...). I'll post again with results of these last few checks later today... Thanks!
Re: [gentoo-user] SSL giving corrupted MAC on input
I'm running memtest86 on that pc at the moment, i will Went through 1 pass with zero errors, I'll try some more passes in case later... look more into the flags (i havent checked in the /etc/portage/packages.use, there might be some sse in there too that i missed). Checked all make.conf and /etc/portage/*, all use flags are fine according to me, masks are good too (not masking any deps of ssh), keywords are good (same, not using unstable stuff for any deps of ssh). Since this pc is not connected to the net, i used to sync it through ssh, so it has not been sync'ed in a while now... i'll try to manage to sync it (maybe tar /usr/portage and netcat that over, dunno...). Well, i actually did the following command on both my up2date laptop and this outdated pc: emerge -e -p openssh somefile Then copied the file over to my laptop and compared differences: hideo ~ # diff --suppress-common-lines -y ./hideo_openssh_fullemerge.txt wmslave_openssh_fullemerge.txt Calculating dependencies ... done!| Calculating dependencies ... done! [ebuild R ] app-admin/eselect-python-20090606 [ebuild R ] sys-apps/sed-4.1.5-r1 [ebuild R ] sys-apps/sed-4.2 [ebuild R ] dev-lang/python-2.5.4-r3 | [ebuild R ] dev-lang/python-2.5.4-r2 [ebuild R ] app-admin/eselect-1.1.1 | [ebuild R ] app-admin/eselect-1.0.12 sorry the diff shows probably better if not wrapped at 80chars... but bottomline is i have an older version of python, sed and eselect on the outdated pc. Since i have nothing better to try at the moment, i will wipeout /usr/portage on the outdated pc and copy my laptops over using wget (i hope apache supports resuming downloads by default, in case!)... Thanks again!...
[gentoo-user] SSL giving corrupted MAC on input
Hi there! I'm getting this issue where even very small transfers through ssh will cause this error message: Corrupted MAC on input. I've done my homework and found out this is not necessarily related to the network hardware as TCP would retransmit such corrupted packets, moreover the error message is clearly related to ssh as googling proves this. A quick troubleshooting i've done was to setup apache and simply wget a very large file over plain HTTP. Transfer worked, i did it a second time and diff'ed the two downloads, they were the same. I then did the same test over HTTPS and got an error (SSL3_GET_RECORD:decryption failed or bad record mac). This clarified the problem is much more related to SSL than anything else. A quick glance at `emerge -vp openssl` showed an issue: it had been compiled with sse2 support while this computer's cpu didnt support that. Changed use flags and recompiled, restarted ssh and apache. They both continued giving the same error. I finally rebooted the machine, in case, but same issue still... The only use flag for openssl now is zlib. What is also pretty strange about the issue, is i haven't touched the kernel in a long time and i usually do all my gentoo updates on monday. The problem must have happened since last monday's updates, but i dont monitor those very much, all i care is everything went fine and that revdep-rebuild says i'm good to go. I've done many emerges since then so i cant figure out a way to see what has been updated recently. A bit of background: That PC runs kernel 2.6.24, it's my slowest pc (used for backups mostly) P3 @ 450Mhz, it's got 128MB of ram. Some programes have been unmasked, but none that have any relationship with openssl are, everything dealing with that is stable. Doing `find /usr/portage/distfiles -ctime -10` (should give me the files downloaded within last 10 days, right?) it shows a few files but glibc is the only that i can see has relationship with issue... Anyone can help troubleshoot some more?
[gentoo-user] Re: SSL giving corrupted MAC on input
A quick troubleshooting i've done was to setup apache and simply wget a very large file over plain HTTP. Transfer worked, i did it a second time and diff'ed the two downloads, they were the same. I then did the same test over HTTPS and got an error (SSL3_GET_RECORD:decryption failed or bad record mac). This clarified the problem is much more related to SSL than anything else. Forgot to mention, i'm connecting to the machine via ssh and never get disconnected, ssh terminal works perfectly fine, but anything going through ssh for large transfers fails (ie rsync, unison, etc).
Re: [gentoo-user] sync'ing two computers (not related to emerge)
Issue is resolved (solution below) An unstable link is probably triggering your issue. If the link dies and comes back, unison (at least version 2.27.57, what I have here) gets confused and just sits there. What's interesting is that if unison is killed on the initiating machine, the remote process stops as well, which leads me to believe this is a bug in unison; they can talk, but they don't do anything. I've glanced at the code before despite my lack of familiarity with OCaml, as my wireless connection will often die, causing much grief, but I've never found a solution. The problem was actually related to ssh... setting those in sshd_config fixed it: ClientAliveInterval 15 TCPKeepAlive no --- The TCPKeepAlive option set to yes doesnt seem sufficient, it was suggested by someone to use ClientAliveInterval instead. (or on the client end i think you could set ServerAliveInterval) Thanks all! Simon
[gentoo-user] union merge for binpkg makers
Hi there, i've been using my host online to compile updates for like the past year or so... My host is currently configured so that its world file is the combination of all my PCs at home's world. So the host has x11 installed and lots of other completely useless stuff for a remote host! I decided to start a small project, but i wanted your opinion before doing so... also, i dont want to reinvent the wheel so if anyone thinks of a better way to do this or if there is one already in use... let me know! I'm using a host (or binpkg cruncher) to make all emerges as the host is approximately 10 times faster than my fastest PC here (they are very old). Even when distcc is setup perfectly, the host still wins the competition, by far. So i make binpks on the host and propagate them to the PCs at home where i emerge using the -k option. (a few rare packages will still have to be re-emerged, but that's normal) To facilitate reading: sum(worlds) == all PCs worlds combined Also, this works only if both host and pc would create the same binpkg (having the same make.conf options mostly, same stuff setup in /etc/portage, etc...) Right now, here's the base of the process to get one PC updated (without my unison world): host emerge --sync host emerge -uDN sum(worlds) [builds binpkgs] sync host's portage with PC's portage PC emerge -uDN -k world - Here's the process ( a bit more complicated ) using unionfs: host emerge --sync host emerge -uDN world start unionfs over the whole root and chroot in union mount point host emerge -uDN -k sum(worlds) exit chroot host rsync -ah --progress /path/to/rootunionfs/usr/portage/packages/* /usr/portage/packages/ host rm -Rvf /path/to/rootunionfs sync and emerge on PC as with previous method You'll notice the emerge run on host, inside the union uses the -k option, this is to help the host and avoid recompiling dependency it had compiled in the past but had not really installed. This way, it quickly installs all dependencies in the unionfs, compiles them if necessary and builds the binpkg for every emerge. This process will take longer that my current process, but should help maintain a clean host. It could even be possible, if i dont suffer from disk space constraint, to keep the unionfs and just remount it correctly for the next emerge, but this could lead to some issues (ie if i emerge something outside the unionfs at some point, etc...). What do you think? Should i start working on this? Or is there anything better out there? Thanks, Simon
Re: [gentoo-user] union merge for binpkg makers
Storage space comes pretty cheap these days, so prehaps it's just easier to get dirt-cheap 80G harddisk and build (and keep) all the packages from sum of the worlds on it in a dedicated chroot or VM? Well, i'm keeping all packages currently, and diskspace is cheap for home computers, but not on this binary cruncher... =( To sync world, make.conf and /etc/portage you can easily use distributed VCS like git or mercurial, keeping each host's files in separate branche on this server. It has added benefit of keeping all the history of your configuration, should you need to fall back to some stable state. Also, it's much easier to sync any changes in any way between the hosts that way. Good idea sshfs (prehaps with something like funionfs if you keep local packages too) should be enough to mount generated packages to any host and deploy them. To avoid unnecessary syncing of portage trees (even with one local server) you can just mount it when needed, along with the packages, since it doesn't need write access anyway. Well i used to use sshfs to mount the binpkg repository's /usr/portage... but running a basic `emerge -k -vp -uDN world` would take days, the -k was the problem. So, i now sync the /usr/portage from my host to one of my PC, then sync from that PC to the others locally. Then i emerge. Also, i dont fully like having my packages remote, i like to be independant... so NFS and others may be a neat solution, but brings a lot of limitations in my situation. Thanks!
Re: [gentoo-user] Moving an installed system to RAID10
Or you can create raid0 with partitions on both drives (sda1+sdb1) and mirror it on the second set of partitions on the same drives. But then you do not have any protection from total disk failure you'd normally expect from raid1. Only some very little protection against a sector failure. Plus two equally strange configurations where you first create raid1-mirrors and then strip them to raid0. Doing raid10 (or raid01) with only 2 disks is imho not a good idea... It is very well written everywhere that deals with raid that it is a very bad practice to have more than one raid device per drive AND per bus. Having two identical disks and a need for redundancy calls for raid1 (mirror), nothing else. Or anything else is just fancy crap, but hey, you can learn a lot with fancy crap. If you wish to get something a little more than raid1, it might be with raid6: partition each drives in 2 equal sized partitions, then create the raid6 on those 4 devices. You loose both reading and writting performance due to seeking from one partition to another, but you keep redundancy since with raid6, 2 device failures can happen. The advantage here, is scalability: you buy a third drive later, partition it correctly and 'grow' your raid6 on those 2 new devices. But even then, if you buy a 3rd drive, i'd recommend raid5 simply on the whole disks (well one partition per drive). Here, do whatever scenario you want, and when you buy a 3rd disk: fail and remove the secondary drive on current raid create a raid5 with the new drive and the removed spare and 'missing' copy old raid over to new raid fail old raid and add its device to the new raid update your /etc files to point to the new raid Enjoy!
Re: [gentoo-user] sync'ing two computers (not related to emerge)
How long is unison taking to check for changes? I can usually reconcile changes in my home directory (approximately 45G, 125,000 files) in less than 10-15 seconds between my slow laptop drive and a remote machine. However, if you are syncing with a Windows machine, expect the sync to be much slower. Fast checking is not safe on Windows, as unison can miss changes, so it scans every file every time unless you tell it otherwise. Ok i had to try a few times and now with tcpkeepalive being turned on it doesnt disconnect. But when the scan is done, it 'reconciles' the changes (so it has received the changes from the remote end) and Begins the transfer of a dozen files, but not a bit is transfered. The sshd and unison process on the remote host are waiting/sleeping or in coma, but nothing happens. I just tried again and let it sit on the transfer to see if the processes would wake up, but it read from remote host that connection timed out. I'm not sure but this may be due to the fact i'm on an unstable link... I'll try once more with a ssh session on the side to see if that session will get disconnected or not... It would be so nice if unison could 'remember' the changes on my HD against its local archive... anyway... Thanks, Simon
Re: [gentoo-user] sync'ing two computers (not related to emerge)
http://www.linuxjournal.com/article/5976 http://kitenet.net/~joey/svnhome/ http://www.google.com/search?q=homedir+version+control Hey thanks Stroller, I'd be interested in these solutions, but i dont have enough space to copy everything in double (keep a backup). So what i do, and this is why i need unison, is that my older computer is the backup of my newer computer. Only a few files here and there are not copied over (those that are computer specific). But your idea was very good and I'll keep note of it... I'm thinking on buying a hard drive as soon as it becomes possible (unfortunately in my situation, this may not happen until a few more months) and when i get that, I'll set it up as a central repository (if i havent' found any better solution until then). Thanks!
Re: [gentoo-user] Moving an installed system to RAID10
I know I'll need to change /boot/grub/grub.conf, /etc/fstab and any other files that refer to my current drive partitions, /dev/sda{1,2,3,4}. I am concerned whether my current kernel will recognize the /dev/md{1,2,3,4} arrays on booting, and before switching from the initrd root disk. How can I check the parameters and contents of the initrd I'm currently using and/or generate a new one to permit booting from the RAID disks? On my eeepc I use raid a lot (i bundle old usb keys together, dont laugh!) I dont use initrd and here is a typical grub line with my raid: (hd0,0)/boot/bzImage-2.6.29.1 root=/dev/md64 delay=10 The delay is useful to give time to the kernel to recognize my usb keys before loading init. Make sure the partitions are 'fd' type in fdisk (raid autodetect or something like that) One important thing: the kernel that gets booted from grub (the bzimage) it is best when it is sitting outside the raid since grub does not support raid (iirc). So, back to my example, (hd0,0) actually is a ext2 (not raid) partition. Good luck!
Re: [gentoo-user] Re: gentoo older versions
On Sat, May 2, 2009 at 1:14 PM, Nitin Kanaskar nitinv...@gmail.com wrote: Ok - I am not clear about the terminology - packages, versions... But i need to install gentoo 2004/2005 - if this is right. I am a graduate student doing research on vulnerabilities, exploits and IDS. Hence I am looking for older gentoo installations which i know have some vulnerabilities. If i have to build whole OS from source, I am willing to do that - but could not find any resource on that old stuff. Hope I am clear about why I am looking for such old stuff. i hope you are already a subscriber of the great mailing list: full-disclosure i dont think gentoo/portage is the easiest software to look at for old vulnerabilities, reason is, portage will syncronise with current 'version' so you probably want to look at older version of the portage package or older version of some other software. if you prefer to go toward some other software, checkout insecure.org(nmap's former official website) there is a section for mailing lists and links to that full disclosure list with archives. High volume list, vulnerabilites are disclosed about all kinds of software (90% linux software and some of other OSes). Good luck!
[gentoo-user] sync'ing two computers (not related to emerge)
hi there! I've been using unison to synchronise and backup my computers. unison is based on rsync IIRC but with the difference that it 'remembers' the state of the folder that was synchronised. This way, if I delete a file on A, when sync'ing it will be deleted on B. While rsync would leave the file on B... I see rsync as a very good 'cp' program, but I need something that can deal with conflicts (file changed on both hosts/directories) and can propagate changes like deletes properly. Is there a way to get this behavior with rsync (maybe i missed something)? The reason i'm asking is that unison has been having problems recently in sync'ing two pc... On my laptop, when i start the sync, it first checks it for changes against the 'unison snapshot'. Changes done since last sync are those that will be propagated. But it takes so long to check for changes (disk input rate is too slow i think) that once it finished, when it's time to send the changes to the remote server, the remote end has already disconnected! Thanks for the help/suggestions!
Re: [gentoo-user] sync'ing two computers (not related to emerge)
If you are using ssh with unison, are you using the KeepAlive yes option in your ssh configuration? If not, add it, and your connection should not close from inactivity. If you are using direct sockets, unison will use a keepalive so it can timeout if the communication link is broken. Well i was using it, but i found out the option was commented out on my host's config... i set it to yes and trying again now... will have results in a few mins How long is unison taking to check for changes? I can usually reconcile changes in my home directory (approximately 45G, 125,000 files) in less than 10-15 seconds between my slow laptop drive and a remote machine. However, if you are syncing with a Windows machine, expect the sync to be much slower. Fast checking is not safe on Windows, as unison can miss changes, so it scans every file every time unless you tell it otherwise. Well, the problem seems to be with my /usr/portage that had not been sync'ed for a long time (i guess it has to make thorough difference checking?). So there is lots of files to check. It really takes minutes to scan for changes, i'm timing this run, if it fails i'll post how long it takes to do the whole scan until it starts transfering and finds out it got timed out. Sync'ing is done from linux to linux. The problem is really hardware related; i'm thinking on getting a new portable HD, but since i'm about to loose my job,i might want to wait! ;) Thanks!
Re: [gentoo-user] GPRS connection through usb
You do NOT need PPP, but you do need a fairly recent kernel (= 2.6.27 at least, not sure of the details). You need at least CONFIG_USB_RNDIS_WLAN as m or y. With udev and 'm' things work mostly automatically on the linux side. On the phone you enable advanced networking (or else you will see the phone as ttyUSB? and you will need ppp). This is done, no prob. Then you plug in and run dmesg -c until things quiet down. You should see a new eth? interface. Enable internet sharing on the phone, and you should see in dmesg -c that your new ethernet interface disappears and reappears. If it does not reappear your kernel is too old. doing `ifconfig -a` only shows the interfaces that were there before, no changes here. the dmesg output contain USB debug info, but nothing about interfaces or networking. I believe I'm missing another kernel config somewhere? Btw, this is with 2.6.29.1... Thanks!
Re: [gentoo-user] GPRS connection through usb
You do NOT need PPP, but you do need a fairly recent kernel (= 2.6.27 at least, not sure of the details). You need at least CONFIG_USB_RNDIS_WLAN as m or y. With udev and 'm' things work mostly automatically on the linux side. On the phone you enable advanced networking (or else you will see the phone as ttyUSB? and you will need ppp). Then you plug in and run dmesg -c until things quiet down. You should see a new eth? interface. Enable internet sharing on the phone, and you should see in dmesg -c that your new ethernet interface disappears and reappears. If it does not reappear your kernel is too old. On my gentoo box i can now start the interface like a regular ethernet interface. I have a debian box with a kernel from unstable where dhcp fails on the phone 'ehternet' device, so I have to do ip addr add and ip route add manually to get the network going (somehow the ifup command on debian prints the assigned ip and the gateway ip, gut does not configure the device properly). Do some googling to fill in the details, I'm not using this regularly. Wow, thanks for the clear and thorough reply! I've recently upgraded to kernel 2.6.29.1 (i used to have 2.6.24 with several external drivers) so i should be fine. I'll give this a try asap, but since i have a day off tomorrow, i might do some fiesta tonight, in any case, i should reply soon with success or failure! Thanks again! Simon
[gentoo-user] [slightly OT] Pocket Putty or similar
Hey guys! i just got my internet connection working through a new cellphone (pda). the connection works fine but is a battery eater (i share the cell data connection to wifi, and then from the pc connect to the phone's ad-hoc ap, very cool, but have the charger handy!) Anyway, I've come sometimes to the point where i need to do some very minimal work on my linux host running gentoo but from the cellphone. I've downloaded pocket putty (i have lots of respect for putty, it's probably the only windows app that I dont despise even unconsiously!). but it's not very good for my use, since I have to send a Large numbers of Ctrls-keys combinations, and seems the meta key is not supported... working in emacs is either very painful or simply impossible. (How am i to survive now that i cant type: M-x doctor ?!) Anybody got a suggestion of a software to use on the pda to access my host and have a nice terminal (ie maybe be able to bind keys arbitrarily to some character?) Thanks!
Re: [gentoo-user] Software RAID vs Fake RAID
The only reason I considered the motherboard RAID was that I could have an XP partition and install an ext2 driver to access my Gentoo partitions. As far as I know, a filesystem in a linux software raid cannot be accessed from windows. After reading the replies here, I'm going to go ahead with linux software raid. Accessing my linux partitions from windows isn't very important for me, as I only use XP for occasional gaming. And even then last time i checked windows support for ext2 FS wasnt so great. I personnally do all file transfer using linux (which works fine with windows' fat FS, i dont use ntfs because it used to lack write support long ago). That is, in windows, i would move the files in a folder created on the desktop, and then in linux, i would mount the windows drive and copy/move the files in /mnt/windrive/Documents*/simon/Desktop/folder_for_linux/. If you wish to setup windows on a raid, you might consider the fakeraid for that? But if you use it for gaming i dont think raid is advisable, doing backups should be sufficient, IMO. HTH, Simon
Re: [gentoo-user] [slightly OT] Pocket Putty or similar
Hey guys! i just got my internet connection working through a new cellphone (pda). I think we'll need to know which operating system(s) the phone runs in order to suggest anything. Makes sense! Sorry that i forgot! The phone is an HTC TyTN (also known as Hermes100, i think). It is running windows mobile 6 pro (i wish there were a good gentoo mobile! ;) Processor: SC32442-400mhz Screen is 320x240 I havent setup anything on linux to share anything with the phone. Neither in windows but i'm probably going to install activesync on my winxp pro pc. (eventually going more and more using only linux stuff when i get everything working). Thanks