$ sudo apt-get purge libreoffice-*
$ sudo apt-get purge firefox*
$ sudo apt-get purge thunderbird*
List all installed packages (pipe to grep to search for a specific pattern):
$ dpkg --get-selections | grep <pattern>
remove all libreoffice packages:
$ sudo apt-get purge libreoffice-*
remove orphaned packages, i.e. installed packages that used to be installed as an dependency, but aren't any longer. Use this after removing a package which had installed dependencies you're no longer interested in:
$ sudo apt-get autoremove
see what packages are available to install matching a pattern
$ apt-cache search <pattern>
To see all the files installed by a package like python-kivy-examples:
$ dpkg-query -L <package name>
Tuesday, February 11, 2014
Change Ubuntu Devicename (Hostname)
Change the “device name” in the details window of System settings
$ sudo sed -i 's/present-host-name/new-host-name/' /etc/hosts
$ sudo sed -i 's/present-host-name/new-host-name/' /etc/hostname
$ reboot
Hmmm. attempt on the 2nd sed command failed and the /etc/hostname file was already correct. Perhaps it was changed automatically in response to the first sed.
You can check your present-host-name by
$ cat /etc/hostname
or
$ hostname
$ sudo sed -i 's/present-host-name/new-host-name/' /etc/hosts
$ sudo sed -i 's/present-host-name/new-host-name/' /etc/hostname
$ reboot
Hmmm. attempt on the 2nd sed command failed and the /etc/hostname file was already correct. Perhaps it was changed automatically in response to the first sed.
You can check your present-host-name by
$ cat /etc/hostname
or
$ hostname
Thursday, August 15, 2013
Linux & Windows partition changes, boot fun
To remove GRUB from the MBR on primary disk in the laptop that hold Windows 7:
- boot with recovery DVD
- get to a command window
- issue commands to re-write the MBR
To write GRUB to the external HD containing Linux Mint:
- Boot Machine off Mint Live DVD (can't use virtual box for this)
- Launch GPARTED to determine disk and partition holding Mint
- Open terminal window
- sudo mount /dev/sdb1 /mnt
- sudo grub-install /dev/sdb --root-directory=/mnt
grub probe does report some errors but installation of grub works.
to refresh the grub menu on the external drive (if it needs updating...):
- sudo update-grub
to add an entry for linux into the Windows boot menu (otherwise one needs to get the boot list (f12 at startup)):
Wednesday, August 14, 2013
Tuesday, August 6, 2013
Powershell (Windows... ugg)
Powershell ISE
Powershell 2.0 was loaded on my Win7 SP1 machine so...
Windows Management Framework 3.0 (includes PS 3.0)
http://www.microsoft.com/en-us/download/details.aspx?id=34595
How to determine what version of PowerShell is installed:
PS C:\> $psversiontable
To Update help in PS, start an elevated PS session (not the ISE!) and enter:
PS> Update-Help
Powershell 2.0 was loaded on my Win7 SP1 machine so...
Windows Management Framework 3.0 (includes PS 3.0)
http://www.microsoft.com/en-us/download/details.aspx?id=34595
How to determine what version of PowerShell is installed:
PS C:\> $psversiontable
To Update help in PS, start an elevated PS session (not the ISE!) and enter:
PS> Update-Help
Sunday, July 7, 2013
ssh Fun, git prompting for a password when trying to push to github ???
Answer to problem is here. I did clone the repo down to local machine from another user on github and then tried to push it to my own new repo on github.
Some good background info on setting up to have multiple SSH keys for multiple services (like bitbucket AND github) is here.
Other related sites:
Some good background info on setting up to have multiple SSH keys for multiple services (like bitbucket AND github) is here.
Other related sites:
- http://linux.die.net/man/1/ssh-add
- http://askubuntu.com/questions/269140/how-to-user-multiple-ssh-keys-with-different-accounts-and-hosts
- http://stackoverflow.com/questions/1595848/configuring-git-over-ssh
- http://stackoverflow.com/questions/2419566/best-way-to-use-multiple-ssh-private-keys-on-one-client
- https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168
Apple Google sync
Some weird things between IOS devices and Google data given Google setting Google Sync to end of life.
Google Calendar Sync technique now.
Google Contacts Sync technique now.
Google Calendar Sync technique now.
Google Contacts Sync technique now.
Subscribe to:
Posts (Atom)