News:

The Latest electronic and computer Tips that work!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - branx86

#256
     Linux Fixer By KhonkaenSOFT                     http://nuxfixer.blogspot.in/2013/11/the-configuration-file-now-needs-secret.html


you can fix blowfish_secret on /usr/share/phpMyAdmin/config.inc.php

#cd /usr/share/phpMyAdmin
#mv config.sample.inc.php config.inc.php


and then edit blowfish_secret
#vi config.inc.php
.
.
   line 17
   $cfg['blowfish_secret'] = 'add what ever word or Number you want in this space '; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

Done! try to surf to phpmyadmin
#257
Server Fault    http://serverfault.com/questions/578069/ssl-library-error-8181-certificate-has-expired


1st. Remove nss.conf from /etc/httpd/conf.d (this will cause mod_nss to not be loaded).

2nd. Uninstall/re-install your nss rpm modules. On re-installation a new certificate will be generated and your problem will go away for a few more years :

    rpm -e mod_nss
    rm /etc/httpd/alias/*
    yum install mod_nss
    service httpd restart


Now it should work no problem at all.
#258
Linux Fixes / Install Tonido
September 16, 2015, 12:09:40 PM
/opt # alien -r TonidoSetup_i686.deb
/opt # mkdir /usr/local/tonido
/opt # cd /usr/local/tonido
/ # rpm2cpio /opt/tonido-2.26.0.13504-2.i386.rpm |cpio -idmv    (run this in the / it will unzip into the correct folders )

make sure tonido is writable then change it later.
To start Server /usr/local/tonido sh tonido.sh start       
or sh tonidostart.sh in KDE,GNOME
to  configure server go to http://127.0.0.1:10001/ui/core/index.html

To make a service cmd
cp /usr/local/tonido/tonido.sh /etc/init.d/tonido.sh
Then use         service tonido.sh start
                         service tonido.sh restart
                        service  tonido.sh stop
#259
Linux Fixes / Iptables nat portforwarding
September 16, 2015, 11:53:56 AM
    iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 8080 -j DNAT  --to-destination 216.34.181.45:80
to see port inside of your LAN remove -i eth0 and it will be for all Lan connections.

Redirect just Ports

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 8080
#260
Linux Fixes / View Firewall settings
September 16, 2015, 11:43:16 AM

     iptables -L

iptables -vnL

iptables -t nat -L
#261
Linux Fixes / Add Ports to Iptables (aka hole in firewall)
September 16, 2015, 11:40:49 AM
   OPens Port
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

Accept tcp packets on destination port 6881 (bittorrent)
iptables -A INPUT -p tcp --dport 6881 -j ACCEPT


Accept tcp packets on destination multiple ports 6881-6890
iptables -A INPUT -p tcp --dport 6881:6890 -j ACCEPT

This will open up port 22 (SSH) to all incoming tcp connections which poses a potential security threat as hackers could try brute force cracking on accounts with weak passwords. However, if we know the IP addresses of trusted remote machines that will be used to log on using SSH, we can limit access to only these source IP addresses. For example, if we just wanted to open up SSH access on our private lan (192.168.0.x), we can limit access to just this source IP address range:

Accept tcp packets on destination port 22 (SSH) from private LAN
iptables -A INPUT -p tcp -s 192.168.0.0/24 --dport 22 -j ACCEPT
#262
Linux Fixes / Delete single iptables rule
September 16, 2015, 11:35:07 AM

  To Delete and entry
iptables -D INPUT -s 127.0.0.1 -p tcp --dport 111 -j ACCEPT

  To list all entries : iptables -vnL


#263
Windows Fixes / RDP on Win7 (aka tsweb)
September 16, 2015, 10:21:46 AM
No sense in reinventing the wheel Mike Jackson's site does a good job of explaining.     http://www.mickyjay.co.uk/?p=29


1.   Go to Control Panel
2.   Programs and Features > Turn Windows features on or off
3.   Internet Information Services and select the check boxes for Web Management Tools & World Wide Web Services.
4.   Download and install tswebsetup.exe from the following location:
http://www.microsoft.com/downloads/d...DisplayLang=en

5.   Go to Control Panel > Administrative Tools > Internet Information Services (IIS) Manager
[NOT IIS 6.0 Manager]
6.   Expand the tree and click on Default Web Site
7.   On the right side of the screen under Edit Site, click Bindings
8.    Click on the web site and click Edit
9.    Change the port number to your preferred port designation (3389 is the default RDP)
10.  Under Manage Server on the same screen click "Start the service"
11.   Set-up your router and firewall to accept your designated port

To connect to the Windows 7 machine from a remote computer simply go to your internet browser (Internet Explorer is recommended because of the nature of Microsoft web based apps) and enter the URL as follows:

http://Server IP Address : port no/tsweb

For example:  http://192.168.0.1:3389/tsweb