Archive for the 'eeepc' Category

eeepc 701 – ubuntu 8.10 wlan

3 Comments

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

fun with netcat / netcat examples

Add a comment

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:

  • a chat server:

on the server:

  1. $ nc -l [PORT]


on the client:

  1. $ nc [SERVER] [PORT]

  • act as a port scanner:

  1. $ nc -vz [HOST] [STARTPORT]-[STOPPORT]


for example:

  1. $ nc -vz localhost 80-90


this command scans for open ports between port 80 and port 90 on the localhost

  • sending devices:

on the server:

  1. $ dd if=/dev/mem | nc [RECEIVER-HOST] [PORT]


on the client:

  1. $ nc -l -v -p [PORT]>ram

  • act as a terminal-server:

on the server:

  1. $ nohup nc -l -p [PORT] -n -e /bin/sh &


on the client:

  1. $ nc -nvv [SERVER-IP] [PORT]


and here’s my favorite:

  • testing a service stabilty:

  1. $ 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

nohup – no output file / no nohup.out

1 Comment

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:

  1. alias nohup=’/usr/bin/nohup >/dev/null 2>&1′
  2. nohup ‘command’ &

don’t forget the & !!!

this is really “dodl-sicha” [tyrolian slang]

cheerz chaos

eeepc issue issue.net

1 Comment

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:

  1. #!/usr/bin/python
  2. # -*- encoding: iso-8859-15 -*-
  3.  
  4. import os
  5.  
  6. print ‘DATE/TIME:’
  7. os.system(‘date’)
  8. print
  9. print ‘SYSINFO:’
  10. os.system(‘uname -a’)
  11. print
  12. print ‘BATTERY:’
  13. os.system(‘cat /proc/acpi/battery/BAT0/state’)
  14. print
  15. print ‘FS-USAGE:’
  16. os.system(‘df -h’)
  17. print


what does it do?

it gives u a little overview about your eeepc state:

  1. date and time
  2. system information (hostname, kernel-version)
  3. battery-state
  4. filesystem usage (human readable)

anything missing?

please leave a comment!!!

ubuntu on the eeePC

1 Comment

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:

  1. #!/bin/sh
  2. echo ""
  3. echo "*** Ubuntu 8.04 LTS Tweak ***"
  4. echo "***     version 0.0.1     ***"
  5. echo "***      www.x2on.de      ***"
  6. echo ""
  7. echo "thx to http://ubuntu-eee.tuxfamily.org/"
  8. echo "thx to http://code.google.com/p/eee-osd/"
  9. echo ""
  10. echo "** Gnome settings"
  11. echo "* Setting smaller font sizes"
  12. gconftool-2 –set /apps/nautilus/preferences/desktop_font –type string "Sans 8"
  13. gconftool-2 –set /desktop/gnome/interface/document_font_name –type string "Sans 8"
  14. gconftool-2 –set /desktop/gnome/interface/font_name –type string "Sans 8"
  15. gconftool-2 –set /apps/metacity/general/titlebar_font –type string "Sans Bold 8"
  16. gconftool-2 –set /desktop/gnome/interface/monospace_font_name –type string "Monospace 9"
  17. echo "* Smaller toolbars icons only"
  18. gconftool-2 –set /desktop/gnome/interface/toolbar_style –type string "icons"
  19. echo "* Disabling UI sounds"
  20. gconftool-2 –set /desktop/gnome/sound/event_sounds –type bool 0
  21. echo "* Fixing mute key"
  22. gconftool-2 –set /desktop/gnome/sound/default_mixer_tracks –type list –list-type string "[PCM]"
  23. echo "* Fullscreen with -F11"
  24. gconftool-2 –set /apps/metacity/window_keybindings/toggle_fullscreen –type string "F11"
  25. echo "* Setting suspend when closing lid, blank screen"
  26. gconftool-2 –set /apps/gnome-power-manager/actions/sleep_type_battery –type string "suspend"
  27. gconftool-2 –set /apps/gnome-power-manager/actions/sleep_type_ac –type string "suspend"
  28. gconftool-2 –set /apps/gnome-power-manager/buttons/lid_battery –type string "suspend"
  29. gconftool-2 –set /apps/gnome-power-manager/buttons/lid_ac –type string "blank"
  30. gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_computer_ac –type int 0
  31. gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_computer_battery –type int 300
  32. gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_display_ac –type int 300
  33. gconftool-2 –set /apps/gnome-power-manager/timeout/sleep_display_battery –type int 60
  34. echo "* Don’t display battery warning"
  35. gconftool-2 –set /apps/gnome-power-manager/notify/low_capacity –type bool 0
  36. echo "* Unconstraining windows to the top of the screen"
  37. gconftool-2 –type bool –set /apps/compiz/plugins/move/allscreens/options/constrain_y 0
  38. echo "Gnome-settings done."
  39. echo "** Installing ACPI modules"
  40. sudo apt-get update
  41. sudo apt-get install -y -f build-essential module-assistant eeepc-acpi-source  –force-yes
  42. sudo m-a a-i eeepc-acpi
  43. sudo cp /etc/modules ~/modules.tmp
  44. sudo chmod 777 ~/modules.tmp
  45. echo "eeepc-acpi" >> ~/modules.tmp
  46. sudo chmod 644 ~/modules.tmp
  47. sudo mv ~/modules.tmp /etc/modules
  48. echo "** Installing WLAN"
  49. wget ‘http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz’
  50. tar zxvf madwifi-nr-r3366+ar5007.tar.gz
  51. cd madwifi-nr-r3366+ar5007
  52. make clean
  53. make
  54. sudo make install
  55. echo "** Installing OSD"
  56. wget http://eee-osd.googlecode.com/files/eee-osd_2.1-0eeeXubuntu1_i386.deb
  57. sudo dpkg -i eee-osd_2.1-0eeeXubuntu1_i386.deb
  58. echo "** Configuring Sound"
  59. echo "options snd-hda-intel model=3stack-dig" > ~/snd-hda-intel.tmp
  60. sudo mv ~/snd-hda-intel.tmp /etc/modprobe.d/snd-hda-intel
  61. echo "Done! Please reboot now"


What does this script do?

  1. Smaller font-size for gnome
  2. Fixing the mute-key
  3. Fullscreen mode (with <Alt>-F11)
  4. Suspend when closing lid
  5. Don’t display battery warning
  6. Installing ACPI-modules
  7. 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