Miralinux Blog

  • Home
  • Linux
    • Scripts
    • CentOS
  • Apple
  • Microsoft
    • Features
    • Office
    • Windows
  • Learning
  • Games
  • Multimedia
    • XBMC
  • Other
    • About WordPress
  • Links
    • General
    • Software
      • Autocad
    • Hardware
      • BIOS
    • Linux
    • WiKieS

Links – vLAN un-Tagged

Posted on 2011/06/05 by arno Posted in Links

Virtual Network Terminology

What Is a Virtual LAN (VLAN)?

VLAN Terminology

Links

http://en.wikipedia.org/wiki/IEEE_802.1Q#Native_VLAN

http://wiki.openwrt.org/doc/networking/network.interfaces?s[]=vlan

Layer 3 Switches Explained

http://www.petri.co.il/forums/showthread.php?t=8954

http://vimeo.com/10523803

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_see/configuration/guide/swpvlan.html#wp1038379

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat5000/rel_4_1/config/vlans.htm

Hardware Links

Linux Ubuntu 10.04 first steps

Posted on 2011/05/01 by arno Posted in Linux, Uncategorized

Introduction to fstab

http://www.techsupportalert.com/content/ubuntu-tips-and-tricks.htm#Customize-the-Panel

Configure resolution

https://wiki.ubuntu.com/X/Config/Resolution

http://www.ubuntugeek.com/how-change-display-resolution-settings-using-xrandr.html

http://www.thinkwiki.org/wiki/Xorg_RandR_1.2

http://jamesmcdonald.id.au/it-tips/getting-higher-screen-resolution-for-a-ubuntu-11-04-guest-in-virtual-box

 

disable Gnome Keyring

Gnome Keyring is a small utility to authorize applications before opening them. But sometimes it feels really annoying when it starts to prompt to enter keyring password every time when you open some application. So this small tutorial teaches you eliminate the need of entering keyring password over and over again.

This method will work both for keyring with a password being set at some point of time by you and as well as default password being set without your knowledge. Follow the steps:

Step 1. If your keyring password is different from your login password, do this before you proceed to step 2, else skip this step.

a) Open your terminal and from navigate to:
cd .gnome2/keyrings/

b) Make sure there is a file called “default.keyring” in the directory by typing:
ls -l

c) Now remove the file by typing the below command:
rm default.keyring

Step 2: Open your terminal and follow these steps:

– Install libpam-keyring:
sudo apt-get install libpam-keyring

– Now to modify gdm login:
sudo gedit /etc/pam.d/gdm

– Now it will open an file, add this line at the end:
@include common-pamkeyring

That’s it. Now restart your Ubuntu and open any app that used to prompt you to enter keyring password. If you had done the above steps properly, it will now prompt you to set a new password. If you want to enter a new password, better set the same password as of your login password or just leave it empty if you totally want to get rid of keyring.

Linux

Asus F3F repair

Posted on 2011/05/01 by arno Posted in Uncategorized

http://www.asusparts.eu/

http://vip.asus.com/forum/view.aspx?id=20091217021650796&board_id=3&model=F3Sv&page=1&SLanguage=en-us

http://vip.asus.com/forum/view.aspx?id=20101107235231184&board_id=1&model=P7F7-E+WS+Supercomputer&page=1&SLanguage=en-us

http://vip.asus.com/forum/view.aspx?board_id=3&model=F3Sc&id=20100101192011203&page=1&SLanguage=en-us

http://vip.asus.com/forum/view.aspx?id=20090313173514768&board_id=3&model=F3Sv&page=1&SLanguage=en-us

http://forum.notebookreview.com/asus/122632-asus-info-booth-read-before-posting.html

http://img26.imageshack.us/img26/2123/key01.jpg

http://img144.imageshack.us/img144/1701/key02.jpg

http://i84.photobucket.com/albums/k33/anamnesia/F3SV_Screws.jpg

http://1toppc.com/Merchant2/images/Notebook/Asus/M51SR-2/Asus_M51SR_20.jpg

 

ps, i love my blog 🙂 been a while when i dismounted this stuff 😉

Links – Software

Posted on 2010/12/28 by arno Posted in Links

Windows 7 OPK – http://www.microsoft.com/oem/en/downloads/Pages/windows_7_opk.aspx

Sysinternals Suite – Meuktracker – http://technet.microsoft.com/en-us/sysinternals/bb842062

Java Uninstall Applet – http://java.com/en/download/uninstallapplet.jsp

Links Software

Server 2003 & Windows 7 GPO Software installation

Posted on 2010/12/28 by arno Posted in Uncategorized

Microsoft GPO software depoyment
Keep in mind that the deployed ‘.zap’ packages are only deployed to x86 machines by default
You need to select ‘Properties’ -> [Deployment] -> [Advanced] -> tag [Make this 32-bit x86 application available to Win64 machines]

http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Deploy-Applications.html

http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/68937179-2315-44d0-8df8-752159418b2e

Information about new Group Policy preferences in Windows Server 2008

 

Windows 7 Jumplist Word Excel missing / not working

Posted on 2010/11/29 by arno Posted in Uncategorized
source: http://superuser.com/questions/106629/word-2007-jumplist-missing

Delete large files in : %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations



Microsoft Office Windows 7

Links – Hardware

Posted on 2010/11/18 by arno Posted in Links, Uncategorized

http://www.triodedick.com/

Harddisks SSD

http://www.tomshardware.com/reviews/samsung-470-sandforce-best-ssd,2783-15.html

http://ssd-reviews.com

 

Harddisks SSD Cleanup

How to clean up space on your C: drive in Windows XP

Turn off indexing and speed up Windows XP

Change Journals

Google – optimize windows xp ssd

OCZ – Making XP pro SSD friendly

Four Steps to Optimize Your SSD

 

Hardware Links

Book – What is Mac OS X?

Posted on 2010/11/18 by arno Posted in Uncategorized

What is Mac OS X?

http://osxbook.com/book/bonus/ancient/whatismacosx/

http://osxbook.com/book/preface/

Apple Books

Exam 70-291

Posted on 2010/11/11 by arno Posted in Uncategorized

http://techworld.nl/technologie/34610/5-gratis-windows-customization-tools.html?page=1

http://technet.microsoft.com/en-us/library/cc940478.aspx

Firewall – BAPI belatingdienst

Posted on 2010/10/29 by arno Posted in Uncategorized

Op welke Firewall instellingen dient u te letten

in verband met de elektronische aangifte?

Het Elektronische Aangifte Programma en het geïntegreerde Aangifte Programma in Exact Globe en Exact Compact, maakt gebruik van het internet om gegevens te versturen naar de Belastingdienst en te ontvangen van de Belastingdienst. Veel bedrijven gebruiken tegenwoordig een zogenaamde ‘Firewall‘ om ongewenst internetbezoek af te schermen voor uw organisatie. De mogelijkheid bestaat dat het elektronische aangifte programma niet kan communiceren met de Belastingdienst, omdat de Firewall de communicatie blokkeert. De volgende poorten dienen open te staan zodat communicatie tussen het Elektronische Aangifte Programma en de Belastingdienst mogelijk is:

  • Poort 25 (SMTP) voor het versturen van informatie naar de Belastingdienst
  • Poort 143 (IMAP4) voor het ontvangen van informatie van de Belastingdienst
  • Poort 389 (LDAP) voor controle certificaten met Diginotar

Het is niet mogelijk om voorbeelden te geven van alle verschillende Firewall-applicaties met een eigen interface. Wanneer u gebruik maakt van de Firewall meegeleverd met Microsoft Windows XP, hoeft u niets te configureren. Het Elektronische Aangifte Programma maakt alleen gebruik van uitgaande communicatie.

Hoewel het EAP niet wordt ondersteund in combinatie met Windows Vista kunt u met Windows Vista wel gebruik maken van het Elektronisch Aangifte programma dat is geïntegreerd in Exact Globe en Exact Compact. In Windows Vista is Telnet standaard niet geactiveerd. Om de onderstaande commando’s uit te kunnen voeren dient u dan ook eerst Telnet te activeren. Dit kunt u als volgt doen:

  • Klik op [Start, Configuratiescherm, Programma’s] en klik vervolgens op ‘Windows-onderdelen in- of uitschakelen’.
  • Typ het wachtwoord of een bevestiging als u wordt gevraagd om het Administrator-wachtwoord of een bevestiging.
  • Vink in het dialoogvenster ‘Windows Functies’ de optie ‘Telnet-client’ aan.
  • Klik Vervolgens op OK. De installatie kan enkele minuten in beslag nemen.

Controle of een Port open staat voor communicatie:
U kunt vanaf ieder willekeurig werkstation controleren of een poort open of dicht staat. Om te controleren of poort 25, 143 or 389 gebruikt kan worden, kunt u in Windows kiezen voor [Start, Uitvoeren] en typ op regel CMD in gevolgd door een <Enter>. De Command Prompt is nu geopend en u kunt de volgende commando’s gebruiken om de poorten te testen:

telnet smtp.bapi.belastingdienst.nl 25

Indien de poort open staat volgt de melding: “220 PRODROB1.bmsg.nl ESMTP Service (7.0.035) ready“.
Indien de poort dicht staat, volgt de melding: “Could not open the connection to the host, on port 25: Connect failed“.

Info – Voor het verzenden van berichten wordt poort 25 geadviseerd. Het kan zijn dat u deze poort niet open wilt zetten om veiligheidsredenen. De Belastingdienst en Exact Software maken communicatie via poort 587 ook mogelijk zodat u een alternatief heeft voor poort 25. U hoeft niets in de software aan te passen, alleen de poort 587 open te zetten.

telnet mail.bapi.belastingdienst.nl 143

Indien de poort open staat volgt de melding: “* OK IMAP4 PROXY server ready (7.0.043)“.
Indien de poort dicht staat, volgt de melding: “Could not open the connection to the host, on port 143: Connect failed“.

telnet directory.diginotar.nl 389

Indien de poort open staat zal er alleen een zwart scherm getoond worden
Indien de poort dicht staat, volgt de melding soort gelijke melding: “Connecting To directory.diginotar.nl…Could not open connection to the host, on port 389: Connect failed”

Firewall

Apache – ‘content-negotiation’ aka ‘Extentionless URLs’

Posted on 2010/10/21 by arno Posted in Uncategorized

multiviews-gebruiken-in-php

sources:
http://httpd.apache.org/docs/1.3/content-negotiation.html
http://x10hosting.com/forums/programming-help/97200-extentionless-urls.html
http://www.garnetchaney.com/htaccess_tips_and_tricks.shtml
http://www.bluehostforum.com/showthread.php?11888-Problem-with-mod_rewrite.c

AllowOverride moet enabled zijn. (ALL)

* Server wide / virtual hosts. /etc/httpd/conf/http.conf
<Directory “/var/www/html”>
….knip….
Options Indexes FollowSymLinks [b]MultiViews[/b]
….knip….
</Directory>

* via .htaccess
<IfModule mod_rewrite.c>
Options +MultiViews
</IfModule>

BIOS SATA Controller Setting ALPE and ASP

Posted on 2010/10/10 by arno Posted in Uncategorized

Source: http://www.techsupportforum.com/hardware-support/motherboards-bios-cpu/45869-alpe-asp-sata-setting-p5ad2.html

ALPE and ASP:
According to Intel SATA documents, ALPE means “Aggressive Link Power Management Enable”, and ASP means “Aggressive Slumber/Partial”. The two bits work together. ALPE is like an enable; when ALPE is off, ASP is ignored. When ALPE is on, ASP is also enabled, and allows controlling certain power-related aspects of the SATA ports: basically it allows your ICH6R Southbridge chip to power some stuff down if something figures out it’s not needed.

Asus doesn’t let you control ALPE and ASP separately, and it’s probably unnecessary anyway. Instead they give you the one BIOS field that turns on some [fixed] combination of these two bits.

Staggered Spinup Support:
This is one of the features available when ASP is on. According to Maxtor documents, this is a feature that lets hard disks that have gone to sleep (“slumber”) or are otherwise starting from a stopped condition, to power up sequentially instead of all at once. Because a drive draws most of its power during spinup, systems with many drives in them can strain the power supply. With staggered spinup active, the idea is that you can have more drives in the system on a smaller power supply. Your DiamondMax 10 is one of the newer drives that supports this feature, although it may be dependent on your supply’s wiring harness… I can’t quite tell, this being the first time I’ve seen this new feature. If your drives and cabling support this feature, I think it would be safe to set it to Enabled.

AHCI Port 3 Interlock Switch:
This is another new feature available when ASP is on. I think that this has something to do with hot-swapping disk drives; Intel documents refer to this as “Hot Plug Support”. It has something to do with being able to detect if a disk drive has been removed from the system. The ICH6R Port Control Register has bits for four ports, numbered 0 to 3. Because Asus’ BIOS only refers to Port 3, I suspect they may only be attempting to provide Hot Plug Support on Port 3 (probably the “SATA4” port on most mobo models, unless they numbered it backwards in which case it’s “SATA1”, or unless if by “Port 3” they really mean “SATA3”… I can’t tell for sure).

This would be considered a fairly Advanced usage of this motherboard. Unless you plan to hot-swap one (and only one) Intel SATA drive, you can probably leave this feature Disabled.

Regarding 32-bit data transfer,
this is a standard field in all the AMIBIOS’ IDE configuration, not just SATA ports, and not just your mobo model. If I recall, it is here because a lot of legacy O/S’s, drivers, and disk controllers weren’t fully 32-bit compliant. Particularly if you are attaching, say, an older CDROM device or something like that. Also if you usually transfer small random chunks of data, being forced to transfer 32 bits all the time could hurt performance instead of helping it… though I think this unlikely.

I think Disabled is the usual setting, and I think this means to use the lowest common denominator, which is 16-bit transfers. This makes sense, because mobo manufacturers don’t want you to have a DOA experience just because you happened to hook up a very old piece of hardware. I have never found a need to enable it, and my systems all run fine. But since all peripherals are newer now, maybe I should try the 32 bits sometime.

DNS Transfer / Reload from master, what is what ?

Posted on 2010/09/22 by arno Posted in Learning

DNS Server primary/secondary in general

Each primary and secondary zone of the same name on two separate DNS servers contains a serial number.
Peroidically a check is made to determine if the serial number of the primary matches the secondary.
If they do, nothing happens.
If they don’t then the secondary zone is locked and the secondary zone gets the changes (i.e. adds, deletes and changes) to the zone.
Note that I said changes as this makes the update process quicker.
This process repeats over and over again day after day.

Reload from Master

A reload from master is a manual process kicked off by executing a DNSCMD.EXE command line request or
by requesting the process though the DNS Managment Console on the server performing your DNS functions.
When such a request is made the secondary copy get a full and complete reload of
the zone from the primary without regard to the serial numbers or  the time.
Reloads can be done whenever and however frequently you want.

A reload of the Primary zone is typically performed from the Managment Console.
When you invoke the console and display a zone the records in the zone are cached.
When you request a reload you are asking that the cache be completely replaced.

Transfer from Master

Reload will initiate also a flush of all records before downloading from master, but transfer will do only donwload from master.

Each primary and secondary zone of the same name on two separate DNS
servers contains a serial number. Peroidically a check is made to
determine if the serial number of the primary matches the secondary. If
they do, nothing happens. If they don’t then the secondary zone is locked
and the secondary zone gets the changes (i.e. adds, deletes and changes)
to the zone. Note that I said changes as this makes the update process
quicker. This process repeats over and over again day after day.

A reload from master is a manual process kicked off by executing a
DNSCMD.EXE command line request or by requesting the process though the
DNS Managment Console on the server performing your DNS functions. When
such a request is made the secondary copy get a full and complete reload
of the zone from the primary without regard to the serial numbers or the
time. Reloads can be done whenever and however frequently you want.

A reload of the Primary zone is typically performed from the Managment
Console. When you invoke the console and display a zone the records in
the zone are cached. When you request a reload you are asking that the
cache be completely replaced.

Microsoft server software deployment via GPO (group policies)

Posted on 2010/09/20 by arno Posted in Uncategorized

How to publish non-MSI programs with .zap files

Youtube Group Policy Software Deployment – 2008/Vista – Part 1 & Part 2

Links – Linux

Posted on 2010/09/19 by administrator Posted in Links, Linux

Linux Distros

http://en.wikipedia.org/wiki/Comparison_of_BSD_operating_systems

Project

http://www.bacula.org/en/ – Opensource back-up software

 

Linux

Linux Directory Structure

NixCraft

20 Linux Server Hardening Security Tips

Nixcraft – FAQ 2010 09

Making Fedora USB Media in other Linux Distributions

Upgrading Fedora using yum

Linux PPTP

Microsoft Including routing table updates

http://www.cyberciti.biz/tips/howto-configure-ubuntu-fedora-linux-pptp-client.html

http://pptpclient.sourceforge.net/howto-debian.phtml#configure_by_hand

http://www.cyberciti.biz/faq/linux-route-add/

Cisco

Resolve IP Fragmentation, MTU, MSS, and PMTUD Issues with GRE and IPSEC

VNC

http://wiki.centos.org/HowTos/VNC-Server

Scripting

http://www.unixguide.net/unix/sedoneliner.shtml

http://en.wikipedia.org/wiki/Cut_%28Unix%29

http://www.gnu.org/software/gawk/manual/gawk.html – http://people.cs.uu.nl/piet/docs/nawk/nawk_toc.html

Hardware

http://www.jamesonwilliams.com/hardy-r8168

Miscellaneous

Re: icmp unreachable – need to frag

HOWTO: Solve / investigate high Linux system load

Links Linux

Custom kernel compilation fedora

Posted on 2010/09/18 by administrator Posted in Linux

Title: Custom kernel compilation fedora
Desc: Easy kernel compiling
URL: http://www.howtoforge.com/kernel_compilation_fedora, http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Custom_kernel_compilaton_on_RedHat_Fedora_Systems
OS: linux

Linuxquestions.org – Custom kernel compilation
* Pre requisites
* Getting the Kernel
* Configuring the kernel
* Compiling the kernel
* RPM kernels
* 2.6.x kernel notes

-=-
If you have installed the pre requisites and downloaded the kernel quickest way is by configuring the kernel and
after that compile/create rpm package.

– Configuring
# make oldconfig
will attempt to configure the current kernel using the parameters fed from an old configuration file .config.old or .config,
since the file we copied has not this name making oldconfig will result on a series of text based questions, equivalent to make config

# make menuconfig
will result in a text based GUI which lets you load up an already existing configuration file (if you have a .config) or
an alternate configuration file (like our config-2.4.20-20.9 file).
This menu depends on ncurses, so you will have to see if these libraries are installed correctly on your system.

# make xconfig
is yet another GUI X based configuration tool which makes it easier and clearer to configure the kernel,
this option also allows us to load an alternate configuration file (such as config-2.4.20-20.9).
This GUI relys on the TCL-TK library (found in the kernel development section of redhat-config-packages).
This GUI has gone a major change in 2.5/2.6 it requires KDE-devel packages.

# make gconfig
The GTK front end of the Kernel configuration GUI for kernel 2.6.x, it is structured almost identical to that of the new xconfig.
Aimed for the GNOME 2.x Desktop Environment. Requires some GTK development packages.

– Compiling / create rpm
# make rpm
After creation the rpm should be in”~/rpmbuild/RPMS/i386/”
install the kernel with # rpm -ihv kernel-2.6.34.1.i386.rpm
create the ramdisk for booting initrd # mkinitrd /boot/initramfs-2.6.34.1.img 2.6.34.1
check the bootloader for pointing to the correct files  # vi /etc/grub.conf

Linux

iPhone Jailbreak 3 Notes

Posted on 2010/09/16 by arno Posted in Apple

current version 3.1.3 *Spirit JB, reinstalling the same firmware and restoring as much of the personal/applications settings.

Restarting from scratch

¿ Why, because the iPhone went unstable, freezing touch-input (so no input at all) totaly at random

I reinstalled the iphone and after I restored the ‘cydia’ apps with Aptbackup the problem occurred again.
Second time I reinstalled and restored the applications by hand and did not restore the settings yet.

Easy commands

Restart springboard from shell
# launchctl stop com.apple.SpringBoard
# launchctl start com.apple.SpringBoard

The steps

    • Backup your stuff
  • I used Aptbackup, Appbackup and iTunes
  • rsynced the whole iPhone to a Linux machine.
  • Tiny Umbrella and Cydia to backup shsh signatures
    • Clean firmware install
  • TinyUmbrella as an shsh server to restore the current firmware.
  • Start iTunes and <shift>-click [Restore]
    (error code 3014, reboot your machine first. That solved it for me)
  • iTunes Restore the backup
  • iTunes Sync your iPhone
    • Jailbreaked the iPhone
  • After this restore I used the Jailbreakme.com it supports these devices
    • Jailbreak after
  • Disable call forwarded/forwarding messages
    • Jailbreak after, do you MUST
  • # passwd root
  • # passwd mobile
    • Results, what do we get out of this.
  • Cleaned-up iPhone system, we all like to play like gadget 😉
  • I did not miss any settings from my applications, network, bleutooth-links, mail and wi-fi as of yet and hopefully nothing at all.
  • The restore of cydia applications I did manually because of the freezing touch interface.
  • Remember to rename your device different, hopefully not overwriting the backup before the ‘Restart from scratch’
    • Whats next
  • Try restore to an previous version than the current iOS
  • Update and jailbreak to a newer version

The iPhones Path’s of privatedata:

  • /private/var/mobile/Library/AddressBook – Contacts
  • /private/var/mobile/Library/SMS
  • /private/var/mobile/Library/Notes
  • /private/var/mobile/Library/Calendar
  • /private/var/mobile/Applications – Applications root location
  • /private/var/lib/apt/lists/ – Aptbackup location
  • /private/var/mobile/Library/Preferences/AppBackup/tarballs – Appbackup location

Cydia

    • Repositories
  • repo://cydia.hackulo.us
  • repo://cydia.ifoneguide.nl
  • repo://repo.benm.at
  • repo://www.ijailbreak.com/repository – (mobile terminal)
  • (Top10 list) http://jaxov.com/2011/02/top-10-cydia-sources-of-2011/
    • Applications (installed)
  • Aptbackup
  • Appbackup
  • SBsettings
  • OpenSSH ( !! set # root &  $ mobile password !! )
  • Winterboard
  • Lockinfo
  • Lock Weather plugin
  • Installous
  • CyDelete
  • MyWi
  • Fice Icon dock
  • iSHSHit
  • Midnight Commander
  • MobileTerminal
  • Remove background
    • Theme
  • Assassin Creed Ringtone
  • NFL Ravens Theme
    • Applications (the rest)
  • Lock Callender
  • File:// Schema in Safari
  • PDANet
  • PrivaCy
  • iFile
    • Papers
  • 491

Links and references

How to Downgrade iPhone 3.1.3 to 3.1.2
iPhone Notes & Links
Disable call forwarded/forwarding messages
AppBackup – Backup all your application settings
( iPhone 3GS iOS 3.1.3 (new bootrom) tarballz location, iphone:/private/var/mobile/Library/Preferences/AppBackup/tarballs )

€-pps Links

Pkgbackup – easy backup for jailbreaked iphones

OMG
Best iphone gloves for the winter
bestappever.com 2009

Apple iPhone

Microsoft Online ID provider, Security Essentials

Posted on 2010/09/08 by arno Posted in Uncategorized

Link your Online ID to your local user account: Windows 7 online ID providers.
Microsofts guard against viruses, spyware, and other malicious software: Security Essentials.

Links Microsoft Windows 7

Backup and restore your linux system!

Posted on 2010/08/25 by arno Posted in Linux, Uncategorized

Howto: Backup and restore your system!
Hi, and welcome to the Heliode guide to successful backing-up and restoring of a Linux system!

Most of you have probably used Windows before you started using Ubuntu. During that time you might have needed to backup and restore your system. For Windows you would need proprietary software for which you would have to reboot your machine and boot into a special environment in which you could perform the backing-up/restoring (programs like Norton Ghost).
During that time you might have wondered why it wasn’t possible to just add the whole c:\ to a big zip-file. This is impossible because in Windows, there are lots of files you can’t copy or overwrite while they are being used, and therefore you needed specialized software to handle this.

Well, I’m here to tell you that those things, just like rebooting, are Windows CrazyThings ™. There’s no need to use programs like Ghost to create backups of your Ubuntu system (or any Linux system, for that matter). In fact; using Ghost might be a very bad idea if you are using anything but ext2. Ext3, the default Ubuntu partition, is seen by Ghost as a damaged ext2 partition and does a very good job at screwing up your data.

1: Backing-up

“What should I use to backup my system then?” might you ask. Easy; the same thing you use to backup/compress everything else; TAR. Unlike Windows, Linux doesn’t restrict root access to anything, so you can just throw every single file on a partition in a TAR file!

To do this, become root with
Code:

sudo su

and go to the root of your filesystem (we use this in our example, but you can go anywhere you want your backup to end up, including remote or removable drives.)
Code:

cd /

Now, below is the full command I would use to make a backup of my system:

Code:

tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys /

Now, lets explain this a little bit.
The ‘tar’ part is, obviously, the program we’re going to use.

‘cvpfz’ are the options we give to tar, like ‘create archive’ (obviously),
‘preserve permissions'(to keep the same permissions on everything the same), and ‘gzip’ to keep the size down.

Next, the name the archive is going to get. backup.tgz in our example.

Next comes the root of the directory we want to backup. Since we want to backup everything; /

Now come the directories we want to exclude. We don’t want to backup everything since some dirs aren’t very useful to include. Also make sure you don’t include the file itself, or else you’ll get weird results.
You might also not want to include the /mnt folder if you have other partitions mounted there or you’ll end up backing those up too. Also make sure you don’t have anything mounted in /media (i.e. don’t have any cd’s or removable media mounted). Either that or exclude /media.

EDIT : kvidell suggests below we also exclude the /dev directory. I have other evidence that says it is very unwise to do so though.

Well, if the command agrees with you, hit enter (or return, whatever) and sit back&relax. This might take a while.

Afterwards you’ll have a file called backup.tgz in the root of your filessytem, which is probably pretty large. Now you can burn it to DVD or move it to another machine, whatever you like!

EDIT2:
At the end of the process you might get a message along the lines of ‘tar: Error exit delayed from previous errors’ or something, but in most cases you can just ignore that.

Alternatively, you can use Bzip2 to compress your backup. This means higher compression but lower speed. If compression is important to you, just substitute
the ‘z’ in the command with ‘j’, and give the backup the right extension.
That would make the command look like this:

Code:

tar cvpjf backup.tar.bz2 –exclude=/proc –exclude=/lost+found –exclude=/backup.tar.bz2 –exclude=/mnt –exclude=/sys /

2: Restoring

Warning: Please, for goodness sake, be careful here. If you don’t understand what you are doing here you might end up overwriting stuff that is important to you, so please take care!

Well, we’ll just continue with our example from the previous chapter; the file backup.tgz in the root of the partition.

Once again, make sure you are root and that you and the backup file are in the root of the filesystem.

One of the beautiful things of Linux is that This’ll work even on a running system; no need to screw around with boot-cd’s or anything. Of course, if you’ve rendered your system unbootable you might have no choice but to use a live-cd, but the results are the same. You can even remove every single file of a Linux system while it is running with one command. I’m not giving you that command though!

Well, back on-topic.
This is the command that I would use:

Code:

tar xvpfz backup.tgz -C /

Or if you used bz2;

Code:

tar xvpfj backup.tar.bz2 -C /

WARNING: this will overwrite every single file on your partition with the one in the archive!

Just hit enter/return/your brother/whatever and watch the fireworks. Again, this might take a while. When it is done, you have a fully restored Ubuntu system! Just make sure that, before you do anything else, you re-create the directories you excluded:
Code:

mkdir proc
mkdir lost+found
mkdir mnt
mkdir sys
etc…

And when you reboot, everything should be the way it was when you made the backup!

2.1: GRUB restore
Now, if you want to move your system to a new harddisk or if you did something nasty to your GRUB (like, say, install Windows), You’ll also need to reinstall GRUB.
There are several very good howto’s on how to do that here on this forum, so i’m not going to reinvent the wheel. Instead, take a look here:

http://www.ubuntuforums.org/showthre…t=grub+restore

There are a couple of methods proposed. I personally recommend the second one, posted by remmelt, since that has always worked for me.

Well that’s it! I hope it was helpful!
As always, any feedback is appreciated!
__________________
“Windows is something to overcome”

Howto’s by me:
Tweak firefox! (URL now works..)
Backup/Restore your system!
Avoid having to reboot

Compentux.org , the Linux Tip & Howto gathering initiative!
Last edited by aysiu; November 29th, 2006 at 12:15 AM.. Reason: Moved slash to end of command by popular vote
source: http://ubuntuforums.org/showthread.php?t=35087

Linux

iPhone tweak call history size

Posted on 2010/08/21 by arno Posted in Uncategorized

iPhone 3GS iOS 3.1.3

/var/mobile/Libary/CallHistory/call_history.db

There is a record in this sqllite database called “call_history_limit” which is set to 100, change it in what you need.
I changed it into 3000, it can slow down your history listing.

Apple iPhone
« Previous Page
Next Page »
  • Login
  • Mother of all Portals
  • .Handy .Handig
  • Links – wikis – wikies

Archives

  • June 2022
  • October 2021
  • June 2021
  • September 2016
  • April 2016
  • March 2016
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
CyberChimps ©2025