3 Comments March 12th, 2009 by chaos
hi guys!
If your atheros chip can’t be detectet here’s a little howto enable it:
adding the repository:
echo “deb http://archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse” >> /etc/apt/sources.list
now update aptitude and install the modules:
apt-get update && aptitude install linux-backports-modules-intrepid
last step is to add the modules to the startup:
echo “blacklist ath_pci” >> /etc/modprobe.d/blacklist
reboot and you’re done!
now your should look like this:
root@hades:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:”"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
cheers, chaos
Add a comment June 13th, 2008 by chaos
yesterday (after i did some nasty things with my girlfriend),
i was sitting before my computer and had a look into the deeeeep black bash =]
okay, it makes no sense at all, i will start now:
my 5 favorite netcat (nc) commands:
on the server:
on the client:
-
$ nc -vz [HOST] [STARTPORT]-[STOPPORT]
for example:
this command scans for open ports between port 80 and port 90 on the localhost
on the server:
-
$ dd if=/dev/mem | nc [RECEIVER-HOST] [PORT]
on the client:
- act as a terminal-server:
on the server:
-
$ nohup nc -l -p [PORT] -n -e /bin/sh &
on the client:
-
$ nc -nvv [SERVER-IP] [PORT]
and here’s my favorite:
- testing a service stabilty:
-
$ cat < /dev/urandom | nc [HOST] [PORT]
you don’t have netcat?
type:
apt-get update && apt-get install netcat
or do it by yourself:
netcat
greetz chaos
1 Comment June 2nd, 2008 by chaos
what is ‘nohup’?
- nohup execute commands after you exit from a shell prompt (also ssh-session)
- it ignores the signals: SIGHUP SIGINT SIGQUIT and SIGTERM
how does it work?
it’s very simple:
- alias nohup=’/usr/bin/nohup >/dev/null 2>&1′
- nohup ‘command’ &
don’t forget the & !!!
this is really “dodl-sicha” [tyrolian slang]
cheerz chaos
1 Comment May 20th, 2008 by chaos
here’s a little pyhon script (very little, but interesting) for the issue or issue.net (located in /etc):
i justed added this script (sysinfo.py) in it:
-
#!/usr/bin/python
-
# -*- encoding: iso-8859-15 -*-
-
-
import os
-
-
print ‘DATE/TIME:’
-
os.system(‘date’)
-
print ”
-
print ‘SYSINFO:’
-
os.system(‘uname -a’)
-
print ”
-
print ‘BATTERY:’
-
os.system(‘cat /proc/acpi/battery/BAT0/state’)
-
print ”
-
print ‘FS-USAGE:’
-
os.system(‘df -h’)
-
print ”
what does it do?
it gives u a little overview about your eeepc state:
- date and time
- system information (hostname, kernel-version)
- battery-state
- filesystem usage (human readable)
anything missing?
please leave a comment!!!
1 Comment May 16th, 2008 by chaos
First of all i have to say that xandros-linux isn’t a “free”-OS for me.
So i decided to put ubuntu 8.04 on the eeepc.
First i tryed to install the ubuntu 8.04 alternate (because of security-fs),
but ran into issues, because of the mount-points … i tryed to fix it 2 hours,
then i gave up!
So i took the “normal” Ubuntu 8.04 iso image and made a bootable USB-stick out of it (google knows).
The installation-process worked like a charm!
On the first boot i had some issues with the LAN-access … so i asked google for it (yes, google knows, i also call him sepp – muhaha sepp google, nice name)
I found the solution – shutdown your eee, unplug the AC and the battery! wait about 5 seconds, replug everything and WoW … it works!
next problem:
The Atheros-chipset doesn’t work with the standard drivers (don’t know if they are madwifi-drivers)
So i asked SEPP for it — OH! What a wonder — he gave me the solution !!!
Here’s a little script with some eye-candy thing:
-
#!/bin/sh
-
-
echo "*** Ubuntu 8.04 LTS Tweak ***"
-
echo "*** version 0.0.1 ***"
-
echo "*** www.x2on.de ***"
-
-
echo "thx to http://ubuntu-eee.tuxfamily.org/"
-
echo "thx to http://code.google.com/p/eee-osd/"
-
-
-
echo "* Setting smaller font sizes"
-
gconftool-2 –set /apps/nautilus/preferences/desktop_font –type string "Sans 8"
-
gconftool-2 –set /desktop/gnome/interface/document_font_name –type string "Sans 8"
-
gconftool-2 –set /desktop/gnome/interface/font_name –type string "Sans 8"
-
gconftool-2 –set /apps/metacity/general/titlebar_font –type string "Sans Bold 8"
-
gconftool-2 –set /desktop/gnome/interface/monospace_font_name –type string "Monospace 9"
-
echo "* Smaller toolbars icons only"
-
gconftool-2 –set /desktop/gnome/interface/toolbar_style –type string "icons"
-
echo "* Disabling UI sounds"
-
gconftool-2 –set /desktop/gnome/sound/event_sounds –type bool 0
-
-
gconftool
-2 –set /desktop/gnome/sound/default_mixer_tracks –type
list –list-type string
"[PCM]"
-
echo "* Fullscreen with -F11"
-
gconftool-2 –set /apps/metacity/window_keybindings/toggle_fullscreen –type string "F11"
-
echo "* Setting suspend when closing lid, blank screen"
-
gconftool-2 –set /apps/gnome-power-manager/actions/sleep_type_battery –type string "suspend"
-
gconftool-2 –set /apps/gnome-power-manager/actions/sleep_type_ac –type string "suspend"
-
gconftool-2 –set /apps/gnome-power-manager/buttons/lid_battery –type string "suspend"
-
gconftool-2 –set /apps/gnome-power-manager/buttons/lid_ac –type string "blank"
-
gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_computer_ac –type int 0
-
gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_computer_battery –type int 300
-
gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_display_ac –type int 300
-
gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_display_battery –type int 60
-
echo "* Don’t display battery warning"
-
gconftool-2 –set /apps/gnome-power-manager/notify/low_capacity –type bool 0
-
echo "* Unconstraining windows to the top of the screen"
-
gconftool-2 –type bool –set /apps/compiz/plugins/move/allscreens/options/constrain_y 0
-
echo "Gnome-settings done."
-
echo "** Installing ACPI modules"
-
sudo apt-get update
-
sudo apt-get install -y -f build-essential module-assistant eeepc-acpi-source –force-yes
-
sudo m-a a-i eeepc-acpi
-
sudo cp /etc/modules ~/modules.tmp
-
sudo
chmod 777 ~/modules.tmp
-
echo "eeepc-acpi" >> ~/modules.tmp
-
sudo
chmod 644 ~/modules.tmp
-
sudo mv ~/modules.tmp /etc/modules
-
echo "** Installing WLAN"
-
wget ‘http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz’
-
tar zxvf madwifi-nr-r3366+ar5007.tar.gz
-
cd madwifi-nr-r3366+ar5007
-
make clean
-
make
-
sudo make install
-
-
wget http://eee-osd.googlecode.com/files/eee-osd_2.1-0eeeXubuntu1_i386.deb
-
sudo dpkg -i eee-osd_2.1-0eeeXubuntu1_i386.deb
-
echo "** Configuring Sound"
-
echo "options snd-hda-intel model=3stack-dig" > ~/snd-hda-intel.tmp
-
sudo mv ~/snd-hda-intel.tmp /etc/modprobe.d/snd-hda-intel
-
echo "Done! Please reboot now"
What does this script do?
- Smaller font-size for gnome
- Fixing the mute-key
- Fullscreen mode (with <Alt>-F11)
- Suspend when closing lid
- Don’t display battery warning
- Installing ACPI-modules
- Fixing wlan (madwifi drivers)
yipiiii! everything works just nice!
also the HUAWEI E-220 Modem (if you want a nice interface for it – try umtsmon)
so on … stay’tuned