Notes by voodoo
Displaying keyword search results 1 - 10
Created by voodoo on May 22, 2012 12:26:41
Last update: May 22, 2012 12:26:41
My program core dumped but there was no core file. The problem was that the core file size was 0:
$ ulimit -a
core file size (blocks, -c...
Use ulimit to enable it:
$ sudo bash
# ulimit -c unlimited
Created by voodoo on February 16, 2012 14:56:44
Last update: February 16, 2012 15:52:56
Shell functions are declared using this syntax:
[ function ] name () compound-command [ redirectio...
Example:
function ll {
ls -alF $*
}
Example 2:
ll() {
ls -alF $*
}
Shell functions can be exported to subshells with the -f switch:
$ export -f ll
However , I had problems logging in Ubuntu 11.10 after I added this to .profile :
export -f ll
Created by voodoo on February 11, 2012 15:02:56
Last update: February 11, 2012 15:04:13
Screenshot:
Details:
W:Failed to fetch copy:/var/lib/apt/lists/partial/...
Solution:
Become root:
$ sudo bash
Goto the apt folder:
# cd /var/lib/apt
Remove (or move) lists:
# rm -r lists
Create new lists folders:
# mkdir -p lists/partial
Retrieve new lists of packages:
# apt-get update
Created by voodoo on December 08, 2011 08:52:40
Last update: December 08, 2011 08:52:40
I don't know if there's a fool proof way to find out which Linux distro you are running on, but here are some ways you can try:
cat /proc/version
cat /etc/issue
cat /etc/*release
lsb_release -a
Results on Ubuntu 11.10 oneiric:
$ cat /proc/version
Linux version 3.0.0-13-gene...
Results on Red Hat Enterprise Server:
$ cat /proc/version
Linux version 2.6.18-128.1....
Created by voodoo on November 18, 2011 14:12:37
Last update: November 18, 2011 14:12:49
Search Ubuntu packages at: http://packages.ubuntu.com/
Created by voodoo on September 04, 2011 14:48:52
Last update: September 04, 2011 14:49:40
If Ubuntu does not recognize the wifi adapter, use ndiswrapper and Windows XP driver instead:
Install the needed Ubuntu packages:
$ sudo apt-get install ndisgtk
If there's no Internet access, the needed packages are available from the Ubuntu live CD under the directory /pool/main/n . Install both ndiswrapper and ndisgtk .
Download and extract the Windows XP driver for your wifi adapter.
Install the Windows XP driver:
Browse to System/Administration/Windows Wireless drivers
Click Install New Driver
Select the .inf file, then click Install
Connect to wifi networks as you normally do.
Created by voodoo on September 04, 2011 14:23:17
Last update: September 04, 2011 14:25:05
I just installed Ubuntu 11.04 desktop on my old Dell laptop, but the cdrom is not auto-mounting. Normally this simply works.
I tried various things like adding cdrom to /etc/fstab and installing halevt (which failed), none worked. However, I found out that despite talks of using gnome-volume-manager etc, at least for this version of Ubuntu automount is managed by Nautilus (file manager): start gconf-editor and navigate to /apps/nautilus/preferences/ , media_automount should be checked (but it's checked by default, unless you changed it).
In the end, I wasn't able to make cdrom automount, although USB drives automounted fine. Instead of wasting more time to diagnose the problem, I manually mounted the cdrom drive:
$ sudo mount /dev/cdrom /cdrom
Created by voodoo on September 04, 2011 09:54:34
Last update: September 04, 2011 09:55:25
To see if Firefox is installed:
dpkg --get-selections | grep firefox
or
dpkg --get-selections firefox
or
dpkg --get-selections firefox*
To see status of Firefox:
dpkg -s firefox
or
dpkg -l firefox
To see locations of Firefox files:
dpkg -L firefox
Created by voodoo on August 27, 2011 08:27:04
Last update: August 27, 2011 08:27:04
My version of hardy (8.04) actually had postfix instead of sendmail :
# /etc/init.d/postfix restart
* Stopping Postf...
Created by voodoo on August 27, 2011 08:13:34
Last update: August 27, 2011 08:13:54
Symptoms:
used to work
hasn't been running since a certain day, verified by looking at the log timestamp
Solution: restart cron with
# /etc/init.d/cron restart