Saturday, November 14, 2009

Back up for ostube



How do I create a complete backup of my osTube installation?
This tutorial explains how to create a complete backup of an existing osTube installation. All data sets as well as the database are saved. To get started, go to the admin area and activate the maintenance mode under settings. Now it is impossible to upload new media. .

* Now login at the server as root via SSH

* Copy the data sets:
o Create a directory for the backup with
# mkdir ostube_backup
o Copy all data with
# cp -av /ort/meines/ostube /root/ostube-backup (obtains all rights and origins)

* Create backup of the database (mysqldump)
o Open the directory /root/ostube_backup:
# cd /root/backup

o oCreate the MySQL-dump:
# mysqldump -u databankuser -p --opt databankname > dumpdatasetname

* To rollback the backup:
o Open /root/ostube_backup

o Input the databank with:
# mysql -u dbuser -p databankname < dumpdatasetname
# insert password

o Data rollback:
# cp -a * /ort/meines/ostube

original source i'm sory, i don't remember again... i'm willy2 sory about thats.

Sunday, November 1, 2009

Centos net install versi 5.3

Streamming testing server like youtube at home.

Home / the author's lab has several computers connected in a network. And also because most of the media machine has a small storage capacity. And only has 1 piece of hard disk storage media that have a large capacity. And also because i have many file movie, such as VTC (Video Trainning), movie theaters, video clips, n, etc., it is not effective if the author wanted to transfer files to watch first, and then watching. Very, very not effective.

So the author tried several similar web application streamming "youtube".

In the first testing time OS used is debian lenny. With minimal installation.

Using fluxbox desktop. Lighter and faster than KDE or GNOME.

3 times the experiment using debian lenny server continues to fail to make the streaming server. That is because the rigidity debian license issue. So that the extra energy needed to installations.

Many tutorials are available on the Internet has been tried, but it still failed miserably. Alias not 100% going according to the author wishes.

Start from the code image display does not come out until the uploaded videos or images that failed because of an error message saying the security problems in Apache, and in addition many more errors are found.

So then the author tried to use linux CentOS 5.3. but the problem is obtained following.

* there are 2 computers. Laptop with ubuntu OS. One child debian derivative. 8:04 hardy version. The problem is on the CD ROM that has been damaged on the laptop. And P4 desktop computer. Which only has a CD ROM drive. Not DVD ROM.
* CentOS OS version is still a version of DVD ISO files.
* Limited hard drive.


Then the authors try to use the following way.

* Centos 5.3 install netinstall installer into CD R on desktop computers.
* create a Web server on a laptop computer. And extract the full Centos installer file to the server iso.
* Give IP to a laptop computer.


How to installation on my laptop.

* Create a web server in the laptop
* extract the full CentOS install on my laptop and put it up in the directory "/home/user/public_html" or in "/var/ www" With a note if using the "www" should be used in apache.conf enable it.
* Extract iso fle, the author uses fuirios.


how to istall net install on desktop

* Boot your desktop PC using the net install CentOS.
* Navigate to the HTTP/FTP servers depending on the make. In this case the author uses the HTTP server. So the choice is "HTTP".
* Assign IP address to a laptop computer. And directories to a place where the CentOS iso extract. Eg "centos/". So let's say the address where the laptop is in the directory "/home/user/public_html/centos", and addresses from the web server is 192.168.1.65 so that the web browser will be as follows addressnya "http://192.168.1.65/~user/centos/". So the write address "192.168.1.65/~user", and the directory is written "centos". Then OK.
* Then the installation would be like using a CD ROM installed. Follow it until the end penginstallanya way.


When finished, it would be easier if the installation using yum. However, if you use yum, then we have to connect to the Internet. It's annoying we reply no internet connection. While the laptop will not always harun standby. So how??

The first step copy all the files in the installer to the local computer. And make one of the directory where the files are.

Suppose the directory is created is "centos".

$ Mkdir /home/user/public_html/centos

why should in the directory "public_html". The author wrote to make fun of these directories. With the goal can be used if it will make a server on the net-install for centos.


Here are the contents of the file "/etc/yum.repos.d/CentOS-Base.repo".

=== Cut here ====
[base]
name = CentOS-5 - Base
mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
# baseurl = http://mirror.centos.org/centos/5/os/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

# released updates
[updates]
name = CentOS-5 - Updates
mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
# baseurl = http://mirror.centos.org/centos/5/updates/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

# packages used / produced in the build but not released
[addons]
name = CentOS-5 - Addons
mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons
# baseurl = http://mirror.centos.org/centos/5/addons/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

# additional packages that may be useful
[extras]
name = CentOS-5 - Extras
mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras
# baseurl = http://mirror.centos.org/centos/5/extras/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

=== Cut here ====

Add "baseurl = the directory where the full copyan CentOS installer". And front Uncomment "mirrorlist" so that if yum on the run did not seek to mirror.

=== Cut here ====
[base]
name = CentOS-5 - Base
# mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
# baseurl = http://mirror.centos.org/centos/5/os/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl = file:///home/user/public_html/centos/

# released updates
[updates]
name = CentOS-5 - Updates
# mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
# baseurl = http://mirror.centos.org/centos/5/updates/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl = file:///home/user/public_html/centos/


# packages used / produced in the build but not released
[addons]
name = CentOS-5 - Addons
# mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons
# baseurl = http://mirror.centos.org/centos/5/addons/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl = file:///home/user/public_html/centos/


# additional packages that may be useful
[extras]
name = CentOS-5 - Extras
# mirrorlist = http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras
# baseurl = http://mirror.centos.org/centos/5/extras/i386/
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
baseurl = file:///home/user/public_html/centos/

=== Cut here ====

then when you finish the test used command "yum update".

=== Begin from here ===

[root @ stream lib] # yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Update Process
No Packages marked for Update

===== cut off =====


if no errors then it could be in penginstallannya continue.

Using yum far better than if done with penginatallan rpm. Because when using rpm, then we'll knock a considerable problem meribetkan dependencies.

If using yum. So the problem can be minimized dependencies.

Manual can be done using yum with the command "man yum", or "yum-h".

for indonesian languages u can go in http://agustiono.wordpress.com/


Tuesday, September 16, 2008

Setting your time zone


In /etc the file, localtime, is a link to or copy of a file containing information about your time zone. Zone information files are usually in /usr/share/zoneinfo but this depends on your distribution. So if your localtime file points to a zone info file that is not your time zone you can change it by browsing the directories in /usr/share/zoneinfo to find your country, then find your city or a city in the same time zone and link localtime to it.
    $ ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

Changing the date and time

Changing the date and time requires two steps. First, Linux's date and time must be changed and then the new time has to be written to the hardware clock.
The date command can be used for both viewing and changing the date and time.





To change the time use date followed by the month, day, hour, minute, and year all numeric and no spaces. So, to set the date and time to November 2nd, 2003 12:57





The hardware clock can be updated in UTC (coordinated universal time) or your local time. It is standard practice to update it in UTC.





To update it to your local time leave off the --utc or add --localtime and leave off the --utc.





Alternatively
The date and time can be changed directly to the hardware clock and then used to update the system clock.