Toshiba Satellite Pro 6100 with Linux
Last Update: 7 Jun 2004
Index (sorry, anchors will come later)
- Base install
- Post-Base install
- Package List
- Miscellaneous Upgrades
- My .tcshrc
- Kernel
- Modules (2.4 kernel)
- Kernel 2.6
- Nvidia, X and mouse
- Network Setup
- Iptables
- VPN - for University of Windsor
- Replacing LILO with Grub
- Sound
- No X option in GRUB menu
- Fixing reboot problem - linux hangs after USB initialization
- Toshiba Fan - keep fan on if AC plugged in
- Screensaver resolution problem
- fstab stuff
- Time Synchronization
- VMWare Workstation
- Emacs
- Amsn
- Konqueror
- MPlayer
- MPlayer - easier way
Debian is a great distro, which is not maintained by a company, but
rather by a community, but it's a bit hard to setup initially. You
can use any debian boot CD and then just upgrade it over the net
immediately afterward. I used Debian 3.0 (= woody/stable).
The package managing system is way better than rpm. Contributors to
.deb packages must follow a strict set of rules to avoid the annoying
multiple storage locations for files. All configurations must be in /etc.
Installing is
as easy as "apt-get install packagename" at the prompt, and it will
automatically install all dependencies and configure itself over the net.
If you ever need to reconfigure a package after apt-get install, you can
run "dpkg-reconfigure packagename".
You can set yourself up as stable (woody for 2.4), testing (sarge) or
unstable (sid). Stable is way too outdated for my taste (it's still
using KDE 2.0!). testing is good to use as a desktop OS. stable is
great for servers. That way, if you're upgrading, you'll only upgrade
from stable to stable, or testing to testing...
- Base install
- Post-Base install
- login and modify /etc/apt/apt.conf:
APT
{
Default-Release "sarge";
Cache-Limit 10000000;
}
- Now modify /etc/apt/sources.list... since we are using sarge, we only
need the us and non-us mirrors for sarge. some pkgs are non-us, so we need the non-us mirrors too: (i mirrored ftp.us.debian.org to 192.168.0.2 for speed).
it's not a good idea to mirror security updates since you don't want to
lag behind in those.
deb http://ftp.us.debian.org/debian sarge main non-free contrib
deb-src http://ftp.us.debian.org/debian sarge main non-free contrib
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org/ sarge/updates main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
- run "apt-get update". this will grab a package list from EACH site. you can do this once (for the days you want to be apt-get install/upgrade). the
install/upgrade will used the cached list obtained from update. (apt-get clean will wipe out package-list repository).
- since we installed off "stable" and want to do a major upgrade, you have to go "apt-get dist-update" so that packages aren't held back.
- a good habit is to type "apt-get -u upgrade" just to make sure that
everything went ok and there's nothing to upgrade. (note: apt-get -u
forces a prompt, so you get to see what it will do before it does anything).
- when running "apt-get upgrade" (or dist-upgrade), you get options D (to show differences in the config files), Y to overwrite config file and N to keep existing config files.
- run "tasksel" to install groups of packages (without having to
know their exact names). ex. you can select: desktop environment (for KDE),
office, laptop, linunx standard base. There was a slight problem getting
X running, so I manually ran "apt-get install x-window-system x-window-system-core kde-core".
- the X was configured, and can always be reconfigured with "dpkg-reconfigure xserver-xfree86".
- Package List
- Here's a list of stuff that I've installed using "apt-get install"
less tcsh ssh bzip2 grub
emacs21 (here's my .emacs file - put in homedir)
xmms (winamp for linux)
wireless-tools waproamd (waproamd is great for loading proper keys for different APs)
gpm (for the mouse)
libncurses5-dev (needed for "make menuconfig" in the kernel compile)
x-window-system x-window-system-core kde-core kdm
vnc-common xvnc-viewer
amsn imagemagick licq (instant messengers)
synaptic aptitude (gui and text-based package managers)
kmix
mozilla
flashplugin-nonfree j2re1.4 j2sdk1.4 (plugins, inc those for mozilla)
samba smbfs smbclient (smbfs for mounting windows)
apt-show-versions
toshutils toshset klaptopdaemon (klaptopdaemon is the battery indicator in the toolbar)
netcat ntpdate
dosfstools (for mkfs.vfat)
w3m w3mmee w3mir (WAY better than lynx! these support FRAMES!!)
vim (coloured VI with syntax highlighting)
freeswan ipsec-tools freeswan-modules-source (need this for my university's wireless access)
hdparm unzip zip
apt-listchanges (to see changes when you do a "apt-get -u upgrade")
clamav (antivirus prog)
kde-devel (for make xconfig in kernel config)
module-init-tools (needed for modprobe and iptables in 2.6 kernel!!! the
nvidia script wouldnt compile itself without this)... i figured this
out by installing "apt-get install kernel-image-2.6.3-1-686"
libglade2-dev libgtk2.0-dev (for "make gconfig on kernel2.6)
libqt3-dev kdevelop (for "make xconfig" on kernel2.6)
gimp (for manipulating images)
eject (doh, i couldnt eject the cdrom)
traceroute
- Note: for j2re1.4 and j2sdk1.4, I had to add this to my /etc/apt/sources.list:
deb http://jrfonseca.dyndns.org/debian ./
- The j2 packages added java plugins to mozilla. the flashplugin did the same for flash.
- for C and C++, it was easier to just go:
"tasksel", select C and C++, and select "finish".
- Miscellaneous Upgrades
- I ran "apt-get update" to get an updated list
- "apt-get -u upgrade" to upgrade packages. However, there was
a list of things to be "held back"... for these, you just go:
- "apt-get install LISTHELD_BACK" (cut and paste those). then for good luck, when all is done, just go "apt-get -u upgrade" to make sure you get: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- My .tcshrc
I changed my shells to /bin/tcsh, only because I'm used to it. Here's
my .tcshrc so far:
if (! `echo $path|grep -c sbin`) set path=($path /sbin)
set prompt="%n@%m %p %/ %# "
alias ls '\ls --color -qCFa'
limit coredumpsize 0
set autolist
set autoexpand
alias finddeb apt-cache search
alias nosy 'ps -eaf|grep -v grep|grep -i'
alias rmc 'rm *~'
alias cls clear
alias mozilla 'artsdsp mozilla \!* &'
alias mountevil "smbmount //10.0.0.106/data /evil -o username=upstairs,password=XXXXXXXX"
alias b echo "brightness:\!*" \> /proc/acpi/toshiba/lcd
alias tests 'artsdsp play /usr/share/amsn/skins/default/sounds/newemail.wav'
alias upd 'apt-get update; apt-get -u upgrade'
alias ? 'echo \!*|bc -l'
alias scan 'iwlist eth1 scanning'
Kernel
- Rather than waste time, I'll just go ahead and give you the
quick-fix. Instead of installing package kernel-image-2.4.25-1-686 and
nvidia-kernel-2.4.25-1-686, I created my own because of problems.
You can easily scan for a package with "apt-cache search nvidia" or
"apt-cache search kernel".
- Downloaded kernel 2.4.25 and my 2.4.25 config.
- installing kernel is as easy as:
cd /usr/src
bunzip -dc linux-2.4.25.tar.bz2|tar -xlf -
cd linux-2.4.25
make mrproper menuconfig
Load config file -> select "config-2.4.25mw3"... then exit and save
emacs Makefile
(change EXTRAVERSION to mw3)
make dep bzImage modules
make modules_install install
- my lilo.conf has this: (replaced by grub later)
lba32
boot=/dev/hda
root=/dev/hda7
install=/boot/boot-menu.b
map=/boot/map
prompt
vga=normal
default="Windows XP"
image=/boot/vmlinuz-2.4.25mw3
label=2.4.25mw3
vga=extended
password=linux
read-only
other=/dev/hda1
label="Windows XP"
- The vga=extended makes text mode use 80x50. The password is used
to avoid screwing up by running linux in vmware from linux.
- of course, keep the original kernel in there just in case if you screw
up. run "lilo" to write the MBR
- reboot to test out new kernel.
Modules (2.4 kernel)
Kernel 2.6
- Downloaded 2.6.5, and compiled using my config-2.6.5mw2. (make dep bzImage modules modules_install install; update-grub)
- I had to "apt-get install module-init-tools" or else lsmod and modprobe won't work in 2.6!!!!
- for "make gconfig", I had to: "apt-get install libglade2-dev libgtk2.0-dev"
- for "make xconfig". I had to "apt-get install libqt3-dev kdevelop" (make clean mrproper - must be run or else include path won't be set properly)
- Some modules changed names, so I had to add to /etc/modules:
e100
snd-intel8x0
toshiba_acpi
- kernel upgrades always require recompilation of nvidia and vmware modules:
cd /lib/modules/2.4.25mw3/kernel/drivers/video; cp nvidia.o nvidia.bak
sh /installs/NVIDIA-Linux-x86-1.0-5336-pkg1.run
cp nvidia.bak nvidia.o (nvidia DELETES the OLD module!!!!)
vmware-config.pl
- To get sound, I had to go into control center (from wrench icon), and go to "Sound System" -> Sound I/O and select "Advanced Linux Sound Architecture" (ALSA). "aRTs" is left untouched (default: Start aRts soundserver).
- My toshiba module doesnt work anymore! "toshset -q" shows only 2 lines of info and "fan -s" says "fan: laptop does not have cooling fan or kernel module not installed.".
- to fix, "apt-get install acpi acpid". when configuring acpid, it asks what modules to load. put "all". log goes to /var/log/acpid... I get a battery entry every 5 seconds... so I added to /etc/init.d/acpid: before $OPTIONS in the start clause, added: -l /dev/null
- The default in /etc/acpi/events is "powerbtn" which instructs the system to shutdown when you push it.
- The "fan" utility in toshutils stopped working. I had to change /etc/init.d/fan to do this instead of "fan -s":
echo "force_on: 1" > /proc/acpi/toshiba/fan
echo on > /proc/acpi/fan/FAN/state
- I wrote my own little script in /usr/bin/tosh that gives info:
#!/bin/csh -f
echo FAN: `cat /proc/acpi/fan/FAN/state /proc/acpi/toshiba/fan`
echo CPU `cat /proc/acpi/thermal_zone/THRM/temperature`
echo AC Adapter `cat /proc/acpi/ac_adapter/ADP1/state`
grep "brightness:" /proc/acpi/toshiba/lcd
echo VIDEO:
cat /proc/acpi/toshiba/video
echo BATTERY:
cat /proc/acpi/battery/BAT1/state
- I added this to my .tcshrc to control brightness with "b #" where # is from 0 to 7:
alias b echo "brightness:\!*" \> /proc/acpi/toshiba/lcd
Nvidia, X and mouse
- download NVIDIA-Linux-x86-1.0-5336-pkg1.run
- The nvidia driver is pretty simple. run "./sh NVIDIA-Linux-x86-1.0-5336-pkg1.run". just answer the questions and let it create a module for your kernel (dont download anything additional from nvidia.com. it wont find it). it creates
/lib/modules/2.4.25mw3/kernel/drivers/video/nvidia.o
- run "dpkg --reconfigure xfree86-xserver" to setup /etc/X11/XF86Config-4.
My final copy is here.
- According to the file itself, it tells you to:
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
- So, I assume that if you make any manual changes to that file, you need to recompute the md5 checksum to allow dpkg to reconfigure it.
- When running "dpkg-reconfigure xserver-xfree86", select "nvidia" as the Device Driver (this appears after running nvidia's script). Use "Im/PS2" for mouse. Select LCD -> medium -> 1600x1200x75Hz. I selected all resolutions from 1600x1200 and down.
- Run "gpmconfig", and set the following:
Current configuration: -m /dev/input/mice -t imps2 -Rraw
Device: /dev/input/mice
Type: imps2
Repeat_Type: raw
- what gpm does is runs as a daemon, and allows the mouse to work in text mode. then, what you do is REPEAT the mouse device to a FIFO /dev/gpmdata so that X can use it as well (since X is configured for Im/PS2 as well, the data is repeated as "raw".
- There are 2 mice sections in XF86Config. One is for the builtin mouse. The other is for my optical. Here are the relevant parts:
Section "Device"
Driver "nvidia"
Option "IgnoreEDID" "True" # NEEDED for 1600x1200!!!!
EndSection
Section "Monitor"
DisplaySize 305 229 # for EXACT "as-is" printing
EndSection
Section "ServerLayout"
InputDevice "Configured Mouse"
InputDevice "Optical Mouse"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
EndSection
Section "InputDevice"
Identifier "Optical Mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
EndSection
- After writing this documentation, I thought I had Device pointing
to /dev/gpmdata, which was the whole point of the repeater, but who
knows - it works.
- My manager defaulted to XDM! that one sucks. To get the ability to
shutdown/reboot computer by right-clicking on the desktop, you need
kdm. Either go: "dpkg-reconfigure kdm" (or xdm) and select kdm as
the default manager.
- Once logged into KDM, click wrench icon -> system administration ->
login manager (which is kcmshell System/kdm). sessions tab -> allow shutdown: everyone. Under convience tab -> check "enable auto-login" and select normal user acct (if you want)...
Network Setup
- For now, my /etc/network/interfaces looks like:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.1.222
# gateway 10.0.1.1
netmask 255.255.255.0
iface eth1 inet dhcp
wireless mode managed
wireless_nick weller
wireless_essid any
# wireless_essid SSIDNAME
# wireless_enc 5769-6e64-etc...etc....
- I set the eth0 gateway to be static to avoid annoying DELAYS when booting..
- I commented out gateway, since I discovered that I was getting 2 default gateways, and one was going nowhere.
- if i wanted to manually go onto an encrypted network, I'd just comment
out the "essid any" line, and uncomment the ssid/enc lines, then "/etc/init.d/pcmcia restart" (technically - "ifdown eth1; ifup eth0" - should work, but
some module needs to be unloaded and reloaded). To automate things, I
need to use waproamd.
- I've decided to install waproamd with "apt-get install waproamd". This is good for
auto-detecting the SSID that is closest to you, and using the appropriate KEY, or starting up the necessary custom scripts depending on which WAP/SSID that you connect to.
- waproamd requires that "iwlist eth1 scanning" is supported. I originally had:
eth1 Interface doesn't support scanning.
- Now, I get:
eth1 Scan completed :
Cell 01 - Address: 00:0D:3A:29:11:13
ESSID:"weller"
Mode:Master
Frequency:2.437GHz
Quality:32/92 Signal level:-66 dBm Noise level:-88 dBm
Encryption key:off
- Basically, we need to upgrade orinoco_cs. I emailed the author (David Gibson), who wrote me back: (i had originally tried the monitor-mode patch for orinono)
"monitor mode" is not the same thing as scanning support, which is
also missing from the version of the driver in the kernel. Both
scanning and monitor support have been merged in the CVS version of
the driver, on savannah.nongnu.org. Yes, a push to Linus is long,
long overdue, but unfortunately I don't have much time to spend on the
driver these days.
- I had to apply the orinoco - scan patch from cattlegid.net, and did the following:
cd /usr/src/linux-2.6.5/drivers/net
mv wireless wireless2
mv EXPANDEDDIR wireless
cp wireless2/Kconfig wireless
cd ../..
make modules modules_install
/etc/init.d/pcmcia restart (should've worked, but orinoco_cs was busy! so
i had to reboot). This patch is annoying in that I can't "rmmod orinoco_cs" anymore. It must have to do with the scanning.
- I've changed the order of a few scripts:
cd /etc/rc2.d
mv S20ifplugd S17ifplugd
mv S20pcmcia S18pcmcia
mv S20waproamd S19waproamd
cd /etc/pcmcia
mv network network-dontuse
- Here is my modified /etc/init.d/waproamd.
It waits up to 5 seconds for eth1 to come up... then it waits up to 5
seconds for "iwlist scanning" to return an AP... if no AP is found, then
it will run the bruteforce script (which will run waproamd if no
key works).
- Basically, here's what happens... ifplugd loads e100 module, which makes eth0 appear in "ifconfig -a". pcmcia will load orinoco_cs, which creates eth1. pcmcia's cardmgr will call "/etc/pcmcia/network start eth1", but we want waproamd to start it instead (for efficiency). i noticed that cardmgr would
preconfigure my network before waproamd has the chance (which is why i renamed network to network-dontuse - i cant find where it is called, so i assume it's hardcoded into the cardmgr binary).
- waproamd will run "iwlist eth1 scanning" to find an access point. once it finds one, it will run /etc/waproamd/scripts/essid:SSIDNAME (or default), which in turn, looks for keys in /etc/waproamd/keys/essid:SSIDNAME.wep:
/etc/waproamd/keys > ls
./ essid:CS-WL-1.wep essid:dodgerman.wep
../ essid:NVG Lan2.wep essid:quark.wep
- The contents are simply the keys themselves.
- to stop/start the network, simple use "/etc/init.d/waproamd start/stop".
- One problem. If the network isn't broadcasted (ie, it's hidden),
you want waproamd to call up my /etc/waproamd/bruteforce script.
- I've modified /etc/init.d/waproamd to check for networks first, and if they don't exist, it will just run my bruteforce script instead (right after start). Note that eth1 MUST be up before "iwlist scanning" will work!
Iptables
- created link: cd /etc/rc2.d; ln -s ../init.d/iptables S20iptables
- /var/lib/iptables/active:
*nat
:PREROUTING ACCEPT [226:22912]
:POSTROUTING ACCEPT [18:4519]
:OUTPUT ACCEPT [61:8165]
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
*mangle
:PREROUTING ACCEPT [60706:16075094]
:INPUT ACCEPT [55567:14302348]
:FORWARD ACCEPT [5087:1765400]
:OUTPUT ACCEPT [35183:2038274]
:POSTROUTING ACCEPT [40643:3864422]
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
[0:0] -A INPUT -i lo -j ACCEPT
[0:0] -A INPUT -s 172.16.228.0/255.255.255.0 -j ACCEPT
[0:0] -A INPUT -s 192.168.0.0/255.255.0.0 -j ACCEPT
[3:234] -A INPUT -s 10.0.0.0/255.255.255.0 -j ACCEPT
[0:0] -A INPUT -s 137.207.76.3 -j ACCEPT
[0:0] -A INPUT -p tcp -m tcp --dport 6881:6891 -j ACCEPT
[0:0] -A INPUT -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j DROP
[0:0] -A INPUT -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j DROP
[0:0] -A INPUT -p icmp -m icmp --icmp-type 8 -j DROP
[0:0] -A INPUT -p udp -m udp --dport 53 -j ACCEPT
[0:0] -A INPUT -p udp -m udp --sport 53 -j ACCEPT
[0:0] -A INPUT -s 140.142.16.34 -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -s 128.118.25.3 -p udp -m udp --dport 123 -j ACCEPT
-A INPUT -s 137.207.92.2 -p udp -m udp --dport 123 -j ACCEPT
[0:0] -A INPUT -p udp -j DROP
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Thu Apr 1 01:08:41 2004
- note that: "/etc/init.d/iptables clear" clears the table (not stop).
- Note: 6881-6890 is bittorrent; 6891 is amsn; 123 is ntpdate...
- The nat, mangle, and state are used so that I can use my laptop as a
router for people who don't have wireless access cards (I can just
use a crossover cable). I just have to do this:
- instead of 'echo "1" > /proc/sys/net/ipv4/ip_forward', add this to
/etc/sysctl.conf:
sys/net/ipv4/ip_forward=1 (this one didnt work. i will test the one below)
net/ipv4/ip_forward=1
- I set my eth0 (my eth1 network is 10.0.0.x): ifconfig eth0 inet 192.168.100.1 netmask 255.255.255.0. (actually, /etc/network/interfaces looks like:)
iface eth0 inet static
address 192.168.100.1
netmask 255.255.255.0
- The other machine was set to 192.168.100.2, gw: 192.168.100.1, dns: 10.0.0.1 (my router)
- I decided to run a DHCP server to make life easier for me:
apt-get install dhcp
- /etc/dhcpd.conf:
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.2 192.168.100.254 ;
option domain-name-servers 10.0.0.1;
option routers 192.168.100.1;
}
subnet 192.168.118.0 netmask 255.255.255.0 {}
subnet 172.16.16.0 netmask 255.255.255.0 {}
subnet 10.0.0.0 netmask 255.255.255.0 {}
VPN - for University of Windsor
Replacing LILO with Grub
- run:
apt-get install grub grub-doc
grub-install
mv /sbin/lilo /sbin/lilo.old (just in case if you accidentally run lilo and overwrite grub)
- i love grub! you only have to write the MBR once, and you'll never
need to run grub-install again. It sees /boot/boot/grub/menu.lst directly!
- a lot of debian commands begin with "update-". run "update-grub" and it will regenerate the /boot/boot/grub/menu.lst based on any new kernels it finds.
There is a debian config section of menu.lst that update-grub uses, and a fixed section. In the fixed section, I have:
#timeout 5 <- commented out since i want to manually select
password --md5 $1$ViNUblablabla # generated with "grub-md5-crypt"... this password-protects editing options
title Windows XP
root (hd0,0) # NOTE: hd0=hda, hd0,0=hda1 (partitions start at 0)
- The debian section uses single #'s for its options and uses ## for comments. The relevant parts are:
# kopt=root=/dev/hda7 ro vga=ext
# groot=(hd0,1)
# alternative=true
# altoptions=(recovery mode) single
# howmany=all
- These are used to generate the actual non-commented part of the file which is automatically generated by update-grub.
Sound
- I didn't have to do anything for sound.
- "i810_audio" was added to /etc/modules in order for /dev/dsp to be found.
- I added "weller" (my username) to the "audio:" line in /etc/group, since /dev/dsp is group-owned by audio.
- My mozilla shortcut is aliased in .tcshrc: alias mozilla 'artsdsp mozilla \!* &'
- Also, the shortcut on my desktop executes "artsdsp mozilla".
- In amsn, I had to go: Tools -> Others -> Sound Server: "artsdsp play $sound"
No X option in GRUB menu
- I copied and pasted an entry from the bottom to the 2nd option in /boot/boot/grub/menu.lst (to the non-debian section):
title Debian GNU/Linux, kernel 2.6.5 - no X
root (hd0,1)
kernel /vmlinuz root=/dev/hda7 ro vga=ext nox
savedefault
boot
- I then added this to the top of /etc/init.d/kdm:
if (( `grep -c nox /proc/cmdline` )) ; then
exit 0
fi
Fixing reboot problem - linux hangs after USB initialization
- NOTE: Kernel 2.6 does not have this problem! i kept it here in case i wanted to go back to kernel 2.4.
- you want to "rmmod usb-uhci" before your system reboots.
- go: "cd /etc/rc6.d; ln -s ../init.d/usb S21usb"
- add "/sbin/rmmod usb-uhci" to /etc/init.d/usb
Toshiba Fan - keep fan on if AC plugged in
- apt-get install toshutils
- cd /etc/rc2.d/; ln -s ../init.d/fan S99fan
- /etc/init.d/fan basically contains "/usr/bin/fan -s", but the /etc/init.d/fan script is a bit fancier.
Screensaver resolution problem
- For some reason, the BIOS console blanker would never return me to the
proper resolution when it returns. I disabled it with "toshset -d 0", and then set the "blank screen" screensaver in the KDE properties.
fstab stuff
- I added these lines to /etc/fstab:
/dev/cdrom /dvd udf ro,user,noauto 0 0
/dev/hda6 /share vfat rw,user,uid=1000 0 0
- The reason why I added /dvd with udf is that when i mount my DVDs with the
default iso, i lose long filename support. Whenever i mount a DVD, I go: "mount /dvd". uid=1000 is my normal account UID, so I don't have to mess with permissions.
- I wanted to share a partition with windows, so I have a 800M
vfat partition which i formatted with:
mkdir /share
mkfs -t vfat /dev/hda6
mount /share
Time Synchronization
- apt-get install ntpdate
- I modified /etc/default/ntpdate:
# servers to check
NTPSERVERS="128.118.25.3 137.207.92.2 140.142.16.34"
- I also modified /etc/init.d/ntpdate to sync the system clock to the hardware clock: (i had to remove -u for some reason; also -s since i wanted to see it working on stdout)
/usr/sbin/ntpdate -b $NTPOPTIONS $NTPSERVERS
/sbin/hwclock --systohc
- I added the "123" lines to the /var/lib/iptables/active:
[0:0] -A INPUT -s 140.142.16.34 -p udp -m udp --dport 123 -j ACCEPT
[0:0] -A INPUT -s 128.118.25.3 -p udp -m udp --dport 123 -j ACCEPT
[0:0] -A INPUT -s 137.207.92.2 -p udp -m udp --dport 123 -j ACCEPT
- My ntpdate starts WAY too soon. I had to: rm /etc/rcS.d/S51ntpdate; cd /etc/rc2.d; ln -s ../init.d/ntpdate S99ntpdate
VMWare Workstation
Emacs
- apt-get install emacs21
- (here's my .emacs file - put in homedir)
Amsn
- apt-get install amsn
- tools -> others -> sound server -> artsdsp play $sound
- On amsn's site, it states: "Regarding Kernel 2.6: aMSN hangs randomnly when using kernel 2.6...I'm using tcl/tk 8.3 on Debian, Linux Kernel 2.6.4 and everything works perfect."
- I had to: "apt-get remove tk8.4; apt-get install tk8.3 amsn" and I'll see if that fixes it.
Konqueror
- this is cool. from konqueror (click on Home on desktop), try this URL out: fish://username@hostname:port
- as long as perl and sshd is on the remote host (omit :port is not on port 22), then you can browse all the files on that system!!! sure as hell beats scp!!
- bookmark this. if you edit the file and make a change, it will reupload that to the server.
- Actually, you can create these links on the desktop! just go: right-click -> create new -> link to URL -> fish://user@host
MPlayer
MPlayer - easier way
Add to /etc/apt/sources.list:
deb ftp://ftp.nerim.net/debian-marillat/ testing main
apt-get update
apt-get install acroread mplayer-586 mplayer-686 mplayer-fonts w32codecs
/etc/mplayer/mplayer.conf:
vo=gl
ao=arts