Recent Notes

Displaying keyword search results 1 - 10
Created by woolf on September 07, 2011 08:16:10    Last update: November 26, 2012 20:50:39
Follow these steps to restore the Gnome panel if you deleted it by accident: Open a terminal by bringing up the Run dialog and entering gnome-terminal In the terminal enter: $ gconftool-2 --shutdown $ rm -rf ~/.gconf/apps... For Unity, use: unity --reset unity --replace
Created by Dr. Xi on February 06, 2012 09:19:27    Last update: February 06, 2012 09:19:27
These are the steps to install the Oracle sqlplus command line utility on Ubuntu Linux: Get Oracle instant client packages from Oracle (you'll need basic or basiclite + sqlplus). Install the RPM files with alien : $ sudo alien -i oracle-instantclient11.2-basic-11.... Install Oracle shared libraries: create file /etc/ld.so.conf.d/oracle.conf and add this line: /usr/lib/oracle/11.2/client/lib then run sudo ldconfig
Created by woolf on September 07, 2011 08:09:03    Last update: September 07, 2011 08:09:03
Use the shortcut Alt+F2 to bring up the "Run" dialog. This may be handy when you lost the Gnome panel on the desktop.
Created by woolf on July 05, 2011 16:03:48    Last update: July 05, 2011 16:03:48
The DHCP client packaged with BusyBox is udhcpc . It negotiates a lease with the DHCP server and executes a script when it is obtained or lost. There are four possible arguments to this script: deconfig : The script should put the interface in an up but deconfigured state. bound : The script should configure the interface and set any other relevant parameters. renew : This is used when a lease is renewed. IP address does not change but other parameters may change. nak : This happens when a NAK packet is received from the DHCP server. Network parameters are passed to the script via environment variables. Ubuntu documents that the default script is at /etc/udhcpc/default.script . For OpenWRT, it is located at /usr/share/udhcpc/default.script ....
Created by magnum on June 23, 2011 13:44:21    Last update: June 23, 2011 13:59:26
Fedora/Redhat List current status (for httpd): # chkconfig --list httpd Warning: this works only when one of /etc/rc runlevel .d/ K NN name or /etc/rc runlevel .d/ S NN name exists. It exports wrong status when both K and S scripts exist (in which case the status should be enabled). Enable sshd for run levels 2, 3, 5: # chkconfig --level 2,3,5 sshd on Disable sshd for run levels 2, 3, 5: # chkconfig --level 2,3,5 sshd off By default, the on and off options affect only runlevels 2, 3, 4, and 5. Debian/Ubuntu Add apache2 with defaults : # update-rc.d apache2 defaults If defaults is used then update-rc.d will make links to start the service in runlevels 2, 3, 4, 5 and to stop...
Created by freyo on March 08, 2011 15:15:04    Last update: March 08, 2011 15:15:39
Android Developer site gives instructions on how to connect to a phone from Ubuntu, but no instructions are given for Fedora. These are the steps I followed to connect adb to a Samsung phone on Fedora 14: As root, create a file named /etc/udev/rules.d/51-android.rules with following contents (04e8 is Samsung vendor id): SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0... As root, run udevadm control --reload-rules Unlug the phone if clready connected. Connect to phone with adb (kill server if already started): $ ./adb kill-server $ ./adb devices * daemon...
Created by Dr. Xi on September 29, 2008 23:21:38    Last update: January 16, 2010 23:36:05
Create a startup script for inetd Copy /etc/init.d/skeleton to /etc/init.d/inetd . Change the top section of the script to read: PATH=/usr/sbin:/usr/bin:/sbin:/bin DESC="In... Now inetd can be stopped/started/restarted like this: sudo /etc/init.d/inetd stop sudo /etc/init.... Add links to rc*.d $ sudo update-rc.d inetd defaults Adding sy... If you no longer need to start inetd at boot up: $ sudo update-rc.d -f inetd remove update-r... This would remove the links from the start up sequence but leave /etc/init.d/inetd in place. Contents of /etc/init.d/skeleton : #! /bin/sh ### BEGIN INIT INFO # Provide...
Created by Dr. Xi on October 01, 2008 23:13:51    Last update: October 01, 2008 23:14:51
Run levels locations Level Location 0 /etc/rc0.d 1 /etc/rc1.d 2 /etc/rc2.d 3 /etc/rc3.d 4 /etc/rc4.d 5 /etc/rc5.d 6 /etc/rc6.d Standard run levels ID Name Description 0 Halt Shuts down the system. S Single-User Mode Does not configure network interfaces or start daemons. 6 Reboot Reboots the system. Debian Linux (Ubuntu) ID Description 0 Halt 1 Single user mode 2-5 Full multi-user with console logins and display manager if installed 6 Reboot Red Hat Linux (Fedora) ID Description 0 Halt 1 Single user 2 Not used/User definable 3 Full multi-user, console logins only 4 Not used/User definable 5 Full multi-user, with display manager as well as console logins 6 Reboot
Created by Dr. Xi on September 05, 2008 23:28:14    Last update: September 05, 2008 23:28:14
In order for a user to run sudo , he must be in the sudoers file. You can use your favorite editor to change the file: sudo gedit /etc/sudoers Or, if you use vim , you can use: sudo visudo Scroll down to the line root ALL = (ALL) ALL and add the_user_to_add ALL = (ALL) ALL If you are not a sudoer but have root password, you should do su - to become root before editing /etc/sudoers . If you are using Ubuntu, this works too: sudo adduser username admin
Created by Dr. Xi on August 27, 2007 01:51:53    Last update: August 27, 2007 01:57:34
If you are using Ubuntu, there's a good tutorial on how to automate the startup of wpa_supplicant here: http://ubuntuforums.org/showthread.php?t=31418 . For Fedora Core, this is a good reference: http://www.ces.clemson.edu/linux/auto_connect.shtml . Following the guidelines of the latter, this is what I did: 1. Add line WPA=yes to /etc/sysconfig/network-scripts/ifcfg-wlan0 and change change ONBOOT to "yes" . 2. Add these lines to the end of /etc/sysconfig/network-scripts/ifup-wireless : if [ "$WPA" = "yes" -a -x /usr/local/bin/wpa_suppl... 3. Create a file /etc/sysconfig/network-scripts/ifdown-wireless with these lines: #!/bin/bash if [ "$WPA" = "yes" -a -x /usr/... 4. Add the following line to /etc/sysconfig/network-scripts/ifdown : is_wireless_device ${DEVICE} && . ./ifdown-wireles... before the line: OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown...