auto wlan0
iface wlan0 inet dhcp
wireless-essid MYNETWOTK
wireless-key FEFEFEFEFE
wireless-channel 11
wireless-mode managed
Wednesday, March 31, 2010
Saturday, March 27, 2010
Bootup time.
There are a few links about reducing boot up time.
http://elinux.org/Boot_Time
http://free-electrons.com/docs/optimizations/
http://guvnr.com/pc/ubuntu-disable-services/
http://elinux.org/Boot_Time
http://free-electrons.com/docs/optimizations/
http://guvnr.com/pc/ubuntu-disable-services/
Splash Screen
The latest Karmic ubuntu use xsplash. All the pictures are in /usr/share/image/xplash.
Here is a link you want to check out if you want to change it.
http://georgia.ubuntuforums.org/showthread.php?t=1333683
To totally remove it to save time on boot.
Here is a link you want to check out if you want to change it.
http://georgia.ubuntuforums.org/showthread.php?t=1333683
To totally remove it to save time on boot.
cp /etc/dbus-1/system.d/xsplash.conf ~/xsplash.conf
sudo rm /etc/dbus-1/system.d/xsplash.conf
sudo touch /etc/dbus-1/system.d/xsplash.conf
Correct time
The wireless router does not allow NTP access to the ntp server. Other method need to be used to sync time. One thing I am going to use is the navy.mil timer. The following python code will set the system time to the time from navy.
#!/usr/bin/python
import urllib2, os
Time_Url="http://tycho.usno.navy.mil/cgi-bin/timer.pl"
fp = urllib2.urlopen(Time_Url)
data = fp.read().split()
Month=data[34][4:7]
Day=data[35][0:2]
Time=data[36]
Set_Date= Day+ " "+ Month+" 2010 "+ Time
print Set_Date
os.execlp("/bin/date", "date", "-s", Set_Date)
fp.close()
Auto login
To make auto login in runlevel 5, you can change /etc/gdm/gdm.conf.
To change your run level and auto login, you need to do the following.
in /etc/init/rc-sysinit.conf:
---------------
env DEFAULT_RUNLEVEL=3
---------------
in /etc/init/gdm.conf:
---------------
start on (filesystem
and started hal
and tty-device-added KERNEL=tty7
and (graphics-device-added or stopped udevtrigger)
and runlevel [!3])
stop on runlevel [016]
---------------
The default login is getty, which does not support auto login. You need install mingetty and change your /etc/init/tty1.conf as the following:
---------------
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
#exec /sbin/getty -8 38400 tty1
exec /sbin/mingetty --autologin setup tty1
----------------
So the runlevel will enable you into runlevel 3,and mingetty will enable the autologin. The next thing you need to do is to auto start x-window.
.xinitrc
----------------
/usr/bin/python /home/setup/python/updated_V19.py
----------------
.profile add the following line to the end.
----------------
startx
----------------
\n
To change your run level and auto login, you need to do the following.
in /etc/init/rc-sysinit.conf:
---------------
env DEFAULT_RUNLEVEL=3
---------------
in /etc/init/gdm.conf:
---------------
start on (filesystem
and started hal
and tty-device-added KERNEL=tty7
and (graphics-device-added or stopped udevtrigger)
and runlevel [!3])
stop on runlevel [016]
---------------
The default login is getty, which does not support auto login. You need install mingetty and change your /etc/init/tty1.conf as the following:
---------------
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
#exec /sbin/getty -8 38400 tty1
exec /sbin/mingetty --autologin setup tty1
----------------
So the runlevel will enable you into runlevel 3,and mingetty will enable the autologin. The next thing you need to do is to auto start x-window.
.xinitrc
----------------
/usr/bin/python /home/setup/python/updated_V19.py
----------------
.profile add the following line to the end.
----------------
startx
----------------
\n
Friday, March 26, 2010
USB hub
If I need to create my own USB hub, here is the link I can check.
http://www.howtofixcomputers.com/forums/homebuilt-pc/make-usb-hub-27036.html
http://www.howtofixcomputers.com/forums/homebuilt-pc/make-usb-hub-27036.html
Wireless problem solved?
It appears that the wireless AP I connected to has "ping" disabled. Even though I can't ping anywhere, which was what I have been trying in the past few days, I can still browse the internet. I am not sure what other function has been disabled. I will figure it out tomorrow.
The Belkin wireless adapter uses rt73 driver. That can be installed from the kernel. Once installed. You can use a command line:
-------------
sudo iwconfig wlan0 essid "NDSU"
sudo dhclient wlan0
sudo ifconfig
-------------
That should work and make. If the wireless gets lost after reboot, you need change the interfaces and add dhclient to rc.local file.
The Belkin wireless adapter uses rt73 driver. That can be installed from the kernel. Once installed. You can use a command line:
-------------
sudo iwconfig wlan0 essid "NDSU"
sudo dhclient wlan0
sudo ifconfig
-------------
That should work and make. If the wireless gets lost after reboot, you need change the interfaces and add dhclient to rc.local file.
Subscribe to:
Posts (Atom)