This is a loosely grouped collection of notes and/or commands I'm finding useful as I venture into the world of setting up a home network with a few linux clients and a linux server. It's mostly a 'notes dump' that I'm putting all on this one page. I'm not going to do a lot of fancy formatting or anything else, but it's here in case anyone else stumbles on it through Google or something....
/etc/network/interfaces
sudo /etc/init.d/networking restart
ifconfig
/etc/hostsformatted as
x.x.x.x (name)
sudo fdisk -l
NOTE: There is NO NFS client for windows that is free. Use SAMBA to share with windows. NFS will perform better than SAMBA with linux clients.
sudo apt-get install nfs-common
sudo apt-get install nfs-kernel-server
/etc/exportssample
{servername/ip}:/{nfs-sharepath} /mnt/{folder} nfs users,auto,rw 0 0showmount -e (servername or IP address)
sudo exportfs -rav
/etc/samba/smb.conf
/etc/fstab
sudo apt-get install smbfs
sudo apt-get install autofs unison
unison /{remotefolder} /{localfolder} -log -batch -confirmbigdeletessudo apt-get install ushare
sudo gedit /etc/ushare.conf
sudo /etc/init.d/ushare (start|stop)
/etc/fstab
sudo blkid
Some of the scripts I use on my network. They should be useful as a template if you replace the names/folders for your own network.
sudo gedit /etc/rc.local
sudo apt-get update (updates package info) sudo apt-get upgrade (install available updates) sudo apt-get update && sudo apt-get upgrade (update and upgrade in one command) sudo apt-get autoremove (clean up unused packages)
sudo mkdir /mnt/{foldername}thensudo chown -R {username} /mnt/*mkdir ~/{foldername}the ~ is a shortcut for '/home/user'sudo apt-get install startupmanager
sudo apt-get install msttcorefonts
sudo mkdir /opt/google/chrome/plugins
sudo cp /home/{user}/downloads/libflashplayer.so /opt/google/chrome/plugins
Then update the launcher for Chrome from "google-chrome %U" to
google-chrome --enable-plugins %U
crontab -eand formatted as
<min> <hour> <day of month> <month number> <day of week> <command>
sudo apt-get install virtualbox-ose-guest-x11
| /bin | It contains the standard binary files that can be used by all users both a regular user or super user. |
| /boot | Contains the files for booting Linux, including kernel image. |
| /dev | Contains a special system file that is a reflection of the hardware devices that are recognized and used system. |
| /etc | Contains system configuration files, typically only be changed by super user. |
| /home | Contains the directories which is the home directories for regular users and certain applications. |
| /media | Directory where the removable media is mounted. |
| /mnt | Special directory provided for mounting (link) disk storage devices to the system in the form of directory. |
| /opt | Add-on packages directory of software applications. |
| /proc | Contains a special system file that shows the kernel data at any time. |
| /root | Home directory for the root user (a special user with virtually unlimited priviledges). |
| /sbin | Just like the directory / bin, but only the super user should use the binary-binary considering binary functions contained in this directory for system maintenance. |
| /tmp | Contains temporary files that needed an application that is running. |
| /usr | Contains libraries, binaries, documentation and other files the user installation. |
| /var | Contains the log files, mailboxes and data applications. |
# if not using instant messenger #sudo apt-get purge pidgin telepathy # if not bluetooth capable #sudo apt-get purge bluez # if not CD burning #sudo apt-get purge brasero # if not using IM #sudo apt-get purge empathy # if no printers #sudo apt-get purge cups* # if not wireless #sudo apt-get purge wireless-tools # if no torrents #sudo apt-get purge transmission-* # if not a streaming server or desktop #sudo apt-get purge totem # if not wireless #sudo apt-get purge mintwifi sudo apt-get purge overlay-scrollbar cowsay firefox thunderbird xchat nano hplip gcalctool simple-scan brltty brltty-x11 foo2zjs gwibber gwibber-service hplip hplip-cups hplip-data hpijs min12xxw pxljr splix ttf-indic-fonts-core ttf-kacst-one ttf-khmeros-core ttf-lao ttf-punjabi-fonts ttf-unfonts-core aspell bogofilter-* espeak-data evolution-common evolution-indicator evolution-plugins evolution-webcal firefox* foomatic* fortune-* vino simple-scan fusion-icon imagemagick indicator-me indicator-messages # note: portmap is included with nfs-common) sudo apt-get install nfs-common msttcorefonts sysv-rc-conf ccsm chromium
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server phpmyadmin mysql-admin
sudo chown -R {username} /var/www/*sudo add-apt-repository ppa:rye/ubuntuone-extras sudo apt-get update && sudo apt-get install ubuntuone-indicator
sudo add-apt-repository ppa:tualatrix/ppa sudo apt-get update sudo apt-get install ubuntu-tweak
sudo apt-get install unity-2d
sudo apt-get install plymouth-theme-mint-text
sudo apt-get install plymouth-theme-mint-logo
sudo apt-get remove overlay-scrollbar
/usr/lib/linuxmint/mintMenu/mintMenu.png
The router handles all DHCP assignments. DHCP pool is .2 through .49; network infrastructure is as follows:
| Desktops | |||
|---|---|---|---|
| Primary OS | Alternate OS | IP address | Notes |
| Windows 7, 64 bit | Ubuntu 11.04, 64 bit | x.x.x.50 | Win7 for gaming (office) |
| Ubuntu 11.04, 32 bit | x.x.x.60 | Music, video, service manuals, etc (garage) | |
| Ubuntu 11.04, 32 bit | x.x.x.70 | Music/movies/dvr (bedroom) | |
| Ubuntu 11.04, 32 bit | x.x.x.80 | Recipes, movies while cooking, etc (kitchen) | |
| Servers | |||
| Primary OS | Alternate OS | IP address | Notes |
| Linux Mint 11, 32 bit | x.x.x.100 | Primary server with redundant hard drives and automated backup | |
| NAS HDD | x.x.x.110 | Network connected hard drive, provides common external storage | |
| Other | |||
| Primary OS | Alternate OS | IP address | Notes |
| XBox360 | x.x.x.200 | Plays music & videos from the server | |
| Laptops | |||
| Primary OS | Alternate OS | IP address | Notes |
| Ubuntu 11.04, 64 bit | Windows 7 x64 | dhcp | Win7 for gaming |
| Windows XP | dhcp | WinXP for automotive diagnosing / logging / flashing software | |
| Windows XP | dhcp | Another laptop | |