[Solved] How to disable vim filetype indentation.

Hello. I want to start using vim, but there is only that problem with that. In gedit I always use tabs 4 spaces wide for indentation, and I want to do something similar in vim. So in my .vimrc I used tabstop=4 and set autoindent. If I write a plain text file, it works correctly, for example, if I press tab in a new line, and the press enter, the following lines preserve the tab as indentation.
The problem starts when writing code in common lisp or python. In lisp tab is replaced by two spaces and does some weird things, and in python tab is replaced by 4 spaces. I tried including "filetype indent off" in my vimrc, or writing ":filetype indent off" directly in console, but that doesn't have any effect. The only thing that somewhat works is to disable autodinent, but then I have to manually indent every line. What can I do?
Last edited by Serge2702 (2014-11-06 20:57:54)

I keep a skeleton vimrc file to use when I have a question similar to Serge2702's.  My barebones.vim:
set nocompatible
filetype plugin on
set t_co=256 " Optional, you may comment this out.
syntax on
Start vim, using the alternate vimrc file with the command, say, for a lisp file: vim -u barebones.vim file_to_edit.lisp.
Seems most filetypes default to a tab with a width of eight spaces here.  To see the tabs, you can use these two commands from within vim:
:set list
:set listchars=tab:_T
Then you can try all the different setting combinations to figure out a comfortable tab width.
And there are quite a few settings that affect the width of tabs and indentation besides tabstop. There's autoindent to repeat the previous line's indentation, but this is modified if you use cindent or smartindent to set the indent according to syntax. Then there are the expandtab and smarttab settings to use spaces for tabs, and shiftwidth and softtabstop also set indentation width. I don't see why anyone has trouble figuring it out.;)

Similar Messages

  • [SOLVED] How to convince vim my terminal supports color?

    Hi. I recently got a shell account from Kaitocracy on his linode machine. I noticed that my bash prompt has color, as expected, but when I copied over my vim configuration (which includes a color theme), it didn't work! After some toying around, I noticed that vim recognizes the terminal escape codes using `:hi <type> start= stop=`, but not the existing `cterm` commands in my color theme. To make things more confusing, I know my terminal (urxvt) is capable of using the cterm flags.
    Also, Ctrl+L does not clear/redraw the screen as expected.
    What can I do to fix these issues? Here are the configs:
    ~/.vimrc:
    " No vi compatibility; strictly vim here.
    set nocompatible
    " Don't source /etc/vimrc
    set noexrc
    " My background is always black
    set background=dark
    " The mouse is helpful every now and then...
    set mouse=a
    " I'm a Linux user
    set fileformats=unix,dos,mac
    " Search while I type
    set incsearch
    " The blinking pisses me off
    set novisualbell
    " Line numbers are key to debugging
    set number
    set numberwidth=5
    " My tabs are 4 characters long
    set tabstop=4
    set softtabstop=4
    " Indention is also 4 characters
    set shiftwidth=4
    " Normally, I don't want tabs converted to spaces.
    set noexpandtab
    " Syntax highlighting is a staple :D
    syntax on
    " I want liberal use of hidden buffers, just in case.
    set hidden
    set laststatus=2
    " filename, filetype, readonly flag, modified flag line #, column #, %age of file length, hex value of byte under cursor.
    " Ex: .vimrc [vim][+] 48,22 55% hex:20
    set statusline=%f\ %y%r%m\ %l,%c\ %P\ hex:%B
    set noai
    " I can see where tabs and line endings are
    set listchars=tab:▸\ ,eol:¬
    " This turns on the config above; I can turn it off with :set nolist
    set list
    " I want wordwrap on, coupled with sane line-breaking. This will not work when :set list is active.
    set wrap
    set lbr
    " My color scheme is pwn
    colorscheme sporkbox
    filetype indent on
    if has("autocmd")
    " enable filetype detection
    filetype on
    " I want to convert tabs to spaces to adhere to PEP 8.
    autocmd FileType python setlocal ts=4 sts=4 sw=4 expandtab
    endif
    " \l toggles invisibles
    nmap <leader>l :set list!<CR>
    " I like to get rid of trailing white space.
    nnoremap <silent> <F5> :call <SID>StripTrailingWhitespaces()<CR>
    " Fast window movement is important
    map <C-h> <C-w>h
    map <C-j> <C-w>j
    map <C-k> <C-w>k
    map <C-l> <C-w>l
    " Courtesy of vimcasts.org
    function! <SID>StripTrailingWhitespaces()
    " Save last search and cursor position
    let _s=@/
    let l = line(".")
    let c = col(".")
    " Do the business:
    %s/\s\+$//e
    " Restore previous search history and cursor position
    let @/=_s
    call cursor(l, c)
    endfunction
    ~/.vim/colors/sporkbox.vim:
    " Color scheme "sporkbox"
    " by Daniel Campbell <[email protected]>
    " Tab characters and EOLs should be dark gray so they don't stand out too much.
    highlight SpecialKey ctermfg=darkgray
    highlight NonText ctermfg=darkgray
    " If I'm in a mode, I want to see it.
    highlight ModeMsg ctermfg=green
    " The current file should be obvious; the others can be faded.
    highlight StatusLine ctermfg=green ctermbg=black
    highlight StatusLineFC ctermfg=darkgray ctermbg=white
    " Line numbers should be just-visible, not bright.
    highlight LineNr ctermfg=darkgray
    " Titles in Markdown
    highlight Title cterm=bold ctermfg=white
    " My splits should not be bright
    highlight VertSplit ctermfg=black ctermbg=darkblue
    highlight Comment ctermfg=darkgreen
    highlight Constant ctermfg=cyan
    highlight Identifier ctermfg=yellow
    highlight Statement ctermfg=magenta
    highlight PreProc ctermfg=lightblue
    highlight Type ctermfg=blue
    highlight Special ctermfg=lightblue
    Remote .bashrc:
    ### ~/.bashrc: Sourced by all interactive bash shells on startup
    # Set a fancier prompt
    PS1='\[\e[32;01m\]\u\[\e[m\] \[\e[36m\]\w\[\e[m\]: '
    # Turn on colors for ls and grep
    alias less='less --RAW-CONTROL-CHARS'
    alias ls='ls --color=auto'
    alias grep='grep --color=auto'
    # Set colors for ls and friends
    if [ -f ~/.dir_colors ]; then
    eval `dircolors -b ~/.dir_colors`
    elif [ -f /etc/dir_colors ]; then
    eval `dircolors -b /etc/dir_colors`
    else eval `dircolors -b`; fi
    # Compilation optimization flags
    CHOST="i686-pc-linux-gnu"
    MAKEFLAGS="-j2"
    LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"
    CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    FFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    CPPFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    export PGHOST="private1.kiwilight.com"
    export PS1 CHOST MAKEFLAGS LDFLAGS CFLAGS FFLAGS CXXFLAGS
    To make matters more confusing, my vim theme works when I connect to the linode in a GNU screen session, but not when it's a straight-up terminal.
    Last edited by xelados (2010-04-25 00:34:44)

    Mr.Elendig wrote:Make sure you are using rxvt-unicode-256color and that your TERM is rxvt-256color outside of screen, and screen-256color inside of screen.
    That's the peculiarity of the problem; when I run vim in my local environment, I always get color using the `:hi <hilighttype> ctermfg=* ctermbg=*` commands. This applies inside of X through rxvt-unicode (non-256color), GNU screen, and on the plain command line in vc1. This issue seems to be related to the remote environment and/or variables not being sent through ssh.
    @moljac: When I echo'd TERM inside a screen session, it returned "screen", so I don't know whether it's legit or not.
    Last edited by xelados (2010-04-24 11:47:52)

  • [SOLVED] How to disable built-in speaker when I use the jack port ?

    Hi,
    I own an Asus X52F-SX053V laptop which has built-in Altec Lancing speaker.
    Here is my problem: When I plug my external speaker, or my headphones in the Jack port; I hear the sound through the device plugged in, AND through the built-in speaker.
    I'd like to disable the built-in speaker when I'm using an external speaker/headphones.
    I currently don't know how to do that, I guess it is possible
    I can copy the output of all the commands needed.
    Thanks
    Last edited by Lowra (2010-12-28 23:17:28)

    [SOLVED] When I plug something in the jack port, built-in speakers are automatically disabled.
    Here is the trick:
    sudo nano /etc/modprobe.d/alsa-base.conf
    Add the following line:
    options snd-hda-intel model=hp-laptop
    Restart Alsa, or reboot your computer
    Have Fun !
    Note: I guess it should work with other Asus computer (A52F, X52F series) and even maybe with other computers which use the following chipset: Intel IbexPeak HDMI

  • [SOLVED]How to disable USB autosuspend?

    Hello!
    A long time ago I installed Arch on my notebook and configured it's power saving using laptop-mode-tools. I also installed pm-utils for suspend/hibernate. USB autosuspend worked correctly - on battery every device (including mouse) was suspending and no autosuspend at all on AC. Some time ago, I don't remember when exactly, it stopped working. Now, no matter what, my mouse turns off after 2 seconds.
    Here is what I did:
    1. Checked my laptop-mode-tools configuration (removed comments for brevity):
    cat /etc/laptop-mode/conf.d/usb-autosuspend.conf
    DEBUG=0
    CONTROL_USB_AUTOSUSPEND="auto"
    AUTOSUSPEND_USE_WHITELIST=0
    AUTOSUSPEND_USBID_BLACKLIST=""
    AUTOSUSPEND_USBTYPE_BLACKLIST=""
    AUTOSUSPEND_USBID_WHITELIST=""
    AUTOSUSPEND_USBTYPE_WHITELIST=""
    BATT_SUSPEND_USB=1
    LM_AC_SUSPEND_USB=0
    NOLM_AC_SUSPEND_USB=0
    AUTOSUSPEND_TIMEOUT=2
    So far looks good.
    2. According to wiki, pm-utils might conflict with laptop-mode-tools. So I created a dummy file in /etc/pm/power.d for each of the scripts from /usr/lib/pm-utils/power.d . For the moment I don't care if I disabled too much. I just hope laptop-mode-tools covers all powersaving features.
    ls -l /etc/pm/power.d
    -rw-r--r-- 1 root root 0 08-08 19:58 hal-cd-polling
    -rw-r--r-- 1 root root 0 08-08 19:58 intel-audio-powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 journal-commit
    -rw-r--r-- 1 root root 0 08-08 19:36 laptop-mode
    -rw-r--r-- 1 root root 0 08-08 19:58 readahead
    -rw-r--r-- 1 root root 0 08-08 19:58 sata_alpm
    -rw-r--r-- 1 root root 0 08-08 19:58 sched_powersave
    -rw-r--r-- 1 root root 0 08-08 19:58 wireless
    -rw-r--r-- 1 root root 0 08-08 19:59 xfs_buffer
    ls -l /usr/lib/pm-utils/power.d
    -rwxr-xr-x 1 root root 1316 2013-05-30 hal-cd-polling*
    -rwxr-xr-x 1 root root 870 2013-05-30 intel-audio-powersave*
    -rwxr-xr-x 1 root root 1290 2013-05-30 journal-commit*
    -rwxr-xr-x 1 root root 2722 2013-05-30 laptop-mode*
    -rwxr-xr-x 1 root root 201 2013-05-30 pcie_aspm*
    -rwxr-xr-x 1 root root 1222 2013-05-30 readahead*
    -rwxr-xr-x 1 root root 1131 2013-05-30 sata_alpm*
    -rwxr-xr-x 1 root root 652 2013-05-30 sched-powersave*
    -rwxr-xr-x 1 root root 2495 2013-05-30 wireless*
    -rwxr-xr-x 1 root root 1642 2013-05-30 xfs_buffer*
    Still no luck.
    3. As I found out, there is some kernel option CONFIG_PM_RUNTIME, which allows the kernel to autosuspend usb devices: source. It's on:
    cat /proc/config.gz| gunzip | grep CONFIG_USB_SU
    CONFIG_USB_SUPPORT=y
    And as I read here I can disable usb autosuspend using boot parameter. So i edited my /etc/default.grub, and now my grub.cfg looks like this:
    sudo cat /boot/grub/grub.cfg | grep usb
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    linux /boot/vmlinuz-linux root=UUID=d18cd4a4-2ebf-4874-80ff-8520016b0ed4 rw quiet usbcore.autosuspend=-1
    After rebooting I checked:
    cat /sys/module/usbcore/parameters/autosuspend
    -1
    Cool! It should work! But... it doesn't. The mouse still goes to sleep after 2 seconds, and:
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend_delay_ms; do cat $i;done
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    2000
    kolzi@kolzi-laptop ~ % for i in /sys/bus/usb/devices/*/power/autosuspend; do cat $i;done
    2
    2
    2
    2
    2
    2
    2
    2
    2
    Where doesn't this 2 (or 2000) come from? How disable this suspending and let laptop-mode-tools control it? What's going on?
    Last edited by PL_kolek (2014-08-09 13:14:23)

    For now I run
    sudo systemctl disable laptop-mode.service
    and changed in /etc/laptop-mode/laptop-mode.conf
    ENABLE_LAPTOP_MODE_TOOLS=0
    After rebooting I still have the same issues. Also, even after disabling laptop-mode-tools, the brightness changes after unplugging the laptop, so either the laptop mode wasn't disabled at all, or there is something else 'helping' me with powersaving.
    @brebs
    Thank you, but it looks for me more like a workaround than a solution. It could work, but it doesn't tell me what disables my mouse and where is the root of the problem.
    Last edited by PL_kolek (2014-08-09 12:39:39)

  • [SOLVED] How to disable "No mail." message upon login?

    This one's really stumping me. I disable the mail message a few months ago by creating a .hushlogin file in my home directory. That did the trick. Now, I am seeing the message again, and I don't know why. .hushlogin still exists in my home directory. Here's my /etc/login.defs:
    # /etc/login.defs - Configuration control definitions for the login package.
    # Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
    # If unspecified, some arbitrary (and possibly incorrect) value will
    # be assumed. All other items are optional - if not specified then
    # the described action or option will be inhibited.
    # Comment lines (lines beginning with "#") and blank lines are ignored.
    # Modified for Linux. --marekm
    # Delay in seconds before being allowed another attempt after a login failure
    FAIL_DELAY 3
    # Enable display of unknown usernames when login failures are recorded.
    LOG_UNKFAIL_ENAB no
    # Enable logging of successful logins
    LOG_OK_LOGINS no
    # Enable "syslog" logging of su activity - in addition to sulog file logging.
    # SYSLOG_SG_ENAB does the same for newgrp and sg.
    SYSLOG_SU_ENAB yes
    SYSLOG_SG_ENAB yes
    # If defined, either full pathname of a file containing device names or
    # a ":" delimited list of device names. Root logins will be allowed only
    # upon these devices.
    CONSOLE /etc/securetty
    #CONSOLE console:tty01:tty02:tty03:tty04
    # If defined, all su activity is logged to this file.
    #SULOG_FILE /var/log/sulog
    # If defined, file which maps tty line to TERM environment parameter.
    # Each line of the file is in a format something like "vt100 tty01".
    #TTYTYPE_FILE /etc/ttytype
    # If defined, the command name to display when running "su -". For
    # example, if this is defined as "su" then a "ps" will display the
    # command is "-su". If not defined, then "ps" would display the
    # name of the shell actually being run, e.g. something like "-sh".
    SU_NAME su
    # *REQUIRED*
    # Directory where mailboxes reside, _or_ name of file, relative to the
    # home directory. If you _do_ define both, MAIL_DIR takes precedence.
    # QMAIL_DIR is for Qmail
    #QMAIL_DIR Maildir
    MAIL_DIR /var/spool/mail
    # If defined, file which inhibits all the usual chatter during the login
    # sequence. If a full pathname, then hushed mode will be enabled if the
    # user's name or shell are found in the file. If not a full pathname, then
    # hushed mode will be enabled if the file exists in the user's home directory.
    HUSHLOGIN_FILE .hushlogin
    #HUSHLOGIN_FILE /etc/hushlogins
    # *REQUIRED* The default PATH settings, for superuser and normal users.
    # (they are minimal, add the rest in the shell startup files)
    ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
    ENV_PATH PATH=/bin:/usr/bin
    # Terminal permissions
    # TTYGROUP Login tty will be assigned this group ownership.
    # TTYPERM Login tty will be set to this permission.
    # If you have a "write" program which is "setgid" to a special group
    # which owns the terminals, define TTYGROUP to the group number and
    # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
    # TTYPERM to either 622 or 600.
    TTYGROUP tty
    TTYPERM 0600
    # Login configuration initializations:
    # ERASECHAR Terminal ERASE character ('\010' = backspace).
    # KILLCHAR Terminal KILL character ('\025' = CTRL/U).
    # UMASK Default "umask" value.
    # The ERASECHAR and KILLCHAR are used only on System V machines.
    # The ULIMIT is used only if the system supports it.
    # (now it works with setrlimit too; ulimit is in 512-byte units)
    # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
    ERASECHAR 0177
    KILLCHAR 025
    UMASK 077
    # Password aging controls:
    # PASS_MAX_DAYS Maximum number of days a password may be used.
    # PASS_MIN_DAYS Minimum number of days allowed between password changes.
    # PASS_WARN_AGE Number of days warning given before a password expires.
    PASS_MAX_DAYS 99999
    PASS_MIN_DAYS 0
    PASS_WARN_AGE 7
    # Min/max values for automatic uid selection in useradd
    UID_MIN 1000
    UID_MAX 60000
    # System accounts
    SYS_UID_MIN 500
    SYS_UID_MAX 999
    # Min/max values for automatic gid selection in groupadd
    GID_MIN 1000
    GID_MAX 60000
    # System accounts
    SYS_GID_MIN 500
    SYS_GID_MAX 999
    # Max number of login retries if password is bad
    LOGIN_RETRIES 5
    # Max time in seconds for login
    LOGIN_TIMEOUT 60
    # Which fields may be changed by regular users using chfn - use
    # any combination of letters "frwh" (full name, room number, work
    # phone, home phone). If not defined, no changes are allowed.
    # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
    CHFN_RESTRICT rwh
    # List of groups to add to the user's supplementary group set
    # when logging in on the console (as determined by the CONSOLE
    # setting). Default is none.
    # Use with caution - it is possible for users to gain permanent
    # access to these groups, even when not logged in on the console.
    # How to do it is left as an exercise for the reader...
    #CONSOLE_GROUPS floppy:audio:cdrom
    # Should login be allowed if we can't cd to the home directory?
    # Default in no.
    DEFAULT_HOME yes
    # If defined, this command is run when removing a user.
    # It should remove any at/cron/print jobs etc. owned by
    # the user to be removed (passed as the first argument).
    #USERDEL_CMD /usr/sbin/userdel_local
    # Enable setting of the umask group bits to be the same as owner bits
    # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
    # the same as gid, and username is the same as the primary group name.
    # This also enables userdel to remove user groups if no members exist.
    USERGROUPS_ENAB yes
    Please help.
    Last edited by nbtrap (2012-07-14 21:59:46)

    orbisvicis wrote:see "pam_mail.so" in /etc/pam.d/* and "man pam_mail". You most likely need the nopen argument.
    Thank you. I fixed it by changing a line in /etc/pam.d/system-login. Specifically, I changed
    session optional pam_mail.so dir=/var/spool/mail standard
    to
    session optional pam_mail.so dir=/var/spool/mail nopen

  • [Solved] How to set vim -R as a viewer for mc?

    Hello!
    I am trying to set vim in read only mode as a viewer for Midnight Commander.
    I tried:
    alias mc='VIEWER="vim -R" mc'
    or
    alias vimr='vim -R'
    alias mc='VIEWER=vimr mc'
    and more but without success.
    So far the only successful approach was to:
    - create shell script, e.g. vimr.sh containing "vim -R"
    - create an alias using the script, i.e. alias mc='VIEWER=vimr.sh mc'
    It works, but creating additional file doesn't seem to be optimal solution.
    Is there a way to solve it using one-liner, or at least put all the config into .bashrc?
    Last edited by satori (2014-09-19 19:03:14)

    Thank you for your quick replies.
    @alphaniner:
    alias mc='VIEWER=vim\ -R mc'
    does not work as intended - it launches vim but I am still able to modify viewed file, like -R had no effect
    @WonderWoofy:
    If you mean exporting variable like
    export VIEWER='vim -R'
    it has the same effect as described above. Additionally, it sets the viewer for all applications using that variable, which I would like to avoid.
    Unfortunately this is not what I am looking for.

  • [SOLVED]how to disable all antialiasing

    I am using openbox, xfce4-panel, firefox. How can I disable all antialiasing of fonts on my computer? I know I can change in the .Xdefaults to make urxvt not antialiased, and i'm sure some other applicaiton specific settings but am looking for a system wide solution.
    Last edited by blodorn (2009-07-20 03:00:10)

    Thank you, I added this to ~/.fonts.conf and everything is great now.
    <match target="font">
    <edit name="antialias" mode="assign">
    <bool>false</bool>
    </edit>
    </match>

  • [Solved] How to disable switching workspaces in XFCE when scrolling?

    As the title says, I want to disable switching workspaces when scrolling with the mouse on the desktop. I disabled the workspace switcher setting "Change workspaces using the mousewheel" but that doesn't change anything. Any ideas?
    Last edited by Terminator (2012-05-15 14:41:53)

    Thanks

  • [SOLVED] How to disable these messages at boot?

    So I managed to install Arch, and set up the network. I have a Broadcom 4313 wireless chip, all I had to do is blacklist the bcma module, because it conflicted with the brcmsmac module, both are loaded by default (no need to add anything to MODULES=(), only the blacklist bcma entry to modprobe.conf)
    So now I have a wlan0 interface that works perfectly fine, only I get these status messages during boot, that are totally unnecessary, see screenshot. These just pop up from nowhere, and annoy the heck out of me, disrupting the login and whatnot.
    So can these be turned off somehow? I suspect they come from the brcmsmac module itself.
    http://dl.dropbox.com/u/20678367/arch-n … ssages.png
    Mod edit:
    The image is too large: https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Last edited by bernarcher (2011-10-18 19:16:57)

    junkie wrote:
    Gusar wrote:Add "dmesg -n 3" to /etc/rc.local
    That seems to solve my problem, thank you!
    Just out of curiosity, what numbers, or levels are available for the -n switch? The man doesn't state that.
    http://mailman.archlinux.org/pipermail/ … 21114.html
    https://bbs.archlinux.de/viewtopic.php?pid=267954 (it's from the German Arch forum, but the loglevel= stuff is in English)
    Full list: http://www.kernel.org/doc/Documentation … meters.txt
    Last edited by karol (2011-10-18 14:02:47)

  • [SOLVED] how to disable loading of certain modules?

    After the system has booted, i do "lsmod" and see all kinds of modules i don't need, i.e. xfs, jfs, all kinds or raid and scsi stuff. I'm sure they kan be removed since "rmmod" can remove them.
    I tried to add those to MOD_BLACKLIST in /etc/rc.conf but it didn't help. Where is the correct place to put modules whihch must not be loaded?
    This way boot time and memory usage both can be improved.. Or am i wrong here?

    mpie wrote:those are from your initrd, follow the wiki guide to recompiling your own, if you want to omit some modules
    Thanks a lot, exactly what i needed! 
    http://wiki.archlinux.org/index.php/Initrd

  • How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution??? thanks before best regard

    How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution???
    thanks before
    best regard
    -ariansyah-

    You can disable or remove that button, but that won't prevent users from making the changes on the about:config page directly.<br />
    You can lock the related network.proxy prefs if you do not want users to change the connection settings.
    See:
    *http://kb.mozillazine.org/Locking_preferences
    * http://kb.mozillazine.org/network.proxy.type
    * http://kb.mozillazine.org/network.proxy.%28protocol%29
    * http://kb.mozillazine.org/network.proxy.%28protocol%29_port

  • [SOLVED] How do I disable enp0s3?

    I am trying to remove unwanted services from boot, specifically enp0s3 which I don't use as I don't have a ethernet card.
    This is my start up time analysis:
    $ systemd-analyze blame
    24.503s [email protected]
    1.625s systemd-logind.service
    1.580s alsa-restore.service
    1.579s iptables.service
    684ms updatedb.service
    626ms man-db.service
    375ms systemd-journal-flush.service
    62ms systemd-journald.service
    53ms systemd-udevd.service
    From the journal I see this - Timed out waiting for device sys-subsystem-net-devices-enp0s3.device.
    Jan 19 10:30:51 arch network[273]: Starting network profile 'fisher'...
    Jan 19 10:30:51 arch systemd-logind[223]: Watching system buttons on /dev/input/event3 (Power Button)
    Jan 19 10:30:51 arch systemd-logind[223]: Watching system buttons on /dev/input/event6 (Video Bus)
    Jan 19 10:30:51 arch kernel: random: nonblocking pool is initialized
    Jan 19 10:30:51 arch kernel: b43-phy0: Loading firmware version 784.2 (2012-08-15 21:35:19)
    Jan 19 10:30:52 arch kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0b1: link is not ready
    Jan 19 10:30:52 arch systemd[1]: Started Update man-db cache.
    Jan 19 10:30:52 arch systemd[1]: Started Update locate database.
    Jan 19 10:30:53 arch kernel: wlp3s0b1: authenticate with 00:25:15:1d:7b:34
    Jan 19 10:30:53 arch kernel: wlp3s0b1: direct probe to 00:25:15:1d:7b:34 (try 1/3)
    Jan 19 10:30:53 arch kernel: wlp3s0b1: send auth to 00:25:15:1d:7b:34 (try 2/3)
    Jan 19 10:30:53 arch kernel: wlp3s0b1: authenticated
    Jan 19 10:30:53 arch kernel: wlp3s0b1: associate with 00:25:15:1d:7b:34 (try 1/3)
    Jan 19 10:30:53 arch kernel: wlp3s0b1: RX AssocResp from 00:25:15:1d:7b:34 (capab=0x411 status=0 aid=1)
    Jan 19 10:30:53 arch kernel: wlp3s0b1: associated
    Jan 19 10:30:53 arch kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0b1: link becomes ready
    Jan 19 10:30:53 arch dhcpcd[390]: version 6.6.7 starting
    Jan 19 10:30:53 arch dhcpcd[390]: DUID 00:01:00:01:1c:0d:93:4d:08:00:27:34:83:28
    Jan 19 10:30:53 arch dhcpcd[390]: wlp3s0b1: IAID 96:d0:29:ff
    Jan 19 10:30:53 arch dhcpcd[390]: wlp3s0b1: rebinding lease of 192.168.1.65
    Jan 19 10:30:58 arch dhcpcd[390]: wlp3s0b1: DHCP lease expired
    Jan 19 10:30:59 arch dhcpcd[390]: wlp3s0b1: soliciting a DHCP lease
    Jan 19 10:31:10 arch dhcpcd[390]: wlp3s0b1: offered 192.168.1.65 from 192.168.1.1
    Jan 19 10:31:16 arch dhcpcd[390]: wlp3s0b1: leased 192.168.1.65 for 86400 seconds
    Jan 19 10:31:16 arch dhcpcd[390]: wlp3s0b1: adding route to 192.168.1.0/24
    Jan 19 10:31:16 arch dhcpcd[390]: wlp3s0b1: adding default route via 192.168.1.1
    Jan 19 10:31:16 arch dhcpcd[390]: forked to background, child pid 468
    Jan 19 10:31:16 arch network[273]: Started network profile 'fisher'
    Jan 19 10:31:16 arch systemd[1]: Started A simple WPA encrypted wireless connection.
    Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start timed out.
    Jan 19 10:32:19 arch systemd[1]: Timed out waiting for device sys-subsystem-net-devices-enp0s3.device.
    Jan 19 10:32:19 arch systemd[1]: Dependency failed for dhcpcd on enp0s3.
    Jan 19 10:32:19 arch systemd[1]: Job [email protected]/start failed with result 'dependency'.
    Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start failed with result 'timeout'.
    Jan 19 10:32:19 arch systemd[1]: Starting Network.
    Jan 19 10:32:19 arch systemd[1]: Reached target Network.
    Jan 19 10:32:19 arch systemd[1]: Starting OpenSSH Daemon...
    Jan 19 10:32:19 arch systemd[1]: Started OpenSSH Daemon.
    Jan 19 10:32:19 arch systemd[1]: Starting Multi-User System.
    Jan 19 10:32:19 arch systemd[1]: Reached target Multi-User System.
    Jan 19 10:32:19 arch systemd[1]: Starting Graphical Interface.
    Jan 19 10:32:19 arch systemd[1]: Reached target Graphical Interface.
    Jan 19 10:32:19 arch systemd[1]: Startup finished in 1.025s (kernel) + 1min 30.574s (userspace) = 1min 31.599s.
    As I don't have ethernet can I turn it off?  I saw this https://bbs.archlinux.org/viewtopic.php?id=158885 which is almost the opposite of my issue so I tried
    systemctl disable dhcpcd
    (I'm unsure if that is wise or even relevant) but still the device is trying to start and I don't know why
    $ systemctl status dhcpcd
    ● dhcpcd.service - dhcpcd on all interfaces
    Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; vendor preset: disabled)
    Active: inactive (dead)
    [adam@arch rules.d]$
    $ systemctl status sys-subsystem-net-devices-enp0s3.device
    ● sys-subsystem-net-devices-enp0s3.device
    Loaded: loaded
    Active: inactive (dead)
    Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start timed out.
    Jan 19 10:32:19 arch systemd[1]: Timed out waiting for device sys-subsystem-net-devices-enp0s3.device.
    Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start failed with result 'timeout'.
    Last edited by halasz (2015-01-19 14:35:53)

    lsmod | grep tg shows nothing at all (why tg btw?  did you mean th for ethernet?). 
    $ sudo lsmod | grep th
    bluetooth 403639 2 btusb
    rfkill 18867 3 cfg80211,bluetooth
    x86_pkg_temp_thermal 12951 0
    thunderbolt 48817 0
    crc16 12343 2 ext4,bluetooth
    lspci-vv doesn't show kernel modules either for ethernet. 
    02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe (rev 21)
    Subsystem: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe
    Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 0
    Region 0: Memory at a0400000 (64-bit, prefetchable) [disabled] [size=64K]
    Region 2: Memory at a0410000 (64-bit, prefetchable) [disabled] [size=64K]
    Expansion ROM at 8fa00000 [disabled] [size=2K]
    Capabilities: [48] Power Management version 3
    Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
    Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
    Capabilities: [50] Vital Product Data
    Product Name: Broadcom NetXtreme Gigabit Ethernet Controller
    Read-only fields:
    [PN] Part number: BCM957766
    [EC] Engineering changes: 106679-15
    [SN] Serial number: 0123456789
    [MN] Manufacture ID: 31 34 65 34
    [RV] Reserved: checksum good, 27 byte(s) reserved
    End
    Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
    Address: 0000000000000000 Data: 0000
    Capabilities: [a0] MSI-X: Enable- Count=5 Masked-
    Vector table: BAR=2 offset=00000000
    PBA: BAR=2 offset=00000120
    Capabilities: [ac] Express (v2) Endpoint, MSI 00
    DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
    ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
    DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
    RlxdOrd+ ExtTag- PhantFunc- AuxPwr+ NoSnoop+
    MaxPayload 128 bytes, MaxReadReq 512 bytes
    DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
    LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <64us
    ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
    LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- CommClk+
    ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
    LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
    DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR+, OBFF Not Supported
    DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
    LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
    Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
    Compliance De-emphasis: -6dB
    LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
    EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
    Capabilities: [100 v1] Advanced Error Reporting
    UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
    UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
    UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
    CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
    CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
    AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
    Capabilities: [13c v1] Device Serial Number 00-00-00-10-18-00-00-00
    Capabilities: [150 v1] Power Budgeting <?>
    Capabilities: [160 v1] Virtual Channel
    Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
    Arb: Fixed- WRR32- WRR64- WRR128-
    Ctrl: ArbSelect=Fixed
    Status: InProgress-
    VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
    Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
    Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
    Status: NegoPending- InProgress-
    Capabilities: [1b0 v1] Latency Tolerance Reporting
    Max snoop latency: 0ns
    Max no snoop latency: 0ns
    02:00.1 SD Host controller: Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader (rev 21) (prog-if 01)
    It does for other things.  In fact ethernet is the only thing on lspci that *doesn't* have an associated Kernel Driver or Module.
    sudo lspci -k
    00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
    Subsystem: Apple Inc. Device 0102
    Kernel driver in use: ivb_uncore
    libkmod: kmod_config_parse: /etc/modprobe.d/xhci-reset-on-suspend.conf line 1: ignoring bad line starting with '#'
    00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    Subsystem: Apple Inc. Device 0102
    Kernel driver in use: i915
    Kernel modules: i915
    00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci
    00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: mei_me
    Kernel modules: mei_me
    00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci
    00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
    00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci
    00:1f.0 ISA bridge: Intel Corporation QS77 Express Chipset LPC Controller (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: lpc_ich
    Kernel modules: lpc_ich
    00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel driver in use: ahci
    Kernel modules: ahci
    00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
    Subsystem: Intel Corporation Device 7270
    Kernel modules: i2c_i801
    02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe (rev 21)
    Subsystem: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe
    02:00.1 SD Host controller: Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader (rev 21)
    Subsystem: Broadcom Corporation Device 96bc
    Kernel driver in use: sdhci-pci
    Kernel modules: sdhci_pci
    03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)
    Subsystem: Apple Inc. AirPort Extreme
    Kernel driver in use: bcma-pci-bridge
    Kernel modules: bcma
    04:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    05:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    05:03.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    05:04.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    05:05.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    05:06.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Kernel driver in use: pcieport
    Kernel modules: shpchp
    06:00.0 System peripheral: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
    Subsystem: Device 2222:1111
    Kernel driver in use: thunderbolt
    Kernel modules: thunderbolt
    I don't have a bios  (have a macbook) - I am booting EFI.  I could pass a kernel parameter but it is same issue - I need to know what module to disable.  Or how to disable the driver.
    Last edited by halasz (2015-01-19 13:35:42)

  • [Solved] Dropbox autostarts, I can't find how to disable it.

    So I installed dropbox a while ago, but am not using it anymore.
    A week ago, I started the dropbox daemon (typing 'dropbox' in the shell) to sync something - I only needed to start it this one time.
    Since then, dropbox starts with every boot. I can't find out how to disable it. I tried these two commands:
    systemctl status dropbox
    systemctl status dropboxd
    Both services don't exist. I don't know how to proceed from here, does anyone know what to do now?
    Last edited by kilmister (2014-11-10 08:53:48)

    thearcherblog wrote:
    Can you check if you can see any service running with dropbox name doing?
    systemctl-analyze blame
    or
    journalctl -b | grep dropbox
    The systemctl-analyze command wasn't found. The second command returned nothing.
    lucke wrote:Look inside ~/.config/autostart/.
    There was a dropbox.desktop file which I removed. That did the trick.
    Thanks a lot!

  • How to disable airplay mirroring on iPad with ios7

    How to disable airplay mirroring on iPad with ios7?

    I've had this problem ever since I was at my friend's house- she has Apple TV- and my iPad connected automatically. So, I have no idea why any of the practical solutions that people think of are not options BUT, in terms of just getting it done, I did figure out a way. The key for me was getting near another Apple TV. I was out of town so I took my iPad to another friend's house who also has TV. Once I was logged onto their wireless network (the same network that their Apple TV is on-- that's how it connected in the first place), then the Airplay icon and options showed up from the bottom-draw menu and I was able to make sure that mirroring was turned off from the Apple TV section and to make sure the selection was on iPad instead. Problem solved. Now whether or not this will stay the same (rather than me having to make sure it stays at this setting everytime I link up to a network that has an Apple TV on it) I don't know. So my advice is find someone with Apple TV and connect to their network with your iPad and then change it.

  • How to disable debugger for sapscript forms.

    How to disable debugger for sapscript forms.
    Once activated in se71-Utilities-Activate debugger I do not know how to disable it

    Thank you Rich
    I assigned you points for good answer on my preavious mail)
    . Actually my real problem is a transported the SAP script form “znalepke2” , printer definition ”nale”
    and device type “zststartsp” of a thermal printer.
    On original system (ak1) the printout is ok but on target system(ak2)
    not.
    Lateron I transported also :
    R3TR SCPD 1403(as the device type uses this character set)
    R3TR TABU TSP08 (All entries)
    R3TR TABU TSP1D(All entries)
    R3TR TABU TSP1T(All entries)
    I used also report  RSTXSCRP to traport form and device types. L
    Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
    Thank you in advance

Maybe you are looking for

  • How to hotsync my voice memos?

    Hello, I have a 700p and I just started using the voice memo feature (very cool!).  However, I am not seeing that my memos are hotsynced to my PC.  Do I maybe have older software or what is the cause? Thanks so much! Post relates to: Treo 700p (Veriz

  • Different ways to setup applets... what's best?

    Alright. I need some help deciding how to setup an applet. I'm a high school student and I'm going to be in a competition on Saturday that will be using Java applets. I've been trying to get my hands on as much info about it as I can, but I've seen s

  • Inconsistent datatypes:expected - got - error in handling xml

    hi i am getting the error Error(45,12): PL/SQL: ORA-00932: inconsistent datatypes: expected - got - in this procedure i tried a lot and landed in confused state.. create or replace PROCEDURE BT_CPE_XML_READ1 IS dest_clob CLOB; src_clob BFILE := BFILE

  • Basic Problem With Compositing

    For the opening of my video project, I thought I would start with a matted shot of my subject, in a rounded rectangle. It's pretty small, and put off to the right, leaving me room on the left side of the screen to insert text. When the matted shot is

  • How to restore my disabled ipod touch

    My daughters Ipod touch is disabled because she forgot the password, and she has a different computer now, and can't synch it to the original computer. How can I restore this devise? Thank you.