Getting SLiM to work... [SOLVED!]

I recently installed Xfce and SLiM, but SLiM refuses to login. When I type in my username and password, it just comes back to the login screen again. Are there some configuration files I need to edit?
Last edited by miggols99 (2007-07-29 12:49:36)

I only have Xfce and don't plan on adding anything else. Will my /etc/slim.conf help? I think I might have done something to it.
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
# numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can overridden by the command line
# option "-d"
daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions xfce4
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user simone
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme default
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log
Last edited by miggols99 (2007-07-28 20:41:14)

Similar Messages

  • Can't get sound to work [SOLVED]

    Hi, I'm new to arch/linux in general. Built a computer, and can't get sound to work. I ran Ubuntu for a short period of time, and sound worked there, so I'm assuming there's no hardware issue here.
    I'm a little bit stuck as to what I should be doing. Help?
    Last edited by uma (2012-01-28 22:51:25)

    Start with the wiki: https://wiki.archlinux.org/index.php/Ad … chitecture
    If you still can't figure it out and you want help, at least post some info, instead of 'can't get it to work' (this implies that you tried something, but what?).

  • Can't get SLiM to work

    I followed the wiki perfectly, added slim to the daemons, added openbox-session to xinitrc, still doesn't work:(

    Maybe try the runlevel method instead. Remove the slim daemon from rc.conf and follow these steps.
    Last edited by dyscoria (2008-07-19 13:09:35)

  • Can't get uzbl to work [solved]

    I installed uzbl-git with yaourt. Then I copied /usr/share/uzbl/examples/config/uzbl to ~/.config
    Then I try to start uzbl-browser with dmenu. It flashes the screen grey for a second then nothing happens.
    I missed a step somewhere?
    Edit: I rebuilded enchant like it says in the FAQ and now it works.
    Last edited by tladuke (2009-12-07 06:05:45)

    lustikus wrote:now that uzbl is in /community, is it better to use this version or keep the git from AUR. Seems git is even newer.
    the git version is of course newer, but also more bleeding edge, and it gives you uzbl-core, uzbl-browser and uzbl-tabbed at once.
    the official binary packages are built from stable releases and are split up.

  • [SOLVED] Can't get Steam to work, VirtualBox installation

    Hello!
    I'm having problems with getting Steam to work on my Arch Linux installation. I'm new to Linux so I'll just give you a prehistory & console output. I installed the distro on a virtual machine created in VirtualBox, installed xorg & KDE, I didn't install any video drivers because this is what wiki says:
    https://wiki.archlinux.org/index.php/VirtualBox#Installation_steps_for_Arch_Linux_guests wrote:Note: You do not need to also install a specific video driver in the guest system. Install the Guest Additions instead.
    So I installed "virtualbox-guest-utils" package, created a file /etc/modules-load.d/virtualbox.conf with the following contents:
    vboxguest
    vboxsf
    vboxvideo
    Then I executed
    sudo systemctl enable vboxservice
    and rebooted the system. After the reboot I got the shared clipboard feature working => VBox Guest Additions seemed to work. Then I installed "steam" package, launched it via the terminal and waited for it to download it's updated. After Steam downloaded everything, I tried to launch it once again via terminal and got this:
    Running Steam on arch  64-bit
    STEAM_RUNTIME is enabled automatically
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Xlib:  extension "GLX" missing on display ":0".
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Xlib:  extension "GLX" missing on display ":0".
    OpenGL GLX extension not supported by displayAssert( Assertion Failed: Fatal Error: OpenGL GLX extension not supported by display ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/steamUI/Main.cpp:285
    Installing breakpad exception handler for appid(steam)/version(1405013548_client)
    Uploading dump (out-of-process) [proxy '']
    /tmp/dumps/assert_20140712040049_6.dmp
    Finished uploading minidump (out-of-process): success = yes
    response: CrashID=bp-e2313069-9637-4ef3-aeee-fe3b92140711
    and a GUI window saying "OpenGL GLX extension not supported by display". I tried to find a solution on the internet but they all mentioned installing Nvidia drivers. And VirtualBox GPU != Nvidia GPU.
    Is there any way to solve this? Steam is working on my Fedora-VBox (this is the distro our lecturer uses as an example to teach us about Linux) installation out of the box.
    EDIT: forgot to mention that system is x86_64, multilib in enabled, 3D acceleration in VM settings is enabled.
    Last edited by Nathel (2014-07-12 22:10:16)

    Fixed the issue by replacing nvidia-libgl with mesa-libgl & lib32-mesa-libgl.

  • I have a super slim usb 2.0.  Can't get it to work on macbook air.  Any ideas?

    I have just bought a super slim usb 2.0 disc drive but I can't get it to work on my macbook air and now a dvd is stuck in it!  Any ideas?

    Five ways to eject a stuck CD or DVD from the optical drive
    Ejecting the stuck disc can usually be done in one of the following ways:
      1. Restart the computer and after the chime press and hold down the
          left mouse button until the disc ejects.
      2. Press the Eject button on your keyboard.
      3. Click on the Eject button in the menubar.
      4. Press COMMAND-E.
      5. If none of the above work try this: Open the Terminal application in
          your Utilities folder. At the prompt enter or paste the following:
            /usr/bin/drutil eject
    If this fails then try this:
    Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes.

  • [SOLVED] Can't get spamassassin to work

    Hi!
    I'm trying to get spamassassin to work, but it seems like it doesn't want to cooperate
    Here's ~/.forward file
    "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #shin"
    A bit of postfix'es main.cf
    mailbox_command = /usr/bin/procmail -a "$EXTENSION"
    And a .procmailrc
    # SpamAssassin sample procmailrc
    # ==============================
    # The following line is only used if you use a system-wide /etc/procmailrc.
    # See procmailrc(5) for infos on what it exactly does, the short version:
    # * It ensures that the correct user is passed to spamd if spamc is used
    # * The folders the mail is filed to later on is owned by the user, not
    # root.
    DROPPRIVS=yes
    VERBOSE=yes
    :0fw: spamassassin.lock
    * < 256000
    | spamassassin
    :0:
    * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
    almost-certainly-spam
    :0:
    * ^X-Spam-Status: Yes
    probably-spam
    :0
    * ^^rom[ ]
    LOG="*** Dropped F off From_ header! Fixing up. "
    :0 fhw
    | sed -e '1s/^/F/'
    The X-Spam-... doesn't appear in headers, and there's nothing in the logfiles. What's wrong?
    Last edited by lateralus (2008-10-17 19:36:56)

    Aight, solved it. I had to replace this line of .procmailrc
    | spamassassin
    With this one
    | /usr/bin/perlbin/vendor/spamassassin

  • [solved] graphlab / graphlabapi, anyone get this to work?

    edit3: I'm marking this as solved, as it basically seems to work for me for now. I decided not to upload the packages to the AUR because graphlab is broken with the current version of openmpi and depends on a libjson library that I'm not at all familiar with and nobody else here seems to use. If these aren't good reasons not to submit the packages I'll happily submit and maintain them. I'll maintain the PKGBUILDs on github for now https://github.com/sveitser/pkgbuilds .
    I'm trying to use graphlabapi ( www.graphlab.org ) on arch linux. I'm planning on using this quite a bit in the future so my goal is to create an AUR package eventually. I managed to build it successfully but the compiled application does not seem to work properly. I posted an issue on their google code page ( http://code.google.com/p/graphlabapi/is … tail?id=41 ), but was wondering if anyone here managed to get it to work.
    If anyone wants to give it a shot, AFAIK the following will install the necessary pacman dependencies:
    pacman -S --needed apache-ant jdk7-openjdk mercurial cmake openmpi
    edit: I also put a symlink named "python" to "python2" in my PATH before "/usr/bin" because otherwise the build system would detect python3 and the build failed at some point. Probably not a proper workaround but I think it seems to do the job for now.
    edit2: Found a way to tell cmake to choose python2. See below.
    Build instructions are basically:
    hg clone https://code.google.com/p/graphlabapi/
    cd graphlabapi
    ./configure -D PYTHON_EXECUTABLE=/usr/bin/python2
    cd release # or "cd debug" for quicker build using less RAM
    make -j 4
    The release build needs a lot of memory so they suggest not to use more concurrent make threads than the system memory in GB. I also run into the same issue if I build the debug build. The build takes a long time due to all the dependencies that will be installed locally. At the moment they don't seem to check for an existing boost installation on the "default" branch so boost will be installed locally even if it is available system wide.
    The tcmalloc dependency fails to build with glibc 2.16 so I patch the file
    deps/tcmalloc/src/libtcmalloc/src/base/linuxthreads.cc
    with respect to the graphlabapi base directory with
    196c196
    < static void SignalHandler(int signum, siginfo_t *si, void *data) {
    > static void SignalHandler(int signum, siginfo *si, void *data) {
    as suggested here http://code.google.com/p/gperftools/iss … akechanges and then run make again
    make -j 4
    Upon which the build succeeds. However when I try to run the examples or tests I mostly get no output and the programs just hang.
    I've been struggling quite a bit and any help or pointers would be greatly appreciated. Thanks!
    Last edited by sveitser (2012-07-24 06:39:18)

    edit: Unsetting CXXFLAGS before executing "make" seems to let the build complete. Not sure if that's a good idea but I 'think' cmake sets it appropriately anyway.
    After successfully compiling the package I created a PKGBUILD that I thought should work but it aborts on error during the "make" step. When I run "make" from a terminal in the corresponding directory the compilation succeeds.
    The PKGBUILD (also here https://github.com/sveitser/pkgbuilds/t … raphlab-hg ) is
    # Maintainer: Mathis Antony <[email protected]>
    pkgname=graphlab-hg
    pkgver=4197
    pkgrel=1
    pkgdesc="GraphLab is a new parallel framework for machine learning."
    arch=('i686' 'x86_64')
    url="http://www.graphlab.org"
    license=('apache')
    depends=('openmpi' 'python2' 'jdk7-openjdk' 'boost')
    makedepends=('cmake' 'mercurial' 'apache-ant')
    options=()
    source=(tcmalloc.patch)
    md5sums=('11bc88f68b4dcf214255a3b7de1f8ede')
    _hgroot=https://code.google.com/p
    _hgrepo=graphlabapi
    build() {
    cd "$srcdir"
    msg "Connecting to Mercurial server...."
    if [[ -d "$_hgrepo" ]]; then
    cd "$_hgrepo"
    hg pull -u
    msg "The local files are updated."
    else
    hg clone "$_hgroot" "$_hgrepo"
    fi
    msg "Mercurial checkout done or server timeout"
    msg "Starting build..."
    rm -rf "$srcdir/$_hgrepo-build"
    cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
    cd "$srcdir/$_hgrepo-build"
    ./configure -D PYTHON_EXECUTABLE=/usr/bin/python2 \
    --prefix=/usr
    cp "$startdir/tcmalloc.patch" patches/
    sed '/ExternalProject_Add(libtcmalloc/a \
    PATCH_COMMAND patch -N -p0 -i ${GraphLab_SOURCE_DIR}/patches/tcmalloc.patch || true' \
    CMakeLists.txt > CMakeLists2.txt
    mv CMakeLists2.txt CMakeLists.txt
    cd release
    unset CXXFLAGS
    make
    package() {
    cd "$srcdir/$_hgrepo-build"
    make DESTDIR="$pkgdir/" install
    and the tcmalloc.patch file
    --- src/base/linuxthreads.cc 2012-07-23 02:21:30.946086243 +0800
    +++ src/base/linuxthreads.cc 2012-02-03 05:36:23.000000000 +0800
    @@ -193,7 +193,7 @@
    /* Signal handler to help us recover from dying while we are attached to
    * other threads.
    -static void SignalHandler(int signum, siginfo_t *si, void *data) {
    +static void SignalHandler(int signum, siginfo *si, void *data) {
    if (sig_pids != NULL) {
    if (signum == SIGABRT) {
    while (sig_num_threads-- > 0) {
    The error I get when running makepkg is
    [ 27%] Performing patch step for 'libjson'
    patching file JSONOptions.h
    patching file makefile
    patching file Source/JSONDefs.h
    [ 27%] No update step for 'libjson'
    [ 28%] No configure step for 'libjson'
    [ 28%] Performing build step for 'libjson'
    makefile:173: *** recipe commences before first target. Stop.
    make[2]: *** [../deps/json/src/libjson-stamp/libjson-build] Error 2
    make[1]: *** [CMakeFiles/libjson.dir/all] Error 2
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    I think the problematic makefile is src/graphlabapi-build/deps/json/src/libjson/makefile. Line 173 is:
    170 # Usage check
    171 ifdef CXXFLAGS
    172 ifdef BUILD_TYPE
    173 $(error CXXFLAGS and BUILD_TYPE are mutually exclusive)
    174 endif
    175 endif
    but I'm thinking that if this were indeed to cause the error I should see the corresponding error message.
    Last edited by sveitser (2012-07-23 09:38:15)

  • VMware-server: Any way to get this to work? Kernel issues! SOLVED

    Hi all,
    I am trying to get VMware server installed, but am having a lot of difficulty.
    According to multiple sources of information, I am told I need to install vmware-server-modules first.
    When I try to install, yaourt gives the following error: error: target not found: kernel26>=2.6.32.
    When I try to install vmware-server, yaourt gives the error error: target not found: kernel26>=2.6.29.
    FYI:
    $ uname -r
    3.2.5-1-ARCH
    The Wiki deals with VMware Player and Workstation, but not Server. There is a forum/aur information relating to installing Server which is quite old (mostly 2010, some 2011), however given I am running an up-to-date kernel I seem to be hitting a dead end. Is there anyone who knows how to get this working?
    I have seen:
    https://bbs.archlinux.org/viewtopic.php?id=101982
    https://aur.archlinux.org/packages.php?ID=6182
    I have tried VirtualBox in the past but have had issues getting the networking properly configured, so VMware remains my preference. If there are other decent virtualisation options I am willing to listen.
    Your assistance would be much appreciated!
    Last edited by emile (2012-03-03 09:46:32)

    Thank you for your posts. My own research and your comments has convinced me that VMware Server is not the right way forward nowadays.
    EXSi:
    I have an unused  box (Dell GX620 usff) which seems like it would be suitable to run EXSi and 2-3 VMs, but no more due to RAM limits of 4GB on the mobo. I THINK its 64-bit, but not 100% sure - knowing this is an EXSi requirement for recent versions is somewhat annoying. Also, from what I understand, there is no native Linux control application (vSphere is Windows only, right?), which makes VMware feel entirely like the wrong choice for me. 
    Citrix XenServer:
    This looks promising - does anyone use this?
    VirtualBox:
    I hear your comments ... maybe its time to do some reading on this. Seems like I'll only get it to work if I take the time to do it right. As usual, so no suprises there Given that it will be easier to experiment on my usual system than have to spend time on a new box, I think I'll investigate this first.
    Please feel free to leave further comments on this subject - I'm still interested in your experiences. It will however, be marked as SOLVED, as VMware-server is out.

  • [SOLVED] I can't get virtual hosts working. What's wrong?

    What I've decided to do is try to set up each domain name in the user folder to whom it belongs (for example: /home/username/somedomain.com/htdocs). I can't get it to work though. I keep getting an error saying that there's no index file (although there is) or that the location isn't readable (although it is). I'm trying to make it so that if the domain name matches with a virtual host section in httpd-vhosts.conf that a specific DocumentRoot will be loaded for that domain, etc. But, if the domain name points to my server but doesn't match, then I want the default location to work. I can't seem to make this work.
    This is my http.conf:
    ServerRoot "/etc/httpd"
    Listen 80
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    #CUSTOM
    LoadModule php5_module modules/libphp5.so
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    User http
    Group http
    </IfModule>
    </IfModule>
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    <Directory "/srv/http/default/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule dir_module>
    DirectoryIndex index.php,index.html
    </IfModule>
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    ErrorLog "/var/log/httpd/error_log"
    LogLevel warn
    <IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "/var/log/httpd/access_log" common
    </IfModule>
    <IfModule alias_module>
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    #Scriptsock /var/run/httpd/cgisock
    </IfModule>
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    DefaultType text/plain
    <IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    </IfModule>
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    #Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    #CUSTOM
    Include conf/extra/php5_module.conf
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    And here's my httpd-vhosts.conf:
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName 45.117.5.40
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    ErrorLog "/srv/http/default/log/error_log"
    CustomLog "/srv/http/default/log/access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerName somedomain.com
    ServerName www.somedomain.com
    ServerAdmin [email protected]
    DocumentRoot "/home/normaluser/somedomain.com/htdocs"
    ErrorLog "/home/normaluser/somedomain.com/log/error_log"
    CustomLog "/home/normaluser/somedomain.com/log/access_log" common
    </VirtualHost>
    So, for example, I want it to be so that if I visit http://45.117.5.40 that it'll show the stuff ftom /srv/http/default/htdocs but if the domain name matches somedomain.com then I want the server to show the content from /home/normaluser/somedomain.com/htdocs.
    What currently happens is that if I visit http://45.117.5.40 or somedomain.com, they both show the same content from /srv/http/default/htdocs.
    If I comment out the first VirtualHost section, then everything stops working and I see the default "Access forbidden!" message.
    What am I doing wrong?
    Last edited by trusktr (2012-04-13 06:15:41)

    I fixed it. In case any newbs come across this, I had to add a new <Directory> section for the DocumentRoot of the virtual host. Simply adding the VirtualHost entry in the vhosts file isn't enough.
    For example, for the "somedomain.com" vhost in the example above to work, I added this to http.conf:
    #This must match with the same location as DocumentRoot in httpd-vhost.conf.
    <Directory "/home/normaluser/somedomain.com/htdocs">
    #Put whatever directives you want in here
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    Let me know if you need any clarification.
    Last edited by trusktr (2012-04-13 06:16:02)

  • [SOLVED] Can't get curl to work, among everything else

    No matter what form I put curl in, I can't see to get it to work. The various manuals I've read through <man> and online have all shown me different examples, but none work.
    I've tried <command> | curl -F 'sprunge=<-'http://sprunge.us' and it does... nothing.
    I've tried substituting ix urls and pastebin urls but it does nothing.
    I feel like a complete moron because everyone expects me to instantly understand what all this gibberish means, and no one else seems to have a problem uploading command text online.
    I've had trouble every step of the way installing arch, and its taken me four hours to slug through each problem. Right now I can't start fluxbox for some reason, but I can't get the errors here except for what I write down.
    Heres the error for that
    Xmodmap: unable to open display ''
    Error: Couldn't connect to XServer
    I've tried redirecting xmodmap to the keys but it did nothing. I've tried figuring out this xserver thing but my retardation has apparently gotten in the way.
    Is this normal? Does everyone feel like an 90 year old when they first jump into arch linux?
    Last edited by Swashy (2012-12-05 19:08:13)

    gsgleason wrote:
    this site: http://www.linux-ninjas.com/2012/06/spr … tebin.html
    Shows this method:
    <command> | curl -F 'sprunge=<-' http://sprunge.us
    The Arch Wiki says the same :-)
    You an also try some other pastebin clients: https://wiki.archlinux.org/index.php/Li … in_Clients

  • [SOLVED] Can't get sound to work.

    Hello, I installed archlinux a few days ago, I love it!
    But I can't get sound to work.
    I followed the alsa archwiki, but I still couldn't get it work.
    I'm a real noob.
    Someone please help.
    Last edited by egb (2011-02-16 22:45:12)

    JokerBoy wrote:
    Inxsible wrote:
    Try this: as your user NOT root
    alsamixer
    why not? i use alsamixer as root to set all "globally". and "alsactl store" after that.
    egb - make also sure you added yourself to audio group.
    yeah, I did that some time ago
    edit: oh and I get this when I do the "alsactl store":
    alsactl: save_state:1504: No soundcards found...
    Last edited by egb (2011-02-16 10:30:34)

  • [SOLVED] can't get flash to work

    First i tried copying the flashplayer.so to /usr/lib/mozilla/plugins dir, but it didnt exists yet, so i did a searh and i found. This http://wiki.archlinux.org/index.php/Ins … bit_System  tried installing nspluginwrapper but it didnt work after restarting firefox. Tried manually installing the flashplater.so files again, since there was a dir there. Tried pacman -S flashplugin after i found that to be the most up to date way. None of this has worked, any ideas? I installed the 10.0.42.34 version. I never restarted anything other than firefox either. Thanx for any help.
    Last edited by leetstalker (2009-12-23 08:20:13)

    Yes, sorry about the editing, i just spent 10 minutes looking for the edit buttons and then the submit buttons, my new style made them invisible:P . I had a thought though. Before i installed gnome i had installed firefox, could i have installed a second copy while installing gnome or done something else to cause me difficulty? I like firefox but i guess i'll try getting flash to work in some other browsers and see how that goes.  Also, firefox isnt detecting any plugins in its add-ons section, perhaps thats a clue?

  • [SOLVED] cant get Xcompmgr to work how i want

    hi
    I have just followed the wiki on here to install and use Xcompmgr, I then went to the fluxbox wiki for Xcompmgr to see if i could get it to work properly. no luck!
    Xcompmgr works fine, but i cant control how it works! when I run xcompmgr -c in terminal, it all kicks in fine, but everything goes to 50% transparency!! ideally, I want it to start with no transparency, then use transset to set individual apps transparency!
    thanks
    Last edited by ninjaprawn (2008-12-16 20:42:49)

    Hey,
    If flux works similarly to openbox, if you put "xcompmgr &" into you autostart file (~/.fluxbox/startup I believe), this should start xcompmgr without affecting anything initially. Once your logged in, now with xcompmgr running, you can launch apps with transset.
    I've only had a brief mess around with transset and only use transparency for terminal, so apologies if this doesn't work / isn't what you're looking for.

  • [solved]passenger + nginx + rvm cant get nginx to work

    Hello ,
    I am trying to install   passenger-install-nginx-module from the wiki of ruby on rails. I removed my existing nginx but
    but now I cant get nginx to work from the /opt/nginx location. I am getting
    ruby-2.0.0-p481 [ytsejam@ytsejam ~]$ nginx -v
    bash: nginx: command not found
    If I try with "pacman Ql nginx "
    ruby-2.0.0-p481 [ytsejam@ytsejam ~]$ pacman -Ql nginx
    error: package 'nginx' was not found
    but I can enter the directory of /opt/nginx by using cd command.
    can anyone help me ?
    Last edited by ytsejam (2014-08-26 08:25:52)

    I'm happy to see that nginx-passenger had what you were looking for. If you encounter any problems, please don't hesitate to leave an AUR comment or submit a pull request!

Maybe you are looking for

  • How can i execute in the same block diagram two separate labview codes each one with diferent execution timings?

    Hello guys. I have been trying to solve this by a long time now...but i cant solve it.... I have my main code in labview beying executed in one timed loop of 1second.....but now i need to pulse a lazer very fast than one second... my ideia was like e

  • My iPod Nano 5th G. Won't turn on off the charger!?

    I recently just found my iPod since it's been lost, I can't understand why it won't turn on when it's not on the charger? It comes on when I put the charger in, thats fine, an I can listen to music and all, it even shows the bolt on the battery and t

  • FM for Download

    Hi guys, I have a requirement wherein i need to download data from my internal table in a file on the desktop of the user who is running it Atuomatically, the user will not provide any filepath. Can any one inform me about the Function Module for the

  • Compilations and organizing files--suggestions

    Because of an issue I was having with music disappearing (see these posts if interested): http://discussions.info.apple.com/webx?128@@.68b7d52c http://discussions.info.apple.com/webx?128@@.68b45f4b I went ahead and followed the advice of others and u

  • Trying to Understand Tapeless Workflow

    I know a lot of editors talk about tapeless workflows and it seems that most of the tapeless workflows involve a camcorder or P2 card reader to get footage into your hard drive but I'm curious... what if an editor doesn't shoot footage or own a camer