Syndicate content

Pages with category Unix

  • Setup your interface for multiple IP addresses

    Today I got a new IP address for a server and I had to assign it to the same NIC as my current IP address.

    So?! How do you do that on a Debian or Ubuntu server?

    It is actually very simple. On Ubuntu you go to /etc/network and edit the interfaces file. It should already include a definition for eth0 (virtual machines will have something else than eth0).

      # The loopback network interface
      auto lo
      iface lo inet loopback
    
      # The primary network interface
      auto eth0
      iface eth0 inet static
            address 192.168.1.1
            ...
  • I just upgraded an Ubuntu server from version 9.10 (Karmic Koala) to 10.04 (Lucid Lynx) and started getting a strange error about some package dependencies being unmet. I'm sure I did not intentionally install those packages, so as I was upgrading, I would imagine that they should have been removed automatically if required.

      # apt-get install <some-module>
      Reading package lists... Done
      Building dependency tree      
      Reading state information... Done
      You might want to run `apt-get -f install' to correct these:
      The following packages have unmet dependencies:
    
    
  • Since my last upgrade, I had many small things that went awry on my computer. From tsearch2 in a Postgres database to ownership of files to the following authentication problem:

    root@mycomputer:~# su - www-data
    su: Authentication service cannot retrieve authentication info
    (Ignored)
    www-data@mycomputer:~$
    

    Note that with su it ignores the fact. With cron it was not being ignored, so I'd get no work done!

  • My Story

    I have had this problem for a while now.

    On my server, I run X11 whenever I work with it. Otherwise, I quit X11 since it otherwises uses a lot of resources. This gives my users a much better experience (i.e. better browsing and a lot of it happen at night for me because I live in California and I have loads of hits from France, Algeria, Tunisia, Marocco, etc.)

    So... my wife and I both have a Unix account and we both start our own version of X11.

    Hers rarely get stuck, mine seems to get stuck once a week or once a month.

    Often, it is because after she quits I have to wait for

  • I have had a BIG problem with compiling zlib. Now I have my own normal configure.ac file, but the most important part of that compile was for me to find out how on Earth can you generate the dynamic library (.dll and .dll.a files) instead of the static library (.a only file)?!

  • As I work in consoles every now and then, I run in that one problem:

    Some text is written in Dark Blue over the Black background:

    This is a good example of what I'm talking about.

    And if you can read that text, wow! (without selecting it first.

    So... how could you change the color of that blue to make it readable? There is a way by sending some escape command to the console:

    echo -e "\\e]R\\e]PC6495ed"

    That command changes the color of the blue to a light blue (somewhat "cyan", although not light cyan.)

    The "\\e]R" part is to reset the colors to ...

  • Copying an entire partition to another when both are not of the exact same size (in blocks) can be tricky, especially if that partition includes special files such as /dev/hda and FIFOs.1

    Yet, there are several ways to do so:

    • 1. Note that was the case especially in the 90's. As of today, things have come a long way and there are command line options one can use with the cp and tar instructions to copy pretty much anything. You will still have problems with some files such as locks, though. But you should not have to copy them!
  • The other day, I created the odbcpp library. When I tried to build it on my Mac OS/X 10.4 (Tiger) I got a problem with the dynamic libraries. Instead of a .dylib extension, I got... nothing at all! (this problem was also reported on 10.5) I was sure that it worked for me with other libraries I developed (such as my sswf library) and thus I decided that I was not going to be left alone. Well...

  • Use at your own risk! These are links to other pages outside of this website:

  • Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

Syndicate content

     

Terms of Site Index

Find the page/content you are looking for with our index.

  • RAM
    Random Access Memory. Everyone with a computer uses a lot of RAM to run their processes. This is true of any electronic device with some dynamic capabilities (like your cell phone, pocket calculator, watch with calculator, etc.)
  • resize
  • sensors
  • viewer
  • wireless