Dec 302009
 

To start new with pulseaudio:

pulseaudio --kill
rm -rf ~/.pulse ~/.pulse-cookie
pulseaudio --start

Then check access to the soundcard:

sudo lsof | grep /dev/snd

which returns:

pulseaudi 5173     philipp   20u      CHR     116,10       0t0       3632 /dev/snd/controlC0
pulseaudi 5173     philipp   26u      CHR     116,10       0t0       3632 /dev/snd/controlC0

So I killed pulseaudio using:

sudo kill 5173

resources

I worked on this according to this post on ubuntuforums.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 272009
 

http://forum.ubuntuusers.de/post/2207175/
http://ubuntuforums.org/showpost.php?p=8367187

Sound after login: System → Preferences → Startup Applications → GNOME-Login-Sound : remove check

To disable the system ready drums:

sudo mv /usr/share/sounds/ubuntu/stereo/system-ready.ogg /usr/share/sounds/ubuntu/stereo/system-ready-off.ogg

Enter The gdm Configuration (not related to the deactivation of the start sound mentioned above)

Log off and change to a virtual terminal using [Ctrl]+[Alt]+[F(1-6)] Log in there and enter:

export DISPLAY=:0.0
sudo -u gdm gnome-control-center

Then change back to the xserver using [Ctrl]+[Alt]+[F7], enter your settings and log in when done.
(To get rid of an annoying accessibility icon do gconftool-2 -t bool -s /desktop/gnome/accessibility/keyboard/enable false.)

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 252009
 

When you don’t want other software (like network manager) to mess with your DNS server settings, make /etc/resolv.conf immutable:

sudo chattr +i /etc/resolv.conf

It can be undone like this:

sudo chattr -i /etc/resolv.conf

resources

http://ubuntuforums.org/showthread.php?t=435525

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 242009
 
  1. Download ArgoUML-0.xx.tar.gz
  2. Decompress it into your ~/bin/ (or /bin) directory
  3. and then create a symlink to argouml.sh in ~/bin/:
    ln -s $HOME/bin/argouml-0.28/argouml.sh $HOME/bin/argouml
  4. Now run the app by executing argouml

or run the webstart:

javaws http://argouml-downloads.tigris.org/jws/argouml-latest-stable.jnlp

resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 212009
 

Edit the configuration file of the SSH daemon:

sudo gedit /etc/ssh/sshd_config

Change the line containing PermitRootLogin yes to PermitRootLogin no , save the file and restart the SSH server.

sudo /etc/init.d/ssh restart
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 182009
 

Use dos2unix from the tofrodos package to convert files with Windows (DOS) style CRLF (carriage return and line feed) line endings to Unix style LF (linefeed only) line endings. Install as follows:

sudo aptitude install tofrodos

How you use the tool:

dos2unix dosfile.txt
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 162009
 

If you want to convert files from one encoding to another you want to use the tool iconv:

iconv -f WINDOWS-1252 -t UTF-8 about.txt  > about.utf.txt

The above command converts the about.txt input file from the old West-European encoding ISO-8859-1 to UTF-8 and saves the result to about.utf.txt.

The command iconv --list lists the supported encodings. Included are:

  • WINDOWS-1252
  • LATIN1 !
  • ISO_8859-1 !
  • ISO_8859-15 !
  • UNICODE
  • UNICODEBIG
  • UNICODELITTLE
  • US-ASCII
  • US
  • UTF-7
  • UTF-8 !
  • UTF-16
  • UTF-16BE
  • UTF-16LE
  • UTF-32
  • UTF-32BE
  • UTF-32LE
  • UTF7
Dec 152009
 

My network interface is a Intel PRO/1000 PT Dual-Port-Server-Adapter (PCIe x4) (chipset: Intel 82571GB). It provides two physical links that I use both: One for my private subnet and one as the public interface to the public network (Internet via 100Mbit Ethernet at KHG, University of Frankfurt am Main). I call the public network WAN.

Previously the public network provided me with an IP using DHCP and so my /etc/network/interfaces was set to: