Syndicate content

Pages with category Unix

  • Once in a while I want to add my user to a group and then right away make use of that group.

    Unfortunately, in general Unix kind of forces you to re-log in for the new group to be attached to your account.

    However, a command has been added, a while back, to do just that on the fly. Not something you would want to use in a script, but at least, it works for me when doing a few things here and there.

    In my case, I wanted to run QEMU, which I hadn't done in a while, and the system told me that it could not open the KVM, the error: kvm permission denied.

    The problem was that I was not part ...

  • 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:

Syndicate content

     

Terms of Site Index

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

  • CGI
    Common Gateway Interface--Really, just a way to run a program on a server to generate a dynamic page. It can be in any language.
  • FTP
  • LVM
  • TxnID
  • XML

    Extensible markup language. First mainly used on the Internet, XML was born out of a constrained version of HTML (SGML). It is now used for all sorts of data.