[Solved] Installing 'Sleep is Death' (no libsdl-dev)

I am having trouble installing the game www.sleepisdeath.net in arch 32bit (well...chakra really but same difference )
It needs the dev packages for 3 libraries, and I am stuck on trying to find the first one libsdl let alone the other 2 (all listed here http://sleepisdeath.net/compileNotes.php)
Its not in any of the repos or aur that I can find, and I can't find its source tarball either to attempt doing it that way (something I might need help with, never installed from source before!)
Thanks!
Last edited by Arcadefun (2010-04-30 03:09:59)

Sure, here is my output from executing runToBuild in the installer:
select platform:
  1 --  GNU/Linux
  2 --  MacOSX
  3 --  Win32 using MinGW
  q --  quit
> 1
Building miniUPNP...
cc -fPIC -O -Wall -DNDEBUG -DMINIUPNPC_SET_SOCKET_TIMEOUT   -c -o minixmlvalid.o minixmlvalid.c
make: cc: Command not found
make: *** [minixmlvalid.o] Error 127
Building SleepIsDeath...
Makefile:587: Makefile.dependencies: No such file or directory
Makefile:810: Makefile.minorGems_dependencies: No such file or directory
rm -f Makefile.minorGems_dependencies
g++  -Wall -g  -DLINUX  -O0 -I../.. -c -I../.. -MM ../../minorGems/graphics/openGL/ScreenGL_SDL.cpp ../../minorGems/graphics/openGL/SingleTextureGL.cpp ../../minorGems/io/linux/TypeIOLinux.cpp ../../minorGems/util/stringUtils.cpp ../../minorGems/util/StringBufferOutputStream.cpp ../../minorGems/io/file/linux/PathLinux.cpp ../../minorGems/system/unix/TimeUnix.cpp ../../minorGems/system/linux/ThreadLinux.cpp ../../minorGems/system/linux/MutexLockLinux.cpp ../../minorGems/graphics/converters/PNGImageConverter.cpp ../../minorGems/util/TranslationManager.cpp ../../minorGems/network/linux/SocketLinux.cpp ../../minorGems/network/linux/HostAddressLinux.cpp ../../minorGems/network/linux/SocketClientLinux.cpp ../../minorGems/network/linux/SocketServerLinux.cpp ../../minorGems/network/NetworkFunctionLocks.cpp ../../minorGems/network/LookupThread.cpp ../../minorGems/network/web/WebRequest.cpp ../../minorGems/util/SettingsManager.cpp ../../minorGems/system/FinishedSignalThread.cpp ../../minorGems/crypto/hashes/sha1.cpp ../../minorGems/formats/encodingUtils.cpp ../../minorGems/io/file/unix/DirectoryUnix.cpp ../../minorGems/network/upnp/portMapping.cpp ../../minorGems/util/log/Log.cpp ../../minorGems/util/log/AppLog.cpp ../../minorGems/util/log/FileLog.cpp ../../minorGems/util/log/PrintLog.cpp ../../minorGems/util/printUtils.cpp >> Makefile.minorGems_dependencies.temp
/bin/sh: g++: command not found
make: *** [Makefile.minorGems_dependencies] Error 127
cp: cannot stat `SleepIsDeath/gameSource/SleepIsDeath': No such file or directory
Run SleepIsDeathApp to play.
but along with the errors there is also no SleepIsDeathApp

Similar Messages

  • HP Slate 21 Pro "Sleep to Death".

    HP Slate 21 Pro "Sleep to Death".
    When the slate fells in sleep, it is never able to wake up by press the power button, or the screen may response, but immediately turn off the screen. Only way to revive the slate by pull off the power and power back again.
    There was another thread reported the similar issue, but 7 months no update/response from HP employee
    This question was solved.
    View Solution.

    My friend,
    Try the new version 4.4.2 which is just started to upgrade in my country, Turkiye.
    Rgds

  • Mac Mini 2011 Sleep of Death

    I have a Mac Mini 2011 with Lion factory installed configured with an original Apple Keyboard and a LG - HDMI monitor.
    If the Mini goes to sleep either manually using the Apple Menu or based on Settings , it does not wake up !
    Any  subsequent attempt to wake the mac by moving the mouse results in either nothing happening  / a system power down.
    Restarting the Mac  is then  impossible. The Mini just makes JET engine level fan noise and does not boot.
    Only after PMU/SMC resets and starting in Safe Mode ( Command +S when powering ) does the Mini come alive again.  What a nightmare !
    My only  solution till now is to put the Sleep settings to "NEVER"
    Surely there is a way around this .... sleep of death ???

    I have tried to eliminate all issues related to connected periphals first as Apple is really not going to find a solution if it relates to these. I changed the HDMI cable to abrand new expensive cable as a first step. Then I connected only one USB Time Machine Hard Disk 1TB. The PC is now waking out of manually induced sleep. I am not brave enough to remove the "Never Sleep " automatically settings as yet.  Also downloaded a free utility named ONYX to do a system clean. They have a version for both Lion and Snow Leopard - just Google ONYX to see what it does. For now, at least the Mac Mini is working . Hope it lasts.

  • Sleep of death problem Tablet S r5

    My Tablet S suffers sleep of death problem after upgrading to ICS r5.
    I did factory reset several days ago and it seemed the problem has gone.
    But from yesterday it has begun again and happened twice today.
    Overall I am satisfied with the upgrade, better wifi and less flickering.
    Hope that problem won't get worse.
    Solved!
    Go to Solution.

    Hello,
    Thank you for your post
    We are currently investigating why the power button intermittently will not wake the S1 Tablet from sleep.
    Do you see a Green Blinking Indicator each time this occurs?
    for the time being, performing a [ [url=http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=C1023464&sliceId=1&docTypeID=DT_KNOWLEDGEARTICLES_1_1&dialogID=203829332&stateId=0%200%20203827592:2fneqb0t]Soft Reset[/url:2fneqb0t] ] will allow a power on.
    Once we have resolved this issue, we will post here that an update is available. There is no ETA at this time for resolution.
    We are also aware of Tablet Icons not remaining on the desktop after power down
    that issue is being addressed in this thread: [url=https://forum.sel.sony.com/viewtopic.php?f=109&t=15209&p=41474#p41474:2fneqb0t]Here[/url:2fneqb0t]

  • "Sleep of death" question and some observations

    I just recently upgraded to an S3 from a Fascinate, and I've been impressed so far.  The only thing I really didn't like about my Fascinate was that it would suddenly freeze or crash one every week or two, and the only thing I could do was open the case, remove the battery, and then put the battery back in.  Then I could reboot the phone and all was well.  Well, after not using my S3 for an hour or so, I tried to wake it up and nothing happened.  I couldn't turn it off (or on) either.  Sleep of death.  I had to open the case, remove and re-insert the battery to use the phone again.  Is this a common problem?  What could be causing it?  Is there any other way to fix it? 
    Overall, I really like the S3.  It's a significant upgrade from the Fascinate.  Screen quality and size (larger but not too big), processor speed, and 4G LTE are great.  I have a seven year old iPod that is still hanging in there, but I hope to use my S3 in my car (2012 Prius II, no Nav or Entunes) to listen to my music if and when my iPod dies.  I can't get music to play on my car stereo when I plug my S3 into my car's USB port (I'm told its because the S3 doesn't support mass storage mode).  But, after uploading some iTunes music to Google Play, I can play it with my S3 over Bluetooth audio.  The sound quality is good, but not quite as good as a USB connection is.  I'm experimenting with various audio settings in Google Play Music to see if I can enhance the sound quality.  If anyone knows how to play audio with an S3 over a USB connection, I'd be interested in finding out. 
    I haven't used the camera very much yet (I have had the S3 only two days) but the few photos I have taken look good.  Battery life seems to be improved over the Fascinate.  Call quality also seems up a notch.  I haven't yet tried some other features, and still others i have yet to discover!  This phone comes with very good reviews, and I can see why. 
    I can also say that I was very pleased with the service I was given at the VZW store in Augusta, Maine, when I went to upgrade my phone.  So far, other than the sleep of death issue, I'm a happy camper. 

    Downeaster59 wrote:
    So far, other than the sleep of death issue, I'm a happy camper.
    Stop using the stock browser and use Chrome instead.  See if the "sleep of death" goes away.

  • [SOLVED] Trying to install Arch Linux from harddisk using /dev/sda2

    Hi
    I'm trying to install Arch using my swap partition, following this wiki entry: https://wiki.archlinux.org/index.php/Ha … stallation
    What I've done:
    Downloaded ISO: archlinux-2010.05-netinstall-i686.iso
    Command: swapoff /dev/sda2
    Command: fdisk /dev/sda and changed the system type to 83 (Linux) on /dev/sda2
    Now it looks like:
    Command (m for help): p
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00017e5b
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1060289 530144+ 83 Linux
    /dev/sda2 1060290 3164804 1052257+ 83 Linux
    /dev/sda3 3164805 105579179 51207187+ 83 Linux
    /dev/sda4 105579180 488392064 191406442+ 83 Linux
    It complained about device was busy, but it still seemed to have changed the system type, so I did partprobe as it wrote.
    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
    The kernel still uses the old table. The new table will be used at
    the next reboot or after you run partprobe(8) or kpartx(8)
    Syncing disks.
    [root@swamp ~]# partprobe
    <no output>
    Next I did:
    [root@swamp ~]# dd if=archlinux-2010.05-netinstall-i686.iso of=/dev/sda2
    327680+0 records in
    327680+0 records out
    167772160 bytes (168 MB) copied, 4.3025 s, 39.0 MB/s
    [root@swamp ~]# mkdir /mnt/sda2
    [root@swamp ~]# mount /dev/sda2 /mnt/sda2
    mount: warning: /mnt/sda2 seems to be mounted read-only.
    [root@swamp ~]# ls -al /mnt/sda2
    total 150466
    dr-xr-xr-x 3 root root 240 May 16 15:54 .
    drwxr-xr-x 6 root root 4096 Nov 5 01:40 ..
    dr-xr-xr-x 3 root root 556 May 16 15:52 boot
    -r--r--r-- 1 root root 448 May 16 15:54 isomounts
    -r--r--r-- 1 root root 8192 May 16 15:54 overlay.sqfs
    -r--r--r-- 1 root root 154058752 May 16 15:54 root-image.sqfs
    And unmounted it again.
    The wiki page says to type: fsck -f /dev/sda2fsck, but I get no such file while trying to open sda2fsck.
    [root@swamp ~]# fsck -f /dev/sda2fsck
    fsck from util-linux-ng 2.18
    e2fsck 1.41.12 (17-May-2010)
    fsck.ext2: No such file or directory while trying to open /dev/sda2fsck
    The superblock could not be read or does not describe a correct ext2
    filesystem. If the device is valid and it really contains an ext2
    filesystem (and not swap or ufs or something else), then the superblock
    is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
    Can I ignore the above and continue modifying grub?
    Thanks :-)
    Last edited by valvet (2010-11-08 14:49:07)

    fsck -f /dev/sda2fsck makes no sense because /dev/sda2fsck is not a deivce. If the wiki says that, then it is wrong. It's only doing a fsck anyway so probably not really needed. If you are just formatting th swap partition then use, mkfs.ext{234}.
    edit:
    from the wiki
    # fsck -f /dev/sda2fsck 1.40.8 (13-Mar-2008)
    e2fsck 1.40.8 (13-Mar-2008)
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 3A: Optimizing directories
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    /dev/sda2: ***** FILE SYSTEM WAS MODIFIED *****
    /dev/sda2: 243/78936 files (8.2% non-contiguous), 310519/314880 blocks
    The first like should just be
    # fsck -f /dev/sda2
    Last edited by sand_man (2010-11-05 06:46:01)

  • [solved] Install PHP5.2 and PHP5.3 on dev laptop

    I have been using Arch for a few months now on my laptop and really enjoying it, but I am still a little confused about a few things when it comes to software versions.
    I have a bunch of PHP apps that need to be updated to be PHP 5.3 comparable. So I would like to setup both PHP 5.2 and PHP 5.3.
    I have searched a lot assuming that I am not the first person that would have asked about this kind of setup, but failed to find anything that was Arch specific.
    I have read about two ways of doing this on other distros.
    One method involves setting up both version to be different CGI handlers in Apache and then setting the appropriate handler in your virtual hosts.
    The second sets one version to use mod_php (php-apache) and the other as a CGI handler.
    I have found both php version as packages and in AUR.
    So, if I install both packages (php and php52) will there be any conflicts or problems or do I need to use the AUR packages and some how alter the install/configure scripts.
    Additionally what would happen if I install one of the php modules EG: php-curl. Will the module work for both version.
    I am currently leaning towards using mod_fcgid for both versions.
    Thanks.
    Last edited by NaX_sa (2011-03-08 22:08:47)

    OK, I figured it out. I think this topic should probably be under "Creating & Modifying Packages" and it was probably a mistake on my part to have posted in this forum in the first place.
    What I ended up doing was to rebuild the php52 package in community using ABS. This was my first time use ABS.
    I followed the instruction on the wiki https://wiki.archlinux.org/index.php/Arch_Build_System
    The only thing I did that was not in the wiki was to delete the src directory when I did a rebuild, else it tried to re-apply the patch's, it took multiple attempts to get the PKGBUILD correct and not conflicting with PHP 5.3.
    What I ended up with was a PHP package that installed everything into /usr/local.
    I dont know if the way I did it was correct or the best way, but it seems to work.
    Personally I think it would be best if the current PHP52 package was created in such away that it did not conflict with the main PHP package since it is very common for a LAMP setup to have more than one PHP versions installed.
    Here is my modified PKGBUILD if anybody is interested.
    # Maintainer: Evangelos Foutras <[email protected]>
    # Contributor: Pierre Schmitz <[email protected]>
    pkgname=php52
    pkgver=5.2.17
    pkgrel=3
    _suhosinver=5.2.16-0.9.7
    pkgdesc='A high-level scripting language'
    arch=('i686' 'x86_64')
    license=('PHP')
    url='http://www.php.net'
    backup=('usr/local/etc/php/php.ini')
    depends=('glibc' 'readline' 'ncurses' 'libxml2' 'pcre')
    makedepends=('apache' 'imap' 'postgresql-libs' 'libmysqlclient'
    'libldap' 'postfix' 'libpng' 'libjpeg' 'sqlite3' 'unixodbc'
    'net-snmp' 'mhash' 'gmp' 'libmcrypt' 'tidyhtml' 'aspell' 'libtool'
    'freetype2' 'curl' 'libxslt' 'pam' 'openssl' 'bzip2' 'gdbm' 'db')
    optdepends=('bzip2: bz2'
    'curl: curl'
    'gdbm: dba'
    'libpng: gd'
    'libjpeg: gd'
    'freetype2: gd'
    'pam: imap'
    'libldap: ldap'
    'libmcrypt: mcrypt'
    'libtool: mcrypt'
    'libmysqlclient: mysql/mysqli/pdo_mysql'
    'unixodbc: odbc/pdo_odbc'
    'openssl: openssl'
    'postgresql-libs: pgsql/pdo_pgsql'
    'aspell: pspell'
    'net-snmp: snmp'
    'sqlite3: pdo_sqlite'
    'tidyhtml: tidy'
    'libxslt: xsl'
    'mhash: mhash'
    'gmp: gmp')
    provides=("php=$pkgver")
    #conflicts=('php')
    source=("http://php.net/distributions/php-${pkgver}.tar.bz2"
    "http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz"
    'php.ini'
    'apache.conf'
    'db-configure.patch'
    'db-5.patch'
    'libpng14.patch')
    md5sums=('b27947f3045220faf16e4d9158cbfe13'
    'd815fc99a0c25c21f5df28551fcbb001'
    '55c09c89e34eb5c555d842a4d01590e6'
    '96ca078be6729b665be8a865535a97bf'
    'f3da248d934bc99354fdfa98cdac23ad'
    '40f3d5f546087dac33bfa21a85b79203'
    '77ea0756996df0932fce472ff3ec2693')
    build() {
    phpconfig="--prefix=/usr/local \
    --sysconfdir=/usr/local/etc/php \
    --with-layout=PHP \
    --with-config-file-path=/usr/local/etc/php \
    --with-config-file-scan-dir=/usr/local/etc/php/conf.d \
    --enable-inline-optimization \
    --disable-debug \
    --disable-rpath \
    --disable-static \
    --enable-shared \
    --mandir=/usr/local/share/man \
    phpextensions="--with-openssl=shared \
    --with-zlib=shared \
    --enable-bcmath=shared \
    --with-bz2=shared \
    --enable-calendar=shared \
    --with-curl=shared \
    --enable-dba=shared \
    --without-db2 \
    --without-db3 \
    --with-db4=shared \
    --with-gdbm=shared \
    --enable-dbase=shared \
    --enable-exif=shared \
    --enable-ftp=shared \
    --with-gd=shared \
    --enable-gd-native-ttf \
    --with-jpeg-dir=shared,/usr \
    --with-png-dir=shared,/usr \
    --with-gettext=shared \
    --with-imap=shared \
    --with-imap-ssl=shared \
    --with-ldap=shared \
    --enable-mbstring=shared \
    --with-mcrypt=shared \
    --with-mysql=shared \
    --with-mysql-sock=/var/run/mysqld/mysqld.sock \
    --with-mysql=shared \
    --with-mysqli=shared \
    --with-ncurses=shared \
    --with-unixODBC=shared,/usr \
    --enable-pdo=shared \
    --with-pdo-mysql=shared \
    --with-pdo-sqlite=shared,/usr \
    --with-pdo-odbc=shared,unixODBC,/usr \
    --with-pdo-pgsql=shared \
    --with-sqlite=shared \
    --enable-sqlite-utf8 \
    --with-pgsql=shared \
    --enable-shmop=shared \
    --with-snmp=shared \
    --enable-soap=shared \
    --enable-sysvmsg=shared \
    --enable-sysvsem=shared \
    --enable-sysvshm=shared \
    --with-tidy=shared \
    --with-xsl=shared \
    --enable-zip=shared \
    --enable-posix=shared \
    --enable-sockets=shared \
    --enable-xml \
    --with-ttf=shared \
    --enable-session=shared \
    --with-regex=php \
    --with-pcre-regex=/usr \
    --enable-mbstring=all \
    --enable-mbregex \
    --enable-json=shared \
    --with-iconv=shared \
    --with-xmlrpc=shared \
    --with-pspell=shared \
    --with-freetype-dir=shared,/usr \
    --with-mime-magic=shared \
    --with-gmp=shared \
    --with-mhash=shared \
    PEAR_INSTALLDIR=/usr/local/share/pear
    export PEAR_INSTALLDIR
    cd ${srcdir}/php-${pkgver}
    # db 5.1 fix
    patch -p4 -i ${srcdir}/db-5.patch
    # avoid linking against old db version
    patch -p0 -i ${srcdir}/db-configure.patch
    # libpng 1.4 fix
    patch -p3 -i ${srcdir}/libpng14.patch
    # gmp 5.0 fix
    sed -i 's/__GMP_BITS_PER_MP_LIMB/GMP_LIMB_BITS/g' ext/gmp/gmp.c
    # apply suhosin patch
    patch -p1 -i ${srcdir}/suhosin-patch-${_suhosinver}.patch
    # cli
    ./configure ${phpconfig} \
    --disable-cgi \
    --with-readline \
    --enable-pcntl \
    --with-pear=/usr/local/share/pear \
    ${phpextensions}
    make
    # make test
    make -j1 INSTALL_ROOT=${pkgdir} install
    # cleanup
    rm -f ${pkgdir}`${pkgdir}/usr/local/bin/php-config --extension-dir`/*.a
    # install php.ini
    install -D -m644 ${srcdir}/php.ini ${pkgdir}/usr/local/etc/php/php.ini
    install -d -m755 ${pkgdir}/usr/local/etc/php/conf.d/
    # cgi and fcgi
    ./configure ${phpconfig} \
    --enable-fastcgi \
    --enable-cgi \
    --enable-discard-path \
    --enable-force-cgi-redirect \
    --disable-cli \
    ${phpextensions}
    make
    install -D -m755 sapi/cgi/php-cgi ${pkgdir}/usr/local/bin/php-cgi
    # mod_php
    ./configure ${phpconfig} \
    --with-apxs2 \
    --disable-cli \
    ${phpextensions}
    make
    install -D -m644 libs/libphp5.so ${pkgdir}/usr/lib/httpd/modules/libphp52.so
    install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/php52_module.conf
    After all that, I setup mod_fcgid and 2 test virtual hosts, one for each PHP version.
    My setup was semi based on this tutorial http://2bits.com/articles/apache-fcgid- … ation.html
    I ended up doing it with 3 Apache includes, excluding my vhosts include. I don't know if it is the best way of doing it, but considering this is a dev machine and I was going for easy management of PHP versions with multiple vhosts, I think this setup works well.
    If anybody is interested here is my apache conf files.
    /etc/httpd/conf/extra/fcgid_module.conf
    # Server wide conf for fcgid
    # Required modules: mod_fcgid
    # FYI: All directives have been renamed in order to use a common prefix "Fcgid".
    # see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
    <IfModule mod_fcgid.c>
    # Maximum number of PHP processes
    MaxProcessCount 10
    </IfModule>
    /etc/httpd/conf/extra/php52_fcgid.conf
    # Required modules: mod_fcgid php5_cgi
    <IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi .php
    # Where to look for the php.ini file?
    DefaultInitEnv PHPRC "/usr/local/etc/php"
    # Maximum requests a process handles before it is terminated
    MaxRequestsPerProcess 100
    # Number of seconds of idle time before a process is terminated
    IPCCommTimeout 240
    IdleTimeout 240
    #Or use this if you use the file above
    FCGIWrapper /usr/local/bin/php-cgi .php
    </IfModule>
    /etc/httpd/conf/extra/php53_fcgid.conf
    # Default PHP package config, PHP 5.3
    # Required modules: mod_fcgid php5_cgi
    <IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi .php
    # Where to look for the php.ini file?
    DefaultInitEnv PHPRC "/etc/php"
    # Maximum requests a process handles before it is terminated
    MaxRequestsPerProcess 100
    # Number of seconds of idle time before a process is terminated
    IPCCommTimeout 240
    IdleTimeout 240
    # Or use this if you use the file above
    FCGIWrapper /usr/bin/php-cgi .php
    </IfModule>
    /etc/httpd/conf/extra/httpd-vhosts.conf (and adding of domain to /etc/hosts)
    <VirtualHost *:80>
    ServerAdmin root@localhost
    DocumentRoot "/srv/http/php52.test"
    ServerName php52.test
    ErrorLog "/var/log/httpd/php52.test"
    CustomLog "/var/log/httpd/php52.test" common
    Include conf/extra/php52_fcgid.conf
    </VirtualHost>
    <VirtualHost *:80>
    ServerAdmin root@localhost
    DocumentRoot "/srv/http/php53.test"
    ServerName php53.test
    ErrorLog "/var/log/httpd/php53.test"
    CustomLog "/var/log/httpd/php53.test" common
    Include conf/extra/php53_fcgid.conf
    </VirtualHost>
    The rest was changes to my http.conf, here are most of the parts that changed.
    # mod_fcgid
    LoadModule fcgid_module modules/mod_fcgid.so
    <Directory "/srv/http">
    Options Includes Indexes FollowSymLinks ExecCGI
    </Directory>
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    # mod_fcgid server wide conf
    Include conf/extra/fcgid_module.conf
    I hope somebody else finds this useful. This was a learning experience for me.

  • [SOLVED] bash: sleep not a builtin?

    hello,
    i have a few scripts running in endless loops, using the sleep command.
    this causes constant i/o - not much, but nevertheless.
    i went to investigate this further and found that on (archlinux') bash, sleep is not a builtin by default, nor can it be enabled with the "enable" command.
    this seems less than optimal to me.
    i can't find any packages that would remedy that, either.
    how can i solve this?
    thoughts, most preferable first:
    1) there is some other bash-builtin i've missed, or some workaround that has the same effect.
    2) copy the sleep command to /dev/shm/bin and add that to my path. feels hackish, but why not?
    3) recompile bash (i read the debian version has sleep as a builtin)?
    4) change to another (preferably bash-compatible) shell?
    cheers,
    o.
    Last edited by ondoho (2014-01-06 21:29:31)

    dzen for system resource monitoring was something I wanted to bring up, but I wasn't sure what purpose of your script, so I didn't bring it up.
    About two or three years ago, I switched to dzen from Conky for system resource monitoring. Like many people, suggestions, and examples on the Internet, I used Bash to write the script [1] to feed the data into dzen. It wasn't long before I realize the script had eaten up 100MB memory.
    It was the time I first noticed the issue with Bash scripting. Yes, there are times for cron and should be used with cron, but for this situation and type of case, you can't. I did try to isolate the problem by removing some monitoring components, but, IIRC, the memory was still being eaten.
    The 3,000 iterations in my previous might sound a lot at first glance, but the point isn't the iterations but how many invocations of external commands. And 3000 calls of external externally actually ain't a lot, even for one-off or once in long time scripts. That's where the problem is linked from what I see, although I still don't know what the actually cause is.
    After I failed to find the leak--or is there really one? I ported the Bash script to C [2]. It's much efficient.
    Note that for both code, they are updating as fast as 0.2 seconds depending on what system resources. I found 1 second is too long, especially when you are pressing volume up key, even it's roughly okay for system clock.
    I'd advise everyone to take a close look at "TIME+" in top/htop, you might find some programs that you don't expect to use that much time and some the other way around.
    By the way, when I said "little obsessive" about myself, I only meant PS1 in loadable C extension is obsessive--who even does like `enable -f vimps1 vimps1` for your PS1? But other parts don't count, because those are clearly wasting if the code is executed a lot and you don't deal with.
    [1]: https://github.com/livibetter/dotfiles/ … /status.sh
    [2]: https://github.com/livibetter/dotfiles/ … n/status.c

  • [Solved] Installing on a hd that already has windows 7 and sabayon

    currently it looks like this:
    /dev/sda1 ntfs systerm reserved 100mb
    /dev/sda2 ntfs 40gb (windows 7 installed)
    /dev/sda3 ext4 / / 40gb (sabayon)
    /dev/sda4 extended 218.93gb
    /dev/sda5 linuxswap 2gb
    /dev/sda6 ntfs storage 216.93gb
    I tired to install archlinux with just a / partition and tried to reuse my swap....... failed miserably
    after that I recreated my ntfs partition and tinkered with arch in virtual box till I got a little comfortable working with it.
    Now I want to delete my sda6 partition and repartition for arch.
    would I need to make like:
    sda6: /boot (bootable)
    then sda7 /root
    and sda8 /home ????
    Im not sure what I need to do...... because I should be able to use my grub I already have and just re autodetect........ should see arch after its installed I would think
    in sabayon I would use:
    grub-mkconfig -o /boot/grub/grub.cfg
    grub2-install /dev/sda
    would love to get it running on its own instead of having to use virtual box.
    I tried to look around and didnt find much info on what I was looking for.
    thanks.
    Last edited by splippity (2010-05-28 01:39:03)

    more info heres what my current grub looks like:
    # DO NOT EDIT THIS FILE
    # It is automatically generated by /sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_fonts ###
    ### END /etc/grub.d/00_fonts ###
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="${saved_entry}"
    if [ ${prev_saved_entry} ]; then
    set saved_entry=${prev_saved_entry}
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
    fi
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=1024x768
    # vga= is deprecated, grub2 handles this just fine
    # making grub2 res == linux fb res
    set gfxpayload=keep
    insmod gfxterm
    insmod vbe
    if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
    fi
    fi
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if sleep --interruptible 0 ; then
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/05_distro_theme ###
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
    insmod png
    if background_image /usr/share/grub/default-splash.png ; then
    set color_normal=white/black
    set color_highlight=magenta/black
    else
    set menu_color_normal=cyan/blue
    set menu_color_highlight=white/blue
    fi
    ### END /etc/grub.d/05_distro_theme ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Sabayon GNU/Linux, with Linux x86-2.6.33-sabayon" --class sabayon --class gnu-linux --class gnu --class os {
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
    echo Loading Linux x86-2.6.33-sabayon ...
    linux /boot/kernel-genkernel-x86-2.6.33-sabayon ro BOOT_IMAGE=/boot/kernel-genkernel-x86-2.6.33-sabayon ro BOOT_IMAGE=/boo$
    echo Loading initial ramdisk ...
    initrd /boot/initramfs-genkernel-x86-2.6.33-sabayon
    menuentry "Sabayon GNU/Linux, with Linux x86-2.6.33-sabayon (recovery mode)" --class sabayon --class gnu-linux --class gnu --class o$
    insmod ext2
    set root='(hd0,3)'
    search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
    echo Loading Linux x86-2.6.33-sabayon ...
    linux /boot/kernel-genkernel-x86-2.6.33-sabayon ro single BOOT_IMAGE=/boot/kernel-genkernel-x86-2.6.33-sabayon ro BOOT_IMA$
    echo Loading initial ramdisk ...
    initrd /boot/initramfs-genkernel-x86-2.6.33-sabayon
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda1)" {
    insmod ntfs
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set b256dd6956dd2ebb
    chainloader +1
    menuentry "Arch (on /dev/sda6)" {
    insmod ext2
    set root='(hd0,6)'
    search --no-floppy --fs-uuid --set ccba04ad-f2d4-41f9-add6-2818579dfe55
    linux /boot/vmlinuz26 root=/dev/sda6
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    what would I need to modify it to, to make it work?
    thanks.

  • [Solved] Install package python-evdev from AUR

    I belive this is the correct section to post this but I have a problem installing the package python-evdev where I get the error ( Unsupported package: Potentially dangerous ! )
    after trying to install with yaourt and pip install python-evdev results in bash: pip: command not found even after checking that extra/python-setuptools 1:5.2-1 is installed
    and extra/python2-setuptools 1:5.2-1 is installed.
    I realize there are other modules for hooking x server events but this one I have already written 200 lines of code for and is key to my application working.  I was able to install
    and utilize this module in ubuntu but cannot seem to get it installed in archlinux.  Any guidance would be apreciated.
    Last edited by meschael (2014-06-25 00:34:58)

    I asumed pip came with setup tools, so following ids1024's lead I did a pacman -S python-pip which solved the command not found issue.  I downloaded and untar'ed the package from AUR and issued a makepkg -s from within the extracted folder.  There seems to be an issue with the licence which I can now see has to do with the person who make the package
    I did not realize the dynamics of how AUR works because I am new to arch, so I appologize if I bothered anyone.
    [Update] I have abondoned the idea of getting pythons evdev module installed as I have located a python3-xlib module which seems to have installed correctly, incidently I was unable to locate a xlib ported to python3 in my other distro, but found it in AUR here so this should work, will have to adapt my code but not the end of the world.  Else if (Xlib != WORKING): work directly with /dev/input/eventn using root
    Last edited by meschael (2014-06-25 00:34:03)

  • [SOLVED] install xorg on Virtualbox's ArchLinux

    I'm trying to install xorg on the ArchLinux.(which in a virtualbox's box)
    But, when I run 'xinit'.
    It display vboxvideo does not exist.
    When I use 'lsmod|grep vboxvideo'.  It exist.
    After search full directory, I found:
    /usr/lib/xorg/modules/dri/vboxvideo_dri.so
    and
    /lib/modules/3.0-ARCH/misc/vboxvideo.so
    [SOLVED solution]
    mkdir -p /usr/lib/xorg/modules/drivers
    rerun the virtualbox addition
    Last edited by dlin (2011-08-13 01:04:50)

    You need a VirtualBox Guest installation for your guest system to  get the needed video driver run at your guest system.
    Look at this how to do the installation on an Arch system:
    https://wiki.archlinux.org/index.php/Ar … lBox_Guest
    Alternatively, you can install the drivers with VirtualBox itself. There is a Menu entry 'Install Guest Additions...' under 'Devices'.
    After calling the menu item there is a iso image installed wich you can mount in your guest system:
    # mount /dev/sr0 /mnt
    or something similar
    On the CD there is a bash script /mnt/VboxLinuxAdditions.run which you can run to compile the device drivers.
    To do this, you need gcc and linux headers installed on your guest system.
    For using the compiled drivers, use the wiki article which I have linked above.
    This Way has the disadvantage that you need to do the compilation again after every kernel update.

  • [Solved] Installed Arch, I have a kernel problem.

    Hi guys, I'm new here, but I use only linux since 2003. I have a problem at boot... When I choose arch from the bootloader I get this:
    ERROR: Failed to parse block device name for '/dev/sda6'
    ERROR: root fs cannot be detected. Try using the rootfstype= kernel parameter
    Or something very very similar. I see that I'm not the only one experiencing this problem so I try solving by myself following hints I've found on this forum... but nothing changed.
    I need help
    This is what you have to know:
    /etc/mkinitcpio.conf:
    MODULES=""
    HOOKS="base udev autodetect pata keymap filesystems"
    I also tried with ide...
    fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
    /dev/cdrom1 /mnt/cdrom1 iso9660 ro,user,noauto,unhide 0 0
    /dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
    /dev/fd0 /mnt/fd0 vfat user,noauto 0 0
    /dev/sda2 swap swap defaults 0 0
    /dev/sda6 / ext3 defaults 0 1
    grub entry:
    #Archlinux
    title ArchLinux (on /dev/sda6)
    root (hd0,5)
    kernel /boot/vmlinuz26 root=/dev/sda6
    initrd /boot/kernel26.img
    savedefault
    boot
    Last edited by Raffo (2007-07-14 16:34:42)

    That's very curious. I'm just having this problem after installing the lowlatency kernel from this repo:
    Server = http://arch.madfire.net/proaudio/i686
    So I've just changed the initrd /boot/kernel26.img to /boot/kernel26rt.img and I'm getting exactly the same error. I've also tried changing sda with hda in the grub's menu.lst but nothing changed...

  • [Solved]Installing on two drives

    I'm aware you can have a partitioned install on the one drive. I assumed you could do the same but with two hard drives and I have run into some trouble.
    Is it in fact possible to have /dev/sda as the (/) root partition and /dev/sdb as the /home partition?
    Is the mounting any different?
    I was using;
    mount /dev/sda /mnt
    mkdir /mnt/home
    mount /dev/sdb /mnt/home
    then pacstraping to /mnt.
    SOLVED; Mounting sda1 and sdb1 instead of sda and sdb, disks have 1 partition each taking up the entire volume.
    mount /dev/sda1 /mnt
    mkdir /mnt/home
    mount /dev/sdb1 /mnt/home
    Last edited by Oldmoth (2014-06-20 23:14:31)

    drhill1 wrote:sda and sdb are the raw disks.  You need to mount the partitions - probably sda1 and sdb1, but use "fdisk -l /dev/sda" to check.
    How silly of me. That explains the problems I was having.
    Thank you very much.

  • [SOLVED] Installing NVIDIA in place of on-board Intel Graphics

    Installing GeForce 210 on x86_64: I've done this successfully in the past, but am pulling my hair after checking that my system is fully up-to-date and all drivers are installed.
    My /etc/X11/xorg.conf was generated by the nvidia-xconfig tool.
    I've snipped the uninteresting parts of /var/log/Xorg.0.log.
    [  2331.646]
    X.Org X Server 1.13.1
    Release Date: 2012-12-13
    [  2331.656] X Protocol Version 11, Revision 0
    [  2331.659] Build Operating System: Linux 3.7.0-1-ARCH x86_64
    [  2331.662] Current Operating System: Linux Bridger 3.6.10-1-ARCH #1 SMP PREEMPT Tue Dec 11 09:40:17 CET 2012 x86_64
    [  2331.662] Kernel command line: root=/dev/disk/by-uuid/447254ec-9c99-40ce-acf8-845112996a8e ro init=/bin/systemd vga=773
    [  2331.668] Build Date: 16 December 2012  04:45:14PM
    [  2331.671]
    [  2331.698] (==) Using config file: "/etc/X11/xorg.conf"
    [  2331.701] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [  2331.701] (==) ServerLayout "Default Layout"
    [  2331.702] (==) ModulePath set to "/usr/lib/xorg/modules"
    [  2331.774] Initializing built-in extension DRI2
    [  2331.774] (II) LoadModule: "glx"
    [  2331.775] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [  2331.793] (II) Module glx: vendor="NVIDIA Corporation"
    [  2331.793]    compiled for 4.0.2, module version = 1.0.0
    [  2331.793]    Module class: X.Org Server Extension
    [  2331.793] (II) NVIDIA GLX Module  310.19  Thu Nov  8 01:12:43 PST 2012
    [  2331.795] Loading extension GLX
    ## vvvvvvvvvvvvvvvvvvvvvvvvvvvv ##
    [  2331.795] (II) LoadModule: "intel"
    [  2331.795] (WW) Warning, couldn't open module intel
    [  2331.795] (II) UnloadModule: "intel"
    [  2331.795] (II) Unloading intel
    [  2331.795] (EE) Failed to load module "intel" (module does not exist, 0)
    [  2331.795] (EE) No drivers available.
    [  2331.799]
    Fatal server error:
    [  2331.799] no screens found
    Can't, for the life of me, figure why it's trying to LoadModule: "Intel" when it should say
    [  2331.795] (II) LoadModule: "nvidia"
    [  2331.795] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    I've gone so far as to start removing anything that looked like ...Video-iXXX.
    Any suggestions are very much appreciated.
    Thanks,
    Barton
    UPDATE:
    Sometimes all it takes is a few hours sleep:
    [root@Bridger barton]# cd /etc/X11/
    [root@Bridger X11]# grep -r "intel"
    xorg.conf.d/20-intel.conf:   Driver      "intel"
    xorg.conf.d/10-monitor.conf:    Driver                 "intel"
    Think to yourself "Ahah!"
    [root@Bridger X11]# nano ./xorg.conf.d/20-intel.conf
    Edit that one to have the desired driver.
    NOTE: It was not enough to rename the file "old_xxx.conf" (probably should have changed the extension)
    Section "Device"
       Identifier  "GeForce 210"
       Driver      "nvidia"
    #   Option      "AccelMethod"  "sna"
    #   Option "SwapbuffersWait" "false"
    EndSection
    [root@Bridger X11]# nano ./xorg.conf.d/10-monitor.conf
    Edit that one to have the desired driver.
    NOTE: It was not enough to rename the file "old_xxx.conf" (probably should have changed the extension)
    Section "Monitor"
        Identifier             "Monitor0"
    EndSection
    Section "Device"
        Identifier             "Device0"
        Driver                 "nvidia"
    EndSection
    That file also contains my monitor specific settings left over from the old "install":
    Section "Screen"
        Identifier             "Screen0"  #Collapse Monitor and Device section to Screen section
        Device                 "Device0"
        Monitor                "Monitor0"
        DefaultDepth            24 #Choose the depth (16||24)
        SubSection             "Display"
            Depth               24
            Modes              "1920x1080" #Choose the resolution
        EndSubSection
    EndSection
    I would like to know what part of the Arch setup process created these files, though.
    Last edited by bartonc (2012-12-25 20:50:23)

    Your Nvidia card is not supported by Adobe.  There is a hack that might make it work Search Nvidia hack on this forum, or the hardware forum. Do what it says and you should be fine.

  • [SOLVED] Installing Arch on usb stick - login to emergency mode only

    I have checked fstbe which is correct
    block is in HOOKS line. Also added ext4 to MODULES
    not but not least, i have used that usb for live distros and full installs. also portioned with gparted
    most attractive errors in log are
    kvm disabled in bios (i am installing only 32 bit version, booted to 32bit)
    can not execute plymouth
    any ideas
    thanks in advance
    Last edited by Archhotep (2013-03-25 13:19:28)

    WonderWoofy wrote:
    Archhotep wrote:
    Trilby wrote:It will continue working until you change what usb's are plugged in again.  If you want a real solution use UUID in fstab.
    I understand that. but both UUIDs and devices (/dev/sdX) are there in fstab if I am correct. I will check that in evening. if so did i make a mistake in generating fstab.
    I have generated fstab with
    genfstab -p /mnt >> /mnt/etc/fstab  (does this happens if i forget -p).
    as I have done this multiple times, I might have done some thing wrong. I will edit that file manually and removed /dev/sdx entries from that
    Honestly, you are not very good at sharing what is actually in your configs.  So as Trilby said above, no one really knows what is in your fstab, since you have not actually shared that with this thread. 
    As far as I can tell, when I run "genfstab -p /" on my running machine, letting the output just be dumped to stdout, it doesn't give me UUIDs anywhere.  And from your statement it seems you haven't even actually checked.
    What I have done in the past is used labels.  For example if you are using ext2, ext3, or ext4, you could assign a label using "e2label".  So lets say you label your rootfs (/) "usb_root".  Now instead of using the unreliable /dev/sdXY format, you can use LABEL=usb_root in your fstab, and in the bootloader you can use root=LABEL=usb_root (or root=/dev/disk/by-label/usb_root).
    I would also like to mention that this quote sucks:
    Archhotep wrote:No. UUIDs are there in the boot loader (I think) and grub was working fine and why the system is trying to boot at first place.
    There are a number of people who are patiently trying to walk you through this issue (with quite a bit more hand holding that usually takes place around here), and you don't have the decency/appreciation to even take the time to confirm what you are actually using in the configs that everyone is telling you to check and/or change.
    Sir,
    I was a standard linux (i mean ubuntu etc) user until sometime back.  I don't know exactly what should be there in /etc/fstab. I also do not know what information you might need to help me. If any one asked me the details about /etc/fstab etc might have provided. I have given what info what I felt was appropriate and enough. I do not have that machine with me when I was posting lat post, otherwise I might have posted. that laptop is at home. I already said thanks in my third post immediately after I solve the problem.
    Sorry if I am wrong, and thatnk you once again for letting me about labels.
    If I still have a question about /etc/fstab, i will post my fstab.
    I don't know where to look to know that my boot loader is using uuid or dev. It would be great help.
    Last edited by Archhotep (2013-03-25 16:06:11)

Maybe you are looking for

  • BAPI error

    i'm making P.O. calling BAPI. please tell me how to remove this error from it_return In case of evaluated receipt settlement, please enter tax code

  • Please help! Restarted iTunes, all music gone and my backup won't work ...

    Hi, please can anybody help me... I am using iTunes 5.0.1.4 on Windows XP with service pack 2. Today I restarted iTunes and the library is empty. All music gone, all playlists gone. I checked the FAQs and older articles and tried everything (reloadin

  • Tree in ADF

    I want to make Tree( binding from database) and take the selection subnode from this tree and bind it anthor query but i have only the root node not subnode or subsubnode

  • Purchasing and downloading photoshop cs5 education help.

    I am looking to purchase and download photoshop cs5 education version direct from adobe australia. However i would like to know if once i have downloaded whether i am able to install it on both my computers imac and macbook pro? Or am i limited to th

  • PCA classic or New GL

    Hi Experts, My client has different co codes and on ECC and Classic PCA is activated but not using. Now they are going to implement ECC 6 in US company codes. The requirement for this co code is to use the PCA. Can you please suggest on the below: 1.