User:Scott/02

From FreekiWiki
< User:Scott
Revision as of 23:33, 16 October 2011 by Scott (talk | contribs)
Jump to navigation Jump to search
Useful Tech Support Commands

user:scott

Template:TOC limit

PRINTME - /var/lib/freegeek-extras/printme

Backup Password

  • cp /etc/shadow /etc/shadow.bak - (hash of root + user)

Change Password

passwd [username]
passwd –e [username] – (change on startup)

Add / Delete User

adduser [username]
adduser [username] admin
userdel [username]

Updates & Broken Packages

apt-get update
apt-get dist-upgrade
apt-get install --fix-broken
apt-get install ubuntu-desktop
apt-get purge xxx

File System Check

fsidk -l
fsck -fyv /dev/sda1 (f=force y=fix)
shutdown -rF now (reboot, forcing fsck on root filesystem)

Mount & un-Mount

df -h          (show partition booted from)
ls /media      (mounted from GUI)
cat /etc/fstab (partitions and devices = mount on start-up)
mount /dev/sdb1 /mnt/xxx
umount /dev/sdb1 (sudo)

Badblocks

badblocks -nvs /dev/sda1