[SOLVED] Accidently did chmod -x on a directory...

Hello,
I have a /usr/local/bin directory, with two scripts: 'pacmanrd', whice removes orphaned packages, and 'start-fusion', which starts Compiz Fusion (standalone). While logged in as a user, I used sudo to chmod -x the entire directory, when I meant to +x the 'start-fusion' file x.x
Now, it seems only the root user 'using sudo works' can even see files in that directory. Even using 'ls' as a normal user on that directory results in whining that it can't access the files. How can I fix this? I'm guessing remove the directory and make a new one, but if so, how do I set the permissions right?
Thanks!!
Last edited by Ranguvar (2008-10-28 02:11:50)

Okay, thanks (again)
I had just wanted to be sure, and not muck things up more.

Similar Messages

  • [SOLVED] I did a dumb thing... (chmod/chown)

    Hi all, hope this is the right section,
    So I decided that I was tired of authenticating when I wanted to change some files for my SLiM theme, and decided to add permissions to my user.. on the entire share folder. Well, here's what I ran:
    [naut@arch /usr]$ sudo chown -Rv root:naut share/ && sudo chmod -Rv 664 share/
    Yep. So after I did that I noticed that xfce stopped working properly; all of my icons, panels, etc, were showing as follows: ▖▖▖▖▖▖▖▖▖▖
    I immediately tried to revert the change my chowning back to root:root, and setting most files back to 644, but it had no effect. I logged out and logged back in to see if it was a temporary thing, but when I logged back in, even more items were showing ▖▖▖▖▖▖▖▖▖▖. I switched to another tty and chmoded all of /usr/share to 777... now I know that's generally a bad idea but when I logged back in, I did see that it at least went back to normal functionality.
    So my question becomes, how can I know what dirs/files need what permissions? I'd like to get it back to where I have the least permission required for everything to work properly.
    Last edited by naut (2014-05-09 14:56:16)

    644 broke things because directories need execute permissions to be traversable.
    Unfortunately, /usr/share is a grab-bag of permissions:
    # find /usr/share -type f -exec ls -l {} + | cut -d ' ' -f 1 | sort | uniq -c
    2879 -r--r--r--
    4 -r-xr-xr-x
    49229 -rw-r--r--
    12 -rw-r-xr--
    143 -rw-rw-r--
    277 -rwxr-xr-x
    3 -rwxrwxr-x
    You'd probably be safe enough to set all files to 644 and all directories to 755, but you might want to check with pacman -Qkk and reinstall any packages that complain about permissions mismatches. This won't fix everything though, as some packages still pre-date MTREE files.

  • [SOLVED] Where did my old home directory go?

    I just copied my home folder over to a bigger partition for lack of space, and edited my fstab file accordingly.
    Then I logged out, renamed the old user folder from /home/myuser to /home/__myuser just to be sure I was not operating from the old directory anymore.
    I rebooted, and all seem to have went well - except now I have no idea where that __myuser folder has ended up residing? it is not in the /home directory anymore, but I can tell it still exist by looking at the disc usage on my root partition.
    Where to look?
    Last edited by jerik (2015-05-15 21:43:13)

    When you mount a partition to "/home" is "goes over top of" what is already there.  Most likely your old user is underneath that old mount and can't be seen because the new mount is sitting on top of it.  You could boot off the Arch ISO, make sure your new /home isn't mounted, and move your old user out of /home and then mount your new /home and copy the user onto that partition.

  • [SOLVED] Accidently deleted .config directory

    I'm ashamed to say that I have a noob issue that I need help with. I was cleaning out my home directory with command line operations and somehow I ended up deleting my .config directory. I thankfully made a backup on a usb drive but I am unable to mount it.
    It shows up under 'lsusb':
    Bus 006 Device 005: ID 18a5:3623 Verbatim, Ltd
    but when I run 'sudo fdisk -l', I don't see it:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x0006e191
    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 208844 104391 83 Linux
    /dev/sda2 208845 4305419 2048287+ 82 Linux swap / Solaris
    /dev/sda3 4305420 35037764 15366172+ 83 Linux
    /dev/sda4 35037765 312576704 138769470 83 Linux
    I just want to mount this drive and drag the darn folder back.
    Last edited by mynameisneo (2012-04-06 07:31:26)

    dmesg should give you an idea of what's happening after the usb drive is inserted

  • Why did chmod 775 work

    I recently was asked to look at a friend's Mac mini, which was stuck in the startup screen.  That is, it would not progress past the gray screen with the Apple logo and spinning progress wheel.
    The first thing I tried was starting in single user mode and running fsck, which took a while and did fix some errors.  I ran it again and it returned no more errors.
    I then started in verbose mode where it hung up on a repeating line, user-name-mac-pro com.apple.launchd[1] (com.apple.mDNSResponder[xxx]): posix_spawnp(''/usr/sbin/mDNSResponder, ...): No such file or directory
    When I did a Google search on this it seemed that there were many people who had a similar issue and they found that performing the command chmod 775 /volume/"Macintosh HD" in Terminal worked.  So, I thought I would try it.  I didn't use Terminal but I was able to change the permissions for my HD to 775.  It was 774.  I know that is Read only, and 775 is Read and Execute.  When I did this the Mac mini started up and everything worked.
    Question:  Why did this work?  Why was the Mac mini not able to start up as Read only, and why was the mDNSResponder the file that was hanging?

    Thanks Niel,
    I'm just learning the reasons for these permissions, and this makes sense to me now.  Thanks
    I guess the mDNSResponder file must have been the first file that launchd attempted to run but couldn't because of the Read only permissions that the HD had.  Is that correct?

  • [SOLVED]mpd does not detect the music directory

    I recently installed mpd with the gmpc gui, set my "music_directory" in /etc/mpd.conf to the location of all of my music (which contains lots of other folders and subfolders), but there's no listing of the audio files in the database in gmpc.
    Here's the /etc/mpd.conf if that helps:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/var/lib/mpd/music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    #auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    audio_output {
    type "pulse"
    name "My Pulse Output"
    server "remote_server" # optional
    sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Last edited by vlad951 (2011-05-07 09:36:11)

    vlad951 wrote:
    Thanks, I successfully launched mpd as a user and it detected all of my music. However, if I launch mpd with the mpd.conf that I created in my home directory, it launches, but outputs the following:
    [vladislav@vladislav .mpd]$ mpd ~/.mpd/mpd.conf
    listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
    Is this normal?
    *sigh* i answer this for the 3rd time in a row... this is no error it just says that binding to your ipv6 interface happened before the binding to ipv4.
    If you want to use your ipv4 interface hardcode it in mpd.conf
    bind_to_address "127.0.0.1"
    you can also have several binds:
    bind_to_address "127.0.0.1"
    bind_to_address "192.168.1.13"
    to make it listen on localhost and the external IP of your network card.
    If your music is on the same machine as your mpd i recommend to use a unix socket in addition.
    bind_to_address "/path/to/some/file/that/does/not/exist/yet"
    and make your client connect to that file instead of the IP. Speeds things up a log e.g. in ncmpcpp
    and btw: you can save your mpd.conf file as ~/.mpdconf and mpd will automatically use it.
    Last edited by Rasi (2011-05-07 08:41:30)

  • [Solved] Where did ifconfig go?

    I can't find ifconfig in the repositories, where did it go? Did it get replaced by some other package?
    $ sudo ifconfig
    sudo: ifconfig: command not found
    $ sudo pacman -S ifconfig
    error: target not found: ifconfig
    Last edited by Paaskehare (2011-11-13 23:44:55)

    Paaskehare wrote:Thanks, just needed net-tools, I had no idea that ifconfig was part of that package, atleast it is a standalone package in debian
    https://wiki.archlinux.org/index.php/FA … is_X_in.3F
    Edit: Exactly what bernarcher said. And please mark this thread as solved :-)
    Last edited by karol (2011-08-02 18:47:19)

  • [SOLVED] Where did the arrows on the scrollbars go?

    I'm currently using Cinnamon (Gnome 3) with the default Adwaita theme.  It's the base install that I haven't customized anything to.
    One of my first problems was the lack of the up and down arrows on the top and bottom of the scrollbar -- ie like in Firefox and Gnome Terminal
    I was able to add the arrows within Firefox by modification of the /usr/share/themes/Adwaita/gtk-2.0/gtkrc file and specifically changing the sections:
        GtkScrollbar::has-backward-stepper        = 1 
        GtkScrollbar::has-forward-stepper        = 1
    Although this solved my lack of arrows with Firefox, I still don't have any up/down arrows in programs like gnome shell and within the file manager.  Is there any suggestion on where I can make a modification to add these?  Gnome Tweak Tool didn't really help.
    Last edited by kevdog (2013-02-03 14:59:40)

    I had been modifying the global /usr setting.
    This is the best solution I have found - in the users home directory!
    Pick up your changes without logging out:
    Close terminal window
    Hit ALT-F2
    type restart
    hit enter
    chanslor
    Last edited by chanslor (2013-10-23 03:15:45)

  • [SOLVED] XFCE customize menu help: applications and directory menu

    I've been trying to make some progress with customizing XFCE menus. There are two menus I'm trying to create, listed below.
    Yes, i have read http://wiki.xfce.org/howto/customize-menu
    No, I'm not saying I understood all of it.
    1. I want to have a custom Applications menu that lists all installed applications, without categorization. Preferably alphabetical. I'm guessing it has a lot to do with adding a lot of <include> directives.
    Here's what I've tinkered with so far, which produces categories of apps.
    <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
    <Menu>
    <Name>Xfce</Name>
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>
    <Include>
    <Filename>xfce4-run.desktop</Filename>
    </Include>
    <Layout>
    <Merge type="all"/>
    <Separator/>
    <Menuname>Settings</Menuname>
    <Filename>xfce4-run.desktop</Filename>
    </Layout>
    <Menu>
    <Name>Settings</Name>
    <Directory>xfce-settings.directory</Directory>
    <Include>
    <Category>Settings</Category>
    </Include>
    <Layout>
    <Filename>xfce-settings-manager.desktop</Filename>
    <Separator/>
    <Merge type="all"/>
    </Layout>
    <Menu>
    <Name>Screensavers</Name>
    <Directory>xfce-screensavers.directory</Directory>
    <Include>
    <Category>Screensaver</Category>
    </Include>
    </Menu>
    </Menu>
    <Menu>
    <Name>Accessories</Name>
    <Directory>xfce-accessories.directory</Directory>
    <Include>
    <Or>
    <Category>Accessibility</Category>
    <Category>Core</Category>
    <Category>Legacy</Category>
    <Category>Utility</Category>
    </Or>
    </Include>
    <Exclude>
    <Or>
    <Filename>exo-file-manager.desktop</Filename>
    <Filename>exo-terminal-emulator.desktop</Filename>
    <Filename>xfce4-about.desktop</Filename>
    <Filename>xfce4-run.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Development</Name>
    <Directory>xfce-development.directory</Directory>
    <Include>
    <Category>Development</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Education</Name>
    <Directory>xfce-education.directory</Directory>
    <Include>
    <Category>Education</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Games</Name>
    <Directory>xfce-games.directory</Directory>
    <Include>
    <Category>Game</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Graphics</Name>
    <Directory>xfce-graphics.directory</Directory>
    <Include>
    <Category>Graphics</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Multimedia</Name>
    <Directory>xfce-multimedia.directory</Directory>
    <Include>
    <Category>Audio</Category>
    <Category>Video</Category>
    <Category>AudioVideo</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Network</Name>
    <Directory>xfce-network.directory</Directory>
    <Include>
    <Category>Network</Category>
    </Include>
    <Exclude>
    <Or>
    <Filename>exo-mail-reader.desktop</Filename>
    <Filename>exo-web-browser.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Office</Name>
    <Directory>xfce-office.directory</Directory>
    <Include>
    <Category>Office</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>System</Name>
    <Directory>xfce-system.directory</Directory>
    <Include>
    <Or>
    <Category>Emulator</Category>
    <Category>System</Category>
    </Or>
    </Include>
    <Exclude>
    <Or>
    <Filename>xfce4-session-logout.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Other</Name>
    <Directory>xfce-other.directory</Directory>
    <OnlyUnallocated/>
    <Include>
    <All/>
    </Include>
    </Menu>
    </Menu>
    2. I want to make a different Directory menu, possibly by implicating a custom Applications menu. If I could locate the .menu file for the Directory menu panel item, I would like to make minor adjustments to the menu, and invoke it through the Applications menu panel item.
    I should state that what I'm trying to accomplish is
    a) to remove the submenu-like options with the Directory menu (open Folder, open in Terminal) to have one-click to open the folder directory
    b) to add a label next to the panel icon (aesthetics), which would be accomplished through using the Applications menu panel item.
    Edit: clarity
    Last edited by heyitstallchris (2014-07-31 02:02:36)

    Firstly, I'll tackle menu 1.
    No need to create an include line for every .desktop file. Do the following:
    $ mkdir ~/.config/menus
    $ cd ~/.config/menus
    $ touch custom-apps.menu
    Edit the file we have just created and populate it with the following:
    <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
    <Menu>
    <Name>Applications</Name>
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>
    <Include>
    <Category>X-Xfce-Toplevel</Category>
    <Category>Settings</Category>
    <Category>Accessibility</Category>
    <Category>Core</Category>
    <Category>Legacy</Category>
    <Category>Utility</Category>
    <Category>Development</Category>
    <Category>Education</Category>
    <Category>Game</Category>
    <Category>Graphics</Category>
    <Category>Audio</Category>
    <Category>Video</Category>
    <Category>AudioVideo</Category>
    <Category>Network</Category>
    <Category>Office</Category>
    <Category>System</Category>
    </Include>
    <Layout>
    <Merge type="all"/>
    </Layout>
    </Menu>
    Now just create an application menu panel item and point it to the custom menu file we just created.
    This will display every application installed on your system, and any custom .desktop entries you may create (as long as they are set in one of the categories in the menu file). Add or remove categories as you need.
    If you want to have the "Run Program" and other "Action" items that are in the default Xfce menu, add a category line for "X-Xfce-Toplevel"
    Alternatively, you can forego all the <Category></Category> lines and simply use <All/>
    [EDIT] and since this is using garcon (Xfce's menu library), the apps will be in alphabetical order [/EDIT]
    Cheers.
    Last edited by Padfoot (2014-07-17 09:42:16)

  • TS1559 Wi-Fi settings grayed out or dim/I followed all instructions to solve it, did not work. this w-side suggest that I take my phone 2 Apple store. I did, they told me I need to replace my phone cause there was a hard ware problem/others w/same issue.

    I believe Apple is making money by forsing their customer to replace the phone when so many people are stating to encounter this same problem.
    If you are not covered by the warranty, they tell you that you have to replace the phone.... they put up a show showing you that they are trying to solve the problem by reseting your phone, then they tell you that you have to replace your phone due to a hard ware issue, when I asked them what part of the hard ware, they game the round around, then I insist, what part of the hard ware, they told me "some thing on the mader board" !
    The sad part is that there were a few people with the same problem, some of them had had their phone replaced a few time as they still were under the period of warranty... when I mentioned to the Appple Tech. that was helping me, why those people having the same problem, and their phone being replaced a few time, would it that be a red flag, that the problem is the phone, but he told me, not.  those people are having that problem, because they doing some thing wrong when they down load their back up via Icloud!.. he even mentioned that icloud make wi-fi grayed!... so, whay Apple have icloud for us to use it, when it creates issues on the phone...
    SOLUTION = Replace your phone $$$,
    To replace our phone due to that, to me simple issue, which is only an option for some of us to use.

    What exactly is the technical support question in that jumbled statement that your fellow users in these user to user technical support forums can assist you with?
    Keep in mind, these forums are not for ranting.

  • [Solved] a.out not recognizing the working directory

    It's a little bit embarrassing because this issue doesn't seem terribly complicated, but I'm having trouble with executing the a.out file (Hello World) that gcc produces. I have to explicitly state the directory that a.out is in to run it, even though it's in the working directory. Other programs, such as Nano, recognize the working directory just fine and it is able to open files inside the working directory without having me explicitly state the full directory name.
    Any help would be greatly appreciated.
    Last edited by bananaman (2011-03-23 03:16:10)

    The easiest and most secure way would be using the relative path to the executable:
    ./a.out
    If you use a single directory for writing/testing your programs, you could add it to your user PATH. Not a major security risk, but if you do so, be careful what executables are in the dir.
    ~/.bashrc (or ~/.bash_profile):
    [[ -d ~/cpp ]] && export PATH="$PATH:~/cpp"
    Adding the current working directory to PATH is a security risk, so I wouldn't recommend it.
    Last edited by sisco311 (2011-03-23 03:12:29)

  • [Solved] Proper/Preferred Way to Install a Directory into $pkgdir?

    I'm wondering if there are any guidelines on installing directories from an unpacked RPM into my $pkgdir. From what I've seen, it's typically frowned upon to use cp/mv, but install doesn't seem to have an option to recursively copy a directory. Is my current PKGBUILD okay, or should I be using a different command in place of "cp -r"? Thanks!
    My current PKGBUILD looks like this:
    # Contributor: Trevor Turner <turn3r [dot] tr3v0r [at] gmail [dot] com>
    _i686rpm=hpasm-7.7.0-115.sles9.i586.rpm
    _x86_64rpm=hpasm-7.7.0-115.sles9.x86_64.rpm
    pkgname=hpasm
    pkgver=7.7.0_115
    pkgrel=1
    pkgdesc="HP Proliant Server Management Agents and Utilities"
    arch=('i686' 'x86_64')
    url="ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/"
    license=('custom')
    makedepends=('rpmextract')
    source=('hpasmd' 'hpasmd.service')
    md5sums=('4efbcaf99d2ad688d5887dd28d48854f' '3249472c2ca273d8c348b8daf0ffd996')
    if [ "${CARCH}" = "x86_64" ]; then
    source+=(ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/${_x86_64rpm})
    md5sums+=('812416e7ee25690d55389b1df1b549bb')
    noextract=("${_x86_64rpm}")
    elif [ "${CARCH}" = "i686" ]; then
    source+=(ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/${_i686rpm})
    md5sums+=('420e886d6a66eb6cb3fd0671635519ec')
    noextract=("${_i686rpm}")
    fi
    package() {
    cd "$srcdir"
    msg2 "Extracting RPM..."
    rpmextract.sh *.rpm
    msg2 "Installing Files..."
    install -dm 755 "${pkgdir}/usr/lib/systemd/system"
    install -dm 755 "${pkgdir}/usr/sbin"
    install -dm 755 "${pkgdir}/etc/rc.d"
    install -Dm 755 "${srcdir}/hpasmd" "${pkgdir}/etc/rc.d/hpasmd"
    install -Dm 755 "${srcdir}/hpasmd.service" "${pkgdir}/usr/lib/systemd/system/hpasmd.service"
    install -Dm 755 "${srcdir}/sbin/bootcfg" "${pkgdir}/usr/sbin/bootcfg"
    install -Dm 755 "${srcdir}/sbin/hpasmcli" "${pkgdir}/usr/sbin/hpasmcli"
    install -Dm 755 "${srcdir}/sbin/hplog" "${pkgdir}/usr/sbin/hplog"
    install -Dm 755 "${srcdir}/sbin/hpuid" "${pkgdir}/usr/sbin/hpuid"
    cp -r "${srcdir}/opt" "${pkgdir}/"
    ln -s "/opt/compaq/hpasmd/bin/hpasmd" "${pkgdir}/usr/sbin/hpasmd"
    ln -s "/opt/compaq/hpasm/addon/libhpasmintrfc.so.1.0" "${pkgdir}/usr/lib/libhpasmintrfc.so.1.0"
    ln -s "libhpasmintrfc.so.1.0" "${pkgdir}/usr/lib/libhpasmintrfc.so.1"
    ln -s "/opt/compaq/hpasm/addon/libhpev.so.1.0" "${pkgdir}/usr/lib/libhpev.so.1.0"
    ln -s "libhpev.so.1.0" "${pkgdir}/usr/lib/libhpev.so.1"
    Last edited by DarkSniper (2012-07-11 00:20:01)

    cp is tolerated, but make sure that you manually set permissions if necessary.
    Otherwise, create your own functions and paste them in sparingly, e.g.
    function install_dir()
    src_dir_="${1%/}"
    shift
    dst_dir_="${1%/}"
    shift
    src_len_=${#src_dir_}
    find "$src_dir_" -type f -print | while read path_
    do
    rel_path_="${path_:${src_len_}}"
    install "$@" "$path_" "$dst_dir$rel_path_"
    done
    install_dir "$srcdir/$pkgname-$pkgver/foo/lib" "$pkgdir/lib" -Dm 644

  • [SOLVED] gem installs packages only to home directory

    Hello!
    I need help. I have installed ruby and I'm trying to install it packages. But I have a problem.
    All gems I try to install have placed in HOME/.gem directory. Myself home, if I install from my account, or root home, if I use sudo.
    gem help install
    This command shows in "Defaults" section that install dir is "/usr/lib/ruby/gems/1.9.1". But during installation it ignores this. And even option "--install-dir" have no effect. Packages was installed into HOME directory anyway.
    Thank you.
    Last edited by zexar (2012-05-23 13:44:48)

    I tried to reinstall whole ruby package and it shows after install
    The default location of gem installs is $HOME/.gem/ruby
    Add the following line to your PATH if you plan to install using gem
    $(ruby -rubygems -e "puts Gem.user_dir")/bin
    If you want to install to the system wide location, you must either:
    edit /etc/gemrc or run gem with the --no-user-install flag.
    I corrected gemrc and now all working.

  • [SOLVED] Open new Screen windows in current directory?

    GNOME Terminal has been my preferred terminal application for quite some time; lately, however, I have been using xterm and screen.
    In gnome-terminal (and probably in other tabbed terminal apps), opening a new tab (by default) presents the user with a shell (BASH, in my case) opened to the old tab's PWD. If possible, I'd like to have Screen re-create this functionality....
    I've found this page on the subject, but my experimentation with Screen windows (which has shown me that new windows are not started as subshells of the window from which they are created) suggests that the described method will not work.
    Does anyone know of a way to make Screen emulate this bit of gnome-terminal behavior?
    Thanks!
    Edit:
    I just found this information. It seems that issuing the screen command itself (from within Screen) will open a new window in the current directory. As I almost always use the C-a c keybinding to open new windows, I hadn't realized that this works.
    I'm going to attempt to create a keybinding to do what I want. I'll post an update with the results.
    Last edited by ssjlegendx (2008-08-03 01:38:29)

    After looking further into the issue, it seems that the aforementioned keybinding might not be possible. (Explicitly binding C-a c to screen does not alter the normal functioning of that key combination.) Thinking about the situation, it makes sense that Screen cannot know the PWD without getting information from inside the shell (i.e., without being invoked from within the shell).
    To overcome this issue, I added the following to my ~/.bashrc:
    if [ $TERM == "screen" ]; then
    alias s='screen'
    fi
    Though this leaves the behavior of C-a c unaltered, using the alias s seems to be a simple way to achieve the functionality I wanted. (It might even prove useful to have the "option" of creating a window in the original directory via C-a c.)
    Edit:
    I have since modified the above as follows:
    if [[ $TERM =~ screen(.linux)? ]]; then
    alias s='screen'
    fi
    This causes the alias to be set even when running screen from a regular tty (where $TERM is screen.linux).
    Last edited by ssjlegendx (2009-04-22 17:41:28)

  • HT201210 I updated my ipad with OS6 and accidently did not activate Seri when it popped up on instalation and now I do not know o

    While updating to the new OS6 i accidentally did not agree to using Seri and now on my preferences it does not appear so I can not activate it, any suggestions to restore it.

    That makes sense as I was updating the OS on both my IPad 2&amp;3 and it is only on the preferences for ipad3....I thought I punched a wrong reply key on the ipad2 . Thanks

Maybe you are looking for

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

  • How to open local system folder from the browser

    Hi All, I'm working on some stuff, wherein the user downloads the files from internet to his local machine. I'm able to catch the path of the folder where user wants to download the file from SaveAs prompt. Now my requirement is , i want to provide a

  • Windows 7 Network Drivers No Longer Works

    Bought a MBP a week ago, just installed Windows 7 on its own partition, installed bootcamp, everything worked fine for the first day. The next day, it did not recognize my network drivers (wireless, ethernet). Control Panel states that they are not i

  • GL account substitution

    Can GL account be substituted at line item level, using T-code GGB1. I mean the boolean statement doesnt gives the option to select GL account for substitution at 'Line item level', and even if we have added a user exit it is not working for us. Any

  • Http_synch-- file using synch/asynch bridge

    I am trying to do the following scenario with bpm ( synch/asynch bridge) Scenario: 1. Http client calls BPM synchronously (open the S/A bridge). 2. BPM sends the received  message to file adapter. 3. Another process reads the files and produces an ou