ubuntu
Local
External
Mounting a Windows Share
# The following are place values that need to be replaced
# //192.168.1.100/WindowsShareName
# //PutIpNameHere/WindowsShareName
# /mnt/dirToMountAt
# /home/putUsernameHere
# uid=xxxx - I used my user name here (not the id number)
# gid=xxxx - I used my group name here (not the id number)
# add something like ONE of the following lines this in /etc/fstab
//192.168.1.100/WindowsShareName /mnt/dirToMountAt smbfs credentials=/home/putUsernameHere/.smbpasswd,uid=xxxx,gid=xxxx 0 0
//PutIpNameHere/WindowsShareName /mnt/dirToMountAt smbfs credentials=/home/putUsernameHere/.smbpasswd,uid=xxxx,gid=xxxx 0 0
# make a .smbpasswd file in your home dir that contains 2 lines like the following (but substitute the real values)
username
password
Mounting via Command Line
mount -t smbfs -o username=USERNAME_FOR_MOUNTS,password=PASS_FOR_USERNAME,uid=1001,gid=1001 //ipaddrOfPcToGetShareFrom/ShareName /mnt/mntpointDir/
Setting up a static IP address
See: http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html
Console mode boot info
Boot to console by default
Boot to console by default
Set resolution
- do the following as
root
- edit /boot/grub/menu.lst
- find the line starting with "# defoptions", yes it looks like a comment
- change it to something like one of these
# defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash vga=792
- see the table below for resolutions
- commit the chage
update-grub
| Resolution | setting |
| 640x480 | vga=785 |
| 800x600 | vga=788 |
| 1024x768 | vga=791 or vga=792 |
| 1280x1024 | vga=794 |
Making a script run at startup
# copy the script to /etc/init.c/.
# tell it to run
update-rc.d {script_name} defaults
# for more info
man update-rc.d
Boot to console by default
update-rc.d -f gdm remove
Installing ssh
# all together
apt-get install openssh-server openssh-client
# server
apt-get install openssh-server
#client
apt-get install openssh-client
#or maybe this one does both
apt-get ssh
ntfsprogs
# see if apt knows about it
apt-cache search ntfsprogs
#or if lazy
apt-cache search ntfs
#show details about what it is
apt-cache show ntfsprogs
#show info about installing it (like do I have it, is it main or universe or...)
apt-cache policy ntfsprogs
#get and install it
apt-get install ntfsprogs
Finding a Package
# Searches for the string in the list of known packages
apt-cache search {string}
Packages
Reference https://help.ubuntu.com/community/AptGetHowto