Results 1 to 13 of 13

Thread: .xinitrc

  1. #1

    Thread Starter
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    .xinitrc

    where is the .xinitrc file so i can replace xdm with a desktop enviroment xdm? is there a findfile command to scan for files?

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    Re: .xinitrc

    .xinitrc is a user file, so it should be located in your home directory. If you don't have one, then the X server uses the default configuration file, usually /etc/X11/xinit/xinitrc.

    If you want to make changes, you can copy that file to your ~/.xinitrc so that changes that will only effect you instead of the whole system.


    With regards to finding files, GNOME/KDE have graphical file searches (click "search" from the gnome file browser!). If you're looking for command line tool, check out

    locate which is fast but may not always find your item, or a command like:

    Code:
    $ find ~/ -name "*.txt"
    Hope this helps.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: .xinitrc

    there are several ways to search for files.

    Probably the one you'll find easiest to use is "locate". Chances are if you've not used locate so far then your database isn't fresh, so run updatedb (which will take a few minutes to catalogue your drive, but this is only a one-time thing) and then you can do locate .xinitrc to find the file you're after

    Setup a cron job for 2 o'clock in the morning that updates your locate database every night so you can always use locate efficiently.
    I don't live here any more.

  4. #4

    Thread Starter
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    Re: .xinitrc

    ok well i have to go back a couple of steps to go forwards again

    i wiped with DBAN and then installed a *nix os but then noticed erratic and unstable behaviour never seen prior to using DBAN. So is there another harddisk wiping util that you guys recommend?

  5. #5
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: .xinitrc

    Quote Originally Posted by learning c
    ok well i have to go back a couple of steps to go forwards again

    i wiped with DBAN and then installed a *nix os but then noticed erratic and unstable behaviour never seen prior to using DBAN. So is there another harddisk wiping util that you guys recommend?
    if you're running linux, you can just use the 'dd' (convert + copy) program. 'dd' was supposed to be called 'cc' but that name was already taken for the C compiler

    Code:
    $ dd if=/dev/zero of=/dev/hda
    if you want random data instead of zeros, use /dev/random instead of /dev/zero. you might have to run this from a linux livecd (ubuntu, etc) to be able to write to the hdd.

    if all else fails, and you want to completely trash the HDD (not likely ) you can try thermite.
    Last edited by tr333; Jul 14th, 2007 at 10:18 AM.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  6. #6
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: .xinitrc

    (off-topic)

    Nice article tr333, I didn't realise thermite was stable enough for use as anything other than a party trick. Nor did I realise that it was such an old idea. Fascinating. *eyebrow*
    I don't live here any more.

  7. #7

    Thread Starter
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    Re: .xinitrc

    ok got disk problems sorted... eventually.... didn't have to thermite it, although i prolly shoulda

    from root i ran

    find . -name ".xinitrc" -print



    but it found nada??? read somin abt being it being a hidden or system file?

    could be that i don't have one and have to make it? can i put in in root somewhere or does it need to be somewhere specific?
    Last edited by learning c; Jul 18th, 2007 at 01:51 AM.

  8. #8
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    Re: .xinitrc

    Quote Originally Posted by learning c
    could be that i don't have one and have to make it? can i put in in root somewhere or does it need to be somewhere specific?

    Quote Originally Posted by sunburnt
    .xinitrc is a user file, so it should be located in your home directory. If you don't have one, then the X server uses the default configuration file, usually /etc/X11/xinit/xinitrc.

    If you want to make changes, you can copy that file to your ~/.xinitrc so that changes that will only effect you instead of the whole system.
    On a unix system, any file which starts with a period is hidden. For example, typing "ls" will not show hidden files. To display hidden files, use "ls -a" to show all files.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  9. #9

    Thread Starter
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    Re: .xinitrc

    Quote Originally Posted by sunburnt
    .xinitrc is a user file, so it should be located in your home directory. If you don't have one, then the X server uses the default configuration file, usually /etc/X11/xinit/xinitrc.
    ok... don't have a /home dir.... and checked /etc... no X11 directory

    Quote Originally Posted by sunburnt
    On a unix system, any file which starts with a period is hidden. For example, typing "ls" will not show hidden files. To display hidden files, use "ls -a" to show all files.
    ok from root i tried this (the type d should find hidden files shouldn't it?)

    find . -name ".xinitrc" - type d - print
    but it didn't find the file

  10. #10
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: .xinitrc

    Quote Originally Posted by learning c
    ok... don't have a /home dir....
    Are you sure about this? I don't know how you could log on to a linux system without a /home directory. You can check the "HOME" environment variable to see where your home directory is.

    Code:
    $> echo $HOME
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  11. #11
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Re: .xinitrc

    Using find with -type d will only look at directories

  12. #12

    Thread Starter
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    Re: .xinitrc

    Quote Originally Posted by tr333
    Are you sure about this? I don't know how you could log on to a linux system without a /home directory. You can check the "HOME" environment variable to see where your home directory is.

    Code:
    $> echo $HOME
    you mean the home dir stored in the .profile file in root... got it.... then just made my own .xinitrc file... works now

    i still can't find hidden files though with find???? what's the switch?

  13. #13
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Re: .xinitrc

    Using find -type f will search for plain text files, there's no special switch for hidden files. I've checked on several distros here and all can locate files beginning with a dot. Try running this command:

    Code:
    find / -type f -name ".xinitrc"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width