Category > linux

Ping Ubuntu hostname from Windows (winbind+samba)

gimpe » 19 February 2010 » In linux, network, tips » No Comments

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

  1. sudo vi /etc/nsswitch.conf
    hosts: files wins dns
  2. sudo aptitude install winbind
  3. sudo aptitude install samba

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

Continue reading...

Tags: , ,

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

gimpe » 20 September 2009 » In FreeNAS, htpc, hype, linux, network » 2 Comments

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!

Continue reading...

Tags: , , ,

Ubuntu: ethtool permanent 1000baseTX full-duplex

gimpe » 01 August 2009 » In bash, linux, network » No Comments

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."
        ;;
    stop)
        ;;
esac

exit 0
update-rc.d 1000Mbs defaults

SOURCE: http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html

Continue reading...

Tags: , ,

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

gimpe » 29 July 2009 » In linux » No Comments

1 – Compile and install driver:
Source: http://wiki.cchtml.com/

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

2 – Generate base xorg.conf:

sudo aticonfig --initial=dual-head

sudo aticonfig --dtop=horizontal

Note: you can do “dpkg-reconfigure xserver-xorg” to reset you xorg.conf to default values.

3 – Log out and log in to use the new xorg.conf

4 – Activate multi-screen & compiz:

Source: http://www.uluga.ubuntuforums.org/showthread.php?p=7552538

Start ATI Catalyst Control Center as root:

sudo amdcccle

Now, go in Display Manager -> Multi-Display -> Big Desktop right fo display 1

Then start compiz: System -> Preferences -> Appearence -> Visual Effects

Continue reading...

Tags:

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

gimpe » 18 June 2009 » In linux » 2 Comments

1 – Compile and install driver:
Source: http://wiki.cchtml.com/
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

2 – Generate xorg.conf:
sudo aticonfig --initial=dual-head --screen-layout=right

sudo aticonfig --dtop=horizontal --overlay-on=1

sudo aticonfig --xinerama=on

Note: you can do “dpkg-reconfigure xserver-xorg” to reset you xorg.conf to default values.

3 – Bug workaround:
Source: http://jen3ral.wordpress.com/

  1. Login to a tty (ctrl+alt F1) and type sudo killall gdm.
  2. Type sudo nano (or gedit, whichever you prefer) /etc/ati/amdpcsdb to edit the file. Go to the [AMDPCSROOT/SYSTEM/DDX] section and add:
    EnableRandR12=Sfalse.
  3. Type this into a terminal, sudo nano (or gedit) /etc/X11/xorg.conf, to open the xorg.conf file.
  4. Under the “Device” section add these options on separate lines:
    Option "EnableRandR12" "false"
    Option "DesktopSetup" "horizontal"
  5. Now just restart your computer and it should be good to go.

Compiz still not working…

Continue reading...

Tags:

Linux delete/reset old eth0 network card

gimpe » 15 June 2009 » In linux » No Comments

rulesWhen 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:

vi /etc/udev/rules.d/70-persistent-net.rules

Then you just need to reboot and the file will be updated with the new network card as eth0.

Continue reading...

Tags:

NoMachine FreeNX – NX Free Edition

gimpe » 26 April 2009 » In linux » No Comments

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

Continue reading...

Tags:

Ubuntu: Send e-mail through your ISP with smtp

gimpe » 03 March 2009 » In linux » 1 Comment

dpkg-reconfigure exim4-config

Choose: “mail sent by smarthost; received via SMTP or fetchmail”

Continue reading...

Tags:

Linux: Backup and restore your system!

gimpe » 28 February 2009 » In linux » No Comments

Get root access:
sudo su

To backup:
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

To restore:
tar xvpfz backup.tgz -C /

Source: http://ubuntuforums.org/showthread.php?t=35087

To backup on an other mount:
tar cvpzf /mnt/data/backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys /

Continue reading...

Tags:

Ubuntu-Gnome minimal install with “alternate installer”

gimpe » 14 February 2009 » In linux » No Comments

linux-command-line

  1. Use the Ubuntu “alternate installer” disc
  2. At the start menu press F4 and select “Install a commande-line system”
  3. Complete the installation process
  4. After add the gnome-core package and gdm:
    aptitude install gnome-core gdm

Voilà!

Continue reading...

Tags: