UNIX
UNIX systems usage, administration and development information.

Guests are welcome to view our materials. To subscribe, edit, view raw markup, etc., you'll need to register for an account. Accounts are free (and will always be free) - your involvement helps us directly and indirectly (by demonstrating that our work matters to our funders...) StartingPoints has more info.
UNIX

Unix Common Tasks


binary file editing



display settings / screen resolution changing
via GUI:

  • may depend on the system; in FedoraOS? on the command bar click System, then Display. You can set it to your desired resolution, etc.
  • on Fedora 8 running in VMWare, I had problems with on user account where the settings would not take. I would set to say 1600x1200, and upon restart it would continually revert to 1920x1200. There are some files in /etc/X11 you can edit, but even editing these didn't change it. I tried with other users, and they worked fine. So the problem seemed to be with this user. I used grep to search for files in home that matched the undesired resolution and found that you'll need to edit this file:
    • /home/yourusername/.gconf/desktop/gnome/screen/default/0/%gconf.xml
      The grep command used was:
    • $ sudo grep -Rls "1600x1200" /home

via command line:

  • edit the file



error log checking

tail -f error_log



hex editor/editing



path

  • see current path - type:
    echo $PATH
  • add directories to the path temporarily (for current session only)
    • to add to the beginning of the path:
      PATH=/my/new/begpath
    • to add to the end of the path:
      PATH=$PATH:/my/new/endpath
    • to add to the beginning and end of the path:
      PATH=/my/new/begpath:$PATH:/my/new/endpath
  • add directories to the path permanently (for current and all future sessions)
    • edit the .bash_profile file in your home directory, and add the new directory to your PATH in that file
  • add directories to every users' path
    • edit the /etc/profile file???



sudoers file, visudo, group wheel

allow group wheel to sudo:

  • as root (or sudo if you can) use visudo to edit the sudoer file
  • scroll to the bottom of the file, and you will see something like the following:
    # Uncomment to allow people in group wheel to run all commands
    # %wheel ALL=(ALL) ALL

  • uncomment as noted, save changes, then set wheel as noted below

set the wheel (sudoers file) for user jane:
[hholz@dayz ~]$ sudo -s Password:
[root@dayz ~]# usermod -G wheel jane


-- RobertSajan - 24 Apr 2008
r6 - 30 Jul 2008 - 14:21:57 - HilaryHolz
Guests are welcome to view our materials. To subscribe, edit, view raw markup, etc., you'll need to register for an account. Accounts are free (and will always be free) - your involvement helps us directly and indirectly (by demonstrating that our work matters to our funders...) StartingPoints has more info.
This site is powered by the TWiki collaboration platformCopyright 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Ahatwiki? Send feedback Syndicate this site RSSATOM