hype-o-thetic?com Rotating Header Image

Posts under ‘linux’

Ping Ubuntu hostname from Windows (winbind+samba)

Here’s a procedure I found on taesch.com to ping a Ubuntu machine by the hostname from a Windows PC:

sudo vi /etc/nsswitch.conf
hosts: files wins dns

sudo aptitude install winbind
sudo aptitude install samba

SOURCE: http://taesch.com/my-digital-life/cant-ping-ubuntu-hostname-from-windows-xp-setup-winbind

Diskless HTPC using DD-WRT (PXE), Ubuntu/XBMC and FreeNAS (TFTP, NFS)

Given that I spent time and money on my FeeNAS node, I want to maximize its usage, so when a friend told me that I can use PXE and NFS to boot a diskless computer from the network, I thought it was the perfect opportunity to try somehing new and activate some more services under FreeNAS!

Ubuntu: ethtool permanent 1000baseTX full-duplex

vi /etc/init.d/1000Mbs
#!/bin/sh

ETHTOOL="/usr/sbin/ethtool"
DEV="eth0"

case "$1" in
start)
echo -n "Setting eth0 speed 1000 full-duplex…";
$ETHTOOL -s $DEV speed 1000 duplex full autoneg on;
echo " done."
[...]

Ubuntu Jaunty: ATI Radeon HD 2400 XT working in dual head with compiz! (Catalyst 9.7)

1 – Compile and install driver:
Source: http://wiki.cchtml.com/
[cci lang="bash"]sudo aptitude install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms
sh ati-driver-installer-9-7-x86.x86_64.run –buildpkg Ubuntu/jaunty
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb[/cci]
2 – Generate base xorg.conf:
[cci lang="bash"]sudo aticonfig –initial=dual-head
sudo aticonfig –dtop=horizontal[/cci]
Note: you can do “dpkg-reconfigure xserver-xorg” to reset you xorg.conf to default values.
3 – Log out and log in to use [...]

Ubuntu Jaunty: ATI Radeon HD 2400 XT working in dual head (Catalyst 9.6)

1 – Compile and install driver:
Source: http://wiki.cchtml.com/
[cci lang="bash"]sudo aptitude install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++5 dkms
sh ati-driver-installer-9-6-x86.x86_64.run –buildpkg Ubuntu/jaunty
# i386
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb
# AMD64
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb[/cci]
2 – Generate xorg.conf:
[cci lang="bash"]sudo aticonfig –initial=dual-head –screen-layout=right
sudo aticonfig –dtop=horizontal –overlay-on=1
sudo aticonfig –xinerama=on[/cci]
Note: you can do “dpkg-reconfigure xserver-xorg” to reset you xorg.conf to [...]

Linux delete/reset old eth0 network card

When you add a new network card in your linux box and remove the old one, the new card will be named eth1. If you want to change it back to eth0, you can edit the file “70-persistent-net.rules” to remove the old eth0 card line and also remove the new eth1 line:
[cci lang="bash"]vi /etc/udev/rules.d/70-persistent-net.rules[/cci]
Then you [...]

NoMachine FreeNX – NX Free Edition

https://help.ubuntu.com/community/FreeNX

Ubuntu: Send e-mail through your ISP with smtp

dpkg-reconfigure exim4-config
Choose: “mail sent by smarthost; received via SMTP or fetchmail”

Linux: Backup and restore your system!

Get root access:
[cci lang="bash"]sudo su[/cci]
To backup:
[cci lang="bash"]tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys /[/cci]
To restore:
[cci lang="bash"]tar xvpfz backup.tgz -C /[/cci]
Source: http://ubuntuforums.org/showthread.php?t=35087
To backup on an other mount:
[cci lang="bash"]tar cvpzf /mnt/data/backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/mnt –exclude=/sys /[/cci]

Ubuntu-Gnome minimal install with “alternate installer”

Use the Ubuntu “alternate installer” disc
At the start menu press F4 and select “Install a commande-line system”

Complete the installation process
After add the gnome-core package and gdm:
[cci lang="bash"]aptitude install gnome-core gdm[/cci]

Voilà!

Creative Commons Attribution-ShareAlike 2.5 Canada
This work by gimpe is licensed under a Creative Commons Attribution-ShareAlike 2.5 Canada.