[SOLVED] How to set $EDITOR

for some reason my system doesn't have anything set for $EDITOR. Obviously I could set it with
export EDITOR=nano
in my .bashrc file but that just feels sloppy. Is there a better way, a more recommended way that is, to set it? I feel like there must be a setting in some configuration file somewhere for it already.
Last edited by Zarcjap (2012-02-05 16:14:48)

swanson wrote:'System-wide' does that include root as well? I've some problems with aliases for root.
Please open another thread, give us more info about your settings and post some examples - what works, what doesn't - for the regular users and for root.

Similar Messages

  • [solved] How to set default browser for qt apps ?

    hi ,
    I'm running a LXDE session and I can't figure out how to set opera as a default browser in qt apps . they default to firefox .
    Any ideas ?
    Last edited by Nezmer (2008-11-21 11:37:52)

    grep wrote:
    http://kb.mozillazine.org/Setting_Your_Default_Browser
    I read this guide before .
    The DE I'm running is LXDE and the apps are pure qt4 .
    how can this guide be helpful ?
    Last edited by Nezmer (2008-11-16 19:06:23)

  • [SOLVED] How to set the packager name for an AUR package?

    Hi,
       I'm maintaining an AUR package (fspcc), but I don't know how to set the name of the "packager" for that package.
    E.g. when you request info about some package
        $ pacman -Qi somepkg
    there is a line
        Packager: Unknown Packager
    that specifies the packager.
    How do I set this "Packager" info so that any user installing my package will see what I want?
    Last edited by lisztinf (2014-04-13 13:39:43)

    Thanks for the answer.
    I guess that when I run
       $ makepkg
    in my local build directory, then "mkpkg" will build a package with the "Packager" info set accordingly to my local makepkg.conf.
    However, I would like another user - with his own makepkg.conf - to see what I want when installing the package. How can I achieve this?
    If I install an official package - say pacman itself - through ABS, I see the "Packager" field properly set for that official package. But certainly this info doesn't come from my local makepkg.conf. I would like the same behaviour for my package. Is it possible?

  • [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 set rootdelay

    Hi!
    Like in subject, I'd like to know how should I do this, and additional question is why i can't set it to 0.
    When I append "rootdelay=1" system waits 1 sec. But when I append zero it waits 5 sec.
    Is there any way to set it to 0, or maybe it should be non-zero value?
    Is there any other way to change it instead of append kernel parameter? (maybe some settings in mkinitcpio?)
    XFS, root=/dev/sda1, SATA drive, Arch 64
    I'd be appreciate for any constructive reply,
    Adam
    Last edited by ajb (2009-06-25 15:17:31)

    I was looking in this dir, but not manually and the keyword "rootdelay" is not in this file... so thanks a lot
    I'm considering which package changed this behavior. 20. june upgrade of mkinitcpio, and 24. june kernel. It's due to mkinitcpio ugrade? Am I right? I'm just curious, because earlier I don't have this problem
    So as I understood this, the best way to get fast start is append in lilo/grub rootdelay=1 ?

  • [SOLVED] How to set DEVPATH and DEVNAME for Fancontrol?

    Hello
    Ok, no one answered, my question was a bit unclear - so I rewrote it
    I am setting up fancontrol according to https://wiki.archlinux.org/index.php/fan_speed_control, but I do not understand the last part about setting the DEVPATH and DEVNAME:
    "There are also two settings fancontrol needs to verify the configuration file is still up to date. The lines start with the setting name and a equality sign, followed by groups of hwmon-class-device=setting, seperated by spaces. You need to specify each setting for each hwmon class device you use anywhere in the config, or fancontrol will not work. "
    As suggested - when I run:
    readlink -f /sys/class/hwmon/hwmon-device/device | sed -e 's/^\/sys\///'
    I get no output
    As suggested - When I run
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon-device/device/name
    I get
    sed: can't read /sys/class/hwmon/hwmon-device/device/name: No such file or directory
    I do not undestand what the two commands from the wiki do - what do they do and how can I set it right?
    Any questions or info you need, just ask pls.
    Regards
    Martin
    Last edited by onslow77 (2015-01-25 10:56:43)

    Hello,
    First command
    So what does the wiki meen by: "DEVPATH sets the physical device. You can determine this by executing the command
    readlink -f /sys/class/hwmon/hwmon-device/device | sed -e 's/^\/sys\///'"
    Physical device of what, and what output am I suppose to get: Nothing, a list with output on where the symlinks lead, something else... In my case I got no output, if that is right, I do not know - since I do not understand what the command do.
    Seccond comand
    DEVNAME: Sets the name of the device. Try:
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon-device/device/name
    Does it meen like this - If I during my pwmconfig used hwmon1 wich was coretemp, and hwmon2 wich was nct6775, I should do:
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon1-device/device/name coretemp
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon2-device/device/name nct6775
    And that will direct every occurrence of hwmon1 and hwmon2 to the correct sensor chip?
    Regards
    Martin
    Last edited by onslow77 (2015-01-23 21:46:04)

  • [SOLVED] How to set nautilus sort sequence?

    Usually nautilus had sorted my files (acc. to name) independent if first letter is upcase or lowcase:
    Now it is changed to sorting:
    first all files starting with A...Z, after this a...z.
    How could this changed to the former setting?
    Thanks,
    PS
    Last edited by PS (2012-06-15 19:35:54)

    I posted in a thread about this a while ago, but can't find it.  If I remember correctly, it has to do with the locale variable LC_COLLATE.  You can run locale to see your locale vars.
    Edit: Here is the thread I was thinking of.
    Last edited by alphaniner (2012-06-15 16:36:42)

  • [SOLVED]How to set default audio playback device?

    I have an X-fi forte soundcard that doesn't work on linux, so I'm just gonna use the onboard realtek chip, but I get no sound from that either unless I physically remove the X-fi card.
    I use the X-fi when I boot into windows though, so I'd like to keep it...
    How do I change the default playback device?
    I didn't find anything that worked in the wiki or with google.
    Last edited by raginaot (2010-12-05 04:30:21)

    oh wait... I just spotted this in the wiki guide, a little too late
    NB: Some modules do not support indexing options eg. snd-hda-intel. If you experience problems on reboot edit /etc/modprobe.d/modprobe.conf to just have the modules.
    what does that mean "edit /etc/modprobe.d/modprobe.conf to just have the modules.".... what modules? :S
    should I just remove "index=0" from the line?
    Edit: yes I should. It's working
    Thx man
    Last edited by raginaot (2010-12-05 04:29:52)

  • How can set editor title dynamically

    HI
    I am using oracle forms 6i, in that i am using same editor for different items, i need to change editor title according to changing item, Is it possible in oracle forms 6i.
    Thanks in Advance
    Aneesh

    Hi jeyanthi,
    attached you will find an example.
    Hope it helps.
    Mike
    Attachments:
    Unbenannt 2_LV80.vi ‏13 KB

  • [Solved] How to set Code::Blocks to use Terminator!

    Hello All,
    I've recently just gotten into using an IDE to develop teh 1337 codez.
    Ignoring my silliness, I noticed that I can customize C::B to use whichever terminal emulator I like but I'm having trouble with using terminator.
    I've tried the following in the Settings :
    /usr/bin/terminator -t $TITLE -e
    terminator -t $TITLE -e
    terminator $TITLE
    And none of these have worked. Anyone have any suggestions? And yes, terminator is in my /usr/bin directory as evidenced by the output of "which terminator", which is /usr/bin/terminator
    Edit: Nevermind, I did it! Yay! Wanna know what worked? It was this (for once a man page was useful to me) : terminator -T $TITLE -x
    Last edited by MutantJohn (2013-08-23 23:30:39)

    There isn't a "code base" for java stored procedures ... that's an applet's issue.
    for more details about java stored procedures
    review teh java dev. guide and java stored proc guide located at :
    OTN FORUM ENTRY --> Oracle 8.1.7 Java Online Documentation
    http://technet.oracle.com:89/ubb/Forum18/HTML/001567.html
    null

  • [SOLVED] How to set non-root access to serial ports?

    I have this device which is listed as
    /dev/ttyUSB0
    I need to
    sudo chown sms /dev/ttyUSB0
    every time I reboot. Normally I would think to add myself to some group but "tty" group is not doing the trick... proof:
    [sms@sms-linux ~]$ groups sms
    tty wheel sms
    [sms@sms-linux ~]$ MinOZW
    Starting MinOZW with OpenZWave Version 1.0.758
    2014-03-15 06:32:07.921 Cannot find a path to the configuration files at ../../../config/, Using /usr/local/etc/openzwave/ instead...
    2014-03-15 06:32:07.928 mgr, Added driver for controller /dev/ttyUSB0
    2014-03-15 06:32:07.929 Opening controller /dev/ttyUSB0
    2014-03-15 06:32:07.931 Trying to open serial port /dev/ttyUSB0 (attempt 1)
    2014-03-15 06:32:07.933 ERROR: Cannot open serial port /dev/ttyUSB0. Error code 13
    2014-03-15 06:32:07.935 ERROR: Failed to open serial port /dev/ttyUSB0
    2014-03-15 06:32:07.936 WARNING: Failed to init the controller (attempt 0)
    ^C
    [sms@sms-linux ~]$ sudo MinOZW
    [sudo] password for root:
    Starting MinOZW with OpenZWave Version 1.0.758
    2014-03-15 06:32:23.776 Cannot find a path to the configuration files at ../../../config/, Using /usr/local/etc/openzwave/ instead...
    2014-03-15 06:32:23.782 mgr, Added driver for controller /dev/ttyUSB0
    2014-03-15 06:32:23.784 Opening controller /dev/ttyUSB0
    2014-03-15 06:32:23.786 Trying to open serial port /dev/ttyUSB0 (attempt 1)
    2014-03-15 06:32:23.794 Serial port /dev/ttyUSB0 opened (attempt 1)
    Edit: yes, it was after logout and even reboot.
    Last edited by smsware (2014-03-15 15:07:15)

    Hi,
    I also have a similar problem. I added myself to uucp group, but I still cannot access the serial port.
    [manjaro@mycomp work]$ sudo gpasswd -a manjaro uucp
    [sudo] password for manjaro:
    Adding user manjaro to group uucp
    [manjaro@mycomp work]$ groups manjaro
    lp wheel uucp network video audio storage users
    [manjaro@mycomp work]$ ls -l /dev/ttyUSB0
    crw-rw---- 1 root uucp 188, 0 23.06.2014 21:32 /dev/ttyUSB0
    [manjaro@mycomp work]$ lpc21isp firmware.hex /dev/ttyUSB0 19200 11059
    lpc21isp version 1.97
    File firmware.hex:
    loaded...
    Start Address = 0x00004F9C
    converted to binary format...
    image size : 30304
    Image size : 30304
    Can't open COM-Port /dev/ttyUSB0 ! (Error: 13d (0xD))
    But when I try as root, it works:
    [manjaro@mycomp work]$ sudo lpc21isp firmware.hex /dev/ttyUSB0 19200 11059
    [sudo] password for manjaro:
    lpc21isp version 1.97
    File firmware.hex:
    loaded...
    Start Address = 0x00004F9C
    converted to binary format...
    image size : 30304
    Image size : 30304
    Synchronizing (ESC to abort)..... OK
    Read bootcode version: 13
    Download Finished... taking 27 seconds
    Now launching the brand new code
    Do you have any idea what I am doing wrong?
    Last edited by manjaro (2014-06-23 19:57:40)

  • How to Set Up TextEdit as an HTML or Plain Text Editor?

    How to Set Up TextEdit as an HTML or Plain Text Editor?

    Well,
    There are 5 choices to choose from on the page. In the description of the choices at the bottom of the page there are 7, and the two additional choices talk about having to first have registered the site with SSO. So...I'm interpreting that as meaning that other 2 possible choices would be displayed if the site is registered with SSO. That, plus the fact that the page which describes how to add the site to SSO seems to think that the SSO choices are displayed in the wizard.
    So, no, there's no "exact launguage" that says what the reason is for the choices not being displayed. Can you point me to some exact language that tells me how to get those choices displayed?

  • My problem/Q not solved- how/what correct signal setting on the Macbook pro for ther PC config on Bravia defn

    Regrettably Shane mu Q/problem is not solved-how does one check the comptability of defn (1020x...) for the computer and Bracia?

    Don't know, I do know the TV has a higher refresh rate, check out SwitchResX online for more control options over HDMI.

  • [Solved] Bluetooth headset. Anyone know how to set up?

    Hi.
    I have a Kinivo BTH220 Bluetooth headset, and I have no idea how to set it up in Linux.
    It appears that the wiki article is outdated and incomplete. Does anyone have Bluetooth working for them on the up to date packages?
    Last edited by *nixer (2013-11-21 00:54:43)

    blueman-git seems to have been dropped from the aur, and the blueman-bzr uses bluez4. I tried bluez4 with blueman-bzr but had several errors.
    I ended up downgrading the blueman package from the repo you posted, and blocked it from being upgraded. It didn't give the errors blueman-bzr did right off the bat. (ie - an error window when loading X)
    I added 'Enable=Source,Sink,Media,Socket' to my '/etc/bluetooth/audio.conf', and created the '/etc/asound.conf' with the required setting both per the wiki article. Obviously, I replaced the XXs with my headset address. (Note: the asound.conf file is installed by pulseaudio-alsa, so I had to manually create it.)
    After pairing, and connecting to the 'headset service' & 'audio sync' in blueman, I was able to receive output from both aplay and mpv (mplayer) successfully as per the wiki article.
    This will work for now as I really wanted it working for media playback, but I noticed all system sounds still played through the default speakers.
    Out of curiosity, I also tried connecting to it manually via hcitool, and bluez-simple-agent.
    # hcitool scan
    Scanning ...
    XX:XX:XX:XX:XX:XX Kinivo BTH220
    # bluez-simple-agent XX:XX:XX:XX:XX:XX
    Traceback (most recent call last):
    File "/usr/bin/bluez-simple-agent", line 115, in <module>
    path = manager.FindAdapter(args[0])
    File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
    File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
    File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
    dbus.exceptions.DBusException: org.bluez.Error.NoSuchAdapter: No such adapter
    Any ideas on how to get sound from the main system for things like web browsing and the like?
    Last edited by *nixer (2013-11-17 00:22:33)

  • [SOLVED] How the HECK do you set up Broadcom BCM4322?

    I have tried everything that is said in the wiki and the forums but my Broadcom BCM4322 wireless card simply won't work! It's so frustrating! grrrrrrr.
    Can anyone share a success story and how to set it up?
    EDIT: This thread also sheds some light on how to manually configure a wireless network as well as setting up networkmanager.
    Last edited by trusktr (2012-04-04 17:17:04)

    Alrighty, check it out, here's those commands in the same order:
    [root@skyship ~]# lspci | grep BCM
    08:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
    [root@skyship ~]# lsmod | grep wl
    wl 1944206 0
    lib80211 3950 2 lib80211_crypt_tkip,wl
    [root@skyship ~]# lsmod | grep lib80211
    lib80211_crypt_tkip 8429 0
    lib80211 3950 2 lib80211_crypt_tkip,wl
    [root@skyship ~]# cat /etc/rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.utf8"
    HARDWARECLOCK="UTC"
    USEDIRECTISA="no"
    TIMEZONE="America/Los_Angeles"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(!b43 !ssb 80211_crypt_tkip wl)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="skyship"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #Static IP example
    #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
    #eth0="dhcp"
    #wlan0="dhcp"
    INTERFACES=(!eth0 !wlan0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng dbus hal !network networkmanager netfs alsa @crond)
    [root@skyship ~]# ifconfig
    eth1 Link encap:Ethernet HWaddr 00:23:8B:A4:5D:45
    inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::223:8bff:fea4:5d45/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1967 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1746 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1465013 (1.3 Mb) TX bytes:421522 (411.6 Kb)
    Interrupt:27 Base address:0x2000
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    And I've also included iwconfig:
    [root@skyship ~]# iwconfig
    lo no wireless extensions.
    eth0 IEEE 802.11abgn ESSID:"" Nickname:""
    Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
    Bit Rate:44 Mb/s Tx-Power:24 dBm
    Retry min limit:7 RTS thr:off Fragment thr:off
    Encryption key:off
    Power Management:off
    Link Quality=5/5 Signal level=0 dBm Noise level=0 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0
    eth1 no wireless extensions.
    It seems to me that the drivers/modules are loaded, but for some reason networkmanager won't see any wireless network. If i left-click on the networmanager applet, it shows "wireless is disabled" and if i right-click on it to select the "enable wireless" checkbox, I can't because it is grayed out.
    Last edited by trusktr (2010-07-24 03:21:14)

Maybe you are looking for

  • Adaptive Page Layouts: UI Corrections on Search/KD Pages

    This thread started as a "how to make search results look like google" but after getting more familiar with search I started to realize that the KD is (to a certain extent) disconnected from the search results look and feel and that both would have t

  • How to enhance ICCMP_AFS_HIS?

    Hello Experts, Hope you are doing good. I need your help. There is an assignment block in the component ICCMP_AFS_HIS I want to add new fields to that AB. But, the underlying object is a view object without any relationships. Can someone please expla

  • Web Intelligence vs. Crystal

    Looking for some specific arguments comparing Crystal to Webi.  I have the white paper that provides some examples (i.e., Pixel-perfect production reporting vs. ease-of-use / analysis) but am looking for other examples and thought the development com

  • [Solved]Ipod stopped mounting

    Initially when I installed arch about 7 months ago, I had just setup my iPod touch to mount via the directions contained within the wiki and everything was swell, I had no issues using Rhythmbox to sync my music. About three weeks ago, I ran a system

  • Cannot set up BBM a temporary BBM server error has occurred

    hello admin, after the update in my mobile to version 7 bbm this is the error i get to my B9780. please help me how to rectified this error...i read some furom to delete from mobile and reinstalled again but same error pop up..looking forward your pr