Ubuntu:Edgy th/Troubleshooting
From
[edit]
Troubleshooting
[edit]
How to disable system time/date from being reset to UTC (GMT)
- Read #General Notes
sudo cp /etc/default/rcS /etc/default/rcS_backup gksudo gedit /etc/default/rcS
- Find this line
... UTC=yes ...
- Replace with the following line
UTC=no
- Save the edited file
- System -> Administration -> Time and Date
Set the correct time/date
sudo /etc/init.d/hwclock.sh restart
[edit]
How to configure sound to work properly in GNOME
- Read #General Notes
- Read #How to add extra repositories
sudo killall esd sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup gksudo gedit /etc/esound/esd.conf
- Find this section
... auto_spawn=0 spawn_options=-terminate -nobeeps -as 5 ...
- Replace with the following lines
auto_spawn=1 spawn_options=-terminate -nobeeps -as 2 -d default
- Save the edited file
sudo apt-get install libesd-alsa0 gksudo gedit /etc/asound.conf
- Insert the following lines into the new file
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
- Save the edited file
sudo ln -fs /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
System -> Preferences -> Sound Sound preferences
General Tab -> Sounds for events (Un-Checked)
- Save and close all opened applications, Reboot computer
[edit]
How to forcefully empty Trash in GNOME
- Read #General Notes
sudo rm -fr $HOME/.Trash/
[edit]
How to remove duplicate menu/menu items in GNOME
- Read #General Notes
rm -f $HOME/.config/menus/applications.menu
[edit]
How to refresh Places menu in GNOME (if mounts to /media/ in /etc/fstab does not show up)
- Read #General Notes
sudo /etc/init.d/dbus restart
[edit]
How to consume static (not dhcp) wireless LAN (WLAN) connection (KDE)
- I assume you have successfully consumed WLAN connection in Windows
- To enable the network device please follow the following steps
- Go to K-menu -> System Settings -> Network Settings
- Enable Administrator mode
- Select Network Interfaces tab and the wireless interface (usually ath0) to configure
- Click Configure Interface...
- Choose Manual or Automatic. Choose Manual
- Fill the preferred IP address to identify your computer and the netmask. Choose to activate when computer starts
- Click Advanced Settings to for more properties
- Select Routes tab and fill the gateway IP address
- Make sure you choose the correct device in the right dropdown (e.g. ath0)
- Click apply to commit all changes
- To choose wireless connection please follow the following steps
- Go to K-menu -> Internet -> Wireless Assistant
- Right click on preferred connection ssid
- Choose and complete fields for Manual connection
- Click Ok
- Create connection configuration
gksudo gedit /etc/wpa_supplicant.conf
- Insert the following lines into the new file
network={
ssid="YOUR_PREFERRED_CONNECTION_SSID"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
psk="STRING_TO_GENERATE_PASSWORD"
#psk=123456789 #you have option to use connection key instead of connection password
}
- Save the edited file
- Create script to easily activate connection
gksudo gedit /etc/init.d/wifi_wpa.sh
- Insert the following lines into the new file
#! /bin/sh # wifi: wpa_supplicant init echo " * [Wifi]: Enabling WPA supplicant..." if [ -x /sbin/wpa_supplicant ]; then /sbin/wpa_supplicant -B -i ath0 -c /etc/wpa_supplicant.conf -D madwifi -w fi exit 0
- Save the edited file
- Make sure both file readable and executable
sudo chmod +r /etc/wpa_supplicant.conf sudo chmod +x /etc/init.d/wifi_wpa.sh
- make wireless connection automaticaly starts when computer starts
sudo ln -s /etc/init.d/wifi_wpa.sh /etc/rcS.d/S40netwifiwpa
- Close all opened applications, Reboot computer
[edit]

