Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Monday, February 22, 2016

Oracle Java /JDK on (a vergin) Debian Jessie 8.3

Add in sources.list at the end:

deb http://httpredir.debian.org/debian/ jessie main contrib

then give these commands..:

apt-get update
apt-get install java-package


download the .tar.gz package from the oracle site. Choose the .tar.gz file

then, as non root, create the dpkg package

fakeroot make-jpkg jdk-8u73-linux-i586.tar.gz

At the end, as root, you are ready to install:

dpkg --install oracle-java8-jdk_8u73_i386.deb

At the end you are ready to use jdk... type for try>:

java -version

Pay attention, PATH and CLASSPATH have not been touched.
If you need you will have to update them.

Bye..

Kodi on (a vergin) Debian Jessie 8.3


We do it throught the debian multimedia repository.
So open in editing the /etc/apt/sources.list file and add at the end this row

deb http://www.deb-multimedia.org jessie main non-free

Then 
apt-get install deb-multimedia-keyring 
apt-get update
apt-get upgrade

Finally:
apt-get install kodi

Optional
if you know that you will use your kobi also for live tv you need to install a PVR add-on that in linux installer there aren't bundled.
Here is an example for iptv addon

apt-get install kodi-pvr-iptvsimple

Please refere here for the pvr addons available.. 
Bye..

Thursday, October 23, 2014

Debian, gnome3: system settings menu icon disappeared....

We are under gnome3.
If for any reason the System settings menu icon under
Applications menu --> System Tools menu --> Preferences menu
is disappeared;
you need to install the gnome-control-center
by giving simply...:

apt-get install gnome-control-center 

Bye..

Monday, October 6, 2014

Encoding a DVD under Debian

Need to encode a dvd under your Debian distribution?
Edit /etc/apt/sources.list and add this line....

deb http://www.deb-multimedia.org wheezy main non-free

Than give these command from command line....

apt-get update
 apt-get upgrade
apt-get install deb-multimedia-keyring
apt-get upgrade
apt-get update

apt-get install h264enc

Now you are ready to encode your first dvd.
This to facilitate you to encode the first time:

h264enc -1p -p vhq

There will prompted to you a series of settings to apply to your encoding operation...

+=============================================================+
|<<<<<<< h264enc - the interactive shell script ripper >>>>>>>|
|-------------------------------------------------------------|
|<<<<<< version: 9.4.9 - (C) 2006-2012, Grozdan Nikolov >>>>>>|
+=============================================================+

Select the Input type [file/dir/dvd/vcd]: dvd

Input Selection
~~~~~~~~~~~~~~~
0 -> Encode from a DVD disc/drive
1 -> Encode from a DVD ISO image
2 -> Encode from a DVD VIDEO_TS directory

Select the input [default is 0]: 0


See the h264enc manual to see all features....

Bye

Sunday, March 23, 2014

Play DVD under Debian Wheezy

Edit /etc/apt/sources.list and add this line....

deb http://www.deb-multimedia.org wheezy main non-free
(refer to this link for more info )

Than give these command from command line....

apt-get update
 apt-get upgrade
apt-get install deb-multimedia-keyring
apt-get upgrade
apt-get update

apt-get install libavcodec54 libdvdcss

Now you are ready.....
Last thing.....
I suggest to use VLC as player
So if you have not installed it, give(from command line):

apt-get install vlc

Bye...


Wednesday, February 5, 2014

Debian Wheezy and Apache: enabling mod rewrite

Hi all,

I'm currenting trying the GetSimpleCMS.
During the installation, it's required to enable "rewrite" module of apache.
Ho to do it?

From command line(as root) give this:

a2enmod rewrite

and after restart apache:

/etc/init.d/apache2 restart

All is do it...

Bye..

Wednesday, November 6, 2013

Debian Wheezy: change desktop resolution from command line

From command line execute xrandr command to display a list of available resolutions.

xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800       59.9*+
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 


The * is the current selected.

xrandr -s 1024x768

for set a resolution(one from the availables)


Bye..

Wednesday, October 30, 2013

Debian Wheezy repositories

Example of a default-starting sources.list content

deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main

deb http://http.debian.net/debian wheezy-updates main
deb-src http://http.debian.net/debian wheezy-updates main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

Bye..

Monday, October 28, 2013

Debian Wheezy: resize/scale images from command line.

First of all you need to have installed imagemagick.
If no, install it from terminal as root so:

apt-get install imagemagick

Now you are ready to convert input.jpg file into output.jpg file for a 1000 pixels of width and 500 pixels of height....

convert -scale 1000x500 input.jpg output.jpg 

The scale method, in this case, depends of the height and the weight of your image.
So if your image is 2 pixels of width and 1 pixels of height the perform will gone exactly.

Differently the perform will be approximated.

If you want to force the scale performing to make a image of gived dimensions...

convert -scale 1000x500! input.jpg output.jpg

If you have multiple files to convert use this:

for i in $( ls *.JPG); do convert -resize 1300x500 $i $i; done
 
Bye.

Wednesday, October 23, 2013

Debian Wheezy: mounting windows shared folder

First of all install cifs-utils smbclient packets, to browse and mount net folders..
So from command line:
apt-get install smbclient cifs-utils

Then you need to create a local folder to map remote folder
mkdir /home/username/example_folder

Then you can mount the remote folder by executing this:
mount -t cifs -o username=remote_pc_username //remote_pc_ip_address/remote_folder_shared_name /home/username/example_folder

Where:
remote_pc_username is the username of remote pc
remote_pc_ip_address is the remote ip address
remote_folder_shared_name is the name that the shared folder has into the local net.

Example 2:
mount -t cifs -o username=pippo //192.168.1.2/shared /home/pluto/example_folder


Terminal will prompts to you the password request....
Give it and then you will have correctly mapped your remote folder into your local example_folder


Bye..


Wednesday, October 16, 2013

Freepops under Debian Wheezy 7.0.1

Freepops is a free for use software that give you the capability to open a gateway to remote resources with pop3 protocol. 

From terminal, as root, install freepops

apt-get install freepops


After, you make under /bin two files.......
The file  freepopsd_start.sh contains:
#!/bin/bash
freepopsd &


And the file  freepopsd_stop.sh contains:
#!/bin/bash
freepopsd -k &




Now from command line of your current user you can give those commands to startup or shutdown the "tunnel".... 

Often before you run you email client...

Bye.... 

Tuesday, April 2, 2013

Manage mdf and mds files with Debian

Recently a downloaded a couple of files(mdf and mds) referred to a cd image.

I need now to write or mount it. In my case to write.

I use acetoneiso to manage those files.

So I get it....

apt-get install acetoneiso

After, when I launch the application, and I select the files, a popup(of the acetoneiso application) inform the it's necessary install a plug-in, puretone, to manage mdf/mds files. The plug-in is proprietary but free.
At the and of the installation, with the menubar button "Image Conversion" I convert the two files in a newer .iso file, and after I burn my cd....

Have fun...

Thursday, March 21, 2013

Debian: add iso image to sources.list file

In this post you can see how to mount an iso image file from command line.
In this other post you can see how to mount an iso image file at the system startup.

Now we can see how to insert into sources.list file the pointing to the debian distribution image file.

Go under /etc/apt
Open sources.list file and add(better if at the end of the file) this:

deb file:/home/you/Desktop/debian_image squeeze main contrib 

Now we suppose we have squeeze distribution.
If no, change the name with your distribution name.

At the end, from the command line give:
 
apt-get update
 
Bye...

Thursday, January 24, 2013

How to set up CVS server under Debian 6.0.6, and connecting to it with Eclipse

First of all ensure you have ssh server....
If no see here....
After update repository indexes and install.....

apt-get update
apt-get install cvs


Now we see how to quickly configure it.....
create repository user and repository group

useradd repository

add user repository to repository group  

usermod -a -G repository repository

add user your_user to repository group

usermod -a -G repository your_user

create root directory for cvs

mkdir /home/repository

initialize cvs

cvs -d /home/repository init

give the right permissions to folders

chown -R repository:repository /home/repository
chmod -R 770 /home/repository
chmod 770 /home/repository/CVSROOT

Now provides to give the first import as cvs administrator, so in this case, as repository user I give the follow

cvs -d /home/repository import -m "Initial import" project_name username_that_add_the_first_sources project_version

Working with Eclipse, you go under New --> Other --> CVS Repository Location
and add as parameters...
- connection type: extssh
- host: hostname or ip of the machine where you installed the cvs, in my case localhost
-  username and password: the username, of system, that previously you added to the repository group and its password
- repository path: as in our example, /home/repository, that's the home directory that's you have setted for your cvs installation

Bye.....

Wednesday, January 23, 2013

OpenSSH under Debian 6.0.4


This install ssh server on your machine.

apt-get update
apt-get install ssh

Edit

/etc/ssh/ssh_config 

and

/etc/ssh/sshd_config

for customize your service details.

If you want to try connection

ssh username@hostname

more info here

Bye...


What Linux version I have?

For Linux:

cat /etc/you_distribution_name_version

.....if you have Debian, for example....

cat /etc/debian_version

Bye...

Wednesday, November 14, 2012

Joomla 3 on Debian 6.0.6: install new language package

We have Joomla 3.0.2 over a Debian 6.0.6.
We need to install another language packge.
Steps(Mandatory):
- Ensure you have turned-off the FTP Layer(directly on configuration.php or by web under Global Configuration --> Server --> FTP Layer)
- Ensure you have all needed permissions over the folder you have installed joomla(the necessary are these two path declared into configuration.php: $log_path and $tmp_path
- Upload your zip file with your language package from web by the administration page, under menu Extensions > Extension Manager > Install
- Go into System > Control Panel > Language Manager and select your just uploaded language.
- Remember you have 2 kinds(in the left menu) of settings to do: Site and Administration

Bye...

Monday, November 12, 2012

Installing VirtualBox OSE on Debian Squeeze 2.6.32-5-686

I report my installation over Debian 6.0.6 kernel 2.6.32-5-686 version.

Open a terminal and give
uname -r
to recognize your kernel version.

Suppose(as in my case you have this version...as terminal output)(but the procedure is the same, also for the others)
2.6.32-5-686

Give this command:
apt-get install linux-headers-2.6.32-5-686 virtualbox-ose

Installation is done.
Give the command
virtualbox &
from terminal to launch the application(or into System Tools, into KDE menu).

Bye..

Wednesday, October 17, 2012

Debian, upgrading to 2.6.30 kernel: rt2879sta firmaware, support for Ralink rt2800U and rt3000U chipsets

If you have a wifi device based on Ralink RT2000U or RT3000U chipset, and you have upgraded your kernel to 2.6.30 version, surely you will get an error on the rt2800(or some among those rt2070, rt2770, rt2870, rt3070, rt3071, rt3072) firmware, no more loaded.
Something like this:

rt2800 firmware not loaded
SIOCSIFFLAGS: Operation not permitted

The raison is that on the firmware has been removed from the 2.6.30 kernel image.

So, ensure you have in /etc/apt/sources.list the following line:

deb http://ftp.us.debian.org/debian squeeze main contrib non-free 

If you have not it, insert and give aptitude update...

After give the following:

aptitude install firmware-ralink
 
This will solve your problem.

Bye.

PS.: refer to this page to the official page.








 

Monday, March 26, 2012

Debain 6.0.4: quick samba installation and configuration

Here is a quick description to how to install samba server and configure it in order to share folder on the network.

Giving 
apt-cache search samba
results:
[...]
libsmbclient-dev - development files for libsmbclient
libsmbclient - shared library for communication with SMB/CIFS servers
libwbclient0 - Samba winbind client library
samba-common-bin - common files used by both the Samba server and client
samba-common - common files used by both the Samba server and client
samba-dbg - Samba debugging symbols
samba-doc-pdf - Samba documentation in PDF format
samba-doc - Samba documentation
samba-tools - Samba testing utilities
samba - SMB/CIFS file, print, and login server for Unix
smbclient - command-line SMB/CIFS clients for Unix
swat - Samba Web Administration Tool
winbind - Samba nameservice integration server
smb2www - SMB/CIFS network client with a web interface
[...]
So run
apt-get install samba smbfs smbclient
to install these three packets....
during installation, it performs default configuration
after....
So next commands.....
adduser guest --home=/home/public --shell=/bin/false --disabled-password
to create a guest user to use only as samba default user....
chmod -R 0700 /home/public
chown -R guest.guest /home/public
These commands configure the sharing in way of every user can create a content(file or folder)
into the shared folder.
No one may edit the content created by something others.... 
If you want some of differently, change the permission mask.....
Now edit /etc/samba/smb.conf
adding after the row 
obey pam restrictions = yes
insert these others rows: 
guest account = guest
invalid users = root

and in the ****Authorization**** section,  these two rows.....: 
; security = user
security = share

In the sharing section add:

# SHARED DIR
[shared]
   comment = shared
   read only = no
   path = /home/public
   guest ok = yes
   guest only = yes
   create mask = 0600
   directory mask = 0700

 
Fine...... restart samba:

 /etc/init.d/samba restart

and all is done.....

 Bye....