Difference between revisions of "Debian"

From Organic Design wiki
(move specifics into install a new desktop)
m
Line 27: Line 27:
  
 
It's best to use the package maintainer's version of any updated configuration files it mentions. You can have a second shell window open so you can check the changed parts of the configuration that have changed and back them up or copy them across to the freshly created version.
 
It's best to use the package maintainer's version of any updated configuration files it mentions. You can have a second shell window open so you can check the changed parts of the configuration that have changed and back them up or copy them across to the freshly created version.
 +
 +
== Centrino Wireless-N 1030 ==
 +
This driver is not included in the Debian installation or on-line repositories so has to be manually installed afterwards. See also [[Set up a wifi hotspot]]
 +
{{code|<bash>
 +
echo "deb http://http.debian.net/debian/ wheezy main contrib non-free" >> /etc/apt/sources.list
 +
apt-get update
 +
apt-get install firmware-iwlwifi
 +
modprobe -r iwlwifi ; modprobe iwlwifi
 +
</bash>}}
 +
 +
== Bluetooth ==
 +
I found that I couldn't get any of my bluetooth devices to pair in the default install of Debian 7. The devices would show up in the detected list and the pairing process would initiate properly, but would then fail to complete. Using the ''bluez'' tools from the terminal worked though with the following procedure I found [http://www.ctheroux.com/2012/08/a-step-by-step-guide-to-setup-a-bluetooth-keyboard-and-mouse-on-the-raspberry-pi/ here]. Strangely, after I got the first thing (my mouse) working with this process, then my phone was able to pair from the GUI as normal even though it had failed prior to getting the mouse to work.
 +
{{code|<bash>hcitool scan</bash>}}
 +
This process gives you the MAC address of your device which you can then begin the pairing process with as follows. This will ask you for the pin which you type in to your device etc or use ''0000'' if it's a device like a mouse or headset.
 +
{{code|<bash>bluez-simple-agent hci0 12:34:56:78:9A:BC</bash>}}
 +
 +
 +
You then make the device trusted so that it can automatically connect in future:
 +
{{code|<bash>bluez-test-device trusted 12:34:56:78:9A:BC yes</bash>}}
 +
 +
 +
And then finally, connect to the device:
 +
{{code|<bash>bluez-test-input connect 12:34:56:78:9A:BC</bash>}}
 +
 +
 +
It should now be shown as normal in the bluetooth menus and settings window and should connect automatically when the session starts.
  
 
== See also ==
 
== See also ==
 
*[[Install a new desktop]] ''- our procedure for what to install and configure on a local workstation after the bare OS is installed''
 
*[[Install a new desktop]] ''- our procedure for what to install and configure on a local workstation after the bare OS is installed''
 
*[[GNOME]]
 
*[[GNOME]]
*[[Brazilian keyboard settings]]
 
 
*[https://wiki.debian.org/Gnome Gnome page on Debian wiki]
 
*[https://wiki.debian.org/Gnome Gnome page on Debian wiki]
 
*[http://www.linux-watch.com/news/NS3128387759.html Etch release delayed by financial arguments]
 
*[http://www.linux-watch.com/news/NS3128387759.html Etch release delayed by financial arguments]

Revision as of 11:13, 26 April 2015

Debian-logo.svg

Debian is a free operating system using the Linux kernel, but most of the basic OS tools come from the GNU project; hence the name GNU/Linux. At Organic Design we install Debian on our servers using the install a new server procedure, and have been using it for over ten years.

As of June 2013 we decided to change from Ubuntu to Debian for our workstations as well since Ubuntu is increasingly becoming the "microsoft of the free software world" with pay software and services at every corner and compulsory spyware riddled throughout system.

As of early 2024 we've changed to Linux Mint for our workstation machines, mainly due to the fact that they're very up to date with their choice of Linux kernel version which allowed me to use my touch-screen on my Samsung ATIV Smart PC Pro (XE700T1C) and fixed a long-standing bug on Beth's Lenovo Ideapad S10-3 which prevented it from resuming from standby.

Installation

Bad Windows and Ubuntu.svg

Installation is covered here and for our typical situation involves downloading the first of the amd64 DVD iso images and copying it onto a memory stick using the following commands from a root shell where X is the number of the device that the USB stick is on which can be obtained from dmesg or df etc. Note that the numbers on the end of devices such as /dev/sda1 refer to the partitions within the device, but the boot record is outside of any specific partition, so the number must be excluded in the command to refer to the device as a whole.

<bash>

umount /dev/sdX cp debian.iso /dev/sdX sync </bash>

Distribution upgrades

To upgrade Debian, first ensure that there are no conflicting or held back packages. If there are, these issues are best sorted out first.

<bash>dpkg --audit

dpkg --get-selections

Then run aptitude and press "g" and only carry on when you have the message "No packages are scheduled to be installed, removed or upgraded".

Next change all your sources over in /etc/apt/sources.list from the old distro name such as squeeze to the new one such as wheezy. And then do the upgrade in two steps, first upgrade the packages and then do the dist-upgrade as follows:

<bash>apt-get update

apt-get upgrade apt-get dist-upgrade</bash>

It's best to use the package maintainer's version of any updated configuration files it mentions. You can have a second shell window open so you can check the changed parts of the configuration that have changed and back them up or copy them across to the freshly created version.

Centrino Wireless-N 1030

This driver is not included in the Debian installation or on-line repositories so has to be manually installed afterwards. See also Set up a wifi hotspot

<bash>

echo "deb http://http.debian.net/debian/ wheezy main contrib non-free" >> /etc/apt/sources.list apt-get update apt-get install firmware-iwlwifi modprobe -r iwlwifi ; modprobe iwlwifi </bash>

Bluetooth

I found that I couldn't get any of my bluetooth devices to pair in the default install of Debian 7. The devices would show up in the detected list and the pairing process would initiate properly, but would then fail to complete. Using the bluez tools from the terminal worked though with the following procedure I found here. Strangely, after I got the first thing (my mouse) working with this process, then my phone was able to pair from the GUI as normal even though it had failed prior to getting the mouse to work.

<bash>hcitool scan</bash>

This process gives you the MAC address of your device which you can then begin the pairing process with as follows. This will ask you for the pin which you type in to your device etc or use 0000 if it's a device like a mouse or headset.

<bash>bluez-simple-agent hci0 12:34:56:78:9A:BC</bash>


You then make the device trusted so that it can automatically connect in future:

<bash>bluez-test-device trusted 12:34:56:78:9A:BC yes</bash>


And then finally, connect to the device:

<bash>bluez-test-input connect 12:34:56:78:9A:BC</bash>


It should now be shown as normal in the bluetooth menus and settings window and should connect automatically when the session starts.

See also