Problem: By default Debian with GDM3 is slow on older Hardware like Laptops or PCs with small Graphic Card Background: GDM3 shows Images at size 800×600 an zooms up to Screen Size, this burns speed. Solution: edit gdm3-theme config sudo nano /usr/share/gdm/greeter-config/20_debian and change to #Use a specific background #/desktop/gnome/background/picture_filename /..path #to wallpaper #/desktop/gnome/background/picture_options zoom #zoom /desktop/gnome/background/primary_color #357DAA # color Win2000 # Theming options #/desktop/gnome/interface/gtk_theme Clearlooks # Greeter options #/apps/gdm/simple-greeter/logo_icon_name debian-swirl # Play system beeps – especially the one when the greeter is ready #/desktop/gnome/sound/event_sounds true # Some other possible options #/apps/gdm/simple-greeter/banner_message_enable true #/apps/gdm/simple-greeter/banner_message_text Welcome #/apps/gdm/simple-greeter/disable_restart_buttons false #/apps/gdm/simple-greeter/disable_user_list false # […]
Category: Howto
Debian Wheezy: linux/videodev.h no such file or directory mjpg-streamer compile error
Problem: On Debian Wheezy Kernel 3.0 the compile of older video4linux (like mjpg-streamer) scripts fails with message, cause linux/videodev.h was replaced by linux/videodev2.h Error Message at "make" compile: …linux/videodev.h : no such file or directory Solution: download last sources of mjpg-streamer-experimental and extract to /usr/src/mjpg-streamer/ sudo cd /usr/src/mjpg-streamer/ and sudo make clean all, if fails then sudo apt-cache search videodev.h shows libvideo-ivtv-perl sudo aptitude install libvideo-ivtv-perl try recompile if fails.. updatedb && locate videodev.h, shows not found ?? then.. updatedb && locate videodev2.h, videodev2.h is found? then cp /usr/include/linux/videodev2.h /usr/include/linux/videodev.h try recompile, if libjpeg errors appear then install sudo aptitude […]
Linux Green IT: Basics to save Energy and Resources
Problem: Every User today read a lot of articles on the Net about Green-IT, but the basics are often forgotten! Background: Current Office PCs and Servers need a lot of Energy at the Offices Current and new Operating Systems need more and faster Hardware The Industries blow up Applications and Online Webpages with animated Applets you never need Current Hardware produce more and more heat, which you have to cool If you want to go the right way at your IT Future then do remark these points: Plan your IT Future detailed !!!! Make a sheet of all needed […]
Openbox: Quick Keyboard Shortcuts Internet Mail Run Command
Problem: If you want to work faster with your Openbox Desktop you should use Keyboard Shortcuts for often used Programs like Internet, Mail and Run Command box. Solution: edit as user $nano /home/user/.config/openbox/rc.xml insert #Fullscreen CTRL+F11 <keybind key="C-F11"> <action name="ToggleFullscreen"/> </keybind> #RunCommand with gmrun on X CTRL+R <keybind key="C-R"> <action name="Execute"> <execute>gmrun</execute> </action> </keybind> #Internet Key with chromium CTRL+I <keybind key="C-i"> <action name="Execute"> <execute>chromium-browser</execute> </action> </keybind> #Internet Mail with icedove CTRL+M <keybind key="C-M"> <action name="Execute"> <execute>icedove</execute> </action> </keybind> save and relogin into openbox..enjoy economy working.. Remark: Its powerful on small Netbooks or Laptops cause you don’t need to use tricky […]
Linux Bug: Disable Framebuffer Nvidia free Driver Nouveau for hanging xserver-xorg (for Servers)
Problem: Nouveau the free Version of the Nvidia Display Driver crash if you switch to Console or kill the xserver-xorg.Its enabled by default inside the KERNEL!! this WAS NOT DEFAULT at last DECADES!! (DEBIAN 3.0-5.0 never used it!, cause bugs and hanging Servers) Solution: echo 'blacklist nouveau' > /etc/modprobe.d/blacklist-nouveau.conf then edit with $sudo nano /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="noquiet nouveau.nomodeset=0" #on Ubuntu set "nomodeset noplymouth" … update grub Loader with sudo update-grub2 REMARK: THIS MUST BE USED AT SERVERS FOR […]
Linux Bug: SATA failed command: WRITE FPDMA QUEUED ata3.00 ncq freeze hang
Problem: If you copy or install Files from Disk to Disk somtimes the fresh installed Debian Ubuntu Linux in Textmode (server minimal setup) current kernel freezes or lost connect to the Disks. Take a CLOSER LOOK the Error often affects ALL DISKS !! If only one Disk affected replace the Drive to SATA600 Hardware: Asus M4n75TD NEW with Phenom 1090T X6 and 8GB Ram and /dev/sda: Model=Hitachi, FwRev=GM4OA52A, SerialNo=GEA530RF1RDDGA Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=56 BuffType=DualPortCache, BuffSize=15118kB, MaxMultSect=16, MultSect=off CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: […]
Linux: Active Desktop for Linux Xserver openbox Meteosat Active Desktop Wallpaper Weatherstation
Problem: If you use Linux for your Desktop perhaps you miss the “Active Desktop” of Windows Internet Explorer to see changed Web Images? Solution: To show Web Images on your Desktop (xserver) you can use program called feh, you will need NO Browser very good for Meteosat Thin Client use or Debian Linux on a Flash Disk 1GB use. With feh smallest debian install possible no hal and no dbus or consolekit needed. sudo apt-get install feh create a small script at your home folder echo ' feh –bg-center http://oiswww.eumetsat.org/IPPS/html/latestImages/EUMETSAT_MSG_RGB-naturalcolor-centralEurope.jpg' > /home/yourname/background.sh edit crontab with crontab -e insert : @hourly Display=:0.0 […]
Small Linux on Thin Client 32MB Disk
Problem: If you have bought a Thin Client Terminal, you lost updates after some years, cause the manufacter closes the support, or you have to pay for the Upgrades. Solution: To reuse the old Hardware take a closer look on www.tinycorelinux.com There you find a very small modular Linux. You must not buy new Hardware! Tinycorelinux runs on x86 (Intel/AMD/Via) Hardware with a current 2.6 Kernel inside a RAMDISK. Preferred Applications: Kiosk Internet Box Internet Radio Netbook with full ThinClient Support for High Security Travel (Company’s) Internet PC Office PC Fast energy saving embedded PC with ramdisk Use SSH […]
Debian Ubuntu: Openbox Lxpanel Bug “Abmeldebefehl ist nicht definiert” “Logout command is not set”
Problem: If you install Openbox with lxpanel instead of LXDE and the User Profile is created after first logon, lxpanel config files are not created Solution: Klick right with the Mouse on the lxpanel-settings, go tab advanced, set exit command = openbox –exit, save and close
Debian Ubuntu: Delete Packages which are marked as “rc”
Problem: If you up/downgrade a Debian most of unneeded files are always on your disk Solution: To check: $sudo dpkg -l | more To cleanup: dpkg –list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg –purge If you like run the command twice cause sometimes deps are new taken or install deporphan to: $sudo deborphan | xargs sudo apt-get -y remove –purge If you like run the command twice cause sometimes deps are new taken
Debian Squeeze: Which is current the best Debian for Laptops?
Problem: There is no difference between new and old Laptops, they always need the best Drivers on Linux to operate safe. Solution: For this you should take Sqeeze Debian Version. To get a fast Desktop on a older Laptop like a Thinkpad R50p or T30 you can use LXDE Desktop. /etc/apt/sources.list deb http://ftp2.de.debian.org/debian/ squeeze main non-free contrib deb-src http://ftp2.de.debian.org/debian/ squeeze main non-free contrib deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free for upgrade, or take the LXDE-Debian-testing iso of the Debian Mirrors. To install with a Install netinst – CD do: aptitude install xdm lxde xserver-xorg […]
MySQL : Backup and Restore Database without phpmyadmin (commandline)
Problem: phpmyadmin interfaces are slow and often attacked by script kids, if you can don’t use it! Solution: To backup and restore use command line To Backup a database: $mysqldump -u root -p wordpressdb > /backups/wordpressdb-dump.sql [Enter root password] To restore: $mysql -u root -p wordpressdb < /backups/wordpressdb-dump.sql[Enter root password] Remark: this is not recogized by the ONLINE SYSTEM if users visits you pages to read! There must be no shutdown of the mysql or apache webserver, its a online HOT-Dump. If you like put it into a script and set cron to backup every night. Sample Bash MySQL Script […]
WordPress MySQL: Cleanup old revisions old posts old entrys
Problem: If you use wordpress and edit often your posts a high count of old revisions are backuped inside the mysql database: Solution: Login mysql $mysql -u root -p [Enter root password] at mysql command line select wordpress your database mysql>use wordpressdb; [Enter] System echo=Database changed.. delete old backups of posts mysql>DELETE FROM wp_posts WHERE post_type = "revision"; [Enter] System echo=..Entry affected time.. logout database and revisit pages, if you have made a database backup with mysqldump before and after cleanup you see how much size the database lost (du -h wordpress.sql) often 80% of the size.
Ubuntu Debian: Replace Oracle OpenOffice with Free LibreOffice
Problem: Last weeks most of the free OpenOffice (Oracle owned) workers moves to the new free version LibreOffice http://www.documentfoundation.org Solution: To use free Software do: on 32bit: download files.. cd /tmp wget http://ftp5.gwdg.de/pub/tdf/libreoffice/testing/3.3.0-beta2/deb/x86/LibO_3.3.0_beta2_Linux_x86_install-deb_en-US.tar.gz wget http://ftp5.gwdg.de/pub/tdf/libreoffice/testing/3.3.0-beta2/deb/x86/LibO_3.3.0_beta2_Linux_x86_langpack-deb_de.tar.gz unpack.. tar -xzvf LibO_3.3.0_beta2_Linux_x86_install-deb_en-US.tar.gz tar -xzvf LibO_3.3.0_beta2_Linux_x86_langpack-deb_de.tar.gz go into file to install.. cd DEBS sudo dpkg -i *.deb sudo dpkg -i desktop-integration/*menus*.deb cd /tmp/DE/DEBS sudo dpkg -i *.deb ENJOY THE NEW FREEDOM… on 64bit: download files.. cd /tmp wget http://download.documentfoundation.org/libreoffice/testing/3.3.0-beta2/deb/x86_64/LibO_3.3.0_beta2_Linux_x86-64_install-deb_en-US.tar.gz wget http://download.documentfoundation.org/libreoffice/testing/3.3.0-beta2/deb/x86_64/LibO_3.3.0_beta2_Linux_x86-64_langpack-deb_de.tar.gz unpack files.. tar -xzvf LibO_3.3.0_beta2_Linux_x86_install-deb_en-US.tar.gz tar -xzvf LibO_3.3.0_beta2_Linux_x86_langpack-deb_de.tar.gz go into file to install.. cd DEBS sudo dpkg -i *.deb sudo dpkg -i desktop-integration/*menus*.deb […]