Skip to main content

iscrow 's Library tagged reference   View Popular

28 Nov 09

Xrandr detects resolution on monitor wrong - Ubuntu Forums

Here's how you can add additional resolutions besides the one xrandr detects from a display.

ubuntuforums.org/showthread.php - Preview

solution linux display video xorg reference howto

  • Re: Xrandr detects resolution on monitor wrong



    <!-- / icon and title -->




    <!-- message -->

    Quote:





    Originally Posted by Istonian
    View Post

    Anyone care to guide me through newmode? I am having problems




    use cvt to find the thing to put into new mode, ex cvt 1920 1080

    Youll get a output like

    Code:

    # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
    Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

    you@ll be interested in this

    Code:

     173.00  1920 2048 2248 2576  1080 1083 1088 1120

    Youll do

    Code:

    xrandr --newmode name  173.00  1920 2048 2248 2576  1080 1083 1088 1120

    then youll have to do

    Code:

    xrandr --addmode TMDS-1 name

    (if it is to TMDS-1 youll add this mode...



    Now youll have this new mode "name" for TMDS-1. Hope this points you in the right direction!
  • Re: Xrandr detects resolution on monitor wrong



    <!-- / icon and title -->




    <!-- message -->

    Quote:





    Originally Posted by Istonian
    View Post

    Anyone care to guide me through newmode? I am having problems




    use cvt to find the thing to put into new mode, ex cvt 1920 1080

    Youll get a output like

    Code:

    # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
    Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

    you@ll be interested in this

    Code:

     173.00  1920 2048 2248 2576  1080 1083 1088 1120

    Youll do

    Code:

    xrandr --newmode name  173.00  1920 2048 2248 2576  1080 1083 1088 1120

    then youll have to do

    Code:

    xrandr --addmode TMDS-1 name

    (if it is to TMDS-1 youll add this mode...



    Now youll have this new mode "name" for TMDS-1. Hope this points you in the right direction!
12 Nov 09

Bjoerns Homepage » Blog Archive » OpenWRT hotspot + bridged OpenVPN + roaming

With this document I want to describe how to set up a hotspot using an accesspoint running with OpenWrt.

www.bjoern-b.de/wordpress - Preview

openwrt wrt linksys openvpn vpn reference howto tutorial

29 Oct 09

limit bash script memory usage with ulimit

ulimit: "User limits - limit the use of system-wide resources."

ss64.com/ulimit.html - Preview

bash linux scripting howto reference programming

23 Oct 09

Adding a Global Group to the Local Administrators Group

  • There’s a Group Policy, called Restricted Groups, that provides a more elegant method for adding a global group to a local group. The Restricted Groups policy’s name doesn’t describe it very well. Even the Microsoft article at support.microsoft.com/kb/279301 doesn’t quite provide the whole story about Restricted Groups. Let’s look at how you can use Restricted Groups to add a global group to a local group.



    You can find this Group Policy under Computer Configuration/Windows Settings/Security Settings/Restricted Groups. Once you’ve navigated to the Group Policy Object (GPO), right-click it and choose Add Group from the context menu. Next, enter the name of the local group on the machine to which you want to add global groups. For our example, you’ll want to add to the local Administrators group. A new window will pop up that lets you add domain users or groups to the local group, which you can do by clicking Add in the Members of this Group section. I recommend referring to Figure A to keep the process straight as to which group goes where.



    Be sure to note which groups are already in the local group that you’re modifying because implementing the Restricted Groups policy will remove all groups and users from the list on the local machine. For example, the Domain Administrators global group is automatically added to the Local Administrators group when a machine is added to the domain. If you forget to add domain administrators to the Restricted Groups policy, domain administrators will be removed from the local Administrators group. At this time, I don’t know of a way to force the GPO to append additional users and groups to the original list; it’s strictly a replace operation. The next time that Group Policy is refreshed on the machine or the machine is rebooted, the list of users and groups in the local Administrators group will be replaced by the list in the Restricted Groups policy.

OpenWrt / dropbear and authorized_keys

Note that the current OpenWRT now expects the authorized_keys file in /etc/dropbear.

74.125.113.132/search - Preview

wrt openwrt linux ssh reference solution

  • Note that the current OpenWRT now expects the authorized_keys file in /etc/dropbear.  I'm putting this here because when I searched Google for "authorized_keys openwrt", this page came up first.  Hopefully the next person to do this will find this updated information.  big_smile

    Of course the current docs also give this information.  Oops.  roll

      http://wiki.openwrt.org/OpenWrtDocs/Configuration
19 Oct 09

Special Bash Variables

  • $*Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, it expands to a single word with the value of each parameter separated by the first character of the IFS special variable.$@Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, each parameter expands to a separate word.$#Expands to the number of positional parameters in decimal.$?Expands to the exit status of the most recently executed foreground pipeline.$-A hyphen expands to the current option flags as specified upon invocation, by the set built-in command, or those set by the shell itself (such as the -i).$$Expands to the process ID of the shell.$!Expands to the process ID of the most recently executed background (asynchronous) command.$0Expands to the name of the shell or shell script.$_The underscore variable is set at shell startup and contains the absolute file name of the shell or script being executed as passed in the argument list. Subsequently, it expands to the last argument to the previous command, after expansion. It is also set to the full pathname of each command executed and placed in the environment exported to that command. When checking mail, this parameter holds the name of the mail file.

Convert Subnetmask from CIDR notation to dot.decimal form « ActiveState Code

conver subnetmask from cidr to dot notation in python

code.activestate.com/...576483 - Preview

python networking reference code

  • #!/usr/bin/env python

    import sys

    def usage():
    print "Call : %s <BitCount>" % sys.argv[0]
    print " shows the dotted netmask (i.e %s 24 => 255.255.255.0)" % sys.argv[0]


    def calcDottedNetmask(mask):
    bits = 0
    for i in xrange(32-mask,32):
    bits |= (1 << i)
    return "%d.%d.%d.%d" % ((bits & 0xff000000) >> 24, (bits & 0xff0000) >> 16, (bits & 0xff00) >> 8 , (bits & 0xff))

    if __name__ == "__main__":
    if len(sys.argv) > 1 and sys.argv[1].isdigit():
    print calcDottedNetmask(int(sys.argv[1]))
    else:
    usage()
13 Sep 09

vlku.com » Django+Eclipse with Code Complete Screencast

set up the Eclipse IDE to do your Python and Django development with PyDev, complete with code complete, jump-to-code functionality and live breakpoints + code replace.

blog.vlku.com/...-with-code-complete-screencast - Preview

django python solution eclipse programming howto reference tutorial screencast del.icio.us

08 Sep 09

Bash Quoting | Linux Journal

Quoting things in bash is quite simple... until it isn't. I've written scripts where I'd swear 90% of the effort was getting bash to quote things correctly.

www.linuxjournal.com/...bash-quoting - Preview

linux howto bash tutorial reference solution scripting programming tips del.icio.us

1 - 20 of 320 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo