The standard way to create a Windows boot disk is to have access to a Windows system. If you have access to a Linux system instead, and know a couple tricks, you can create boot disk as well. The first thing to do is find a website that has the boot disks available for download. There are plenty of these out there so take your pick. The only thing you must specifically do is make sure that you download the disk image and not a self extracting executable file which must be run under Windows. If the image is zipped…
Author: Ryan
To get Skype audio working with Ubuntu Intrepid Ibex (Ubuntu 8.10) and Dell XPS M1530/M1330 requires a few changes to the standard install. Make sure you have added the medibuntu repository and installed Skype. You need to enable the embedded microphone. Go to Volume Control by clicking on the volume icon. In Preferences select Digital Input Source. This will enable the Digital Mic 1 option which you should select. Now launch Skype and go into Options -> Sound Devices. Select “HDA Intel (hw:Intel,0)” for Sound In, Sound Out, and Ringing. Go ahead and make a test call to verify that…
The Medibuntu repository (Multimedia, Entertainment & Distractions In Ubuntu) contains packages that cannot be included into the Ubuntu distribution for legal reasons. Some of these packages include Skype Acrobat Reader, Google Earth, and multimedia codecs. Add Medibuntu to your sources.list. Make sure you specify the correct version of your distribution. This example uses Intrepid Ibex (Ubuntu 8.10). # wget http://www.medibuntu.org/sources.list.d/intrepid.list –output-document=/etc/apt/sources.list.d/medibuntu.list Then add its GPG key to your keyring. # apt-get update && apt-get install medibuntu-keyring && apt-get update Now you should be able to install packages in this repository.
Updating your kernel is important if you want to take advantage of new hardware support or bleeding edge features. Aside from these obvious benefits it also allows you to keep up with security patches, system optimization, and overall stability issues. The first thing you have to do is emerge the latest gentoo-sources package. # emerge -u gentoo-sources The source will now be installed in /usr/src/linux-2.6.27-gentoo-r2. Your specific version will differ from this one of course. You now need to update the symlink to point to the new sources. # cd /usr/src # ln -s linux-2.6.27-gentoo-r2 linux If your kernel is…
BASH has the ability to execute a command string and replace that string with the output of the command. Or to say it another way, the output of a command will replace the command itself. There are 2 ways to accomplish this. The first is to surround the command with backticks or blockquotes. `command` You can also substitute with dollar symbol and parenthesis. $(command) The following will do a direct substitution of the current username on the command line. $ echo /home/$(whoami) /home/ryan Another great use is the ability to assign a command to an environment variable. $ MYDATE=`date` or…
You can identify the path the the controlling terminal device path for your current process in C with the ttyname() system call. This controlling terminal can be a virtual console (/dev/ttyn) or a pseudo-terminal (/dev/pts/n). The ttyname system call takes the following format. char *ttyname(int fd); The stdin, stdout, stderr file descriptors unless redirected are by default mapped to the controlling terminal. So for example you can pass it the stdin file descriptor. char * pathname; pathname = ttyname(0); printf(“controlling terminal : %s\n”, pathname); controlling terminal : /dev/pts/0
The default DHCP timeout is nearly 30 seconds on most Gentoo Linux systems. This can be a frustrating on startup if you already have wireless connected but are forced to wait on an unused ethernet interface. On most networks the DHCP timeout can be safely lowered without problems. DHCP can be provided by many different modules, but I am assuming that you have the dhcpcd client installed for this example. To change the timeout you need to add the following line to the networking configuration file located at /etc/conf.d/net. dhcpcd_eth0=”-t 3″ This line will set the DHCP timeout to 3…
To run Java code on a Gentoo system you must have a JRE (Java Runtime Environment) installed. The JRE will install a 32-bit browser plugin, among other things, which is necessary to take advantage of Java applets in Firefox. Before we go any further, it must be noted that this will only work with the 32-bit version of Firefox. This is because the binary JRE package is only distributed in 32-bit and is therefore incompatible with the 64-bit version of Firefox. If you run a 64-bit system make sure that you have emerged the www-client/mozilla-firefox-bin package to get the 32-bit…
In C or C++ it is fairly simple to find the IP address of the remote end of a TCP socket. The following example shows how to do this using the getpeername() and inet_ntoa() system calls. int sockfd; int len; char * hostip; struct sockaddr_in sin; len = sizeof(sin); if (0 != getpeername(sockfd, (struct sockaddr *) &sin, &len)) perror(“getpeername”); } hostip = inet_ntoa(sin.sin_addr); printf(“client IP: %s\n”, hostip);
You can find the MAC address of your system at the command line by using the ifconfig command. The ifconfig command will show you information on all your network interfaces. If no arguments are given ifconfig displays the status of the currently active interfaces. You have to run this command as root or use sudo. # ifconfig wlan0 Link encap:Ethernet HWaddr a1:b2:c3:d4:e5:f6 inet addr:192.168.2.11 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:4007 errors:0 dropped:0 overruns:0 frame:0 TX packets:4246 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3292271 (3.1 MiB) TX bytes:994922 (971.6 KiB) Your MAC address is displayed in…