Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

13 September 2017

The Empire Strikes Back

Apple Special Event 2017 was Live streamed only with Apple Safari and Microsoft Edge browsers.



Does that mean that all Google with Chrome and Linux with Mozilla Firefox population is dismissed ?

15 February 2013

How to install Clementine music player in Ubuntu


In Terminal window type :

sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt-get update
sudo apt-get install clementine

27 January 2013

Create new application shortcut in Ubuntu 12.20 Unity

First you must have installed Gnome Panel :

sudo apt-get install gnome-panel

Then you must start gnome panel window for creating new shortcut:

sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

After that, you can search for and open it from the Unity Dash, and drag and drop it to Launcher.

07 December 2012

How to fix broken packages

To fix broken packages in Ubuntu,

Go to System > Administration > Synaptic Package Manager and click Edit > Fix Broken Packages.

or in a terminal (Applications > Accessories > Terminal)
 

sudo apt-get -f install

23 November 2012

Fixing VirtualBox on Ubuntu 12.10

I installed VirtuaBox (4.1.18) on Ubuntu 12.10 (host os) so I can install Windows 8 (guest os) and use Microsoft office products as they are way superior to LibreOffice. Anyway, as soon as I opened Virtualbox, it came up with the error message, "Kernel driver not installed (rc=-1908)"


Well, after browsing for hours, I found a way to fix the issue. I just had to use the following commands.

        sudo apt-get install linux-headers-$(uname -r)

        sudo apt-get remove virtualbox-dkms

        sudo apt-get install virtualbox-dkms

Furthermore, after installing Windows 8 as a guest os and after installing guest additions, I wasn't able to enable "Switch to seamless mode", so I wasn't able to set the resolution to 1366x768 and I had to stick with 1024x768. Finally I found a workaround for that problem too. I had to use the command,

         sudo vboxmanage setextradata global GUI/MaxGuestResolution any

Hope this information will be useful for other Ubuntu users.

from xchamitha blog: Fixing VirtualBox on Ubuntu 12.10

23 September 2011

Oracle JDK 7 on OpenSuse as default JVM


After install of jdk-7-linux-i586.rpm, in terminal type these commands:

update-alternatives --install /usr/bin/java java /usr/java/jdk1.7.0/jre/bin/java 20000 

update-alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0/jre/bin/javaws 20000 
update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0/bin/javac 20000 
update-alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0/bin/jar 20000

update-alternatives --config java

OpenSuse 64
cd /usr/lib64/browser-plugins
ln -s /usr/java/jdk1.7.0/jre/lib/amd64/libnpjp2.so /usr/lib64/browser-plugins/libnpjp2.so

FoxPro 64bit plugin
update-alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.7.0/jre/lib/amd64/libnpjp2.so 20000

FoxPro 32bit plugin

update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.7.0/jre/lib/i386/libnpjp2.so 20000

31 October 2010

Dynamic libraries can be found: libpq.so.4, libpq.so

I'm investigating the use of lazarus/postgresql for a linux desktop application.

Fresh Linux installation produce this error, when starting application

Sender=Exception
Exception=None of the dynamic libraries can be found: libpq.so.4, libpq.so

Fix is

ln -s /usr/lib/libpq.so.5 /usr/lib/libpq.so

16 October 2010

postgresql on OpenSuse default login error (solved)

On terminal test : psql -h 127.0.0.1 -p 5432 postgres postgres

If you receive error:
psql: FATAL: Ident authentication failed for user "postgres"

Edit /var/lib/pgsql/data/pg_hba.conf, and write

trust

instead of "ident"

then reload PostgreSQL

As root: service postgresql reload
or as postgres user: pg_ctl reload

Ownership of pg_hba.conf has nothing to do with the authentication.

09 June 2010

Ubuntu - Enable root account

Issue

Under Ubuntu the access to root account is only blocked and only the sudo/gksu commands allow the use of features as superuser.
Solution

To enable the root account and access directly via the console in root mode, you must type the command:

$ sudo passwd root


This command allows you to set up the password modefor the root user which will be activate for the console sessions only (no GUI). Once the password is initialized, it will be possible to open a console session with the user root.

To enable access to the graphical user root, go to System/Administration/Login, click the Security tab, then tick the box allow connection of the local System Administrator.
Disconnect and reconnect with the root account.

05 January 2009

Debian : Play WMA (win32codecs)

To play Windows Media Audio just :

sudo apt-get install w32codecs

after adding this in your sources.list :

deb ftp://ftp.debian-multimedia.org sid main

Debian : How to build local APT repositories

1) Create folders for the package files you plan to keep in your repository. Here is an example: in your home folder, create a new folder called repository in which you will keep all your downloaded packages. If you plan to burn the package files onto a CD, I suggest you create separate folders for each disk. The naming is up to you – disk_1, disk_2, etc (I’ll assume this naming convention throughout the rest of the tutorial). This is just to ensure that you use the next folder once your cache reaches the size of a CD (usually 700MB). If you are using a local hard drive or a DVD, you obviously have higher limits to keep in mind. If you do not plan to create a CD/DVD, you may simply dump all the files in the repository folder.

2) The next step is to copy all your deb files (those files that end with .deb) to the repository folder(s). Open Nautilus, navigate to /var/cache/apt/archives and copy all the deb files to the appropriate folder(s). For instance, /home//repository/disk_1 - keep an eye on the size of the folders. To do it in the terminal:

cp /var/cache/apt/archives/*.deb ~/repository/disk_1

If you have many files, it may take quite a while so be patient.

3) Change into your repository folder:

cd ~/repository/disk_1

4) Now do the following command to create the Packages.gz file that is needed to for Synaptic to “see” your repository:

sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

I suggest you copy and paste this to avoid any typos.

  • Please note that every time you add any more .deb files to this folder, you have to create a new Packages.gz file using the above command before the new file(s) will show up in Synaptic (or Aptitude).
  • Be sure to install the build-essential package (sudo aptitude install build-essential) before running the above command.

There are several ways of using your newly created repository.

I) Keeping the files on a local hard disk…

Edit your /etc/apt/sources.list file like so:

gksudo gedit /etc/apt/sources.list

And insert this on a new line (preferably the first):

deb file:/home/username/repository/disk_1/ /

Remember to replace username with your real username.

Reload your package index like this:

sudo aptitude update

II) Using a CD/DVD as a repository:

a) Burn the repository folder onto a CD/DVD

b) With the disc loaded in your drive, fire up Synaptic and click through the menus like this:

Edit –> Add CD Rom.

c) You will be asked to type in a description for the disc; type in anything, for instance: Offline Repository Disk 1.

d) Click Ok.

Summary
Go to /var/cache/apt/archives and copy your debian packages to a folder of your choice, for example, /home//repository/

  • Change into the repository directory

cd /home/username/repository

  • And generate a Packages.gz file like this:

sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Make sure build-essential is installed (sudo aptitude install build-essential) before you run the above command.

  • Add the following line to your sources.list file (/etc/apt/sources.list)

deb file:/home/username/repository/ /

Remember to replace username with your real username

  • Reload your package index like this:

sudo apt-get update

That’s it… sit back, relax and enjoy the ride.

I found the following tips for using Synaptic very useful:

  • You might want to check out the online sources.list generator. It will let you select various repositories for your sources.list. Once you get the output, simply replace the contents of your /etc/apt/sources.list file with it.
  • Now have a loom at the Synaptic settings (Settings –> Repositories –> Settings).
  • I suggest you decide if you always want to get the highest/latest version or if you want to stick to the feisty version.
  • Also, ensure that you have checked the option that allows downloaded packages to be kept in the cache, otherwise you will just have to download them again if you accidentally do an apt-get autoclean or something similar. Have fun. :)

31 December 2008

30 December 2008

Debian 4 - Dynamic MMap ran out of room SOLVED

Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf

APT::Cache-Limit "50000000";

Debian 4 - sources.list

Here is my APT sources.list

#
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-1 20070407-11:40]/ etch contrib main
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-2 20070407-11:40]/ etch contrib main
deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 DVD Binary-3 20070407-11:40]/ etch contrib main

deb http://security.debian.org/ etch/updates main contrib
# deb-src http://security.debian.org/ etch/updates main contrib

deb ftp://ftp.debian.org/debian unstable main contrib non-free
#deb ftp://ftp.debian.org/debian testing main contrib non-free

26 December 2008

OpenSuse 11.1 : Amarok and WMA files

Choose > Settings > Configure Amarok > Engine > Xine Engine

If you have scratched sound choose > Output plugin > alsa

OpenSuse 11.1 : K3B doesnt recognize my DVD-burner

Add user to cdrom group then u could see your dvd devices.
Then add user to the disk group, then it seems to work fine.
Restart system and thats all.

23 December 2008

64-bit flash on opensuse 11.1

Finally adode realised that there are 64 bit machines. not bad it took them only few years.

So the offer a flash plugin for 64 bit.

http://blogs.adobe.com/penguin.swf/2008/11/now_supporting_16_exabytes.html

Now to install it is quite simple for firefox 3

get the file

http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz

untar

tar -xvf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz

sudo cp libflashplayer.so /usr/lib64/

sudo ln -s /usr/lib64/libflashplayer.so /usr/lib64/browser-plugins/libflashplayer.so

Source : http://blog.elenaworld.net/2008/11/64-bit-flash-on-opensuse-111.html

18 December 2008

How to: Fix PulseAudio and primary audio issues with Fedora 10

1. open volume control

2. Click preferences

3. Check "External Amplifier" and close

4. Click "switches" on the volume control

5. uncheck "external amplifier"

6. Close

15 February 2007

What is Linux ?

Linux is an operating system for your computer, in a similar way that Microsoft Windows and Apple's OSX are operating systems for your computer. Linux is very different however (and we believe, better!).

Linux was started in 1992 by then university student Linus Torvalds, who released his software for free, including all of the source code. Because Linus made his source code freely available, thousands of developers around the world have downloaded it, made changes and sent improvements back to him!

Because of this global collaboration effort, Linux is stable, extremely flexible and well supported. It is the fastest growing operating system in the world and it is freely available for you to install onto your computer! Sound great? It is!

Linux comes with thousands of free applications, which are maintained by thousands of volunteers around the world. These projects also release their source code, which means they too are 'open source'.

"But how can they do all this for free?" I hear you ask. The Linux and open source communities do all this for free because they love the software, not because they try to make money from it. They are doing it for prestige, honour and because they believe in open source ideals.

It is important to note that due to the nature of open source software (the ability to customise it however you like) there are many different version of Linux. This is great because you can find a version that suits you best! These different versions of Linux are called 'distributions'. This is because the creators of the various versions take Linux and make their own changes to it, add their own packages and then distribute it for free. It might sound complicated, but it's not. So don't worry, we'll help you get started on the right track!

We invite you to look further into Linux and welcome you to 'make the move' into an amazing new world.

Please read on, or skip through to the 'Get started!' section if you're ready to jump right in!

09 October 2004

JDataStore 7 - developer license

you will have to extract the jdatastore.license file out of the
original jdsserver.jar and add it to your /lib folder.