How to Install and Use Windows Applications on Linux using PlayOnLinux Thursday, January 31, 2019
In this article, we will explain how to install PlayOnLinux on your Ubuntu both through the command line and the graphical user interface. More importantly, we will explain how to install a Windows application, Notepad Plus Plus in our example, by using PlayOnLinux. .. read more..
How To Add The BlackArch Pentesting Repository To Arch Linux Thursday, January 31, 2019
BlackArch is a penetration testing distribution, similar to Kali Linux, but it’s built on top of Arch Linux. In reality, BlackArch is really a pre-configured Arch installation with an extra repository full of security tools. As a result, you can add the BlackArch repository to a regular install o... .. read more..
also on TWinL52: Lubuntu Council Announced, Manjaro Stable Update Breakage, Multipass, gotop, TuxClocker, Dell's XPS 13 9380, Ad Blocker Breakage in Chrome Extension Manifest V3, Humble Bundles .. read more..
Free Drawing And Painting Program MyPaint 2.0.0 Alpha Released Thursday, January 31, 2019
After being in development for more than 2 years, MyPaint 2.0.0 alpha is available for download. MyPaint is a free, open source drawing and painting program available for Windows, macOS, and Linux. The application features infinite canvas, configurable brushes, graphics tablet support, and a dist... .. read more..
Ubuntu 18.04 needs patching Thursday, January 31, 2019
Canonical is updating Ubuntu 18.04 to the 4.15.0-44.47 Linux kernel to fix several security bugs. .. read more..
Share your internet connection in your LAN by using Linux and IPTABLES. First, create a script and put it in your /etc/rc.d/ then name it gateway.sh like below..
root@localhost#vi /etc/rc.d/gateway.sh
then enter the following: #!/bin/sh echo “1″ > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
where eth1 is your interface connected to internet and eth0 is the interface connected to LAN. Then the ip address of your eth0 should be the ip gateway of the hosts connected to your LAN.
After you made that little script, put that in your rc.local file so it will run everytime the pc starts-up. Do it like this:
root@localhost#vi /etc/rc.d/rc.local
#at the end of all the script, enter the ff. line /etc/rc.d/gateway.sh
then save it
Opps, we have not yet made that gateway.sh executable, so to make it, do it like this: root@localhost#chmod +x /etc/rc.d/gateway.sh
now you can run that script or when you restart, it will just start.
To enable read-only SNMP services, use the following configuration command:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#snmp-server community thisisatest ro Router(config)#end Router#
thisisatest is the read-only community string
To enable read-write SNMP services, use the following command:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#snmp-server community thisisatest rw Router(config)#end Router#
Note: $ signifies user prompt, # signifies root prompt
The chmod command changes permissions on files and directories. Type $man chmod in your linux console for further info. If you would like to see what permission a file has, you may type in your console the command $ls -l testfile.txt -rw-rw-r– 1 ken ken 0 May 16 11:21 testfile.txt
# the file has a permission of 664… see table below
Table 001 Illustrates the eight possible combinations of numbers used for changing permissions. Decimal—–Binary—–Permissions 0 000 none 1 001 –x 2 010 -w- 3 011 -wx 4 100 r– 5 101 r-x 6 110 rw- 7 111 rwx
The symbolic notation for chmod is as follows: r = read; w = write; x = execute; u = user; g = group; o = others; a = all.
ex. for chmod command
$chmod 777 testfile.txt - would make the permission of the file rwx-rwx-rwx
$chmod g-x testfile.txt - would change the file permission to rwx-rw-rwx
the command g-x removes the x permission to the g(group)
$chmod g+x testfile.txt - would again add the x permission to the group rwx-rwx-rwx
In MO, its easier to remember and to use symbolic notation to add or remove a file permissions.
$chmod og-x -R /home/user/bin - would remove all the x permission on other users and the group on all the files inside the /home/user/bin directory - rwx-rw-rw assuming the original file permission was 777 or rwx-rwx-rwx
reference book: UNIX Shells by example 4th Edition
Here' s my Dial-in Server setup on my mandrake 10.1 using US Robotics 56 K Data Fax External Modem
Below are the steps and configs:
1. Make sure that the host acting as Dial-in server has a working internet connection.
2. Download and install mgetty. [on my system, #urpmi mgetty]
3. After installing mgetty, edit the inittab [#vi /etc/inittab ], and I added the text below on the last line of my iniitab. My modem is on Com2 and so its ttyS1.
S1:2345:respawn:/sbin/mgetty -s 57600 -D ttyS1
4. My /etc/mgetty+sendfax/mgetty.config
data-only yes speed 57600 modem-type auto modem-check-time 1800 init-chat "" AT&F1M0 port ttyS1 debug 9
5. My /etc/mgetty+sendfax/login.config. [actually, I just commented it out from the original login.config file, be sure to comment the lastline portion of that file.]
#note: *.101 is the assigned local IP, *.101 will be the remote IP #These IP are not yet assigned to any host connected to LAN #----------------------------------------------------------------------
#/etc/ppp/pap-secrets # Secrets for authentication using PAP # client server secret IP addresses * * "" *
8. The eth0 of this box is directly connected to the internet, so I have to do a masquerading on IPtables to share the internet it has on the connected ppp interface. I added the text below on my rc.firewall script for the said purpose, NAT.
9. As of now, I am using windows XP and 2000 on the dialing client side and it works fine, I can connect up to 40 kbps (eh, very slow) but at least, I can check emails and do some slow browsing. I'd tried a linux client but it wont connect, it has some sort of errors, and I have to investigate further so I can use linux at home.
Nothing really important on it,but might be important later.... it'll be about, general computing, networks, cisco and linux and its internal, but please be warned, that I am not an expert on these stuffs, so I'm not responsible if doing something based on this page cause you trouble. Its like an archive of those related to my work so I might not forget them the time I'll have to do those task again.
PEACE!!!