Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Install Synaptic Package Manager

sudo apt-get install synaptic


Synaptic is one of the most amazing package managers out there, in fact, it was installed by default in
Ubuntu but later it was removed in the recent Ubuntu releases, but it still a good program to have for
those who want to manage their system packages easily without the need to deal with the command
line.

--------------
CHANGE USERNAME HOSTNAME

sudo gedit /etc/hostname


sudo gedit /etc/hosts

--------------

FIX SYSTEM ERROR MESSAGES

sudo apt-get remove apport


This is a very noisy thing in many Ubuntu releases, the “Apport” application which is responsible for
error reports and crash messages is not adjusted very well, which is the reason that it shows crash
messages all the time.

---------

sudo apt-get install gnome-terminal

-------------

INSTALLATION:

OPTION 1: Add the Ubuntu After Install PPA to your software sources and install Ubuntu After
Install. Open a terminal window and enter:

sudo add-apt-repository ppa:thefanclub/ubuntu-after-install


sudo apt-get update
sudo apt-get install ubuntu-after-install

OPTION 2: Download the Ubuntu After Install application directly (download link at bottom of
page). Double click on the downloaded .deb file to Install the application using the Ubuntu Software
Center or manually with dpkg -i from the command line.
Once installed search Ubuntu Dash for Ubuntu After install and start the application.
Follow the on-screen instructions (see screenshots below)

------------
FIREWALL
sudo ufw enable

-----------

FOR GHEMICAL: font pango

sudo apt-get install libpango1.0-dev

sudo apt-get install ttf-lyx


sudo apt-get install libpango1.0-0
ttf-dejavu-core
gir1.2-pango-1.0
ttf-liberation

ldd /usr/bin/ghemical | grep font


libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fb7b9691000)

LIB PACKAGE

sudo apt-get install libgtk2.0-0 libgdk-pixbuf2.0-0 libfontconfig1 libxrender1 libx11-6 libglib2.0-0


libxft2 libfreetype6 libc6 zlib1g libpng12-0 libstdc++6-4.8-dbg-arm64-cross libgcc1

Herewith, I provide some additional information regarding bug


(567600), Ghemical's font problems, describing wwo scenarios.

On a freshly installed wheezy/sid installation of the Base system and


Standard system utilities, was installed the package gnome (3.0+7) and
all its dependencies. Hereafter, ghemical (3.0.0-1) (and all its
dependencies) was installed and started. ghemical failed to start and
died with the aforementioned 'GdkGLExt-WARNING **: cannot load
PangoFont'. So, the following packages were installed and ghemical
works again:
[INSTALL] x11-xfs-utils
[INSTALL] xfonts-100dpi
[INSTALL] xfonts-75dpi
[INSTALL] xfonts-scalable
[INSTALL] xfs
This fixed ghemical on this system, the program was used to draw some
structures, energy minimize them, some other modeling functions were
tried as well and all completed without errors.

Now, and this might be considered a serious addition to the current


bug report, on a freshly installed wheezy/sid installation of the Base
system and Standard system utilities, was installed the desktop
package kde-standard (i.e. kde-* 4.6.3) and all its dependencies.
Again, ghemical (3.0.0-1), and all its dependencies, were installed
and started. Again, and as expected, ghemical failed to start and died
with the aforementioned 'GdkGLExt-WARNING **: cannot load PangoFont'.
I thought to fix this by installing the following xfonts packages
x11-xfs-utils, xfonts-100dpi, xfonts-75dpi, xfonts-scalable, xfs.
However, this did NOT fix ghemical its font errors and the program
fails to start on a KDE installation...

This bug renders ghemical useless on KDE desktops, and it wouldn't


surprise me if it goes beyond the reported dependency problem. It
seems to stem from a font-related configuration or setting somewhere
in the package or its implementation in Debian.

sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++


sudo apt-get install fonts-arphic-uming fonts-ipafont-mincho ttf-wqy-zenhei ttf-unfonts-core fonts-
takao fonts-dejavu ttf-mscorefonts-installer

--------

OPENMPI

- Download the package

wget https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.1.tar.gz

sudo apt-get install libibnetdisc-dev


- Decompress the downloaded file
tar -xvf openmpi-1.8.1.tar.gz

cd openmpi-1.8.1
- Configure the installation file
./configure --prefix="/home/$USER/.openmpi"

- Install OpenMPI (This path will take time to complete)

make
sudo make install

- Setup path in Environment Variable

export PATH="$PATH:/home/$USER/.openmpi/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/"
- Test if install was successful

mpirun

---
WORKAROUNDS found:

* Disable IBus: set "Keyboard input method system" to "None" ( System Settings -> Language Support
-> Language tab).
* Execute in terminal "killall ibus-daemon"

----
LibDVDCSS is a library required for reading some DVDs. Unfortunately, due to legal issues, it is not
included by default. This repository is provided by Videolan, and requires a bit more code to add.

echo 'deb http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a


/etc/apt/sources.list.d/libdvdcss.list &&
echo 'deb-src http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a
/etc/apt/sources.list.d/libdvdcss.list &&
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -

-------

This PPA (WebUpd8 again), hosts the program Y PPA Manager. That's right, we're adding a PPA so we
can add PPAs. But that's not all it does, it can also remove, purge, check for duplicates and remove
broken ones.

sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager

-------

AFTER INSTALL (OPTION)

sudo apt-get install synaptic vlc gimp gimp-data gimp-plugin-registry gimp-data-extras y-ppa-manager
bleachbit openjdk-7-jre oracle-java8-installer flashplugin-installer unace unrar zip unzip p7zip-full
p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller libxine1-ffmpeg mencoder flac faac
faad sox ffmpeg2theora libmpeg2-4 uudeview libmpeg3-1 mpeg3-utils mpegdemux liba52-dev
mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax lame libmad0 libjpeg-
progs libdvdcss2 libdvdread4 libdvdnav4 libswscale-extra-2 ubuntu-restricted-extras ubuntu-
wallpapers*

----------

sudo dpkg --purge --force-all --force-remove-reinstreq linux-image-generic


sudo dpkg --purge --force-all --force-remove-reinstreq linux-headers-generic
sudo dpkg --purge --force-all --force-remove-reinstreq linux-generic

----

UPDATE PROBLEMS

http://ask.xmodulo.com/find-remove-obsolete-ppa-repositories-ubuntu.html
$ sudo apt-get update | grep "Failed"

$ sudo add-apt-repository --remove ppa:finalterm/daily

...finalterm/daily is ppa name

.....

DUPLICATE

remove in software center

--------

CLEANUP

Some people like to clean up after themselves. I tend not to, but I know I should. These commands will
get rid of some of the chaff you may have created while messing around with your system.

echo "Cleaning Up" &&


sudo apt-get -f install &&
sudo apt-get autoremove &&
sudo apt-get -y autoclean &&
sudo apt-get -y clean

---------

WINE:
http://askubuntu.com/questions/316025/how-to-install-and-configure-wine

sudo add-apt-repository ppa:ubuntu-wine/ppa


sudo apt-get update
sudo apt-get install wine1.7

Does having Ubuntu 64 bit influence Wine


Yes, having Ubuntu 64 Bit will also set Wine as 64 bit. This will create several problems for many
Windows apps that only work on 32 Bit. To solve this you need to do the following after having
succesfully installed the PPA version as I mentioned above. Immediately afer installing the PPA wine
package and before opening winecfg open the terminal (Make sure you are at your home folder by
typing cd ~) and type the following:

rm -fr ~/.wine
export WINEARCH=win32
export WINEPREFIX="/home/USER/.wine"
winecfg

WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine wineboot


------------

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0F72778C4676186


sudo wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list

sudo apt-get update

sudo apt-get install playonlinux

----------

sudo apt-get update

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-


amd64/Packages Hash Sum mismatch

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-


amd64/Packages Hash Sum mismatch

WHAT TO DO:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

-----

SCAN

download scangear
scangearmp-mp230series-2.00-1-deb

terminal: run scangearamp

----------

---------

sudo apt-get update

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-


amd64/Packages Hash Sum mismatch

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-


amd64/Packages Hash Sum mismatch
WHAT TO DO:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

OR

https://gist.github.com/trastle/5722089

Acquire::http::Pipeline-Depth "0";
Acquire::http::No-Cache=True;
Acquire::BrokenProxy=true;

sudo rm /var/lib/apt/lists/*
sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update

OR

sudo rm -rf /var/lib/apt/lists/*


sudo apt-get update
sync
sudo shutdown -h now

OR

sudo rm /var/lib/apt/lists/*
sudo rm /var/lib/apt/lists/partial/*
sudo apt-get update
-----

sudo apt-get install cups-pdf

You might also like